aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-01 16:51:04 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-01 16:51:04 -0400
commit93217d7cce249854248ce68d455705253cf63a65 (patch)
treeaad94c9b71d94247c6c31c171a044895b3171701 /test
parentd827ec77a2a53f4b99455b0512c7b2fd237d353c (diff)
Clean up test directory structure
Diffstat (limited to 'test')
-rw-r--r--test/README.txt44
-rw-r--r--[-rwxr-xr-x]test/dc.bqn2
-rwxr-xr-xtest/dzaima (renamed from test/dz_comp)0
-rwxr-xr-xtest/wasm.js (renamed from test/dz_wasm.js)0
4 files changed, 24 insertions, 22 deletions
diff --git a/test/README.txt b/test/README.txt
index f11502b9..97a9d6da 100644
--- a/test/README.txt
+++ b/test/README.txt
@@ -1,26 +1,30 @@
-Test scripts:
+Does your BQN work? Run
- Script Compiler host Output host/VM
-- this.bqn Any Same
-- unit.bqn Any Same + repo
-- js Self-host Javascript
-- dz_comp dzaima/BQN dzaima/BQN + repo
-- dz_wasm.js dzaima/BQN WebAssembly
+$ bqn test/this.bqn
+
+to see. There are additional tests here used for development:
+
+ Script Compiler host Output host/VM
+- this.bqn bqn Self
+- js docs/bqn.js Self
+- unit.bqn bqn Self + repo
+- dzaima dzaima/BQN Self + repo
+- wasm.js bqn WebAssembly
this.bqn can be run in any implementation that supports the necessary
-system functions (•file.List, •file.Lines, •args, •Out, •BQN, •Repr). It
-runs all tests by default, and can be run on a subset by passing their
-names as arguments.
+system functions (•file.List, •file.Lines, •args, •Out, •BQN, •Repr).
-dz_comp uses the self-hosted compiler ../src/c.bqn by default but not
-the runtime ../src/r*.bqn. Pass -rt to test with the runtime, and -nocomp
-to test dzaima/BQN only (this doesn't pass as of the time of writing).
+unit.bqn and dz_comp use the self-hosted compiler ../src/c.bqn by
+default but not the runtime ../src/r*.bqn. Pass -rt to test with the
+runtime, and -nocomp to test dzaima/BQN only (this doesn't pass as of
+the time of writing).
-Test cases (cases/):
- js dz_comp dz_wasm.js
-- simple.bqn * * *
-- syntax.bqn * *
-- prim.bqn *
+Every script but wasm.js can be run on a specified set of tests by
+passing the test names as arguments. this.bqn and unit.bqn run on all
+tests by default; other scripts use the following default tests:
-js or dz_comp can be run on a specified set of tests by passing the test
-names as arguments.
+Test cases (cases/):
+ js dzaima wasm.js
+- simple.bqn * * *
+- syntax.bqn * *
+- prim.bqn *
diff --git a/test/dc.bqn b/test/dc.bqn
index 5a0ccae8..0607dc99 100755..100644
--- a/test/dc.bqn
+++ b/test/dc.bqn
@@ -1,5 +1,3 @@
-#! /usr/bin/env dbqn
-
# dzaima/BQN block headers have a different format to account for
# multiple bodies, and use variable names instead of counts.
# Rearrange and make up some names so the bytecode can be run.
diff --git a/test/dz_comp b/test/dzaima
index e9bf1c06..e9bf1c06 100755
--- a/test/dz_comp
+++ b/test/dzaima
diff --git a/test/dz_wasm.js b/test/wasm.js
index b1afa586..b1afa586 100755
--- a/test/dz_wasm.js
+++ b/test/wasm.js