about summary refs log blame commit diff stats
path: root/test/js/run_js_tests.sh
blob: a8cad435256ddaeb0f23b5f03b8011bc2f816f7d (plain) (tree)
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"