Commit Graph

61 Commits

Author SHA1 Message Date
Denis Kenzior 5e1471d3eb unit: Use l_util_hexstring instead of encode_hex 2018-12-27 18:18:51 -06:00
Denis Kenzior 2984391b31 unit: Switch decode_hex to l_util_from_hexstring 2018-12-27 18:18:51 -06:00
Denis Kenzior 9396120cf9 unit: Update to use l_free instead of g_free
Previous commit changes character conversion functions to use ell memory
allocation routines.  Update all uses to free memory using the same.
2018-12-27 18:18:51 -06:00
Denis Kenzior 71544d7fe1 unit: convert usage of g_test_verbose
Convert all usages of this function in favor of using a static VERBOSE
variable.  We almost never use verbose output except while debugging.

Additionally this allows us to more easily convert all unit tests to the
ell unit test framework
2018-12-27 18:18:51 -06:00
Denis Kenzior 538804e191 unit: Update to the new pack_7bit/unpack_7bit api 2018-12-27 18:18:51 -06:00
Denis Kenzior ea172514a2 unit: update to the new util api 2018-12-27 18:18:51 -06:00
Slava Monich a011fea4a4 unit: test-sms: Fix memory leaks in the unit test 2016-12-30 18:13:06 -06:00
John Ernberg 4ae734ef6f unit: Use g_slist_free_full 2016-04-22 15:37:26 -05:00
Tommi Kenakkala 42deee76a1 unit: Add test to encode / decode 11 char TP-OA 2015-02-13 09:55:16 -06:00
Denis Kenzior 0cdf3ced1f test-sms: Add skeleton code for MWI unit test 2013-09-03 22:58:40 -05:00
Guillaume Zajac 134a35f697 unit: Add test to check CBS padding character
This CBS unit test is used to check that the <CR> character can
be interpreted as a wanted carriage return and not necessarily
as a padding character.
2012-09-17 11:43:11 -05:00
Marcel Holtmann d311bccb9d unit: Avoid shadowing data variable 2012-07-15 20:15:49 -03:00
Marcel Holtmann 603d7dfa10 unit: Update copyright information 2011-10-10 13:40:17 -07:00
Marcel Holtmann 7f7492669a build: Split non-root unit tests to have make check succeed 2011-06-30 16:19:24 -07:00
Jeevaka Badrappan 2b8b08c134 unit: M15 coding style fix 2011-01-12 08:06:59 -08:00
Denis Kenzior c5c7c95436 test: Fixup build issues with test-sms 2010-12-09 01:53:05 -06:00
Denis Kenzior 2ee569255f unit: Minor style updates to test-sms 2010-12-08 10:31:05 -06:00
Oleg Zhurakivskyy f68ecd9389 unit: add national dialect SMS character set tests 2010-12-08 10:27:25 -06:00
Denis Kenzior 149ebae625 unit: Update test-sms to the new API 2010-11-02 14:58:21 -05:00
Marcel Holtmann eeeeb11cba unit: Fix some copyright and license headers 2010-09-26 17:49:19 +09:00
Denis Kenzior 0ec4cbac62 unit: Make test-sms less verbose 2010-09-22 16:32:55 -05:00
Petteri Tikander 46d43a0d88 unit: add fuzzy address check to test-sms 2010-09-22 12:20:57 -05:00
Denis Kenzior 753cab6f70 unit: Update test-sms to the new sr assembly api 2010-09-21 08:44:48 -05:00
Petteri Tikander bbbdc32b43 unit: Add unit test for status report expiration 2010-09-10 10:31:27 -05:00
Denis Kenzior cab1dffe2b test-sms: Add basic SMS WAP-PUSH decoder test 2010-08-17 17:57:51 -05:00
Denis Kenzior 96ef528b27 test-sms: Unify some copy-pasted code 2010-08-17 16:38:59 -05:00
Denis Kenzior f8a5e7d0bf test-sms: Update with a real EMS test 2010-07-13 09:51:02 -05:00
Denis Kenzior 98a8b4ecff test-sms: Fix a memory leak 2010-07-08 14:27:33 -05:00
Denis Kenzior a2596cb333 unit: Add unit tests for status report assembly 2010-06-21 15:21:40 -05:00
Pasi Miettinen ccb362383c test-sms: Update unit test to the new API 2010-06-07 13:01:19 -05:00
Denis Kenzior ff2a3029b3 test-sms: Add a unit test for the previous bugfix 2010-06-01 10:08:58 -05:00
Denis Kenzior d3c2535fae Fix: Dead Assignments 2010-02-04 00:14:49 -06:00
Marcel Holtmann 7d7a61f933 Fix some leftover oudated copyrights 2010-01-28 22:10:51 +01:00
Denis Kenzior 44848d5a9b Add unit test for max message size encoding 2009-12-03 00:26:20 -06:00
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -05:00
Denis Kenzior cbe773330f Make sure unit tests also use right pdu buffer len 2009-09-16 05:07:36 -05:00
Denis Kenzior 40ef883fe4 Add ability to expire PLMN wide messages 2009-09-10 17:40:16 -05:00
Denis Kenzior ac4c183a01 Add unit test for CBS topic range functions 2009-09-10 16:13:15 -05:00
Denis Kenzior 21f5f0cf92 Add unit test for sms assembly serialization 2009-09-08 16:43:53 -05:00
Denis Kenzior 8a31dc3312 Fixup unit test data
50 in first octet of deliver isn't valid
2009-09-08 16:24:31 -05:00
Andrzej Zaborowski 06ea6137a3 Write state of SMS assembly to disk and restore on startup.
This way we can continue receiving segmented messages over a reset or
crash.
2009-09-08 14:44:39 -05:00
Marcel Holtmann 5847975b89 Add missing HAVE_CONFIG_H checks 2009-09-05 07:36:38 +02:00
Denis Kenzior d9876f759d Fix signedness warning 2009-07-13 22:33:47 -05:00
Denis Kenzior 7c7894cd45 Fix missing gprintf include 2009-07-13 22:33:47 -05:00
Denis Kenzior c722e8077c Add Unit test for CBS assembly utilities 2009-07-02 19:03:05 -05:00
Denis Kenzior bf2543b207 Fix memory leaks in unit tests 2009-07-02 19:03:05 -05:00
Denis Kenzior 5ec2e69daf Update unit test 2009-07-02 19:03:04 -05:00
Denis Kenzior cd7ee03542 Add unit test for CBS encode / decode 2009-07-02 19:03:04 -05:00
Denis Kenzior 97afa57b7a Print new line as intended 2009-06-24 20:00:19 -05:00
Denis Kenzior 6793cc7800 Another type safety fix 2009-06-24 20:00:19 -05:00