aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2017-09-13 00:14:46 -0700
committerLev Walkin <vlm@lionet.info>2017-09-13 00:14:46 -0700
commit399f1cf76422f36517c2a4bf68d96937919bc4e8 (patch)
treeb201f3be900d870b5e9105464008309c176fbe38
parentafbf2a982881d3541af7bcec0e30c8deea70c815 (diff)
Revert "kill checking -nopad"
This reverts commit 5626bc117a521fbeae1640087df34c110384b2aa.
-rwxr-xr-xexamples/sample.makefile.regen14
-rw-r--r--examples/sample.source.J2735/Makefile14
2 files changed, 28 insertions, 0 deletions
diff --git a/examples/sample.makefile.regen b/examples/sample.makefile.regen
index b9add448..67f282a7 100755
--- a/examples/sample.makefile.regen
+++ b/examples/sample.makefile.regen
@@ -116,6 +116,20 @@ set +x
echo ' done; done; fi'
echo
echo 'check-per:'
+ echo " @if test -f sample-${ASN1PDU}-1-nopad.per ; then \\"
+ echo " for f in sample-*-[1-9]-nopad.per; do \\"
+ echo ' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\\1/"`; \'
+ echo ' for b in 1 17 33 980 8192; do \'
+ echo ' echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \'
+ echo ' ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
+ echo ' ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \'
+ echo ' ./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \'
+ echo ' diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \'
+ echo ' rm -f ./.tmp.[123].$$$$; \'
+ echo ' echo "Test junking $$f (please wait)..."; \'
+ echo ' ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \'
+ echo ' ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \'
+ echo ' done; done; fi'
echo " @if test -f sample-${ASN1PDU}-1.per ; then \\"
echo " for f in sample-*-[1-9].per; do \\"
echo ' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\\1/"`; \'
diff --git a/examples/sample.source.J2735/Makefile b/examples/sample.source.J2735/Makefile
index 3a252c9d..00b404bd 100644
--- a/examples/sample.source.J2735/Makefile
+++ b/examples/sample.source.J2735/Makefile
@@ -1138,6 +1138,20 @@ check-oer:
done; done; fi
check-per:
+ @if test -f sample-MessageFrame-1-nopad.per ; then \
+ for f in sample-*-[1-9]-nopad.per; do \
+ pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
+ for b in 1 17 33 980 8192; do \
+ echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
+ ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
+ ./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
+ ./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
+ diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
+ rm -f ./.tmp.[123].$$$$; \
+ echo "Test junking $$f (please wait)..."; \
+ ./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
+ ./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
+ done; done; fi
@if test -f sample-MessageFrame-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \