aboutsummaryrefslogtreecommitdiff
path: root/src/tests
AgeCommit message (Collapse)Author
2012-09-14test: new tests to parse SUBMIT PDUsAleksander Morgado
2012-09-14test: new tests to parse non-stored PDUsAleksander Morgado
2012-09-14test: new tester for +CDS unsolicited messagesAleksander Morgado
2012-09-14sms-part: new util to split input text string into chunks to fit in PDUsAleksander Morgado
2012-09-12core: better handling of non-UCS2 conversions that should be UCS2 (bgo #683817)Dan Williams
Some modems return the +COPS operator name in hex-encoded current character set (as set with +CSCS). Others return the operator name in ASCII when set to UCS2, while yet others return the ASCII name with trash at the end (*cough* Huawei *cough*). Handle that better by not crashing.
2012-09-06sms-part: add helper debug logsAleksander Morgado
2012-09-05build: new `--without-qmi' configure optionAleksander Morgado
For those who don't care about the QMI support through libqmi-glib, or if you're stuck with glib 2.30 (libqmi-glib requires 2.32), this configure switch allows disabling the QMI support completely. The logic to detect cdc-wdm ports is still in place, but the QMI probing is never launched at them. Also, all QMI-related objects won't be compiled.
2012-08-29modem-helpers: new method to validate and/or parse MCC/MNC operator ID stringAleksander Morgado
2012-08-22api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u)Aleksander Morgado
Instead of using a predefined set of string values for 'ip-type' in Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The implementation will then need to convert the requested IP family type to e.g. the correct PDP type in 3GPP modems. This change also consolidates the use of enums in dictionary properties when possible to do so, as with the Rm Protocol.
2012-05-06sms,tests: new test to check for multipart support in SMS partsAleksander Morgado
2012-03-16qcdm-serial-port: allow cancelling the response timeoutAleksander Morgado
2012-03-16modem-helpers: refactor and reorganize sourcesAleksander Morgado
2012-03-16modem-helpers: new +CNUM response parser and testsAleksander Morgado
2012-03-16tests,modem-helpers: cleanup testsAleksander Morgado
Properly order the tests in blocks, and ensure that the common data for registration tests is not passed to other non-registration related tests.
2012-03-16test,modem-helpers: remove conditional compilationAleksander Morgado
We require already GLib 2.30
2012-03-16tests: fix automake rule dependenciesAleksander Morgado
We need to ensure all test programs are built.
2012-03-16tests: fix CGDCONT reply test, NULL expected instead of empty stringAleksander Morgado
2012-03-16build: fix header dependenciesAleksander Morgado
We shouldn't depend on any header file from the previous implementation.
2012-03-16tests,sms: print traces if enabled during compilationAleksander Morgado
2012-03-16tests,sms: refactor SMS part related testsAleksander Morgado
Now using the MMSmsPart setup.
2012-03-15modem-helpers: allow leading zeroes in CREG/CGREG responsesAleksander Morgado
2012-03-15qcdm-serial-port: no need to pass port type when creating the objectAleksander Morgado
2012-03-15test: new tester for CPMS=? resultsAleksander Morgado
2012-03-15api,enums: renamed `MMModemAccessTech' to `MMModemAccessTechnology'Aleksander Morgado
This one was the last enum without full name.
2012-03-15modem-helpers: renamed 3GPP registration related helpers with `mm_3gpp' prefixAleksander Morgado
2012-03-15helpers: implement CGDCONT reply parsingAleksander Morgado
New method to parse the PDP query reply, and build a list of structs with the found info.
2012-03-15modem-helpers: provide list of scanned networks in a list of structsAleksander Morgado
We provide the result of the +COPS=? parsing in a GList of MM3gppNetworkInfo structures. We avoid the previous hash table, or using a dictionary, as a list of structs with a predefined set of elements, which should be easier for plugins wanting to make their own version
2012-03-15test-modem-helpers: fix C(G)REG parsing testsAleksander Morgado
2012-03-15modem-helpers: use MMModemAccessTech when parsing C(G)REG responsesAleksander Morgado
2012-03-15core: start using our newly defined errorsAleksander Morgado
2012-03-15build: chain up new 0.6 API and link against libmm-commonAleksander Morgado
Also removed the MMSerialError implementation from `src/mm-errors.[h|c]', as it is now included in the new `include/ModemManager-errors.h' header file. All the other enums and errors without clashing names will be ported afterwards to the new base code.
2012-03-15tests: serial port tests don't need errors headerAleksander Morgado
2012-02-28core: rework port grabbing and organizationDan Williams
Make port roles more flexible. We have modems that do PPP on interfaces other than the primary interface, and that wasn't possible with the old code. So clean up all that logic and move the port organization code into the core so we can reduce code in the plugins. In the new world order, the plugins say whether the port is a QCDM port, an AT port, or ignored. If it's an AT port the plugins get to tag it as primary, secondary, or PPP, or any combination of the 3. This allows for modems where PPP should really be done on the secondary port (Huawei E220, Sierra devices) so that the primary port stays open for command and status. Modem subclasses no longer get asked to handle port grabbing themselves. Instead, that's now done by the generic classes (MMGenericCdma and MMGenericGsm) and the plugins are notified when a port is grabbed so they can add unsolicited response handlers for it. After all ports are grabbed by the generic classes, they get "organized", which assigns various ports to the roles of PRIMARY, SECONDARY, DATA, and QCDM based on specific rules and hints that the plugin provided (which are expressed as MMAtPortFlags). The plugins then have a chance to perform fixups on the primary port if they choose. The plugin code is responsible for determining the port hints (ie MMAtPortFlags) at probe time, instead of having a combination of the plugin and the modem class do the job. This simplifies things greatly for the plugins at the expense of more complicated logic in the core.
2012-02-17gsm: allow leading zeroes in numbers in CREG/CGREG responsesAleksander Morgado
2012-02-16core: fix loop limits in echo removalAleksander Morgado
-1 was actually correct, if data->len is 10, i goes from 0 to 8.
2012-02-16at-serial-port: implement built-in echo/garbage removalAleksander Morgado
We expect the responses to start always with <CR><LF>. We just remove anything that comes before that.
2012-02-07test: fix SMS testcase errors due to uninitialized GErrorDan Williams
2012-01-18gsm: change SMS send validity from 5-minute units to minutesDan Williams
Might as well keep it simple.
2012-01-18gsm: fix CMGS PDU mode length calculationDan Williams
The first byte of the PDU is the SMSC length, but it's not the padded SMSC length. So we need to subtract the actual byte index of the start of the message from length of the PDU, and since the PDU creation function knows all about where the SMSC address stops and the message begins, just have it return that length instead of making the callers calculate it.
2012-01-18tests: add a test for 25-character SMS messagesDan Williams
Tests that the last septet (packed in an octet by itself) doesn't get left off the message like the old code used to do before "core: fix some bugs in GSM7 packing code".
2012-01-18core: fix some bugs in GSM7 packing codeDan Williams
The existing gsm_pack() had a bug where if the last septet should be in an octet by itself, that last octet wouldn't be added. Plus, kinda pointless to use a GByteArray here when we already know what the length will be through simple arithmetic. We can also simplify the function too. Furthermore, there weren't any testcases for starting packing at an offset other than zero, so add one.
2012-01-17gsm: add SMS PDU creation functionDan Williams
Only for basic SMS-SUBMIT PDUs at the moment, and doesn't support large SMSs yet.
2012-01-09sms: punt handling of 8-bit encoded SMSs to clientsDan Williams
There's no encoding information about 8-bit SMS messages, and they are often binary things like ringtones or voicemail indicator commands. Since there's no point to our parsing them just let clients deal with it.
2012-01-03cdma: fixes for libqcdm changesDan Williams
2011-10-27gsm: fix parsing of unsolicited CREG/CGREG response with RACDan Williams
2011-10-27gsm: add regex for unsolicited CREG/CGREG response with RACDan Williams
2011-08-19api: use common ModemManager.h for API, core and pluginsAleksander Morgado
2011-07-25sms: calculate user-data bit padding correctlyNathan Williams
Fourth and final in a series. This fixes an off-by-one (septet) error in the calculation of the amount of data to skip in the presence of a user data header, and adds the test case from the wild that triggered it.
2011-07-25sms: add unit testsNathan Williams
Second in a series. Builds on the previous by actually unit-testing the sms_parse_pdu() function. Note that the dcf1 test does not pass as the code is currently written.
2011-04-14charset: change GSM unpack to take number of characters rather than octetsNathan Williams
Change interface to take the number of GSM characters rather than the number of octets, so that it is possible to distinguish the 7-character and 8-character cases.