xref: /third_party/ltp/metadata/tests/test.sh (revision f08c3bdf)
1#!/bin/sh
2
3fail=0
4
5for i in *.c; do
6	../metaparse $i > tmp.json
7	if ! diff tmp.json $i.json >/dev/null 2>&1; then
8		echo "***"
9		echo "$i output differs!"
10		diff -u tmp.json $i.json
11		echo "***"
12		fail=1
13	fi
14done
15
16rm -f tmp.json
17
18exit $fail
19