OSSP CVS Repository

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

Check-in Number: 4190
Date: 2001-Jul-09 20:19:31 (local)
2001-Jul-09 18:19:31 (UTC)
User:simons
Branch:
Comment: Enhanced portability even more. Unfortunately, there're still some problems on Solaris, most notably the fact that the stupid bourne shell there doesn't know "echo -n".
Tickets:
Inspections:
Files:
ossp-pkg/xds/regression-tests/.run-tests      1.6 -> 1.7     2 inserted, 3 deleted

ossp-pkg/xds/regression-tests/.run-tests 1.6 -> 1.7

--- .run-tests   2001/07/09 17:55:54     1.6
+++ .run-tests   2001/07/09 18:19:31     1.7
@@ -12,7 +12,7 @@
 echo "Running test suite:"
 
 for suite in $*; do
-    tmp="${suite%%.exe}"
+    tmp=`expr "${suite}" : '\(.*\)\.exe$'`
     echo -n "$tmp"
     currpos=`expr $RESCOLUMN - \( length $tmp \)`
     while [ $currpos -gt 1 ]; do
@@ -21,8 +21,7 @@
     done
     echo -n " "
     numTests=`expr $numTests + 1`
-    eval ./$suite >${suite%%.exe}.log 2>&1
-    if [ $? -eq 0 ]; then
+    if eval ./$suite >${tmp}.log 2>&1; then
         echo OK
     else
         numFails=`expr $numFails + 1`

CVSTrac 2.0.1