aboutsummaryrefslogtreecommitdiff
path: root/tools/test.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-19 17:37:37 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-19 17:37:37 -0800
commita89d69e843ba83df928051005d02a932a9981f46 (patch)
tree17f99cda2d4e5f0a7983ed14f4ac559b64944207 /tools/test.nom
parent43ff3892f39188163446f1a00ee8d2aad59e0392 (diff)
Autoformatted/auto-upgraded.
Diffstat (limited to 'tools/test.nom')
-rwxr-xr-xtools/test.nom12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/test.nom b/tools/test.nom
index 32c9b7a..bdbec54 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V4.10.12.7
+#!/usr/bin/env nomsu -V4.11.12.8
#
Tool to run all tests in a file (i.e. the code block inside a call to 'test %'). Usage:
nomsu tools/test.nom file1 file2 directory1 ...
@@ -17,11 +17,13 @@ if (%args.1 == "-v"):
:
for %path in (command line args):
for %filename in (files for %path):
- if (%filename == "-"): %filename = "stdin"
- if ((%filename::matches "%.nom$") or (%filename == "stdin")):
- add %filename
+ if (%filename == "-"):
+ %filename = "stdin"
+ if ((%filename::matches "%.nom$") or (%filename == "stdin")): add %filename
+
# Make sure all the files get run
-for %filename in %to_run: use %filename
+for %filename in %to_run:
+ use %filename
%tests = {: for %s = %t in (tests): add (=lua "Source:from_string(\%s)") = %t}
for %filename in %to_run:
%file_tests = []