OSSP CVS Repository

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

Check-in Number: 555
Date: 2001-Jul-22 19:24:31 (local)
2001-Jul-22 17:24:31 (UTC)
User:simons
Branch:
Comment: The new run-tests script works fine without bash, so we don't need to have the script under autoconf control anymore.
Tickets:
Inspections:
Files:
ossp-pkg/xds/configure.ac      1.6 -> 1.7     2 inserted, 4 deleted
ossp-pkg/xds/regression-tests/.cvsignore      added-> 1.4
ossp-pkg/xds/regression-tests/.run-tests      added-> 1.11
ossp-pkg/xds/regression-tests/.run-tests.in      added-> 1.3

ossp-pkg/xds/configure.ac 1.6 -> 1.7

--- configure.ac 2001/07/20 11:32:52     1.6
+++ configure.ac 2001/07/22 17:24:31     1.7
@@ -1,6 +1,6 @@
 dnl configure.in -- Process this file with autoconf to produce a configure script.
 
-AC_INIT(libxds, [$Revision: 1.6 $])
+AC_INIT(libxds, [$Revision: 1.7 $])
 
 dnl Get rid of the lousy -g and -O defaults in CFLAGS.
 dnl
@@ -10,7 +10,6 @@
 dnl
 AC_PROG_CC
 AC_PROG_RANLIB
-AC_PATH_PROG(bash, bash, /bin/sh)
 
 dnl Set special flags for gcc.
 dnl
@@ -76,6 +75,5 @@
 
 dnl Write results.
 dnl
-AC_CONFIG_FILES(xds.h regression-tests/.run-tests Makefile regression-tests/Makefile)
-AC_CONFIG_COMMANDS([default], [chmod +x regression-tests/.run-tests])
+AC_CONFIG_FILES(xds.h Makefile regression-tests/Makefile)
 AC_OUTPUT


ossp-pkg/xds/regression-tests/.cvsignore -> 1.4

*** /dev/null    Sat Nov 23 01:03:56 2024
--- -    Sat Nov 23 01:03:59 2024
***************
*** 0 ****
--- 1,2 ----
+ *.log
+ Makefile


ossp-pkg/xds/regression-tests/.run-tests -> 1.11

*** /dev/null    Sat Nov 23 01:03:56 2024
--- -    Sat Nov 23 01:03:59 2024
***************
*** 0 ****
--- 1,42 ----
+ #!/bin/sh
+ 
+ if [ $# -lt 1 ]; then
+     echo "Usage: $0 test1.exe [...]"
+     exit 1
+ fi
+ 
+ RESCOLUMN=30
+ numTests=0
+ numFails=0
+ 
+ echo "Running test suite:"
+ 
+ pad=''
+ n=$RESCOLUMN
+ while [ $n -gt 0 ]; do
+     pad="$pad."
+     n=`expr $n - 1`
+ done
+ for suite in "$@"; do
+     name=`expr "${suite}" : '\(.*\)\.exe$'`
+     echo "$name$pad" | awk '{ printf("%s ", substr($0, 0, n)); }' n=$RESCOLUMN
+     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
+     percent=`expr $numFails \* 100`
+     percent=`expr $percent / $numTests`
+     echo "Summary: $numFails of $numTests tests failed ($percent%)."
+     exit 1
+ fi


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

*** /dev/null    Sat Nov 23 01:03:56 2024
--- -    Sat Nov 23 01:03:59 2024
***************
*** 0 ****
--- 1,42 ----
+ #!/bin/sh
+ 
+ if [ $# -lt 1 ]; then
+     echo "Usage: $0 test1.exe [...]"
+     exit 1
+ fi
+ 
+ RESCOLUMN=30
+ numTests=0
+ numFails=0
+ 
+ echo "Running test suite:"
+ 
+ pad=''
+ n=$RESCOLUMN
+ while [ $n -gt 0 ]; do
+     pad="$pad."
+     n=`expr $n - 1`
+ done
+ for suite in "$@"; do
+     name=`expr "${suite}" : '\(.*\)\.exe$'`
+     echo "$name$pad" | awk '{ printf("%s ", substr($0, 0, n)); }' n=$RESCOLUMN
+     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
+     percent=`expr $numFails \* 100`
+     percent=`expr $percent / $numTests`
+     echo "Summary: $numFails of $numTests tests failed ($percent%)."
+     exit 1
+ fi

CVSTrac 2.0.1