From 2c53c7ba7a828ca30eaa912de078bc5f78a2c995 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Fri, 16 Jun 1995 20:58:33 +0000 Subject: [PATCH] Fix run.test to run under Ultrix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6083 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/berk_db/test/ChangeLog | 5 +++++ src/util/berk_db/test/run.test | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/util/berk_db/test/ChangeLog b/src/util/berk_db/test/ChangeLog index 8e2027656..791864e46 100644 --- a/src/util/berk_db/test/ChangeLog +++ b/src/util/berk_db/test/ChangeLog @@ -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. diff --git a/src/util/berk_db/test/run.test b/src/util/berk_db/test/run.test index 81ba71e45..e8316b8e9 100644 --- a/src/util/berk_db/test/run.test +++ b/src/util/berk_db/test/run.test @@ -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 $* -- 2.26.2