aboutsummaryrefslogtreecommitdiff
path: root/test/dz_comp
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-14 20:47:05 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-14 20:47:05 -0500
commitd4e8cf5c90a2c5b6ed661e468842f34b631dbb44 (patch)
tree059ea10c25e449afb14591b0554068ed68b14fda /test/dz_comp
parent6c250d890add5f0fc09b94925ae528292642d8cb (diff)
Pass names of tests as options instead of using ad-hoc prim option
Diffstat (limited to 'test/dz_comp')
-rwxr-xr-xtest/dz_comp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dz_comp b/test/dz_comp
index 4fee5da3..1909a150 100755
--- a/test/dz_comp
+++ b/test/dz_comp
@@ -1,6 +1,7 @@
#! /usr/bin/env dbqn
-nc‿rt‿prim ← "-nocomp"‿"-rt"‿"-prim" ∊ •args
+nc‿rt ← "-nocomp"‿"-rt" ∊ •args
+files ← "simple"‿"syntax"‿"prim"⍟(0=≠) ('-'≠⊑)¨⊸/ •args
"Can't test runtime without the compiler!" ! ¬nc∧rt
⟨DRun,DCompile⟩ ← •Import "../dc.bqn"
@@ -26,7 +27,7 @@ Native ← {⍎𝕩}
exec ← (rt¬nc)◶⟨Native˙, DRun˙, {𝕩⊸DRun}∘GetRT⟩ @
Cases ← (0<≠)◶0‿('#'≠⊑)¨⊸/ · •FLines "cases/"∾∾⟜".bqn"
-c ← ∾ Cases¨ "simple"‿"syntax"∾prim/⟨"prim"⟩
+c ← ∾ Cases¨ files
M ← {e‿b:
Err ← {(@+10)∾˜""""∾b∾""": expected "∾e∾" but received "∾⍕𝕩}
(Native e) ≢◶""‿Err Exec b