summaryrefslogtreecommitdiff
path: root/libqcdm/tests
Commit message (Collapse)AuthorAgeFilesLines
* build: drop autotoolsAleksander Morgado2022-11-071-65/+0
|
* build,meson: Improve libqcdm buildIñigo Martínez2021-09-101-6/+1
| | | | | `libqcdm`'s meson build files have been improved slightly by removing unnecessary variables shortening their contents.
* build: Port to mesonIñigo Martínez2021-09-071-0/+42
| | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools.
* libqcdm,reset: fix warnings with -Wdiscarded-qualifiersAleksander Morgado2020-01-301-1/+1
| | | | | | | | | | | reset.c: In function ‘main’: reset.c:238:17: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 238 | putenv ("QCDM_DEBUG=1"); | ^~~~~~~~~~~~~~ In file included from reset.c:22: /usr/include/stdlib.h:647:26: note: expected ‘char *’ but argument is of type ‘const char *’ 647 | extern int putenv (char *__string) __THROW __nonnull ((1)); | ~~~~~~^~~~~~~~
* libqcdm,reset: fix warnings with -Wsign-compareAleksander Morgado2020-01-301-2/+2
| | | | | | | | | | | reset.c: In function ‘print_buf’: reset.c:47:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 47 | for (i = 0; i < len; i++) { | ^ reset.c: In function ‘qcdm_wait_reply’: reset.c:168:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 168 | } while (total < sizeof (readbuf)); | ^
* libqcdm,ipv6pref: fix warnings with -Wdiscarded-qualifiersAleksander Morgado2020-01-301-1/+1
| | | | | | | ipv6pref.c: In function ‘main’: ipv6pref.c:288:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 288 | putenv ("QCDM_DEBUG=1"); | ^~~~~~~~~~~~~~
* libqcdm,ipv6pref: fix warnings with -Wsign-compareAleksander Morgado2020-01-301-2/+2
| | | | | | | | | | | ipv6pref.c: In function ‘print_buf’: ipv6pref.c:46:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 46 | for (i = 0; i < len; i++) { | ^ ipv6pref.c: In function ‘qcdm_wait_reply’: ipv6pref.c:167:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 167 | } while (total < sizeof (readbuf)); | ^
* libqcdm,modepref: fix warnings with -Wdiscarded-qualifiersAleksander Morgado2020-01-301-1/+1
| | | | | | | | | | | modepref.c: In function ‘main’: modepref.c:539:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 539 | putenv ("QCDM_DEBUG=1"); | ^~~~~~~~~~~~~~ In file included from modepref.c:21: /usr/include/stdlib.h:647:26: note: expected ‘char *’ but argument is of type ‘const char *’ 647 | extern int putenv (char *__string) __THROW __nonnull ((1)); | ~~~~~~^~~~~~~~
* libqcdm,modepref: fix warnings with -Wsign-compareAleksander Morgado2020-01-301-2/+2
| | | | | | | | | | | modepref.c: In function ‘print_buf’: modepref.c:46:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 46 | for (i = 0; i < len; i++) { | ^ modepref.c: In function ‘qcdm_wait_reply’: modepref.c:167:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 167 | } while (total < sizeof (readbuf)); | ^
* test-qcdm-com: fix warnings with -Wdouble-promotionAleksander Morgado2020-01-301-1/+1
| | | | | | | | | | test-qcdm-com.c: In function ‘test_com_pilot_sets’: test-qcdm-com.c:1085:59: warning: implicit conversion from ‘float’ to ‘double’ when passing argument to function [-Wdouble-promotion] 1085 | g_message (" EC/IO %d (%.1f dB)", ecio, db); | ^~ /usr/include/glib-2.0/glib/gmessages.h:333:32: note: in definition of macro ‘g_message’ 333 | __VA_ARGS__) | ^~~~~~~~~~~
* test-qcdm-com: fix warnings with -Wsign-compareAleksander Morgado2020-01-301-2/+2
| | | | | | | | | | | test-qcdm-com.c: In function ‘print_buf’: test-qcdm-com.c:273:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’} [-Wsign-compare] 273 | for (i = 0; i < len; i++) { | ^ test-qcdm-com.c: In function ‘wait_reply’: test-qcdm-com.c:367:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 367 | } while (total < sizeof (readbuf)); | ^
* build: use AX_IS_RELEASE() and AX_COMPILER_FLAGS()Aleksander Morgado2020-01-301-2/+9
| | | | | | | | | | | | | The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test for compiler and linker support of various flags, and add the flags to the generated output. If the command-line option '--enable-compile-warnings' is specified to 'configure', a number of additional warning options is also added to the output. This is the default. This update requires the presence of the GNU autoconf-archive in the system.
* libqcdm: fix WCDMA L1 Manager statesDan Williams2017-02-281-3/+9
| | | | | | | | The enum was wrong. There isn't actually an L1M_INIT state; the enum should start with L1M_IDLE. There should also be a L1M_PCH_SLEEP state between DEACTIVATE and DEEP_SLEEP. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=100000
* libqcdm,libwmc: use C99 sized types from stdint.hAleksander Morgado2016-11-235-31/+27
|
* libqcdm: fix mixed whitespace in test-qcdm.cDan Williams2016-01-131-8/+8
|
* build: add code coverage supportJakub Sitnicki2015-01-111-0/+3
| | | | | | | | | | | | | | | | | | Build all targets, except for CLI tools (mmcli, uml290), with special flags needed for collecting code coverage information when the build has been configured with --enable-code-coverage. Three new targets are available in the top build directory: - `check-code-coverage' runs the test suite and generates a code coverage report, - `code-coverage-capture' generates a code coverage report from already collected data, which can come in handy when one wants to see code paths touched by a particular test, - `code-coverage-clean' removes the collected coverage data and the generated reports.
* libqcdm: new 'reset' testerAleksander Morgado2014-07-032-1/+270
| | | | Just like 'modepref', but not doing any mode changes, just OFFLINE+RESET.
* build: avoid using 'INCLUDES' in Makefile.amAleksander Morgado2014-06-221-7/+12
| | | | | Avoids warnings during build; e.g.: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
* qcdm: fix memory leaks in testsBen Chan2014-05-291-0/+6
|
* qcdm: add utility to display and set the "IPv6 enabled" variableBjørn Mork2013-12-052-1/+323
| | | | Signed-off-by: Bjørn Mork <bjorn@mork.no>
* qcdm: add IPv6 nvram setting to test suiteBjørn Mork2013-12-053-0/+58
| | | | Signed-off-by: Bjørn Mork <bjorn@mork.no>
* build: remove unneeded GLIB_CHECK_VERSION checks, 2.32 already requiredAleksander Morgado2013-06-181-5/+0
|
* build: setup gtester based testsAleksander Morgado2013-06-181-11/+4
|
* qcdm: add auto-LTE modes for GSM and CDMADan Williams2013-03-131-2/+14
| | | | as in, CDMA+EVDO+LTE and GSM+UMTS+LTE which were missing before.
* qcdm: modepref: reset device after setting mode preferenceDan Williams2013-03-121-0/+45
| | | | Otherwise it doesn't actually take until you unplug/replug.
* qcdm: add modepref utilityDan Williams2013-03-122-1/+523
| | | | | Sets and gets the NV "mode pref" item for allowed access technologies.
* qcdm: add Novatel ERI subsystem supportDan Williams2013-02-063-0/+63
| | | | | Returns various ERI information like Indicator ID/Index, Icon ID/Index, Icon Mode, and banner.
* qcdm: various LTE-related NV mode pref and sysmode updatesDan Williams2013-01-141-0/+27
|
* qcdm: handle more test failures for NW subsystemDan Williams2012-11-271-2/+4
| | | | | Bandrich C120 returns BAD_LENGTH rather than BAD_COMMAND, perhaps because it re-uses the same subsystem number for something else.
* qcdm: get/set functions for hybrid preferenceDan Williams2012-11-143-0/+45
|
* qcdm: interpret MCC value from StatusSnapshot commandDan Williams2012-08-081-0/+5
|
* qcdm: fix 1x/HDR mode pref and add GSM/UMTS mode prefsDan Williams2012-06-041-0/+9
|
* qcdm: namespace stuff properlyDan Williams2012-05-301-2/+2
|
* build: more libwmc and libqcdm standalone fixesDan Williams2012-01-271-3/+3
| | | | Make it pass distcheck.
* qcdm: fix some build errors when building standaloneDan Williams2012-01-241-6/+10
|
* qcdm: clarify IMxI conversions a bit; fix up WCDMA L1 statesDan Williams2012-01-211-4/+4
|
* qcdm: some devices do implement SW_VERSIONDan Williams2012-01-181-6/+5
| | | | | | | Like the MF627 for some reason. Also, the format appears to be more like the DM_CMD_VERSION_INFO response where at least the comp_date and comp_time fields are the same size as VERSION_INFO, just with some padding between.
* qcdm: let WCDMA/GSM devices pass CDMA-only testsDan Williams2012-01-181-5/+29
| | | | Obviously they don't implement the CDMA-only commands.
* qcdm: fill in some GSM and WCDMA stuffDan Williams2012-01-173-25/+220
|
* qcdm: start filling out log messages and itemsDan Williams2012-01-121-0/+4
| | | | | | | Log messages are enabled by LOG_CONFIG and are then reported as unsolicited responses with code DM_CMD_LOG. Each log type appears to have its own message format which are now being added to log-items.h.
* qcdm: enhance LOG_CONFIG testcaseDan Williams2012-01-111-4/+50
|
* qcdm: add support for Log Config commandDan Williams2012-01-113-0/+46
| | | | | This appears to be a newer version of EXT_LOGMASK that also works with GSM/UMTS and other subsystems.
* qcdm: fix up testcases for more expected error codesDan Williams2012-01-101-3/+4
| | | | I'm bored and playing around with a Novatel E725...
* qcdm: fill out some operating modesDan Williams2012-01-051-9/+26
|
* qcdm: better handle NV item read/write status codesDan Williams2012-01-051-4/+10
|
* qcdm: fix up live testcase for recent changesDan Williams2012-01-051-9/+24
| | | | And interpret all the recent mode preferences.
* qcdm: remove usage of glibDan Williams2012-01-036-149/+155
| | | | People have asked for this at various times.
* qcdm: add call manager subsystem mode define for LTEDan Williams2011-01-211-0/+3
| | | | Seen on the Pantech UML290 and another Qualcomm-based LTE device.
* qcdm: add HDR revision preferenceDan Williams2011-01-063-0/+59
| | | | | Not sure if that's exactly what the NV item is, but the UML290 uses it for Rev0, RevA, and eHRPD preference.
* qcdm: add testcase to ensure that parsing Sierra CnS failsDan Williams2010-10-143-0/+23
| | | | | Because CnS uses HDLC framing, but doesn't use CRC16, and thus the decapsulation should fail because the CRC check fails.