summary refs log tree commit diff stats
path: root/src/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.rs')
0 files changed, 0 insertions, 0 deletions
' href='/ahoang/chawan/blame/test/layout/run_layout_tests.sh?id=041ebc4534088e5d550e9cc628a17c93ca087d2b'>^
e3d9ee2c ^














f9734e2b ^
e3d9ee2c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

                          
                                                                       


               
                          














                                                                                         
           
              
#!/bin/sh
if test -z "$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\r' "$h"
	expected="$(basename "$h" .html).expected"
	color_expected="$(basename "$h" .html).color.expected"
	if test -f "$expected"
	then	if ! "$CHA_TEST_BIN" -C config.toml "$h" | diff "$expected" -
		then	failed=$(($failed+1))
			printf 'FAIL: %s\n' "$h"
		fi
	elif test -f "$color_expected"
	then	if ! "$CHA_TEST_BIN" -C config.color.toml "$h" | diff "$color_expected" -
		then	failed=$(($failed+1))
			printf 'FAIL: %s\n' "$h"
		fi
	else	printf 'WARNING: expected file not found for %s\n' "$h"
	fi
done
printf '\n'
exit "$failed"