diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 14:12:22 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 14:12:22 -0700 |
| commit | fba035595df7ebd694fc33c804727c94a5ecb024 (patch) | |
| tree | 4208ff38d8bae8ef7ec14a989386a9a32cf581d0 /tools/test.nom | |
| parent | 2a12310b25f68208ff0101fce5d0137f267c7394 (diff) | |
Need to make sure all the files get run so their tests are loaded.
Diffstat (limited to 'tools/test.nom')
| -rwxr-xr-x | tools/test.nom | 5 |
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()" |
