aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-30 14:12:22 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-30 14:12:22 -0700
commitfba035595df7ebd694fc33c804727c94a5ecb024 (patch)
tree4208ff38d8bae8ef7ec14a989386a9a32cf581d0 /tools
parent2a12310b25f68208ff0101fce5d0137f267c7394 (diff)
Need to make sure all the files get run so their tests are loaded.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test.nom5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/test.nom b/tools/test.nom
index 1b3a17c..ebd9fab 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -16,6 +16,9 @@ for %path in (command line args):
for file %filename in %path:
if (%filename matches "%.nom$"): use %filename
+for %path in (command line args):
+ use %path
+
%tests = ((=lua "Source:from_string(\%s)") = %t for %s = %t in (tests))
for %path in (command line args):
for file %filename in %path:
@@ -24,7 +27,7 @@ for %path in (command line args):
for %src = %test in %tests:
if (%src.filename == %filename):
add {test:%test, source:%src} to %file_tests
-
+
unless (%file_tests is empty):
sort %file_tests by % -> %.source
lua> "io.write('[ .. ] ', \%filename); io.flush()"