mirror of https://gerrit.osmocom.org/asn1c
19 lines
349 B
Bash
Executable File
19 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
|
|
tmpfile=".check-parsing.$$.tmp"
|
|
|
|
ec=0
|
|
|
|
for ref in ../tests/*.asn1.-*; do
|
|
src=`echo "$ref" | sed -e 's/\.-[a-zA-Z]*$//'`
|
|
flags=`echo "$ref" | sed -e 's/.*\.-//'`
|
|
echo "Checking $src against $ref"
|
|
./asn1c "-$flags" "$src" > "$tmpfile" || ec=$?
|
|
if [ $? = 0 ]; then
|
|
diff "$ref" "$tmpfile" || ec=$?
|
|
fi
|
|
rm -f "$tmpfile"
|
|
done
|
|
|
|
exit $ec
|