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: ...@@ -37,6 +37,7 @@ before_install:
brew install lcov; brew install lcov;
fi fi
script: script:
- export
- autoreconf -iv - autoreconf -iv
- ./configure $CONFIG_FLAGS - ./configure $CONFIG_FLAGS
- make $TASK - make $TASK
......
...@@ -31,9 +31,9 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.-*; do ...@@ -31,9 +31,9 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.-*; do
template=.tmp.check-parsing.$$ template=.tmp.check-parsing.$$
oldversion=${template}.old oldversion=${template}.old
newversion=${template}.new newversion=${template}.new
LANG=C sed -e 's/^found in .*/found in .../' < "$ref" > "$oldversion" PROCESSING="$ref (from $src)"
ec=0 LC_ALL=C sed -e 's/^found in .*/found in .../' < "$ref" > "$oldversion"
(${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=$? (${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 if [ $? = 0 ]; then
diff $diffArgs "$oldversion" "$newversion" || ec=$? diff $diffArgs "$oldversion" "$newversion" || ec=$?
fi 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