Commit 1203cf96 authored by Vasil Velichkov's avatar Vasil Velichkov Committed by Mouse

Set LC_ALL to C n check-parsing.sh

This fixes the following error on MacOS
Checking ../../tests/tests-asn1c-compiler/16-constraint-OK.asn1 against ../../tests/tests-asn1c-compiler/16-constraint-OK.asn1.-EFprint-constraints
sed: RE error: illegal byte sequence

The problem is that some of the test files contain non-UTF8 characters
parent e54722b7
......@@ -37,6 +37,7 @@ before_install:
brew install lcov;
fi
script:
- export
- autoreconf -iv
- ./configure $CONFIG_FLAGS
- make $TASK
......
......@@ -31,9 +31,9 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.-*; do
template=.tmp.check-parsing.$$
oldversion=${template}.old
newversion=${template}.new
LANG=C sed -e 's/^found in .*/found in .../' < "$ref" > "$oldversion"
ec=0
(${top_builddir}/asn1c/asn1c -S ${top_srcdir}/skeletons -no-gen-OER -no-gen-PER "-$flags" "$src" | LANG=C sed -e 's/^found in .*/found in .../' > "$newversion") || ec=$?
PROCESSING="$ref (from $src)"
LC_ALL=C sed -e 's/^found in .*/found in .../' < "$ref" > "$oldversion"
(${top_builddir}/asn1c/asn1c -S ${top_srcdir}/skeletons "-$flags" "$src" | LC_ALL=C sed -e 's/^found in .*/found in .../' > "$newversion") || ec=$?
if [ $? = 0 ]; then
diff $diffArgs "$oldversion" "$newversion" || ec=$?
fi
......
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