blob: 45b85aeccaea08bcd8da24054aee63266623b05b (
plain) (
blame)
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
|
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 <reducer>"
exit 1
fi
echo "# useful for run the tests of all samples at once" >All.bruijn
echo >>All.bruijn
FILES="$(find euler fun rosetta -type f -name "*.bruijn")"
for f in $FILES; do
echo ":import ${f%*.bruijn} ." >>All.bruijn
done
# for ci, just run `bruijn All.bruijn`
echo >>All.bruijn
echo "main [[0]]" >>All.bruijn
if cat /dev/null | bruijn -v All.bruijn -r "$1" | tee /dev/fd/2 | grep -q "ERROR"; then
exit 1
fi
# hyperfine --warmup 5 --runs 20 "cat /dev/null | bruijn -r $1 All.bruijn"
|