From 94740a9b414a0fd9af70acb9b8bf3b9576b537e1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 18 Dec 2018 19:23:20 -0800 Subject: Improved command line interface and robustness of tools. --- tools/test.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/test.nom') 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 = [] -- cgit v1.2.3