diff options
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 = [] |
