blob: 9a7bfde72ab3be2efe1e283cc341dfcf625f9667 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001#!/bin/sh
2
3tmpfile=".check-parsing.$$.tmp"
4
5ec=0
6
7for ref in ../tests/*.asn1.-*; do
8 src=`echo "$ref" | sed -e 's/\.-[a-zA-Z]*$//'`
9 flags=`echo "$ref" | sed -e 's/.*\.-//'`
10 echo "Checking $src against $ref"
11 ./asn1c "-$flags" "$src" > "$tmpfile" || ec=$?
12 if [ $? = 0 ]; then
13 diff "$ref" "$tmpfile" || ec=$?
14 fi
15 rm -f "$tmpfile"
16done
17
18exit $ec