about summary refs log blame commit diff stats
path: root/test/net/run.sh
blob: 1ea90e3a92da507780e9d18a7d4d0a7b86c1d40c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                  
#!/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 "http://localhost:$1/$h" | diff all.expected -
	then	failed=$(($failed+1))
		printf 'FAIL: %s\n' "$h"
	fi
done
printf '\n'
$CHA -d "http://localhost:$1/stop" >/dev/null
exit "$failed"