File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 40
40
nRF52: Speed up bootloader, remove pauses on Pixl.js
41
41
Pixl.js: fix self-test/terminal print - write to screen immediately after newline unless in IRQ
42
42
Fix issue with iteration over arrays with negative entries (these should be converted to Strings)
43
+ Linux: improve command-line, allow recursive test directory and more than one test (eg wildcard + shell expansion)
43
44
44
45
2v05 : Add Array.includes
45
46
Fix (Number.toFixed) rounding, eg (1234.505).toFixed(2)
Original file line number Diff line number Diff line change @@ -324,6 +324,7 @@ void show_help() {
324
324
warning (" --test-all Run all tests (in 'tests' directory)" );
325
325
warning (" --test-dir dir Run all tests in directory 'dir'" );
326
326
warning (" --test test.js Run the supplied test" );
327
+ warning (" --test test.js Run the supplied test" );
327
328
warning (" --test-mem-all Run all Exhaustive Memory crash tests" );
328
329
warning (" --test-mem test.js Run the supplied Exhaustive Memory crash "
329
330
"test" );
@@ -392,9 +393,16 @@ int main(int argc, char **argv) {
392
393
telnetEnabled = true;
393
394
#endif
394
395
} else if (!strcmp (a , "--test" )) {
395
- if (i + 1 >= argc )
396
+ bool ok ;
397
+ if (i + 1 >= argc ) {
396
398
fatal (1 , "Expecting an extra arguments" );
397
- bool ok = run_test (argv [i + 1 ]);
399
+ } else if (i + 2 == argc ) {
400
+ ok = run_test (argv [i + 1 ]);
401
+ } else {
402
+ i ++ ;
403
+ while (i < argc ) filelist_add (& test_files , argv [i ++ ]);
404
+ ok = run_test_list (& test_files );
405
+ }
398
406
exit (ok ? 0 : 1 );
399
407
} else if (!strcmp (a , "--test-dir" )) {
400
408
enumerate_tests (argv [i + 1 ]);
You can’t perform that action at this time.
0 commit comments