aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sample.source.PKIX1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample.source.PKIX1/Makefile')
-rw-r--r--examples/sample.source.PKIX1/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index 30e89518..26ca7488 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -378,6 +378,19 @@ Certificate.c: ../sample.makefile.regen
@touch Certificate.c
make
+check: ${TARGET}
+ @if test -f ./sample-Certificate-1.[db]er ; then \
+ for f in ./sample-Certificate-*.[db]er; do \
+ echo "Recoding $$f into XER and back..."; \
+ ./${TARGET} -iber -oxer $$f > ./.tmp.1.$$ || exit 2; \
+ ./${TARGET} -ixer -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \
+ diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \
+ rm -f ./.tmp.[12].$$; \
+ done; fi
+ @echo ================
+ @echo All tests passed
+ @echo ================
+
distclean: clean
rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)