OSSP CVS Repository

ossp - Check-in [4230]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4230
Date: 2001-Jul-20 13:22:18 (local)
2001-Jul-20 11:22:18 (UTC)
User:simons
Branch:
Comment: Insert path of "bash" into the run-tests script.
Tickets:
Inspections:
Files:
ossp-pkg/xds/regression-tests/.run-tests      1.9 -> 1.10    
ossp-pkg/xds/regression-tests/.run-tests.in      added-> 1.1
ossp-pkg/xds/regression-tests/Makefile.in      1.4 -> 1.5     1 inserted, 1 deleted

ossp-pkg/xds/regression-tests/.run-tests 1.9 -> 1.10



ossp-pkg/xds/regression-tests/.run-tests.in -> 1.1

*** /dev/null    Sat Nov 23 05:38:07 2024
--- -    Sat Nov 23 05:38:19 2024
***************
*** 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


ossp-pkg/xds/regression-tests/Makefile.in 1.4 -> 1.5

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

CVSTrac 2.0.1