blob: a049dec55b52675b3464f13e54b4f9e70782c9a0 [file] [log] [blame]
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +01001Testing generation of GSM0808 messages
2Testing creating Layer3
Philipp Maierfa896ab2017-03-27 16:55:32 +02003Testing creating Layer3 (AoIP)
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +01004Testing creating Reset
Philipp Maier15596e22017-04-05 17:55:27 +02005Testing creating Reset Ack
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +01006Testing creating Clear Command
7Testing creating Clear Complete
Philipp Maierb478dd32017-03-29 15:50:05 +02008Testing creating Chipher Mode Command
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +01009Testing creating Cipher Complete
10Testing creating Cipher Reject
11Testing creating CM U
12Testing creating SAPI Reject
Philipp Maierc6144a22017-03-29 17:53:43 +020013Testing creating Assignment Request
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +010014Testing creating Assignment Complete
Philipp Maierfa896ab2017-03-27 16:55:32 +020015Testing creating Assignment Complete (AoIP)
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +010016Testing creating Assignment Failure
Philipp Maierfa896ab2017-03-27 16:55:32 +020017Testing creating Assignment Failure (AoIP)
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +010018Testing creating Clear Request
Philipp Maier3d48ec02017-03-29 17:37:55 +020019Testing creating Paging Request
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +010020Testing creating DTAP
21Testing prepend DTAP
Neels Hofmeyr74663d92018-03-23 01:46:42 +010022------- test_cell_id_list_add
23 cell_id_list cgi[0] = {
24 }
25
26gsm0808_cell_id_list_add(&cil, &lac1) --> rc = 1
27 cell_id_list lac[1] = {
28 0: 123
29 }
30
31gsm0808_cell_id_list_add(&cil, &lac1) --> rc = 0
32 cell_id_list lac[1] = {
33 0: 123
34 }
35
36gsm0808_cell_id_list_add(&cil, &lac2) --> rc = 2
37 cell_id_list lac[3] = {
38 0: 123
39 1: 456
40 2: 789
41 }
42
43gsm0808_cell_id_list_add(&cil, &lac2) --> rc = 0
44 cell_id_list lac[3] = {
45 0: 123
46 1: 456
47 2: 789
48 }
49
50gsm0808_cell_id_list_add(&cil, &cil) --> rc = 0
51 cell_id_list lac[3] = {
52 0: 123
53 1: 456
54 2: 789
55 }
56
57gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = -22
58 cell_id_list lac[3] = {
59 0: 123
60 1: 456
61 2: 789
62 }
63
64can't add to BSS list
65 cell_id_list bss[0]
66
67gsm0808_cell_id_list_add(&cil, &lac1) --> rc = -22
68 cell_id_list bss[0]
69
70other types (including NO_CELL) take on new type iff empty
71 cell_id_list no_cell[0]
72
73gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = 1
74 cell_id_list cgi[1] = {
75 0: 001-02-3-4
76 }
77
78gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = 0
79 cell_id_list cgi[1] = {
80 0: 001-02-3-4
81 }
82
83gsm0808_cell_id_list_add(&cil, &cgi2) --> rc = 2
84 cell_id_list cgi[3] = {
85 0: 001-02-3-4
86 1: 001-002-3-4
87 2: 005-006-7-8
88 }
89
90gsm0808_cell_id_list_add(&cil, &cgi2) --> rc = 0
91 cell_id_list cgi[3] = {
92 0: 001-02-3-4
93 1: 001-002-3-4
94 2: 005-006-7-8
95 }
96
97cil.id_list_len = 126
98gsm0808_cell_id_list_add(&cil, &cgi2a) --> rc = 1
99cil.id_list_len = 127
100
101cil.id_list_len = 126
102gsm0808_cell_id_list_add(&cil, &cgi3) --> rc = -28
103cil.id_list_len = 127
104gsm0808_cell_id_list_add(&cil, &cgi2a) --> rc = -28
105cil.id_list_len = 127
106------- test_cell_id_list_add done
Holger Hans Peter Freyther97510812012-01-22 13:36:52 +0100107Done