1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh 2*49cdfc7eSAndroid Build Coastguard Worker 3*49cdfc7eSAndroid Build Coastguard Workerfail=0 4*49cdfc7eSAndroid Build Coastguard Worker 5*49cdfc7eSAndroid Build Coastguard Workerfor i in *.c; do 6*49cdfc7eSAndroid Build Coastguard Worker ../metaparse $i > tmp.json 7*49cdfc7eSAndroid Build Coastguard Worker if ! diff tmp.json $i.json >/dev/null 2>&1; then 8*49cdfc7eSAndroid Build Coastguard Worker echo "***" 9*49cdfc7eSAndroid Build Coastguard Worker echo "$i output differs!" 10*49cdfc7eSAndroid Build Coastguard Worker diff -u tmp.json $i.json 11*49cdfc7eSAndroid Build Coastguard Worker echo "***" 12*49cdfc7eSAndroid Build Coastguard Worker fail=1 13*49cdfc7eSAndroid Build Coastguard Worker fi 14*49cdfc7eSAndroid Build Coastguard Workerdone 15*49cdfc7eSAndroid Build Coastguard Worker 16*49cdfc7eSAndroid Build Coastguard Workerrm -f tmp.json 17*49cdfc7eSAndroid Build Coastguard Worker 18*49cdfc7eSAndroid Build Coastguard Workerexit $fail 19