#! /bin/sh # $Id: asn2asn.sh.in,v 1000.0 2003/10/29 18:23:34 gouriano Exp $ # base="${1:-@top_srcdir@/src/serial/datatool/testdata}" if test ! -d $base; then echo "Error -- test data dir not found: $base" exit 1 fi if test -d "$1"; then shift fi d="$base/data" r="$base/res" tool="./asn2asn $@" do_test() { cmd="$tool -i $d/$1 -o out" echo $cmd if time $cmd; then : else echo "asn2asn failed!" exit 1 fi if cmp out $r/$2; then : else echo "wrong result!" exit 1 fi rm out } for i in "set.bin -b" "set.ent" "set.xml -X"; do do_test "$i -e -s" set.bin do_test "$i -e" set.ent do_test "$i -e -x" set.xml done echo "Done!" # # =========================================================================== # PRODUCTION $Log: asn2asn.sh.in,v $ # PRODUCTION Revision 1000.0 2003/10/29 18:23:34 gouriano # PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.8 # PRODUCTION # =========================================================================== #