XER can decode long values
diff --git a/examples/sample.source.LDAP3/Makefile b/examples/sample.source.LDAP3/Makefile
index f7dfc64..5483981 100644
--- a/examples/sample.source.LDAP3/Makefile
+++ b/examples/sample.source.LDAP3/Makefile
@@ -196,6 +196,19 @@
@touch LDAPMessage.c
make
+check: ${TARGET}
+ @if test -f ./sample-LDAPMessage-1.[db]er ; then \
+ for f in ./sample-LDAPMessage-*.[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)