~aleteoryx/muditaos

ref: 25584f2b3c36ec6716f0518a8d38228ad01a493b muditaos/enabled_unittests -rw-r--r-- 12.6 KiB
25584f2b — Kuba Kleczkowski [EGD-5641] Fix cellular on linux 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
# Enabled test list
# test format
# TESTS_LIST["catch2-<binary-name>"]=" 
#        test 1;
#        test 1; 
#        test 3;
#"
# 
# each test is in separate line
# to disable test just rem it by putting # in front of it
# 
# folowing caracters have to be escaped:
# [],
# \[ \] \,

declare -A TESTS_LIST

TESTS_LIST["catch2-actions-registry-tests"]="
    Given actions registry when initialise it incorrectly then verify;
    Given empty actions registry when verify its state then no pending actions;
    Given actions registry when enqueue then check pending action;
    Given actions registry when enqueue then check if action was processed;
    Given actions registry when finished queued action then no pending actions;
    Given actions registry when enqueue multiple actions sequentially then count handled actions;
    Given actions registry when enqueue multiple actions at once then count handled actions;
    Given actions registry when enqueue multiple actions at once then wait for them to expire.;
    Given actions registry when enqueue multiple actions at once then process the specific ones only.;
"
#---------
TESTS_LIST["catch2-audio-test"]="
    Test audio tags;
    Audio settings string creation;
    Test AudioMux;
"
#---------
TESTS_LIST["catch2-calculator"]="
    Calculator utilities;
"
#---------
TESTS_LIST["catch2-callback-storage-test"]="
    CallbackStorageTests;
"
#---------
TESTS_LIST["catch2-cellular-datatransfer"]="
    Quectel AT DataTransfer commands;
"
#---------
TESTS_LIST["catch2-cellular-parse-result"]="
    CSCA parser test;
    CSCA set data;
    QECCNUM parser;
    CLCC parser;
    CLCC set data;
    CLCC conversion methods;
"
#---------
TESTS_LIST["catch2-cellular-qmbn"]="
    Quectel MBN test;
"
#---------
TESTS_LIST["catch2-cellular-request-factory"]="
    Emergency handling;
    MMI requests;
"
#---------
TESTS_LIST["catch2-cellular-response"]="
    Response COPS;
    Response CLIR;
    Response CLIP;
    Response CLCK;
    Response CCWA?;
    Response CCFC;
    Response QCFG IMS;
"
#---------
TESTS_LIST["catch2-cellular-simcard"]="
    SimCard functionality test;
"
#---------
TESTS_LIST["catch2-cellular-URC"]="
    +Qind: csq;
    +Qind: FOTA;
    +Cusd;
    +Ctze;
    +Creg;
    +Cmti;
    +CLIP;
    +CPIN;
    POWERED DOWN;
    Urc RESPONSE;
    +Qind: SMS DONE;
    +Qiurc: TCP Context and connection message;
    RING;
"
#---------
TESTS_LIST["catch2-commands-queue-tests"]="
    DrawCommandsQueueTests;
"
#---------
TESTS_LIST["catch2-context-pool-tests"]="
    ContextPoolTests;
"
#---------
TESTS_LIST["catch2-db"]="
    Alarms Record tests;
    Alarms Table tests;
    Calllog Record tests;
    Calllog Table tests;
    Contact Groups tests;
    Contacts address Table tests;
    Contacts Name Table tests;
    Contacts Number Table tests;
    Contact Record db tests;
    Test contact name formatting;
    Test converting contact data to string;
    Contact record numbers update;
    Contacts Ringtones Table tests;
    Contacts Table tests;
    Events Record tests;
    Notes Record tests;
    Notes Table tests;
    Query interface;
    SMS Record tests;
    SMS Table tests;
    SMS templates Record tests;
    SMS Templates Table tests;
    Thread Record tests;
    Threads Table tests;
"
#---------
TESTS_LIST["catch2-db-initializer"]="
    Create and destroy simple database;
    Database initialization scripts;
"
#---------
TESTS_LIST["catch2-dependency-graph-tests"]="
    Given Dependency Graph When topological sort empty graph then verify if result is empty;
    Given Dependency Graph When topological sort without dependencies then verify order;
    Given Dependency Graph When topological sort simple case then verify order;
    Given Dependency Graph When topological sort all depending on one then verify order;
    Given Dependency Graph When topological sort advanced case then verify order 1;
    Given Dependency Graph When topological sort advanced case then verify order 2;
    Given Dependency Graph When topological sort on directed cyclic graph then verify order;
"
#---------
TESTS_LIST["catch2-gui"]="
    Test BoundingBox intersect;
    Are fonts loaded;
    Draw window with labels;
    Draw window with box layouts;
    test context size and position;
    insertContextTest;
    gui::Item on input flow test;
    gui::Window on input flow test;
    Set size tests;
    Parsing English input language;
    Parsing numeric keyboard;
    Getting charKey after clicking button twice;
"
#---------
TESTS_LIST["catch2-gui-text"]="
    Text ctor;
    Text drawLines;
    Text buildDrawList;
    handle input mode ABC/abc/1234;
    handle longpress for digit in ABC mode;
    handle text expand;
    handle newline;
    handle text block - moved cursor to end;
    Text backup overwrite and restore tests;
    Text backup with max width restricted - overwrite restore and add tests;
    Text addition bounds - text sings count restricted;
    Text addition bounds - text widget size restricted;
    Text addition bounds - text widget line size restricted;
    Text addition bounds - multiple limits tests;
    Text newline navigation and deletion tests;
    RichText newline and empty lines tests;
    TextBlock Ctor/Dtor ;
    Text block - set/update/get text;
    Text block - remove text;
    Text block - get width;
    Text BlockCursor Ctor/Dtor ;
    TextDocument <-> BlockCursor fencing tests;
    TextDocument <-> BlockCursor operators: +\, ++\, -\, -- tests;
    add Char to empty;
    add Char;
    remove Char in empty;
    remove Char;
    add newline;
    add newline at the end;
    atEOL();
    operator-> for Text block with text;
    operator* for TextBlock;
    TextDocument ctor;
    TextDocument getBlockCursor;
    TextLine - ctor;
    TextLine - non fitting text;
    TextLine - multiple styles text;
    TextLine - elements sizes checkup;
    TextParse;
    Testo Font;
    TextLineCursor - navigation without scroll;
    TextLineCursor - navigation with scroll;
    TextLineCursor - addition and deletion with scroll;
"
#---------
TESTS_LIST["catch2-PowerManager"]="
    Power Manager CPU sentinels governor test;
"
#---------
TESTS_LIST["catch2-service-db"]="
    DB_API;
    Settings Messages;
"
#---------
TESTS_LIST["catch2-service-db-settings"]="
    SettingsApi;
"
#---------
TESTS_LIST["catch2-service-desktop"]="
    System Update Tests;
    Parser Test;
    DB Helpers test - json decoding;
    DB Helpers test - json encoding (contacts);
    DB Helpers test - json encoding (messages);
    Context class test;
    Endpoint Factory test;
    Secured Endpoint Factory test;
"
#---------
TESTS_LIST["catch2-service-desktop-endpoint-contacts"]="
    Endpoint Contacts Test;
"
#---------
TESTS_LIST["catch2-service-evtmgr"]="
    ScreenLightControlFunctions;
"
#---------
TESTS_LIST["catch2-StatefulController-tests"]="
    Given StatefulController when turn on then turned on;
    Given StatefulController when error during device registration then turned off;
    Given StatefulController when error during driver init then turned off;
    Given StatefulController when error during driver run then turned off;
    Given StatefulController when restart then don't init twice;
    Given StatefulController when turn off in off state then turned off;
    Given StatefulController when turn off in on state then turned off;
    Given StatefulController when shutdown in off state then terminated;
    Given StatefulController when shutdown in on state then terminated;
    Given StatefulController when process command successfully then turned on;
    Given StatefulController when processing command failed then restarted and turned on;
"
#---------
TESTS_LIST["catch2-unittest_ATStream"]="
    Channel Test- AT return parser;
"
#---------
TESTS_LIST["catch2-utils"]="
    Split tests;
    toNumeric tests;
    findAndReplaceAll tests;
    Converts enum to string;
    Get value from string;
    Swap endianness;
    Floating point to string;
    Fill leading digit in string;
    Hex to bytes;
    Bytes to hex;
"
#---------
TESTS_LIST["catch2-utils-clipboard"]="
    Clipboard;
"
#---------
TESTS_LIST["catch2-utils-conditional-invoke-tests"]="
    Successful global function call;
    Failed global function call;
    Successful class static function call;
    Failed class static function call;
    Successful class member function call;
    Failed class member function call;
"
#---------
TESTS_LIST["catch2-utils-duration"]="
    Duration - creation;
    Duration - arithemtics;
    Duration - comparision;
    Duration - display;
"
#---------
TESTS_LIST["catch2-utils-loggerbuffer"]="
    LoggerBuffer tests;
"
#---------
TESTS_LIST["catch2-utils-math"]="
    Math;
"
#---------
TESTS_LIST["catch2-utils-phonenumber"]="
    PhoneNumber - parsing;
    PhoneNumber - formatting;
    PhoneNumber - views;
    PhoneNumber - equality;
    PhoneNumber - matching;
    PhoneNumber - record validation;
    Number matcher - basics;
    Number matcher - match incoming (full list);
    Number matcher - match incoming (loose);
"
#---------
TESTS_LIST["catch2-utils-time_display"]="
    Time display parser;
"
#---------
TESTS_LIST["catch2-utils-ucs2"]="
    UCS2 to UTF8 conversion;
    UCS2 from UTF8 emoji 😁;
    UCS2 from UTF8 emoji 🍣;
    UCS2 text with emojis int the middle from UTF8 code;
    UTF8 to UCS2 conversion;
    TEST special input characters from UTF8;
    TEST special input characters from std::string;
    UTF8 emoji 🍣 from UCS2 code;
    UTF8 emoji 😁 and text ęą from UCS2 code;
    UTF8 emoji 😁 and text abc from UCS2 code;
    UTF8 text with emojis int the middle from UCS2 code;
    UCS2 to UTF8 long string conversion;
    UTF8 to UCS2 long string conversion;
"
#---------
TESTS_LIST["catch2-utils-utf8"]="
    UTF8: operator index returns value;
    UTF8: operator index exceeds string size;
    UTF8: operator== returns properly;
    UTF8: substr returns empty string when zero length is passed;
    UTF8: substr returns empty string when length is exceeded;
    UTF8: substr returns proper begin char;
    UTF8: substr returns proper string length;
    UTF8: find returns npos if not found;
    UTF8: find returns npos if pos exceeds string length;
    UTF8: find returns position of passed string;
    UTF8: find returns position of passed string when pos is passed;
    UTF8: findLast returns npos if not found;
    UTF8: findLast returns npos if pos exceeds string length;
    UTF8: findLast returns position of passed string;
    UTF8: findLast returns position of passed string when pos is passed;
    UTF8: split returns empty object if idx exceeds string length;
    UTF8: split returns propper string;
    UTF8: split strings have propper length after split;
    UTF8: split summary length is equal after split;
    UTF8: getLine returns empty string if its not line;
    UTF8: getLine returns proper string when line ends with n;
    UTF8: getLine returns proper string when line ends with r;
    UTF8: removeChar returns false when string to remove exceed;
    UTF8: removeChar returns false when pos to remove exceed;
    UTF8: removeChar returns propper string;
    UTF8: getChar;
    UTF8: encode / decode / how it works;
    UTF8 bad case scenario - operator\[\] returns;
    U8char && UTF8: encode;
    UTF8: insert whole string which doesn't work;
    UTF8: Convert to ascii if is ascii combination;
    UTF8: Not ASCII combination;
"
#---------
TESTS_LIST["catch2-vfs-core-fs"]="
    Corefs: Registering and unregistering block device;
    Corefs: Basic API test;
    Corefs: Create new file\, write\, read from it;
    Corefs: Register null filesystem;
    Corefs: Mount empty strings;
    Corefs: Write to not valid file descriptor;
    Corefs: Directory operations;
    Corefs: Read only filesystem;
    Corefs: Remount filesystem from RO to RW and to RO;
    Corefs: Autodetect filesystems;
    Corefs: Unittest integrated subsystem;
"
#---------
TESTS_LIST["catch2-vfs-disk"]="
    Registering and unregistering device;
    Parsing and checking partititons;
    Parsing and checking extended partititons;
    Parsing and checking invalid partititons;
    RW boundary checking;
    Null pointer passed to disk manager functions;
    Boundary checks for partitions;
    Disk sectors out of range for partition;
"
#---------
TESTS_LIST["catch2-vfs-littlefs"]="
    littlefs: Basic mount and functionality;
    littlefs: Read tests;
    littlefs: Write tests;
    littlefs: Read-only filesystem tests;
    littlefs: Directory tests;
    littlefs: Remount RO->RW->RW;
"
#---------
TESTS_LIST["catch2-vfs-dualmount"]="
    dualmount: Basic mount;
    dualmount: API tests;
"
#---------
TESTS_LIST["catch2-iosyscalls"]="
    VFS linux support;
"
#---------
TESTS_LIST["catch2-cellular-cmux"]="
    TS0170 frame;
"
#---------
TESTS_LIST["catch2-unittest_ATURCStream"]="
    URC AT Stream Parser;
"
#---------