about summary refs log tree commit diff stats
path: root/test/js/run_js_tests.sh
blob: 3f48444941812c75ad5b3e7620ab336329ac87ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if ! test "$CHA"
then	test -f ../../cha && CHA=../../cha || CHA=cha
fi
failed=0
for h in *.html
do	printf '%s\r' "$h"
	if ! "$CHA" -dC config.toml "$h" | diff all.expected -
	then	failed=$(($failed+1))
		printf 'FAIL: %s\n' "$h"
	fi
done
printf '\n'
exit "$failed"