+2000-11-23 Akim Demaille <akim@epita.fr>
+
+ Factor part of the prologue of the tests.
+
+ * tests/atgeneral.m4 (AT_SETUP, AT_CLEANUP): No longer handle
+ at_stop_on_error.
+ (AT_INIT): After having checked whether the test failed, break out
+ of the loop if requested (-e).
+
+
2000-11-23 Akim Demaille <akim@epita.fr>
* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
at_failed_list="$at_failed_list $test"
;;
esac
+ if $at_stop_on_error && test -n "$at_failed_list"; then
+ break
+ fi
done
# Wrap up the testing suite with summary statistics.
m4_pushdef([AT_data_experr], )
m4_divert_pop()dnl
AT_ordinal )
- if $at_stop_on_error && test -n "$at_failed_list"; then :; else
dnl Here will be inserted the `rm' corresponding to AT_CLEANUP.
m4_divert(2)[]dnl
- echo AT_LINE > at-setup-line
- if $at_verbose; then
- echo 'testing $1'
- echo $at_n " $at_c"
- fi
- if $at_verbose; then
- echo "AT_ordinal. $srcdir/AT_LINE..."
- else
- echo $at_n "m4_substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c"
- fi
- (
-$at_traceon
+ echo AT_LINE > at-setup-line
+ if $at_verbose; then
+ echo 'testing $1'
+ echo $at_n " $at_c"
+ fi
+ if $at_verbose; then
+ echo "AT_ordinal. $srcdir/AT_LINE..."
+ else
+ echo $at_n "m4_substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c"
+ fi
+ (
+ $at_traceon
])
# created within the test. There is no need to list stdout, stderr,
# nor files created with AT_DATA.
AT_DEFINE([AT_CLEANUP],
-$at_traceoff
-[ )
- at_status=$?
- at_test_count=`expr 1 + $at_test_count`
- if $at_stop_on_error && test -n "$at_failed_list"; then :; else
+[ $at_traceoff
+ )
+ at_status=$?
+ at_test_count=`expr 1 + $at_test_count`
+ if $at_stop_on_error && test -n "$at_failed_list"; then :; else
m4_divert(1)[]dnl
rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
m4_undivert(2)[]dnl
- rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
- fi
+ rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
fi
;;
at_failed_list="$at_failed_list $test"
;;
esac
+ if $at_stop_on_error && test -n "$at_failed_list"; then
+ break
+ fi
done
# Wrap up the testing suite with summary statistics.
m4_pushdef([AT_data_experr], )
m4_divert_pop()dnl
AT_ordinal )
- if $at_stop_on_error && test -n "$at_failed_list"; then :; else
dnl Here will be inserted the `rm' corresponding to AT_CLEANUP.
m4_divert(2)[]dnl
- echo AT_LINE > at-setup-line
- if $at_verbose; then
- echo 'testing $1'
- echo $at_n " $at_c"
- fi
- if $at_verbose; then
- echo "AT_ordinal. $srcdir/AT_LINE..."
- else
- echo $at_n "m4_substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c"
- fi
- (
-$at_traceon
+ echo AT_LINE > at-setup-line
+ if $at_verbose; then
+ echo 'testing $1'
+ echo $at_n " $at_c"
+ fi
+ if $at_verbose; then
+ echo "AT_ordinal. $srcdir/AT_LINE..."
+ else
+ echo $at_n "m4_substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c"
+ fi
+ (
+ $at_traceon
])
# created within the test. There is no need to list stdout, stderr,
# nor files created with AT_DATA.
AT_DEFINE([AT_CLEANUP],
-$at_traceoff
-[ )
- at_status=$?
- at_test_count=`expr 1 + $at_test_count`
- if $at_stop_on_error && test -n "$at_failed_list"; then :; else
+[ $at_traceoff
+ )
+ at_status=$?
+ at_test_count=`expr 1 + $at_test_count`
+ if $at_stop_on_error && test -n "$at_failed_list"; then :; else
m4_divert(1)[]dnl
rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
m4_undivert(2)[]dnl
- rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
- fi
+ rm ifelse([AT_data_files$1], , [-f], [-rf[]AT_data_files[]ifelse($1, , , [ $1])]) stdout stderr[]AT_data_expout[]AT_data_experr
fi
;;