aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/test_all.sh
blob: a5a5c636629510b9025c712032cff826bf82b7a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

echo "# useful for running all tests of the standard library" >All.bruijn
echo >>All.bruijn

FILES="$(find * -type f -name "*.bruijn" ! -name "All.bruijn")"

for f in $FILES; do
	echo ":import std/${f%*.bruijn} ." >>All.bruijn
done

# for ci, just run `bruijn All.bruijn`
echo >>All.bruijn
echo "main [[0]]" >>All.bruijn

if bruijn All.bruijn | grep "ERROR"; then
	exit 1
fi

hyperfine "bruijn All.bruijn"