summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* build,core: update build rulesAleksander Morgado2016-03-151-6/+26
| | | | | | | | | We try to combine in common envvars the compiler and linker flags shared by the different components, and where possible, also re-using the implicit AM_CFLAGS and AM_LDFLAGS variables that automake provides, and which apply to all objects being built in the same Makefile.am. The internal libmodem-helpers.la library is also renamed to libhelpers.la
* core: use G_SOURCE_REMOVE and G_SOURCE_CONTINUE in GSourceFuncsAleksander Morgado2015-12-021-1/+1
|
* test: new 'mmtty' utilityAleksander Morgado2015-02-112-1/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new tester allows to play with the AT-capable TTY using the same code as ModemManager itself. $ sudo ./test/mmtty -d /dev/ttyHS0 --verbose opening serial port '/dev/ttyHS0'... (ttyHS0) opening serial port... (ttyHS0): port attributes not fully set (ttyHS0) device open count is 1 (open) flashing serial port '/dev/ttyHS0'... ready > AT+GCAP (ttyHS0): --> 'AT+GCAP<LF><CR>' (ttyHS0): <-- '<CR><LF>+GCAP: +CGSM,+DS,+ES<CR><LF><CR><LF>OK<CR><LF>' +GCAP: +CGSM,+DS,+ES > AT+GMI (ttyHS0): --> 'AT+GMI<LF><CR>' (ttyHS0): <-- '<CR><LF>Option N.V.<CR><LF><CR><LF>OK<CR><LF>' Option N.V. > ^C cancelling the main loop... (ttyHS0) device open count is 0 (close) (ttyHS0) closing serial port... (ttyHS0) serial port closed (ttyHS0) forced to close port
* test: remove testers of the old interfaceAleksander Morgado2013-06-1815-1709/+2
| | | | | | | | | | | Old python tests using the old ModemManager interface are removed, as mmcli provides already a much nicer way to test the DBus interface. Also, mm-test.py and the PPPD plugin get removed, which were also using the old interface, and which were not very useful for testing newer non-PPP based modems. https://bugzilla.gnome.org/show_bug.cgi?id=702061
* test: new tester for the messaging capabilities of a modem, using `mmcli'Aleksander Morgado2012-09-141-0/+169
| | | | | | | | | Usage: mmcli-test-sms [MODEM INDEX] [all|ucs2|gsm7|data] [NUMBER]" If [NUMBER] is not given, a dummy number will be used and NO SMS will be sent. If you give a proper [NUMBER], we will try to send the SMS.
* test: add utility to force a modem disconnectDan Williams2012-08-312-0/+31
|
* test: ignore ESN errors in info.pyDan Williams2012-05-301-2/+5
|
* build: require gudev >= 147Aleksander Morgado2012-03-161-1/+0
| | | | | Since udev 147 the gudev API is no longer marked as experimental, and therefore `G_UDEV_API_IS_SUBJECT_TO_CHANGE' is no longer needed.
* test: (sms-get.py) don't fail if we don't get an SMSCDan Williams2012-02-021-1/+7
|
* test: pretty-print SMS messages in sms-get.pyDan Williams2012-02-011-1/+20
|
* test: add SMS get example/testDan Williams2012-01-262-0/+56
|
* test: add missing examples to Makefile.amDan Williams2012-01-261-1/+3
|
* test: rename SMS send exampleDan Williams2012-01-262-1/+1
|
* test: print sent SMS message index on successDan Williams2012-01-181-1/+2
|
* gsm: change SMS send validity from 5-minute units to minutesDan Williams2012-01-181-1/+1
| | | | Might as well keep it simple.
* test: enhance SMS send util to accept validity and SMSC addressDan Williams2012-01-181-8/+36
|
* test: print out error if sending SMS failsDan Williams2012-01-181-4/+3
|
* tests: better handling of encodings in SMS test toolDan Williams2012-01-181-1/+10
| | | | | | Python usually uses Unicode, but often the shell encoding will be in UTF-8, so Python needs some help converting the message to Unicode. Use LANG to do that if we can.
* examples: add example of auto-enabling modemsDan Williams2011-09-302-1/+52
|
* test: allow modem numbers in addition to object pathsDan Williams2011-08-097-8/+30
| | | | | If the command-line arg doesn't look like an object path, treat it as the modem # and make the object path.
* tests: fix access tech reporting in scan.pyDan Williams2011-07-241-24/+9
|
* test: improve ussd.py help messageGuido Günther2011-07-211-5/+5
|
* test: add test program to send SIM PINDan Williams2011-03-262-1/+67
|
* test: handle cancel and distinguish between initiate and respond (bgo #638038)Guido Günther2011-01-141-2/+19
|
* gsm: add preliminary USSD support (bgo #590798)Guido Günther2010-11-051-0/+27
| | | | | | | | | | | We currently convert to and from the modem's set charset and always pass '15' as the data coding scheme. Passing the correct data coding scheme as third argument to CUSD only upsets the network. This contradicts 3GPP TS 23.038. Other tools like gsm-ussd handle it the same way. Network responses that require further actions are not yet implemented. (some fixes and cleanups by Dan Williams)
* gsm: add SimIdentifier propertyDan Williams2010-10-251-4/+11
| | | | | | | An obfuscated SimIdentifier that may be available before the PIN has been entered, for use in auto-unlocking a device. If this value is present, it should be used in preference to DeviceIdentifier as it is SIM-specific like the PIN code.
* core: add DeviceIdentifier propertyDan Williams2010-10-211-0/+1
| | | | | | | | | | | | | This is computed before any PIN is entered, and thus before we can usually get IMEI or MEID/ESN out of the device in many cases. It's therefore not the same as EquipmentIdentifier. This is intended to be used by UI programs for matching devices with PIN numbers for automatic unlocking. While the PIN number is actually *SIM* specific, no modems allow access to the IMSI before the PIN is entered, and thus we cannot actually match the PIN with the SIM. The device ID is the next best thing we can use and should allow auto unlocking in most cases.
* test: add scan helper/testerDan Williams2010-08-301-0/+101
|
* test: add modem info helperDan Williams2010-07-092-1/+255
|
* gsm: implement location APIDan Williams2010-06-291-0/+57
| | | | | | | | | Depends on dbus-glib 0.86 + this patch: https://bugs.freedesktop.org/show_bug.cgi?id=28835 Still have to do the bits that allow plugins to add other location capabilities, but that can come later.
* test: add some simple testing utilitiesDan Williams2010-06-293-0/+108
|
* test: fix lsudev crashDan Williams2010-04-091-8/+9
|
* cdma: increase data call initiation timeoutDan Williams2010-01-191-1/+1
| | | | | | Some cards (Novatel S720 for example) can take a long time to start a data call if the device isn't activated on the network or the signal strength is low.
* test: handle various missing operator strings if the modem doesn't report themDan Williams2010-01-051-2/+4
|
* build: don't require pppd headers to buildDan Williams2009-12-211-0/+4
| | | | | If they're not there, just ignore them and don't build the PPP-enabled bits of the test tool.
* test: add support for static IP configured devices (ie, 'hso')Dan Williams2009-12-211-28/+98
|
* test: add ability to drive ppp for connection testsDan Williams2009-12-203-9/+425
|
* test: fix build warningDan Williams2009-12-201-1/+1
|
* test: argument parsing and connect improvementsDan Williams2009-12-111-2/+4
|
* test: give some time before disconnectingDan Williams2009-12-021-0/+3
|
* test: actually send username and password when connectingDan Williams2009-11-291-1/+6
|
* test: give connect a bit more timeDan Williams2009-11-291-1/+1
| | | | Registration can be part of the connect process, which can take quite a while.
* test: handle scan errors more gracefullyDan Williams2009-11-291-1/+6
|
* test: handle signal quality exceptionsDan Williams2009-11-241-1/+11
|
* test: add lsudev.c since I don't know where else to put itDan Williams2009-11-171-0/+180
| | | | A helpful little tool to debug udev device relationships.
* test: add connect abilityDan Williams2009-10-121-6/+47
|
* cdma: split 1x and EVDO registration statesDan Williams2009-10-121-2/+3
| | | | | | Like UMTS vs. GSM, EVDO and 1x are separate networks and technologies and have separate registration state. You can even be roaming on EVDO while in your home 1x network. Handle that.
* mm-test: fix cdma registration state parsingDan Williams2009-10-111-1/+1
|
* cdma: implement generic registration state handlingDan Williams2009-10-091-1/+17
|
* gsm: add cell access technology reporting to Scan()Dan Williams2009-10-061-3/+23
|