blob: f91b8aefff20ed8c71214e336735d7033a728242 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env fish
set d (realpath (status dirname))
cd $d/bytecode
cargo build
cd $d
for f in $d/tests/*.sml
$d/bytecode/target/debug/bytecode (sml $d/main.sml -o /dev/stderr $f >/dev/null 2>| psub)
set -l got $status
if test $got -eq 42
echo (basename -s.sml $f): PASS
else
echo (basename -s.sml $f): FAIL "(status $got)"
end
end
|