Commit Graph

25 Commits

Author SHA1 Message Date
Sergey Matyukevich cfcb6a7d9c unit: add validate_utf8_tlv tests 2021-01-19 10:05:05 -06:00
Denis Kenzior 2984391b31 unit: Switch decode_hex to l_util_from_hexstring 2018-12-27 18:18:51 -06:00
Denis Kenzior 497e38f237 unit: Use sim_app_record_free to avoid memleaks 2018-02-28 11:08:29 -06:00
James Prestwood 62382e8ac3 unit: fix test-simutil failure
A fixup was made in simauth to fix the AUTS length
and the simutil unit test was never updated to reflect
the length change.
2018-01-19 12:50:53 -06:00
Denis Kenzior ee34967a52 unit: Fix up style issues 2017-10-11 10:29:16 -05:00
James Prestwood 43ca69afbb unit: add gsm and umts parse/build unit tests 2017-10-11 10:29:16 -05:00
Slava Monich 1878f6954d unit: Avoid use of uninitialised data in test-simutil
GTest: run: /testsimutil/ber tlv encode EFpnn
==16777== Conditional jump or move depends on uninitialised value(s)
==16777==    at 0x4068CB: ber_tlv_iter_next (simutil.c:369)
==16777==    by 0x406C39: ber_tlv_find_by_tag (simutil.c:483)
==16777==    by 0x407E1D: sim_eons_add_pnn_record (simutil.c:1027)
==16777==    by 0x402C39: test_ber_tlv_builder_efpnn (test-simutil.c:181)
==16777==    by 0x4EA3A80: g_test_run_suite_internal
==16777==    by 0x4EA3F9A: g_test_run_suite
==16777==    by 0x4EA3FD0: g_test_run
==16777==    by 0x4042FA: main (test-simutil.c:518)
2017-08-24 17:28:17 -05:00
Alfonso Sanchez-Beato 352e3ebb76 unit: Fix test to use valid EF_PNN
test-simutil was not using EF_PNN files with a valid format.
2014-03-14 12:24:26 -05:00
Denis Kenzior 196183a3e5 unit: Add 2G and 3G path lookup tests 2012-11-22 10:26:34 -06:00
Denis Kenzior cc14e85fa6 unit: Fix Style 2012-11-22 10:26:34 -06:00
Denis Kenzior 5e68694a82 unit: Remove failing test
We removed the needed file id from the sim database.  It was not being
used.
2012-11-22 10:26:34 -06:00
Marcel Holtmann 603d7dfa10 unit: Update copyright information 2011-10-10 13:40:17 -07:00
Andrzej Zaborowski 91bdf99e49 unit: unit test for sim_parse_app_template_entries 2011-01-20 11:15:38 -06:00
Jeevaka Badrappan 2b8b08c134 unit: M15 coding style fix 2011-01-12 08:06:59 -08:00
Lucas De Marchi 2012940822 unit: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 11:48:53 -06:00
Andrzej Zaborowski dcc23e30fe test-simutil: Add a BER-TLV encoding tests 2010-05-25 16:52:51 -05:00
Denis Kenzior 066dc51f85 Add BER-TLV iterator unit test 2010-02-23 12:03:03 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior c8150fc120 Use small caps for 2G/3G functions 2009-10-02 18:25:56 -05:00
Denis Kenzior 98e2228c27 Add unit test for 3G STATUS response data 2009-10-02 18:25:56 -05:00
Denis Kenzior 53496c6a32 Add unit test for EF database 2009-10-02 18:25:56 -05:00
Marcel Holtmann 5847975b89 Add missing HAVE_CONFIG_H checks 2009-09-05 07:36:38 +02:00
Denis Kenzior 7abeb8e4a0 Use types.h instead of driver.h here 2009-08-20 12:48:28 -05:00
Andrzej Zaborowski ebf6fca07a Clean up in sim.c.
Remove unused variables and fields.
Move EFadn format parsing to a common function because various files use
this same format.
2009-07-31 09:55:46 -05:00
Andrzej Zaborowski d1a9ac7812 Test EONS handling. 2009-07-17 23:48:29 -05:00