Commit cc3e13d4 authored by Lev Walkin's avatar Lev Walkin

discover -a and -u flags

parent 3ebc65a6
......@@ -2,7 +2,8 @@
tmpfile=".check-parsing.$$.tmp"
diff -a . . 2>/dev/null && diffArgs="-a"
diff -a . . 2>/dev/null && diffArgs="-a" # Assume text files
diff -u . . 2>/dev/null && diffArgs="$diffArgs -u" # Unified diff output
ec=0
......@@ -12,7 +13,7 @@ for ref in ../tests/*.asn1.-*; do
echo "Checking $src against $ref"
./asn1c "-$flags" "$src" > "$tmpfile" || ec=$?
if [ $? = 0 ]; then
diff $diffArgs -u "$ref" "$tmpfile" || ec=$?
diff $diffArgs "$ref" "$tmpfile" || ec=$?
fi
if [ "$1" != "regenerate" ]; then
rm -f "$tmpfile"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment