diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-18 19:23:20 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-18 19:24:37 -0800 |
| commit | 94740a9b414a0fd9af70acb9b8bf3b9576b537e1 (patch) | |
| tree | d0b18232b285d3f5216dce195fb06b6f3685b070 /tools/test.nom | |
| parent | ad09f002e84d0e317c9563784b829f6f0102e994 (diff) | |
Improved command line interface and robustness of tools.
Diffstat (limited to 'tools/test.nom')
| -rwxr-xr-x | tools/test.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test.nom b/tools/test.nom index 5b36010..7b5842c 100755 --- a/tools/test.nom +++ b/tools/test.nom @@ -9,9 +9,9 @@ use "lib/consolecolor.nom" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Make sure all the files get run -for $filename in (command line args).extra_args: use $filename -$tests = {: for $s = $t in (tests): add (=lua "Source:from_string(\$s)") = $t} -for $filename in (command line args).extra_args: +for $filename in $(COMMAND LINE ARGS).extras: use $filename +$tests = {: for $s = $t in $TESTS: add (=lua "Source:from_string(\$s)") = $t} +for $filename in $(COMMAND LINE ARGS).extras: $file = (read file $filename) $version = ($file|matching "#![^\n]* nomsu %-V[ ]*([^\n]*)") $file_tests = [] |
