xref: /aosp_15_r20/external/ltp/metadata/tests/test.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
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