more testing

This commit is contained in:
Lev Walkin 2006-09-17 08:26:41 +00:00
parent e1baa4d05c
commit 87d07d6d36
5 changed files with 85 additions and 0 deletions

View File

@ -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 ================

View File

@ -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 ================

View File

@ -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 ================

View File

@ -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 ================

View File

@ -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 ================