diff options
author | Lev Walkin <vlm@lionet.info> | 2006-09-15 18:37:21 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2006-09-15 18:37:21 +0000 |
commit | afda1a50aa9c26b7512e74f01b2386e68ebf9998 (patch) | |
tree | 87b8f621bb0aa9aa0b74dbedd7f00edb4e7fea3f /examples | |
parent | c744a029261858f9093a81982b04ed77c42ee60c (diff) |
testing code
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sample.source.MHEG5/Makefile | 13 | ||||
-rw-r--r-- | examples/sample.source.TAP3/Makefile | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/examples/sample.source.MHEG5/Makefile b/examples/sample.source.MHEG5/Makefile index 641f518c..011b028c 100644 --- a/examples/sample.source.MHEG5/Makefile +++ b/examples/sample.source.MHEG5/Makefile @@ -486,6 +486,19 @@ InterchangedObject.c: ../sample.makefile.regen @touch InterchangedObject.c make +check: ${TARGET} + @if test -f ./sample-InterchangedObject-1.[db]er ; then \ + for f in ./sample-InterchangedObject-*.[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) diff --git a/examples/sample.source.TAP3/Makefile b/examples/sample.source.TAP3/Makefile index ed00cea8..0d6dbcdb 100644 --- a/examples/sample.source.TAP3/Makefile +++ b/examples/sample.source.TAP3/Makefile @@ -712,6 +712,19 @@ DataInterChange.c: ../sample.makefile.regen @touch DataInterChange.c make +check: ${TARGET} + @if test -f ./sample-DataInterChange-1.[db]er ; then \ + for f in ./sample-DataInterChange-*.[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) |