[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15-fyi-test-once.patch
From: |
Akim Demaille |
Subject: |
15-fyi-test-once.patch |
Date: |
Mon, 01 Oct 2001 09:10:00 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* tests/testsuite (AT_INIT) <at_pass_list>: New.
Don't run twice the same test.
Index: doc/autoconf.texi
--- doc/autoconf.texi Sat, 29 Sep 2001 14:10:09 +0200 akim
+++ doc/autoconf.texi Sun, 30 Sep 2001 16:10:48 +0200 akim
@@ -51,7 +51,7 @@
Configuring a package
* config.status: (autoconf)config.status Invocation.
Recreating a configuration
-* testsuite: (autoconf)testsuite invocation
+* testsuite: (autoconf)testsuite Invocation.
Running an Autotest test suite
@end direntry
@@ -410,7 +410,7 @@ @node Top
* testsuite Scripts:: The concepts of Autotest
* Writing testsuite.at:: Autotest macros
-* testsuite invocation:: Running @command{testsuite} scripts
+* testsuite Invocation:: Running @command{testsuite} scripts
* Making testsuite Scripts:: Using autom4te to create @command{testsuite}
Questions About Autoconf
@@ -1058,7 +1058,6 @@ @node autoscan Invocation
output if that symbol is encountered. Lines starting with @samp{#} are
comments.
address@hidden is only installed if you already have Perl installed.
@code{autoscan} accepts the following options:
@table @option
@@ -11420,7 +11419,7 @@ problem: although it aims at perfectly p
@menu
* testsuite Scripts:: The concepts of Autotest
* Writing testsuite.at:: Autotest macros
-* testsuite invocation:: Running @command{testsuite} scripts
+* testsuite Invocation:: Running @command{testsuite} scripts
* Making testsuite Scripts:: Using autom4te to create @command{testsuite}
@end menu
@@ -11591,7 +11590,7 @@ subshell. It accepts a single argument,
@end defmac
address@hidden testsuite invocation
address@hidden testsuite Invocation
@section Running @command{testsuite} Scripts
@cindex @command{testsuite}
Index: lib/autotest/general.m4
--- lib/autotest/general.m4 Sat, 29 Sep 2001 15:41:17 +0200 akim
+++ lib/autotest/general.m4 Sun, 30 Sep 2001 16:04:17 +0200 akim
@@ -459,6 +459,7 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
at_start_date=`date`
at_start_time=`(date +%s) 2>/dev/null`
echo "$as_me: starting at: $at_start_date" >&AS_MESSAGE_LOG_FD
+at_pass_list=
at_fail_list=
at_skip_list=
at_test_count=0
@@ -468,6 +469,11 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
do
at_status=0
rm -rf $at_data_files
+ # Skip tests we already run (using --keywords makes it easy to get
+ # duplication).
+ case " $at_pass_test $at_skip_test $at_fail_test " in
+ *" $at_test "* ) continue;;
+ esac
# Clearly separate the tests when verbose.
test $at_test_count != 0 && $at_verbose
case $at_test in
@@ -493,14 +499,15 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
at_test_count=`expr 1 + $at_test_count`
$at_verbose $ECHO_N "$at_test. $at_setup_line: $ECHO_C"
case $at_status in
- 0) at_msg="ok"
- ;;
+ 0) at_msg="ok"
+ at_pass_list="$at_pass_list $at_test"
+ ;;
77) at_msg="ok (skipped near \``cat at-check-line`')"
at_skip_list="$at_skip_list $at_test"
;;
- *) at_msg="FAILED near \``cat at-check-line`'"
- at_fail_list="$at_fail_list $at_test"
- ;;
+ *) at_msg="FAILED near \``cat at-check-line`'"
+ at_fail_list="$at_fail_list $at_test"
+ ;;
esac
echo $at_msg
at_log_msg="$at_test. $at_setup_line: $at_msg"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 15-fyi-test-once.patch,
Akim Demaille <=