Kristen Carlson Accardi
76834cf260
test-stkutil: add html attribute tests for play_tone_test
2010-07-13 14:59:22 -05:00
Kristen Carlson Accardi
5a66a651cc
test-stkutil: add html attribute tests for get_input_test
2010-07-13 14:59:22 -05:00
Kristen Carlson Accardi
19bbbcdf18
test-stkutil: add html attribute tests for get_inkey_test
2010-07-13 14:59:21 -05:00
Kristen Carlson Accardi
a414e6af5e
test-stkutil: add html attribute test for Display Text tests
2010-07-13 14:59:21 -05:00
Kristen Carlson Accardi
c53bfdaf56
test-stkutil: add unit test for html text attributes
2010-07-13 14:59:21 -05:00
Denis Kenzior
f8a5e7d0bf
test-sms: Update with a real EMS test
2010-07-13 09:51:02 -05:00
Yang Gu
058d3d0cd4
Interpret "" Alpha Id as empty data object
...
There needs to be a way to distinguish between no alphaid and "empty
data object" because on some occasions they have different meanings. In
the Call Control envelope, no Alpha Identifier means the terminal can
inform the user about the call being modified by SIM while empty data
object means no hint should be given.
2010-07-09 12:30:12 -05:00
Denis Kenzior
98a8b4ecff
test-sms: Fix a memory leak
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
3ce1f11446
test-stkutil: Fix always true condition.
2010-07-02 14:50:21 -05:00
Denis Kenzior
b7badc74ad
test-stkutil: Fix some memory leaks
2010-07-02 14:50:05 -05:00
Andrzej Zaborowski
365183d5a0
stkutil: Move scaddr field to gsm_sms
2010-07-02 14:13:45 -05:00
Andrzej Zaborowski
ab7f88233d
stkutil: Refactor command parser error handling
...
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found. We need the command details to be able to
even respond to the command.
This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Andrzej Zaborowski
d5fec53d23
test-common: Avoid accessing an unitialised variable.
...
Fixes a segfault, reported by valrgind as:
[...]
==6300== Use of uninitialised value of size 4
==6300== at 0x8048B4D: test_invalid (test-common.c:81)
2010-06-21 15:21:40 -05:00
Denis Kenzior
a2596cb333
unit: Add unit tests for status report assembly
2010-06-21 15:21:40 -05:00
Andrzej Zaborowski
d0018e9772
test-stkutil: Add a More Time response builder test
2010-06-18 14:04:57 -05:00
Yang Gu
6018d1fe82
stk: Add parser for timing advance objects
2010-06-18 13:57:55 -05:00
Yang Gu
042724c5ab
teststk: Add test for send ussd parser
2010-06-18 13:18:34 -05:00
Denis Kenzior
dc505be373
stkutil: Merge two versions of bcch_channel_list
2010-06-16 17:43:12 -05:00
Yang Gu
8cf6750f06
teststk: Add test for send ss parser
2010-06-16 17:43:11 -05:00
Andrzej Zaborowski
024123c51b
test-stkutil: Tests for Timer Expiration envelope
2010-06-15 12:09:17 -05:00
Andrzej Zaborowski
2f6dc72ae2
test-stkutil: Tests for Event Download envelope
2010-06-15 12:07:54 -05:00
Andrzej Zaborowski
6e4277eef8
stkutil: Refactor struct stk_other_address
2010-06-15 12:06:47 -05:00
Andrzej Zaborowski
dda6692d7d
test-stkutil: Tests for Call Control envelope
2010-06-15 12:06:38 -05:00
Andrzej Zaborowski
08c689ca7c
test-stkutil: MO SMS Control envelope tests
2010-06-09 18:03:20 -05:00
Andrzej Zaborowski
6120e487b5
test-stkutil: Menu Selection envelope tests
2010-06-09 12:30:58 -05:00
Andrzej Zaborowski
758005a7c4
test-stkutil: CBS-PP Data Download envelope tests
2010-06-09 12:28:58 -05:00
Andrzej Zaborowski
d9f4abfd3f
test-stkutil: SMS-PP Data Download envelope tests
2010-06-09 12:23:48 -05:00
Andrzej Zaborowski
ef408ae1a6
stkutil: Use static buf in stk_pdu_from_response
2010-06-09 12:19:52 -05:00
Pasi Miettinen
ccb362383c
test-sms: Update unit test to the new API
2010-06-07 13:01:19 -05:00
Yang Gu
f90bf71e30
stktest: Add negative cases for setup menu
2010-06-01 14:02:38 -05:00
Denis Kenzior
ff2a3029b3
test-sms: Add a unit test for the previous bugfix
2010-06-01 10:08:58 -05:00
Andrzej Zaborowski
103961c71b
test-stkutil: Add Launch Browser response builder tests
2010-05-28 11:41:53 -05:00
Denis Kenzior
652ce11ca1
test-stkutil: Fix issue with whitespace
2010-05-28 11:41:05 -05:00
Andrzej Zaborowski
1914716dd7
test-stkutil: Add Language Notification response
2010-05-28 11:38:44 -05:00
Andrzej Zaborowski
27a74e772e
test-stkutil: Add the Send DTMF response tests
2010-05-28 11:37:57 -05:00
Andrzej Zaborowski
93fafad18e
test-stkutil: Add Run AT Command response builder
2010-05-28 11:35:46 -05:00
Andrzej Zaborowski
5af0120c67
test-stkutil: Add Set Up Idle Mode response builder
2010-05-28 11:33:59 -05:00
Andrzej Zaborowski
d253d479eb
test-stkutil: Add Timer Management response tests
2010-05-28 11:32:49 -05:00
Andrzej Zaborowski
ce955c2597
test-stkutil: Add a Set Up Event List response test
2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
ad97689b86
test-stkutil: Add Provide Local Info response tests
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
280d8d4283
test-stkutil: Add a Polling Off response test
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
9929ec229f
test-stkutil: Add Set Up Call response tests
2010-05-28 10:42:08 -05:00
Yang Gu
6643e115a8
teststk: Add test for launch browser parser
2010-05-27 10:26:36 -05:00
Yang Gu
fd1e71163c
test-stkutil: Add cases for send sms parser
2010-05-27 07:27:26 -05:00
Yang Gu
beb4e2c71a
teststk: Use check_common_text() to check string
2010-05-27 07:08:42 -05:00
Yang Gu
55a2596e84
teststk: Add check of len in byte array
2010-05-27 07:07:18 -05:00
Yang Gu
d5f3a4bc96
teststk: Use sim bcd version
2010-05-27 07:05:04 -05:00
Andrzej Zaborowski
79b3199f23
test-stkutil: Use gcc4.3 compatible initialisers.
...
Reformat according to ideas on IRC.
2010-05-26 12:08:31 -05:00
Yang Gu
4cb2eec891
teststk: Add test for language notification parser
2010-05-25 17:55:58 -05:00
Yang Gu
b4e081f0e1
test-stk: Add test for send dtmf parser
2010-05-25 17:36:30 -05:00
Yang Gu
9b0c13d049
test-stk: Add test for run at command parser
2010-05-25 17:28:55 -05:00
Yang Gu
3af4600368
test-stk: Add test for setup idle mode text parser
2010-05-25 17:17:28 -05:00
Andrzej Zaborowski
a20d4e8cae
test-stkutil: Add Select Item response tests
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
0366159a66
test-stkutil: Add Set Up Menu response tests
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
0a3324f8b6
test-stkutil: Add Refresh response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
35e2722b01
test-stkutil: Add Poll Interval response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
fad142acf2
test-stkutil: Add Play Tone response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
6da5a6ce09
test-stkutil: Add Send SMS response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
febeb5d9c5
test-stkutil: Add Get Input response tests
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
355b038c6f
test-stkutil: Add Get Inkey response tests
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
4dcce0304a
test-stkutil: Add Display Text response tests
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
dcc23e30fe
test-simutil: Add a BER-TLV encoding tests
2010-05-25 16:52:51 -05:00
Yang Gu
4c7b877e8c
test-stk: Add test for timer management parser
2010-05-13 15:33:48 -05:00
Yang Gu
3fb819790a
test-stk: Add test for get reader status parser
2010-05-13 15:33:02 -05:00
Yang Gu
854d09a286
test-stk: Add test for perform card apdu parser
2010-05-13 15:26:04 -05:00
Yang Gu
e132689cbb
test-stkutil: Add test for event list parser
2010-05-13 13:57:17 -05:00
Yang Gu
a1f95b55a5
test-stk: Add test for provide local info parser
2010-05-13 13:53:32 -05:00
Yang Gu
a6fb6b54fd
test-stkutil: Add test for polling off parser
2010-05-13 13:52:39 -05:00
Denis Kenzior
48bc1c3575
test-stkutil: file_list instead of fl is better
2010-05-13 13:51:50 -05:00
Yang Gu
8a60f1244c
test-stkutil: Add test for refresh parser
2010-05-13 13:49:59 -05:00
Yang Gu
57c6d1ec72
test-stkutil: Add unit test for setup call parser
2010-05-13 13:48:01 -05:00
Yang Gu
d04ebc0fdb
test-stkutil: Refactor test for send sms parser
2010-05-13 13:45:59 -05:00
Yang Gu
b99bf23f19
test-stkutil: Use dedicated functions to check
2010-05-13 13:44:49 -05:00
Denis Kenzior
fd6c902572
test-stkutil: Handle NULL strings
...
g_str_equal does not handle NULL strings
2010-05-13 13:43:41 -05:00
Yang Gu
7b6a2fa541
test-stkutil: Add test for select item parser
2010-05-13 12:30:04 -05:00
Yang Gu
a431bf4ffc
test-stkutil: Add test for setup menu parser
2010-05-13 11:09:43 -05:00
Yang Gu
651ad72075
test-stkutil: Add test for poll interval parser
2010-05-13 10:54:50 -05:00
Denis Kenzior
9d56691898
stkutil: Don't use escaped strings
...
In general this is bad style, using concatentated strings ala "" "" is
better.
2010-05-11 12:29:11 -05:00
Yang Gu
a3da155828
test-stkutil: Add unit test for play tone parser
2010-05-11 12:25:34 -05:00
Yang Gu
dff6deb6a3
Replace check_text with check_common_text
2010-05-11 12:23:27 -05:00
Yang Gu
6e4f5c5122
stk: Unify variable names to use abbreviation
2010-05-11 12:19:09 -05:00
Yang Gu
652e943c74
test-stkutil: Use enum for icon_id
2010-05-11 12:18:41 -05:00
Yang Gu
f4bd7d21a4
test-stkutil: Add unit test for get input parser
2010-05-11 12:17:27 -05:00
Yang Gu
e42b7282f7
Add unit test for get inkey parser
2010-04-28 20:24:54 -05:00
Denis Kenzior
20a32ff5e8
Fix: g_at_chat_shutdown usage in test-mux
2010-04-28 17:27:33 -05:00
Yang Gu
f6f5884fb4
test-stkutil: Add unit test for more time parser
2010-04-27 09:33:02 -05:00
Yang Gu
ef9e9038a0
test-stkutil: Refactor display text unit tests
2010-04-27 09:31:30 -05:00
Denis Kenzior
49e94c3a53
Add basic unit test for send sms parser
2010-03-15 21:02:07 -05:00
Denis Kenzior
ccb37262f5
stk: Add initial unit test for Get Input
2010-03-01 18:16:02 -06:00
Denis Kenzior
93e24f22b8
Update unit tests with Duration tests
2010-03-01 16:03:06 -06:00
Denis Kenzior
cee597ffb4
Update unit tests with icon_id support
2010-03-01 15:16:01 -06:00
Denis Kenzior
c26619539d
Update unit test for USAT display text command
2010-02-23 17:11:29 -06:00
Denis Kenzior
066dc51f85
Add BER-TLV iterator unit test
2010-02-23 12:03:03 -06:00
Denis Kenzior
d35d290702
Add stub for unit test for Sim Toolkit utils
2010-02-18 16:20:30 -06: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
Marcel Holtmann
7188be28f0
Use blocking GAtChat operation for CAIF unit test
2010-01-28 22:06:39 +01:00
Marcel Holtmann
2e4bcbf0ac
The old CAIF character device are not TTYs
2010-01-28 21:34:16 +01:00
Marcel Holtmann
bcad38ceff
Use non-blocking and raw mode for test with CAIF character devices
2010-01-28 16:48:33 +01:00
Marcel Holtmann
c25347dc7e
Add second CAIF test for using character interface
2010-01-28 12:47:08 +01:00
Marcel Holtmann
ae6a0b32cf
Some minor style cleanups for STE support
2010-01-28 11:30:56 +01:00
Marcel Holtmann
648eded47e
Add simple unit test for CAIF sockets
2010-01-28 11:25:54 +01:00
Denis Kenzior
60a0fc5a5c
Style: Various issues
2010-01-12 17:54:37 -06:00
Denis Kenzior
c4e89c46c8
Fix: Update unit test to the new return semantics
2010-01-07 14:41:18 -06:00
Denis Kenzior
b72451ef8c
Add unit test for idmap utilities
2010-01-07 13:00:41 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Denis Kenzior
44848d5a9b
Add unit test for max message size encoding
2009-12-03 00:26:20 -06:00
Denis Kenzior
17696e133b
Add unit test for valid APN names
2009-10-30 15:52:38 -05:00
Olivier Le Thanh Duong
6d9bd02480
Migrate from RFC2822 to ISO8601
2009-10-21 19:04:47 -05:00
Denis Kenzior
350141ac9b
Update unit tests for GSM 07.10 implementation
2009-10-15 16:15:17 -05:00
Denis Kenzior
90bdd961a7
Fix: Quiet compiler warning
2009-10-15 16:15:17 -05:00
Denis Kenzior
e4017db3bb
Update unit test for the new API
2009-10-15 16:15:16 -05:00
Denis Kenzior
b1ff21f059
Fixup unit test to the new API
2009-10-15 16:15:16 -05: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
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
Aki Niemi
a8fb6bf356
Add unit test for Turkish variant
...
Also fixes an error in the default table unit test.
2009-09-08 14:16:23 +03:00
Marcel Holtmann
7b00e73caf
Update test program for GAtMux API
2009-09-08 09:05:56 +02:00
Marcel Holtmann
02eacb65af
Update GSM 07.10 unit testing
2009-09-06 08:35:34 +02:00
Marcel Holtmann
c9ba0e7df5
Integrate the multiplexer into the AT chat library
2009-09-06 00:25:16 +02:00
Marcel Holtmann
6dae50d8e5
Add unit testing tool for GSM 07.10 multiplexer
2009-09-05 07:46:50 +02:00
Marcel Holtmann
5847975b89
Add missing HAVE_CONFIG_H checks
2009-09-05 07:36:38 +02:00
Marcel Holtmann
70aab2a826
Convert to fully non-recursive build system
2009-08-24 23:49:40 -07: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
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
db71137fd2
Update unit tests
2009-07-07 14:33:59 -05:00
Denis Kenzior
a51700abf5
Fix another small memory leak in unit tests
2009-07-06 19:38:44 -05:00
Denis Kenzior
ea43098867
Add unit test for SIM string conversion utility
2009-07-06 19:33:28 -05:00
Denis Kenzior
36b52d4f87
Update unit test for empty strings
2009-07-06 19:32:24 -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
Shane Bryan
e055d9998a
fix test compile
...
Signed-off-by: Shane Bryan <shane.bryan@linux.intel.com>
2009-06-24 20:00:19 -05:00
Denis Kenzior
ee65dc3524
Add yet another unit test
2009-06-19 21:13:58 -05:00
Denis Kenzior
990ab62207
Update unit tests
2009-06-19 21:13:20 -05:00
Andrzej Zaborowski
f93376229a
Teach USSD to recognise password change strings.
...
This is slightly hacky, part of ussd.c responsible for registering services
is duplicated and parse_ss_control_string is modified to accept a fourth
SI fragment in the input string.
2009-06-18 16:57:58 -05:00
Denis Kenzior
e9a0e82e53
Add Unit test for SMS re-assembly code
2009-06-14 02:02:16 -05:00
Denis Kenzior
bc6165ea8e
Rename ud_len_in_octets to sms_udl_in_bytes
2009-06-05 19:58:11 -05:00