2 # Generated from bootstrap/testsuite.at by GNU Autoconf 2.69.
4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
12 # Be more Bourne compatible
13 DUALCASE
=1; export DUALCASE
# for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in #(
34 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38 # Prefer a ksh shell builtin over an external printf program on Solaris,
39 # but without wasting forks for bash or zsh.
40 if test -z "$BASH_VERSION$ZSH_VERSION" \
41 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43 as_echo_n='print
-rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
50 as_echo_n='/usr
/ucb
/echo -n'
52 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 expr "X$arg" : "X\\(.*\\)$as_nl";
58 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
60 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
63 as_echo_n='sh
-c $as_echo_n_body as_echo
'
66 as_echo='sh
-c $as_echo_body as_echo
'
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
72 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # We need space, tab and new line, in precisely that order. Quoting is
81 # there to prevent editors from complaining about space-tab.
82 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
83 # splitting by setting IFS to empty value.)
86 # Find who we are. Look in the path if we contain no directory separator.
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 test -z "$as_dir" && as_dir=.
95 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 # We did not find ourselves, most probably we were run as `sh COMMAND'
102 # in which case we are not to be found in the path.
103 if test "x$as_myself" = x
; then
106 if test ! -f "$as_myself"; then
107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 # Unset variables that we do not need and which cause bugs (e.g. in
112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
113 # suppresses any "Segmentation fault" message there. '((' could
114 # trigger a bug in pdksh 5.2.14.
115 for as_var
in BASH_ENV ENV MAIL MAILPATH
116 do eval test x\
${$as_var+set} = xset \
117 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
130 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
132 if test "x$CONFIG_SHELL" = x
; then
133 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
137 # is contrary to our usage. Disable this feature.
138 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 case \`(set -o) 2>/dev/null\` in #(
149 as_required
="as_fn_return () { (exit \$1); }
150 as_fn_success () { as_fn_return 0; }
151 as_fn_failure () { as_fn_return 1; }
152 as_fn_ret_success () { return 0; }
153 as_fn_ret_failure () { return 1; }
156 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163 exitcode=1; echo positional parameters were not saved.
165 test x\$exitcode = x0 || exit 1
167 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
168 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
169 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
170 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
171 test \$(( 1 + 1 )) = 2 || exit 1"
172 if (eval "$as_required") 2>/dev
/null
; then :
177 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
182 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
185 test -z "$as_dir" && as_dir
=.
189 for as_base
in sh bash ksh sh5
; do
190 # Try only shells that exist, to save several forks.
191 as_shell
=$as_dir/$as_base
192 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
194 CONFIG_SHELL
=$as_shell as_have_required
=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
205 CONFIG_SHELL
=$SHELL as_have_required
=yes
210 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 # Preserve -v and -x to the replacement shell.
218 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
220 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
225 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
226 # Admittedly, this is quite paranoid, since all the known shells bail
227 # out after a failed `exec'.
228 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
332 # as_fn_executable_p FILE
333 # -----------------------
334 # Test if FILE is an executable regular file.
335 as_fn_executable_p
()
337 test -f "$1" && test -x "$1"
338 } # as_fn_executable_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
370 as_val
=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status
=$1; test $as_status -eq 0 && as_status
=1
384 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit
$as_status
391 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
398 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
429 # Avoid depending upon Character Ranges.
430 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits
='0123456789'
434 as_cr_alnum
=$as_cr_Letters$as_cr_digits
437 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
438 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
460 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
461 # already done that, so ensure we don't try to do so again and fall
462 # in an infinite loop. This has already happened in practice.
463 _as_can_reexec
=no
; export _as_can_reexec
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C
= ECHO_N
= ECHO_T
=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
485 rm -f conf$$ conf$$.exe conf$$.
file
486 if test -d conf$$.dir
; then
487 rm -f conf$$.dir
/conf$$.
file
490 mkdir conf$$.dir
2>/dev
/null
492 if (echo >conf$$.
file) 2>/dev
/null
; then
493 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -pR'.
499 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
501 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
513 as_mkdir_p
='mkdir -p "$as_dir"'
515 test -d .
/-p && rmdir .
/-p
520 as_executable_p
=as_fn_executable_p
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 SHELL
=${CONFIG_SHELL-/bin/sh}
538 # Not all shells have the 'times' builtin; the subshell is needed to make
539 # sure we discard the 'times: not found' message from the shell.
541 (times) >/dev
/null
2>&1 && at_times_p
=:
543 # CLI Arguments to pass to the debugging scripts.
547 # Shall we be verbose? ':' means no, empty means yes.
550 # Running several jobs in parallel, 0 means as many as test groups.
554 at_check_filter_trace
=:
556 # Shall we keep the debug scripts? Must be `:' when the suite is
557 # run by a debug script, so that the script doesn't remove itself.
559 # Display help message?
561 # Display the version message?
569 # Whether to rerun failed tests.
571 # Whether a write failure occurred
574 # The directory we run the suite in. Default to . if no -C option.
576 # An absolute reference to this testsuite script.
578 [\\/]* | ?
:[\\/]* ) at_myself
=$as_myself ;;
579 * ) at_myself
=$at_dir/$as_myself ;;
581 # Whether -C is in effect.
584 # Whether to enable colored test results.
586 # List of the tested programs.
588 # As many question marks as there are digits in the last test group number.
589 # Used to normalize the test group numbers so that `ls' lists them in
592 # Description of all the test groups.
593 at_help_all
="1;t_test_program_filter.at:30;test_program: filter test cases by name;;
594 2;t_test_program_run.at:30;test_program: output format and exit codes;;
595 3;t_test_program_list.at:30;test_program: list test cases;;
596 4;t_test_program_compare.at:30;test_program: compare the user-visible interfaces;;
597 5;t_subr_atf_check.at:30;subr: atf_check function;;
599 # List of the all the test groups.
600 at_groups_all
=`$as_echo "$at_help_all" | sed 's/;.*//'`
602 # at_fn_validate_ranges NAME...
603 # -----------------------------
604 # Validate and normalize the test group number contained in each variable
605 # NAME. Leading zeroes are treated as decimal.
606 at_fn_validate_ranges
()
610 eval at_value
=\$
$at_grp
611 if test $at_value -lt 1 ||
test $at_value -gt 5; then
612 $as_echo "invalid test group: $at_value" >&2
616 0*) # We want to treat leading 0 as decimal, like expr and test, but
617 # AS_VAR_ARITH treats it as octal if it uses $(( )).
618 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
619 # expr fork, but it is not worth the effort to determine if the
620 # shell supports XSI when the user can just avoid leading 0.
621 eval $at_grp='`expr $at_value + 0`' ;;
629 # If the previous option needs an argument, assign it.
630 if test -n "$at_prev"; then
631 at_option
=$at_prev=$at_option
636 *=?
*) at_optarg
=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
640 # Accept the important Cygnus configure options, so we can diagnose typos.
664 no | never | none
) at_color
=never
;;
665 auto | tty | if-tty
) at_color
=auto
;;
666 always |
yes | force
) at_color
=always
;;
667 *) at_optname
=`echo " $at_option" | sed 's/^ //; s/=.*//'`
668 as_fn_error $?
"unrecognized argument to $at_optname: $at_optarg" ;;
682 at_verbose
=; at_quiet
=:
688 at_check_filter_trace
=at_fn_filter_trace
691 [0-9] |
[0-9][0-9] |
[0-9][0-9][0-9] |
[0-9][0-9][0-9][0-9])
692 at_fn_validate_ranges at_option
693 as_fn_append at_groups
"$at_option$as_nl"
697 [0-9]- |
[0-9][0-9]- |
[0-9][0-9][0-9]- |
[0-9][0-9][0-9][0-9]-)
698 at_range_start
=`echo $at_option |tr -d X-`
699 at_fn_validate_ranges at_range_start
700 at_range
=`$as_echo "$at_groups_all" | \
701 sed -ne '/^'$at_range_start'$/,$p'`
702 as_fn_append at_groups
"$at_range$as_nl"
705 -[0-9] |
-[0-9][0-9] |
-[0-9][0-9][0-9] |
-[0-9][0-9][0-9][0-9])
706 at_range_end
=`echo $at_option |tr -d X-`
707 at_fn_validate_ranges at_range_end
708 at_range
=`$as_echo "$at_groups_all" | \
709 sed -ne '1,/^'$at_range_end'$/p'`
710 as_fn_append at_groups
"$at_range$as_nl"
713 [0-9]-[0-9] |
[0-9]-[0-9][0-9] |
[0-9]-[0-9][0-9][0-9] | \
714 [0-9]-[0-9][0-9][0-9][0-9] |
[0-9][0-9]-[0-9][0-9] | \
715 [0-9][0-9]-[0-9][0-9][0-9] |
[0-9][0-9]-[0-9][0-9][0-9][0-9] | \
716 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
717 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
718 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
719 at_range_start
=`expr $at_option : '\(.*\)-'`
720 at_range_end
=`expr $at_option : '.*-\(.*\)'`
721 if test $at_range_start -gt $at_range_end; then
723 at_range_end
=$at_range_start
724 at_range_start
=$at_tmp
726 at_fn_validate_ranges at_range_start at_range_end
727 at_range
=`$as_echo "$at_groups_all" | \
728 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
729 as_fn_append at_groups
"$at_range$as_nl"
732 # Directory selection.
739 if test x-
= "x$at_dir" ; then
744 # Parallel execution.
748 --jobs=* |
-j[0-9]* )
749 if test -n "$at_optarg"; then
752 at_jobs
=`expr X$at_option : 'X-j\(.*\)'`
754 case $at_jobs in *[!0-9]*)
755 at_optname
=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
756 as_fn_error $?
"non-numeric argument to $at_optname: $at_jobs" ;;
765 at_groups_selected
=$at_help_all
777 at_keyword
=`expr "X$at_keyword" : 'X!\(.*\)'`
780 # It is on purpose that we match the test group titles too.
781 at_groups_selected
=`$as_echo "$at_groups_selected" |
782 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
784 # Smash the keywords.
785 at_groups_selected
=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
786 as_fn_append at_groups
"$at_groups_selected$as_nl"
793 at_envvar
=`expr "x$at_option" : 'x\([^=]*\)='`
794 # Reject names that are not valid shell variable names.
796 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
797 as_fn_error $?
"invalid variable name: \`$at_envvar'" ;;
799 at_value
=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
800 # Export now, but save eval for later and for debug scripts.
802 as_fn_append at_debug_args
" $at_envvar='$at_value'"
805 *) $as_echo "$as_me: invalid option: $at_option" >&2
806 $as_echo "Try \`$0 --help' for more information." >&2
812 # Verify our last option didn't require an argument
813 if test -n "$at_prev"; then :
814 as_fn_error $?
"\`$at_prev' requires an argument"
817 # The file containing the suite.
818 at_suite_log
=$at_dir/$as_me.log
820 # Selected test groups.
821 if test -z "$at_groups$at_recheck"; then
822 at_groups
=$at_groups_all
824 if test -n "$at_recheck" && test -r "$at_suite_log"; then
825 at_oldfails
=`sed -n '
826 /^Failed tests:$/,/^Skipped tests:$/{
827 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
829 /^Unexpected passes:$/,/^## Detailed failed tests/{
830 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
832 /^## Detailed failed tests/q
834 as_fn_append at_groups
"$at_oldfails$as_nl"
836 # Sort the tests, removing duplicates.
837 at_groups
=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
840 if test x
"$at_color" = xalways \
841 ||
{ test x
"$at_color" = xauto
&& test -t 1; }; then
842 at_red
=`printf '\033[0;31m'`
843 at_grn
=`printf '\033[0;32m'`
844 at_lgn
=`printf '\033[1;32m'`
845 at_blu
=`printf '\033[1;34m'`
846 at_std
=`printf '\033[m'`
848 at_red
= at_grn
= at_lgn
= at_blu
= at_std
=
853 cat <<_ATEOF || at_write_fail=1
854 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
856 Run all the tests, or the selected TESTS, given by numeric ranges, and
857 save a detailed log file. Upon failure, create debugging scripts.
859 Do not change environment variables directly. Instead, set them via
860 command line arguments. Set \`AUTOTEST_PATH' to select the executables
861 to exercise. Each relative directory is expanded as build and source
862 directories relative to the top level of this distribution.
863 E.g., from within the build directory /tmp/foo-1.0, invoking this:
865 $ $0 AUTOTEST_PATH=bin
867 is equivalent to the following, assuming the source directory is /src/foo-1.0:
869 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
871 cat <<_ATEOF || at_write_fail=1
874 -h, --help print the help message, then exit
875 -V, --version print version number, then exit
876 -c, --clean remove all the files this test suite might create and exit
877 -l, --list describes all the tests, or the selected TESTS
879 cat <<_ATEOF || at_write_fail=1
883 change to directory DIR before starting
884 --color[=never|auto|always]
885 enable colored test results on terminal, or always
887 Allow N jobs at once; infinite jobs with no arg (default 1)
888 -k, --keywords=KEYWORDS
889 select the tests matching all the comma-separated KEYWORDS
890 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
891 --recheck select all tests that failed or passed unexpectedly last time
892 -e, --errexit abort as soon as a test fails; implies --debug
893 -v, --verbose force more detailed output
894 default for debugging scripts
895 -d, --debug inhibit clean up and top-level logging
896 default for debugging scripts
897 -x, --trace enable tests shell tracing
899 cat <<_ATEOF || at_write_fail=1
901 Report bugs to <atf-devel@NetBSD.org>.
908 cat <<_ATEOF || at_write_fail=1
909 Automated Testing Framework 0.17 test suite: bootstrap tests test groups:
911 NUM: FILE-NAME:LINE TEST-GROUP-NAME
915 # Pass an empty line as separator between selected groups and help.
916 $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
917 awk 'NF == 1 && FS != ";" {
924 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
930 n = split ($ 4, a, " ")
931 for (i = 1; i <= n; i++) {
932 l = length (a[i]) + 1
933 if (i > 1 && len + l > lmax) {
935 line = indent " " a[i]
946 }' || at_write_fail
=1
949 if $at_version_p; then
950 $as_echo "$as_me (Automated Testing Framework 0.17)" &&
951 cat <<\_ATEOF || at_write_fail
=1
953 Copyright
(C
) 2012 Free Software Foundation
, Inc.
954 This
test suite is free software
; the Free Software Foundation gives
955 unlimited permission to copy
, distribute and modify it.
960 # Should we print banners? Yes if more than one test is run.
961 case $at_groups in #(
963 at_print_banners
=: ;; #(
964 * ) at_print_banners
=false
;;
966 # Text for banner N, set to a single space once printed.
968 # Take any -C into account.
969 if $at_change_dir ; then
970 test x
!= "x$at_dir" && cd "$at_dir" \
971 || as_fn_error $?
"unable to change directory"
975 # Load the config files for any default variable assignments.
976 for at_file
in atconfig atlocal
978 test -r $at_file ||
continue
979 . .
/$at_file || as_fn_error $?
"invalid content: $at_file"
982 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
983 : "${at_top_build_prefix=$at_top_builddir}"
985 # Perform any assignments requested during argument parsing.
986 eval "$at_debug_args"
988 # atconfig delivers names relative to the directory the test suite is
989 # in, but the groups themselves are run in testsuite-dir/group-dir.
990 if test -n "$at_top_srcdir"; then
992 for at_dir_var
in srcdir top_srcdir top_build_prefix
994 eval at_val
=\
$at_$at_dir_var
996 [\\/$
]* | ?
:[\\/]* ) at_prefix
= ;;
997 *) at_prefix
=..
/..
/ ;;
999 eval "$at_dir_var=\$at_prefix\$at_val"
1003 ## -------------------- ##
1004 ## Directory structure. ##
1005 ## -------------------- ##
1007 # This is the set of directories and files used by this script
1008 # (non-literals are capitalized):
1010 # TESTSUITE - the testsuite
1011 # TESTSUITE.log - summarizes the complete testsuite run
1012 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1013 # + at-groups/ - during a run: status of all groups in run
1014 # | + NNN/ - during a run: meta-data about test group NNN
1015 # | | + check-line - location (source file and line) of current AT_CHECK
1016 # | | + status - exit status of current AT_CHECK
1017 # | | + stdout - stdout of current AT_CHECK
1018 # | | + stder1 - stderr, including trace
1019 # | | + stderr - stderr, with trace filtered out
1020 # | | + test-source - portion of testsuite that defines group
1021 # | | + times - timestamps for computing duration
1022 # | | + pass - created if group passed
1023 # | | + xpass - created if group xpassed
1024 # | | + fail - created if group failed
1025 # | | + xfail - created if group xfailed
1026 # | | + skip - created if group skipped
1027 # + at-stop - during a run: end the run if this file exists
1028 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1029 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1030 # | + TESTSUITE.log - summarizes the group results
1031 # | + ... - files created during the group
1033 # The directory the whole suite works in.
1034 # Should be absolute to let the user `cd' at will.
1035 at_suite_dir
=$at_dir/$as_me.dir
1036 # The file containing the suite ($at_dir might have changed since earlier).
1037 at_suite_log
=$at_dir/$as_me.log
1038 # The directory containing helper files per test group.
1039 at_helper_dir
=$at_suite_dir/at-groups
1040 # Stop file: if it exists, do not start new jobs.
1041 at_stop_file
=$at_suite_dir/at-stop
1042 # The fifo used for the job dispatcher.
1043 at_job_fifo
=$at_suite_dir/at-job-fifo
1046 test -d "$at_suite_dir" &&
1047 find "$at_suite_dir" -type d
! -perm -700 -exec chmod u
+rwx \
{\
} \
;
1048 rm -f -r "$at_suite_dir" "$at_suite_log"
1052 # Don't take risks: use only absolute directories in PATH.
1054 # For stand-alone test suites (ie. atconfig was not found),
1055 # AUTOTEST_PATH is relative to `.'.
1057 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1058 # of the package. Then expand it into build/src parts, since users
1059 # may create executables in both places.
1060 AUTOTEST_PATH
=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1063 for as_dir
in $AUTOTEST_PATH $PATH
1066 test -z "$as_dir" && as_dir
=.
1067 test -n "$at_path" && as_fn_append at_path
$PATH_SEPARATOR
1070 as_fn_append at_path
"$as_dir"
1073 if test -z "$at_top_build_prefix"; then
1074 # Stand-alone test suite.
1075 as_fn_append at_path
"$as_dir"
1077 # Embedded test suite.
1078 as_fn_append at_path
"$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1079 as_fn_append at_path
"$at_top_srcdir/$as_dir"
1087 # Now build and simplify PATH.
1089 # There might be directories that don't exist, but don't redirect
1090 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1093 for as_dir
in $at_path
1096 test -z "$as_dir" && as_dir
=.
1097 test -d "$as_dir" ||
continue
1099 [\\/]* | ?
:[\\/]* ) ;;
1100 * ) as_dir
=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1102 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1103 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1104 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path
=$as_dir ;;
1105 *) as_fn_append at_new_path
"$PATH_SEPARATOR$as_dir" ;;
1113 # Setting up the FDs.
1117 # 5 is the log file. Not to be overwritten if `-d'.
1118 if $at_debug_p; then
1119 at_suite_log
=/dev
/null
1123 exec 5>>"$at_suite_log"
1126 $as_echo "## ------------------------------------------------------------- ##
1127 ## Automated Testing Framework 0.17 test suite: bootstrap tests. ##
1128 ## ------------------------------------------------------------- ##"
1130 $as_echo "## ------------------------------------------------------------- ##
1131 ## Automated Testing Framework 0.17 test suite: bootstrap tests. ##
1132 ## ------------------------------------------------------------- ##"
1135 $as_echo "$as_me: command line was:"
1136 $as_echo " \$ $0 $at_cli_args"
1139 # If ChangeLog exists, list a few lines in case it might help determining
1140 # the exact version.
1141 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1142 $as_echo "## ---------- ##
1146 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1179 test -z "$as_dir" && as_dir
=.
1180 $as_echo "PATH: $as_dir"
1187 # Contents of the config files.
1188 for at_file
in atconfig atlocal
1190 test -r $at_file ||
continue
1191 $as_echo "$as_me: $at_file:"
1192 sed 's/^/| /' $at_file
1198 ## ------------------------- ##
1199 ## Autotest shell functions. ##
1200 ## ------------------------- ##
1202 # at_fn_banner NUMBER
1203 # -------------------
1204 # Output banner NUMBER, provided the testsuite is running multiple groups and
1205 # this particular banner has not yet been printed.
1208 $at_print_banners ||
return 0
1209 eval at_banner_text
=\
$at_banner_text_$1
1210 test "x$at_banner_text" = "x " && return 0
1211 eval "at_banner_text_$1=\" \""
1212 if test -z "$at_banner_text"; then
1215 $as_echo "$as_nl$at_banner_text$as_nl"
1219 # at_fn_check_prepare_notrace REASON LINE
1220 # ---------------------------------------
1221 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1222 # command; REASON is the reason for disabling tracing.
1223 at_fn_check_prepare_notrace
()
1225 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1226 $as_echo "$2" >"$at_check_line_file"
1227 at_check_trace
=: at_check_filter
=:
1228 : >"$at_stdout"; : >"$at_stderr"
1231 # at_fn_check_prepare_trace LINE
1232 # ------------------------------
1233 # Perform AT_CHECK preparations for the command at LINE for a traceable
1235 at_fn_check_prepare_trace
()
1237 $as_echo "$1" >"$at_check_line_file"
1238 at_check_trace
=$at_traceon at_check_filter
=$at_check_filter_trace
1239 : >"$at_stdout"; : >"$at_stderr"
1242 # at_fn_check_prepare_dynamic COMMAND LINE
1243 # ----------------------------------------
1244 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1245 # preparation function.
1246 at_fn_check_prepare_dynamic
()
1250 at_fn_check_prepare_notrace
'an embedded newline' "$2" ;;
1252 at_fn_check_prepare_trace
"$2" ;;
1256 # at_fn_filter_trace
1257 # ------------------
1258 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1260 at_fn_filter_trace
()
1262 mv "$at_stderr" "$at_stder1"
1263 grep '^ *+' "$at_stder1" >&2
1264 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1267 # at_fn_log_failure FILE-LIST
1268 # ---------------------------
1269 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1270 # with a failure exit code.
1271 at_fn_log_failure
()
1274 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1275 echo 1 > "$at_status_file"
1279 # at_fn_check_skip EXIT-CODE LINE
1280 # -------------------------------
1281 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1282 # the test group subshell with that same exit code. Use LINE in any report
1283 # about test failure.
1287 99) echo 99 > "$at_status_file"; at_failed
=:
1288 $as_echo "$2: hard failure"; exit 99;;
1289 77) echo 77 > "$at_status_file"; exit 77;;
1293 # at_fn_check_status EXPECTED EXIT-CODE LINE
1294 # ------------------------------------------
1295 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1296 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1297 # exit code; if it is anything else print an error message referring to LINE,
1298 # and fail the test.
1299 at_fn_check_status
()
1303 77) echo 77 > "$at_status_file"; exit 77;;
1304 99) echo 99 > "$at_status_file"; at_failed
=:
1305 $as_echo "$3: hard failure"; exit 99;;
1306 *) $as_echo "$3: exit code was $2, expected $1"
1311 # at_fn_diff_devnull FILE
1312 # -----------------------
1313 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1315 at_fn_diff_devnull
()
1317 test -s "$1" ||
return 0
1318 $at_diff "$at_devnull" "$1"
1323 # Parse out test NUMBER from the tail of this file.
1326 eval at_sed
=\
$at_sed$1
1327 sed "$at_sed" "$at_myself" > "$at_test_source"
1330 # at_fn_create_debugging_script
1331 # -----------------------------
1332 # Create the debugging script $at_group_dir/run which will reproduce the
1333 # current test group.
1334 at_fn_create_debugging_script
()
1337 echo "#! /bin/sh" &&
1338 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1339 $as_echo "cd '$at_dir'" &&
1340 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1342 } >"$at_group_dir/run" &&
1343 chmod +x
"$at_group_dir/run"
1346 ## -------------------------------- ##
1347 ## End of autotest shell functions. ##
1348 ## -------------------------------- ##
1350 $as_echo "## ---------------- ##
1351 ## Tested programs. ##
1352 ## ---------------- ##"
1356 # Report what programs are being tested.
1357 for at_program
in : $at_tested
1359 test "$at_program" = : && continue
1361 [\\/]* | ?
:[\\/]* ) $at_program_=$at_program ;;
1363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1367 test -z "$as_dir" && as_dir
=.
1368 test -f "$as_dir/$at_program" && break
1372 at_program_
=$as_dir/$at_program ;;
1374 if test -f "$at_program_"; then
1376 $as_echo "$at_srcdir/testsuite.at:30: $at_program_ --version"
1377 "$at_program_" --version </dev
/null
1381 as_fn_error $?
"cannot find $at_program" "$LINENO" 5
1386 $as_echo "## ------------------ ##
1387 ## Running the tests. ##
1388 ## ------------------ ##"
1391 at_start_date
=`date`
1392 at_start_time
=`date +%s 2>/dev/null`
1393 $as_echo "$as_me: starting at: $at_start_date" >&5
1395 # Create the master directory if it doesn't already exist.
1396 as_dir
="$at_suite_dir"; as_fn_mkdir_p ||
1397 as_fn_error $?
"cannot create \`$at_suite_dir'" "$LINENO" 5
1399 # Can we diff with `/dev/null'? DU 5.0 refuses.
1400 if diff /dev
/null
/dev
/null
>/dev
/null
2>&1; then
1401 at_devnull
=/dev
/null
1403 at_devnull
=$at_suite_dir/devnull
1407 # Use `diff -u' when possible.
1408 if at_diff
=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1415 # Get the last needed group.
1416 for at_group
in : $at_groups; do :; done
1418 # Extract the start and end lines of each test group at the tail
1426 test = substr ($ 0, 10)
1427 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1428 if (test == "'"$at_group"'") exit
1429 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1430 .
"$at_suite_dir/at-source-lines" ||
1431 as_fn_error $?
"cannot create test line number cache" "$LINENO" 5
1432 rm -f "$at_suite_dir/at-source-lines"
1434 # Set number of jobs for `-j'; avoid more jobs than test groups.
1435 set X
$at_groups; shift; at_max_jobs
=$#
1436 if test $at_max_jobs -eq 0; then
1439 if test $at_jobs -ne 1 &&
1440 { test $at_jobs -eq 0 ||
test $at_jobs -gt $at_max_jobs; }; then
1441 at_jobs
=$at_max_jobs
1444 # If parallel mode, don't output banners, don't split summary lines.
1445 if test $at_jobs -ne 1; then
1446 at_print_banners
=false
1450 # Set up helper dirs.
1451 rm -rf "$at_helper_dir" &&
1452 mkdir
"$at_helper_dir" &&
1453 cd "$at_helper_dir" &&
1454 { test -z "$at_groups" || mkdir
$at_groups; } ||
1455 as_fn_error $?
"testsuite directory setup failed" "$LINENO" 5
1457 # Functions for running a test group. We leave the actual
1458 # test group execution outside of a shell function in order
1459 # to avoid hitting zsh 4.x exit status bugs.
1461 # at_fn_group_prepare
1462 # -------------------
1463 # Prepare for running a test group.
1464 at_fn_group_prepare
()
1466 # The directory for additional per-group helper files.
1467 at_job_dir
=$at_helper_dir/$at_group
1468 # The file containing the location of the last AT_CHECK.
1469 at_check_line_file
=$at_job_dir/check-line
1470 # The file containing the exit status of the last command.
1471 at_status_file
=$at_job_dir/status
1472 # The files containing the output of the tested commands.
1473 at_stdout
=$at_job_dir/stdout
1474 at_stder1
=$at_job_dir/stder1
1475 at_stderr
=$at_job_dir/stderr
1476 # The file containing the code for a test group.
1477 at_test_source
=$at_job_dir/test-source
1478 # The file containing dates.
1479 at_times_file
=$at_job_dir/times
1481 # Be sure to come back to the top test directory.
1484 # Clearly separate the test groups when verbose.
1485 $at_first ||
$at_verbose echo
1487 at_group_normalized
=$at_group
1490 case $at_group_normalized in #(
1491 '"$at_format"'*) break;;
1493 at_group_normalized=0$at_group_normalized
1497 # Create a fresh directory for the next test group, and enter.
1498 # If one already exists, the user may have invoked ./run from
1499 # within that directory; we remove the contents, but not the
1500 # directory itself, so that we aren't pulling the rug out from
1501 # under the shell's notion of the current directory.
1502 at_group_dir
=$at_suite_dir/$at_group_normalized
1503 at_group_log
=$at_group_dir/$as_me.log
1504 if test -d "$at_group_dir"; then
1505 find "$at_group_dir" -type d
! -perm -700 -exec chmod u
+rwx
{} \
;
1506 rm -fr "$at_group_dir"/* "$at_group_dir"/.
[!.
] "$at_group_dir"/.??
*
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1509 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1510 # Be tolerant if the above `rm' was not able to remove the directory.
1511 as_dir
="$at_group_dir"; as_fn_mkdir_p
1513 echo 0 > "$at_status_file"
1515 # In verbose mode, append to the log file *and* show on
1516 # the standard output; in quiet mode only write to the log.
1517 if test -z "$at_verbose"; then
1518 at_tee_pipe
='tee -a "$at_group_log"'
1520 at_tee_pipe
='cat >> "$at_group_log"'
1524 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1525 # -------------------------------------------------
1526 # Declare the test group ORDINAL, located at LINE with group description DESC,
1527 # and residing under BANNER. Use PAD to align the status column.
1528 at_fn_group_banner
()
1531 test -n "$5" && at_fn_banner
$5
1534 [0-9]) at_desc_line
=" $1: ";;
1535 [0-9][0-9]) at_desc_line
=" $1: " ;;
1536 *) at_desc_line
="$1: " ;;
1538 as_fn_append at_desc_line
"$3$4"
1539 $at_quiet $as_echo_n "$at_desc_line"
1540 echo "# -*- compilation -*-" >> "$at_group_log"
1543 # at_fn_group_postprocess
1544 # -----------------------
1545 # Perform cleanup after running a test group.
1546 at_fn_group_postprocess
()
1548 # Be sure to come back to the suite directory, in particular
1549 # since below we might `rm' the group directory we are in currently.
1552 if test ! -f "$at_check_line_file"; then
1553 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1554 A failure happened in a test group before any test could be
1555 run. This means that test suite is improperly designed. Please
1556 report this failure to <atf-devel@NetBSD.org>.
1558 $as_echo "$at_setup_line" >"$at_check_line_file"
1561 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1562 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1563 case $at_xfail:$at_status in
1565 at_msg
="UNEXPECTED PASS"
1567 at_errexit
=$at_errexit_p
1577 at_msg
='skipped ('`cat "$at_check_line_file"`')'
1583 at_msg
='FAILED ('`cat "$at_check_line_file"`')'
1585 at_errexit
=$at_errexit_p
1589 at_msg
='expected failure ('`cat "$at_check_line_file"`')'
1595 echo "$at_res" > "$at_job_dir/$at_res"
1596 # In parallel mode, output the summary line only afterwards.
1597 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1598 $as_echo "$at_desc_line $at_color$at_msg$at_std"
1600 # Make sure there is a separator even with long titles.
1601 $as_echo " $at_color$at_msg$at_std"
1603 at_log_msg
="$at_group. $at_desc ($at_setup_line): $at_msg"
1606 # $at_times_file is only available if the group succeeded.
1607 # We're not including the group log, so the success message
1608 # is written in the global log separately. But we also
1609 # write to the group log in case they're using -d.
1610 if test -f "$at_times_file"; then
1611 at_log_msg
="$at_log_msg ("`sed 1d "$at_times_file"`')'
1612 rm -f "$at_times_file"
1614 $as_echo "$at_log_msg" >> "$at_group_log"
1615 $as_echo "$at_log_msg" >&5
1617 # Cleanup the group directory, unless the user wants the files
1618 # or the success was unexpected.
1619 if $at_debug_p ||
test $at_res = xpass
; then
1620 at_fn_create_debugging_script
1621 if test $at_res = xpass
&& $at_errexit; then
1622 echo stop
> "$at_stop_file"
1625 if test -d "$at_group_dir"; then
1626 find "$at_group_dir" -type d
! -perm -700 -exec chmod u
+rwx \
{\
} \
;
1627 rm -fr "$at_group_dir"
1629 rm -f "$at_test_source"
1633 # Upon failure, include the log into the testsuite's global
1634 # log. The failure message is written in the group log. It
1635 # is later included in the global log.
1636 $as_echo "$at_log_msg" >> "$at_group_log"
1638 # Upon failure, keep the group directory for autopsy, and create
1639 # the debugging script. With -e, do not start any further tests.
1640 at_fn_create_debugging_script
1641 if $at_errexit; then
1642 echo stop
> "$at_stop_file"
1654 if (set -m && set +m
&& set +b
) >/dev
/null
2>&1; then
1656 at_job_control_on
='set -m' at_job_control_off
='set +m' at_job_group
=-
1658 at_job_control_on
=: at_job_control_off
=: at_job_group
=
1661 for at_signal
in 1 2 15; do
1662 trap 'set +x; set +e
1664 at_signal='"$at_signal"'
1665 echo stop > "$at_stop_file"
1668 for at_pgid in `jobs -p 2>/dev/null`; do
1669 at_pgids="$at_pgids $at_job_group$at_pgid"
1671 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1673 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1676 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1678 test 1 -gt 2 && at_signame=$at_signal
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1680 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1681 as_fn_arith 128 + $at_signal && exit_status=$as_val
1682 as_fn_exit $exit_status' $at_signal
1685 rm -f "$at_stop_file"
1688 if test $at_jobs -ne 1 &&
1689 rm -f "$at_job_fifo" &&
1690 test -n "$at_job_group" &&
1691 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP
) 2>/dev
/null
1693 # FIFO job dispatcher.
1696 for at_pid in `jobs -p`; do
1697 at_pids="$at_pids $at_job_group$at_pid"
1699 if test -n "$at_pids"; then
1701 test "${TMOUT+set}" = set && at_sig=STOP
1702 kill -$at_sig $at_pids 2>/dev/null
1705 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1708 # Turn jobs into a list of numbers, starting from 1.
1709 at_joblist
=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1713 for at_group
in $at_groups; do
1714 $at_job_control_on 2>/dev
/null
1716 # Start one test group.
1719 exec 7>"$at_job_fifo"
1723 trap 'set +x; set +e
1725 echo stop > "$at_stop_file"
1727 as_fn_exit 141' PIPE
1729 if cd "$at_group_dir" &&
1730 at_fn_test
$at_group &&
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1734 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1737 at_fn_group_postprocess
1743 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
1745 shift # Consume one token.
1746 if test $# -gt 0; then :; else
1747 read at_token
<&6 ||
break
1750 test -f "$at_stop_file" && break
1753 # Read back the remaining ($at_jobs - 1) tokens.
1756 if test $# -gt 0; then
1766 # Run serially, avoid forks and other potential surprises.
1767 for at_group
in $at_groups; do
1769 if cd "$at_group_dir" &&
1770 at_fn_test
$at_group &&
1771 .
"$at_test_source"; then :; else
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1773 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1776 at_fn_group_postprocess
1777 test -f "$at_stop_file" && break
1782 # Wrap up the test suite with summary statistics.
1785 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1786 at_pass_list
=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1787 at_skip_list
=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1788 at_xfail_list
=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1789 at_xpass_list
=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1790 echo $f; done | sed '/?/d; s,/xpass,,'`
1791 at_fail_list
=`for f in ?/fail ??/fail ???/fail ????/fail; do
1792 echo $f; done | sed '/?/d; s,/fail,,'`
1794 set X
$at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1795 shift; at_group_count
=$#
1796 set X
$at_xpass_list; shift; at_xpass_count
=$#; at_xpass_list
=$
*
1797 set X
$at_xfail_list; shift; at_xfail_count
=$#
1798 set X
$at_fail_list; shift; at_fail_count
=$#; at_fail_list
=$
*
1799 set X
$at_skip_list; shift; at_skip_count
=$#
1801 as_fn_arith
$at_group_count - $at_skip_count && at_run_count
=$as_val
1802 as_fn_arith
$at_xpass_count + $at_fail_count && at_unexpected_count
=$as_val
1803 as_fn_arith
$at_xfail_count + $at_fail_count && at_total_fail_count
=$as_val
1805 # Back to the top directory.
1807 rm -rf "$at_helper_dir"
1809 # Compute the duration of the suite.
1811 at_stop_time
=`date +%s 2>/dev/null`
1812 $as_echo "$as_me: ending at: $at_stop_date" >&5
1813 case $at_start_time,$at_stop_time in
1815 as_fn_arith
$at_stop_time - $at_start_time && at_duration_s
=$as_val
1816 as_fn_arith
$at_duration_s / 60 && at_duration_m
=$as_val
1817 as_fn_arith
$at_duration_m / 60 && at_duration_h
=$as_val
1818 as_fn_arith
$at_duration_s % 60 && at_duration_s
=$as_val
1819 as_fn_arith
$at_duration_m % 60 && at_duration_m
=$as_val
1820 at_duration
="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1821 $as_echo "$as_me: test suite duration: $at_duration" >&5
1826 $as_echo "## ------------- ##
1828 ## ------------- ##"
1832 $as_echo "## ------------- ##
1834 ## ------------- ##"
1838 if test $at_run_count = 1; then
1842 at_result
="$at_run_count tests"
1845 if $at_errexit_p && test $at_unexpected_count != 0; then
1846 if test $at_xpass_count = 1; then
1847 at_result
="$at_result $at_were run, one passed"
1849 at_result
="$at_result $at_were run, one failed"
1851 at_result
="$at_result unexpectedly and inhibited subsequent tests."
1854 # Don't you just love exponential explosion of the number of cases?
1856 case $at_xpass_count:$at_fail_count:$at_xfail_count in
1858 0:0:0) at_result
="$at_result $at_were successful." at_color
=$at_grn ;;
1859 0:0:*) at_result
="$at_result behaved as expected." at_color
=$at_lgn ;;
1861 # Some unexpected failures
1862 0:*:0) at_result
="$at_result $at_were run,
1863 $at_fail_count failed unexpectedly." ;;
1865 # Some failures, both expected and unexpected
1866 0:*:1) at_result
="$at_result $at_were run,
1867 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1868 0:*:*) at_result
="$at_result $at_were run,
1869 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1871 # No unexpected failures, but some xpasses
1872 *:0:*) at_result
="$at_result $at_were run,
1873 $at_xpass_count passed unexpectedly." ;;
1875 # No expected failures, but failures and xpasses
1876 *:1:0) at_result
="$at_result $at_were run,
1877 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1878 *:*:0) at_result
="$at_result $at_were run,
1879 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1882 *:*:1) at_result
="$at_result $at_were run,
1883 $at_xpass_count passed unexpectedly,
1884 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1885 *:*:*) at_result
="$at_result $at_were run,
1886 $at_xpass_count passed unexpectedly,
1887 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1890 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1891 at_result
="All $at_result"
1895 # Now put skips in the mix.
1896 case $at_skip_count in
1898 1) at_result
="$at_result
1899 1 test was skipped." ;;
1900 *) at_result
="$at_result
1901 $at_skip_count tests were skipped." ;;
1904 if test $at_unexpected_count = 0; then
1905 echo "$at_color$at_result$at_std"
1906 echo "$at_result" >&5
1908 echo "${at_color}ERROR: $at_result$at_std" >&2
1909 echo "ERROR: $at_result" >&5
1912 $as_echo "## ------------------------ ##
1913 ## Summary of the failures. ##
1914 ## ------------------------ ##"
1916 # Summary of failed and skipped tests.
1917 if test $at_fail_count != 0; then
1918 echo "Failed tests:"
1919 $SHELL "$at_myself" $at_fail_list --list
1922 if test $at_skip_count != 0; then
1923 echo "Skipped tests:"
1924 $SHELL "$at_myself" $at_skip_list --list
1927 if test $at_xpass_count != 0; then
1928 echo "Unexpected passes:"
1929 $SHELL "$at_myself" $at_xpass_list --list
1932 if test $at_fail_count != 0; then
1933 $as_echo "## ---------------------- ##
1934 ## Detailed failed tests. ##
1935 ## ---------------------- ##"
1937 for at_group
in $at_fail_list
1939 at_group_normalized
=$at_group
1942 case $at_group_normalized in #(
1943 '"$at_format"'*) break;;
1945 at_group_normalized=0$at_group_normalized
1948 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1953 if test -n "$at_top_srcdir"; then
1954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1955 ## ${at_top_build_prefix}config.log ##
1957 sed 's/^/| /' ${at_top_build_prefix}config.log
1962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1963 ## $as_me.log was created. ##
1967 if $at_debug_p; then
1968 at_msg
='per-test log files'
1970 at_msg
="\`${at_testdir+${at_testdir}/}$as_me.log'"
1972 $as_echo "Please send $at_msg and all information you think might help:
1974 To: <atf-devel@NetBSD.org>
1975 Subject: [Automated Testing Framework 0.17] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1977 You may investigate any problem if you feel able to do so, in which
1978 case the test suite provides a good starting point. Its output may
1979 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
1990 at_fn_group_banner
1 't_test_program_filter.at:30' \
1991 "test_program: filter test cases by name" " "
1994 $as_echo "1. $at_setup_line: testing $at_desc ..."
1998 for h
in tp_basic_c tp_basic_cpp tp_basic_sh
; do
2001 $as_echo "$at_srcdir/t_test_program_filter.at:35: \$({
2003 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2009 })/bootstrap/h_\${h} \\
2012 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2018 })/bootstrap invalid"
2019 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_filter.at:35"
2020 ( $at_check_trace; $
({
2022 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2028 })/bootstrap
/h_
${h} \
2031 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2037 })/bootstrap invalid
2038 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2039 at_status
=$? at_failed
=false
2041 echo stderr
:; tee stderr
<"$at_stderr"
2042 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2043 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_filter.at:35"
2044 $at_failed && at_fn_log_failure
2048 $as_echo "$at_srcdir/t_test_program_filter.at:36: grep \"Unknown test case .invalid'\" stderr"
2049 at_fn_check_prepare_trace
"t_test_program_filter.at:36"
2050 ( $at_check_trace; grep "Unknown test case .invalid'" stderr
2051 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2052 at_status
=$? at_failed
=false
2054 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2055 echo stdout
:; cat "$at_stdout"
2056 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:36"
2057 $at_failed && at_fn_log_failure
2062 $as_echo "$at_srcdir/t_test_program_filter.at:40: \$({
2064 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2070 })/bootstrap/h_\${h} \\
2073 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2079 })/bootstrap \"*p*\""
2080 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_filter.at:40"
2081 ( $at_check_trace; $
({
2083 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2089 })/bootstrap
/h_
${h} \
2092 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2099 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2100 at_status
=$? at_failed
=false
2102 echo stderr
:; tee stderr
<"$at_stderr"
2103 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2104 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_filter.at:40"
2105 $at_failed && at_fn_log_failure
2109 $as_echo "$at_srcdir/t_test_program_filter.at:41: grep \"Unknown test case .\\\\*p\\\\*'\" stderr"
2110 at_fn_check_prepare_trace
"t_test_program_filter.at:41"
2111 ( $at_check_trace; grep "Unknown test case .\\*p\\*'" stderr
2112 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2113 at_status
=$? at_failed
=false
2115 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2116 echo stdout
:; cat "$at_stdout"
2117 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:41"
2118 $at_failed && at_fn_log_failure
2122 cat >expres
<<'_ATEOF'
2127 $as_echo "$at_srcdir/t_test_program_filter.at:46: \$({
2129 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2135 })/bootstrap/h_\${h} \\
2138 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2144 })/bootstrap -r resout pass"
2145 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_filter.at:46"
2146 ( $at_check_trace; $
({
2148 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2154 })/bootstrap
/h_
${h} \
2157 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2163 })/bootstrap
-r resout pass
2164 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2165 at_status
=$? at_failed
=false
2167 echo stderr
:; cat "$at_stderr"
2168 echo stdout
:; cat "$at_stdout"
2169 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:46"
2170 $at_failed && at_fn_log_failure
2174 $as_echo "$at_srcdir/t_test_program_filter.at:47: cmp -s resout expres"
2175 at_fn_check_prepare_trace
"t_test_program_filter.at:47"
2176 ( $at_check_trace; cmp -s resout expres
2177 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2178 at_status
=$? at_failed
=false
2180 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2181 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2182 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:47"
2183 $at_failed && at_fn_log_failure
2187 cat >expres
<<'_ATEOF'
2192 $as_echo "$at_srcdir/t_test_program_filter.at:51: \$({
2194 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2200 })/bootstrap/h_\${h} \\
2203 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2209 })/bootstrap -r resout skip"
2210 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_filter.at:51"
2211 ( $at_check_trace; $
({
2213 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2219 })/bootstrap
/h_
${h} \
2222 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2228 })/bootstrap
-r resout skip
2229 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2230 at_status
=$? at_failed
=false
2232 echo stderr
:; cat "$at_stderr"
2233 echo stdout
:; cat "$at_stdout"
2234 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:51"
2235 $at_failed && at_fn_log_failure
2239 $as_echo "$at_srcdir/t_test_program_filter.at:52: cmp -s resout expres"
2240 at_fn_check_prepare_trace
"t_test_program_filter.at:52"
2241 ( $at_check_trace; cmp -s resout expres
2242 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2243 at_status
=$? at_failed
=false
2245 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2246 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2247 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:52"
2248 $at_failed && at_fn_log_failure
2252 cat >expres
<<'_ATEOF'
2257 $as_echo "$at_srcdir/t_test_program_filter.at:56: \$({
2259 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2265 })/bootstrap/h_\${h} \\
2268 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2274 })/bootstrap -r resout fail"
2275 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_filter.at:56"
2276 ( $at_check_trace; $
({
2278 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2284 })/bootstrap
/h_
${h} \
2287 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2293 })/bootstrap
-r resout fail
2294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2295 at_status
=$? at_failed
=false
2297 echo stderr
:; cat "$at_stderr"
2298 echo stdout
:; cat "$at_stdout"
2299 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_filter.at:56"
2300 $at_failed && at_fn_log_failure
2304 $as_echo "$at_srcdir/t_test_program_filter.at:57: cmp -s resout expres"
2305 at_fn_check_prepare_trace
"t_test_program_filter.at:57"
2306 ( $at_check_trace; cmp -s resout expres
2307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2308 at_status
=$? at_failed
=false
2310 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2311 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2312 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_filter.at:57"
2313 $at_failed && at_fn_log_failure
2320 $at_times_p && times >"$at_times_file"
2321 ) 5>&1 2>&1 7>&- |
eval $at_tee_pipe
2322 read at_status
<"$at_status_file"
2325 at_fn_group_banner
2 't_test_program_run.at:30' \
2326 "test_program: output format and exit codes" " "
2329 $as_echo "2. $at_setup_line: testing $at_desc ..."
2333 for h
in tp_basic_c tp_basic_cpp tp_basic_sh
; do
2336 $as_echo "$at_srcdir/t_test_program_run.at:35: \$({
2338 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2344 })/bootstrap/h_\${h} \\
2347 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2353 })/bootstrap -r resout pass"
2354 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_run.at:35"
2355 ( $at_check_trace; $
({
2357 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2363 })/bootstrap
/h_
${h} \
2366 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2372 })/bootstrap
-r resout pass
2373 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2374 at_status
=$? at_failed
=false
2376 echo stderr
:; tee stderr
<"$at_stderr"
2377 echo stdout
:; tee stdout
<"$at_stdout"
2378 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:35"
2379 $at_failed && at_fn_log_failure
2382 echo 'passed' >expres
<<EOF
2387 $as_echo "$at_srcdir/t_test_program_run.at:36: diff -u expres resout"
2388 at_fn_check_prepare_trace
"t_test_program_run.at:36"
2389 ( $at_check_trace; diff -u expres resout
2390 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2391 at_status
=$? at_failed
=false
2393 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2394 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2395 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:36"
2396 $at_failed && at_fn_log_failure
2401 $as_echo "$at_srcdir/t_test_program_run.at:38: \$({
2403 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2409 })/bootstrap/h_\${h} \\
2412 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2418 })/bootstrap -r resout fail"
2419 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_run.at:38"
2420 ( $at_check_trace; $
({
2422 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2428 })/bootstrap
/h_
${h} \
2431 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2437 })/bootstrap
-r resout fail
2438 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2439 at_status
=$? at_failed
=false
2441 echo stderr
:; tee stderr
<"$at_stderr"
2442 echo stdout
:; tee stdout
<"$at_stdout"
2443 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_run.at:38"
2444 $at_failed && at_fn_log_failure
2447 echo 'failed' >expres
<<EOF
2450 echo "failed: On purpose" >expres
2452 $as_echo "$at_srcdir/t_test_program_run.at:39: diff -u expres resout"
2453 at_fn_check_prepare_trace
"t_test_program_run.at:39"
2454 ( $at_check_trace; diff -u expres resout
2455 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2456 at_status
=$? at_failed
=false
2458 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2459 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2460 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:39"
2461 $at_failed && at_fn_log_failure
2466 $as_echo "$at_srcdir/t_test_program_run.at:41: \$({
2468 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2474 })/bootstrap/h_\${h} \\
2477 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2483 })/bootstrap -r resout skip"
2484 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_run.at:41"
2485 ( $at_check_trace; $
({
2487 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2493 })/bootstrap
/h_
${h} \
2496 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2502 })/bootstrap
-r resout skip
2503 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2504 at_status
=$? at_failed
=false
2506 echo stderr
:; tee stderr
<"$at_stderr"
2507 echo stdout
:; tee stdout
<"$at_stdout"
2508 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:41"
2509 $at_failed && at_fn_log_failure
2512 echo 'skipped' >expres
<<EOF
2515 echo "skipped: By design" >expres
2517 $as_echo "$at_srcdir/t_test_program_run.at:42: diff -u expres resout"
2518 at_fn_check_prepare_trace
"t_test_program_run.at:42"
2519 ( $at_check_trace; diff -u expres resout
2520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2521 at_status
=$? at_failed
=false
2523 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2524 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2525 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:42"
2526 $at_failed && at_fn_log_failure
2531 $as_echo "$at_srcdir/t_test_program_run.at:44: \$({
2533 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2539 })/bootstrap/h_\${h} \\
2542 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2548 })/bootstrap -r resout default"
2549 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_run.at:44"
2550 ( $at_check_trace; $
({
2552 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2558 })/bootstrap
/h_
${h} \
2561 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2567 })/bootstrap
-r resout default
2568 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2569 at_status
=$? at_failed
=false
2571 echo stderr
:; tee stderr
<"$at_stderr"
2572 echo stdout
:; tee stdout
<"$at_stdout"
2573 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:44"
2574 $at_failed && at_fn_log_failure
2577 echo 'passed' >expres
<<EOF
2582 $as_echo "$at_srcdir/t_test_program_run.at:45: diff -u expres resout"
2583 at_fn_check_prepare_trace
"t_test_program_run.at:45"
2584 ( $at_check_trace; diff -u expres resout
2585 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2586 at_status
=$? at_failed
=false
2588 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2589 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2590 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_run.at:45"
2591 $at_failed && at_fn_log_failure
2598 $at_times_p && times >"$at_times_file"
2599 ) 5>&1 2>&1 7>&- |
eval $at_tee_pipe
2600 read at_status
<"$at_status_file"
2603 at_fn_group_banner
3 't_test_program_list.at:30' \
2604 "test_program: list test cases" " "
2607 $as_echo "3. $at_setup_line: testing $at_desc ..."
2611 for h
in tp_basic_c tp_basic_cpp tp_basic_sh
; do
2613 cat >expout
<<'_ATEOF'
2614 Content-Type: application/X-atf-tp; version="1"
2617 descr: An empty test case that always passes
2620 descr: An empty test case that always fails
2623 descr: An empty test case that is always skipped
2626 descr: A test case that passes without explicitly stating it
2631 $as_echo "$at_srcdir/t_test_program_list.at:49: \$({
2633 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2639 })/bootstrap/h_\${h} \\
2642 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2649 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_list.at:49"
2650 ( $at_check_trace; $
({
2652 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2658 })/bootstrap
/h_
${h} \
2661 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2669 at_status
=$? at_failed
=false
2671 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2672 $at_diff expout
"$at_stdout" || at_failed
=:
2673 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_list.at:49"
2674 $at_failed && at_fn_log_failure
2679 $as_echo "$at_srcdir/t_test_program_list.at:51: \$({
2681 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2687 })/bootstrap/h_\${h} \\
2690 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2696 })/bootstrap -l pass"
2697 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_list.at:51"
2698 ( $at_check_trace; $
({
2700 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2706 })/bootstrap
/h_
${h} \
2709 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2715 })/bootstrap
-l pass
2716 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2717 at_status
=$? at_failed
=false
2719 echo stderr
:; tee stderr
<"$at_stderr"
2720 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2721 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_list.at:51"
2722 $at_failed && at_fn_log_failure
2726 $as_echo "$at_srcdir/t_test_program_list.at:52: grep 'Cannot provide test case names with -l' stderr"
2727 at_fn_check_prepare_trace
"t_test_program_list.at:52"
2728 ( $at_check_trace; grep 'Cannot provide test case names with -l' stderr
2729 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2730 at_status
=$? at_failed
=false
2732 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2733 echo stdout
:; cat "$at_stdout"
2734 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_list.at:52"
2735 $at_failed && at_fn_log_failure
2740 $as_echo "$at_srcdir/t_test_program_list.at:55: \$({
2742 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2748 })/bootstrap/h_\${h} \\
2751 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2757 })/bootstrap -l pass fail"
2758 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_list.at:55"
2759 ( $at_check_trace; $
({
2761 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2767 })/bootstrap
/h_
${h} \
2770 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2776 })/bootstrap
-l pass fail
2777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2778 at_status
=$? at_failed
=false
2780 echo stderr
:; tee stderr
<"$at_stderr"
2781 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2782 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_list.at:55"
2783 $at_failed && at_fn_log_failure
2787 $as_echo "$at_srcdir/t_test_program_list.at:56: grep 'Cannot provide test case names with -l' stderr"
2788 at_fn_check_prepare_trace
"t_test_program_list.at:56"
2789 ( $at_check_trace; grep 'Cannot provide test case names with -l' stderr
2790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2791 at_status
=$? at_failed
=false
2793 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
2794 echo stdout
:; cat "$at_stdout"
2795 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_list.at:56"
2796 $at_failed && at_fn_log_failure
2803 $at_times_p && times >"$at_times_file"
2804 ) 5>&1 2>&1 7>&- |
eval $at_tee_pipe
2805 read at_status
<"$at_status_file"
2808 at_fn_group_banner
4 't_test_program_compare.at:30' \
2809 "test_program: compare the user-visible interfaces" ""
2812 $as_echo "4. $at_setup_line: testing $at_desc ..."
2817 $as_echo "$at_srcdir/t_test_program_compare.at:33: \$({
2819 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2825 })/bootstrap/h_tp_basic_c \\
2828 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2835 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:33"
2836 ( $at_check_trace; $
({
2838 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2844 })/bootstrap
/h_tp_basic_c \
2847 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2855 at_status
=$? at_failed
=false
2857 echo stderr
:; tee stderr
<"$at_stderr"
2858 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2859 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:33"
2860 $at_failed && at_fn_log_failure
2863 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
2865 $as_echo "$at_srcdir/t_test_program_compare.at:35: \$({
2867 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2873 })/bootstrap/h_tp_basic_cpp \\
2876 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2883 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:35"
2884 ( $at_check_trace; $
({
2886 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2892 })/bootstrap
/h_tp_basic_cpp \
2895 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2902 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2903 at_status
=$? at_failed
=false
2905 $at_diff experr
"$at_stderr" || at_failed
=:
2906 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2907 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:35"
2908 $at_failed && at_fn_log_failure
2911 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
2913 $as_echo "$at_srcdir/t_test_program_compare.at:37: \$({
2915 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2921 })/bootstrap/h_tp_basic_sh \\
2924 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2931 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:37"
2932 ( $at_check_trace; $
({
2934 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2940 })/bootstrap
/h_tp_basic_sh \
2943 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2950 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2951 at_status
=$? at_failed
=false
2953 $at_diff experr
"$at_stderr" || at_failed
=:
2954 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
2955 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:37"
2956 $at_failed && at_fn_log_failure
2961 $as_echo "$at_srcdir/t_test_program_compare.at:40: \$({
2963 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2969 })/bootstrap/h_tp_basic_c \\
2972 while test \$(pwd) != '/' -a ! -e ./Makefile; do
2979 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:40"
2980 ( $at_check_trace; $
({
2982 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2988 })/bootstrap
/h_tp_basic_c \
2991 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
2998 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2999 at_status
=$? at_failed
=false
3001 echo stderr
:; tee stderr
<"$at_stderr"
3002 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3003 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:40"
3004 $at_failed && at_fn_log_failure
3007 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3009 $as_echo "$at_srcdir/t_test_program_compare.at:42: \$({
3011 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3017 })/bootstrap/h_tp_basic_cpp \\
3020 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3027 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:42"
3028 ( $at_check_trace; $
({
3030 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3036 })/bootstrap
/h_tp_basic_cpp \
3039 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3046 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3047 at_status
=$? at_failed
=false
3049 $at_diff experr
"$at_stderr" || at_failed
=:
3050 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3051 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:42"
3052 $at_failed && at_fn_log_failure
3055 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3057 $as_echo "$at_srcdir/t_test_program_compare.at:44: \$({
3059 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3065 })/bootstrap/h_tp_basic_sh \\
3068 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3075 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:44"
3076 ( $at_check_trace; $
({
3078 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3084 })/bootstrap
/h_tp_basic_sh \
3087 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3094 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3095 at_status
=$? at_failed
=false
3097 $at_diff experr
"$at_stderr" || at_failed
=:
3098 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3099 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:44"
3100 $at_failed && at_fn_log_failure
3105 $as_echo "$at_srcdir/t_test_program_compare.at:47: \$({
3107 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3113 })/bootstrap/h_tp_basic_c \\
3116 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3123 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:47"
3124 ( $at_check_trace; $
({
3126 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3132 })/bootstrap
/h_tp_basic_c \
3135 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3142 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3143 at_status
=$? at_failed
=false
3145 echo stderr
:; tee stderr
<"$at_stderr"
3146 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3147 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:47"
3148 $at_failed && at_fn_log_failure
3151 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3153 $as_echo "$at_srcdir/t_test_program_compare.at:49: \$({
3155 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3161 })/bootstrap/h_tp_basic_cpp \\
3164 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3171 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:49"
3172 ( $at_check_trace; $
({
3174 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3180 })/bootstrap
/h_tp_basic_cpp \
3183 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3190 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3191 at_status
=$? at_failed
=false
3193 $at_diff experr
"$at_stderr" || at_failed
=:
3194 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3195 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:49"
3196 $at_failed && at_fn_log_failure
3199 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3201 $as_echo "$at_srcdir/t_test_program_compare.at:51: \$({
3203 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3209 })/bootstrap/h_tp_basic_sh \\
3212 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3219 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:51"
3220 ( $at_check_trace; $
({
3222 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3228 })/bootstrap
/h_tp_basic_sh \
3231 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3238 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3239 at_status
=$? at_failed
=false
3241 $at_diff experr
"$at_stderr" || at_failed
=:
3242 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3243 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:51"
3244 $at_failed && at_fn_log_failure
3249 $as_echo "$at_srcdir/t_test_program_compare.at:54: \$({
3251 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3257 })/bootstrap/h_tp_basic_c \\
3260 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3267 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:54"
3268 ( $at_check_trace; $
({
3270 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3276 })/bootstrap
/h_tp_basic_c \
3279 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3286 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3287 at_status
=$? at_failed
=false
3289 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3290 echo stdout
:; tee stdout
<"$at_stdout"
3291 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:54"
3292 $at_failed && at_fn_log_failure
3295 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
3297 $as_echo "$at_srcdir/t_test_program_compare.at:56: \$({
3299 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3305 })/bootstrap/h_tp_basic_cpp \\
3308 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3315 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:56"
3316 ( $at_check_trace; $
({
3318 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3324 })/bootstrap
/h_tp_basic_cpp \
3327 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3335 at_status
=$? at_failed
=false
3337 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3338 $at_diff expout
"$at_stdout" || at_failed
=:
3339 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:56"
3340 $at_failed && at_fn_log_failure
3343 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
3345 $as_echo "$at_srcdir/t_test_program_compare.at:58: \$({
3347 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3353 })/bootstrap/h_tp_basic_sh \\
3356 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3363 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:58"
3364 ( $at_check_trace; $
({
3366 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3372 })/bootstrap
/h_tp_basic_sh \
3375 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3382 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3383 at_status
=$? at_failed
=false
3385 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3386 $at_diff expout
"$at_stdout" || at_failed
=:
3387 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:58"
3388 $at_failed && at_fn_log_failure
3393 $as_echo "$at_srcdir/t_test_program_compare.at:61: \$({
3395 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3401 })/bootstrap/h_tp_basic_c \\
3404 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3411 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:61"
3412 ( $at_check_trace; $
({
3414 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3420 })/bootstrap
/h_tp_basic_c \
3423 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3430 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3431 at_status
=$? at_failed
=false
3433 echo stderr
:; tee stderr
<"$at_stderr"
3434 echo stdout
:; tee stdout
<"$at_stdout"
3435 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:61"
3436 $at_failed && at_fn_log_failure
3439 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
3440 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3442 $as_echo "$at_srcdir/t_test_program_compare.at:65: \$({
3444 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3450 })/bootstrap/h_tp_basic_cpp \\
3453 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3460 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:65"
3461 ( $at_check_trace; $
({
3463 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3469 })/bootstrap
/h_tp_basic_cpp \
3472 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3479 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3480 at_status
=$? at_failed
=false
3482 $at_diff experr
"$at_stderr" || at_failed
=:
3483 $at_diff expout
"$at_stdout" || at_failed
=:
3484 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:65"
3485 $at_failed && at_fn_log_failure
3488 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
3489 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3491 $as_echo "$at_srcdir/t_test_program_compare.at:69: \$({
3493 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3499 })/bootstrap/h_tp_basic_sh \\
3502 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3509 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:69"
3510 ( $at_check_trace; $
({
3512 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3518 })/bootstrap
/h_tp_basic_sh \
3521 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3528 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3529 at_status
=$? at_failed
=false
3531 $at_diff experr
"$at_stderr" || at_failed
=:
3532 $at_diff expout
"$at_stdout" || at_failed
=:
3533 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:69"
3534 $at_failed && at_fn_log_failure
3539 $as_echo "$at_srcdir/t_test_program_compare.at:73: \$({
3541 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3547 })/bootstrap/h_tp_basic_c \\
3550 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3556 })/bootstrap -r resout pass"
3557 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:73"
3558 ( $at_check_trace; $
({
3560 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3566 })/bootstrap
/h_tp_basic_c \
3569 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3575 })/bootstrap
-r resout pass
3576 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3577 at_status
=$? at_failed
=false
3579 echo stderr
:; tee stderr
<"$at_stderr"
3580 echo stdout
:; tee stdout
<"$at_stdout"
3581 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:73"
3582 $at_failed && at_fn_log_failure
3585 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
3586 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3587 sed 's,tp_basic_c,tp_basic_cpp,g' <resout
>resexp
3589 $as_echo "$at_srcdir/t_test_program_compare.at:78: \$({
3591 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3597 })/bootstrap/h_tp_basic_cpp \\
3600 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3606 })/bootstrap -r resout pass"
3607 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:78"
3608 ( $at_check_trace; $
({
3610 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3616 })/bootstrap
/h_tp_basic_cpp \
3619 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3625 })/bootstrap
-r resout pass
3626 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3627 at_status
=$? at_failed
=false
3629 $at_diff experr
"$at_stderr" || at_failed
=:
3630 $at_diff expout
"$at_stdout" || at_failed
=:
3631 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:78"
3632 $at_failed && at_fn_log_failure
3636 $as_echo "$at_srcdir/t_test_program_compare.at:80: cmp -s resout resexp"
3637 at_fn_check_prepare_trace
"t_test_program_compare.at:80"
3638 ( $at_check_trace; cmp -s resout resexp
3639 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3640 at_status
=$? at_failed
=false
3642 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3643 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3644 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:80"
3645 $at_failed && at_fn_log_failure
3648 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
3649 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3650 sed 's,tp_basic_c,tp_basic_sh,g' <resout
>resexp
3652 $as_echo "$at_srcdir/t_test_program_compare.at:84: \$({
3654 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3660 })/bootstrap/h_tp_basic_sh \\
3663 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3669 })/bootstrap -r resout pass"
3670 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:84"
3671 ( $at_check_trace; $
({
3673 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3679 })/bootstrap
/h_tp_basic_sh \
3682 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3688 })/bootstrap
-r resout pass
3689 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3690 at_status
=$? at_failed
=false
3692 $at_diff experr
"$at_stderr" || at_failed
=:
3693 $at_diff expout
"$at_stdout" || at_failed
=:
3694 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:84"
3695 $at_failed && at_fn_log_failure
3699 $as_echo "$at_srcdir/t_test_program_compare.at:86: cmp -s resout resexp"
3700 at_fn_check_prepare_trace
"t_test_program_compare.at:86"
3701 ( $at_check_trace; cmp -s resout resexp
3702 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3703 at_status
=$? at_failed
=false
3705 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3706 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3707 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:86"
3708 $at_failed && at_fn_log_failure
3713 $as_echo "$at_srcdir/t_test_program_compare.at:89: \$({
3715 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3721 })/bootstrap/h_tp_basic_c \\
3724 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3730 })/bootstrap -r resout fail"
3731 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:89"
3732 ( $at_check_trace; $
({
3734 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3740 })/bootstrap
/h_tp_basic_c \
3743 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3749 })/bootstrap
-r resout fail
3750 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3751 at_status
=$? at_failed
=false
3753 echo stderr
:; tee stderr
<"$at_stderr"
3754 echo stdout
:; tee stdout
<"$at_stdout"
3755 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:89"
3756 $at_failed && at_fn_log_failure
3759 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
3760 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3761 sed 's,tp_basic_c,tp_basic_cpp,g' <resout
>resexp
3763 $as_echo "$at_srcdir/t_test_program_compare.at:94: \$({
3765 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3771 })/bootstrap/h_tp_basic_cpp \\
3774 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3780 })/bootstrap -r resout fail"
3781 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:94"
3782 ( $at_check_trace; $
({
3784 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3790 })/bootstrap
/h_tp_basic_cpp \
3793 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3799 })/bootstrap
-r resout fail
3800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3801 at_status
=$? at_failed
=false
3803 $at_diff experr
"$at_stderr" || at_failed
=:
3804 $at_diff expout
"$at_stdout" || at_failed
=:
3805 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:94"
3806 $at_failed && at_fn_log_failure
3810 $as_echo "$at_srcdir/t_test_program_compare.at:96: cmp -s resout resexp"
3811 at_fn_check_prepare_trace
"t_test_program_compare.at:96"
3812 ( $at_check_trace; cmp -s resout resexp
3813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3814 at_status
=$? at_failed
=false
3816 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3817 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3818 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:96"
3819 $at_failed && at_fn_log_failure
3822 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
3823 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3824 sed 's,tp_basic_c,tp_basic_sh,g' <resout
>resexp
3826 $as_echo "$at_srcdir/t_test_program_compare.at:100: \$({
3828 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3834 })/bootstrap/h_tp_basic_sh \\
3837 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3843 })/bootstrap -r resout fail"
3844 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:100"
3845 ( $at_check_trace; $
({
3847 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3853 })/bootstrap
/h_tp_basic_sh \
3856 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3862 })/bootstrap
-r resout fail
3863 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3864 at_status
=$? at_failed
=false
3866 $at_diff experr
"$at_stderr" || at_failed
=:
3867 $at_diff expout
"$at_stdout" || at_failed
=:
3868 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:100"
3869 $at_failed && at_fn_log_failure
3873 $as_echo "$at_srcdir/t_test_program_compare.at:102: cmp -s resout resexp"
3874 at_fn_check_prepare_trace
"t_test_program_compare.at:102"
3875 ( $at_check_trace; cmp -s resout resexp
3876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3877 at_status
=$? at_failed
=false
3879 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3880 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3881 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:102"
3882 $at_failed && at_fn_log_failure
3887 $as_echo "$at_srcdir/t_test_program_compare.at:105: \$({
3889 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3895 })/bootstrap/h_tp_basic_c \\
3898 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3904 })/bootstrap -r resout skip"
3905 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:105"
3906 ( $at_check_trace; $
({
3908 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3914 })/bootstrap
/h_tp_basic_c \
3917 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3923 })/bootstrap
-r resout skip
3924 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3925 at_status
=$? at_failed
=false
3927 echo stderr
:; tee stderr
<"$at_stderr"
3928 echo stdout
:; tee stdout
<"$at_stdout"
3929 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:105"
3930 $at_failed && at_fn_log_failure
3933 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
3934 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
3935 sed 's,tp_basic_c,tp_basic_cpp,g' <resout
>resexp
3937 $as_echo "$at_srcdir/t_test_program_compare.at:110: \$({
3939 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3945 })/bootstrap/h_tp_basic_cpp \\
3948 while test \$(pwd) != '/' -a ! -e ./Makefile; do
3954 })/bootstrap -r resout skip"
3955 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:110"
3956 ( $at_check_trace; $
({
3958 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3964 })/bootstrap
/h_tp_basic_cpp \
3967 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
3973 })/bootstrap
-r resout skip
3974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3975 at_status
=$? at_failed
=false
3977 $at_diff experr
"$at_stderr" || at_failed
=:
3978 $at_diff expout
"$at_stdout" || at_failed
=:
3979 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:110"
3980 $at_failed && at_fn_log_failure
3984 $as_echo "$at_srcdir/t_test_program_compare.at:112: cmp -s resout resexp"
3985 at_fn_check_prepare_trace
"t_test_program_compare.at:112"
3986 ( $at_check_trace; cmp -s resout resexp
3987 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3988 at_status
=$? at_failed
=false
3990 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
3991 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
3992 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:112"
3993 $at_failed && at_fn_log_failure
3996 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
3997 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
3998 sed 's,tp_basic_c,tp_basic_sh,g' <resout
>resexp
4000 $as_echo "$at_srcdir/t_test_program_compare.at:116: \$({
4002 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4008 })/bootstrap/h_tp_basic_sh \\
4011 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4017 })/bootstrap -r resout skip"
4018 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:116"
4019 ( $at_check_trace; $
({
4021 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4027 })/bootstrap
/h_tp_basic_sh \
4030 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4036 })/bootstrap
-r resout skip
4037 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4038 at_status
=$? at_failed
=false
4040 $at_diff experr
"$at_stderr" || at_failed
=:
4041 $at_diff expout
"$at_stdout" || at_failed
=:
4042 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:116"
4043 $at_failed && at_fn_log_failure
4047 $as_echo "$at_srcdir/t_test_program_compare.at:118: cmp -s resout resexp"
4048 at_fn_check_prepare_trace
"t_test_program_compare.at:118"
4049 ( $at_check_trace; cmp -s resout resexp
4050 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4051 at_status
=$? at_failed
=false
4053 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
4054 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
4055 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:118"
4056 $at_failed && at_fn_log_failure
4061 $as_echo "$at_srcdir/t_test_program_compare.at:121: \$({
4063 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4069 })/bootstrap/h_tp_basic_c \\
4072 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4078 })/bootstrap -r resout default"
4079 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:121"
4080 ( $at_check_trace; $
({
4082 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4088 })/bootstrap
/h_tp_basic_c \
4091 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4097 })/bootstrap
-r resout default
4098 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4099 at_status
=$? at_failed
=false
4101 echo stderr
:; tee stderr
<"$at_stderr"
4102 echo stdout
:; tee stdout
<"$at_stdout"
4103 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:121"
4104 $at_failed && at_fn_log_failure
4107 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
4108 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
4109 sed 's,tp_basic_c,tp_basic_cpp,g' <resout
>resexp
4111 $as_echo "$at_srcdir/t_test_program_compare.at:126: \$({
4113 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4119 })/bootstrap/h_tp_basic_cpp \\
4122 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4128 })/bootstrap -r resout default"
4129 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:126"
4130 ( $at_check_trace; $
({
4132 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4138 })/bootstrap
/h_tp_basic_cpp \
4141 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4147 })/bootstrap
-r resout default
4148 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4149 at_status
=$? at_failed
=false
4151 $at_diff experr
"$at_stderr" || at_failed
=:
4152 $at_diff expout
"$at_stdout" || at_failed
=:
4153 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:126"
4154 $at_failed && at_fn_log_failure
4158 $as_echo "$at_srcdir/t_test_program_compare.at:128: cmp -s resout resexp"
4159 at_fn_check_prepare_trace
"t_test_program_compare.at:128"
4160 ( $at_check_trace; cmp -s resout resexp
4161 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4162 at_status
=$? at_failed
=false
4164 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
4165 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
4166 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:128"
4167 $at_failed && at_fn_log_failure
4170 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
4171 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
4172 sed 's,tp_basic_c,tp_basic_sh,g' <resout
>resexp
4174 $as_echo "$at_srcdir/t_test_program_compare.at:132: \$({
4176 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4182 })/bootstrap/h_tp_basic_sh \\
4185 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4191 })/bootstrap -r resout default"
4192 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:132"
4193 ( $at_check_trace; $
({
4195 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4201 })/bootstrap
/h_tp_basic_sh \
4204 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4210 })/bootstrap
-r resout default
4211 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4212 at_status
=$? at_failed
=false
4214 $at_diff experr
"$at_stderr" || at_failed
=:
4215 $at_diff expout
"$at_stdout" || at_failed
=:
4216 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:132"
4217 $at_failed && at_fn_log_failure
4221 $as_echo "$at_srcdir/t_test_program_compare.at:134: cmp -s resout resexp"
4222 at_fn_check_prepare_trace
"t_test_program_compare.at:134"
4223 ( $at_check_trace; cmp -s resout resexp
4224 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4225 at_status
=$? at_failed
=false
4227 at_fn_diff_devnull
"$at_stderr" || at_failed
=:
4228 at_fn_diff_devnull
"$at_stdout" || at_failed
=:
4229 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:134"
4230 $at_failed && at_fn_log_failure
4235 $as_echo "$at_srcdir/t_test_program_compare.at:137: \$({
4237 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4243 })/bootstrap/h_tp_basic_c \\
4246 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4252 })/bootstrap pass fail"
4253 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:137"
4254 ( $at_check_trace; $
({
4256 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4262 })/bootstrap
/h_tp_basic_c \
4265 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4271 })/bootstrap pass fail
4272 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4273 at_status
=$? at_failed
=false
4275 echo stderr
:; tee stderr
<"$at_stderr"
4276 echo stdout
:; tee stdout
<"$at_stdout"
4277 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:137"
4278 $at_failed && at_fn_log_failure
4281 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
4282 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
4284 $as_echo "$at_srcdir/t_test_program_compare.at:141: \$({
4286 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4292 })/bootstrap/h_tp_basic_cpp \\
4295 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4301 })/bootstrap pass fail"
4302 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:141"
4303 ( $at_check_trace; $
({
4305 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4311 })/bootstrap
/h_tp_basic_cpp \
4314 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4320 })/bootstrap pass fail
4321 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4322 at_status
=$? at_failed
=false
4324 $at_diff experr
"$at_stderr" || at_failed
=:
4325 $at_diff expout
"$at_stdout" || at_failed
=:
4326 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:141"
4327 $at_failed && at_fn_log_failure
4330 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
4331 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
4333 $as_echo "$at_srcdir/t_test_program_compare.at:145: \$({
4335 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4341 })/bootstrap/h_tp_basic_sh \\
4344 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4350 })/bootstrap pass fail"
4351 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:145"
4352 ( $at_check_trace; $
({
4354 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4360 })/bootstrap
/h_tp_basic_sh \
4363 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4369 })/bootstrap pass fail
4370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4371 at_status
=$? at_failed
=false
4373 $at_diff experr
"$at_stderr" || at_failed
=:
4374 $at_diff expout
"$at_stdout" || at_failed
=:
4375 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:145"
4376 $at_failed && at_fn_log_failure
4381 $as_echo "$at_srcdir/t_test_program_compare.at:149: \$({
4383 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4389 })/bootstrap/h_tp_basic_c \\
4392 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4398 })/bootstrap unknown"
4399 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:149"
4400 ( $at_check_trace; $
({
4402 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4408 })/bootstrap
/h_tp_basic_c \
4411 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4417 })/bootstrap unknown
4418 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4419 at_status
=$? at_failed
=false
4421 echo stderr
:; tee stderr
<"$at_stderr"
4422 echo stdout
:; tee stdout
<"$at_stdout"
4423 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:149"
4424 $at_failed && at_fn_log_failure
4427 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
4428 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
4430 $as_echo "$at_srcdir/t_test_program_compare.at:153: \$({
4432 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4438 })/bootstrap/h_tp_basic_cpp \\
4441 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4447 })/bootstrap unknown"
4448 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:153"
4449 ( $at_check_trace; $
({
4451 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4457 })/bootstrap
/h_tp_basic_cpp \
4460 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4466 })/bootstrap unknown
4467 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4468 at_status
=$? at_failed
=false
4470 $at_diff experr
"$at_stderr" || at_failed
=:
4471 $at_diff expout
"$at_stdout" || at_failed
=:
4472 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:153"
4473 $at_failed && at_fn_log_failure
4476 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
4477 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
4479 $as_echo "$at_srcdir/t_test_program_compare.at:157: \$({
4481 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4487 })/bootstrap/h_tp_basic_sh \\
4490 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4496 })/bootstrap unknown"
4497 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:157"
4498 ( $at_check_trace; $
({
4500 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4506 })/bootstrap
/h_tp_basic_sh \
4509 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4515 })/bootstrap unknown
4516 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4517 at_status
=$? at_failed
=false
4519 $at_diff experr
"$at_stderr" || at_failed
=:
4520 $at_diff expout
"$at_stdout" || at_failed
=:
4521 at_fn_check_status
1 $at_status "$at_srcdir/t_test_program_compare.at:157"
4522 $at_failed && at_fn_log_failure
4527 $as_echo "$at_srcdir/t_test_program_compare.at:161: \$({
4529 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4535 })/bootstrap/h_tp_basic_c \\
4538 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4544 })/bootstrap pass:cleanup"
4545 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:161"
4546 ( $at_check_trace; $
({
4548 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4554 })/bootstrap
/h_tp_basic_c \
4557 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4563 })/bootstrap pass
:cleanup
4564 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4565 at_status
=$? at_failed
=false
4567 echo stderr
:; tee stderr
<"$at_stderr"
4568 echo stdout
:; tee stdout
<"$at_stdout"
4569 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:161"
4570 $at_failed && at_fn_log_failure
4573 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
4574 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
4576 $as_echo "$at_srcdir/t_test_program_compare.at:165: \$({
4578 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4584 })/bootstrap/h_tp_basic_cpp \\
4587 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4593 })/bootstrap pass:cleanup"
4594 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:165"
4595 ( $at_check_trace; $
({
4597 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4603 })/bootstrap
/h_tp_basic_cpp \
4606 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4612 })/bootstrap pass
:cleanup
4613 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4614 at_status
=$? at_failed
=false
4616 $at_diff experr
"$at_stderr" || at_failed
=:
4617 $at_diff expout
"$at_stdout" || at_failed
=:
4618 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:165"
4619 $at_failed && at_fn_log_failure
4622 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
4623 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
4625 $as_echo "$at_srcdir/t_test_program_compare.at:169: \$({
4627 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4633 })/bootstrap/h_tp_basic_sh \\
4636 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4642 })/bootstrap pass:cleanup"
4643 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:169"
4644 ( $at_check_trace; $
({
4646 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4652 })/bootstrap
/h_tp_basic_sh \
4655 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4661 })/bootstrap pass
:cleanup
4662 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4663 at_status
=$? at_failed
=false
4665 $at_diff experr
"$at_stderr" || at_failed
=:
4666 $at_diff expout
"$at_stdout" || at_failed
=:
4667 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:169"
4668 $at_failed && at_fn_log_failure
4673 $as_echo "$at_srcdir/t_test_program_compare.at:173: \$({
4675 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4681 })/bootstrap/h_tp_basic_c \\
4684 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4691 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:173"
4692 ( $at_check_trace; $
({
4694 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4700 })/bootstrap
/h_tp_basic_c \
4703 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4711 at_status
=$? at_failed
=false
4713 echo stderr
:; tee stderr
<"$at_stderr"
4714 echo stdout
:; tee stdout
<"$at_stdout"
4715 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:173"
4716 $at_failed && at_fn_log_failure
4719 sed 's,tp_basic_c,tp_basic_cpp,g' <stdout
>expout
4720 sed 's,tp_basic_c,tp_basic_cpp,g' <stderr
>experr
4722 $as_echo "$at_srcdir/t_test_program_compare.at:177: \$({
4724 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4730 })/bootstrap/h_tp_basic_cpp \\
4733 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4740 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:177"
4741 ( $at_check_trace; $
({
4743 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4749 })/bootstrap
/h_tp_basic_cpp \
4752 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4759 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4760 at_status
=$? at_failed
=false
4762 $at_diff experr
"$at_stderr" || at_failed
=:
4763 $at_diff expout
"$at_stdout" || at_failed
=:
4764 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:177"
4765 $at_failed && at_fn_log_failure
4768 sed 's,tp_basic_c,tp_basic_sh,g' <stdout
>expout
4769 sed 's,tp_basic_c,tp_basic_sh,g' <stderr
>experr
4771 $as_echo "$at_srcdir/t_test_program_compare.at:181: \$({
4773 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4779 })/bootstrap/h_tp_basic_sh \\
4782 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4789 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_test_program_compare.at:181"
4790 ( $at_check_trace; $
({
4792 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4798 })/bootstrap
/h_tp_basic_sh \
4801 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4808 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4809 at_status
=$? at_failed
=false
4811 $at_diff experr
"$at_stderr" || at_failed
=:
4812 $at_diff expout
"$at_stdout" || at_failed
=:
4813 at_fn_check_status
0 $at_status "$at_srcdir/t_test_program_compare.at:181"
4814 $at_failed && at_fn_log_failure
4819 $at_times_p && times >"$at_times_file"
4820 ) 5>&1 2>&1 7>&- |
eval $at_tee_pipe
4821 read at_status
<"$at_status_file"
4824 at_fn_group_banner
5 't_subr_atf_check.at:30' \
4825 "subr: atf_check function" " "
4828 $as_echo "5. $at_setup_line: testing $at_desc ..."
4833 $as_echo "$at_srcdir/t_subr_atf_check.at:32: \$({
4835 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4841 })/bootstrap/h_tp_atf_check_sh \\
4844 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4850 })/bootstrap exitcode_0_0"
4851 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:32"
4852 ( $at_check_trace; $
({
4854 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4860 })/bootstrap
/h_tp_atf_check_sh \
4863 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4869 })/bootstrap exitcode_0_0
4870 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4871 at_status
=$? at_failed
=false
4873 echo stderr
:; cat "$at_stderr"
4874 echo stdout
:; cat "$at_stdout"
4875 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:32"
4876 $at_failed && at_fn_log_failure
4880 $as_echo "$at_srcdir/t_subr_atf_check.at:34: \$({
4882 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4888 })/bootstrap/h_tp_atf_check_sh \\
4891 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4897 })/bootstrap exitcode_0_1"
4898 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:34"
4899 ( $at_check_trace; $
({
4901 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4907 })/bootstrap
/h_tp_atf_check_sh \
4910 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4916 })/bootstrap exitcode_0_1
4917 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4918 at_status
=$? at_failed
=false
4920 echo stderr
:; cat "$at_stderr"
4921 echo stdout
:; cat "$at_stdout"
4922 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:34"
4923 $at_failed && at_fn_log_failure
4927 $as_echo "$at_srcdir/t_subr_atf_check.at:36: \$({
4929 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4935 })/bootstrap/h_tp_atf_check_sh \\
4938 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4944 })/bootstrap exitcode_1_0"
4945 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:36"
4946 ( $at_check_trace; $
({
4948 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4954 })/bootstrap
/h_tp_atf_check_sh \
4957 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
4963 })/bootstrap exitcode_1_0
4964 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4965 at_status
=$? at_failed
=false
4967 echo stderr
:; cat "$at_stderr"
4968 echo stdout
:; cat "$at_stdout"
4969 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:36"
4970 $at_failed && at_fn_log_failure
4974 $as_echo "$at_srcdir/t_subr_atf_check.at:38: \$({
4976 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4982 })/bootstrap/h_tp_atf_check_sh \\
4985 while test \$(pwd) != '/' -a ! -e ./Makefile; do
4991 })/bootstrap exitcode_1_1"
4992 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:38"
4993 ( $at_check_trace; $
({
4995 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5001 })/bootstrap
/h_tp_atf_check_sh \
5004 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5010 })/bootstrap exitcode_1_1
5011 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5012 at_status
=$? at_failed
=false
5014 echo stderr
:; cat "$at_stderr"
5015 echo stdout
:; cat "$at_stdout"
5016 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:38"
5017 $at_failed && at_fn_log_failure
5022 $as_echo "$at_srcdir/t_subr_atf_check.at:41: \$({
5024 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5030 })/bootstrap/h_tp_atf_check_sh \\
5033 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5039 })/bootstrap stdout_expout_pass"
5040 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:41"
5041 ( $at_check_trace; $
({
5043 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5049 })/bootstrap
/h_tp_atf_check_sh \
5052 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5058 })/bootstrap stdout_expout_pass
5059 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5060 at_status
=$? at_failed
=false
5062 echo stderr
:; cat "$at_stderr"
5063 echo stdout
:; cat "$at_stdout"
5064 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:41"
5065 $at_failed && at_fn_log_failure
5069 $as_echo "$at_srcdir/t_subr_atf_check.at:43: \$({
5071 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5077 })/bootstrap/h_tp_atf_check_sh \\
5080 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5086 })/bootstrap stdout_expout_fail"
5087 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:43"
5088 ( $at_check_trace; $
({
5090 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5096 })/bootstrap
/h_tp_atf_check_sh \
5099 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5105 })/bootstrap stdout_expout_fail
5106 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5107 at_status
=$? at_failed
=false
5109 echo stderr
:; cat "$at_stderr"
5110 echo stdout
:; cat "$at_stdout"
5111 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:43"
5112 $at_failed && at_fn_log_failure
5116 $as_echo "$at_srcdir/t_subr_atf_check.at:45: \$({
5118 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5124 })/bootstrap/h_tp_atf_check_sh \\
5127 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5133 })/bootstrap stdout_ignore_empty"
5134 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:45"
5135 ( $at_check_trace; $
({
5137 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5143 })/bootstrap
/h_tp_atf_check_sh \
5146 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5152 })/bootstrap stdout_ignore_empty
5153 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5154 at_status
=$? at_failed
=false
5156 echo stderr
:; cat "$at_stderr"
5157 echo stdout
:; cat "$at_stdout"
5158 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:45"
5159 $at_failed && at_fn_log_failure
5163 $as_echo "$at_srcdir/t_subr_atf_check.at:47: \$({
5165 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5171 })/bootstrap/h_tp_atf_check_sh \\
5174 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5180 })/bootstrap stdout_ignore_sth"
5181 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:47"
5182 ( $at_check_trace; $
({
5184 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5190 })/bootstrap
/h_tp_atf_check_sh \
5193 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5199 })/bootstrap stdout_ignore_sth
5200 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5201 at_status
=$? at_failed
=false
5203 echo stderr
:; cat "$at_stderr"
5204 echo stdout
:; cat "$at_stdout"
5205 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:47"
5206 $at_failed && at_fn_log_failure
5210 $as_echo "$at_srcdir/t_subr_atf_check.at:49: \$({
5212 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5218 })/bootstrap/h_tp_atf_check_sh \\
5221 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5227 })/bootstrap stdout_null_empty"
5228 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:49"
5229 ( $at_check_trace; $
({
5231 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5237 })/bootstrap
/h_tp_atf_check_sh \
5240 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5246 })/bootstrap stdout_null_empty
5247 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5248 at_status
=$? at_failed
=false
5250 echo stderr
:; cat "$at_stderr"
5251 echo stdout
:; cat "$at_stdout"
5252 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:49"
5253 $at_failed && at_fn_log_failure
5257 $as_echo "$at_srcdir/t_subr_atf_check.at:51: \$({
5259 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5265 })/bootstrap/h_tp_atf_check_sh \\
5268 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5274 })/bootstrap stdout_null_sth"
5275 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:51"
5276 ( $at_check_trace; $
({
5278 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5284 })/bootstrap
/h_tp_atf_check_sh \
5287 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5293 })/bootstrap stdout_null_sth
5294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5295 at_status
=$? at_failed
=false
5297 echo stderr
:; cat "$at_stderr"
5298 echo stdout
:; cat "$at_stdout"
5299 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:51"
5300 $at_failed && at_fn_log_failure
5304 $as_echo "$at_srcdir/t_subr_atf_check.at:53: \$({
5306 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5312 })/bootstrap/h_tp_atf_check_sh \\
5315 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5321 })/bootstrap stdout_stdout_written"
5322 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:53"
5323 ( $at_check_trace; $
({
5325 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5331 })/bootstrap
/h_tp_atf_check_sh \
5334 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5340 })/bootstrap stdout_stdout_written
5341 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5342 at_status
=$? at_failed
=false
5344 echo stderr
:; cat "$at_stderr"
5345 echo stdout
:; cat "$at_stdout"
5346 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:53"
5347 $at_failed && at_fn_log_failure
5351 $as_echo "$at_srcdir/t_subr_atf_check.at:55: \$({
5353 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5359 })/bootstrap/h_tp_atf_check_sh \\
5362 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5368 })/bootstrap stdout_match_ok"
5369 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:55"
5370 ( $at_check_trace; $
({
5372 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5378 })/bootstrap
/h_tp_atf_check_sh \
5381 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5387 })/bootstrap stdout_match_ok
5388 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5389 at_status
=$? at_failed
=false
5391 echo stderr
:; cat "$at_stderr"
5392 echo stdout
:; cat "$at_stdout"
5393 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:55"
5394 $at_failed && at_fn_log_failure
5398 $as_echo "$at_srcdir/t_subr_atf_check.at:57: \$({
5400 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5406 })/bootstrap/h_tp_atf_check_sh \\
5409 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5415 })/bootstrap stdout_match_fail"
5416 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:57"
5417 ( $at_check_trace; $
({
5419 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5425 })/bootstrap
/h_tp_atf_check_sh \
5428 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5434 })/bootstrap stdout_match_fail
5435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5436 at_status
=$? at_failed
=false
5438 echo stderr
:; cat "$at_stderr"
5439 echo stdout
:; cat "$at_stdout"
5440 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:57"
5441 $at_failed && at_fn_log_failure
5446 $as_echo "$at_srcdir/t_subr_atf_check.at:60: \$({
5448 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5454 })/bootstrap/h_tp_atf_check_sh \\
5457 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5463 })/bootstrap stderr_experr_pass"
5464 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:60"
5465 ( $at_check_trace; $
({
5467 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5473 })/bootstrap
/h_tp_atf_check_sh \
5476 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5482 })/bootstrap stderr_experr_pass
5483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5484 at_status
=$? at_failed
=false
5486 echo stderr
:; cat "$at_stderr"
5487 echo stdout
:; cat "$at_stdout"
5488 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:60"
5489 $at_failed && at_fn_log_failure
5493 $as_echo "$at_srcdir/t_subr_atf_check.at:62: \$({
5495 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5501 })/bootstrap/h_tp_atf_check_sh \\
5504 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5510 })/bootstrap stderr_experr_fail"
5511 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:62"
5512 ( $at_check_trace; $
({
5514 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5520 })/bootstrap
/h_tp_atf_check_sh \
5523 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5529 })/bootstrap stderr_experr_fail
5530 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5531 at_status
=$? at_failed
=false
5533 echo stderr
:; cat "$at_stderr"
5534 echo stdout
:; cat "$at_stdout"
5535 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:62"
5536 $at_failed && at_fn_log_failure
5540 $as_echo "$at_srcdir/t_subr_atf_check.at:64: \$({
5542 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5548 })/bootstrap/h_tp_atf_check_sh \\
5551 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5557 })/bootstrap stderr_ignore_empty"
5558 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:64"
5559 ( $at_check_trace; $
({
5561 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5567 })/bootstrap
/h_tp_atf_check_sh \
5570 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5576 })/bootstrap stderr_ignore_empty
5577 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5578 at_status
=$? at_failed
=false
5580 echo stderr
:; cat "$at_stderr"
5581 echo stdout
:; cat "$at_stdout"
5582 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:64"
5583 $at_failed && at_fn_log_failure
5587 $as_echo "$at_srcdir/t_subr_atf_check.at:66: \$({
5589 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5595 })/bootstrap/h_tp_atf_check_sh \\
5598 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5604 })/bootstrap stderr_ignore_sth"
5605 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:66"
5606 ( $at_check_trace; $
({
5608 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5614 })/bootstrap
/h_tp_atf_check_sh \
5617 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5623 })/bootstrap stderr_ignore_sth
5624 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5625 at_status
=$? at_failed
=false
5627 echo stderr
:; cat "$at_stderr"
5628 echo stdout
:; cat "$at_stdout"
5629 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:66"
5630 $at_failed && at_fn_log_failure
5634 $as_echo "$at_srcdir/t_subr_atf_check.at:68: \$({
5636 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5642 })/bootstrap/h_tp_atf_check_sh \\
5645 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5651 })/bootstrap stderr_null_empty"
5652 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:68"
5653 ( $at_check_trace; $
({
5655 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5661 })/bootstrap
/h_tp_atf_check_sh \
5664 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5670 })/bootstrap stderr_null_empty
5671 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5672 at_status
=$? at_failed
=false
5674 echo stderr
:; cat "$at_stderr"
5675 echo stdout
:; cat "$at_stdout"
5676 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:68"
5677 $at_failed && at_fn_log_failure
5681 $as_echo "$at_srcdir/t_subr_atf_check.at:70: \$({
5683 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5689 })/bootstrap/h_tp_atf_check_sh \\
5692 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5698 })/bootstrap stderr_null_sth"
5699 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:70"
5700 ( $at_check_trace; $
({
5702 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5708 })/bootstrap
/h_tp_atf_check_sh \
5711 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5717 })/bootstrap stderr_null_sth
5718 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5719 at_status
=$? at_failed
=false
5721 echo stderr
:; cat "$at_stderr"
5722 echo stdout
:; cat "$at_stdout"
5723 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:70"
5724 $at_failed && at_fn_log_failure
5728 $as_echo "$at_srcdir/t_subr_atf_check.at:72: \$({
5730 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5736 })/bootstrap/h_tp_atf_check_sh \\
5739 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5745 })/bootstrap stderr_stderr_written"
5746 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:72"
5747 ( $at_check_trace; $
({
5749 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5755 })/bootstrap
/h_tp_atf_check_sh \
5758 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5764 })/bootstrap stderr_stderr_written
5765 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5766 at_status
=$? at_failed
=false
5768 echo stderr
:; cat "$at_stderr"
5769 echo stdout
:; cat "$at_stdout"
5770 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:72"
5771 $at_failed && at_fn_log_failure
5775 $as_echo "$at_srcdir/t_subr_atf_check.at:74: \$({
5777 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5783 })/bootstrap/h_tp_atf_check_sh \\
5786 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5792 })/bootstrap stderr_match_ok"
5793 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:74"
5794 ( $at_check_trace; $
({
5796 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5802 })/bootstrap
/h_tp_atf_check_sh \
5805 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5811 })/bootstrap stderr_match_ok
5812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5813 at_status
=$? at_failed
=false
5815 echo stderr
:; cat "$at_stderr"
5816 echo stdout
:; cat "$at_stdout"
5817 at_fn_check_status
0 $at_status "$at_srcdir/t_subr_atf_check.at:74"
5818 $at_failed && at_fn_log_failure
5822 $as_echo "$at_srcdir/t_subr_atf_check.at:76: \$({
5824 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5830 })/bootstrap/h_tp_atf_check_sh \\
5833 while test \$(pwd) != '/' -a ! -e ./Makefile; do
5839 })/bootstrap stderr_match_fail"
5840 at_fn_check_prepare_notrace
'a $(...) command substitution' "t_subr_atf_check.at:76"
5841 ( $at_check_trace; $
({
5843 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5849 })/bootstrap
/h_tp_atf_check_sh \
5852 while test $
(pwd) != '/' -a ! -e .
/Makefile
; do
5858 })/bootstrap stderr_match_fail
5859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5860 at_status
=$? at_failed
=false
5862 echo stderr
:; cat "$at_stderr"
5863 echo stdout
:; cat "$at_stdout"
5864 at_fn_check_status
1 $at_status "$at_srcdir/t_subr_atf_check.at:76"
5865 $at_failed && at_fn_log_failure
5870 $at_times_p && times >"$at_times_file"
5871 ) 5>&1 2>&1 7>&- |
eval $at_tee_pipe
5872 read at_status
<"$at_status_file"