aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohannes Lode <jyl@gmx.net>2020-05-22 01:29:10 +0200
committerLev Walkin <vlm@lionet.info>2021-04-17 15:08:07 -0700
commit9925dbbda86b436896108439ea3e0a31280a6065 (patch)
tree44fa4a08ac3fabb3c1de6d5bb23f408f9f2dc74d /tests
parent35ad7e6daa5c8227f19b8fc25dcaff8b363e8182 (diff)
Improve test coverage by using stderr output in test evaluation of parser and AST testing.HEADmaster
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests-asn1c-compiler/check-parsing.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests-asn1c-compiler/check-parsing.sh b/tests/tests-asn1c-compiler/check-parsing.sh
index 978b7229..9464adb5 100755
--- a/tests/tests-asn1c-compiler/check-parsing.sh
+++ b/tests/tests-asn1c-compiler/check-parsing.sh
@@ -33,7 +33,7 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.-*; do
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=$?
+ (${top_builddir}/asn1c/asn1c -S ${top_srcdir}/skeletons -no-gen-OER -no-gen-PER "-$flags" "$src" 2>&1 | LANG=C sed -e 's/^found in .*/found in .../' > "$newversion") || ec=$?
if [ $? = 0 ]; then
diff $diffArgs "$oldversion" "$newversion" || ec=$?
fi
@@ -43,7 +43,7 @@ for ref in ${top_srcdir}/tests/tests-asn1c-compiler/*.asn1.-*; do
fi
rm -f $oldversion $newversion
if [ "$1" = "regenerate" ]; then
- ${top_builddir}/asn1c/asn1c -S ${top_srcdir}/skeletons -no-gen-OER -no-gen-PER "-$flags" "$src" > "$ref"
+ ${top_builddir}/asn1c/asn1c -S ${top_srcdir}/skeletons -no-gen-OER -no-gen-PER "-$flags" "$src" > "$ref" 2>&1
fi
done