~sircmpwn/scdoc

scdoc/test/lib.sh -rw-r--r-- 193 bytes
7bdbb5ba — Sebastian Disallows differing row lengths in table 24 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
printf '== %s\n' "$0"
trap "printf '\n'" EXIT

begin() {
	printf '%-50s' "$1"
}

scdoc() {
	./scdoc "$@" 2>&1
}

end() {
	if [ $? -ne "$1" ]
	then
		printf 'FAIL\n'
	else
		printf 'OK\n'
	fi
}