+2001-10-01 Akim Demaille <akim@epita.fr>
+
+ * tests/testsuite (AT_INIT) <at_pass_list>: New.
+ Don't run twice the same test.
+
2001-10-01 Akim Demaille <akim@epita.fr>
* lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
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
* 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
output if that symbol is encountered. Lines starting with @samp{#} are
comments.
-@code{autoscan} is only installed if you already have Perl installed.
@code{autoscan} accepts the following options:
@table @option
@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
@end defmac
-@node testsuite invocation
+@node testsuite Invocation
@section Running @command{testsuite} Scripts
@cindex @command{testsuite}
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
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
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"