aboutsummaryrefslogtreecommitdiff
path: root/tools/test.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-22 16:30:49 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-22 16:30:49 -0700
commit4c1f0aca7af9eaedd66ce1244557358d9d36411c (patch)
tree42b4c2d43ae458bad7564704b648089b307c2448 /tools/test.nom
parent04d7edefa372f80160603ddd9039a7120527e4bc (diff)
Moving all the rest of the tests over to inline versions.
Diffstat (limited to 'tools/test.nom')
-rwxr-xr-xtools/test.nom6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/test.nom b/tools/test.nom
index a80ea55..3f2622e 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -8,9 +8,13 @@ if (%args.1 == "-v"):
remove index 1 from %args
%verbose = (yes)
+# Make sure all the files get run
+for %path in (command line args):
+ for file %filename in %path:
+ if (%filename matches "%.nom$"): use %filename
+
%tests = ((=lua "Source:from_string(\%s)") = %t for %s = %t in (tests))
for %path in (command line args):
- if (%path is "-i"): %inplace = (yes)
for file %filename in %path:
unless (%filename matches "%.nom$"): do next %filename
%file_tests = []