Fix run.test to run under Ultrix
authorPaul Park <pjpark@mit.edu>
Fri, 16 Jun 1995 20:58:33 +0000 (20:58 +0000)
committerPaul Park <pjpark@mit.edu>
Fri, 16 Jun 1995 20:58:33 +0000 (20:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6083 dc483132-0cff-0310-8789-dd5450dbe970

src/util/berk_db/test/ChangeLog
src/util/berk_db/test/run.test

index 8e202765638435cd402fd1b3d6281998d361b32b..791864e460b59c874afbf83b5215d5a97efd58d3 100644 (file)
@@ -1,4 +1,9 @@
 
+Fri Jun 16 16:57:24 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * run.test - Remove argument processing loop and only do the first one
+               because Ultrix' /bin/sh5 is lame.
+
+
 Tue Jun 13 16:00:18 EDT 1995   Paul Park       (pjpark@mit.edu)
        * dbtest.c - Check for HAVE_INDEX.  If we have it, then use it,
                otherwise use strchr.
index 81ba71e45aab7a5382d56350805cc981b81f391f..e8316b8e9e910fa09491192aa3e3f41f416200a8 100644 (file)
@@ -26,8 +26,9 @@ main()
                        test$t
                done
        else
-               while [ $# -gt 0 ]
-                       do case "$1" in
+               if [ $# -gt 0 ]
+               then
+                       case "$1" in
                        test*)
                                $1;;
                        [0-9]*)
@@ -49,8 +50,7 @@ main()
                                echo "usage: run.test test# | type"
                                exit 1
                        esac
-                       shift
-               done
+               fi
        fi
        rm -f $TMP1 $TMP2 $TMP3
        exit 0
@@ -136,10 +136,10 @@ test3()
 {
        echo "Test 3: hash: small key, big data pairs"
        rm -f $TMP1
-       (find /bin -type f -print | xargs cat) > $TMP1
+       (find /bin -type f -perm -0444 -print | xargs cat) > $TMP1
        for type in hash; do
                rm -f $TMP2 $TMP3
-               for i in `find /bin -type f -print`; do
+               for i in `find /bin -type f -perm -0444 -print`; do
                        echo p
                        echo k$i
                        echo D$i
@@ -702,4 +702,5 @@ bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
        done
 }
 
+set +e
 main $*