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