Index: ossp-pkg/xds/regression-tests/.run-tests RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests,v' 2>/dev/null Index: ossp-pkg/xds/regression-tests/.run-tests.in RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests.in,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/.run-tests.in,v' | diff -u /dev/null - -L'ossp-pkg/xds/regression-tests/.run-tests.in' 2>/dev/null --- ossp-pkg/xds/regression-tests/.run-tests.in +++ - 2024-05-20 20:42:36.122362857 +0200 @@ -0,0 +1,40 @@ +#! @bash@ + +if [ $# -lt 1 ]; then + echo "Usage: $0 test1.exe [...]" + exit 1; +fi + +RESCOLUMN=30 +numTests=0 +numFails=0 + +echo "Running test suite:" + +for suite in $*; do + tmp=`expr "${suite}" : '\(.*\)\.exe$'` + echo -n "$tmp" + currpos=`expr $RESCOLUMN - ${#tmp}` + while [ $currpos -gt 1 ]; do + echo -n "." + currpos=`expr $currpos - 1` + done + echo -n " " + numTests=`expr $numTests + 1` + eval ./$suite >${tmp}.log 2>&1 + if [ $? -eq 0 ]; then + echo OK + else + numFails=`expr $numFails + 1` + echo FAILED + fi +done + +echo +if [ $numFails -eq 0 ]; then + echo "Summary: All tests succeeded." + exit 0 +else + echo "Summary: $numFails of $numTests tests failed ($(($numFails*100/$numTests))%)." + exit 1 +fi Index: ossp-pkg/xds/regression-tests/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/Makefile.in,v rcsdiff -q -kk '-r1.4' '-r1.5' -u '/v/ossp/cvs/ossp-pkg/xds/regression-tests/Attic/Makefile.in,v' 2>/dev/null --- Makefile.in 2001/07/20 11:05:55 1.4 +++ Makefile.in 2001/07/20 11:22:18 1.5 @@ -34,7 +34,7 @@ rm -f $(TESTS) *.log distclean:: clean - rm -f Makefile + rm -f Makefile .run-tests realclean:: distclean