aboutsummaryrefslogtreecommitdiff
path: root/test/README.txt
blob: b61cf09dbbfee67bca5e90f871dc8b38443a30de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Test scripts:

  Script            Compiler host   Output host/VM
- js                Self-host       Javascript
- dz_comp           dzaima/BQN      dzaima/BQN
- dz_wasm.js        dzaima/BQN      WebAssembly

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).

Test cases (cases/):
                  js    dz_comp   dz_wasm.js
- simple.bqn       *       *          *
- syntax.bqn       *       *
- prim.bqn                 *

js or dz_comp can be run on a specified set of tests by passing the test
names as arguments.

Contents of bin/dbqn follow (3 lines). Replace "/path/to/dzaima/" with
your path.

#! /bin/bash

java -jar /path/to/dzaima/BQN/BQN.jar -f "$@"