]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tests/TESTrun.sh
Fix the pointer tests in the non-ndoified TTEST2() macro as well.
[tcpdump] / tests / TESTrun.sh
index a22260e30dfb1a432317bd2b40b2879ee24dfb3d..924e5f5e53b37b864f36cc015d8988a2d08f1ca6 100755 (executable)
@@ -4,7 +4,6 @@ mkdir -p NEW
 mkdir -p DIFF
 passed=0
 failed=0
-INDENT='    '
 cat /dev/null > failure-outputs.txt
 
 runComplexTests()
@@ -12,7 +11,6 @@ runComplexTests()
   for i in *.sh
   do
     case $i in TEST*.sh) continue;; esac
-    echo -n "$INDENT"
     if sh ./$i
     then
       passed=`expr $passed + 1`
@@ -24,7 +22,7 @@ runComplexTests()
 
 runSimpleTests()
 {
-  local only=$1
+  only=$1
   echo $passed >.passed
   echo $failed >.failed
   cat TESTLIST | while read name input output options
@@ -34,7 +32,6 @@ runSimpleTests()
       '') continue;;
     esac
     [ "$only" != "" -a "$name" != "$only" ] && continue
-    echo -n "$INDENT"
     if ./TESTonce $name $input $output "$options"
     then
       passed=`expr $passed + 1`
@@ -43,7 +40,7 @@ runSimpleTests()
       failed=`expr $failed + 1`
       echo $failed >.failed
     fi
-    [ "$only" != "" -a "$name" == "$only" ] && break
+    [ "$only" != "" -a "$name" = "$only" ] && break
   done
   # I hate shells with their stupid, useless subshells.
   passed=`cat .passed`