diff --git a/examples/sample.source.LDAP3/Makefile b/examples/sample.source.LDAP3/Makefile index d75f5692bd1d3bbd2dfb49983415f17ae1fde1be..1c4ff234066f39587ee342fa8c01b5d7540591a4 100644 --- a/examples/sample.source.LDAP3/Makefile +++ b/examples/sample.source.LDAP3/Makefile @@ -208,6 +208,23 @@ check: ${TARGET} diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \ rm -f ./.tmp.[12].$$; \ done; fi + @if test -f ./sample-LDAPMessage-1.xer ; then \ + for f in ./sample-LDAPMessage-*.xer; do \ + echo "Recoding $$f into DER and back..."; \ + ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + diff $$f ./.tmp.2.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi + @if test -f ./sample-LDAPMessage-1.per ; then \ + for f in ./sample-LDAPMessage-*.per; do \ + echo "Recoding $$f into DER into XER and back..."; \ + ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \ + diff $$f ./.tmp.1.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi @echo ================ @echo All tests passed @echo ================ diff --git a/examples/sample.source.MEGACO/Makefile b/examples/sample.source.MEGACO/Makefile index d05f4a450be827b7c7413b4e2d57fd1d887ef0c7..fdc878b45a87e18bd010fa9758fd6695c312f8c7 100644 --- a/examples/sample.source.MEGACO/Makefile +++ b/examples/sample.source.MEGACO/Makefile @@ -330,6 +330,23 @@ check: ${TARGET} diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \ rm -f ./.tmp.[12].$$; \ done; fi + @if test -f ./sample-MegacoMessage-1.xer ; then \ + for f in ./sample-MegacoMessage-*.xer; do \ + echo "Recoding $$f into DER and back..."; \ + ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + diff $$f ./.tmp.2.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi + @if test -f ./sample-MegacoMessage-1.per ; then \ + for f in ./sample-MegacoMessage-*.per; do \ + echo "Recoding $$f into DER into XER and back..."; \ + ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \ + diff $$f ./.tmp.1.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi @echo ================ @echo All tests passed @echo ================ diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile index c1846abc27734a814653fc75abca75d45181c3f4..de54195c5afd0413660ea1c2fc5ede23043f81c2 100644 --- a/examples/sample.source.PKIX1/Makefile +++ b/examples/sample.source.PKIX1/Makefile @@ -390,6 +390,23 @@ check: ${TARGET} diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \ rm -f ./.tmp.[12].$$; \ done; fi + @if test -f ./sample-Certificate-1.xer ; then \ + for f in ./sample-Certificate-*.xer; do \ + echo "Recoding $$f into DER and back..."; \ + ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + diff $$f ./.tmp.2.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi + @if test -f ./sample-Certificate-1.per ; then \ + for f in ./sample-Certificate-*.per; do \ + echo "Recoding $$f into DER into XER and back..."; \ + ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \ + diff $$f ./.tmp.1.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi @echo ================ @echo All tests passed @echo ================ diff --git a/examples/sample.source.RRC/Makefile b/examples/sample.source.RRC/Makefile index 717e734259563e4f9a89ef87c49b73e847f89407..862f2cac81ac42c6b2b135709aeb9571113db720 100644 --- a/examples/sample.source.RRC/Makefile +++ b/examples/sample.source.RRC/Makefile @@ -4785,6 +4785,23 @@ check: ${TARGET} diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \ rm -f ./.tmp.[12].$$; \ done; fi + @if test -f ./sample-DL-DCCH-Message-1.xer ; then \ + for f in ./sample-DL-DCCH-Message-*.xer; do \ + echo "Recoding $$f into DER and back..."; \ + ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + diff $$f ./.tmp.2.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi + @if test -f ./sample-DL-DCCH-Message-1.per ; then \ + for f in ./sample-DL-DCCH-Message-*.per; do \ + echo "Recoding $$f into DER into XER and back..."; \ + ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \ + diff $$f ./.tmp.1.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi @echo ================ @echo All tests passed @echo ================ diff --git a/examples/sample.source.TAP3/Makefile b/examples/sample.source.TAP3/Makefile index 74586888726337b2de59ae2eede03c9d568241bd..4dd100caff3c6935f6ca51e6163ef29584fe9b82 100644 --- a/examples/sample.source.TAP3/Makefile +++ b/examples/sample.source.TAP3/Makefile @@ -724,6 +724,23 @@ check: ${TARGET} diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \ rm -f ./.tmp.[12].$$; \ done; fi + @if test -f ./sample-DataInterChange-1.xer ; then \ + for f in ./sample-DataInterChange-*.xer; do \ + echo "Recoding $$f into DER and back..."; \ + ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + diff $$f ./.tmp.2.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi + @if test -f ./sample-DataInterChange-1.per ; then \ + for f in ./sample-DataInterChange-*.per; do \ + echo "Recoding $$f into DER into XER and back..."; \ + ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \ + ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \ + ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \ + diff $$f ./.tmp.1.$$ || exit 2; \ + rm -f ./.tmp.[12].$$; \ + done; fi @echo ================ @echo All tests passed @echo ================