]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Factor the epilogue of the tests.
authorAkim Demaille <akim@epita.fr>
Thu, 23 Nov 2000 09:49:08 +0000 (09:49 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 23 Nov 2000 09:49:08 +0000 (09:49 +0000)
* tests/atgeneral.m4 (AT_CLEANUP): Move the reading of at_status
into...
(AT_INIT): here, at the end of the `case'.

ChangeLog
lib/autotest/general.m4
tests/atgeneral.m4

index 5763df5c12cc4ffdf617af1746cc555b6ab2f934..9ea24f58438b716c0bcd694857009b40673b4b42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-11-23  Akim Demaille  <akim@epita.fr>
+
+       Factor the epilogue of the tests.
+
+       * tests/atgeneral.m4 (AT_CLEANUP): Move the reading of at_status
+       into...
+       (AT_INIT): here, at the end of the `case'.
+
 2000-11-23  Akim Demaille  <akim@epita.fr>
 
        The debug scripts are only wrapper around testsuite, asking for a
index 425a0477b9415f4efe41b6603ce464f874508d74..f4186a071e1146a9648aa8f74752828a2ab4ba33 100644 (file)
@@ -162,10 +162,23 @@ m4_divert_push(1)dnl
 : ${tests="$TESTS"}
 for test in $tests
 do
+  at_status=0;
   case $test in
 m4_divert_pop[]dnl
 m4_divert_push(3)[]dnl
   esac
+  $at_verbose &&
+    echo $at_n "     AT_ordinal. $srcdir/`cat at-setup-line`: $at_c"
+  case $at_status in
+    0) echo ok
+       ;;
+    77) echo "ignored near \``cat at-check-line`'"
+        at_ignore_count=`expr $at_ignore_count + 1`
+        ;;
+    *) echo "FAILED near \``cat at-check-line`'"
+       at_failed_list="$at_failed_list $test"
+       ;;
+  esac
 done
 
 # Wrap up the testing suite with summary statistics.
@@ -284,21 +297,9 @@ $at_traceoff
 [[#] Snippet )s[]AT_ordinal[])
        )
        at_status=$?
-       $at_verbose &&
-         echo $at_n "     AT_ordinal. $srcdir/`cat at-setup-line`: $at_c"
-       case $at_status in
-         0) echo ok
-            ;;
-         77) echo "ignored near \``cat at-check-line`'"
-             at_ignore_count=`expr $at_ignore_count + 1`
-             ;;
-         *) echo "FAILED near \``cat at-check-line`'"
-            at_failed_list="$at_failed_list AT_ordinal"
-            ;;
-       esac
       else
-        echo 'ignored (skipped)'
-        at_ignore_count=`expr $at_ignore_count + 1`
+        echo 'ignored (skipped)'
+        at_ignore_count=`expr $at_ignore_count + 1`
       fi
       at_test_count=`expr 1 + $at_test_count`
       if $at_stop_on_error && test -n "$at_failed_list"; then :; else
index 425a0477b9415f4efe41b6603ce464f874508d74..f4186a071e1146a9648aa8f74752828a2ab4ba33 100644 (file)
@@ -162,10 +162,23 @@ m4_divert_push(1)dnl
 : ${tests="$TESTS"}
 for test in $tests
 do
+  at_status=0;
   case $test in
 m4_divert_pop[]dnl
 m4_divert_push(3)[]dnl
   esac
+  $at_verbose &&
+    echo $at_n "     AT_ordinal. $srcdir/`cat at-setup-line`: $at_c"
+  case $at_status in
+    0) echo ok
+       ;;
+    77) echo "ignored near \``cat at-check-line`'"
+        at_ignore_count=`expr $at_ignore_count + 1`
+        ;;
+    *) echo "FAILED near \``cat at-check-line`'"
+       at_failed_list="$at_failed_list $test"
+       ;;
+  esac
 done
 
 # Wrap up the testing suite with summary statistics.
@@ -284,21 +297,9 @@ $at_traceoff
 [[#] Snippet )s[]AT_ordinal[])
        )
        at_status=$?
-       $at_verbose &&
-         echo $at_n "     AT_ordinal. $srcdir/`cat at-setup-line`: $at_c"
-       case $at_status in
-         0) echo ok
-            ;;
-         77) echo "ignored near \``cat at-check-line`'"
-             at_ignore_count=`expr $at_ignore_count + 1`
-             ;;
-         *) echo "FAILED near \``cat at-check-line`'"
-            at_failed_list="$at_failed_list AT_ordinal"
-            ;;
-       esac
       else
-        echo 'ignored (skipped)'
-        at_ignore_count=`expr $at_ignore_count + 1`
+        echo 'ignored (skipped)'
+        at_ignore_count=`expr $at_ignore_count + 1`
       fi
       at_test_count=`expr 1 + $at_test_count`
       if $at_stop_on_error && test -n "$at_failed_list"; then :; else