diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-09-17 08:26:41 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-09-17 08:26:41 +0000 |
commit | 69130f07da22b099be0ac10fd1e1e52c1679c898 (patch) | |
tree | cd59c3be0d516e27a984bb96e8db8fbd2f056271 /examples/sample.source.LDAP3/Makefile | |
parent | 84444f913367a77d1d2d56a4977ff53d814b363e (diff) |
more testing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1205 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'examples/sample.source.LDAP3/Makefile')
-rw-r--r-- | examples/sample.source.LDAP3/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/sample.source.LDAP3/Makefile b/examples/sample.source.LDAP3/Makefile index d75f5692..1c4ff234 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 ================ |