1#! /bin/sh
2# Generated from bootstrap/testsuite.at by GNU Autoconf 2.68.
3#
4# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
5#
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## -------------------- ##
11
12# Be more Bourne compatible
13DUALCASE=1; export DUALCASE # for MKS sh
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15  emulate sh
16  NULLCMD=:
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+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in #(
23  *posix*) :
24    set -o posix ;; #(
25  *) :
26     ;;
27esac
28fi
29
30
31as_nl='
32'
33export as_nl
34# Printing a long string crashes Solaris 7 /usr/bin/printf.
35as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37as_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.
40if test -z "$BASH_VERSION$ZSH_VERSION" \
41    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
42  as_echo='print -r --'
43  as_echo_n='print -rn --'
44elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='printf %s\n'
46  as_echo_n='printf %s'
47else
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'
51  else
52    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
53    as_echo_n_body='eval
54      arg=$1;
55      case $arg in #(
56      *"$as_nl"*)
57	expr "X$arg" : "X\\(.*\\)$as_nl";
58	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
59      esac;
60      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
61    '
62    export as_echo_n_body
63    as_echo_n='sh -c $as_echo_n_body as_echo'
64  fi
65  export as_echo_body
66  as_echo='sh -c $as_echo_body as_echo'
67fi
68
69# The user is always right.
70if test "${PATH_SEPARATOR+set}" != set; then
71  PATH_SEPARATOR=:
72  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74      PATH_SEPARATOR=';'
75  }
76fi
77
78
79# IFS
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.)
84IFS=" ""	$as_nl"
85
86# Find who we are.  Look in the path if we contain no directory separator.
87as_myself=
88case $0 in #((
89  *[\\/]* ) as_myself=$0 ;;
90  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91for as_dir in $PATH
92do
93  IFS=$as_save_IFS
94  test -z "$as_dir" && as_dir=.
95    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
96  done
97IFS=$as_save_IFS
98
99     ;;
100esac
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.
103if test "x$as_myself" = x; then
104  as_myself=$0
105fi
106if test ! -f "$as_myself"; then
107  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
108  exit 1
109fi
110
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.
115for as_var in BASH_ENV ENV MAIL MAILPATH
116do eval test x\${$as_var+set} = xset \
117  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
118done
119PS1='$ '
120PS2='> '
121PS4='+ '
122
123# NLS nuisances.
124LC_ALL=C
125export LC_ALL
126LANGUAGE=C
127export LANGUAGE
128
129# CDPATH.
130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
131
132if test "x$CONFIG_SHELL" = x; then
133  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
134  emulate sh
135  NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
139  setopt NO_GLOB_SUBST
140else
141  case \`(set -o) 2>/dev/null\` in #(
142  *posix*) :
143    set -o posix ;; #(
144  *) :
145     ;;
146esac
147fi
148"
149  as_required="as_fn_return () { (exit \$1); }
150as_fn_success () { as_fn_return 0; }
151as_fn_failure () { as_fn_return 1; }
152as_fn_ret_success () { return 0; }
153as_fn_ret_failure () { return 1; }
154
155exitcode=0
156as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
161
162else
163  exitcode=1; echo positional parameters were not saved.
164fi
165test x\$exitcode = x0 || exit 1"
166  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
167  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
168  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
169  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
170test \$(( 1 + 1 )) = 2 || exit 1"
171  if (eval "$as_required") 2>/dev/null; then :
172  as_have_required=yes
173else
174  as_have_required=no
175fi
176  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
177
178else
179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
180as_found=false
181for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
182do
183  IFS=$as_save_IFS
184  test -z "$as_dir" && as_dir=.
185  as_found=:
186  case $as_dir in #(
187	 /*)
188	   for as_base in sh bash ksh sh5; do
189	     # Try only shells that exist, to save several forks.
190	     as_shell=$as_dir/$as_base
191	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
192		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
193  CONFIG_SHELL=$as_shell as_have_required=yes
194		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  break 2
196fi
197fi
198	   done;;
199       esac
200  as_found=false
201done
202$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
203	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
204  CONFIG_SHELL=$SHELL as_have_required=yes
205fi; }
206IFS=$as_save_IFS
207
208
209      if test "x$CONFIG_SHELL" != x; then :
210  # We cannot yet assume a decent shell, so we have to provide a
211	# neutralization value for shells without unset; and this also
212	# works around shells that cannot unset nonexistent variables.
213	# Preserve -v and -x to the replacement shell.
214	BASH_ENV=/dev/null
215	ENV=/dev/null
216	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217	export CONFIG_SHELL
218	case $- in # ((((
219	  *v*x* | *x*v* ) as_opts=-vx ;;
220	  *v* ) as_opts=-v ;;
221	  *x* ) as_opts=-x ;;
222	  * ) as_opts= ;;
223	esac
224	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391as_me=`$as_basename -- "$0" ||
392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393	 X"$0" : 'X\(//\)$' \| \
394	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395$as_echo X/"$0" |
396    sed '/^.*\/\([^/][^/]*\)\/*$/{
397	    s//\1/
398	    q
399	  }
400	  /^X\/\(\/\/\)$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\).*/{
405	    s//\1/
406	    q
407	  }
408	  s/.*/./; q'`
409
410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411  as_dirname=dirname
412else
413  as_dirname=false
414fi
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533
534
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537# How were we run?
538at_cli_args="$@"
539
540
541# Not all shells have the 'times' builtin; the subshell is needed to make
542# sure we discard the 'times: not found' message from the shell.
543at_times_p=false
544(times) >/dev/null 2>&1 && at_times_p=:
545
546# CLI Arguments to pass to the debugging scripts.
547at_debug_args=
548# -e sets to true
549at_errexit_p=false
550# Shall we be verbose?  ':' means no, empty means yes.
551at_verbose=:
552at_quiet=
553# Running several jobs in parallel, 0 means as many as test groups.
554at_jobs=1
555at_traceon=:
556at_trace_echo=:
557at_check_filter_trace=:
558
559# Shall we keep the debug scripts?  Must be `:' when the suite is
560# run by a debug script, so that the script doesn't remove itself.
561at_debug_p=false
562# Display help message?
563at_help_p=false
564# Display the version message?
565at_version_p=false
566# List test groups?
567at_list_p=false
568# --clean
569at_clean=false
570# Test groups to run
571at_groups=
572# Whether to rerun failed tests.
573at_recheck=
574# Whether a write failure occurred
575at_write_fail=0
576
577# The directory we run the suite in.  Default to . if no -C option.
578at_dir=`pwd`
579# An absolute reference to this testsuite script.
580case $as_myself in
581  [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
582  * ) at_myself=$at_dir/$as_myself ;;
583esac
584# Whether -C is in effect.
585at_change_dir=false
586
587# Whether to enable colored test results.
588at_color=no
589# List of the tested programs.
590at_tested='atf-config
591atf-run'
592# As many question marks as there are digits in the last test group number.
593# Used to normalize the test group numbers so that `ls' lists them in
594# numerical order.
595at_format='?'
596# Description of all the test groups.
597at_help_all="1;t_application_opts_args.at:30;application: arguments and options handling;;
5982;t_application_help.at:30;application: online help option;;
5993;t_test_program_filter.at:30;test_program: filter test cases by name;;
6004;t_test_program_run.at:30;test_program: output format and exit codes;;
6015;t_test_program_list.at:30;test_program: list test cases;;
6026;t_atf_config.at:30;atf-config: querying of build-time variables;;
6037;t_atf_run.at:30;atf-run: execution of tests;;
6048;t_test_program_compare.at:30;test_program: compare the user-visible interfaces;;
6059;t_subr_atf_check.at:30;subr: atf_check function;;
606"
607# List of the all the test groups.
608at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
609
610# at_fn_validate_ranges NAME...
611# -----------------------------
612# Validate and normalize the test group number contained in each variable
613# NAME. Leading zeroes are treated as decimal.
614at_fn_validate_ranges ()
615{
616  for at_grp
617  do
618    eval at_value=\$$at_grp
619    if test $at_value -lt 1 || test $at_value -gt 9; then
620      $as_echo "invalid test group: $at_value" >&2
621      exit 1
622    fi
623    case $at_value in
624      0*) # We want to treat leading 0 as decimal, like expr and test, but
625	  # AS_VAR_ARITH treats it as octal if it uses $(( )).
626	  # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
627	  # expr fork, but it is not worth the effort to determine if the
628	  # shell supports XSI when the user can just avoid leading 0.
629	  eval $at_grp='`expr $at_value + 0`' ;;
630    esac
631  done
632}
633
634at_prev=
635for at_option
636do
637  # If the previous option needs an argument, assign it.
638  if test -n "$at_prev"; then
639    at_option=$at_prev=$at_option
640    at_prev=
641  fi
642
643  case $at_option in
644  *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
645  *)    at_optarg= ;;
646  esac
647
648  # Accept the important Cygnus configure options, so we can diagnose typos.
649
650  case $at_option in
651    --help | -h )
652	at_help_p=:
653	;;
654
655    --list | -l )
656	at_list_p=:
657	;;
658
659    --version | -V )
660	at_version_p=:
661	;;
662
663    --clean | -c )
664	at_clean=:
665	;;
666
667    --color )
668	at_color=always
669	;;
670    --color=* )
671	case $at_optarg in
672	no | never | none) at_color=never ;;
673	auto | tty | if-tty) at_color=auto ;;
674	always | yes | force) at_color=always ;;
675	*) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
676	   as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
677	esac
678	;;
679
680    --debug | -d )
681	at_debug_p=:
682	;;
683
684    --errexit | -e )
685	at_debug_p=:
686	at_errexit_p=:
687	;;
688
689    --verbose | -v )
690	at_verbose=; at_quiet=:
691	;;
692
693    --trace | -x )
694	at_traceon='set -x'
695	at_trace_echo=echo
696	at_check_filter_trace=at_fn_filter_trace
697	;;
698
699    [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
700	at_fn_validate_ranges at_option
701	as_fn_append at_groups "$at_option$as_nl"
702	;;
703
704    # Ranges
705    [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
706	at_range_start=`echo $at_option |tr -d X-`
707	at_fn_validate_ranges at_range_start
708	at_range=`$as_echo "$at_groups_all" | \
709	  sed -ne '/^'$at_range_start'$/,$p'`
710	as_fn_append at_groups "$at_range$as_nl"
711	;;
712
713    -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
714	at_range_end=`echo $at_option |tr -d X-`
715	at_fn_validate_ranges at_range_end
716	at_range=`$as_echo "$at_groups_all" | \
717	  sed -ne '1,/^'$at_range_end'$/p'`
718	as_fn_append at_groups "$at_range$as_nl"
719	;;
720
721    [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
722    [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
723    [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
724    [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
725    [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
726    [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
727	at_range_start=`expr $at_option : '\(.*\)-'`
728	at_range_end=`expr $at_option : '.*-\(.*\)'`
729	if test $at_range_start -gt $at_range_end; then
730	  at_tmp=$at_range_end
731	  at_range_end=$at_range_start
732	  at_range_start=$at_tmp
733	fi
734	at_fn_validate_ranges at_range_start at_range_end
735	at_range=`$as_echo "$at_groups_all" | \
736	  sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
737	as_fn_append at_groups "$at_range$as_nl"
738	;;
739
740    # Directory selection.
741    --directory | -C )
742	at_prev=--directory
743	;;
744    --directory=* )
745	at_change_dir=:
746	at_dir=$at_optarg
747	if test x- = "x$at_dir" ; then
748	  at_dir=./-
749	fi
750	;;
751
752    # Parallel execution.
753    --jobs | -j )
754	at_jobs=0
755	;;
756    --jobs=* | -j[0-9]* )
757	if test -n "$at_optarg"; then
758	  at_jobs=$at_optarg
759	else
760	  at_jobs=`expr X$at_option : 'X-j\(.*\)'`
761	fi
762	case $at_jobs in *[!0-9]*)
763	  at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
764	  as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
765	esac
766	;;
767
768    # Keywords.
769    --keywords | -k )
770	at_prev=--keywords
771	;;
772    --keywords=* )
773	at_groups_selected=$at_help_all
774	at_save_IFS=$IFS
775	IFS=,
776	set X $at_optarg
777	shift
778	IFS=$at_save_IFS
779	for at_keyword
780	do
781	  at_invert=
782	  case $at_keyword in
783	  '!'*)
784	    at_invert="-v"
785	    at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
786	    ;;
787	  esac
788	  # It is on purpose that we match the test group titles too.
789	  at_groups_selected=`$as_echo "$at_groups_selected" |
790	      grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
791	done
792	# Smash the keywords.
793	at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
794	as_fn_append at_groups "$at_groups_selected$as_nl"
795	;;
796    --recheck)
797	at_recheck=:
798	;;
799
800    *=*)
801	at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
802	# Reject names that are not valid shell variable names.
803	case $at_envvar in
804	  '' | [0-9]* | *[!_$as_cr_alnum]* )
805	    as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
806	esac
807	at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
808	# Export now, but save eval for later and for debug scripts.
809	export $at_envvar
810	as_fn_append at_debug_args " $at_envvar='$at_value'"
811	;;
812
813     *) $as_echo "$as_me: invalid option: $at_option" >&2
814	$as_echo "Try \`$0 --help' for more information." >&2
815	exit 1
816	;;
817  esac
818done
819
820# Verify our last option didn't require an argument
821if test -n "$at_prev"; then :
822  as_fn_error $? "\`$at_prev' requires an argument"
823fi
824
825# The file containing the suite.
826at_suite_log=$at_dir/$as_me.log
827
828# Selected test groups.
829if test -z "$at_groups$at_recheck"; then
830  at_groups=$at_groups_all
831else
832  if test -n "$at_recheck" && test -r "$at_suite_log"; then
833    at_oldfails=`sed -n '
834      /^Failed tests:$/,/^Skipped tests:$/{
835	s/^[ ]*\([1-9][0-9]*\):.*/\1/p
836      }
837      /^Unexpected passes:$/,/^## Detailed failed tests/{
838	s/^[ ]*\([1-9][0-9]*\):.*/\1/p
839      }
840      /^## Detailed failed tests/q
841      ' "$at_suite_log"`
842    as_fn_append at_groups "$at_oldfails$as_nl"
843  fi
844  # Sort the tests, removing duplicates.
845  at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
846fi
847
848if test x"$at_color" = xalways \
849   || { test x"$at_color" = xauto && test -t 1; }; then
850  at_red=`printf '\033[0;31m'`
851  at_grn=`printf '\033[0;32m'`
852  at_lgn=`printf '\033[1;32m'`
853  at_blu=`printf '\033[1;34m'`
854  at_std=`printf '\033[m'`
855else
856  at_red= at_grn= at_lgn= at_blu= at_std=
857fi
858
859# Help message.
860if $at_help_p; then
861  cat <<_ATEOF || at_write_fail=1
862Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
863
864Run all the tests, or the selected TESTS, given by numeric ranges, and
865save a detailed log file.  Upon failure, create debugging scripts.
866
867Do not change environment variables directly.  Instead, set them via
868command line arguments.  Set \`AUTOTEST_PATH' to select the executables
869to exercise.  Each relative directory is expanded as build and source
870directories relative to the top level of this distribution.
871E.g., from within the build directory /tmp/foo-1.0, invoking this:
872
873  $ $0 AUTOTEST_PATH=bin
874
875is equivalent to the following, assuming the source directory is /src/foo-1.0:
876
877  PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
878_ATEOF
879cat <<_ATEOF || at_write_fail=1
880
881Operation modes:
882  -h, --help     print the help message, then exit
883  -V, --version  print version number, then exit
884  -c, --clean    remove all the files this test suite might create and exit
885  -l, --list     describes all the tests, or the selected TESTS
886_ATEOF
887cat <<_ATEOF || at_write_fail=1
888
889Execution tuning:
890  -C, --directory=DIR
891                 change to directory DIR before starting
892      --color[=never|auto|always]
893                 enable colored test results on terminal, or always
894  -j, --jobs[=N]
895                 Allow N jobs at once; infinite jobs with no arg (default 1)
896  -k, --keywords=KEYWORDS
897                 select the tests matching all the comma-separated KEYWORDS
898                 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
899      --recheck  select all tests that failed or passed unexpectedly last time
900  -e, --errexit  abort as soon as a test fails; implies --debug
901  -v, --verbose  force more detailed output
902                 default for debugging scripts
903  -d, --debug    inhibit clean up and top-level logging
904                 default for debugging scripts
905  -x, --trace    enable tests shell tracing
906_ATEOF
907cat <<_ATEOF || at_write_fail=1
908
909Report bugs to <atf-devel@NetBSD.org>.
910_ATEOF
911  exit $at_write_fail
912fi
913
914# List of tests.
915if $at_list_p; then
916  cat <<_ATEOF || at_write_fail=1
917Automated Testing Framework 0.12 test suite: bootstrap tests test groups:
918
919 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
920      KEYWORDS
921
922_ATEOF
923  # Pass an empty line as separator between selected groups and help.
924  $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
925    awk 'NF == 1 && FS != ";" {
926	   selected[$ 1] = 1
927	   next
928	 }
929	 /^$/ { FS = ";" }
930	 NF > 0 {
931	   if (selected[$ 1]) {
932	     printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
933	     if ($ 4) {
934	       lmax = 79
935	       indent = "     "
936	       line = indent
937	       len = length (line)
938	       n = split ($ 4, a, " ")
939	       for (i = 1; i <= n; i++) {
940		 l = length (a[i]) + 1
941		 if (i > 1 && len + l > lmax) {
942		   print line
943		   line = indent " " a[i]
944		   len = length (line)
945		 } else {
946		   line = line " " a[i]
947		   len += l
948		 }
949	       }
950	       if (n)
951		 print line
952	     }
953	   }
954	 }' || at_write_fail=1
955  exit $at_write_fail
956fi
957if $at_version_p; then
958  $as_echo "$as_me (Automated Testing Framework 0.12)" &&
959  cat <<\_ATEOF || at_write_fail=1
960
961Copyright (C) 2010 Free Software Foundation, Inc.
962This test suite is free software; the Free Software Foundation gives
963unlimited permission to copy, distribute and modify it.
964_ATEOF
965  exit $at_write_fail
966fi
967
968# Should we print banners?  Yes if more than one test is run.
969case $at_groups in #(
970  *$as_nl* )
971      at_print_banners=: ;; #(
972  * ) at_print_banners=false ;;
973esac
974# Text for banner N, set to a single space once printed.
975
976# Take any -C into account.
977if $at_change_dir ; then
978  test x != "x$at_dir" && cd "$at_dir" \
979    || as_fn_error $? "unable to change directory"
980  at_dir=`pwd`
981fi
982
983# Load the config files for any default variable assignments.
984for at_file in atconfig atlocal
985do
986  test -r $at_file || continue
987  . ./$at_file || as_fn_error $? "invalid content: $at_file"
988done
989
990# Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
991: "${at_top_build_prefix=$at_top_builddir}"
992
993# Perform any assignments requested during argument parsing.
994eval "$at_debug_args"
995
996# atconfig delivers names relative to the directory the test suite is
997# in, but the groups themselves are run in testsuite-dir/group-dir.
998if test -n "$at_top_srcdir"; then
999  builddir=../..
1000  for at_dir_var in srcdir top_srcdir top_build_prefix
1001  do
1002    eval at_val=\$at_$at_dir_var
1003    case $at_val in
1004      [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1005      *) at_prefix=../../ ;;
1006    esac
1007    eval "$at_dir_var=\$at_prefix\$at_val"
1008  done
1009fi
1010
1011## -------------------- ##
1012## Directory structure. ##
1013## -------------------- ##
1014
1015# This is the set of directories and files used by this script
1016# (non-literals are capitalized):
1017#
1018# TESTSUITE         - the testsuite
1019# TESTSUITE.log     - summarizes the complete testsuite run
1020# TESTSUITE.dir/    - created during a run, remains after -d or failed test
1021# + at-groups/      - during a run: status of all groups in run
1022# | + NNN/          - during a run: meta-data about test group NNN
1023# | | + check-line  - location (source file and line) of current AT_CHECK
1024# | | + status      - exit status of current AT_CHECK
1025# | | + stdout      - stdout of current AT_CHECK
1026# | | + stder1      - stderr, including trace
1027# | | + stderr      - stderr, with trace filtered out
1028# | | + test-source - portion of testsuite that defines group
1029# | | + times       - timestamps for computing duration
1030# | | + pass        - created if group passed
1031# | | + xpass       - created if group xpassed
1032# | | + fail        - created if group failed
1033# | | + xfail       - created if group xfailed
1034# | | + skip        - created if group skipped
1035# + at-stop         - during a run: end the run if this file exists
1036# + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1037# + 0..NNN/         - created for each group NNN, remains after -d or failed test
1038# | + TESTSUITE.log - summarizes the group results
1039# | + ...           - files created during the group
1040
1041# The directory the whole suite works in.
1042# Should be absolute to let the user `cd' at will.
1043at_suite_dir=$at_dir/$as_me.dir
1044# The file containing the suite ($at_dir might have changed since earlier).
1045at_suite_log=$at_dir/$as_me.log
1046# The directory containing helper files per test group.
1047at_helper_dir=$at_suite_dir/at-groups
1048# Stop file: if it exists, do not start new jobs.
1049at_stop_file=$at_suite_dir/at-stop
1050# The fifo used for the job dispatcher.
1051at_job_fifo=$at_suite_dir/at-job-fifo
1052
1053if $at_clean; then
1054  test -d "$at_suite_dir" &&
1055    find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1056  rm -f -r "$at_suite_dir" "$at_suite_log"
1057  exit $?
1058fi
1059
1060# Don't take risks: use only absolute directories in PATH.
1061#
1062# For stand-alone test suites (ie. atconfig was not found),
1063# AUTOTEST_PATH is relative to `.'.
1064#
1065# For embedded test suites, AUTOTEST_PATH is relative to the top level
1066# of the package.  Then expand it into build/src parts, since users
1067# may create executables in both places.
1068AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1069at_path=
1070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1071for as_dir in $AUTOTEST_PATH $PATH
1072do
1073  IFS=$as_save_IFS
1074  test -z "$as_dir" && as_dir=.
1075    test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1076case $as_dir in
1077  [\\/]* | ?:[\\/]* )
1078    as_fn_append at_path "$as_dir"
1079    ;;
1080  * )
1081    if test -z "$at_top_build_prefix"; then
1082      # Stand-alone test suite.
1083      as_fn_append at_path "$as_dir"
1084    else
1085      # Embedded test suite.
1086      as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1087      as_fn_append at_path "$at_top_srcdir/$as_dir"
1088    fi
1089    ;;
1090esac
1091  done
1092IFS=$as_save_IFS
1093
1094
1095# Now build and simplify PATH.
1096#
1097# There might be directories that don't exist, but don't redirect
1098# builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1099at_new_path=
1100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101for as_dir in $at_path
1102do
1103  IFS=$as_save_IFS
1104  test -z "$as_dir" && as_dir=.
1105    test -d "$as_dir" || continue
1106case $as_dir in
1107  [\\/]* | ?:[\\/]* ) ;;
1108  * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1109esac
1110case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1111  *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1112  $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1113  *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1114esac
1115  done
1116IFS=$as_save_IFS
1117
1118PATH=$at_new_path
1119export PATH
1120
1121# Setting up the FDs.
1122
1123
1124
1125# 5 is the log file.  Not to be overwritten if `-d'.
1126if $at_debug_p; then
1127  at_suite_log=/dev/null
1128else
1129  : >"$at_suite_log"
1130fi
1131exec 5>>"$at_suite_log"
1132
1133# Banners and logs.
1134$as_echo "## ------------------------------------------------------------- ##
1135## Automated Testing Framework 0.12 test suite: bootstrap tests. ##
1136## ------------------------------------------------------------- ##"
1137{
1138  $as_echo "## ------------------------------------------------------------- ##
1139## Automated Testing Framework 0.12 test suite: bootstrap tests. ##
1140## ------------------------------------------------------------- ##"
1141  echo
1142
1143  $as_echo "$as_me: command line was:"
1144  $as_echo "  \$ $0 $at_cli_args"
1145  echo
1146
1147  # If ChangeLog exists, list a few lines in case it might help determining
1148  # the exact version.
1149  if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1150    $as_echo "## ---------- ##
1151## ChangeLog. ##
1152## ---------- ##"
1153    echo
1154    sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1155    echo
1156  fi
1157
1158  {
1159cat <<_ASUNAME
1160## --------- ##
1161## Platform. ##
1162## --------- ##
1163
1164hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1165uname -m = `(uname -m) 2>/dev/null || echo unknown`
1166uname -r = `(uname -r) 2>/dev/null || echo unknown`
1167uname -s = `(uname -s) 2>/dev/null || echo unknown`
1168uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169
1170/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1171/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1172
1173/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1174/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1175/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1176/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1177/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1178/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1179/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1180
1181_ASUNAME
1182
1183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184for as_dir in $PATH
1185do
1186  IFS=$as_save_IFS
1187  test -z "$as_dir" && as_dir=.
1188    $as_echo "PATH: $as_dir"
1189  done
1190IFS=$as_save_IFS
1191
1192}
1193  echo
1194
1195  # Contents of the config files.
1196  for at_file in atconfig atlocal
1197  do
1198    test -r $at_file || continue
1199    $as_echo "$as_me: $at_file:"
1200    sed 's/^/| /' $at_file
1201    echo
1202  done
1203} >&5
1204
1205
1206## ------------------------- ##
1207## Autotest shell functions. ##
1208## ------------------------- ##
1209
1210# at_fn_banner NUMBER
1211# -------------------
1212# Output banner NUMBER, provided the testsuite is running multiple groups and
1213# this particular banner has not yet been printed.
1214at_fn_banner ()
1215{
1216  $at_print_banners || return 0
1217  eval at_banner_text=\$at_banner_text_$1
1218  test "x$at_banner_text" = "x " && return 0
1219  eval "at_banner_text_$1=\" \""
1220  if test -z "$at_banner_text"; then
1221    $at_first || echo
1222  else
1223    $as_echo "$as_nl$at_banner_text$as_nl"
1224  fi
1225} # at_fn_banner
1226
1227# at_fn_check_prepare_notrace REASON LINE
1228# ---------------------------------------
1229# Perform AT_CHECK preparations for the command at LINE for an untraceable
1230# command; REASON is the reason for disabling tracing.
1231at_fn_check_prepare_notrace ()
1232{
1233  $at_trace_echo "Not enabling shell tracing (command contains $1)"
1234  $as_echo "$2" >"$at_check_line_file"
1235  at_check_trace=: at_check_filter=:
1236  : >"$at_stdout"; : >"$at_stderr"
1237}
1238
1239# at_fn_check_prepare_trace LINE
1240# ------------------------------
1241# Perform AT_CHECK preparations for the command at LINE for a traceable
1242# command.
1243at_fn_check_prepare_trace ()
1244{
1245  $as_echo "$1" >"$at_check_line_file"
1246  at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1247  : >"$at_stdout"; : >"$at_stderr"
1248}
1249
1250# at_fn_check_prepare_dynamic COMMAND LINE
1251# ----------------------------------------
1252# Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1253# preparation function.
1254at_fn_check_prepare_dynamic ()
1255{
1256  case $1 in
1257    *$as_nl*)
1258      at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1259    *)
1260      at_fn_check_prepare_trace "$2" ;;
1261  esac
1262}
1263
1264# at_fn_filter_trace
1265# ------------------
1266# Remove the lines in the file "$at_stderr" generated by "set -x" and print
1267# them to stderr.
1268at_fn_filter_trace ()
1269{
1270  mv "$at_stderr" "$at_stder1"
1271  grep '^ *+' "$at_stder1" >&2
1272  grep -v '^ *+' "$at_stder1" >"$at_stderr"
1273}
1274
1275# at_fn_log_failure FILE-LIST
1276# ---------------------------
1277# Copy the files in the list on stdout with a "> " prefix, and exit the shell
1278# with a failure exit code.
1279at_fn_log_failure ()
1280{
1281  for file
1282    do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1283  echo 1 > "$at_status_file"
1284  exit 1
1285}
1286
1287# at_fn_check_skip EXIT-CODE LINE
1288# -------------------------------
1289# Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1290# the test group subshell with that same exit code. Use LINE in any report
1291# about test failure.
1292at_fn_check_skip ()
1293{
1294  case $1 in
1295    99) echo 99 > "$at_status_file"; at_failed=:
1296	$as_echo "$2: hard failure"; exit 99;;
1297    77) echo 77 > "$at_status_file"; exit 77;;
1298  esac
1299}
1300
1301# at_fn_check_status EXPECTED EXIT-CODE LINE
1302# ------------------------------------------
1303# Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1304# Otherwise, if it is 77 or 99, exit the test group subshell with that same
1305# exit code; if it is anything else print an error message referring to LINE,
1306# and fail the test.
1307at_fn_check_status ()
1308{
1309  case $2 in
1310    $1 ) ;;
1311    77) echo 77 > "$at_status_file"; exit 77;;
1312    99) echo 99 > "$at_status_file"; at_failed=:
1313	$as_echo "$3: hard failure"; exit 99;;
1314    *) $as_echo "$3: exit code was $2, expected $1"
1315      at_failed=:;;
1316  esac
1317}
1318
1319# at_fn_diff_devnull FILE
1320# -----------------------
1321# Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1322# invocations.
1323at_fn_diff_devnull ()
1324{
1325  test -s "$1" || return 0
1326  $at_diff "$at_devnull" "$1"
1327}
1328
1329# at_fn_test NUMBER
1330# -----------------
1331# Parse out test NUMBER from the tail of this file.
1332at_fn_test ()
1333{
1334  eval at_sed=\$at_sed$1
1335  sed "$at_sed" "$at_myself" > "$at_test_source"
1336}
1337
1338# at_fn_create_debugging_script
1339# -----------------------------
1340# Create the debugging script $at_group_dir/run which will reproduce the
1341# current test group.
1342at_fn_create_debugging_script ()
1343{
1344  {
1345    echo "#! /bin/sh" &&
1346    echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1347    $as_echo "cd '$at_dir'" &&
1348    $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1349    echo 'exit 1'
1350  } >"$at_group_dir/run" &&
1351  chmod +x "$at_group_dir/run"
1352}
1353
1354## -------------------------------- ##
1355## End of autotest shell functions. ##
1356## -------------------------------- ##
1357{
1358  $as_echo "## ---------------- ##
1359## Tested programs. ##
1360## ---------------- ##"
1361  echo
1362} >&5
1363
1364# Report what programs are being tested.
1365for at_program in : $at_tested
1366do
1367  test "$at_program" = : && continue
1368  case $at_program in
1369    [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1370    * )
1371    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372for as_dir in $PATH
1373do
1374  IFS=$as_save_IFS
1375  test -z "$as_dir" && as_dir=.
1376    test -f "$as_dir/$at_program" && break
1377  done
1378IFS=$as_save_IFS
1379
1380    at_program_=$as_dir/$at_program ;;
1381  esac
1382  if test -f "$at_program_"; then
1383    {
1384      $as_echo "$at_srcdir/testsuite.at:30: $at_program_ --version"
1385      "$at_program_" --version </dev/null
1386      echo
1387    } >&5 2>&1
1388  else
1389    as_fn_error $? "cannot find $at_program" "$LINENO" 5
1390  fi
1391done
1392
1393{
1394  $as_echo "## ------------------ ##
1395## Running the tests. ##
1396## ------------------ ##"
1397} >&5
1398
1399at_start_date=`date`
1400at_start_time=`date +%s 2>/dev/null`
1401$as_echo "$as_me: starting at: $at_start_date" >&5
1402
1403# Create the master directory if it doesn't already exist.
1404as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1405  as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1406
1407# Can we diff with `/dev/null'?  DU 5.0 refuses.
1408if diff /dev/null /dev/null >/dev/null 2>&1; then
1409  at_devnull=/dev/null
1410else
1411  at_devnull=$at_suite_dir/devnull
1412  >"$at_devnull"
1413fi
1414
1415# Use `diff -u' when possible.
1416if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1417then
1418  at_diff='diff -u'
1419else
1420  at_diff=diff
1421fi
1422
1423# Get the last needed group.
1424for at_group in : $at_groups; do :; done
1425
1426# Extract the start and end lines of each test group at the tail
1427# of this file
1428awk '
1429BEGIN { FS="" }
1430/^#AT_START_/ {
1431  start = NR
1432}
1433/^#AT_STOP_/ {
1434  test = substr ($ 0, 10)
1435  print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1436  if (test == "'"$at_group"'") exit
1437}' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1438. "$at_suite_dir/at-source-lines" ||
1439  as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1440rm -f "$at_suite_dir/at-source-lines"
1441
1442# Set number of jobs for `-j'; avoid more jobs than test groups.
1443set X $at_groups; shift; at_max_jobs=$#
1444if test $at_max_jobs -eq 0; then
1445  at_jobs=1
1446fi
1447if test $at_jobs -ne 1 &&
1448   { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1449  at_jobs=$at_max_jobs
1450fi
1451
1452# If parallel mode, don't output banners, don't split summary lines.
1453if test $at_jobs -ne 1; then
1454  at_print_banners=false
1455  at_quiet=:
1456fi
1457
1458# Set up helper dirs.
1459rm -rf "$at_helper_dir" &&
1460mkdir "$at_helper_dir" &&
1461cd "$at_helper_dir" &&
1462{ test -z "$at_groups" || mkdir $at_groups; } ||
1463as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1464
1465# Functions for running a test group.  We leave the actual
1466# test group execution outside of a shell function in order
1467# to avoid hitting zsh 4.x exit status bugs.
1468
1469# at_fn_group_prepare
1470# -------------------
1471# Prepare for running a test group.
1472at_fn_group_prepare ()
1473{
1474  # The directory for additional per-group helper files.
1475  at_job_dir=$at_helper_dir/$at_group
1476  # The file containing the location of the last AT_CHECK.
1477  at_check_line_file=$at_job_dir/check-line
1478  # The file containing the exit status of the last command.
1479  at_status_file=$at_job_dir/status
1480  # The files containing the output of the tested commands.
1481  at_stdout=$at_job_dir/stdout
1482  at_stder1=$at_job_dir/stder1
1483  at_stderr=$at_job_dir/stderr
1484  # The file containing the code for a test group.
1485  at_test_source=$at_job_dir/test-source
1486  # The file containing dates.
1487  at_times_file=$at_job_dir/times
1488
1489  # Be sure to come back to the top test directory.
1490  cd "$at_suite_dir"
1491
1492  # Clearly separate the test groups when verbose.
1493  $at_first || $at_verbose echo
1494
1495  at_group_normalized=$at_group
1496
1497  eval 'while :; do
1498    case $at_group_normalized in #(
1499    '"$at_format"'*) break;;
1500    esac
1501    at_group_normalized=0$at_group_normalized
1502  done'
1503
1504
1505  # Create a fresh directory for the next test group, and enter.
1506  # If one already exists, the user may have invoked ./run from
1507  # within that directory; we remove the contents, but not the
1508  # directory itself, so that we aren't pulling the rug out from
1509  # under the shell's notion of the current directory.
1510  at_group_dir=$at_suite_dir/$at_group_normalized
1511  at_group_log=$at_group_dir/$as_me.log
1512  if test -d "$at_group_dir"; then
1513  find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1514  rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1515fi ||
1516    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1517$as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1518  # Be tolerant if the above `rm' was not able to remove the directory.
1519  as_dir="$at_group_dir"; as_fn_mkdir_p
1520
1521  echo 0 > "$at_status_file"
1522
1523  # In verbose mode, append to the log file *and* show on
1524  # the standard output; in quiet mode only write to the log.
1525  if test -z "$at_verbose"; then
1526    at_tee_pipe='tee -a "$at_group_log"'
1527  else
1528    at_tee_pipe='cat >> "$at_group_log"'
1529  fi
1530}
1531
1532# at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1533# -------------------------------------------------
1534# Declare the test group ORDINAL, located at LINE with group description DESC,
1535# and residing under BANNER. Use PAD to align the status column.
1536at_fn_group_banner ()
1537{
1538  at_setup_line="$2"
1539  test -n "$5" && at_fn_banner $5
1540  at_desc="$3"
1541  case $1 in
1542    [0-9])      at_desc_line="  $1: ";;
1543    [0-9][0-9]) at_desc_line=" $1: " ;;
1544    *)          at_desc_line="$1: "  ;;
1545  esac
1546  as_fn_append at_desc_line "$3$4"
1547  $at_quiet $as_echo_n "$at_desc_line"
1548  echo "#                             -*- compilation -*-" >> "$at_group_log"
1549}
1550
1551# at_fn_group_postprocess
1552# -----------------------
1553# Perform cleanup after running a test group.
1554at_fn_group_postprocess ()
1555{
1556  # Be sure to come back to the suite directory, in particular
1557  # since below we might `rm' the group directory we are in currently.
1558  cd "$at_suite_dir"
1559
1560  if test ! -f "$at_check_line_file"; then
1561    sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1562      A failure happened in a test group before any test could be
1563      run. This means that test suite is improperly designed.  Please
1564      report this failure to <atf-devel@NetBSD.org>.
1565_ATEOF
1566    $as_echo "$at_setup_line" >"$at_check_line_file"
1567    at_status=99
1568  fi
1569  $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1570  $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1571  case $at_xfail:$at_status in
1572    yes:0)
1573	at_msg="UNEXPECTED PASS"
1574	at_res=xpass
1575	at_errexit=$at_errexit_p
1576	at_color=$at_red
1577	;;
1578    no:0)
1579	at_msg="ok"
1580	at_res=pass
1581	at_errexit=false
1582	at_color=$at_grn
1583	;;
1584    *:77)
1585	at_msg='skipped ('`cat "$at_check_line_file"`')'
1586	at_res=skip
1587	at_errexit=false
1588	at_color=$at_blu
1589	;;
1590    no:* | *:99)
1591	at_msg='FAILED ('`cat "$at_check_line_file"`')'
1592	at_res=fail
1593	at_errexit=$at_errexit_p
1594	at_color=$at_red
1595	;;
1596    yes:*)
1597	at_msg='expected failure ('`cat "$at_check_line_file"`')'
1598	at_res=xfail
1599	at_errexit=false
1600	at_color=$at_lgn
1601	;;
1602  esac
1603  echo "$at_res" > "$at_job_dir/$at_res"
1604  # In parallel mode, output the summary line only afterwards.
1605  if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1606    $as_echo "$at_desc_line $at_color$at_msg$at_std"
1607  else
1608    # Make sure there is a separator even with long titles.
1609    $as_echo " $at_color$at_msg$at_std"
1610  fi
1611  at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1612  case $at_status in
1613    0|77)
1614      # $at_times_file is only available if the group succeeded.
1615      # We're not including the group log, so the success message
1616      # is written in the global log separately.  But we also
1617      # write to the group log in case they're using -d.
1618      if test -f "$at_times_file"; then
1619	at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
1620	rm -f "$at_times_file"
1621      fi
1622      $as_echo "$at_log_msg" >> "$at_group_log"
1623      $as_echo "$at_log_msg" >&5
1624
1625      # Cleanup the group directory, unless the user wants the files
1626      # or the success was unexpected.
1627      if $at_debug_p || test $at_res = xpass; then
1628	at_fn_create_debugging_script
1629	if test $at_res = xpass && $at_errexit; then
1630	  echo stop > "$at_stop_file"
1631	fi
1632      else
1633	if test -d "$at_group_dir"; then
1634	  find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1635	  rm -fr "$at_group_dir"
1636	fi
1637	rm -f "$at_test_source"
1638      fi
1639      ;;
1640    *)
1641      # Upon failure, include the log into the testsuite's global
1642      # log.  The failure message is written in the group log.  It
1643      # is later included in the global log.
1644      $as_echo "$at_log_msg" >> "$at_group_log"
1645
1646      # Upon failure, keep the group directory for autopsy, and create
1647      # the debugging script.  With -e, do not start any further tests.
1648      at_fn_create_debugging_script
1649      if $at_errexit; then
1650	echo stop > "$at_stop_file"
1651      fi
1652      ;;
1653  esac
1654}
1655
1656
1657## ------------ ##
1658## Driver loop. ##
1659## ------------ ##
1660
1661
1662if (set -m && set +m && set +b) >/dev/null 2>&1; then
1663  set +b
1664  at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1665else
1666  at_job_control_on=: at_job_control_off=: at_job_group=
1667fi
1668
1669for at_signal in 1 2 15; do
1670  trap 'set +x; set +e
1671	$at_job_control_off
1672	at_signal='"$at_signal"'
1673	echo stop > "$at_stop_file"
1674	trap "" $at_signal
1675	at_pgids=
1676	for at_pgid in `jobs -p 2>/dev/null`; do
1677	  at_pgids="$at_pgids $at_job_group$at_pgid"
1678	done
1679	test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1680	wait
1681	if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1682	  echo >&2
1683	fi
1684	at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1685	set x $at_signame
1686	test 1 -gt 2 && at_signame=$at_signal
1687	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1688$as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1689	as_fn_arith 128 + $at_signal && exit_status=$as_val
1690	as_fn_exit $exit_status' $at_signal
1691done
1692
1693rm -f "$at_stop_file"
1694at_first=:
1695
1696if test $at_jobs -ne 1 &&
1697     rm -f "$at_job_fifo" &&
1698     test -n "$at_job_group" &&
1699     ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1700then
1701  # FIFO job dispatcher.
1702
1703  trap 'at_pids=
1704	for at_pid in `jobs -p`; do
1705	  at_pids="$at_pids $at_job_group$at_pid"
1706	done
1707	if test -n "$at_pids"; then
1708	  at_sig=TSTP
1709	  test "${TMOUT+set}" = set && at_sig=STOP
1710	  kill -$at_sig $at_pids 2>/dev/null
1711	fi
1712	kill -STOP $$
1713	test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1714
1715  echo
1716  # Turn jobs into a list of numbers, starting from 1.
1717  at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1718
1719  set X $at_joblist
1720  shift
1721  for at_group in $at_groups; do
1722    $at_job_control_on 2>/dev/null
1723    (
1724      # Start one test group.
1725      $at_job_control_off
1726      if $at_first; then
1727	exec 7>"$at_job_fifo"
1728      else
1729	exec 6<&-
1730      fi
1731      trap 'set +x; set +e
1732	    trap "" PIPE
1733	    echo stop > "$at_stop_file"
1734	    echo >&7
1735	    as_fn_exit 141' PIPE
1736      at_fn_group_prepare
1737      if cd "$at_group_dir" &&
1738	 at_fn_test $at_group &&
1739	 . "$at_test_source"
1740      then :; else
1741	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1742$as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1743	at_failed=:
1744      fi
1745      at_fn_group_postprocess
1746      echo >&7
1747    ) &
1748    $at_job_control_off
1749    if $at_first; then
1750      at_first=false
1751      exec 6<"$at_job_fifo" 7>"$at_job_fifo"
1752    fi
1753    shift # Consume one token.
1754    if test $# -gt 0; then :; else
1755      read at_token <&6 || break
1756      set x $*
1757    fi
1758    test -f "$at_stop_file" && break
1759  done
1760  exec 7>&-
1761  # Read back the remaining ($at_jobs - 1) tokens.
1762  set X $at_joblist
1763  shift
1764  if test $# -gt 0; then
1765    shift
1766    for at_job
1767    do
1768      read at_token
1769    done <&6
1770  fi
1771  exec 6<&-
1772  wait
1773else
1774  # Run serially, avoid forks and other potential surprises.
1775  for at_group in $at_groups; do
1776    at_fn_group_prepare
1777    if cd "$at_group_dir" &&
1778       at_fn_test $at_group &&
1779       . "$at_test_source"; then :; else
1780      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1781$as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1782      at_failed=:
1783    fi
1784    at_fn_group_postprocess
1785    test -f "$at_stop_file" && break
1786    at_first=false
1787  done
1788fi
1789
1790# Wrap up the test suite with summary statistics.
1791cd "$at_helper_dir"
1792
1793# Use ?..???? when the list must remain sorted, the faster * otherwise.
1794at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1795at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1796at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1797at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1798		 echo $f; done | sed '/?/d; s,/xpass,,'`
1799at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1800		echo $f; done | sed '/?/d; s,/fail,,'`
1801
1802set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1803shift; at_group_count=$#
1804set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1805set X $at_xfail_list; shift; at_xfail_count=$#
1806set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1807set X $at_skip_list; shift; at_skip_count=$#
1808
1809as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
1810as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
1811as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
1812
1813# Back to the top directory.
1814cd "$at_dir"
1815rm -rf "$at_helper_dir"
1816
1817# Compute the duration of the suite.
1818at_stop_date=`date`
1819at_stop_time=`date +%s 2>/dev/null`
1820$as_echo "$as_me: ending at: $at_stop_date" >&5
1821case $at_start_time,$at_stop_time in
1822  [0-9]*,[0-9]*)
1823    as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
1824    as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
1825    as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
1826    as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
1827    as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
1828    at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1829    $as_echo "$as_me: test suite duration: $at_duration" >&5
1830    ;;
1831esac
1832
1833echo
1834$as_echo "## ------------- ##
1835## Test results. ##
1836## ------------- ##"
1837echo
1838{
1839  echo
1840  $as_echo "## ------------- ##
1841## Test results. ##
1842## ------------- ##"
1843  echo
1844} >&5
1845
1846if test $at_run_count = 1; then
1847  at_result="1 test"
1848  at_were=was
1849else
1850  at_result="$at_run_count tests"
1851  at_were=were
1852fi
1853if $at_errexit_p && test $at_unexpected_count != 0; then
1854  if test $at_xpass_count = 1; then
1855    at_result="$at_result $at_were run, one passed"
1856  else
1857    at_result="$at_result $at_were run, one failed"
1858  fi
1859  at_result="$at_result unexpectedly and inhibited subsequent tests."
1860  at_color=$at_red
1861else
1862  # Don't you just love exponential explosion of the number of cases?
1863  at_color=$at_red
1864  case $at_xpass_count:$at_fail_count:$at_xfail_count in
1865    # So far, so good.
1866    0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
1867    0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
1868
1869    # Some unexpected failures
1870    0:*:0) at_result="$at_result $at_were run,
1871$at_fail_count failed unexpectedly." ;;
1872
1873    # Some failures, both expected and unexpected
1874    0:*:1) at_result="$at_result $at_were run,
1875$at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1876    0:*:*) at_result="$at_result $at_were run,
1877$at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1878
1879    # No unexpected failures, but some xpasses
1880    *:0:*) at_result="$at_result $at_were run,
1881$at_xpass_count passed unexpectedly." ;;
1882
1883    # No expected failures, but failures and xpasses
1884    *:1:0) at_result="$at_result $at_were run,
1885$at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1886    *:*:0) at_result="$at_result $at_were run,
1887$at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1888
1889    # All of them.
1890    *:*:1) at_result="$at_result $at_were run,
1891$at_xpass_count passed unexpectedly,
1892$at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1893    *:*:*) at_result="$at_result $at_were run,
1894$at_xpass_count passed unexpectedly,
1895$at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1896  esac
1897
1898  if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1899    at_result="All $at_result"
1900  fi
1901fi
1902
1903# Now put skips in the mix.
1904case $at_skip_count in
1905  0) ;;
1906  1) at_result="$at_result
19071 test was skipped." ;;
1908  *) at_result="$at_result
1909$at_skip_count tests were skipped." ;;
1910esac
1911
1912if test $at_unexpected_count = 0; then
1913  echo "$at_color$at_result$at_std"
1914  echo "$at_result" >&5
1915else
1916  echo "${at_color}ERROR: $at_result$at_std" >&2
1917  echo "ERROR: $at_result" >&5
1918  {
1919    echo
1920    $as_echo "## ------------------------ ##
1921## Summary of the failures. ##
1922## ------------------------ ##"
1923
1924    # Summary of failed and skipped tests.
1925    if test $at_fail_count != 0; then
1926      echo "Failed tests:"
1927      $SHELL "$at_myself" $at_fail_list --list
1928      echo
1929    fi
1930    if test $at_skip_count != 0; then
1931      echo "Skipped tests:"
1932      $SHELL "$at_myself" $at_skip_list --list
1933      echo
1934    fi
1935    if test $at_xpass_count != 0; then
1936      echo "Unexpected passes:"
1937      $SHELL "$at_myself" $at_xpass_list --list
1938      echo
1939    fi
1940    if test $at_fail_count != 0; then
1941      $as_echo "## ---------------------- ##
1942## Detailed failed tests. ##
1943## ---------------------- ##"
1944      echo
1945      for at_group in $at_fail_list
1946      do
1947	at_group_normalized=$at_group
1948
1949  eval 'while :; do
1950    case $at_group_normalized in #(
1951    '"$at_format"'*) break;;
1952    esac
1953    at_group_normalized=0$at_group_normalized
1954  done'
1955
1956	cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1957	echo
1958      done
1959      echo
1960    fi
1961    if test -n "$at_top_srcdir"; then
1962      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1963## ${at_top_build_prefix}config.log ##
1964_ASBOX
1965      sed 's/^/| /' ${at_top_build_prefix}config.log
1966      echo
1967    fi
1968  } >&5
1969
1970  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1971## $as_me.log was created. ##
1972_ASBOX
1973
1974  echo
1975  if $at_debug_p; then
1976    at_msg='per-test log files'
1977  else
1978    at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
1979  fi
1980  $as_echo "Please send $at_msg and all information you think might help:
1981
1982   To: <atf-devel@NetBSD.org>
1983   Subject: [Automated Testing Framework 0.12] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1984
1985You may investigate any problem if you feel able to do so, in which
1986case the test suite provides a good starting point.  Its output may
1987be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
1988"
1989  exit 1
1990fi
1991
1992exit 0
1993
1994## ------------- ##
1995## Actual tests. ##
1996## ------------- ##
1997#AT_START_1
1998at_fn_group_banner 1 't_application_opts_args.at:30' \
1999  "application: arguments and options handling" "    "
2000at_xfail=no
2001(
2002  $as_echo "1. $at_setup_line: testing $at_desc ..."
2003  $at_traceon
2004
2005
2006{ set +x
2007$as_echo "$at_srcdir/t_application_opts_args.at:34: \$({
2008    old=\$(pwd)
2009    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2010        cd ..
2011    done
2012    topdir=\$(pwd)
2013    cd \${old}
2014    echo \${topdir}
2015})/bootstrap/h_app_empty -h"
2016at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:34"
2017( $at_check_trace; $({
2018    old=$(pwd)
2019    while test $(pwd) != '/' -a ! -e ./Makefile; do
2020        cd ..
2021    done
2022    topdir=$(pwd)
2023    cd ${old}
2024    echo ${topdir}
2025})/bootstrap/h_app_empty -h
2026) >>"$at_stdout" 2>>"$at_stderr"
2027at_status=$? at_failed=false
2028$at_check_filter
2029at_fn_diff_devnull "$at_stderr" || at_failed=:
2030echo stdout:; tee stdout <"$at_stdout"
2031at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:34"
2032$at_failed && at_fn_log_failure
2033$at_traceon; }
2034
2035{ set +x
2036$as_echo "$at_srcdir/t_application_opts_args.at:35: grep ' -d ' stdout"
2037at_fn_check_prepare_trace "t_application_opts_args.at:35"
2038( $at_check_trace; grep ' -d ' stdout
2039) >>"$at_stdout" 2>>"$at_stderr"
2040at_status=$? at_failed=false
2041$at_check_filter
2042at_fn_diff_devnull "$at_stderr" || at_failed=:
2043echo stdout:; cat "$at_stdout"
2044at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:35"
2045$at_failed && at_fn_log_failure
2046$at_traceon; }
2047
2048{ set +x
2049$as_echo "$at_srcdir/t_application_opts_args.at:36: grep ' -h ' stdout"
2050at_fn_check_prepare_trace "t_application_opts_args.at:36"
2051( $at_check_trace; grep ' -h ' stdout
2052) >>"$at_stdout" 2>>"$at_stderr"
2053at_status=$? at_failed=false
2054$at_check_filter
2055at_fn_diff_devnull "$at_stderr" || at_failed=:
2056echo stdout:; cat "$at_stdout"
2057at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:36"
2058$at_failed && at_fn_log_failure
2059$at_traceon; }
2060
2061{ set +x
2062$as_echo "$at_srcdir/t_application_opts_args.at:37: grep ' -v ' stdout"
2063at_fn_check_prepare_trace "t_application_opts_args.at:37"
2064( $at_check_trace; grep ' -v ' stdout
2065) >>"$at_stdout" 2>>"$at_stderr"
2066at_status=$? at_failed=false
2067$at_check_filter
2068at_fn_diff_devnull "$at_stderr" || at_failed=:
2069echo stdout:; cat "$at_stdout"
2070at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:37"
2071$at_failed && at_fn_log_failure
2072$at_traceon; }
2073
2074{ set +x
2075$as_echo "$at_srcdir/t_application_opts_args.at:38: grep ' -z ' stdout"
2076at_fn_check_prepare_trace "t_application_opts_args.at:38"
2077( $at_check_trace; grep ' -z ' stdout
2078) >>"$at_stdout" 2>>"$at_stderr"
2079at_status=$? at_failed=false
2080$at_check_filter
2081at_fn_diff_devnull "$at_stderr" || at_failed=:
2082echo stdout:; cat "$at_stdout"
2083at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:38"
2084$at_failed && at_fn_log_failure
2085$at_traceon; }
2086
2087
2088{ set +x
2089$as_echo "$at_srcdir/t_application_opts_args.at:42: \$({
2090    old=\$(pwd)
2091    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2092        cd ..
2093    done
2094    topdir=\$(pwd)
2095    cd \${old}
2096    echo \${topdir}
2097})/bootstrap/h_app_opts_args -h"
2098at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:42"
2099( $at_check_trace; $({
2100    old=$(pwd)
2101    while test $(pwd) != '/' -a ! -e ./Makefile; do
2102        cd ..
2103    done
2104    topdir=$(pwd)
2105    cd ${old}
2106    echo ${topdir}
2107})/bootstrap/h_app_opts_args -h
2108) >>"$at_stdout" 2>>"$at_stderr"
2109at_status=$? at_failed=false
2110$at_check_filter
2111at_fn_diff_devnull "$at_stderr" || at_failed=:
2112echo stdout:; tee stdout <"$at_stdout"
2113at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:42"
2114$at_failed && at_fn_log_failure
2115$at_traceon; }
2116
2117{ set +x
2118$as_echo "$at_srcdir/t_application_opts_args.at:43: grep ' -d ' stdout"
2119at_fn_check_prepare_trace "t_application_opts_args.at:43"
2120( $at_check_trace; grep ' -d ' stdout
2121) >>"$at_stdout" 2>>"$at_stderr"
2122at_status=$? at_failed=false
2123$at_check_filter
2124at_fn_diff_devnull "$at_stderr" || at_failed=:
2125echo stdout:; cat "$at_stdout"
2126at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:43"
2127$at_failed && at_fn_log_failure
2128$at_traceon; }
2129
2130{ set +x
2131$as_echo "$at_srcdir/t_application_opts_args.at:44: grep ' -h ' stdout"
2132at_fn_check_prepare_trace "t_application_opts_args.at:44"
2133( $at_check_trace; grep ' -h ' stdout
2134) >>"$at_stdout" 2>>"$at_stderr"
2135at_status=$? at_failed=false
2136$at_check_filter
2137at_fn_diff_devnull "$at_stderr" || at_failed=:
2138echo stdout:; cat "$at_stdout"
2139at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:44"
2140$at_failed && at_fn_log_failure
2141$at_traceon; }
2142
2143{ set +x
2144$as_echo "$at_srcdir/t_application_opts_args.at:45: grep ' -v ' stdout"
2145at_fn_check_prepare_trace "t_application_opts_args.at:45"
2146( $at_check_trace; grep ' -v ' stdout
2147) >>"$at_stdout" 2>>"$at_stderr"
2148at_status=$? at_failed=false
2149$at_check_filter
2150at_fn_diff_devnull "$at_stderr" || at_failed=:
2151echo stdout:; cat "$at_stdout"
2152at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:45"
2153$at_failed && at_fn_log_failure
2154$at_traceon; }
2155
2156{ set +x
2157$as_echo "$at_srcdir/t_application_opts_args.at:46: grep ' -z ' stdout"
2158at_fn_check_prepare_trace "t_application_opts_args.at:46"
2159( $at_check_trace; grep ' -z ' stdout
2160) >>"$at_stdout" 2>>"$at_stderr"
2161at_status=$? at_failed=false
2162$at_check_filter
2163at_fn_diff_devnull "$at_stderr" || at_failed=:
2164echo stdout:; cat "$at_stdout"
2165at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:46"
2166$at_failed && at_fn_log_failure
2167$at_traceon; }
2168
2169
2170{ set +x
2171$as_echo "$at_srcdir/t_application_opts_args.at:50: \$({
2172    old=\$(pwd)
2173    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2174        cd ..
2175    done
2176    topdir=\$(pwd)
2177    cd \${old}
2178    echo \${topdir}
2179})/bootstrap/h_app_empty -d"
2180at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:50"
2181( $at_check_trace; $({
2182    old=$(pwd)
2183    while test $(pwd) != '/' -a ! -e ./Makefile; do
2184        cd ..
2185    done
2186    topdir=$(pwd)
2187    cd ${old}
2188    echo ${topdir}
2189})/bootstrap/h_app_empty -d
2190) >>"$at_stdout" 2>>"$at_stderr"
2191at_status=$? at_failed=false
2192$at_check_filter
2193echo stderr:; tee stderr <"$at_stderr"
2194at_fn_diff_devnull "$at_stdout" || at_failed=:
2195at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:50"
2196$at_failed && at_fn_log_failure
2197$at_traceon; }
2198
2199{ set +x
2200$as_echo "$at_srcdir/t_application_opts_args.at:51: grep 'Unknown option.*-d' stderr"
2201at_fn_check_prepare_trace "t_application_opts_args.at:51"
2202( $at_check_trace; grep 'Unknown option.*-d' stderr
2203) >>"$at_stdout" 2>>"$at_stderr"
2204at_status=$? at_failed=false
2205$at_check_filter
2206at_fn_diff_devnull "$at_stderr" || at_failed=:
2207echo stdout:; cat "$at_stdout"
2208at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:51"
2209$at_failed && at_fn_log_failure
2210$at_traceon; }
2211
2212{ set +x
2213$as_echo "$at_srcdir/t_application_opts_args.at:52: \$({
2214    old=\$(pwd)
2215    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2216        cd ..
2217    done
2218    topdir=\$(pwd)
2219    cd \${old}
2220    echo \${topdir}
2221})/bootstrap/h_app_empty -v"
2222at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:52"
2223( $at_check_trace; $({
2224    old=$(pwd)
2225    while test $(pwd) != '/' -a ! -e ./Makefile; do
2226        cd ..
2227    done
2228    topdir=$(pwd)
2229    cd ${old}
2230    echo ${topdir}
2231})/bootstrap/h_app_empty -v
2232) >>"$at_stdout" 2>>"$at_stderr"
2233at_status=$? at_failed=false
2234$at_check_filter
2235echo stderr:; tee stderr <"$at_stderr"
2236at_fn_diff_devnull "$at_stdout" || at_failed=:
2237at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:52"
2238$at_failed && at_fn_log_failure
2239$at_traceon; }
2240
2241{ set +x
2242$as_echo "$at_srcdir/t_application_opts_args.at:53: grep 'Unknown option.*-v' stderr"
2243at_fn_check_prepare_trace "t_application_opts_args.at:53"
2244( $at_check_trace; grep 'Unknown option.*-v' stderr
2245) >>"$at_stdout" 2>>"$at_stderr"
2246at_status=$? at_failed=false
2247$at_check_filter
2248at_fn_diff_devnull "$at_stderr" || at_failed=:
2249echo stdout:; cat "$at_stdout"
2250at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:53"
2251$at_failed && at_fn_log_failure
2252$at_traceon; }
2253
2254{ set +x
2255$as_echo "$at_srcdir/t_application_opts_args.at:54: \$({
2256    old=\$(pwd)
2257    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2258        cd ..
2259    done
2260    topdir=\$(pwd)
2261    cd \${old}
2262    echo \${topdir}
2263})/bootstrap/h_app_empty -z"
2264at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:54"
2265( $at_check_trace; $({
2266    old=$(pwd)
2267    while test $(pwd) != '/' -a ! -e ./Makefile; do
2268        cd ..
2269    done
2270    topdir=$(pwd)
2271    cd ${old}
2272    echo ${topdir}
2273})/bootstrap/h_app_empty -z
2274) >>"$at_stdout" 2>>"$at_stderr"
2275at_status=$? at_failed=false
2276$at_check_filter
2277echo stderr:; tee stderr <"$at_stderr"
2278at_fn_diff_devnull "$at_stdout" || at_failed=:
2279at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:54"
2280$at_failed && at_fn_log_failure
2281$at_traceon; }
2282
2283{ set +x
2284$as_echo "$at_srcdir/t_application_opts_args.at:55: grep 'Unknown option.*-z' stderr"
2285at_fn_check_prepare_trace "t_application_opts_args.at:55"
2286( $at_check_trace; grep 'Unknown option.*-z' stderr
2287) >>"$at_stdout" 2>>"$at_stderr"
2288at_status=$? at_failed=false
2289$at_check_filter
2290at_fn_diff_devnull "$at_stderr" || at_failed=:
2291echo stdout:; cat "$at_stdout"
2292at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:55"
2293$at_failed && at_fn_log_failure
2294$at_traceon; }
2295
2296
2297{ set +x
2298$as_echo "$at_srcdir/t_application_opts_args.at:59: \$({
2299    old=\$(pwd)
2300    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2301        cd ..
2302    done
2303    topdir=\$(pwd)
2304    cd \${old}
2305    echo \${topdir}
2306})/bootstrap/h_app_opts_args -d"
2307at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:59"
2308( $at_check_trace; $({
2309    old=$(pwd)
2310    while test $(pwd) != '/' -a ! -e ./Makefile; do
2311        cd ..
2312    done
2313    topdir=$(pwd)
2314    cd ${old}
2315    echo ${topdir}
2316})/bootstrap/h_app_opts_args -d
2317) >>"$at_stdout" 2>>"$at_stderr"
2318at_status=$? at_failed=false
2319$at_check_filter
2320at_fn_diff_devnull "$at_stderr" || at_failed=:
2321echo stdout:; tee stdout <"$at_stdout"
2322at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:59"
2323$at_failed && at_fn_log_failure
2324$at_traceon; }
2325
2326{ set +x
2327$as_echo "$at_srcdir/t_application_opts_args.at:60: grep -- '-d given' stdout"
2328at_fn_check_prepare_trace "t_application_opts_args.at:60"
2329( $at_check_trace; grep -- '-d given' stdout
2330) >>"$at_stdout" 2>>"$at_stderr"
2331at_status=$? at_failed=false
2332$at_check_filter
2333at_fn_diff_devnull "$at_stderr" || at_failed=:
2334echo stdout:; cat "$at_stdout"
2335at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:60"
2336$at_failed && at_fn_log_failure
2337$at_traceon; }
2338
2339{ set +x
2340$as_echo "$at_srcdir/t_application_opts_args.at:61: \$({
2341    old=\$(pwd)
2342    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2343        cd ..
2344    done
2345    topdir=\$(pwd)
2346    cd \${old}
2347    echo \${topdir}
2348})/bootstrap/h_app_opts_args -v"
2349at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:61"
2350( $at_check_trace; $({
2351    old=$(pwd)
2352    while test $(pwd) != '/' -a ! -e ./Makefile; do
2353        cd ..
2354    done
2355    topdir=$(pwd)
2356    cd ${old}
2357    echo ${topdir}
2358})/bootstrap/h_app_opts_args -v
2359) >>"$at_stdout" 2>>"$at_stderr"
2360at_status=$? at_failed=false
2361$at_check_filter
2362echo stderr:; tee stderr <"$at_stderr"
2363at_fn_diff_devnull "$at_stdout" || at_failed=:
2364at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:61"
2365$at_failed && at_fn_log_failure
2366$at_traceon; }
2367
2368{ set +x
2369$as_echo "$at_srcdir/t_application_opts_args.at:62: grep 'Option.*-v.*requires an argument' stderr"
2370at_fn_check_prepare_trace "t_application_opts_args.at:62"
2371( $at_check_trace; grep 'Option.*-v.*requires an argument' stderr
2372) >>"$at_stdout" 2>>"$at_stderr"
2373at_status=$? at_failed=false
2374$at_check_filter
2375at_fn_diff_devnull "$at_stderr" || at_failed=:
2376echo stdout:; cat "$at_stdout"
2377at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:62"
2378$at_failed && at_fn_log_failure
2379$at_traceon; }
2380
2381{ set +x
2382$as_echo "$at_srcdir/t_application_opts_args.at:63: \$({
2383    old=\$(pwd)
2384    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2385        cd ..
2386    done
2387    topdir=\$(pwd)
2388    cd \${old}
2389    echo \${topdir}
2390})/bootstrap/h_app_opts_args -v foo"
2391at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:63"
2392( $at_check_trace; $({
2393    old=$(pwd)
2394    while test $(pwd) != '/' -a ! -e ./Makefile; do
2395        cd ..
2396    done
2397    topdir=$(pwd)
2398    cd ${old}
2399    echo ${topdir}
2400})/bootstrap/h_app_opts_args -v foo
2401) >>"$at_stdout" 2>>"$at_stderr"
2402at_status=$? at_failed=false
2403$at_check_filter
2404at_fn_diff_devnull "$at_stderr" || at_failed=:
2405echo stdout:; tee stdout <"$at_stdout"
2406at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:63"
2407$at_failed && at_fn_log_failure
2408$at_traceon; }
2409
2410{ set +x
2411$as_echo "$at_srcdir/t_application_opts_args.at:64: grep -- '-v given with argument foo' stdout"
2412at_fn_check_prepare_trace "t_application_opts_args.at:64"
2413( $at_check_trace; grep -- '-v given with argument foo' stdout
2414) >>"$at_stdout" 2>>"$at_stderr"
2415at_status=$? at_failed=false
2416$at_check_filter
2417at_fn_diff_devnull "$at_stderr" || at_failed=:
2418echo stdout:; cat "$at_stdout"
2419at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:64"
2420$at_failed && at_fn_log_failure
2421$at_traceon; }
2422
2423{ set +x
2424$as_echo "$at_srcdir/t_application_opts_args.at:65: \$({
2425    old=\$(pwd)
2426    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2427        cd ..
2428    done
2429    topdir=\$(pwd)
2430    cd \${old}
2431    echo \${topdir}
2432})/bootstrap/h_app_opts_args -z"
2433at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:65"
2434( $at_check_trace; $({
2435    old=$(pwd)
2436    while test $(pwd) != '/' -a ! -e ./Makefile; do
2437        cd ..
2438    done
2439    topdir=$(pwd)
2440    cd ${old}
2441    echo ${topdir}
2442})/bootstrap/h_app_opts_args -z
2443) >>"$at_stdout" 2>>"$at_stderr"
2444at_status=$? at_failed=false
2445$at_check_filter
2446echo stderr:; tee stderr <"$at_stderr"
2447at_fn_diff_devnull "$at_stdout" || at_failed=:
2448at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:65"
2449$at_failed && at_fn_log_failure
2450$at_traceon; }
2451
2452{ set +x
2453$as_echo "$at_srcdir/t_application_opts_args.at:66: grep 'Unknown option.*-z' stderr"
2454at_fn_check_prepare_trace "t_application_opts_args.at:66"
2455( $at_check_trace; grep 'Unknown option.*-z' stderr
2456) >>"$at_stdout" 2>>"$at_stderr"
2457at_status=$? at_failed=false
2458$at_check_filter
2459at_fn_diff_devnull "$at_stderr" || at_failed=:
2460echo stdout:; cat "$at_stdout"
2461at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:66"
2462$at_failed && at_fn_log_failure
2463$at_traceon; }
2464
2465
2466{ set +x
2467$as_echo "$at_srcdir/t_application_opts_args.at:69: \$({
2468    old=\$(pwd)
2469    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2470        cd ..
2471    done
2472    topdir=\$(pwd)
2473    cd \${old}
2474    echo \${topdir}
2475})/bootstrap/h_app_opts_args -- -d"
2476at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:69"
2477( $at_check_trace; $({
2478    old=$(pwd)
2479    while test $(pwd) != '/' -a ! -e ./Makefile; do
2480        cd ..
2481    done
2482    topdir=$(pwd)
2483    cd ${old}
2484    echo ${topdir}
2485})/bootstrap/h_app_opts_args -- -d
2486) >>"$at_stdout" 2>>"$at_stderr"
2487at_status=$? at_failed=false
2488$at_check_filter
2489at_fn_diff_devnull "$at_stderr" || at_failed=:
2490echo stdout:; tee stdout <"$at_stdout"
2491at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:69"
2492$at_failed && at_fn_log_failure
2493$at_traceon; }
2494
2495{ set +x
2496$as_echo "$at_srcdir/t_application_opts_args.at:70: grep -- '-d given' stdout"
2497at_fn_check_prepare_trace "t_application_opts_args.at:70"
2498( $at_check_trace; grep -- '-d given' stdout
2499) >>"$at_stdout" 2>>"$at_stderr"
2500at_status=$? at_failed=false
2501$at_check_filter
2502at_fn_diff_devnull "$at_stderr" || at_failed=:
2503at_fn_diff_devnull "$at_stdout" || at_failed=:
2504at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:70"
2505$at_failed && at_fn_log_failure
2506$at_traceon; }
2507
2508{ set +x
2509$as_echo "$at_srcdir/t_application_opts_args.at:71: \$({
2510    old=\$(pwd)
2511    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2512        cd ..
2513    done
2514    topdir=\$(pwd)
2515    cd \${old}
2516    echo \${topdir}
2517})/bootstrap/h_app_opts_args arg -d"
2518at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:71"
2519( $at_check_trace; $({
2520    old=$(pwd)
2521    while test $(pwd) != '/' -a ! -e ./Makefile; do
2522        cd ..
2523    done
2524    topdir=$(pwd)
2525    cd ${old}
2526    echo ${topdir}
2527})/bootstrap/h_app_opts_args arg -d
2528) >>"$at_stdout" 2>>"$at_stderr"
2529at_status=$? at_failed=false
2530$at_check_filter
2531at_fn_diff_devnull "$at_stderr" || at_failed=:
2532echo stdout:; tee stdout <"$at_stdout"
2533at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:71"
2534$at_failed && at_fn_log_failure
2535$at_traceon; }
2536
2537{ set +x
2538$as_echo "$at_srcdir/t_application_opts_args.at:72: grep -- '-d given' stdout"
2539at_fn_check_prepare_trace "t_application_opts_args.at:72"
2540( $at_check_trace; grep -- '-d given' stdout
2541) >>"$at_stdout" 2>>"$at_stderr"
2542at_status=$? at_failed=false
2543$at_check_filter
2544at_fn_diff_devnull "$at_stderr" || at_failed=:
2545at_fn_diff_devnull "$at_stdout" || at_failed=:
2546at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:72"
2547$at_failed && at_fn_log_failure
2548$at_traceon; }
2549
2550
2551{ set +x
2552$as_echo "$at_srcdir/t_application_opts_args.at:76: \$({
2553    old=\$(pwd)
2554    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2555        cd ..
2556    done
2557    topdir=\$(pwd)
2558    cd \${old}
2559    echo \${topdir}
2560})/bootstrap/h_app_empty -h"
2561at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:76"
2562( $at_check_trace; $({
2563    old=$(pwd)
2564    while test $(pwd) != '/' -a ! -e ./Makefile; do
2565        cd ..
2566    done
2567    topdir=$(pwd)
2568    cd ${old}
2569    echo ${topdir}
2570})/bootstrap/h_app_empty -h
2571) >>"$at_stdout" 2>>"$at_stderr"
2572at_status=$? at_failed=false
2573$at_check_filter
2574at_fn_diff_devnull "$at_stderr" || at_failed=:
2575echo stdout:; tee stdout <"$at_stdout"
2576at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:76"
2577$at_failed && at_fn_log_failure
2578$at_traceon; }
2579
2580{ set +x
2581$as_echo "$at_srcdir/t_application_opts_args.at:77: grep '\\[options\\]\$' stdout"
2582at_fn_check_prepare_dynamic "grep '\\[options\\]$' stdout" "t_application_opts_args.at:77"
2583( $at_check_trace; grep '\[options\]$' stdout
2584) >>"$at_stdout" 2>>"$at_stderr"
2585at_status=$? at_failed=false
2586$at_check_filter
2587at_fn_diff_devnull "$at_stderr" || at_failed=:
2588echo stdout:; cat "$at_stdout"
2589at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:77"
2590$at_failed && at_fn_log_failure
2591$at_traceon; }
2592
2593
2594{ set +x
2595$as_echo "$at_srcdir/t_application_opts_args.at:81: \$({
2596    old=\$(pwd)
2597    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2598        cd ..
2599    done
2600    topdir=\$(pwd)
2601    cd \${old}
2602    echo \${topdir}
2603})/bootstrap/h_app_opts_args -h"
2604at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:81"
2605( $at_check_trace; $({
2606    old=$(pwd)
2607    while test $(pwd) != '/' -a ! -e ./Makefile; do
2608        cd ..
2609    done
2610    topdir=$(pwd)
2611    cd ${old}
2612    echo ${topdir}
2613})/bootstrap/h_app_opts_args -h
2614) >>"$at_stdout" 2>>"$at_stderr"
2615at_status=$? at_failed=false
2616$at_check_filter
2617at_fn_diff_devnull "$at_stderr" || at_failed=:
2618echo stdout:; tee stdout <"$at_stdout"
2619at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:81"
2620$at_failed && at_fn_log_failure
2621$at_traceon; }
2622
2623{ set +x
2624$as_echo "$at_srcdir/t_application_opts_args.at:82: grep '\\[options\\] <arg1> <arg2>' stdout"
2625at_fn_check_prepare_trace "t_application_opts_args.at:82"
2626( $at_check_trace; grep '\[options\] <arg1> <arg2>' stdout
2627) >>"$at_stdout" 2>>"$at_stderr"
2628at_status=$? at_failed=false
2629$at_check_filter
2630at_fn_diff_devnull "$at_stderr" || at_failed=:
2631echo stdout:; cat "$at_stdout"
2632at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:82"
2633$at_failed && at_fn_log_failure
2634$at_traceon; }
2635
2636
2637  set +x
2638  $at_times_p && times >"$at_times_file"
2639) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2640read at_status <"$at_status_file"
2641#AT_STOP_1
2642#AT_START_2
2643at_fn_group_banner 2 't_application_help.at:30' \
2644  "application: online help option" "                "
2645at_xfail=no
2646(
2647  $as_echo "2. $at_setup_line: testing $at_desc ..."
2648  $at_traceon
2649
2650
2651{ set +x
2652$as_echo "$at_srcdir/t_application_help.at:32: \$({
2653    old=\$(pwd)
2654    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2655        cd ..
2656    done
2657    topdir=\$(pwd)
2658    cd \${old}
2659    echo \${topdir}
2660})/bootstrap/h_app_empty"
2661at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_help.at:32"
2662( $at_check_trace; $({
2663    old=$(pwd)
2664    while test $(pwd) != '/' -a ! -e ./Makefile; do
2665        cd ..
2666    done
2667    topdir=$(pwd)
2668    cd ${old}
2669    echo ${topdir}
2670})/bootstrap/h_app_empty
2671) >>"$at_stdout" 2>>"$at_stderr"
2672at_status=$? at_failed=false
2673$at_check_filter
2674at_fn_diff_devnull "$at_stderr" || at_failed=:
2675echo stdout:; tee stdout <"$at_stdout"
2676at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:32"
2677$at_failed && at_fn_log_failure
2678$at_traceon; }
2679
2680{ set +x
2681$as_echo "$at_srcdir/t_application_help.at:33: grep 'Available options' stdout"
2682at_fn_check_prepare_trace "t_application_help.at:33"
2683( $at_check_trace; grep 'Available options' stdout
2684) >>"$at_stdout" 2>>"$at_stderr"
2685at_status=$? at_failed=false
2686$at_check_filter
2687at_fn_diff_devnull "$at_stderr" || at_failed=:
2688echo stdout:; cat "$at_stdout"
2689at_fn_check_status 1 $at_status "$at_srcdir/t_application_help.at:33"
2690$at_failed && at_fn_log_failure
2691$at_traceon; }
2692
2693
2694{ set +x
2695$as_echo "$at_srcdir/t_application_help.at:35: \$({
2696    old=\$(pwd)
2697    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2698        cd ..
2699    done
2700    topdir=\$(pwd)
2701    cd \${old}
2702    echo \${topdir}
2703})/bootstrap/h_app_empty -h"
2704at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_help.at:35"
2705( $at_check_trace; $({
2706    old=$(pwd)
2707    while test $(pwd) != '/' -a ! -e ./Makefile; do
2708        cd ..
2709    done
2710    topdir=$(pwd)
2711    cd ${old}
2712    echo ${topdir}
2713})/bootstrap/h_app_empty -h
2714) >>"$at_stdout" 2>>"$at_stderr"
2715at_status=$? at_failed=false
2716$at_check_filter
2717at_fn_diff_devnull "$at_stderr" || at_failed=:
2718echo stdout:; tee stdout <"$at_stdout"
2719at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:35"
2720$at_failed && at_fn_log_failure
2721$at_traceon; }
2722
2723{ set +x
2724$as_echo "$at_srcdir/t_application_help.at:36: grep 'Available options' stdout"
2725at_fn_check_prepare_trace "t_application_help.at:36"
2726( $at_check_trace; grep 'Available options' stdout
2727) >>"$at_stdout" 2>>"$at_stderr"
2728at_status=$? at_failed=false
2729$at_check_filter
2730at_fn_diff_devnull "$at_stderr" || at_failed=:
2731echo stdout:; cat "$at_stdout"
2732at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:36"
2733$at_failed && at_fn_log_failure
2734$at_traceon; }
2735
2736
2737  set +x
2738  $at_times_p && times >"$at_times_file"
2739) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2740read at_status <"$at_status_file"
2741#AT_STOP_2
2742#AT_START_3
2743at_fn_group_banner 3 't_test_program_filter.at:30' \
2744  "test_program: filter test cases by name" "        "
2745at_xfail=no
2746(
2747  $as_echo "3. $at_setup_line: testing $at_desc ..."
2748  $at_traceon
2749
2750
2751for h in tp_basic_c tp_basic_cpp tp_basic_sh; do
2752
2753{ set +x
2754$as_echo "$at_srcdir/t_test_program_filter.at:35: \$({
2755    old=\$(pwd)
2756    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2757        cd ..
2758    done
2759    topdir=\$(pwd)
2760    cd \${old}
2761    echo \${topdir}
2762})/bootstrap/h_\${h} \\
2763                          -s \$({
2764    old=\$(pwd)
2765    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2766        cd ..
2767    done
2768    topdir=\$(pwd)
2769    cd \${old}
2770    echo \${topdir}
2771})/bootstrap invalid"
2772at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_filter.at:35"
2773( $at_check_trace; $({
2774    old=$(pwd)
2775    while test $(pwd) != '/' -a ! -e ./Makefile; do
2776        cd ..
2777    done
2778    topdir=$(pwd)
2779    cd ${old}
2780    echo ${topdir}
2781})/bootstrap/h_${h} \
2782                          -s $({
2783    old=$(pwd)
2784    while test $(pwd) != '/' -a ! -e ./Makefile; do
2785        cd ..
2786    done
2787    topdir=$(pwd)
2788    cd ${old}
2789    echo ${topdir}
2790})/bootstrap invalid
2791) >>"$at_stdout" 2>>"$at_stderr"
2792at_status=$? at_failed=false
2793$at_check_filter
2794echo stderr:; tee stderr <"$at_stderr"
2795at_fn_diff_devnull "$at_stdout" || at_failed=:
2796at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_filter.at:35"
2797$at_failed && at_fn_log_failure
2798$at_traceon; }
2799
2800{ set +x
2801$as_echo "$at_srcdir/t_test_program_filter.at:36: grep \"Unknown test case .invalid'\" stderr"
2802at_fn_check_prepare_trace "t_test_program_filter.at:36"
2803( $at_check_trace; grep "Unknown test case .invalid'" stderr
2804) >>"$at_stdout" 2>>"$at_stderr"
2805at_status=$? at_failed=false
2806$at_check_filter
2807at_fn_diff_devnull "$at_stderr" || at_failed=:
2808echo stdout:; cat "$at_stdout"
2809at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:36"
2810$at_failed && at_fn_log_failure
2811$at_traceon; }
2812
2813
2814{ set +x
2815$as_echo "$at_srcdir/t_test_program_filter.at:40: \$({
2816    old=\$(pwd)
2817    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2818        cd ..
2819    done
2820    topdir=\$(pwd)
2821    cd \${old}
2822    echo \${topdir}
2823})/bootstrap/h_\${h} \\
2824                          -s \$({
2825    old=\$(pwd)
2826    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2827        cd ..
2828    done
2829    topdir=\$(pwd)
2830    cd \${old}
2831    echo \${topdir}
2832})/bootstrap \"*p*\""
2833at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_filter.at:40"
2834( $at_check_trace; $({
2835    old=$(pwd)
2836    while test $(pwd) != '/' -a ! -e ./Makefile; do
2837        cd ..
2838    done
2839    topdir=$(pwd)
2840    cd ${old}
2841    echo ${topdir}
2842})/bootstrap/h_${h} \
2843                          -s $({
2844    old=$(pwd)
2845    while test $(pwd) != '/' -a ! -e ./Makefile; do
2846        cd ..
2847    done
2848    topdir=$(pwd)
2849    cd ${old}
2850    echo ${topdir}
2851})/bootstrap "*p*"
2852) >>"$at_stdout" 2>>"$at_stderr"
2853at_status=$? at_failed=false
2854$at_check_filter
2855echo stderr:; tee stderr <"$at_stderr"
2856at_fn_diff_devnull "$at_stdout" || at_failed=:
2857at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_filter.at:40"
2858$at_failed && at_fn_log_failure
2859$at_traceon; }
2860
2861{ set +x
2862$as_echo "$at_srcdir/t_test_program_filter.at:41: grep \"Unknown test case .\\\\*p\\\\*'\" stderr"
2863at_fn_check_prepare_trace "t_test_program_filter.at:41"
2864( $at_check_trace; grep "Unknown test case .\\*p\\*'" stderr
2865) >>"$at_stdout" 2>>"$at_stderr"
2866at_status=$? at_failed=false
2867$at_check_filter
2868at_fn_diff_devnull "$at_stderr" || at_failed=:
2869echo stdout:; cat "$at_stdout"
2870at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:41"
2871$at_failed && at_fn_log_failure
2872$at_traceon; }
2873
2874
2875cat >expres <<'_ATEOF'
2876passed
2877_ATEOF
2878
2879{ set +x
2880$as_echo "$at_srcdir/t_test_program_filter.at:46: \$({
2881    old=\$(pwd)
2882    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2883        cd ..
2884    done
2885    topdir=\$(pwd)
2886    cd \${old}
2887    echo \${topdir}
2888})/bootstrap/h_\${h} \\
2889                          -s \$({
2890    old=\$(pwd)
2891    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2892        cd ..
2893    done
2894    topdir=\$(pwd)
2895    cd \${old}
2896    echo \${topdir}
2897})/bootstrap -r resout pass"
2898at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_filter.at:46"
2899( $at_check_trace; $({
2900    old=$(pwd)
2901    while test $(pwd) != '/' -a ! -e ./Makefile; do
2902        cd ..
2903    done
2904    topdir=$(pwd)
2905    cd ${old}
2906    echo ${topdir}
2907})/bootstrap/h_${h} \
2908                          -s $({
2909    old=$(pwd)
2910    while test $(pwd) != '/' -a ! -e ./Makefile; do
2911        cd ..
2912    done
2913    topdir=$(pwd)
2914    cd ${old}
2915    echo ${topdir}
2916})/bootstrap -r resout pass
2917) >>"$at_stdout" 2>>"$at_stderr"
2918at_status=$? at_failed=false
2919$at_check_filter
2920echo stderr:; cat "$at_stderr"
2921echo stdout:; cat "$at_stdout"
2922at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:46"
2923$at_failed && at_fn_log_failure
2924$at_traceon; }
2925
2926{ set +x
2927$as_echo "$at_srcdir/t_test_program_filter.at:47: cmp -s resout expres"
2928at_fn_check_prepare_trace "t_test_program_filter.at:47"
2929( $at_check_trace; cmp -s resout expres
2930) >>"$at_stdout" 2>>"$at_stderr"
2931at_status=$? at_failed=false
2932$at_check_filter
2933at_fn_diff_devnull "$at_stderr" || at_failed=:
2934at_fn_diff_devnull "$at_stdout" || at_failed=:
2935at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:47"
2936$at_failed && at_fn_log_failure
2937$at_traceon; }
2938
2939
2940cat >expres <<'_ATEOF'
2941skipped: By design
2942_ATEOF
2943
2944{ set +x
2945$as_echo "$at_srcdir/t_test_program_filter.at:51: \$({
2946    old=\$(pwd)
2947    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2948        cd ..
2949    done
2950    topdir=\$(pwd)
2951    cd \${old}
2952    echo \${topdir}
2953})/bootstrap/h_\${h} \\
2954                          -s \$({
2955    old=\$(pwd)
2956    while test \$(pwd) != '/' -a ! -e ./Makefile; do
2957        cd ..
2958    done
2959    topdir=\$(pwd)
2960    cd \${old}
2961    echo \${topdir}
2962})/bootstrap -r resout skip"
2963at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_filter.at:51"
2964( $at_check_trace; $({
2965    old=$(pwd)
2966    while test $(pwd) != '/' -a ! -e ./Makefile; do
2967        cd ..
2968    done
2969    topdir=$(pwd)
2970    cd ${old}
2971    echo ${topdir}
2972})/bootstrap/h_${h} \
2973                          -s $({
2974    old=$(pwd)
2975    while test $(pwd) != '/' -a ! -e ./Makefile; do
2976        cd ..
2977    done
2978    topdir=$(pwd)
2979    cd ${old}
2980    echo ${topdir}
2981})/bootstrap -r resout skip
2982) >>"$at_stdout" 2>>"$at_stderr"
2983at_status=$? at_failed=false
2984$at_check_filter
2985echo stderr:; cat "$at_stderr"
2986echo stdout:; cat "$at_stdout"
2987at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:51"
2988$at_failed && at_fn_log_failure
2989$at_traceon; }
2990
2991{ set +x
2992$as_echo "$at_srcdir/t_test_program_filter.at:52: cmp -s resout expres"
2993at_fn_check_prepare_trace "t_test_program_filter.at:52"
2994( $at_check_trace; cmp -s resout expres
2995) >>"$at_stdout" 2>>"$at_stderr"
2996at_status=$? at_failed=false
2997$at_check_filter
2998at_fn_diff_devnull "$at_stderr" || at_failed=:
2999at_fn_diff_devnull "$at_stdout" || at_failed=:
3000at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:52"
3001$at_failed && at_fn_log_failure
3002$at_traceon; }
3003
3004
3005cat >expres <<'_ATEOF'
3006failed: On purpose
3007_ATEOF
3008
3009{ set +x
3010$as_echo "$at_srcdir/t_test_program_filter.at:56: \$({
3011    old=\$(pwd)
3012    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3013        cd ..
3014    done
3015    topdir=\$(pwd)
3016    cd \${old}
3017    echo \${topdir}
3018})/bootstrap/h_\${h} \\
3019                          -s \$({
3020    old=\$(pwd)
3021    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3022        cd ..
3023    done
3024    topdir=\$(pwd)
3025    cd \${old}
3026    echo \${topdir}
3027})/bootstrap -r resout fail"
3028at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_filter.at:56"
3029( $at_check_trace; $({
3030    old=$(pwd)
3031    while test $(pwd) != '/' -a ! -e ./Makefile; do
3032        cd ..
3033    done
3034    topdir=$(pwd)
3035    cd ${old}
3036    echo ${topdir}
3037})/bootstrap/h_${h} \
3038                          -s $({
3039    old=$(pwd)
3040    while test $(pwd) != '/' -a ! -e ./Makefile; do
3041        cd ..
3042    done
3043    topdir=$(pwd)
3044    cd ${old}
3045    echo ${topdir}
3046})/bootstrap -r resout fail
3047) >>"$at_stdout" 2>>"$at_stderr"
3048at_status=$? at_failed=false
3049$at_check_filter
3050echo stderr:; cat "$at_stderr"
3051echo stdout:; cat "$at_stdout"
3052at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_filter.at:56"
3053$at_failed && at_fn_log_failure
3054$at_traceon; }
3055
3056{ set +x
3057$as_echo "$at_srcdir/t_test_program_filter.at:57: cmp -s resout expres"
3058at_fn_check_prepare_trace "t_test_program_filter.at:57"
3059( $at_check_trace; cmp -s resout expres
3060) >>"$at_stdout" 2>>"$at_stderr"
3061at_status=$? at_failed=false
3062$at_check_filter
3063at_fn_diff_devnull "$at_stderr" || at_failed=:
3064at_fn_diff_devnull "$at_stdout" || at_failed=:
3065at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_filter.at:57"
3066$at_failed && at_fn_log_failure
3067$at_traceon; }
3068
3069
3070done
3071
3072  set +x
3073  $at_times_p && times >"$at_times_file"
3074) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3075read at_status <"$at_status_file"
3076#AT_STOP_3
3077#AT_START_4
3078at_fn_group_banner 4 't_test_program_run.at:30' \
3079  "test_program: output format and exit codes" "     "
3080at_xfail=no
3081(
3082  $as_echo "4. $at_setup_line: testing $at_desc ..."
3083  $at_traceon
3084
3085
3086for h in tp_basic_c tp_basic_cpp tp_basic_sh; do
3087
3088{ set +x
3089$as_echo "$at_srcdir/t_test_program_run.at:35: \$({
3090    old=\$(pwd)
3091    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3092        cd ..
3093    done
3094    topdir=\$(pwd)
3095    cd \${old}
3096    echo \${topdir}
3097})/bootstrap/h_\${h} \\
3098                          -s \$({
3099    old=\$(pwd)
3100    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3101        cd ..
3102    done
3103    topdir=\$(pwd)
3104    cd \${old}
3105    echo \${topdir}
3106})/bootstrap -r resout pass"
3107at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_run.at:35"
3108( $at_check_trace; $({
3109    old=$(pwd)
3110    while test $(pwd) != '/' -a ! -e ./Makefile; do
3111        cd ..
3112    done
3113    topdir=$(pwd)
3114    cd ${old}
3115    echo ${topdir}
3116})/bootstrap/h_${h} \
3117                          -s $({
3118    old=$(pwd)
3119    while test $(pwd) != '/' -a ! -e ./Makefile; do
3120        cd ..
3121    done
3122    topdir=$(pwd)
3123    cd ${old}
3124    echo ${topdir}
3125})/bootstrap -r resout pass
3126) >>"$at_stdout" 2>>"$at_stderr"
3127at_status=$? at_failed=false
3128$at_check_filter
3129echo stderr:; tee stderr <"$at_stderr"
3130echo stdout:; tee stdout <"$at_stdout"
3131at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:35"
3132$at_failed && at_fn_log_failure
3133$at_traceon; }
3134
3135echo 'passed' >expres <<EOF
3136passed
3137EOF
3138
3139                      { set +x
3140$as_echo "$at_srcdir/t_test_program_run.at:36: diff -u expres resout"
3141at_fn_check_prepare_trace "t_test_program_run.at:36"
3142( $at_check_trace; diff -u expres resout
3143) >>"$at_stdout" 2>>"$at_stderr"
3144at_status=$? at_failed=false
3145$at_check_filter
3146at_fn_diff_devnull "$at_stderr" || at_failed=:
3147at_fn_diff_devnull "$at_stdout" || at_failed=:
3148at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:36"
3149$at_failed && at_fn_log_failure
3150$at_traceon; }
3151
3152
3153{ set +x
3154$as_echo "$at_srcdir/t_test_program_run.at:38: \$({
3155    old=\$(pwd)
3156    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3157        cd ..
3158    done
3159    topdir=\$(pwd)
3160    cd \${old}
3161    echo \${topdir}
3162})/bootstrap/h_\${h} \\
3163                          -s \$({
3164    old=\$(pwd)
3165    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3166        cd ..
3167    done
3168    topdir=\$(pwd)
3169    cd \${old}
3170    echo \${topdir}
3171})/bootstrap -r resout fail"
3172at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_run.at:38"
3173( $at_check_trace; $({
3174    old=$(pwd)
3175    while test $(pwd) != '/' -a ! -e ./Makefile; do
3176        cd ..
3177    done
3178    topdir=$(pwd)
3179    cd ${old}
3180    echo ${topdir}
3181})/bootstrap/h_${h} \
3182                          -s $({
3183    old=$(pwd)
3184    while test $(pwd) != '/' -a ! -e ./Makefile; do
3185        cd ..
3186    done
3187    topdir=$(pwd)
3188    cd ${old}
3189    echo ${topdir}
3190})/bootstrap -r resout fail
3191) >>"$at_stdout" 2>>"$at_stderr"
3192at_status=$? at_failed=false
3193$at_check_filter
3194echo stderr:; tee stderr <"$at_stderr"
3195echo stdout:; tee stdout <"$at_stdout"
3196at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_run.at:38"
3197$at_failed && at_fn_log_failure
3198$at_traceon; }
3199
3200echo 'failed' >expres <<EOF
3201failed
3202EOF
3203          echo "failed: On purpose" >expres
3204                      { set +x
3205$as_echo "$at_srcdir/t_test_program_run.at:39: diff -u expres resout"
3206at_fn_check_prepare_trace "t_test_program_run.at:39"
3207( $at_check_trace; diff -u expres resout
3208) >>"$at_stdout" 2>>"$at_stderr"
3209at_status=$? at_failed=false
3210$at_check_filter
3211at_fn_diff_devnull "$at_stderr" || at_failed=:
3212at_fn_diff_devnull "$at_stdout" || at_failed=:
3213at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:39"
3214$at_failed && at_fn_log_failure
3215$at_traceon; }
3216
3217
3218{ set +x
3219$as_echo "$at_srcdir/t_test_program_run.at:41: \$({
3220    old=\$(pwd)
3221    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3222        cd ..
3223    done
3224    topdir=\$(pwd)
3225    cd \${old}
3226    echo \${topdir}
3227})/bootstrap/h_\${h} \\
3228                          -s \$({
3229    old=\$(pwd)
3230    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3231        cd ..
3232    done
3233    topdir=\$(pwd)
3234    cd \${old}
3235    echo \${topdir}
3236})/bootstrap -r resout skip"
3237at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_run.at:41"
3238( $at_check_trace; $({
3239    old=$(pwd)
3240    while test $(pwd) != '/' -a ! -e ./Makefile; do
3241        cd ..
3242    done
3243    topdir=$(pwd)
3244    cd ${old}
3245    echo ${topdir}
3246})/bootstrap/h_${h} \
3247                          -s $({
3248    old=$(pwd)
3249    while test $(pwd) != '/' -a ! -e ./Makefile; do
3250        cd ..
3251    done
3252    topdir=$(pwd)
3253    cd ${old}
3254    echo ${topdir}
3255})/bootstrap -r resout skip
3256) >>"$at_stdout" 2>>"$at_stderr"
3257at_status=$? at_failed=false
3258$at_check_filter
3259echo stderr:; tee stderr <"$at_stderr"
3260echo stdout:; tee stdout <"$at_stdout"
3261at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:41"
3262$at_failed && at_fn_log_failure
3263$at_traceon; }
3264
3265echo 'skipped' >expres <<EOF
3266skipped
3267EOF
3268          echo "skipped: By design" >expres
3269                      { set +x
3270$as_echo "$at_srcdir/t_test_program_run.at:42: diff -u expres resout"
3271at_fn_check_prepare_trace "t_test_program_run.at:42"
3272( $at_check_trace; diff -u expres resout
3273) >>"$at_stdout" 2>>"$at_stderr"
3274at_status=$? at_failed=false
3275$at_check_filter
3276at_fn_diff_devnull "$at_stderr" || at_failed=:
3277at_fn_diff_devnull "$at_stdout" || at_failed=:
3278at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:42"
3279$at_failed && at_fn_log_failure
3280$at_traceon; }
3281
3282
3283{ set +x
3284$as_echo "$at_srcdir/t_test_program_run.at:44: \$({
3285    old=\$(pwd)
3286    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3287        cd ..
3288    done
3289    topdir=\$(pwd)
3290    cd \${old}
3291    echo \${topdir}
3292})/bootstrap/h_\${h} \\
3293                          -s \$({
3294    old=\$(pwd)
3295    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3296        cd ..
3297    done
3298    topdir=\$(pwd)
3299    cd \${old}
3300    echo \${topdir}
3301})/bootstrap -r resout default"
3302at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_run.at:44"
3303( $at_check_trace; $({
3304    old=$(pwd)
3305    while test $(pwd) != '/' -a ! -e ./Makefile; do
3306        cd ..
3307    done
3308    topdir=$(pwd)
3309    cd ${old}
3310    echo ${topdir}
3311})/bootstrap/h_${h} \
3312                          -s $({
3313    old=$(pwd)
3314    while test $(pwd) != '/' -a ! -e ./Makefile; do
3315        cd ..
3316    done
3317    topdir=$(pwd)
3318    cd ${old}
3319    echo ${topdir}
3320})/bootstrap -r resout default
3321) >>"$at_stdout" 2>>"$at_stderr"
3322at_status=$? at_failed=false
3323$at_check_filter
3324echo stderr:; tee stderr <"$at_stderr"
3325echo stdout:; tee stdout <"$at_stdout"
3326at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:44"
3327$at_failed && at_fn_log_failure
3328$at_traceon; }
3329
3330echo 'passed' >expres <<EOF
3331passed
3332EOF
3333
3334                      { set +x
3335$as_echo "$at_srcdir/t_test_program_run.at:45: diff -u expres resout"
3336at_fn_check_prepare_trace "t_test_program_run.at:45"
3337( $at_check_trace; diff -u expres resout
3338) >>"$at_stdout" 2>>"$at_stderr"
3339at_status=$? at_failed=false
3340$at_check_filter
3341at_fn_diff_devnull "$at_stderr" || at_failed=:
3342at_fn_diff_devnull "$at_stdout" || at_failed=:
3343at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_run.at:45"
3344$at_failed && at_fn_log_failure
3345$at_traceon; }
3346
3347
3348done
3349
3350  set +x
3351  $at_times_p && times >"$at_times_file"
3352) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3353read at_status <"$at_status_file"
3354#AT_STOP_4
3355#AT_START_5
3356at_fn_group_banner 5 't_test_program_list.at:30' \
3357  "test_program: list test cases" "                  "
3358at_xfail=no
3359(
3360  $as_echo "5. $at_setup_line: testing $at_desc ..."
3361  $at_traceon
3362
3363
3364for h in tp_basic_c tp_basic_cpp tp_basic_sh; do
3365
3366cat >expout <<'_ATEOF'
3367Content-Type: application/X-atf-tp; version="1"
3368
3369ident: pass
3370descr: An empty test case that always passes
3371
3372ident: fail
3373descr: An empty test case that always fails
3374
3375ident: skip
3376descr: An empty test case that is always skipped
3377
3378ident: default
3379descr: A test case that passes without explicitly stating it
3380_ATEOF
3381
3382
3383{ set +x
3384$as_echo "$at_srcdir/t_test_program_list.at:49: \$({
3385    old=\$(pwd)
3386    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3387        cd ..
3388    done
3389    topdir=\$(pwd)
3390    cd \${old}
3391    echo \${topdir}
3392})/bootstrap/h_\${h} \\
3393                          -s \$({
3394    old=\$(pwd)
3395    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3396        cd ..
3397    done
3398    topdir=\$(pwd)
3399    cd \${old}
3400    echo \${topdir}
3401})/bootstrap -l"
3402at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_list.at:49"
3403( $at_check_trace; $({
3404    old=$(pwd)
3405    while test $(pwd) != '/' -a ! -e ./Makefile; do
3406        cd ..
3407    done
3408    topdir=$(pwd)
3409    cd ${old}
3410    echo ${topdir}
3411})/bootstrap/h_${h} \
3412                          -s $({
3413    old=$(pwd)
3414    while test $(pwd) != '/' -a ! -e ./Makefile; do
3415        cd ..
3416    done
3417    topdir=$(pwd)
3418    cd ${old}
3419    echo ${topdir}
3420})/bootstrap -l
3421) >>"$at_stdout" 2>>"$at_stderr"
3422at_status=$? at_failed=false
3423$at_check_filter
3424at_fn_diff_devnull "$at_stderr" || at_failed=:
3425$at_diff expout "$at_stdout" || at_failed=:
3426at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_list.at:49"
3427$at_failed && at_fn_log_failure
3428$at_traceon; }
3429
3430
3431{ set +x
3432$as_echo "$at_srcdir/t_test_program_list.at:51: \$({
3433    old=\$(pwd)
3434    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3435        cd ..
3436    done
3437    topdir=\$(pwd)
3438    cd \${old}
3439    echo \${topdir}
3440})/bootstrap/h_\${h} \\
3441                          -s \$({
3442    old=\$(pwd)
3443    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3444        cd ..
3445    done
3446    topdir=\$(pwd)
3447    cd \${old}
3448    echo \${topdir}
3449})/bootstrap -l pass"
3450at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_list.at:51"
3451( $at_check_trace; $({
3452    old=$(pwd)
3453    while test $(pwd) != '/' -a ! -e ./Makefile; do
3454        cd ..
3455    done
3456    topdir=$(pwd)
3457    cd ${old}
3458    echo ${topdir}
3459})/bootstrap/h_${h} \
3460                          -s $({
3461    old=$(pwd)
3462    while test $(pwd) != '/' -a ! -e ./Makefile; do
3463        cd ..
3464    done
3465    topdir=$(pwd)
3466    cd ${old}
3467    echo ${topdir}
3468})/bootstrap -l pass
3469) >>"$at_stdout" 2>>"$at_stderr"
3470at_status=$? at_failed=false
3471$at_check_filter
3472echo stderr:; tee stderr <"$at_stderr"
3473at_fn_diff_devnull "$at_stdout" || at_failed=:
3474at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_list.at:51"
3475$at_failed && at_fn_log_failure
3476$at_traceon; }
3477
3478{ set +x
3479$as_echo "$at_srcdir/t_test_program_list.at:52: grep 'Cannot provide test case names with -l' stderr"
3480at_fn_check_prepare_trace "t_test_program_list.at:52"
3481( $at_check_trace; grep 'Cannot provide test case names with -l' stderr
3482) >>"$at_stdout" 2>>"$at_stderr"
3483at_status=$? at_failed=false
3484$at_check_filter
3485at_fn_diff_devnull "$at_stderr" || at_failed=:
3486echo stdout:; cat "$at_stdout"
3487at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_list.at:52"
3488$at_failed && at_fn_log_failure
3489$at_traceon; }
3490
3491
3492{ set +x
3493$as_echo "$at_srcdir/t_test_program_list.at:55: \$({
3494    old=\$(pwd)
3495    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3496        cd ..
3497    done
3498    topdir=\$(pwd)
3499    cd \${old}
3500    echo \${topdir}
3501})/bootstrap/h_\${h} \\
3502                          -s \$({
3503    old=\$(pwd)
3504    while test \$(pwd) != '/' -a ! -e ./Makefile; do
3505        cd ..
3506    done
3507    topdir=\$(pwd)
3508    cd \${old}
3509    echo \${topdir}
3510})/bootstrap -l pass fail"
3511at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_list.at:55"
3512( $at_check_trace; $({
3513    old=$(pwd)
3514    while test $(pwd) != '/' -a ! -e ./Makefile; do
3515        cd ..
3516    done
3517    topdir=$(pwd)
3518    cd ${old}
3519    echo ${topdir}
3520})/bootstrap/h_${h} \
3521                          -s $({
3522    old=$(pwd)
3523    while test $(pwd) != '/' -a ! -e ./Makefile; do
3524        cd ..
3525    done
3526    topdir=$(pwd)
3527    cd ${old}
3528    echo ${topdir}
3529})/bootstrap -l pass fail
3530) >>"$at_stdout" 2>>"$at_stderr"
3531at_status=$? at_failed=false
3532$at_check_filter
3533echo stderr:; tee stderr <"$at_stderr"
3534at_fn_diff_devnull "$at_stdout" || at_failed=:
3535at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_list.at:55"
3536$at_failed && at_fn_log_failure
3537$at_traceon; }
3538
3539{ set +x
3540$as_echo "$at_srcdir/t_test_program_list.at:56: grep 'Cannot provide test case names with -l' stderr"
3541at_fn_check_prepare_trace "t_test_program_list.at:56"
3542( $at_check_trace; grep 'Cannot provide test case names with -l' stderr
3543) >>"$at_stdout" 2>>"$at_stderr"
3544at_status=$? at_failed=false
3545$at_check_filter
3546at_fn_diff_devnull "$at_stderr" || at_failed=:
3547echo stdout:; cat "$at_stdout"
3548at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_list.at:56"
3549$at_failed && at_fn_log_failure
3550$at_traceon; }
3551
3552
3553done
3554
3555  set +x
3556  $at_times_p && times >"$at_times_file"
3557) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3558read at_status <"$at_status_file"
3559#AT_STOP_5
3560#AT_START_6
3561at_fn_group_banner 6 't_atf_config.at:30' \
3562  "atf-config: querying of build-time variables" "   "
3563at_xfail=no
3564(
3565  $as_echo "6. $at_setup_line: testing $at_desc ..."
3566  $at_traceon
3567
3568
3569
3570all_vars="atf_arch \
3571          atf_build_cc \
3572          atf_build_cflags \
3573          atf_build_cpp \
3574          atf_build_cppflags \
3575          atf_build_cxx \
3576          atf_build_cxxflags \
3577          atf_confdir \
3578          atf_includedir \
3579          atf_libdir \
3580          atf_libexecdir \
3581          atf_machine \
3582          atf_pkgdatadir \
3583          atf_shell \
3584          atf_workdir"
3585all_vars_no=15
3586
3587{ set +x
3588$as_echo "$at_srcdir/t_atf_config.at:51: atf-config"
3589at_fn_check_prepare_trace "t_atf_config.at:51"
3590( $at_check_trace; atf-config
3591) >>"$at_stdout" 2>>"$at_stderr"
3592at_status=$? at_failed=false
3593$at_check_filter
3594at_fn_diff_devnull "$at_stderr" || at_failed=:
3595echo stdout:; tee stdout <"$at_stdout"
3596at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:51"
3597$at_failed && at_fn_log_failure
3598$at_traceon; }
3599
3600{ set +x
3601$as_echo "$at_srcdir/t_atf_config.at:52: test $(wc -l stdout | awk '{ print $1 }') = \${all_vars_no}"
3602at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:52"
3603( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = ${all_vars_no}
3604) >>"$at_stdout" 2>>"$at_stderr"
3605at_status=$? at_failed=false
3606$at_check_filter
3607at_fn_diff_devnull "$at_stderr" || at_failed=:
3608at_fn_diff_devnull "$at_stdout" || at_failed=:
3609at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:52"
3610$at_failed && at_fn_log_failure
3611$at_traceon; }
3612
3613for v in ${all_vars}; do
3614    { set +x
3615$as_echo "$at_srcdir/t_atf_config.at:54: grep \"\${v}\" stdout"
3616at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:54"
3617( $at_check_trace; grep "${v}" stdout
3618) >>"$at_stdout" 2>>"$at_stderr"
3619at_status=$? at_failed=false
3620$at_check_filter
3621at_fn_diff_devnull "$at_stderr" || at_failed=:
3622echo stdout:; cat "$at_stdout"
3623at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:54"
3624$at_failed && at_fn_log_failure
3625$at_traceon; }
3626
3627done
3628
3629for v in ${all_vars}; do
3630    { set +x
3631$as_echo "$at_srcdir/t_atf_config.at:59: atf-config \${v}"
3632at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:59"
3633( $at_check_trace; atf-config ${v}
3634) >>"$at_stdout" 2>>"$at_stderr"
3635at_status=$? at_failed=false
3636$at_check_filter
3637at_fn_diff_devnull "$at_stderr" || at_failed=:
3638echo stdout:; tee stdout <"$at_stdout"
3639at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:59"
3640$at_failed && at_fn_log_failure
3641$at_traceon; }
3642
3643    { set +x
3644$as_echo "$at_srcdir/t_atf_config.at:60: test $(wc -l stdout | awk '{ print $1 }') = 1"
3645at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:60"
3646( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = 1
3647) >>"$at_stdout" 2>>"$at_stderr"
3648at_status=$? at_failed=false
3649$at_check_filter
3650at_fn_diff_devnull "$at_stderr" || at_failed=:
3651at_fn_diff_devnull "$at_stdout" || at_failed=:
3652at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:60"
3653$at_failed && at_fn_log_failure
3654$at_traceon; }
3655
3656    { set +x
3657$as_echo "$at_srcdir/t_atf_config.at:61: grep \"\${v}\" stdout"
3658at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:61"
3659( $at_check_trace; grep "${v}" stdout
3660) >>"$at_stdout" 2>>"$at_stderr"
3661at_status=$? at_failed=false
3662$at_check_filter
3663at_fn_diff_devnull "$at_stderr" || at_failed=:
3664echo stdout:; cat "$at_stdout"
3665at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:61"
3666$at_failed && at_fn_log_failure
3667$at_traceon; }
3668
3669    { set +x
3670$as_echo "$at_srcdir/t_atf_config.at:62: cut -d ' ' -f 3- stdout"
3671at_fn_check_prepare_trace "t_atf_config.at:62"
3672( $at_check_trace; cut -d ' ' -f 3- stdout
3673) >>"$at_stdout" 2>>"$at_stderr"
3674at_status=$? at_failed=false
3675$at_check_filter
3676at_fn_diff_devnull "$at_stderr" || at_failed=:
3677echo stdout:; tee stdout <"$at_stdout"
3678at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:62"
3679$at_failed && at_fn_log_failure
3680$at_traceon; }
3681
3682    { set +x
3683$as_echo "$at_srcdir/t_atf_config.at:63: mv stdout expout"
3684at_fn_check_prepare_trace "t_atf_config.at:63"
3685( $at_check_trace; mv stdout expout
3686) >>"$at_stdout" 2>>"$at_stderr"
3687at_status=$? at_failed=false
3688$at_check_filter
3689at_fn_diff_devnull "$at_stderr" || at_failed=:
3690at_fn_diff_devnull "$at_stdout" || at_failed=:
3691at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:63"
3692$at_failed && at_fn_log_failure
3693$at_traceon; }
3694
3695    { set +x
3696$as_echo "$at_srcdir/t_atf_config.at:64: atf-config -t \${v}"
3697at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:64"
3698( $at_check_trace; atf-config -t ${v}
3699) >>"$at_stdout" 2>>"$at_stderr"
3700at_status=$? at_failed=false
3701$at_check_filter
3702at_fn_diff_devnull "$at_stderr" || at_failed=:
3703$at_diff expout "$at_stdout" || at_failed=:
3704at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:64"
3705$at_failed && at_fn_log_failure
3706$at_traceon; }
3707
3708done
3709
3710{ set +x
3711$as_echo "$at_srcdir/t_atf_config.at:68: atf-config atf_libexecdir atf_pkgdatadir"
3712at_fn_check_prepare_trace "t_atf_config.at:68"
3713( $at_check_trace; atf-config atf_libexecdir atf_pkgdatadir
3714) >>"$at_stdout" 2>>"$at_stderr"
3715at_status=$? at_failed=false
3716$at_check_filter
3717at_fn_diff_devnull "$at_stderr" || at_failed=:
3718echo stdout:; tee stdout <"$at_stdout"
3719at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:68"
3720$at_failed && at_fn_log_failure
3721$at_traceon; }
3722
3723{ set +x
3724$as_echo "$at_srcdir/t_atf_config.at:69: grep 'atf_libexecdir' stdout"
3725at_fn_check_prepare_trace "t_atf_config.at:69"
3726( $at_check_trace; grep 'atf_libexecdir' stdout
3727) >>"$at_stdout" 2>>"$at_stderr"
3728at_status=$? at_failed=false
3729$at_check_filter
3730at_fn_diff_devnull "$at_stderr" || at_failed=:
3731echo stdout:; cat "$at_stdout"
3732at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:69"
3733$at_failed && at_fn_log_failure
3734$at_traceon; }
3735
3736{ set +x
3737$as_echo "$at_srcdir/t_atf_config.at:70: grep 'atf_pkgdatadir' stdout"
3738at_fn_check_prepare_trace "t_atf_config.at:70"
3739( $at_check_trace; grep 'atf_pkgdatadir' stdout
3740) >>"$at_stdout" 2>>"$at_stderr"
3741at_status=$? at_failed=false
3742$at_check_filter
3743at_fn_diff_devnull "$at_stderr" || at_failed=:
3744echo stdout:; cat "$at_stdout"
3745at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:70"
3746$at_failed && at_fn_log_failure
3747$at_traceon; }
3748
3749{ set +x
3750$as_echo "$at_srcdir/t_atf_config.at:71: test $(wc -l stdout | awk '{ print $1 }') = 2"
3751at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:71"
3752( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = 2
3753) >>"$at_stdout" 2>>"$at_stderr"
3754at_status=$? at_failed=false
3755$at_check_filter
3756at_fn_diff_devnull "$at_stderr" || at_failed=:
3757echo stdout:; cat "$at_stdout"
3758at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:71"
3759$at_failed && at_fn_log_failure
3760$at_traceon; }
3761
3762
3763{ set +x
3764$as_echo "$at_srcdir/t_atf_config.at:74: atf-config non_existent"
3765at_fn_check_prepare_trace "t_atf_config.at:74"
3766( $at_check_trace; atf-config non_existent
3767) >>"$at_stdout" 2>>"$at_stderr"
3768at_status=$? at_failed=false
3769$at_check_filter
3770echo stderr:; tee stderr <"$at_stderr"
3771at_fn_diff_devnull "$at_stdout" || at_failed=:
3772at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:74"
3773$at_failed && at_fn_log_failure
3774$at_traceon; }
3775
3776{ set +x
3777$as_echo "$at_srcdir/t_atf_config.at:75: grep 'Unknown variable.*non_existent' stderr"
3778at_fn_check_prepare_trace "t_atf_config.at:75"
3779( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
3780) >>"$at_stdout" 2>>"$at_stderr"
3781at_status=$? at_failed=false
3782$at_check_filter
3783at_fn_diff_devnull "$at_stderr" || at_failed=:
3784echo stdout:; cat "$at_stdout"
3785at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:75"
3786$at_failed && at_fn_log_failure
3787$at_traceon; }
3788
3789
3790for v in ${all_vars}; do
3791    { set +x
3792$as_echo "$at_srcdir/t_atf_config.at:79: atf-config \${v} non_existent"
3793at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:79"
3794( $at_check_trace; atf-config ${v} non_existent
3795) >>"$at_stdout" 2>>"$at_stderr"
3796at_status=$? at_failed=false
3797$at_check_filter
3798echo stderr:; tee stderr <"$at_stderr"
3799at_fn_diff_devnull "$at_stdout" || at_failed=:
3800at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:79"
3801$at_failed && at_fn_log_failure
3802$at_traceon; }
3803
3804    { set +x
3805$as_echo "$at_srcdir/t_atf_config.at:80: grep 'Unknown variable.*non_existent' stderr"
3806at_fn_check_prepare_trace "t_atf_config.at:80"
3807( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
3808) >>"$at_stdout" 2>>"$at_stderr"
3809at_status=$? at_failed=false
3810$at_check_filter
3811at_fn_diff_devnull "$at_stderr" || at_failed=:
3812echo stdout:; cat "$at_stdout"
3813at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:80"
3814$at_failed && at_fn_log_failure
3815$at_traceon; }
3816
3817    { set +x
3818$as_echo "$at_srcdir/t_atf_config.at:82: atf-config non_existent \${v}"
3819at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:82"
3820( $at_check_trace; atf-config non_existent ${v}
3821) >>"$at_stdout" 2>>"$at_stderr"
3822at_status=$? at_failed=false
3823$at_check_filter
3824echo stderr:; tee stderr <"$at_stderr"
3825at_fn_diff_devnull "$at_stdout" || at_failed=:
3826at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:82"
3827$at_failed && at_fn_log_failure
3828$at_traceon; }
3829
3830    { set +x
3831$as_echo "$at_srcdir/t_atf_config.at:83: grep 'Unknown variable.*non_existent' stderr"
3832at_fn_check_prepare_trace "t_atf_config.at:83"
3833( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
3834) >>"$at_stdout" 2>>"$at_stderr"
3835at_status=$? at_failed=false
3836$at_check_filter
3837at_fn_diff_devnull "$at_stderr" || at_failed=:
3838echo stdout:; cat "$at_stdout"
3839at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:83"
3840$at_failed && at_fn_log_failure
3841$at_traceon; }
3842
3843done
3844
3845for v in ${all_vars}; do
3846    V=$(echo ${v} | tr '[a-z]' '[A-Z]')
3847    { set +x
3848$as_echo "$at_srcdir/t_atf_config.at:90: env \${V}=testval atf-config"
3849at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:90"
3850( $at_check_trace; env ${V}=testval atf-config
3851) >>"$at_stdout" 2>>"$at_stderr"
3852at_status=$? at_failed=false
3853$at_check_filter
3854at_fn_diff_devnull "$at_stderr" || at_failed=:
3855echo stdout:; tee stdout <"$at_stdout"
3856at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:90"
3857$at_failed && at_fn_log_failure
3858$at_traceon; }
3859
3860    { set +x
3861$as_echo "$at_srcdir/t_atf_config.at:91: mv stdout all"
3862at_fn_check_prepare_trace "t_atf_config.at:91"
3863( $at_check_trace; mv stdout all
3864) >>"$at_stdout" 2>>"$at_stderr"
3865at_status=$? at_failed=false
3866$at_check_filter
3867at_fn_diff_devnull "$at_stderr" || at_failed=:
3868at_fn_diff_devnull "$at_stdout" || at_failed=:
3869at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:91"
3870$at_failed && at_fn_log_failure
3871$at_traceon; }
3872
3873
3874    { set +x
3875$as_echo "$at_srcdir/t_atf_config.at:93: grep \"^\${v} : \" all"
3876at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:93"
3877( $at_check_trace; grep "^${v} : " all
3878) >>"$at_stdout" 2>>"$at_stderr"
3879at_status=$? at_failed=false
3880$at_check_filter
3881at_fn_diff_devnull "$at_stderr" || at_failed=:
3882echo stdout:; tee stdout <"$at_stdout"
3883at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:93"
3884$at_failed && at_fn_log_failure
3885$at_traceon; }
3886
3887    { set +x
3888$as_echo "$at_srcdir/t_atf_config.at:94: mv stdout affected"
3889at_fn_check_prepare_trace "t_atf_config.at:94"
3890( $at_check_trace; mv stdout affected
3891) >>"$at_stdout" 2>>"$at_stderr"
3892at_status=$? at_failed=false
3893$at_check_filter
3894at_fn_diff_devnull "$at_stderr" || at_failed=:
3895at_fn_diff_devnull "$at_stdout" || at_failed=:
3896at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:94"
3897$at_failed && at_fn_log_failure
3898$at_traceon; }
3899
3900    { set +x
3901$as_echo "$at_srcdir/t_atf_config.at:95: grep -v \"^\${v} : \" all"
3902at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:95"
3903( $at_check_trace; grep -v "^${v} : " all
3904) >>"$at_stdout" 2>>"$at_stderr"
3905at_status=$? at_failed=false
3906$at_check_filter
3907at_fn_diff_devnull "$at_stderr" || at_failed=:
3908echo stdout:; tee stdout <"$at_stdout"
3909at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:95"
3910$at_failed && at_fn_log_failure
3911$at_traceon; }
3912
3913    { set +x
3914$as_echo "$at_srcdir/t_atf_config.at:96: mv stdout unaffected"
3915at_fn_check_prepare_trace "t_atf_config.at:96"
3916( $at_check_trace; mv stdout unaffected
3917) >>"$at_stdout" 2>>"$at_stderr"
3918at_status=$? at_failed=false
3919$at_check_filter
3920at_fn_diff_devnull "$at_stderr" || at_failed=:
3921at_fn_diff_devnull "$at_stdout" || at_failed=:
3922at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:96"
3923$at_failed && at_fn_log_failure
3924$at_traceon; }
3925
3926
3927    { set +x
3928$as_echo "$at_srcdir/t_atf_config.at:98: test $(wc -l affected | awk '{ print $1 }') = 1"
3929at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:98"
3930( $at_check_trace; test $(wc -l affected | awk '{ print $1 }') = 1
3931) >>"$at_stdout" 2>>"$at_stderr"
3932at_status=$? at_failed=false
3933$at_check_filter
3934at_fn_diff_devnull "$at_stderr" || at_failed=:
3935echo stdout:; cat "$at_stdout"
3936at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:98"
3937$at_failed && at_fn_log_failure
3938$at_traceon; }
3939
3940    { set +x
3941$as_echo "$at_srcdir/t_atf_config.at:99: test $(wc -l unaffected | awk '{ print $1 }') = \$((\${all_vars_no} - 1))"
3942at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_config.at:99"
3943( $at_check_trace; test $(wc -l unaffected | awk '{ print $1 }') = $((${all_vars_no} - 1))
3944) >>"$at_stdout" 2>>"$at_stderr"
3945at_status=$? at_failed=false
3946$at_check_filter
3947at_fn_diff_devnull "$at_stderr" || at_failed=:
3948echo stdout:; cat "$at_stdout"
3949at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:99"
3950$at_failed && at_fn_log_failure
3951$at_traceon; }
3952
3953
3954    { set +x
3955$as_echo "$at_srcdir/t_atf_config.at:102: grep \"^\${v} : testval\$\" affected"
3956at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:102"
3957( $at_check_trace; grep "^${v} : testval$" affected
3958) >>"$at_stdout" 2>>"$at_stderr"
3959at_status=$? at_failed=false
3960$at_check_filter
3961at_fn_diff_devnull "$at_stderr" || at_failed=:
3962echo stdout:; cat "$at_stdout"
3963at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:102"
3964$at_failed && at_fn_log_failure
3965$at_traceon; }
3966
3967    { set +x
3968$as_echo "$at_srcdir/t_atf_config.at:103: grep ' : testval\$' unaffected"
3969at_fn_check_prepare_dynamic "grep ' : testval$' unaffected" "t_atf_config.at:103"
3970( $at_check_trace; grep ' : testval$' unaffected
3971) >>"$at_stdout" 2>>"$at_stderr"
3972at_status=$? at_failed=false
3973$at_check_filter
3974at_fn_diff_devnull "$at_stderr" || at_failed=:
3975at_fn_diff_devnull "$at_stdout" || at_failed=:
3976at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:103"
3977$at_failed && at_fn_log_failure
3978$at_traceon; }
3979
3980done
3981
3982  set +x
3983  $at_times_p && times >"$at_times_file"
3984) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3985read at_status <"$at_status_file"
3986#AT_STOP_6
3987#AT_START_7
3988at_fn_group_banner 7 't_atf_run.at:30' \
3989  "atf-run: execution of tests" "                    "
3990at_xfail=no
3991(
3992  $as_echo "7. $at_setup_line: testing $at_desc ..."
3993  $at_traceon
3994
3995
3996
3997
3998
3999
4000
4001{ set +x
4002$as_echo "$at_srcdir/t_atf_run.at:47: mkdir top"
4003at_fn_check_prepare_trace "t_atf_run.at:47"
4004( $at_check_trace; mkdir top
4005) >>"$at_stdout" 2>>"$at_stderr"
4006at_status=$? at_failed=false
4007$at_check_filter
4008at_fn_diff_devnull "$at_stderr" || at_failed=:
4009at_fn_diff_devnull "$at_stdout" || at_failed=:
4010at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:47"
4011$at_failed && at_fn_log_failure
4012$at_traceon; }
4013
4014{ set +x
4015$as_echo "$at_srcdir/t_atf_run.at:48: mkdir top/dir1"
4016at_fn_check_prepare_trace "t_atf_run.at:48"
4017( $at_check_trace; mkdir top/dir1
4018) >>"$at_stdout" 2>>"$at_stderr"
4019at_status=$? at_failed=false
4020$at_check_filter
4021at_fn_diff_devnull "$at_stderr" || at_failed=:
4022at_fn_diff_devnull "$at_stdout" || at_failed=:
4023at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:48"
4024$at_failed && at_fn_log_failure
4025$at_traceon; }
4026
4027{ set +x
4028$as_echo "$at_srcdir/t_atf_run.at:49: mkdir top/dir2"
4029at_fn_check_prepare_trace "t_atf_run.at:49"
4030( $at_check_trace; mkdir top/dir2
4031) >>"$at_stdout" 2>>"$at_stderr"
4032at_status=$? at_failed=false
4033$at_check_filter
4034at_fn_diff_devnull "$at_stderr" || at_failed=:
4035at_fn_diff_devnull "$at_stdout" || at_failed=:
4036at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:49"
4037$at_failed && at_fn_log_failure
4038$at_traceon; }
4039
4040cat >top/Atffile <<'_ATEOF'
4041Content-Type: application/X-atf-atffile; version="1"
4042
4043prop: test-suite = atf
4044
4045tp: dir1
4046tp: dir2
4047tp: test1
4048tp: test2
4049_ATEOF
4050
4051cat >top/dir1/Atffile <<'_ATEOF'
4052Content-Type: application/X-atf-atffile; version="1"
4053
4054prop: test-suite = atf
4055
4056tp: test3
4057_ATEOF
4058
4059cat >top/dir2/Atffile <<'_ATEOF'
4060Content-Type: application/X-atf-atffile; version="1"
4061
4062prop: test-suite = atf
4063
4064tp: test4
4065tp: test5
4066_ATEOF
4067
4068{ set +x
4069$as_echo "$at_srcdir/t_atf_run.at:75: sed -e 's,@TC_NAME@,tc_1,g' <\$({
4070    old=\$(pwd)
4071    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4072        cd ..
4073    done
4074    topdir=\$(pwd)
4075    cd \${old}
4076    echo \${topdir}
4077})/bootstrap/h_tp_pass"
4078at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:75"
4079( $at_check_trace; sed -e 's,@TC_NAME@,tc_1,g' <$({
4080    old=$(pwd)
4081    while test $(pwd) != '/' -a ! -e ./Makefile; do
4082        cd ..
4083    done
4084    topdir=$(pwd)
4085    cd ${old}
4086    echo ${topdir}
4087})/bootstrap/h_tp_pass
4088) >>"$at_stdout" 2>>"$at_stderr"
4089at_status=$? at_failed=false
4090$at_check_filter
4091at_fn_diff_devnull "$at_stderr" || at_failed=:
4092echo stdout:; tee stdout <"$at_stdout"
4093at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
4094$at_failed && at_fn_log_failure
4095$at_traceon; }
4096
4097{ set +x
4098$as_echo "$at_srcdir/t_atf_run.at:75: mv stdout top/test1"
4099at_fn_check_prepare_trace "t_atf_run.at:75"
4100( $at_check_trace; mv stdout top/test1
4101) >>"$at_stdout" 2>>"$at_stderr"
4102at_status=$? at_failed=false
4103$at_check_filter
4104at_fn_diff_devnull "$at_stderr" || at_failed=:
4105at_fn_diff_devnull "$at_stdout" || at_failed=:
4106at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
4107$at_failed && at_fn_log_failure
4108$at_traceon; }
4109
4110{ set +x
4111$as_echo "$at_srcdir/t_atf_run.at:75: chmod +x top/test1"
4112at_fn_check_prepare_trace "t_atf_run.at:75"
4113( $at_check_trace; chmod +x top/test1
4114) >>"$at_stdout" 2>>"$at_stderr"
4115at_status=$? at_failed=false
4116$at_check_filter
4117at_fn_diff_devnull "$at_stderr" || at_failed=:
4118at_fn_diff_devnull "$at_stdout" || at_failed=:
4119at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
4120$at_failed && at_fn_log_failure
4121$at_traceon; }
4122
4123
4124{ set +x
4125$as_echo "$at_srcdir/t_atf_run.at:76: sed -e 's,@TC_NAME@,tc_2,g' <\$({
4126    old=\$(pwd)
4127    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4128        cd ..
4129    done
4130    topdir=\$(pwd)
4131    cd \${old}
4132    echo \${topdir}
4133})/bootstrap/h_tp_fail"
4134at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:76"
4135( $at_check_trace; sed -e 's,@TC_NAME@,tc_2,g' <$({
4136    old=$(pwd)
4137    while test $(pwd) != '/' -a ! -e ./Makefile; do
4138        cd ..
4139    done
4140    topdir=$(pwd)
4141    cd ${old}
4142    echo ${topdir}
4143})/bootstrap/h_tp_fail
4144) >>"$at_stdout" 2>>"$at_stderr"
4145at_status=$? at_failed=false
4146$at_check_filter
4147at_fn_diff_devnull "$at_stderr" || at_failed=:
4148echo stdout:; tee stdout <"$at_stdout"
4149at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
4150$at_failed && at_fn_log_failure
4151$at_traceon; }
4152
4153{ set +x
4154$as_echo "$at_srcdir/t_atf_run.at:76: mv stdout top/test2"
4155at_fn_check_prepare_trace "t_atf_run.at:76"
4156( $at_check_trace; mv stdout top/test2
4157) >>"$at_stdout" 2>>"$at_stderr"
4158at_status=$? at_failed=false
4159$at_check_filter
4160at_fn_diff_devnull "$at_stderr" || at_failed=:
4161at_fn_diff_devnull "$at_stdout" || at_failed=:
4162at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
4163$at_failed && at_fn_log_failure
4164$at_traceon; }
4165
4166{ set +x
4167$as_echo "$at_srcdir/t_atf_run.at:76: chmod +x top/test2"
4168at_fn_check_prepare_trace "t_atf_run.at:76"
4169( $at_check_trace; chmod +x top/test2
4170) >>"$at_stdout" 2>>"$at_stderr"
4171at_status=$? at_failed=false
4172$at_check_filter
4173at_fn_diff_devnull "$at_stderr" || at_failed=:
4174at_fn_diff_devnull "$at_stdout" || at_failed=:
4175at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
4176$at_failed && at_fn_log_failure
4177$at_traceon; }
4178
4179
4180{ set +x
4181$as_echo "$at_srcdir/t_atf_run.at:77: sed -e 's,@TC_NAME@,tc_3,g' <\$({
4182    old=\$(pwd)
4183    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4184        cd ..
4185    done
4186    topdir=\$(pwd)
4187    cd \${old}
4188    echo \${topdir}
4189})/bootstrap/h_tp_pass"
4190at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:77"
4191( $at_check_trace; sed -e 's,@TC_NAME@,tc_3,g' <$({
4192    old=$(pwd)
4193    while test $(pwd) != '/' -a ! -e ./Makefile; do
4194        cd ..
4195    done
4196    topdir=$(pwd)
4197    cd ${old}
4198    echo ${topdir}
4199})/bootstrap/h_tp_pass
4200) >>"$at_stdout" 2>>"$at_stderr"
4201at_status=$? at_failed=false
4202$at_check_filter
4203at_fn_diff_devnull "$at_stderr" || at_failed=:
4204echo stdout:; tee stdout <"$at_stdout"
4205at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
4206$at_failed && at_fn_log_failure
4207$at_traceon; }
4208
4209{ set +x
4210$as_echo "$at_srcdir/t_atf_run.at:77: mv stdout top/dir1/test3"
4211at_fn_check_prepare_trace "t_atf_run.at:77"
4212( $at_check_trace; mv stdout top/dir1/test3
4213) >>"$at_stdout" 2>>"$at_stderr"
4214at_status=$? at_failed=false
4215$at_check_filter
4216at_fn_diff_devnull "$at_stderr" || at_failed=:
4217at_fn_diff_devnull "$at_stdout" || at_failed=:
4218at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
4219$at_failed && at_fn_log_failure
4220$at_traceon; }
4221
4222{ set +x
4223$as_echo "$at_srcdir/t_atf_run.at:77: chmod +x top/dir1/test3"
4224at_fn_check_prepare_trace "t_atf_run.at:77"
4225( $at_check_trace; chmod +x top/dir1/test3
4226) >>"$at_stdout" 2>>"$at_stderr"
4227at_status=$? at_failed=false
4228$at_check_filter
4229at_fn_diff_devnull "$at_stderr" || at_failed=:
4230at_fn_diff_devnull "$at_stdout" || at_failed=:
4231at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
4232$at_failed && at_fn_log_failure
4233$at_traceon; }
4234
4235
4236{ set +x
4237$as_echo "$at_srcdir/t_atf_run.at:78: sed -e 's,@TC_NAME@,tc_4,g' <\$({
4238    old=\$(pwd)
4239    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4240        cd ..
4241    done
4242    topdir=\$(pwd)
4243    cd \${old}
4244    echo \${topdir}
4245})/bootstrap/h_tp_fail"
4246at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:78"
4247( $at_check_trace; sed -e 's,@TC_NAME@,tc_4,g' <$({
4248    old=$(pwd)
4249    while test $(pwd) != '/' -a ! -e ./Makefile; do
4250        cd ..
4251    done
4252    topdir=$(pwd)
4253    cd ${old}
4254    echo ${topdir}
4255})/bootstrap/h_tp_fail
4256) >>"$at_stdout" 2>>"$at_stderr"
4257at_status=$? at_failed=false
4258$at_check_filter
4259at_fn_diff_devnull "$at_stderr" || at_failed=:
4260echo stdout:; tee stdout <"$at_stdout"
4261at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
4262$at_failed && at_fn_log_failure
4263$at_traceon; }
4264
4265{ set +x
4266$as_echo "$at_srcdir/t_atf_run.at:78: mv stdout top/dir2/test4"
4267at_fn_check_prepare_trace "t_atf_run.at:78"
4268( $at_check_trace; mv stdout top/dir2/test4
4269) >>"$at_stdout" 2>>"$at_stderr"
4270at_status=$? at_failed=false
4271$at_check_filter
4272at_fn_diff_devnull "$at_stderr" || at_failed=:
4273at_fn_diff_devnull "$at_stdout" || at_failed=:
4274at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
4275$at_failed && at_fn_log_failure
4276$at_traceon; }
4277
4278{ set +x
4279$as_echo "$at_srcdir/t_atf_run.at:78: chmod +x top/dir2/test4"
4280at_fn_check_prepare_trace "t_atf_run.at:78"
4281( $at_check_trace; chmod +x top/dir2/test4
4282) >>"$at_stdout" 2>>"$at_stderr"
4283at_status=$? at_failed=false
4284$at_check_filter
4285at_fn_diff_devnull "$at_stderr" || at_failed=:
4286at_fn_diff_devnull "$at_stdout" || at_failed=:
4287at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
4288$at_failed && at_fn_log_failure
4289$at_traceon; }
4290
4291
4292{ set +x
4293$as_echo "$at_srcdir/t_atf_run.at:79: sed -e 's,@TC_NAME@,tc_5,g' <\$({
4294    old=\$(pwd)
4295    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4296        cd ..
4297    done
4298    topdir=\$(pwd)
4299    cd \${old}
4300    echo \${topdir}
4301})/bootstrap/h_tp_pass"
4302at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:79"
4303( $at_check_trace; sed -e 's,@TC_NAME@,tc_5,g' <$({
4304    old=$(pwd)
4305    while test $(pwd) != '/' -a ! -e ./Makefile; do
4306        cd ..
4307    done
4308    topdir=$(pwd)
4309    cd ${old}
4310    echo ${topdir}
4311})/bootstrap/h_tp_pass
4312) >>"$at_stdout" 2>>"$at_stderr"
4313at_status=$? at_failed=false
4314$at_check_filter
4315at_fn_diff_devnull "$at_stderr" || at_failed=:
4316echo stdout:; tee stdout <"$at_stdout"
4317at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
4318$at_failed && at_fn_log_failure
4319$at_traceon; }
4320
4321{ set +x
4322$as_echo "$at_srcdir/t_atf_run.at:79: mv stdout top/dir2/test5"
4323at_fn_check_prepare_trace "t_atf_run.at:79"
4324( $at_check_trace; mv stdout top/dir2/test5
4325) >>"$at_stdout" 2>>"$at_stderr"
4326at_status=$? at_failed=false
4327$at_check_filter
4328at_fn_diff_devnull "$at_stderr" || at_failed=:
4329at_fn_diff_devnull "$at_stdout" || at_failed=:
4330at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
4331$at_failed && at_fn_log_failure
4332$at_traceon; }
4333
4334{ set +x
4335$as_echo "$at_srcdir/t_atf_run.at:79: chmod +x top/dir2/test5"
4336at_fn_check_prepare_trace "t_atf_run.at:79"
4337( $at_check_trace; chmod +x top/dir2/test5
4338) >>"$at_stdout" 2>>"$at_stderr"
4339at_status=$? at_failed=false
4340$at_check_filter
4341at_fn_diff_devnull "$at_stderr" || at_failed=:
4342at_fn_diff_devnull "$at_stdout" || at_failed=:
4343at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
4344$at_failed && at_fn_log_failure
4345$at_traceon; }
4346
4347
4348
4349{ set +x
4350$as_echo "$at_srcdir/t_atf_run.at:81: cd top/dir1 && atf-run"
4351at_fn_check_prepare_trace "t_atf_run.at:81"
4352( $at_check_trace; cd top/dir1 && atf-run
4353) >>"$at_stdout" 2>>"$at_stderr"
4354at_status=$? at_failed=false
4355$at_check_filter
4356at_fn_diff_devnull "$at_stderr" || at_failed=:
4357echo stdout:; tee stdout <"$at_stdout"
4358at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:81"
4359$at_failed && at_fn_log_failure
4360$at_traceon; }
4361
4362{ set +x
4363$as_echo "$at_srcdir/t_atf_run.at:82: grep '^tc-end: tc_3, passed' stdout"
4364at_fn_check_prepare_trace "t_atf_run.at:82"
4365( $at_check_trace; grep '^tc-end: tc_3, passed' stdout
4366) >>"$at_stdout" 2>>"$at_stderr"
4367at_status=$? at_failed=false
4368$at_check_filter
4369at_fn_diff_devnull "$at_stderr" || at_failed=:
4370echo stdout:; cat "$at_stdout"
4371at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:82"
4372$at_failed && at_fn_log_failure
4373$at_traceon; }
4374
4375{ set +x
4376$as_echo "$at_srcdir/t_atf_run.at:83: grep -i 'tc_[1245]' stdout"
4377at_fn_check_prepare_trace "t_atf_run.at:83"
4378( $at_check_trace; grep -i 'tc_[1245]' stdout
4379) >>"$at_stdout" 2>>"$at_stderr"
4380at_status=$? at_failed=false
4381$at_check_filter
4382at_fn_diff_devnull "$at_stderr" || at_failed=:
4383at_fn_diff_devnull "$at_stdout" || at_failed=:
4384at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:83"
4385$at_failed && at_fn_log_failure
4386$at_traceon; }
4387
4388{ set +x
4389$as_echo "$at_srcdir/t_atf_run.at:84: grep 'tc-so:ignore-me' stdout"
4390at_fn_check_prepare_trace "t_atf_run.at:84"
4391( $at_check_trace; grep 'tc-so:ignore-me' stdout
4392) >>"$at_stdout" 2>>"$at_stderr"
4393at_status=$? at_failed=false
4394$at_check_filter
4395at_fn_diff_devnull "$at_stderr" || at_failed=:
4396echo stdout:; cat "$at_stdout"
4397at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:84"
4398$at_failed && at_fn_log_failure
4399$at_traceon; }
4400
4401{ set +x
4402$as_echo "$at_srcdir/t_atf_run.at:85: grep 'tc-se:ignore-me' stdout"
4403at_fn_check_prepare_trace "t_atf_run.at:85"
4404( $at_check_trace; grep 'tc-se:ignore-me' stdout
4405) >>"$at_stdout" 2>>"$at_stderr"
4406at_status=$? at_failed=false
4407$at_check_filter
4408at_fn_diff_devnull "$at_stderr" || at_failed=:
4409echo stdout:; cat "$at_stdout"
4410at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:85"
4411$at_failed && at_fn_log_failure
4412$at_traceon; }
4413
4414
4415{ set +x
4416$as_echo "$at_srcdir/t_atf_run.at:87: cd top/dir2 && atf-run"
4417at_fn_check_prepare_trace "t_atf_run.at:87"
4418( $at_check_trace; cd top/dir2 && atf-run
4419) >>"$at_stdout" 2>>"$at_stderr"
4420at_status=$? at_failed=false
4421$at_check_filter
4422echo stderr:; tee stderr <"$at_stderr"
4423echo stdout:; tee stdout <"$at_stdout"
4424at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:87"
4425$at_failed && at_fn_log_failure
4426$at_traceon; }
4427
4428{ set +x
4429$as_echo "$at_srcdir/t_atf_run.at:88: grep '^tc-end: tc_4, failed' stdout"
4430at_fn_check_prepare_trace "t_atf_run.at:88"
4431( $at_check_trace; grep '^tc-end: tc_4, failed' stdout
4432) >>"$at_stdout" 2>>"$at_stderr"
4433at_status=$? at_failed=false
4434$at_check_filter
4435at_fn_diff_devnull "$at_stderr" || at_failed=:
4436echo stdout:; cat "$at_stdout"
4437at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:88"
4438$at_failed && at_fn_log_failure
4439$at_traceon; }
4440
4441{ set +x
4442$as_echo "$at_srcdir/t_atf_run.at:89: grep '^tc-end: tc_5, passed' stdout"
4443at_fn_check_prepare_trace "t_atf_run.at:89"
4444( $at_check_trace; grep '^tc-end: tc_5, passed' stdout
4445) >>"$at_stdout" 2>>"$at_stderr"
4446at_status=$? at_failed=false
4447$at_check_filter
4448at_fn_diff_devnull "$at_stderr" || at_failed=:
4449echo stdout:; cat "$at_stdout"
4450at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:89"
4451$at_failed && at_fn_log_failure
4452$at_traceon; }
4453
4454{ set +x
4455$as_echo "$at_srcdir/t_atf_run.at:90: grep -i 'tc_[123]' stdout"
4456at_fn_check_prepare_trace "t_atf_run.at:90"
4457( $at_check_trace; grep -i 'tc_[123]' stdout
4458) >>"$at_stdout" 2>>"$at_stderr"
4459at_status=$? at_failed=false
4460$at_check_filter
4461at_fn_diff_devnull "$at_stderr" || at_failed=:
4462at_fn_diff_devnull "$at_stdout" || at_failed=:
4463at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:90"
4464$at_failed && at_fn_log_failure
4465$at_traceon; }
4466
4467{ set +x
4468$as_echo "$at_srcdir/t_atf_run.at:91: grep 'tc-so:ignore-me' stdout"
4469at_fn_check_prepare_trace "t_atf_run.at:91"
4470( $at_check_trace; grep 'tc-so:ignore-me' stdout
4471) >>"$at_stdout" 2>>"$at_stderr"
4472at_status=$? at_failed=false
4473$at_check_filter
4474at_fn_diff_devnull "$at_stderr" || at_failed=:
4475echo stdout:; cat "$at_stdout"
4476at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:91"
4477$at_failed && at_fn_log_failure
4478$at_traceon; }
4479
4480{ set +x
4481$as_echo "$at_srcdir/t_atf_run.at:92: grep 'tc-se:ignore-me' stdout"
4482at_fn_check_prepare_trace "t_atf_run.at:92"
4483( $at_check_trace; grep 'tc-se:ignore-me' stdout
4484) >>"$at_stdout" 2>>"$at_stderr"
4485at_status=$? at_failed=false
4486$at_check_filter
4487at_fn_diff_devnull "$at_stderr" || at_failed=:
4488echo stdout:; cat "$at_stdout"
4489at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:92"
4490$at_failed && at_fn_log_failure
4491$at_traceon; }
4492
4493
4494{ set +x
4495$as_echo "$at_srcdir/t_atf_run.at:94: cd top && atf-run"
4496at_fn_check_prepare_trace "t_atf_run.at:94"
4497( $at_check_trace; cd top && atf-run
4498) >>"$at_stdout" 2>>"$at_stderr"
4499at_status=$? at_failed=false
4500$at_check_filter
4501echo stderr:; tee stderr <"$at_stderr"
4502echo stdout:; tee stdout <"$at_stdout"
4503at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:94"
4504$at_failed && at_fn_log_failure
4505$at_traceon; }
4506
4507{ set +x
4508$as_echo "$at_srcdir/t_atf_run.at:95: grep '^tc-end: tc_1, passed' stdout"
4509at_fn_check_prepare_trace "t_atf_run.at:95"
4510( $at_check_trace; grep '^tc-end: tc_1, passed' stdout
4511) >>"$at_stdout" 2>>"$at_stderr"
4512at_status=$? at_failed=false
4513$at_check_filter
4514at_fn_diff_devnull "$at_stderr" || at_failed=:
4515echo stdout:; cat "$at_stdout"
4516at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:95"
4517$at_failed && at_fn_log_failure
4518$at_traceon; }
4519
4520{ set +x
4521$as_echo "$at_srcdir/t_atf_run.at:96: grep '^tc-end: tc_2, failed' stdout"
4522at_fn_check_prepare_trace "t_atf_run.at:96"
4523( $at_check_trace; grep '^tc-end: tc_2, failed' stdout
4524) >>"$at_stdout" 2>>"$at_stderr"
4525at_status=$? at_failed=false
4526$at_check_filter
4527at_fn_diff_devnull "$at_stderr" || at_failed=:
4528echo stdout:; cat "$at_stdout"
4529at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:96"
4530$at_failed && at_fn_log_failure
4531$at_traceon; }
4532
4533{ set +x
4534$as_echo "$at_srcdir/t_atf_run.at:97: grep '^tc-end: tc_3, passed' stdout"
4535at_fn_check_prepare_trace "t_atf_run.at:97"
4536( $at_check_trace; grep '^tc-end: tc_3, passed' stdout
4537) >>"$at_stdout" 2>>"$at_stderr"
4538at_status=$? at_failed=false
4539$at_check_filter
4540at_fn_diff_devnull "$at_stderr" || at_failed=:
4541echo stdout:; cat "$at_stdout"
4542at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:97"
4543$at_failed && at_fn_log_failure
4544$at_traceon; }
4545
4546{ set +x
4547$as_echo "$at_srcdir/t_atf_run.at:98: grep '^tc-end: tc_4, failed' stdout"
4548at_fn_check_prepare_trace "t_atf_run.at:98"
4549( $at_check_trace; grep '^tc-end: tc_4, failed' stdout
4550) >>"$at_stdout" 2>>"$at_stderr"
4551at_status=$? at_failed=false
4552$at_check_filter
4553at_fn_diff_devnull "$at_stderr" || at_failed=:
4554echo stdout:; cat "$at_stdout"
4555at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:98"
4556$at_failed && at_fn_log_failure
4557$at_traceon; }
4558
4559{ set +x
4560$as_echo "$at_srcdir/t_atf_run.at:99: grep '^tc-end: tc_5, passed' stdout"
4561at_fn_check_prepare_trace "t_atf_run.at:99"
4562( $at_check_trace; grep '^tc-end: tc_5, passed' stdout
4563) >>"$at_stdout" 2>>"$at_stderr"
4564at_status=$? at_failed=false
4565$at_check_filter
4566at_fn_diff_devnull "$at_stderr" || at_failed=:
4567echo stdout:; cat "$at_stdout"
4568at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:99"
4569$at_failed && at_fn_log_failure
4570$at_traceon; }
4571
4572{ set +x
4573$as_echo "$at_srcdir/t_atf_run.at:100: grep 'tc-so:ignore-me' stdout"
4574at_fn_check_prepare_trace "t_atf_run.at:100"
4575( $at_check_trace; grep 'tc-so:ignore-me' stdout
4576) >>"$at_stdout" 2>>"$at_stderr"
4577at_status=$? at_failed=false
4578$at_check_filter
4579at_fn_diff_devnull "$at_stderr" || at_failed=:
4580echo stdout:; cat "$at_stdout"
4581at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:100"
4582$at_failed && at_fn_log_failure
4583$at_traceon; }
4584
4585{ set +x
4586$as_echo "$at_srcdir/t_atf_run.at:101: grep 'tc-se:ignore-me' stdout"
4587at_fn_check_prepare_trace "t_atf_run.at:101"
4588( $at_check_trace; grep 'tc-se:ignore-me' stdout
4589) >>"$at_stdout" 2>>"$at_stderr"
4590at_status=$? at_failed=false
4591$at_check_filter
4592at_fn_diff_devnull "$at_stderr" || at_failed=:
4593echo stdout:; cat "$at_stdout"
4594at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:101"
4595$at_failed && at_fn_log_failure
4596$at_traceon; }
4597
4598
4599cat >top/Atffile <<'_ATEOF'
4600Content-Type: application/X-atf-atffile; version="1"
4601
4602prop: test-suite = atf
4603
4604tp-glob: *
4605_ATEOF
4606
4607{ set +x
4608$as_echo "$at_srcdir/t_atf_run.at:111: cd top && atf-run"
4609at_fn_check_prepare_trace "t_atf_run.at:111"
4610( $at_check_trace; cd top && atf-run
4611) >>"$at_stdout" 2>>"$at_stderr"
4612at_status=$? at_failed=false
4613$at_check_filter
4614echo stderr:; tee stderr <"$at_stderr"
4615echo stdout:; tee stdout <"$at_stdout"
4616at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:111"
4617$at_failed && at_fn_log_failure
4618$at_traceon; }
4619
4620{ set +x
4621$as_echo "$at_srcdir/t_atf_run.at:112: grep '^tc-end: tc_1, passed' stdout"
4622at_fn_check_prepare_trace "t_atf_run.at:112"
4623( $at_check_trace; grep '^tc-end: tc_1, passed' stdout
4624) >>"$at_stdout" 2>>"$at_stderr"
4625at_status=$? at_failed=false
4626$at_check_filter
4627at_fn_diff_devnull "$at_stderr" || at_failed=:
4628echo stdout:; cat "$at_stdout"
4629at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:112"
4630$at_failed && at_fn_log_failure
4631$at_traceon; }
4632
4633{ set +x
4634$as_echo "$at_srcdir/t_atf_run.at:113: grep '^tc-end: tc_2, failed' stdout"
4635at_fn_check_prepare_trace "t_atf_run.at:113"
4636( $at_check_trace; grep '^tc-end: tc_2, failed' stdout
4637) >>"$at_stdout" 2>>"$at_stderr"
4638at_status=$? at_failed=false
4639$at_check_filter
4640at_fn_diff_devnull "$at_stderr" || at_failed=:
4641echo stdout:; cat "$at_stdout"
4642at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:113"
4643$at_failed && at_fn_log_failure
4644$at_traceon; }
4645
4646{ set +x
4647$as_echo "$at_srcdir/t_atf_run.at:114: grep '^tc-end: tc_3, passed' stdout"
4648at_fn_check_prepare_trace "t_atf_run.at:114"
4649( $at_check_trace; grep '^tc-end: tc_3, passed' stdout
4650) >>"$at_stdout" 2>>"$at_stderr"
4651at_status=$? at_failed=false
4652$at_check_filter
4653at_fn_diff_devnull "$at_stderr" || at_failed=:
4654echo stdout:; cat "$at_stdout"
4655at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:114"
4656$at_failed && at_fn_log_failure
4657$at_traceon; }
4658
4659{ set +x
4660$as_echo "$at_srcdir/t_atf_run.at:115: grep '^tc-end: tc_4, failed' stdout"
4661at_fn_check_prepare_trace "t_atf_run.at:115"
4662( $at_check_trace; grep '^tc-end: tc_4, failed' stdout
4663) >>"$at_stdout" 2>>"$at_stderr"
4664at_status=$? at_failed=false
4665$at_check_filter
4666at_fn_diff_devnull "$at_stderr" || at_failed=:
4667echo stdout:; cat "$at_stdout"
4668at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:115"
4669$at_failed && at_fn_log_failure
4670$at_traceon; }
4671
4672{ set +x
4673$as_echo "$at_srcdir/t_atf_run.at:116: grep '^tc-end: tc_5, passed' stdout"
4674at_fn_check_prepare_trace "t_atf_run.at:116"
4675( $at_check_trace; grep '^tc-end: tc_5, passed' stdout
4676) >>"$at_stdout" 2>>"$at_stderr"
4677at_status=$? at_failed=false
4678$at_check_filter
4679at_fn_diff_devnull "$at_stderr" || at_failed=:
4680echo stdout:; cat "$at_stdout"
4681at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:116"
4682$at_failed && at_fn_log_failure
4683$at_traceon; }
4684
4685{ set +x
4686$as_echo "$at_srcdir/t_atf_run.at:117: grep 'tc-so:ignore-me' stdout"
4687at_fn_check_prepare_trace "t_atf_run.at:117"
4688( $at_check_trace; grep 'tc-so:ignore-me' stdout
4689) >>"$at_stdout" 2>>"$at_stderr"
4690at_status=$? at_failed=false
4691$at_check_filter
4692at_fn_diff_devnull "$at_stderr" || at_failed=:
4693echo stdout:; cat "$at_stdout"
4694at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:117"
4695$at_failed && at_fn_log_failure
4696$at_traceon; }
4697
4698{ set +x
4699$as_echo "$at_srcdir/t_atf_run.at:118: grep 'tc-se:ignore-me' stdout"
4700at_fn_check_prepare_trace "t_atf_run.at:118"
4701( $at_check_trace; grep 'tc-se:ignore-me' stdout
4702) >>"$at_stdout" 2>>"$at_stderr"
4703at_status=$? at_failed=false
4704$at_check_filter
4705at_fn_diff_devnull "$at_stderr" || at_failed=:
4706echo stdout:; cat "$at_stdout"
4707at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:118"
4708$at_failed && at_fn_log_failure
4709$at_traceon; }
4710
4711
4712cat >top/Atffile <<'_ATEOF'
4713Content-Type: application/X-atf-atffile; version="1"
4714
4715prop: test-suite = atf
4716
4717tp-glob: d*
4718_ATEOF
4719
4720{ set +x
4721$as_echo "$at_srcdir/t_atf_run.at:128: cd top && atf-run"
4722at_fn_check_prepare_trace "t_atf_run.at:128"
4723( $at_check_trace; cd top && atf-run
4724) >>"$at_stdout" 2>>"$at_stderr"
4725at_status=$? at_failed=false
4726$at_check_filter
4727echo stderr:; tee stderr <"$at_stderr"
4728echo stdout:; tee stdout <"$at_stdout"
4729at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:128"
4730$at_failed && at_fn_log_failure
4731$at_traceon; }
4732
4733{ set +x
4734$as_echo "$at_srcdir/t_atf_run.at:129: grep '^tc-end: tc_3, passed' stdout"
4735at_fn_check_prepare_trace "t_atf_run.at:129"
4736( $at_check_trace; grep '^tc-end: tc_3, passed' stdout
4737) >>"$at_stdout" 2>>"$at_stderr"
4738at_status=$? at_failed=false
4739$at_check_filter
4740at_fn_diff_devnull "$at_stderr" || at_failed=:
4741echo stdout:; cat "$at_stdout"
4742at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:129"
4743$at_failed && at_fn_log_failure
4744$at_traceon; }
4745
4746{ set +x
4747$as_echo "$at_srcdir/t_atf_run.at:130: grep '^tc-end: tc_4, failed' stdout"
4748at_fn_check_prepare_trace "t_atf_run.at:130"
4749( $at_check_trace; grep '^tc-end: tc_4, failed' stdout
4750) >>"$at_stdout" 2>>"$at_stderr"
4751at_status=$? at_failed=false
4752$at_check_filter
4753at_fn_diff_devnull "$at_stderr" || at_failed=:
4754echo stdout:; cat "$at_stdout"
4755at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:130"
4756$at_failed && at_fn_log_failure
4757$at_traceon; }
4758
4759{ set +x
4760$as_echo "$at_srcdir/t_atf_run.at:131: grep '^tc-end: tc_5, passed' stdout"
4761at_fn_check_prepare_trace "t_atf_run.at:131"
4762( $at_check_trace; grep '^tc-end: tc_5, passed' stdout
4763) >>"$at_stdout" 2>>"$at_stderr"
4764at_status=$? at_failed=false
4765$at_check_filter
4766at_fn_diff_devnull "$at_stderr" || at_failed=:
4767echo stdout:; cat "$at_stdout"
4768at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:131"
4769$at_failed && at_fn_log_failure
4770$at_traceon; }
4771
4772{ set +x
4773$as_echo "$at_srcdir/t_atf_run.at:132: grep 'tc-so:ignore-me' stdout"
4774at_fn_check_prepare_trace "t_atf_run.at:132"
4775( $at_check_trace; grep 'tc-so:ignore-me' stdout
4776) >>"$at_stdout" 2>>"$at_stderr"
4777at_status=$? at_failed=false
4778$at_check_filter
4779at_fn_diff_devnull "$at_stderr" || at_failed=:
4780echo stdout:; cat "$at_stdout"
4781at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:132"
4782$at_failed && at_fn_log_failure
4783$at_traceon; }
4784
4785{ set +x
4786$as_echo "$at_srcdir/t_atf_run.at:133: grep 'tc-se:ignore-me' stdout"
4787at_fn_check_prepare_trace "t_atf_run.at:133"
4788( $at_check_trace; grep 'tc-se:ignore-me' stdout
4789) >>"$at_stdout" 2>>"$at_stderr"
4790at_status=$? at_failed=false
4791$at_check_filter
4792at_fn_diff_devnull "$at_stderr" || at_failed=:
4793echo stdout:; cat "$at_stdout"
4794at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:133"
4795$at_failed && at_fn_log_failure
4796$at_traceon; }
4797
4798
4799{ set +x
4800$as_echo "$at_srcdir/t_atf_run.at:138: rm -rf top"
4801at_fn_check_prepare_trace "t_atf_run.at:138"
4802( $at_check_trace; rm -rf top
4803) >>"$at_stdout" 2>>"$at_stderr"
4804at_status=$? at_failed=false
4805$at_check_filter
4806at_fn_diff_devnull "$at_stderr" || at_failed=:
4807at_fn_diff_devnull "$at_stdout" || at_failed=:
4808at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:138"
4809$at_failed && at_fn_log_failure
4810$at_traceon; }
4811
4812{ set +x
4813$as_echo "$at_srcdir/t_atf_run.at:139: mkdir top"
4814at_fn_check_prepare_trace "t_atf_run.at:139"
4815( $at_check_trace; mkdir top
4816) >>"$at_stdout" 2>>"$at_stderr"
4817at_status=$? at_failed=false
4818$at_check_filter
4819at_fn_diff_devnull "$at_stderr" || at_failed=:
4820at_fn_diff_devnull "$at_stdout" || at_failed=:
4821at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:139"
4822$at_failed && at_fn_log_failure
4823$at_traceon; }
4824
4825{ set +x
4826$as_echo "$at_srcdir/t_atf_run.at:140: sed -e 's,@TC_NAME@,tc_1,g' <\$({
4827    old=\$(pwd)
4828    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4829        cd ..
4830    done
4831    topdir=\$(pwd)
4832    cd \${old}
4833    echo \${topdir}
4834})/bootstrap/h_tp_pass"
4835at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:140"
4836( $at_check_trace; sed -e 's,@TC_NAME@,tc_1,g' <$({
4837    old=$(pwd)
4838    while test $(pwd) != '/' -a ! -e ./Makefile; do
4839        cd ..
4840    done
4841    topdir=$(pwd)
4842    cd ${old}
4843    echo ${topdir}
4844})/bootstrap/h_tp_pass
4845) >>"$at_stdout" 2>>"$at_stderr"
4846at_status=$? at_failed=false
4847$at_check_filter
4848at_fn_diff_devnull "$at_stderr" || at_failed=:
4849echo stdout:; tee stdout <"$at_stdout"
4850at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
4851$at_failed && at_fn_log_failure
4852$at_traceon; }
4853
4854{ set +x
4855$as_echo "$at_srcdir/t_atf_run.at:140: mv stdout top/test1"
4856at_fn_check_prepare_trace "t_atf_run.at:140"
4857( $at_check_trace; mv stdout top/test1
4858) >>"$at_stdout" 2>>"$at_stderr"
4859at_status=$? at_failed=false
4860$at_check_filter
4861at_fn_diff_devnull "$at_stderr" || at_failed=:
4862at_fn_diff_devnull "$at_stdout" || at_failed=:
4863at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
4864$at_failed && at_fn_log_failure
4865$at_traceon; }
4866
4867{ set +x
4868$as_echo "$at_srcdir/t_atf_run.at:140: chmod +x top/test1"
4869at_fn_check_prepare_trace "t_atf_run.at:140"
4870( $at_check_trace; chmod +x top/test1
4871) >>"$at_stdout" 2>>"$at_stderr"
4872at_status=$? at_failed=false
4873$at_check_filter
4874at_fn_diff_devnull "$at_stderr" || at_failed=:
4875at_fn_diff_devnull "$at_stdout" || at_failed=:
4876at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
4877$at_failed && at_fn_log_failure
4878$at_traceon; }
4879
4880
4881{ set +x
4882$as_echo "$at_srcdir/t_atf_run.at:141: sed -e 's,@TC_NAME@,tc_2,g' <\$({
4883    old=\$(pwd)
4884    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4885        cd ..
4886    done
4887    topdir=\$(pwd)
4888    cd \${old}
4889    echo \${topdir}
4890})/bootstrap/h_tp_pass"
4891at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:141"
4892( $at_check_trace; sed -e 's,@TC_NAME@,tc_2,g' <$({
4893    old=$(pwd)
4894    while test $(pwd) != '/' -a ! -e ./Makefile; do
4895        cd ..
4896    done
4897    topdir=$(pwd)
4898    cd ${old}
4899    echo ${topdir}
4900})/bootstrap/h_tp_pass
4901) >>"$at_stdout" 2>>"$at_stderr"
4902at_status=$? at_failed=false
4903$at_check_filter
4904at_fn_diff_devnull "$at_stderr" || at_failed=:
4905echo stdout:; tee stdout <"$at_stdout"
4906at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
4907$at_failed && at_fn_log_failure
4908$at_traceon; }
4909
4910{ set +x
4911$as_echo "$at_srcdir/t_atf_run.at:141: mv stdout top/test2"
4912at_fn_check_prepare_trace "t_atf_run.at:141"
4913( $at_check_trace; mv stdout top/test2
4914) >>"$at_stdout" 2>>"$at_stderr"
4915at_status=$? at_failed=false
4916$at_check_filter
4917at_fn_diff_devnull "$at_stderr" || at_failed=:
4918at_fn_diff_devnull "$at_stdout" || at_failed=:
4919at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
4920$at_failed && at_fn_log_failure
4921$at_traceon; }
4922
4923{ set +x
4924$as_echo "$at_srcdir/t_atf_run.at:141: chmod +x top/test2"
4925at_fn_check_prepare_trace "t_atf_run.at:141"
4926( $at_check_trace; chmod +x top/test2
4927) >>"$at_stdout" 2>>"$at_stderr"
4928at_status=$? at_failed=false
4929$at_check_filter
4930at_fn_diff_devnull "$at_stderr" || at_failed=:
4931at_fn_diff_devnull "$at_stdout" || at_failed=:
4932at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
4933$at_failed && at_fn_log_failure
4934$at_traceon; }
4935
4936
4937{ set +x
4938$as_echo "$at_srcdir/t_atf_run.at:142: sed -e 's,@TC_NAME@,tc_3,g' <\$({
4939    old=\$(pwd)
4940    while test \$(pwd) != '/' -a ! -e ./Makefile; do
4941        cd ..
4942    done
4943    topdir=\$(pwd)
4944    cd \${old}
4945    echo \${topdir}
4946})/bootstrap/h_tp_pass"
4947at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:142"
4948( $at_check_trace; sed -e 's,@TC_NAME@,tc_3,g' <$({
4949    old=$(pwd)
4950    while test $(pwd) != '/' -a ! -e ./Makefile; do
4951        cd ..
4952    done
4953    topdir=$(pwd)
4954    cd ${old}
4955    echo ${topdir}
4956})/bootstrap/h_tp_pass
4957) >>"$at_stdout" 2>>"$at_stderr"
4958at_status=$? at_failed=false
4959$at_check_filter
4960at_fn_diff_devnull "$at_stderr" || at_failed=:
4961echo stdout:; tee stdout <"$at_stdout"
4962at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
4963$at_failed && at_fn_log_failure
4964$at_traceon; }
4965
4966{ set +x
4967$as_echo "$at_srcdir/t_atf_run.at:142: mv stdout top/test3"
4968at_fn_check_prepare_trace "t_atf_run.at:142"
4969( $at_check_trace; mv stdout top/test3
4970) >>"$at_stdout" 2>>"$at_stderr"
4971at_status=$? at_failed=false
4972$at_check_filter
4973at_fn_diff_devnull "$at_stderr" || at_failed=:
4974at_fn_diff_devnull "$at_stdout" || at_failed=:
4975at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
4976$at_failed && at_fn_log_failure
4977$at_traceon; }
4978
4979{ set +x
4980$as_echo "$at_srcdir/t_atf_run.at:142: chmod +x top/test3"
4981at_fn_check_prepare_trace "t_atf_run.at:142"
4982( $at_check_trace; chmod +x top/test3
4983) >>"$at_stdout" 2>>"$at_stderr"
4984at_status=$? at_failed=false
4985$at_check_filter
4986at_fn_diff_devnull "$at_stderr" || at_failed=:
4987at_fn_diff_devnull "$at_stdout" || at_failed=:
4988at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
4989$at_failed && at_fn_log_failure
4990$at_traceon; }
4991
4992
4993{ set +x
4994$as_echo "$at_srcdir/t_atf_run.at:143: chmod -x top/test3"
4995at_fn_check_prepare_trace "t_atf_run.at:143"
4996( $at_check_trace; chmod -x top/test3
4997) >>"$at_stdout" 2>>"$at_stderr"
4998at_status=$? at_failed=false
4999$at_check_filter
5000at_fn_diff_devnull "$at_stderr" || at_failed=:
5001at_fn_diff_devnull "$at_stdout" || at_failed=:
5002at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:143"
5003$at_failed && at_fn_log_failure
5004$at_traceon; }
5005
5006{ set +x
5007$as_echo "$at_srcdir/t_atf_run.at:144: sed -e 's,@TC_NAME@,tc_4,g' <\$({
5008    old=\$(pwd)
5009    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5010        cd ..
5011    done
5012    topdir=\$(pwd)
5013    cd \${old}
5014    echo \${topdir}
5015})/bootstrap/h_tp_pass"
5016at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:144"
5017( $at_check_trace; sed -e 's,@TC_NAME@,tc_4,g' <$({
5018    old=$(pwd)
5019    while test $(pwd) != '/' -a ! -e ./Makefile; do
5020        cd ..
5021    done
5022    topdir=$(pwd)
5023    cd ${old}
5024    echo ${topdir}
5025})/bootstrap/h_tp_pass
5026) >>"$at_stdout" 2>>"$at_stderr"
5027at_status=$? at_failed=false
5028$at_check_filter
5029at_fn_diff_devnull "$at_stderr" || at_failed=:
5030echo stdout:; tee stdout <"$at_stdout"
5031at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
5032$at_failed && at_fn_log_failure
5033$at_traceon; }
5034
5035{ set +x
5036$as_echo "$at_srcdir/t_atf_run.at:144: mv stdout top/.test4"
5037at_fn_check_prepare_trace "t_atf_run.at:144"
5038( $at_check_trace; mv stdout top/.test4
5039) >>"$at_stdout" 2>>"$at_stderr"
5040at_status=$? at_failed=false
5041$at_check_filter
5042at_fn_diff_devnull "$at_stderr" || at_failed=:
5043at_fn_diff_devnull "$at_stdout" || at_failed=:
5044at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
5045$at_failed && at_fn_log_failure
5046$at_traceon; }
5047
5048{ set +x
5049$as_echo "$at_srcdir/t_atf_run.at:144: chmod +x top/.test4"
5050at_fn_check_prepare_trace "t_atf_run.at:144"
5051( $at_check_trace; chmod +x top/.test4
5052) >>"$at_stdout" 2>>"$at_stderr"
5053at_status=$? at_failed=false
5054$at_check_filter
5055at_fn_diff_devnull "$at_stderr" || at_failed=:
5056at_fn_diff_devnull "$at_stdout" || at_failed=:
5057at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
5058$at_failed && at_fn_log_failure
5059$at_traceon; }
5060
5061
5062{ set +x
5063$as_echo "$at_srcdir/t_atf_run.at:145: chmod -x top/.test4"
5064at_fn_check_prepare_trace "t_atf_run.at:145"
5065( $at_check_trace; chmod -x top/.test4
5066) >>"$at_stdout" 2>>"$at_stderr"
5067at_status=$? at_failed=false
5068$at_check_filter
5069at_fn_diff_devnull "$at_stderr" || at_failed=:
5070at_fn_diff_devnull "$at_stdout" || at_failed=:
5071at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:145"
5072$at_failed && at_fn_log_failure
5073$at_traceon; }
5074
5075cat >top/Atffile <<'_ATEOF'
5076Content-Type: application/X-atf-atffile; version="1"
5077
5078prop: test-suite = atf
5079
5080tp-glob: *
5081_ATEOF
5082
5083{ set +x
5084$as_echo "$at_srcdir/t_atf_run.at:153: cd top && atf-run"
5085at_fn_check_prepare_trace "t_atf_run.at:153"
5086( $at_check_trace; cd top && atf-run
5087) >>"$at_stdout" 2>>"$at_stderr"
5088at_status=$? at_failed=false
5089$at_check_filter
5090echo stderr:; tee stderr <"$at_stderr"
5091echo stdout:; tee stdout <"$at_stdout"
5092at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:153"
5093$at_failed && at_fn_log_failure
5094$at_traceon; }
5095
5096{ set +x
5097$as_echo "$at_srcdir/t_atf_run.at:154: grep '^tc-end: tc_1, passed' stdout"
5098at_fn_check_prepare_trace "t_atf_run.at:154"
5099( $at_check_trace; grep '^tc-end: tc_1, passed' stdout
5100) >>"$at_stdout" 2>>"$at_stderr"
5101at_status=$? at_failed=false
5102$at_check_filter
5103at_fn_diff_devnull "$at_stderr" || at_failed=:
5104echo stdout:; cat "$at_stdout"
5105at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:154"
5106$at_failed && at_fn_log_failure
5107$at_traceon; }
5108
5109{ set +x
5110$as_echo "$at_srcdir/t_atf_run.at:155: grep '^tc-end: tc_2, passed' stdout"
5111at_fn_check_prepare_trace "t_atf_run.at:155"
5112( $at_check_trace; grep '^tc-end: tc_2, passed' stdout
5113) >>"$at_stdout" 2>>"$at_stderr"
5114at_status=$? at_failed=false
5115$at_check_filter
5116at_fn_diff_devnull "$at_stderr" || at_failed=:
5117echo stdout:; cat "$at_stdout"
5118at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:155"
5119$at_failed && at_fn_log_failure
5120$at_traceon; }
5121
5122{ set +x
5123$as_echo "$at_srcdir/t_atf_run.at:156: grep -i 'tc_3' stdout"
5124at_fn_check_prepare_trace "t_atf_run.at:156"
5125( $at_check_trace; grep -i 'tc_3' stdout
5126) >>"$at_stdout" 2>>"$at_stderr"
5127at_status=$? at_failed=false
5128$at_check_filter
5129at_fn_diff_devnull "$at_stderr" || at_failed=:
5130echo stdout:; cat "$at_stdout"
5131at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:156"
5132$at_failed && at_fn_log_failure
5133$at_traceon; }
5134
5135{ set +x
5136$as_echo "$at_srcdir/t_atf_run.at:157: grep -i 'tc_4' stdout"
5137at_fn_check_prepare_trace "t_atf_run.at:157"
5138( $at_check_trace; grep -i 'tc_4' stdout
5139) >>"$at_stdout" 2>>"$at_stderr"
5140at_status=$? at_failed=false
5141$at_check_filter
5142at_fn_diff_devnull "$at_stderr" || at_failed=:
5143echo stdout:; cat "$at_stdout"
5144at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:157"
5145$at_failed && at_fn_log_failure
5146$at_traceon; }
5147
5148
5149{ set +x
5150$as_echo "$at_srcdir/t_atf_run.at:160: rm -rf top"
5151at_fn_check_prepare_trace "t_atf_run.at:160"
5152( $at_check_trace; rm -rf top
5153) >>"$at_stdout" 2>>"$at_stderr"
5154at_status=$? at_failed=false
5155$at_check_filter
5156at_fn_diff_devnull "$at_stderr" || at_failed=:
5157at_fn_diff_devnull "$at_stdout" || at_failed=:
5158at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:160"
5159$at_failed && at_fn_log_failure
5160$at_traceon; }
5161
5162{ set +x
5163$as_echo "$at_srcdir/t_atf_run.at:161: mkdir top"
5164at_fn_check_prepare_trace "t_atf_run.at:161"
5165( $at_check_trace; mkdir top
5166) >>"$at_stdout" 2>>"$at_stderr"
5167at_status=$? at_failed=false
5168$at_check_filter
5169at_fn_diff_devnull "$at_stderr" || at_failed=:
5170at_fn_diff_devnull "$at_stdout" || at_failed=:
5171at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:161"
5172$at_failed && at_fn_log_failure
5173$at_traceon; }
5174
5175{ set +x
5176$as_echo "$at_srcdir/t_atf_run.at:162: cp \$({
5177    old=\$(pwd)
5178    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5179        cd ..
5180    done
5181    topdir=\$(pwd)
5182    cd \${old}
5183    echo \${topdir}
5184})/bootstrap/h_tp_basic_sh top"
5185at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:162"
5186( $at_check_trace; cp $({
5187    old=$(pwd)
5188    while test $(pwd) != '/' -a ! -e ./Makefile; do
5189        cd ..
5190    done
5191    topdir=$(pwd)
5192    cd ${old}
5193    echo ${topdir}
5194})/bootstrap/h_tp_basic_sh top
5195) >>"$at_stdout" 2>>"$at_stderr"
5196at_status=$? at_failed=false
5197$at_check_filter
5198at_fn_diff_devnull "$at_stderr" || at_failed=:
5199at_fn_diff_devnull "$at_stdout" || at_failed=:
5200at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:162"
5201$at_failed && at_fn_log_failure
5202$at_traceon; }
5203
5204cat >top/Atffile <<'_ATEOF'
5205Content-Type: application/X-atf-atffile; version="1"
5206
5207prop: test-suite = atf
5208
5209tp: h_tp_basic_sh
5210_ATEOF
5211
5212{ set +x
5213$as_echo "$at_srcdir/t_atf_run.at:170: cd top && atf-run"
5214at_fn_check_prepare_trace "t_atf_run.at:170"
5215( $at_check_trace; cd top && atf-run
5216) >>"$at_stdout" 2>>"$at_stderr"
5217at_status=$? at_failed=false
5218$at_check_filter
5219echo stderr:; tee stderr <"$at_stderr"
5220echo stdout:; tee stdout <"$at_stdout"
5221at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:170"
5222$at_failed && at_fn_log_failure
5223$at_traceon; }
5224
5225{ set +x
5226$as_echo "$at_srcdir/t_atf_run.at:171: grep '^tc-end: pass, passed' stdout"
5227at_fn_check_prepare_trace "t_atf_run.at:171"
5228( $at_check_trace; grep '^tc-end: pass, passed' stdout
5229) >>"$at_stdout" 2>>"$at_stderr"
5230at_status=$? at_failed=false
5231$at_check_filter
5232at_fn_diff_devnull "$at_stderr" || at_failed=:
5233echo stdout:; cat "$at_stdout"
5234at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:171"
5235$at_failed && at_fn_log_failure
5236$at_traceon; }
5237
5238{ set +x
5239$as_echo "$at_srcdir/t_atf_run.at:172: grep '^tc-end: fail, failed' stdout"
5240at_fn_check_prepare_trace "t_atf_run.at:172"
5241( $at_check_trace; grep '^tc-end: fail, failed' stdout
5242) >>"$at_stdout" 2>>"$at_stderr"
5243at_status=$? at_failed=false
5244$at_check_filter
5245at_fn_diff_devnull "$at_stderr" || at_failed=:
5246echo stdout:; cat "$at_stdout"
5247at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:172"
5248$at_failed && at_fn_log_failure
5249$at_traceon; }
5250
5251{ set +x
5252$as_echo "$at_srcdir/t_atf_run.at:173: grep '^tc-end: skip, skipped' stdout"
5253at_fn_check_prepare_trace "t_atf_run.at:173"
5254( $at_check_trace; grep '^tc-end: skip, skipped' stdout
5255) >>"$at_stdout" 2>>"$at_stderr"
5256at_status=$? at_failed=false
5257$at_check_filter
5258at_fn_diff_devnull "$at_stderr" || at_failed=:
5259echo stdout:; cat "$at_stdout"
5260at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:173"
5261$at_failed && at_fn_log_failure
5262$at_traceon; }
5263
5264{ set +x
5265$as_echo "$at_srcdir/t_atf_run.at:174: grep '^tc-end: default, passed' stdout"
5266at_fn_check_prepare_trace "t_atf_run.at:174"
5267( $at_check_trace; grep '^tc-end: default, passed' stdout
5268) >>"$at_stdout" 2>>"$at_stderr"
5269at_status=$? at_failed=false
5270$at_check_filter
5271at_fn_diff_devnull "$at_stderr" || at_failed=:
5272echo stdout:; cat "$at_stdout"
5273at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:174"
5274$at_failed && at_fn_log_failure
5275$at_traceon; }
5276
5277
5278  set +x
5279  $at_times_p && times >"$at_times_file"
5280) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5281read at_status <"$at_status_file"
5282#AT_STOP_7
5283#AT_START_8
5284at_fn_group_banner 8 't_test_program_compare.at:30' \
5285  "test_program: compare the user-visible interfaces" ""
5286at_xfail=no
5287(
5288  $as_echo "8. $at_setup_line: testing $at_desc ..."
5289  $at_traceon
5290
5291
5292{ set +x
5293$as_echo "$at_srcdir/t_test_program_compare.at:33: \$({
5294    old=\$(pwd)
5295    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5296        cd ..
5297    done
5298    topdir=\$(pwd)
5299    cd \${old}
5300    echo \${topdir}
5301})/bootstrap/h_tp_basic_c \\
5302                          -s \$({
5303    old=\$(pwd)
5304    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5305        cd ..
5306    done
5307    topdir=\$(pwd)
5308    cd \${old}
5309    echo \${topdir}
5310})/bootstrap"
5311at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:33"
5312( $at_check_trace; $({
5313    old=$(pwd)
5314    while test $(pwd) != '/' -a ! -e ./Makefile; do
5315        cd ..
5316    done
5317    topdir=$(pwd)
5318    cd ${old}
5319    echo ${topdir}
5320})/bootstrap/h_tp_basic_c \
5321                          -s $({
5322    old=$(pwd)
5323    while test $(pwd) != '/' -a ! -e ./Makefile; do
5324        cd ..
5325    done
5326    topdir=$(pwd)
5327    cd ${old}
5328    echo ${topdir}
5329})/bootstrap
5330) >>"$at_stdout" 2>>"$at_stderr"
5331at_status=$? at_failed=false
5332$at_check_filter
5333echo stderr:; tee stderr <"$at_stderr"
5334at_fn_diff_devnull "$at_stdout" || at_failed=:
5335at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:33"
5336$at_failed && at_fn_log_failure
5337$at_traceon; }
5338
5339sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
5340{ set +x
5341$as_echo "$at_srcdir/t_test_program_compare.at:35: \$({
5342    old=\$(pwd)
5343    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5344        cd ..
5345    done
5346    topdir=\$(pwd)
5347    cd \${old}
5348    echo \${topdir}
5349})/bootstrap/h_tp_basic_cpp \\
5350                          -s \$({
5351    old=\$(pwd)
5352    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5353        cd ..
5354    done
5355    topdir=\$(pwd)
5356    cd \${old}
5357    echo \${topdir}
5358})/bootstrap"
5359at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:35"
5360( $at_check_trace; $({
5361    old=$(pwd)
5362    while test $(pwd) != '/' -a ! -e ./Makefile; do
5363        cd ..
5364    done
5365    topdir=$(pwd)
5366    cd ${old}
5367    echo ${topdir}
5368})/bootstrap/h_tp_basic_cpp \
5369                          -s $({
5370    old=$(pwd)
5371    while test $(pwd) != '/' -a ! -e ./Makefile; do
5372        cd ..
5373    done
5374    topdir=$(pwd)
5375    cd ${old}
5376    echo ${topdir}
5377})/bootstrap
5378) >>"$at_stdout" 2>>"$at_stderr"
5379at_status=$? at_failed=false
5380$at_check_filter
5381$at_diff experr "$at_stderr" || at_failed=:
5382at_fn_diff_devnull "$at_stdout" || at_failed=:
5383at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:35"
5384$at_failed && at_fn_log_failure
5385$at_traceon; }
5386
5387sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
5388{ set +x
5389$as_echo "$at_srcdir/t_test_program_compare.at:37: \$({
5390    old=\$(pwd)
5391    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5392        cd ..
5393    done
5394    topdir=\$(pwd)
5395    cd \${old}
5396    echo \${topdir}
5397})/bootstrap/h_tp_basic_sh \\
5398                          -s \$({
5399    old=\$(pwd)
5400    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5401        cd ..
5402    done
5403    topdir=\$(pwd)
5404    cd \${old}
5405    echo \${topdir}
5406})/bootstrap"
5407at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:37"
5408( $at_check_trace; $({
5409    old=$(pwd)
5410    while test $(pwd) != '/' -a ! -e ./Makefile; do
5411        cd ..
5412    done
5413    topdir=$(pwd)
5414    cd ${old}
5415    echo ${topdir}
5416})/bootstrap/h_tp_basic_sh \
5417                          -s $({
5418    old=$(pwd)
5419    while test $(pwd) != '/' -a ! -e ./Makefile; do
5420        cd ..
5421    done
5422    topdir=$(pwd)
5423    cd ${old}
5424    echo ${topdir}
5425})/bootstrap
5426) >>"$at_stdout" 2>>"$at_stderr"
5427at_status=$? at_failed=false
5428$at_check_filter
5429$at_diff experr "$at_stderr" || at_failed=:
5430at_fn_diff_devnull "$at_stdout" || at_failed=:
5431at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:37"
5432$at_failed && at_fn_log_failure
5433$at_traceon; }
5434
5435
5436{ set +x
5437$as_echo "$at_srcdir/t_test_program_compare.at:40: \$({
5438    old=\$(pwd)
5439    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5440        cd ..
5441    done
5442    topdir=\$(pwd)
5443    cd \${old}
5444    echo \${topdir}
5445})/bootstrap/h_tp_basic_c \\
5446                          -s \$({
5447    old=\$(pwd)
5448    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5449        cd ..
5450    done
5451    topdir=\$(pwd)
5452    cd \${old}
5453    echo \${topdir}
5454})/bootstrap -h"
5455at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:40"
5456( $at_check_trace; $({
5457    old=$(pwd)
5458    while test $(pwd) != '/' -a ! -e ./Makefile; do
5459        cd ..
5460    done
5461    topdir=$(pwd)
5462    cd ${old}
5463    echo ${topdir}
5464})/bootstrap/h_tp_basic_c \
5465                          -s $({
5466    old=$(pwd)
5467    while test $(pwd) != '/' -a ! -e ./Makefile; do
5468        cd ..
5469    done
5470    topdir=$(pwd)
5471    cd ${old}
5472    echo ${topdir}
5473})/bootstrap -h
5474) >>"$at_stdout" 2>>"$at_stderr"
5475at_status=$? at_failed=false
5476$at_check_filter
5477echo stderr:; tee stderr <"$at_stderr"
5478at_fn_diff_devnull "$at_stdout" || at_failed=:
5479at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:40"
5480$at_failed && at_fn_log_failure
5481$at_traceon; }
5482
5483sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
5484{ set +x
5485$as_echo "$at_srcdir/t_test_program_compare.at:42: \$({
5486    old=\$(pwd)
5487    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5488        cd ..
5489    done
5490    topdir=\$(pwd)
5491    cd \${old}
5492    echo \${topdir}
5493})/bootstrap/h_tp_basic_cpp \\
5494                          -s \$({
5495    old=\$(pwd)
5496    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5497        cd ..
5498    done
5499    topdir=\$(pwd)
5500    cd \${old}
5501    echo \${topdir}
5502})/bootstrap -h"
5503at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:42"
5504( $at_check_trace; $({
5505    old=$(pwd)
5506    while test $(pwd) != '/' -a ! -e ./Makefile; do
5507        cd ..
5508    done
5509    topdir=$(pwd)
5510    cd ${old}
5511    echo ${topdir}
5512})/bootstrap/h_tp_basic_cpp \
5513                          -s $({
5514    old=$(pwd)
5515    while test $(pwd) != '/' -a ! -e ./Makefile; do
5516        cd ..
5517    done
5518    topdir=$(pwd)
5519    cd ${old}
5520    echo ${topdir}
5521})/bootstrap -h
5522) >>"$at_stdout" 2>>"$at_stderr"
5523at_status=$? at_failed=false
5524$at_check_filter
5525$at_diff experr "$at_stderr" || at_failed=:
5526at_fn_diff_devnull "$at_stdout" || at_failed=:
5527at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:42"
5528$at_failed && at_fn_log_failure
5529$at_traceon; }
5530
5531sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
5532{ set +x
5533$as_echo "$at_srcdir/t_test_program_compare.at:44: \$({
5534    old=\$(pwd)
5535    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5536        cd ..
5537    done
5538    topdir=\$(pwd)
5539    cd \${old}
5540    echo \${topdir}
5541})/bootstrap/h_tp_basic_sh \\
5542                          -s \$({
5543    old=\$(pwd)
5544    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5545        cd ..
5546    done
5547    topdir=\$(pwd)
5548    cd \${old}
5549    echo \${topdir}
5550})/bootstrap -h"
5551at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:44"
5552( $at_check_trace; $({
5553    old=$(pwd)
5554    while test $(pwd) != '/' -a ! -e ./Makefile; do
5555        cd ..
5556    done
5557    topdir=$(pwd)
5558    cd ${old}
5559    echo ${topdir}
5560})/bootstrap/h_tp_basic_sh \
5561                          -s $({
5562    old=$(pwd)
5563    while test $(pwd) != '/' -a ! -e ./Makefile; do
5564        cd ..
5565    done
5566    topdir=$(pwd)
5567    cd ${old}
5568    echo ${topdir}
5569})/bootstrap -h
5570) >>"$at_stdout" 2>>"$at_stderr"
5571at_status=$? at_failed=false
5572$at_check_filter
5573$at_diff experr "$at_stderr" || at_failed=:
5574at_fn_diff_devnull "$at_stdout" || at_failed=:
5575at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:44"
5576$at_failed && at_fn_log_failure
5577$at_traceon; }
5578
5579
5580{ set +x
5581$as_echo "$at_srcdir/t_test_program_compare.at:47: \$({
5582    old=\$(pwd)
5583    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5584        cd ..
5585    done
5586    topdir=\$(pwd)
5587    cd \${old}
5588    echo \${topdir}
5589})/bootstrap/h_tp_basic_c \\
5590                          -s \$({
5591    old=\$(pwd)
5592    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5593        cd ..
5594    done
5595    topdir=\$(pwd)
5596    cd \${old}
5597    echo \${topdir}
5598})/bootstrap -Z"
5599at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:47"
5600( $at_check_trace; $({
5601    old=$(pwd)
5602    while test $(pwd) != '/' -a ! -e ./Makefile; do
5603        cd ..
5604    done
5605    topdir=$(pwd)
5606    cd ${old}
5607    echo ${topdir}
5608})/bootstrap/h_tp_basic_c \
5609                          -s $({
5610    old=$(pwd)
5611    while test $(pwd) != '/' -a ! -e ./Makefile; do
5612        cd ..
5613    done
5614    topdir=$(pwd)
5615    cd ${old}
5616    echo ${topdir}
5617})/bootstrap -Z
5618) >>"$at_stdout" 2>>"$at_stderr"
5619at_status=$? at_failed=false
5620$at_check_filter
5621echo stderr:; tee stderr <"$at_stderr"
5622at_fn_diff_devnull "$at_stdout" || at_failed=:
5623at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:47"
5624$at_failed && at_fn_log_failure
5625$at_traceon; }
5626
5627sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
5628{ set +x
5629$as_echo "$at_srcdir/t_test_program_compare.at:49: \$({
5630    old=\$(pwd)
5631    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5632        cd ..
5633    done
5634    topdir=\$(pwd)
5635    cd \${old}
5636    echo \${topdir}
5637})/bootstrap/h_tp_basic_cpp \\
5638                          -s \$({
5639    old=\$(pwd)
5640    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5641        cd ..
5642    done
5643    topdir=\$(pwd)
5644    cd \${old}
5645    echo \${topdir}
5646})/bootstrap -Z"
5647at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:49"
5648( $at_check_trace; $({
5649    old=$(pwd)
5650    while test $(pwd) != '/' -a ! -e ./Makefile; do
5651        cd ..
5652    done
5653    topdir=$(pwd)
5654    cd ${old}
5655    echo ${topdir}
5656})/bootstrap/h_tp_basic_cpp \
5657                          -s $({
5658    old=$(pwd)
5659    while test $(pwd) != '/' -a ! -e ./Makefile; do
5660        cd ..
5661    done
5662    topdir=$(pwd)
5663    cd ${old}
5664    echo ${topdir}
5665})/bootstrap -Z
5666) >>"$at_stdout" 2>>"$at_stderr"
5667at_status=$? at_failed=false
5668$at_check_filter
5669$at_diff experr "$at_stderr" || at_failed=:
5670at_fn_diff_devnull "$at_stdout" || at_failed=:
5671at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:49"
5672$at_failed && at_fn_log_failure
5673$at_traceon; }
5674
5675sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
5676{ set +x
5677$as_echo "$at_srcdir/t_test_program_compare.at:51: \$({
5678    old=\$(pwd)
5679    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5680        cd ..
5681    done
5682    topdir=\$(pwd)
5683    cd \${old}
5684    echo \${topdir}
5685})/bootstrap/h_tp_basic_sh \\
5686                          -s \$({
5687    old=\$(pwd)
5688    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5689        cd ..
5690    done
5691    topdir=\$(pwd)
5692    cd \${old}
5693    echo \${topdir}
5694})/bootstrap -Z"
5695at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:51"
5696( $at_check_trace; $({
5697    old=$(pwd)
5698    while test $(pwd) != '/' -a ! -e ./Makefile; do
5699        cd ..
5700    done
5701    topdir=$(pwd)
5702    cd ${old}
5703    echo ${topdir}
5704})/bootstrap/h_tp_basic_sh \
5705                          -s $({
5706    old=$(pwd)
5707    while test $(pwd) != '/' -a ! -e ./Makefile; do
5708        cd ..
5709    done
5710    topdir=$(pwd)
5711    cd ${old}
5712    echo ${topdir}
5713})/bootstrap -Z
5714) >>"$at_stdout" 2>>"$at_stderr"
5715at_status=$? at_failed=false
5716$at_check_filter
5717$at_diff experr "$at_stderr" || at_failed=:
5718at_fn_diff_devnull "$at_stdout" || at_failed=:
5719at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:51"
5720$at_failed && at_fn_log_failure
5721$at_traceon; }
5722
5723
5724{ set +x
5725$as_echo "$at_srcdir/t_test_program_compare.at:54: \$({
5726    old=\$(pwd)
5727    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5728        cd ..
5729    done
5730    topdir=\$(pwd)
5731    cd \${old}
5732    echo \${topdir}
5733})/bootstrap/h_tp_basic_c \\
5734                          -s \$({
5735    old=\$(pwd)
5736    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5737        cd ..
5738    done
5739    topdir=\$(pwd)
5740    cd \${old}
5741    echo \${topdir}
5742})/bootstrap -l"
5743at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:54"
5744( $at_check_trace; $({
5745    old=$(pwd)
5746    while test $(pwd) != '/' -a ! -e ./Makefile; do
5747        cd ..
5748    done
5749    topdir=$(pwd)
5750    cd ${old}
5751    echo ${topdir}
5752})/bootstrap/h_tp_basic_c \
5753                          -s $({
5754    old=$(pwd)
5755    while test $(pwd) != '/' -a ! -e ./Makefile; do
5756        cd ..
5757    done
5758    topdir=$(pwd)
5759    cd ${old}
5760    echo ${topdir}
5761})/bootstrap -l
5762) >>"$at_stdout" 2>>"$at_stderr"
5763at_status=$? at_failed=false
5764$at_check_filter
5765at_fn_diff_devnull "$at_stderr" || at_failed=:
5766echo stdout:; tee stdout <"$at_stdout"
5767at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:54"
5768$at_failed && at_fn_log_failure
5769$at_traceon; }
5770
5771sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
5772{ set +x
5773$as_echo "$at_srcdir/t_test_program_compare.at:56: \$({
5774    old=\$(pwd)
5775    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5776        cd ..
5777    done
5778    topdir=\$(pwd)
5779    cd \${old}
5780    echo \${topdir}
5781})/bootstrap/h_tp_basic_cpp \\
5782                          -s \$({
5783    old=\$(pwd)
5784    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5785        cd ..
5786    done
5787    topdir=\$(pwd)
5788    cd \${old}
5789    echo \${topdir}
5790})/bootstrap -l"
5791at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:56"
5792( $at_check_trace; $({
5793    old=$(pwd)
5794    while test $(pwd) != '/' -a ! -e ./Makefile; do
5795        cd ..
5796    done
5797    topdir=$(pwd)
5798    cd ${old}
5799    echo ${topdir}
5800})/bootstrap/h_tp_basic_cpp \
5801                          -s $({
5802    old=$(pwd)
5803    while test $(pwd) != '/' -a ! -e ./Makefile; do
5804        cd ..
5805    done
5806    topdir=$(pwd)
5807    cd ${old}
5808    echo ${topdir}
5809})/bootstrap -l
5810) >>"$at_stdout" 2>>"$at_stderr"
5811at_status=$? at_failed=false
5812$at_check_filter
5813at_fn_diff_devnull "$at_stderr" || at_failed=:
5814$at_diff expout "$at_stdout" || at_failed=:
5815at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:56"
5816$at_failed && at_fn_log_failure
5817$at_traceon; }
5818
5819sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
5820{ set +x
5821$as_echo "$at_srcdir/t_test_program_compare.at:58: \$({
5822    old=\$(pwd)
5823    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5824        cd ..
5825    done
5826    topdir=\$(pwd)
5827    cd \${old}
5828    echo \${topdir}
5829})/bootstrap/h_tp_basic_sh \\
5830                          -s \$({
5831    old=\$(pwd)
5832    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5833        cd ..
5834    done
5835    topdir=\$(pwd)
5836    cd \${old}
5837    echo \${topdir}
5838})/bootstrap -l"
5839at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:58"
5840( $at_check_trace; $({
5841    old=$(pwd)
5842    while test $(pwd) != '/' -a ! -e ./Makefile; do
5843        cd ..
5844    done
5845    topdir=$(pwd)
5846    cd ${old}
5847    echo ${topdir}
5848})/bootstrap/h_tp_basic_sh \
5849                          -s $({
5850    old=$(pwd)
5851    while test $(pwd) != '/' -a ! -e ./Makefile; do
5852        cd ..
5853    done
5854    topdir=$(pwd)
5855    cd ${old}
5856    echo ${topdir}
5857})/bootstrap -l
5858) >>"$at_stdout" 2>>"$at_stderr"
5859at_status=$? at_failed=false
5860$at_check_filter
5861at_fn_diff_devnull "$at_stderr" || at_failed=:
5862$at_diff expout "$at_stdout" || at_failed=:
5863at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:58"
5864$at_failed && at_fn_log_failure
5865$at_traceon; }
5866
5867
5868{ set +x
5869$as_echo "$at_srcdir/t_test_program_compare.at:61: \$({
5870    old=\$(pwd)
5871    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5872        cd ..
5873    done
5874    topdir=\$(pwd)
5875    cd \${old}
5876    echo \${topdir}
5877})/bootstrap/h_tp_basic_c \\
5878                          -s \$({
5879    old=\$(pwd)
5880    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5881        cd ..
5882    done
5883    topdir=\$(pwd)
5884    cd \${old}
5885    echo \${topdir}
5886})/bootstrap"
5887at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:61"
5888( $at_check_trace; $({
5889    old=$(pwd)
5890    while test $(pwd) != '/' -a ! -e ./Makefile; do
5891        cd ..
5892    done
5893    topdir=$(pwd)
5894    cd ${old}
5895    echo ${topdir}
5896})/bootstrap/h_tp_basic_c \
5897                          -s $({
5898    old=$(pwd)
5899    while test $(pwd) != '/' -a ! -e ./Makefile; do
5900        cd ..
5901    done
5902    topdir=$(pwd)
5903    cd ${old}
5904    echo ${topdir}
5905})/bootstrap
5906) >>"$at_stdout" 2>>"$at_stderr"
5907at_status=$? at_failed=false
5908$at_check_filter
5909echo stderr:; tee stderr <"$at_stderr"
5910echo stdout:; tee stdout <"$at_stdout"
5911at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:61"
5912$at_failed && at_fn_log_failure
5913$at_traceon; }
5914
5915sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
5916sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
5917{ set +x
5918$as_echo "$at_srcdir/t_test_program_compare.at:65: \$({
5919    old=\$(pwd)
5920    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5921        cd ..
5922    done
5923    topdir=\$(pwd)
5924    cd \${old}
5925    echo \${topdir}
5926})/bootstrap/h_tp_basic_cpp \\
5927                          -s \$({
5928    old=\$(pwd)
5929    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5930        cd ..
5931    done
5932    topdir=\$(pwd)
5933    cd \${old}
5934    echo \${topdir}
5935})/bootstrap"
5936at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:65"
5937( $at_check_trace; $({
5938    old=$(pwd)
5939    while test $(pwd) != '/' -a ! -e ./Makefile; do
5940        cd ..
5941    done
5942    topdir=$(pwd)
5943    cd ${old}
5944    echo ${topdir}
5945})/bootstrap/h_tp_basic_cpp \
5946                          -s $({
5947    old=$(pwd)
5948    while test $(pwd) != '/' -a ! -e ./Makefile; do
5949        cd ..
5950    done
5951    topdir=$(pwd)
5952    cd ${old}
5953    echo ${topdir}
5954})/bootstrap
5955) >>"$at_stdout" 2>>"$at_stderr"
5956at_status=$? at_failed=false
5957$at_check_filter
5958$at_diff experr "$at_stderr" || at_failed=:
5959$at_diff expout "$at_stdout" || at_failed=:
5960at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:65"
5961$at_failed && at_fn_log_failure
5962$at_traceon; }
5963
5964sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
5965sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
5966{ set +x
5967$as_echo "$at_srcdir/t_test_program_compare.at:69: \$({
5968    old=\$(pwd)
5969    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5970        cd ..
5971    done
5972    topdir=\$(pwd)
5973    cd \${old}
5974    echo \${topdir}
5975})/bootstrap/h_tp_basic_sh \\
5976                          -s \$({
5977    old=\$(pwd)
5978    while test \$(pwd) != '/' -a ! -e ./Makefile; do
5979        cd ..
5980    done
5981    topdir=\$(pwd)
5982    cd \${old}
5983    echo \${topdir}
5984})/bootstrap"
5985at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:69"
5986( $at_check_trace; $({
5987    old=$(pwd)
5988    while test $(pwd) != '/' -a ! -e ./Makefile; do
5989        cd ..
5990    done
5991    topdir=$(pwd)
5992    cd ${old}
5993    echo ${topdir}
5994})/bootstrap/h_tp_basic_sh \
5995                          -s $({
5996    old=$(pwd)
5997    while test $(pwd) != '/' -a ! -e ./Makefile; do
5998        cd ..
5999    done
6000    topdir=$(pwd)
6001    cd ${old}
6002    echo ${topdir}
6003})/bootstrap
6004) >>"$at_stdout" 2>>"$at_stderr"
6005at_status=$? at_failed=false
6006$at_check_filter
6007$at_diff experr "$at_stderr" || at_failed=:
6008$at_diff expout "$at_stdout" || at_failed=:
6009at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:69"
6010$at_failed && at_fn_log_failure
6011$at_traceon; }
6012
6013
6014{ set +x
6015$as_echo "$at_srcdir/t_test_program_compare.at:73: \$({
6016    old=\$(pwd)
6017    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6018        cd ..
6019    done
6020    topdir=\$(pwd)
6021    cd \${old}
6022    echo \${topdir}
6023})/bootstrap/h_tp_basic_c \\
6024                          -s \$({
6025    old=\$(pwd)
6026    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6027        cd ..
6028    done
6029    topdir=\$(pwd)
6030    cd \${old}
6031    echo \${topdir}
6032})/bootstrap -r resout pass"
6033at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:73"
6034( $at_check_trace; $({
6035    old=$(pwd)
6036    while test $(pwd) != '/' -a ! -e ./Makefile; do
6037        cd ..
6038    done
6039    topdir=$(pwd)
6040    cd ${old}
6041    echo ${topdir}
6042})/bootstrap/h_tp_basic_c \
6043                          -s $({
6044    old=$(pwd)
6045    while test $(pwd) != '/' -a ! -e ./Makefile; do
6046        cd ..
6047    done
6048    topdir=$(pwd)
6049    cd ${old}
6050    echo ${topdir}
6051})/bootstrap -r resout pass
6052) >>"$at_stdout" 2>>"$at_stderr"
6053at_status=$? at_failed=false
6054$at_check_filter
6055echo stderr:; tee stderr <"$at_stderr"
6056echo stdout:; tee stdout <"$at_stdout"
6057at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:73"
6058$at_failed && at_fn_log_failure
6059$at_traceon; }
6060
6061sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6062sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6063sed 's,tp_basic_c,tp_basic_cpp,g' <resout >resexp
6064{ set +x
6065$as_echo "$at_srcdir/t_test_program_compare.at:78: \$({
6066    old=\$(pwd)
6067    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6068        cd ..
6069    done
6070    topdir=\$(pwd)
6071    cd \${old}
6072    echo \${topdir}
6073})/bootstrap/h_tp_basic_cpp \\
6074                          -s \$({
6075    old=\$(pwd)
6076    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6077        cd ..
6078    done
6079    topdir=\$(pwd)
6080    cd \${old}
6081    echo \${topdir}
6082})/bootstrap -r resout pass"
6083at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:78"
6084( $at_check_trace; $({
6085    old=$(pwd)
6086    while test $(pwd) != '/' -a ! -e ./Makefile; do
6087        cd ..
6088    done
6089    topdir=$(pwd)
6090    cd ${old}
6091    echo ${topdir}
6092})/bootstrap/h_tp_basic_cpp \
6093                          -s $({
6094    old=$(pwd)
6095    while test $(pwd) != '/' -a ! -e ./Makefile; do
6096        cd ..
6097    done
6098    topdir=$(pwd)
6099    cd ${old}
6100    echo ${topdir}
6101})/bootstrap -r resout pass
6102) >>"$at_stdout" 2>>"$at_stderr"
6103at_status=$? at_failed=false
6104$at_check_filter
6105$at_diff experr "$at_stderr" || at_failed=:
6106$at_diff expout "$at_stdout" || at_failed=:
6107at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:78"
6108$at_failed && at_fn_log_failure
6109$at_traceon; }
6110
6111{ set +x
6112$as_echo "$at_srcdir/t_test_program_compare.at:80: cmp -s resout resexp"
6113at_fn_check_prepare_trace "t_test_program_compare.at:80"
6114( $at_check_trace; cmp -s resout resexp
6115) >>"$at_stdout" 2>>"$at_stderr"
6116at_status=$? at_failed=false
6117$at_check_filter
6118at_fn_diff_devnull "$at_stderr" || at_failed=:
6119at_fn_diff_devnull "$at_stdout" || at_failed=:
6120at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:80"
6121$at_failed && at_fn_log_failure
6122$at_traceon; }
6123
6124sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6125sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6126sed 's,tp_basic_c,tp_basic_sh,g' <resout >resexp
6127{ set +x
6128$as_echo "$at_srcdir/t_test_program_compare.at:84: \$({
6129    old=\$(pwd)
6130    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6131        cd ..
6132    done
6133    topdir=\$(pwd)
6134    cd \${old}
6135    echo \${topdir}
6136})/bootstrap/h_tp_basic_sh \\
6137                          -s \$({
6138    old=\$(pwd)
6139    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6140        cd ..
6141    done
6142    topdir=\$(pwd)
6143    cd \${old}
6144    echo \${topdir}
6145})/bootstrap -r resout pass"
6146at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:84"
6147( $at_check_trace; $({
6148    old=$(pwd)
6149    while test $(pwd) != '/' -a ! -e ./Makefile; do
6150        cd ..
6151    done
6152    topdir=$(pwd)
6153    cd ${old}
6154    echo ${topdir}
6155})/bootstrap/h_tp_basic_sh \
6156                          -s $({
6157    old=$(pwd)
6158    while test $(pwd) != '/' -a ! -e ./Makefile; do
6159        cd ..
6160    done
6161    topdir=$(pwd)
6162    cd ${old}
6163    echo ${topdir}
6164})/bootstrap -r resout pass
6165) >>"$at_stdout" 2>>"$at_stderr"
6166at_status=$? at_failed=false
6167$at_check_filter
6168$at_diff experr "$at_stderr" || at_failed=:
6169$at_diff expout "$at_stdout" || at_failed=:
6170at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:84"
6171$at_failed && at_fn_log_failure
6172$at_traceon; }
6173
6174{ set +x
6175$as_echo "$at_srcdir/t_test_program_compare.at:86: cmp -s resout resexp"
6176at_fn_check_prepare_trace "t_test_program_compare.at:86"
6177( $at_check_trace; cmp -s resout resexp
6178) >>"$at_stdout" 2>>"$at_stderr"
6179at_status=$? at_failed=false
6180$at_check_filter
6181at_fn_diff_devnull "$at_stderr" || at_failed=:
6182at_fn_diff_devnull "$at_stdout" || at_failed=:
6183at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:86"
6184$at_failed && at_fn_log_failure
6185$at_traceon; }
6186
6187
6188{ set +x
6189$as_echo "$at_srcdir/t_test_program_compare.at:89: \$({
6190    old=\$(pwd)
6191    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6192        cd ..
6193    done
6194    topdir=\$(pwd)
6195    cd \${old}
6196    echo \${topdir}
6197})/bootstrap/h_tp_basic_c \\
6198                          -s \$({
6199    old=\$(pwd)
6200    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6201        cd ..
6202    done
6203    topdir=\$(pwd)
6204    cd \${old}
6205    echo \${topdir}
6206})/bootstrap -r resout fail"
6207at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:89"
6208( $at_check_trace; $({
6209    old=$(pwd)
6210    while test $(pwd) != '/' -a ! -e ./Makefile; do
6211        cd ..
6212    done
6213    topdir=$(pwd)
6214    cd ${old}
6215    echo ${topdir}
6216})/bootstrap/h_tp_basic_c \
6217                          -s $({
6218    old=$(pwd)
6219    while test $(pwd) != '/' -a ! -e ./Makefile; do
6220        cd ..
6221    done
6222    topdir=$(pwd)
6223    cd ${old}
6224    echo ${topdir}
6225})/bootstrap -r resout fail
6226) >>"$at_stdout" 2>>"$at_stderr"
6227at_status=$? at_failed=false
6228$at_check_filter
6229echo stderr:; tee stderr <"$at_stderr"
6230echo stdout:; tee stdout <"$at_stdout"
6231at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:89"
6232$at_failed && at_fn_log_failure
6233$at_traceon; }
6234
6235sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6236sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6237sed 's,tp_basic_c,tp_basic_cpp,g' <resout >resexp
6238{ set +x
6239$as_echo "$at_srcdir/t_test_program_compare.at:94: \$({
6240    old=\$(pwd)
6241    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6242        cd ..
6243    done
6244    topdir=\$(pwd)
6245    cd \${old}
6246    echo \${topdir}
6247})/bootstrap/h_tp_basic_cpp \\
6248                          -s \$({
6249    old=\$(pwd)
6250    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6251        cd ..
6252    done
6253    topdir=\$(pwd)
6254    cd \${old}
6255    echo \${topdir}
6256})/bootstrap -r resout fail"
6257at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:94"
6258( $at_check_trace; $({
6259    old=$(pwd)
6260    while test $(pwd) != '/' -a ! -e ./Makefile; do
6261        cd ..
6262    done
6263    topdir=$(pwd)
6264    cd ${old}
6265    echo ${topdir}
6266})/bootstrap/h_tp_basic_cpp \
6267                          -s $({
6268    old=$(pwd)
6269    while test $(pwd) != '/' -a ! -e ./Makefile; do
6270        cd ..
6271    done
6272    topdir=$(pwd)
6273    cd ${old}
6274    echo ${topdir}
6275})/bootstrap -r resout fail
6276) >>"$at_stdout" 2>>"$at_stderr"
6277at_status=$? at_failed=false
6278$at_check_filter
6279$at_diff experr "$at_stderr" || at_failed=:
6280$at_diff expout "$at_stdout" || at_failed=:
6281at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:94"
6282$at_failed && at_fn_log_failure
6283$at_traceon; }
6284
6285{ set +x
6286$as_echo "$at_srcdir/t_test_program_compare.at:96: cmp -s resout resexp"
6287at_fn_check_prepare_trace "t_test_program_compare.at:96"
6288( $at_check_trace; cmp -s resout resexp
6289) >>"$at_stdout" 2>>"$at_stderr"
6290at_status=$? at_failed=false
6291$at_check_filter
6292at_fn_diff_devnull "$at_stderr" || at_failed=:
6293at_fn_diff_devnull "$at_stdout" || at_failed=:
6294at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:96"
6295$at_failed && at_fn_log_failure
6296$at_traceon; }
6297
6298sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6299sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6300sed 's,tp_basic_c,tp_basic_sh,g' <resout >resexp
6301{ set +x
6302$as_echo "$at_srcdir/t_test_program_compare.at:100: \$({
6303    old=\$(pwd)
6304    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6305        cd ..
6306    done
6307    topdir=\$(pwd)
6308    cd \${old}
6309    echo \${topdir}
6310})/bootstrap/h_tp_basic_sh \\
6311                          -s \$({
6312    old=\$(pwd)
6313    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6314        cd ..
6315    done
6316    topdir=\$(pwd)
6317    cd \${old}
6318    echo \${topdir}
6319})/bootstrap -r resout fail"
6320at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:100"
6321( $at_check_trace; $({
6322    old=$(pwd)
6323    while test $(pwd) != '/' -a ! -e ./Makefile; do
6324        cd ..
6325    done
6326    topdir=$(pwd)
6327    cd ${old}
6328    echo ${topdir}
6329})/bootstrap/h_tp_basic_sh \
6330                          -s $({
6331    old=$(pwd)
6332    while test $(pwd) != '/' -a ! -e ./Makefile; do
6333        cd ..
6334    done
6335    topdir=$(pwd)
6336    cd ${old}
6337    echo ${topdir}
6338})/bootstrap -r resout fail
6339) >>"$at_stdout" 2>>"$at_stderr"
6340at_status=$? at_failed=false
6341$at_check_filter
6342$at_diff experr "$at_stderr" || at_failed=:
6343$at_diff expout "$at_stdout" || at_failed=:
6344at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:100"
6345$at_failed && at_fn_log_failure
6346$at_traceon; }
6347
6348{ set +x
6349$as_echo "$at_srcdir/t_test_program_compare.at:102: cmp -s resout resexp"
6350at_fn_check_prepare_trace "t_test_program_compare.at:102"
6351( $at_check_trace; cmp -s resout resexp
6352) >>"$at_stdout" 2>>"$at_stderr"
6353at_status=$? at_failed=false
6354$at_check_filter
6355at_fn_diff_devnull "$at_stderr" || at_failed=:
6356at_fn_diff_devnull "$at_stdout" || at_failed=:
6357at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:102"
6358$at_failed && at_fn_log_failure
6359$at_traceon; }
6360
6361
6362{ set +x
6363$as_echo "$at_srcdir/t_test_program_compare.at:105: \$({
6364    old=\$(pwd)
6365    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6366        cd ..
6367    done
6368    topdir=\$(pwd)
6369    cd \${old}
6370    echo \${topdir}
6371})/bootstrap/h_tp_basic_c \\
6372                          -s \$({
6373    old=\$(pwd)
6374    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6375        cd ..
6376    done
6377    topdir=\$(pwd)
6378    cd \${old}
6379    echo \${topdir}
6380})/bootstrap -r resout skip"
6381at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:105"
6382( $at_check_trace; $({
6383    old=$(pwd)
6384    while test $(pwd) != '/' -a ! -e ./Makefile; do
6385        cd ..
6386    done
6387    topdir=$(pwd)
6388    cd ${old}
6389    echo ${topdir}
6390})/bootstrap/h_tp_basic_c \
6391                          -s $({
6392    old=$(pwd)
6393    while test $(pwd) != '/' -a ! -e ./Makefile; do
6394        cd ..
6395    done
6396    topdir=$(pwd)
6397    cd ${old}
6398    echo ${topdir}
6399})/bootstrap -r resout skip
6400) >>"$at_stdout" 2>>"$at_stderr"
6401at_status=$? at_failed=false
6402$at_check_filter
6403echo stderr:; tee stderr <"$at_stderr"
6404echo stdout:; tee stdout <"$at_stdout"
6405at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:105"
6406$at_failed && at_fn_log_failure
6407$at_traceon; }
6408
6409sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6410sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6411sed 's,tp_basic_c,tp_basic_cpp,g' <resout >resexp
6412{ set +x
6413$as_echo "$at_srcdir/t_test_program_compare.at:110: \$({
6414    old=\$(pwd)
6415    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6416        cd ..
6417    done
6418    topdir=\$(pwd)
6419    cd \${old}
6420    echo \${topdir}
6421})/bootstrap/h_tp_basic_cpp \\
6422                          -s \$({
6423    old=\$(pwd)
6424    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6425        cd ..
6426    done
6427    topdir=\$(pwd)
6428    cd \${old}
6429    echo \${topdir}
6430})/bootstrap -r resout skip"
6431at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:110"
6432( $at_check_trace; $({
6433    old=$(pwd)
6434    while test $(pwd) != '/' -a ! -e ./Makefile; do
6435        cd ..
6436    done
6437    topdir=$(pwd)
6438    cd ${old}
6439    echo ${topdir}
6440})/bootstrap/h_tp_basic_cpp \
6441                          -s $({
6442    old=$(pwd)
6443    while test $(pwd) != '/' -a ! -e ./Makefile; do
6444        cd ..
6445    done
6446    topdir=$(pwd)
6447    cd ${old}
6448    echo ${topdir}
6449})/bootstrap -r resout skip
6450) >>"$at_stdout" 2>>"$at_stderr"
6451at_status=$? at_failed=false
6452$at_check_filter
6453$at_diff experr "$at_stderr" || at_failed=:
6454$at_diff expout "$at_stdout" || at_failed=:
6455at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:110"
6456$at_failed && at_fn_log_failure
6457$at_traceon; }
6458
6459{ set +x
6460$as_echo "$at_srcdir/t_test_program_compare.at:112: cmp -s resout resexp"
6461at_fn_check_prepare_trace "t_test_program_compare.at:112"
6462( $at_check_trace; cmp -s resout resexp
6463) >>"$at_stdout" 2>>"$at_stderr"
6464at_status=$? at_failed=false
6465$at_check_filter
6466at_fn_diff_devnull "$at_stderr" || at_failed=:
6467at_fn_diff_devnull "$at_stdout" || at_failed=:
6468at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:112"
6469$at_failed && at_fn_log_failure
6470$at_traceon; }
6471
6472sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6473sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6474sed 's,tp_basic_c,tp_basic_sh,g' <resout >resexp
6475{ set +x
6476$as_echo "$at_srcdir/t_test_program_compare.at:116: \$({
6477    old=\$(pwd)
6478    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6479        cd ..
6480    done
6481    topdir=\$(pwd)
6482    cd \${old}
6483    echo \${topdir}
6484})/bootstrap/h_tp_basic_sh \\
6485                          -s \$({
6486    old=\$(pwd)
6487    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6488        cd ..
6489    done
6490    topdir=\$(pwd)
6491    cd \${old}
6492    echo \${topdir}
6493})/bootstrap -r resout skip"
6494at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:116"
6495( $at_check_trace; $({
6496    old=$(pwd)
6497    while test $(pwd) != '/' -a ! -e ./Makefile; do
6498        cd ..
6499    done
6500    topdir=$(pwd)
6501    cd ${old}
6502    echo ${topdir}
6503})/bootstrap/h_tp_basic_sh \
6504                          -s $({
6505    old=$(pwd)
6506    while test $(pwd) != '/' -a ! -e ./Makefile; do
6507        cd ..
6508    done
6509    topdir=$(pwd)
6510    cd ${old}
6511    echo ${topdir}
6512})/bootstrap -r resout skip
6513) >>"$at_stdout" 2>>"$at_stderr"
6514at_status=$? at_failed=false
6515$at_check_filter
6516$at_diff experr "$at_stderr" || at_failed=:
6517$at_diff expout "$at_stdout" || at_failed=:
6518at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:116"
6519$at_failed && at_fn_log_failure
6520$at_traceon; }
6521
6522{ set +x
6523$as_echo "$at_srcdir/t_test_program_compare.at:118: cmp -s resout resexp"
6524at_fn_check_prepare_trace "t_test_program_compare.at:118"
6525( $at_check_trace; cmp -s resout resexp
6526) >>"$at_stdout" 2>>"$at_stderr"
6527at_status=$? at_failed=false
6528$at_check_filter
6529at_fn_diff_devnull "$at_stderr" || at_failed=:
6530at_fn_diff_devnull "$at_stdout" || at_failed=:
6531at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:118"
6532$at_failed && at_fn_log_failure
6533$at_traceon; }
6534
6535
6536{ set +x
6537$as_echo "$at_srcdir/t_test_program_compare.at:121: \$({
6538    old=\$(pwd)
6539    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6540        cd ..
6541    done
6542    topdir=\$(pwd)
6543    cd \${old}
6544    echo \${topdir}
6545})/bootstrap/h_tp_basic_c \\
6546                          -s \$({
6547    old=\$(pwd)
6548    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6549        cd ..
6550    done
6551    topdir=\$(pwd)
6552    cd \${old}
6553    echo \${topdir}
6554})/bootstrap -r resout default"
6555at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:121"
6556( $at_check_trace; $({
6557    old=$(pwd)
6558    while test $(pwd) != '/' -a ! -e ./Makefile; do
6559        cd ..
6560    done
6561    topdir=$(pwd)
6562    cd ${old}
6563    echo ${topdir}
6564})/bootstrap/h_tp_basic_c \
6565                          -s $({
6566    old=$(pwd)
6567    while test $(pwd) != '/' -a ! -e ./Makefile; do
6568        cd ..
6569    done
6570    topdir=$(pwd)
6571    cd ${old}
6572    echo ${topdir}
6573})/bootstrap -r resout default
6574) >>"$at_stdout" 2>>"$at_stderr"
6575at_status=$? at_failed=false
6576$at_check_filter
6577echo stderr:; tee stderr <"$at_stderr"
6578echo stdout:; tee stdout <"$at_stdout"
6579at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:121"
6580$at_failed && at_fn_log_failure
6581$at_traceon; }
6582
6583sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6584sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6585sed 's,tp_basic_c,tp_basic_cpp,g' <resout >resexp
6586{ set +x
6587$as_echo "$at_srcdir/t_test_program_compare.at:126: \$({
6588    old=\$(pwd)
6589    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6590        cd ..
6591    done
6592    topdir=\$(pwd)
6593    cd \${old}
6594    echo \${topdir}
6595})/bootstrap/h_tp_basic_cpp \\
6596                          -s \$({
6597    old=\$(pwd)
6598    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6599        cd ..
6600    done
6601    topdir=\$(pwd)
6602    cd \${old}
6603    echo \${topdir}
6604})/bootstrap -r resout default"
6605at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:126"
6606( $at_check_trace; $({
6607    old=$(pwd)
6608    while test $(pwd) != '/' -a ! -e ./Makefile; do
6609        cd ..
6610    done
6611    topdir=$(pwd)
6612    cd ${old}
6613    echo ${topdir}
6614})/bootstrap/h_tp_basic_cpp \
6615                          -s $({
6616    old=$(pwd)
6617    while test $(pwd) != '/' -a ! -e ./Makefile; do
6618        cd ..
6619    done
6620    topdir=$(pwd)
6621    cd ${old}
6622    echo ${topdir}
6623})/bootstrap -r resout default
6624) >>"$at_stdout" 2>>"$at_stderr"
6625at_status=$? at_failed=false
6626$at_check_filter
6627$at_diff experr "$at_stderr" || at_failed=:
6628$at_diff expout "$at_stdout" || at_failed=:
6629at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:126"
6630$at_failed && at_fn_log_failure
6631$at_traceon; }
6632
6633{ set +x
6634$as_echo "$at_srcdir/t_test_program_compare.at:128: cmp -s resout resexp"
6635at_fn_check_prepare_trace "t_test_program_compare.at:128"
6636( $at_check_trace; cmp -s resout resexp
6637) >>"$at_stdout" 2>>"$at_stderr"
6638at_status=$? at_failed=false
6639$at_check_filter
6640at_fn_diff_devnull "$at_stderr" || at_failed=:
6641at_fn_diff_devnull "$at_stdout" || at_failed=:
6642at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:128"
6643$at_failed && at_fn_log_failure
6644$at_traceon; }
6645
6646sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6647sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6648sed 's,tp_basic_c,tp_basic_sh,g' <resout >resexp
6649{ set +x
6650$as_echo "$at_srcdir/t_test_program_compare.at:132: \$({
6651    old=\$(pwd)
6652    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6653        cd ..
6654    done
6655    topdir=\$(pwd)
6656    cd \${old}
6657    echo \${topdir}
6658})/bootstrap/h_tp_basic_sh \\
6659                          -s \$({
6660    old=\$(pwd)
6661    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6662        cd ..
6663    done
6664    topdir=\$(pwd)
6665    cd \${old}
6666    echo \${topdir}
6667})/bootstrap -r resout default"
6668at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:132"
6669( $at_check_trace; $({
6670    old=$(pwd)
6671    while test $(pwd) != '/' -a ! -e ./Makefile; do
6672        cd ..
6673    done
6674    topdir=$(pwd)
6675    cd ${old}
6676    echo ${topdir}
6677})/bootstrap/h_tp_basic_sh \
6678                          -s $({
6679    old=$(pwd)
6680    while test $(pwd) != '/' -a ! -e ./Makefile; do
6681        cd ..
6682    done
6683    topdir=$(pwd)
6684    cd ${old}
6685    echo ${topdir}
6686})/bootstrap -r resout default
6687) >>"$at_stdout" 2>>"$at_stderr"
6688at_status=$? at_failed=false
6689$at_check_filter
6690$at_diff experr "$at_stderr" || at_failed=:
6691$at_diff expout "$at_stdout" || at_failed=:
6692at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:132"
6693$at_failed && at_fn_log_failure
6694$at_traceon; }
6695
6696{ set +x
6697$as_echo "$at_srcdir/t_test_program_compare.at:134: cmp -s resout resexp"
6698at_fn_check_prepare_trace "t_test_program_compare.at:134"
6699( $at_check_trace; cmp -s resout resexp
6700) >>"$at_stdout" 2>>"$at_stderr"
6701at_status=$? at_failed=false
6702$at_check_filter
6703at_fn_diff_devnull "$at_stderr" || at_failed=:
6704at_fn_diff_devnull "$at_stdout" || at_failed=:
6705at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:134"
6706$at_failed && at_fn_log_failure
6707$at_traceon; }
6708
6709
6710{ set +x
6711$as_echo "$at_srcdir/t_test_program_compare.at:137: \$({
6712    old=\$(pwd)
6713    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6714        cd ..
6715    done
6716    topdir=\$(pwd)
6717    cd \${old}
6718    echo \${topdir}
6719})/bootstrap/h_tp_basic_c \\
6720                          -s \$({
6721    old=\$(pwd)
6722    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6723        cd ..
6724    done
6725    topdir=\$(pwd)
6726    cd \${old}
6727    echo \${topdir}
6728})/bootstrap pass fail"
6729at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:137"
6730( $at_check_trace; $({
6731    old=$(pwd)
6732    while test $(pwd) != '/' -a ! -e ./Makefile; do
6733        cd ..
6734    done
6735    topdir=$(pwd)
6736    cd ${old}
6737    echo ${topdir}
6738})/bootstrap/h_tp_basic_c \
6739                          -s $({
6740    old=$(pwd)
6741    while test $(pwd) != '/' -a ! -e ./Makefile; do
6742        cd ..
6743    done
6744    topdir=$(pwd)
6745    cd ${old}
6746    echo ${topdir}
6747})/bootstrap pass fail
6748) >>"$at_stdout" 2>>"$at_stderr"
6749at_status=$? at_failed=false
6750$at_check_filter
6751echo stderr:; tee stderr <"$at_stderr"
6752echo stdout:; tee stdout <"$at_stdout"
6753at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:137"
6754$at_failed && at_fn_log_failure
6755$at_traceon; }
6756
6757sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6758sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6759{ set +x
6760$as_echo "$at_srcdir/t_test_program_compare.at:141: \$({
6761    old=\$(pwd)
6762    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6763        cd ..
6764    done
6765    topdir=\$(pwd)
6766    cd \${old}
6767    echo \${topdir}
6768})/bootstrap/h_tp_basic_cpp \\
6769                          -s \$({
6770    old=\$(pwd)
6771    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6772        cd ..
6773    done
6774    topdir=\$(pwd)
6775    cd \${old}
6776    echo \${topdir}
6777})/bootstrap pass fail"
6778at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:141"
6779( $at_check_trace; $({
6780    old=$(pwd)
6781    while test $(pwd) != '/' -a ! -e ./Makefile; do
6782        cd ..
6783    done
6784    topdir=$(pwd)
6785    cd ${old}
6786    echo ${topdir}
6787})/bootstrap/h_tp_basic_cpp \
6788                          -s $({
6789    old=$(pwd)
6790    while test $(pwd) != '/' -a ! -e ./Makefile; do
6791        cd ..
6792    done
6793    topdir=$(pwd)
6794    cd ${old}
6795    echo ${topdir}
6796})/bootstrap pass fail
6797) >>"$at_stdout" 2>>"$at_stderr"
6798at_status=$? at_failed=false
6799$at_check_filter
6800$at_diff experr "$at_stderr" || at_failed=:
6801$at_diff expout "$at_stdout" || at_failed=:
6802at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:141"
6803$at_failed && at_fn_log_failure
6804$at_traceon; }
6805
6806sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6807sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6808{ set +x
6809$as_echo "$at_srcdir/t_test_program_compare.at:145: \$({
6810    old=\$(pwd)
6811    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6812        cd ..
6813    done
6814    topdir=\$(pwd)
6815    cd \${old}
6816    echo \${topdir}
6817})/bootstrap/h_tp_basic_sh \\
6818                          -s \$({
6819    old=\$(pwd)
6820    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6821        cd ..
6822    done
6823    topdir=\$(pwd)
6824    cd \${old}
6825    echo \${topdir}
6826})/bootstrap pass fail"
6827at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:145"
6828( $at_check_trace; $({
6829    old=$(pwd)
6830    while test $(pwd) != '/' -a ! -e ./Makefile; do
6831        cd ..
6832    done
6833    topdir=$(pwd)
6834    cd ${old}
6835    echo ${topdir}
6836})/bootstrap/h_tp_basic_sh \
6837                          -s $({
6838    old=$(pwd)
6839    while test $(pwd) != '/' -a ! -e ./Makefile; do
6840        cd ..
6841    done
6842    topdir=$(pwd)
6843    cd ${old}
6844    echo ${topdir}
6845})/bootstrap pass fail
6846) >>"$at_stdout" 2>>"$at_stderr"
6847at_status=$? at_failed=false
6848$at_check_filter
6849$at_diff experr "$at_stderr" || at_failed=:
6850$at_diff expout "$at_stdout" || at_failed=:
6851at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:145"
6852$at_failed && at_fn_log_failure
6853$at_traceon; }
6854
6855
6856{ set +x
6857$as_echo "$at_srcdir/t_test_program_compare.at:149: \$({
6858    old=\$(pwd)
6859    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6860        cd ..
6861    done
6862    topdir=\$(pwd)
6863    cd \${old}
6864    echo \${topdir}
6865})/bootstrap/h_tp_basic_c \\
6866                          -s \$({
6867    old=\$(pwd)
6868    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6869        cd ..
6870    done
6871    topdir=\$(pwd)
6872    cd \${old}
6873    echo \${topdir}
6874})/bootstrap unknown"
6875at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:149"
6876( $at_check_trace; $({
6877    old=$(pwd)
6878    while test $(pwd) != '/' -a ! -e ./Makefile; do
6879        cd ..
6880    done
6881    topdir=$(pwd)
6882    cd ${old}
6883    echo ${topdir}
6884})/bootstrap/h_tp_basic_c \
6885                          -s $({
6886    old=$(pwd)
6887    while test $(pwd) != '/' -a ! -e ./Makefile; do
6888        cd ..
6889    done
6890    topdir=$(pwd)
6891    cd ${old}
6892    echo ${topdir}
6893})/bootstrap unknown
6894) >>"$at_stdout" 2>>"$at_stderr"
6895at_status=$? at_failed=false
6896$at_check_filter
6897echo stderr:; tee stderr <"$at_stderr"
6898echo stdout:; tee stdout <"$at_stdout"
6899at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:149"
6900$at_failed && at_fn_log_failure
6901$at_traceon; }
6902
6903sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
6904sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
6905{ set +x
6906$as_echo "$at_srcdir/t_test_program_compare.at:153: \$({
6907    old=\$(pwd)
6908    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6909        cd ..
6910    done
6911    topdir=\$(pwd)
6912    cd \${old}
6913    echo \${topdir}
6914})/bootstrap/h_tp_basic_cpp \\
6915                          -s \$({
6916    old=\$(pwd)
6917    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6918        cd ..
6919    done
6920    topdir=\$(pwd)
6921    cd \${old}
6922    echo \${topdir}
6923})/bootstrap unknown"
6924at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:153"
6925( $at_check_trace; $({
6926    old=$(pwd)
6927    while test $(pwd) != '/' -a ! -e ./Makefile; do
6928        cd ..
6929    done
6930    topdir=$(pwd)
6931    cd ${old}
6932    echo ${topdir}
6933})/bootstrap/h_tp_basic_cpp \
6934                          -s $({
6935    old=$(pwd)
6936    while test $(pwd) != '/' -a ! -e ./Makefile; do
6937        cd ..
6938    done
6939    topdir=$(pwd)
6940    cd ${old}
6941    echo ${topdir}
6942})/bootstrap unknown
6943) >>"$at_stdout" 2>>"$at_stderr"
6944at_status=$? at_failed=false
6945$at_check_filter
6946$at_diff experr "$at_stderr" || at_failed=:
6947$at_diff expout "$at_stdout" || at_failed=:
6948at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:153"
6949$at_failed && at_fn_log_failure
6950$at_traceon; }
6951
6952sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
6953sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
6954{ set +x
6955$as_echo "$at_srcdir/t_test_program_compare.at:157: \$({
6956    old=\$(pwd)
6957    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6958        cd ..
6959    done
6960    topdir=\$(pwd)
6961    cd \${old}
6962    echo \${topdir}
6963})/bootstrap/h_tp_basic_sh \\
6964                          -s \$({
6965    old=\$(pwd)
6966    while test \$(pwd) != '/' -a ! -e ./Makefile; do
6967        cd ..
6968    done
6969    topdir=\$(pwd)
6970    cd \${old}
6971    echo \${topdir}
6972})/bootstrap unknown"
6973at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:157"
6974( $at_check_trace; $({
6975    old=$(pwd)
6976    while test $(pwd) != '/' -a ! -e ./Makefile; do
6977        cd ..
6978    done
6979    topdir=$(pwd)
6980    cd ${old}
6981    echo ${topdir}
6982})/bootstrap/h_tp_basic_sh \
6983                          -s $({
6984    old=$(pwd)
6985    while test $(pwd) != '/' -a ! -e ./Makefile; do
6986        cd ..
6987    done
6988    topdir=$(pwd)
6989    cd ${old}
6990    echo ${topdir}
6991})/bootstrap unknown
6992) >>"$at_stdout" 2>>"$at_stderr"
6993at_status=$? at_failed=false
6994$at_check_filter
6995$at_diff experr "$at_stderr" || at_failed=:
6996$at_diff expout "$at_stdout" || at_failed=:
6997at_fn_check_status 1 $at_status "$at_srcdir/t_test_program_compare.at:157"
6998$at_failed && at_fn_log_failure
6999$at_traceon; }
7000
7001
7002{ set +x
7003$as_echo "$at_srcdir/t_test_program_compare.at:161: \$({
7004    old=\$(pwd)
7005    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7006        cd ..
7007    done
7008    topdir=\$(pwd)
7009    cd \${old}
7010    echo \${topdir}
7011})/bootstrap/h_tp_basic_c \\
7012                          -s \$({
7013    old=\$(pwd)
7014    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7015        cd ..
7016    done
7017    topdir=\$(pwd)
7018    cd \${old}
7019    echo \${topdir}
7020})/bootstrap pass:cleanup"
7021at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:161"
7022( $at_check_trace; $({
7023    old=$(pwd)
7024    while test $(pwd) != '/' -a ! -e ./Makefile; do
7025        cd ..
7026    done
7027    topdir=$(pwd)
7028    cd ${old}
7029    echo ${topdir}
7030})/bootstrap/h_tp_basic_c \
7031                          -s $({
7032    old=$(pwd)
7033    while test $(pwd) != '/' -a ! -e ./Makefile; do
7034        cd ..
7035    done
7036    topdir=$(pwd)
7037    cd ${old}
7038    echo ${topdir}
7039})/bootstrap pass:cleanup
7040) >>"$at_stdout" 2>>"$at_stderr"
7041at_status=$? at_failed=false
7042$at_check_filter
7043echo stderr:; tee stderr <"$at_stderr"
7044echo stdout:; tee stdout <"$at_stdout"
7045at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:161"
7046$at_failed && at_fn_log_failure
7047$at_traceon; }
7048
7049sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
7050sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
7051{ set +x
7052$as_echo "$at_srcdir/t_test_program_compare.at:165: \$({
7053    old=\$(pwd)
7054    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7055        cd ..
7056    done
7057    topdir=\$(pwd)
7058    cd \${old}
7059    echo \${topdir}
7060})/bootstrap/h_tp_basic_cpp \\
7061                          -s \$({
7062    old=\$(pwd)
7063    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7064        cd ..
7065    done
7066    topdir=\$(pwd)
7067    cd \${old}
7068    echo \${topdir}
7069})/bootstrap pass:cleanup"
7070at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:165"
7071( $at_check_trace; $({
7072    old=$(pwd)
7073    while test $(pwd) != '/' -a ! -e ./Makefile; do
7074        cd ..
7075    done
7076    topdir=$(pwd)
7077    cd ${old}
7078    echo ${topdir}
7079})/bootstrap/h_tp_basic_cpp \
7080                          -s $({
7081    old=$(pwd)
7082    while test $(pwd) != '/' -a ! -e ./Makefile; do
7083        cd ..
7084    done
7085    topdir=$(pwd)
7086    cd ${old}
7087    echo ${topdir}
7088})/bootstrap pass:cleanup
7089) >>"$at_stdout" 2>>"$at_stderr"
7090at_status=$? at_failed=false
7091$at_check_filter
7092$at_diff experr "$at_stderr" || at_failed=:
7093$at_diff expout "$at_stdout" || at_failed=:
7094at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:165"
7095$at_failed && at_fn_log_failure
7096$at_traceon; }
7097
7098sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
7099sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
7100{ set +x
7101$as_echo "$at_srcdir/t_test_program_compare.at:169: \$({
7102    old=\$(pwd)
7103    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7104        cd ..
7105    done
7106    topdir=\$(pwd)
7107    cd \${old}
7108    echo \${topdir}
7109})/bootstrap/h_tp_basic_sh \\
7110                          -s \$({
7111    old=\$(pwd)
7112    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7113        cd ..
7114    done
7115    topdir=\$(pwd)
7116    cd \${old}
7117    echo \${topdir}
7118})/bootstrap pass:cleanup"
7119at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:169"
7120( $at_check_trace; $({
7121    old=$(pwd)
7122    while test $(pwd) != '/' -a ! -e ./Makefile; do
7123        cd ..
7124    done
7125    topdir=$(pwd)
7126    cd ${old}
7127    echo ${topdir}
7128})/bootstrap/h_tp_basic_sh \
7129                          -s $({
7130    old=$(pwd)
7131    while test $(pwd) != '/' -a ! -e ./Makefile; do
7132        cd ..
7133    done
7134    topdir=$(pwd)
7135    cd ${old}
7136    echo ${topdir}
7137})/bootstrap pass:cleanup
7138) >>"$at_stdout" 2>>"$at_stderr"
7139at_status=$? at_failed=false
7140$at_check_filter
7141$at_diff experr "$at_stderr" || at_failed=:
7142$at_diff expout "$at_stdout" || at_failed=:
7143at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:169"
7144$at_failed && at_fn_log_failure
7145$at_traceon; }
7146
7147
7148{ set +x
7149$as_echo "$at_srcdir/t_test_program_compare.at:173: \$({
7150    old=\$(pwd)
7151    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7152        cd ..
7153    done
7154    topdir=\$(pwd)
7155    cd \${old}
7156    echo \${topdir}
7157})/bootstrap/h_tp_basic_c \\
7158                          -s \$({
7159    old=\$(pwd)
7160    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7161        cd ..
7162    done
7163    topdir=\$(pwd)
7164    cd \${old}
7165    echo \${topdir}
7166})/bootstrap skip"
7167at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:173"
7168( $at_check_trace; $({
7169    old=$(pwd)
7170    while test $(pwd) != '/' -a ! -e ./Makefile; do
7171        cd ..
7172    done
7173    topdir=$(pwd)
7174    cd ${old}
7175    echo ${topdir}
7176})/bootstrap/h_tp_basic_c \
7177                          -s $({
7178    old=$(pwd)
7179    while test $(pwd) != '/' -a ! -e ./Makefile; do
7180        cd ..
7181    done
7182    topdir=$(pwd)
7183    cd ${old}
7184    echo ${topdir}
7185})/bootstrap skip
7186) >>"$at_stdout" 2>>"$at_stderr"
7187at_status=$? at_failed=false
7188$at_check_filter
7189echo stderr:; tee stderr <"$at_stderr"
7190echo stdout:; tee stdout <"$at_stdout"
7191at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:173"
7192$at_failed && at_fn_log_failure
7193$at_traceon; }
7194
7195sed 's,tp_basic_c,tp_basic_cpp,g' <stdout >expout
7196sed 's,tp_basic_c,tp_basic_cpp,g' <stderr >experr
7197{ set +x
7198$as_echo "$at_srcdir/t_test_program_compare.at:177: \$({
7199    old=\$(pwd)
7200    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7201        cd ..
7202    done
7203    topdir=\$(pwd)
7204    cd \${old}
7205    echo \${topdir}
7206})/bootstrap/h_tp_basic_cpp \\
7207                          -s \$({
7208    old=\$(pwd)
7209    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7210        cd ..
7211    done
7212    topdir=\$(pwd)
7213    cd \${old}
7214    echo \${topdir}
7215})/bootstrap skip"
7216at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:177"
7217( $at_check_trace; $({
7218    old=$(pwd)
7219    while test $(pwd) != '/' -a ! -e ./Makefile; do
7220        cd ..
7221    done
7222    topdir=$(pwd)
7223    cd ${old}
7224    echo ${topdir}
7225})/bootstrap/h_tp_basic_cpp \
7226                          -s $({
7227    old=$(pwd)
7228    while test $(pwd) != '/' -a ! -e ./Makefile; do
7229        cd ..
7230    done
7231    topdir=$(pwd)
7232    cd ${old}
7233    echo ${topdir}
7234})/bootstrap skip
7235) >>"$at_stdout" 2>>"$at_stderr"
7236at_status=$? at_failed=false
7237$at_check_filter
7238$at_diff experr "$at_stderr" || at_failed=:
7239$at_diff expout "$at_stdout" || at_failed=:
7240at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:177"
7241$at_failed && at_fn_log_failure
7242$at_traceon; }
7243
7244sed 's,tp_basic_c,tp_basic_sh,g' <stdout >expout
7245sed 's,tp_basic_c,tp_basic_sh,g' <stderr >experr
7246{ set +x
7247$as_echo "$at_srcdir/t_test_program_compare.at:181: \$({
7248    old=\$(pwd)
7249    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7250        cd ..
7251    done
7252    topdir=\$(pwd)
7253    cd \${old}
7254    echo \${topdir}
7255})/bootstrap/h_tp_basic_sh \\
7256                          -s \$({
7257    old=\$(pwd)
7258    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7259        cd ..
7260    done
7261    topdir=\$(pwd)
7262    cd \${old}
7263    echo \${topdir}
7264})/bootstrap skip"
7265at_fn_check_prepare_notrace 'a $(...) command substitution' "t_test_program_compare.at:181"
7266( $at_check_trace; $({
7267    old=$(pwd)
7268    while test $(pwd) != '/' -a ! -e ./Makefile; do
7269        cd ..
7270    done
7271    topdir=$(pwd)
7272    cd ${old}
7273    echo ${topdir}
7274})/bootstrap/h_tp_basic_sh \
7275                          -s $({
7276    old=$(pwd)
7277    while test $(pwd) != '/' -a ! -e ./Makefile; do
7278        cd ..
7279    done
7280    topdir=$(pwd)
7281    cd ${old}
7282    echo ${topdir}
7283})/bootstrap skip
7284) >>"$at_stdout" 2>>"$at_stderr"
7285at_status=$? at_failed=false
7286$at_check_filter
7287$at_diff experr "$at_stderr" || at_failed=:
7288$at_diff expout "$at_stdout" || at_failed=:
7289at_fn_check_status 0 $at_status "$at_srcdir/t_test_program_compare.at:181"
7290$at_failed && at_fn_log_failure
7291$at_traceon; }
7292
7293
7294  set +x
7295  $at_times_p && times >"$at_times_file"
7296) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7297read at_status <"$at_status_file"
7298#AT_STOP_8
7299#AT_START_9
7300at_fn_group_banner 9 't_subr_atf_check.at:30' \
7301  "subr: atf_check function" "                       "
7302at_xfail=no
7303(
7304  $as_echo "9. $at_setup_line: testing $at_desc ..."
7305  $at_traceon
7306
7307
7308{ set +x
7309$as_echo "$at_srcdir/t_subr_atf_check.at:32: \$({
7310    old=\$(pwd)
7311    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7312        cd ..
7313    done
7314    topdir=\$(pwd)
7315    cd \${old}
7316    echo \${topdir}
7317})/bootstrap/h_tp_atf_check_sh \\
7318                          -s \$({
7319    old=\$(pwd)
7320    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7321        cd ..
7322    done
7323    topdir=\$(pwd)
7324    cd \${old}
7325    echo \${topdir}
7326})/bootstrap exitcode_0_0"
7327at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:32"
7328( $at_check_trace; $({
7329    old=$(pwd)
7330    while test $(pwd) != '/' -a ! -e ./Makefile; do
7331        cd ..
7332    done
7333    topdir=$(pwd)
7334    cd ${old}
7335    echo ${topdir}
7336})/bootstrap/h_tp_atf_check_sh \
7337                          -s $({
7338    old=$(pwd)
7339    while test $(pwd) != '/' -a ! -e ./Makefile; do
7340        cd ..
7341    done
7342    topdir=$(pwd)
7343    cd ${old}
7344    echo ${topdir}
7345})/bootstrap exitcode_0_0
7346) >>"$at_stdout" 2>>"$at_stderr"
7347at_status=$? at_failed=false
7348$at_check_filter
7349echo stderr:; cat "$at_stderr"
7350echo stdout:; cat "$at_stdout"
7351at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:32"
7352$at_failed && at_fn_log_failure
7353$at_traceon; }
7354
7355{ set +x
7356$as_echo "$at_srcdir/t_subr_atf_check.at:34: \$({
7357    old=\$(pwd)
7358    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7359        cd ..
7360    done
7361    topdir=\$(pwd)
7362    cd \${old}
7363    echo \${topdir}
7364})/bootstrap/h_tp_atf_check_sh \\
7365                          -s \$({
7366    old=\$(pwd)
7367    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7368        cd ..
7369    done
7370    topdir=\$(pwd)
7371    cd \${old}
7372    echo \${topdir}
7373})/bootstrap exitcode_0_1"
7374at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:34"
7375( $at_check_trace; $({
7376    old=$(pwd)
7377    while test $(pwd) != '/' -a ! -e ./Makefile; do
7378        cd ..
7379    done
7380    topdir=$(pwd)
7381    cd ${old}
7382    echo ${topdir}
7383})/bootstrap/h_tp_atf_check_sh \
7384                          -s $({
7385    old=$(pwd)
7386    while test $(pwd) != '/' -a ! -e ./Makefile; do
7387        cd ..
7388    done
7389    topdir=$(pwd)
7390    cd ${old}
7391    echo ${topdir}
7392})/bootstrap exitcode_0_1
7393) >>"$at_stdout" 2>>"$at_stderr"
7394at_status=$? at_failed=false
7395$at_check_filter
7396echo stderr:; cat "$at_stderr"
7397echo stdout:; cat "$at_stdout"
7398at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:34"
7399$at_failed && at_fn_log_failure
7400$at_traceon; }
7401
7402{ set +x
7403$as_echo "$at_srcdir/t_subr_atf_check.at:36: \$({
7404    old=\$(pwd)
7405    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7406        cd ..
7407    done
7408    topdir=\$(pwd)
7409    cd \${old}
7410    echo \${topdir}
7411})/bootstrap/h_tp_atf_check_sh \\
7412                          -s \$({
7413    old=\$(pwd)
7414    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7415        cd ..
7416    done
7417    topdir=\$(pwd)
7418    cd \${old}
7419    echo \${topdir}
7420})/bootstrap exitcode_1_0"
7421at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:36"
7422( $at_check_trace; $({
7423    old=$(pwd)
7424    while test $(pwd) != '/' -a ! -e ./Makefile; do
7425        cd ..
7426    done
7427    topdir=$(pwd)
7428    cd ${old}
7429    echo ${topdir}
7430})/bootstrap/h_tp_atf_check_sh \
7431                          -s $({
7432    old=$(pwd)
7433    while test $(pwd) != '/' -a ! -e ./Makefile; do
7434        cd ..
7435    done
7436    topdir=$(pwd)
7437    cd ${old}
7438    echo ${topdir}
7439})/bootstrap exitcode_1_0
7440) >>"$at_stdout" 2>>"$at_stderr"
7441at_status=$? at_failed=false
7442$at_check_filter
7443echo stderr:; cat "$at_stderr"
7444echo stdout:; cat "$at_stdout"
7445at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:36"
7446$at_failed && at_fn_log_failure
7447$at_traceon; }
7448
7449{ set +x
7450$as_echo "$at_srcdir/t_subr_atf_check.at:38: \$({
7451    old=\$(pwd)
7452    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7453        cd ..
7454    done
7455    topdir=\$(pwd)
7456    cd \${old}
7457    echo \${topdir}
7458})/bootstrap/h_tp_atf_check_sh \\
7459                          -s \$({
7460    old=\$(pwd)
7461    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7462        cd ..
7463    done
7464    topdir=\$(pwd)
7465    cd \${old}
7466    echo \${topdir}
7467})/bootstrap exitcode_1_1"
7468at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:38"
7469( $at_check_trace; $({
7470    old=$(pwd)
7471    while test $(pwd) != '/' -a ! -e ./Makefile; do
7472        cd ..
7473    done
7474    topdir=$(pwd)
7475    cd ${old}
7476    echo ${topdir}
7477})/bootstrap/h_tp_atf_check_sh \
7478                          -s $({
7479    old=$(pwd)
7480    while test $(pwd) != '/' -a ! -e ./Makefile; do
7481        cd ..
7482    done
7483    topdir=$(pwd)
7484    cd ${old}
7485    echo ${topdir}
7486})/bootstrap exitcode_1_1
7487) >>"$at_stdout" 2>>"$at_stderr"
7488at_status=$? at_failed=false
7489$at_check_filter
7490echo stderr:; cat "$at_stderr"
7491echo stdout:; cat "$at_stdout"
7492at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:38"
7493$at_failed && at_fn_log_failure
7494$at_traceon; }
7495
7496
7497{ set +x
7498$as_echo "$at_srcdir/t_subr_atf_check.at:41: \$({
7499    old=\$(pwd)
7500    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7501        cd ..
7502    done
7503    topdir=\$(pwd)
7504    cd \${old}
7505    echo \${topdir}
7506})/bootstrap/h_tp_atf_check_sh \\
7507                          -s \$({
7508    old=\$(pwd)
7509    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7510        cd ..
7511    done
7512    topdir=\$(pwd)
7513    cd \${old}
7514    echo \${topdir}
7515})/bootstrap stdout_expout_pass"
7516at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:41"
7517( $at_check_trace; $({
7518    old=$(pwd)
7519    while test $(pwd) != '/' -a ! -e ./Makefile; do
7520        cd ..
7521    done
7522    topdir=$(pwd)
7523    cd ${old}
7524    echo ${topdir}
7525})/bootstrap/h_tp_atf_check_sh \
7526                          -s $({
7527    old=$(pwd)
7528    while test $(pwd) != '/' -a ! -e ./Makefile; do
7529        cd ..
7530    done
7531    topdir=$(pwd)
7532    cd ${old}
7533    echo ${topdir}
7534})/bootstrap stdout_expout_pass
7535) >>"$at_stdout" 2>>"$at_stderr"
7536at_status=$? at_failed=false
7537$at_check_filter
7538echo stderr:; cat "$at_stderr"
7539echo stdout:; cat "$at_stdout"
7540at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:41"
7541$at_failed && at_fn_log_failure
7542$at_traceon; }
7543
7544{ set +x
7545$as_echo "$at_srcdir/t_subr_atf_check.at:43: \$({
7546    old=\$(pwd)
7547    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7548        cd ..
7549    done
7550    topdir=\$(pwd)
7551    cd \${old}
7552    echo \${topdir}
7553})/bootstrap/h_tp_atf_check_sh \\
7554                          -s \$({
7555    old=\$(pwd)
7556    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7557        cd ..
7558    done
7559    topdir=\$(pwd)
7560    cd \${old}
7561    echo \${topdir}
7562})/bootstrap stdout_expout_fail"
7563at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:43"
7564( $at_check_trace; $({
7565    old=$(pwd)
7566    while test $(pwd) != '/' -a ! -e ./Makefile; do
7567        cd ..
7568    done
7569    topdir=$(pwd)
7570    cd ${old}
7571    echo ${topdir}
7572})/bootstrap/h_tp_atf_check_sh \
7573                          -s $({
7574    old=$(pwd)
7575    while test $(pwd) != '/' -a ! -e ./Makefile; do
7576        cd ..
7577    done
7578    topdir=$(pwd)
7579    cd ${old}
7580    echo ${topdir}
7581})/bootstrap stdout_expout_fail
7582) >>"$at_stdout" 2>>"$at_stderr"
7583at_status=$? at_failed=false
7584$at_check_filter
7585echo stderr:; cat "$at_stderr"
7586echo stdout:; cat "$at_stdout"
7587at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:43"
7588$at_failed && at_fn_log_failure
7589$at_traceon; }
7590
7591{ set +x
7592$as_echo "$at_srcdir/t_subr_atf_check.at:45: \$({
7593    old=\$(pwd)
7594    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7595        cd ..
7596    done
7597    topdir=\$(pwd)
7598    cd \${old}
7599    echo \${topdir}
7600})/bootstrap/h_tp_atf_check_sh \\
7601                          -s \$({
7602    old=\$(pwd)
7603    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7604        cd ..
7605    done
7606    topdir=\$(pwd)
7607    cd \${old}
7608    echo \${topdir}
7609})/bootstrap stdout_ignore_empty"
7610at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:45"
7611( $at_check_trace; $({
7612    old=$(pwd)
7613    while test $(pwd) != '/' -a ! -e ./Makefile; do
7614        cd ..
7615    done
7616    topdir=$(pwd)
7617    cd ${old}
7618    echo ${topdir}
7619})/bootstrap/h_tp_atf_check_sh \
7620                          -s $({
7621    old=$(pwd)
7622    while test $(pwd) != '/' -a ! -e ./Makefile; do
7623        cd ..
7624    done
7625    topdir=$(pwd)
7626    cd ${old}
7627    echo ${topdir}
7628})/bootstrap stdout_ignore_empty
7629) >>"$at_stdout" 2>>"$at_stderr"
7630at_status=$? at_failed=false
7631$at_check_filter
7632echo stderr:; cat "$at_stderr"
7633echo stdout:; cat "$at_stdout"
7634at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:45"
7635$at_failed && at_fn_log_failure
7636$at_traceon; }
7637
7638{ set +x
7639$as_echo "$at_srcdir/t_subr_atf_check.at:47: \$({
7640    old=\$(pwd)
7641    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7642        cd ..
7643    done
7644    topdir=\$(pwd)
7645    cd \${old}
7646    echo \${topdir}
7647})/bootstrap/h_tp_atf_check_sh \\
7648                          -s \$({
7649    old=\$(pwd)
7650    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7651        cd ..
7652    done
7653    topdir=\$(pwd)
7654    cd \${old}
7655    echo \${topdir}
7656})/bootstrap stdout_ignore_sth"
7657at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:47"
7658( $at_check_trace; $({
7659    old=$(pwd)
7660    while test $(pwd) != '/' -a ! -e ./Makefile; do
7661        cd ..
7662    done
7663    topdir=$(pwd)
7664    cd ${old}
7665    echo ${topdir}
7666})/bootstrap/h_tp_atf_check_sh \
7667                          -s $({
7668    old=$(pwd)
7669    while test $(pwd) != '/' -a ! -e ./Makefile; do
7670        cd ..
7671    done
7672    topdir=$(pwd)
7673    cd ${old}
7674    echo ${topdir}
7675})/bootstrap stdout_ignore_sth
7676) >>"$at_stdout" 2>>"$at_stderr"
7677at_status=$? at_failed=false
7678$at_check_filter
7679echo stderr:; cat "$at_stderr"
7680echo stdout:; cat "$at_stdout"
7681at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:47"
7682$at_failed && at_fn_log_failure
7683$at_traceon; }
7684
7685{ set +x
7686$as_echo "$at_srcdir/t_subr_atf_check.at:49: \$({
7687    old=\$(pwd)
7688    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7689        cd ..
7690    done
7691    topdir=\$(pwd)
7692    cd \${old}
7693    echo \${topdir}
7694})/bootstrap/h_tp_atf_check_sh \\
7695                          -s \$({
7696    old=\$(pwd)
7697    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7698        cd ..
7699    done
7700    topdir=\$(pwd)
7701    cd \${old}
7702    echo \${topdir}
7703})/bootstrap stdout_null_empty"
7704at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:49"
7705( $at_check_trace; $({
7706    old=$(pwd)
7707    while test $(pwd) != '/' -a ! -e ./Makefile; do
7708        cd ..
7709    done
7710    topdir=$(pwd)
7711    cd ${old}
7712    echo ${topdir}
7713})/bootstrap/h_tp_atf_check_sh \
7714                          -s $({
7715    old=$(pwd)
7716    while test $(pwd) != '/' -a ! -e ./Makefile; do
7717        cd ..
7718    done
7719    topdir=$(pwd)
7720    cd ${old}
7721    echo ${topdir}
7722})/bootstrap stdout_null_empty
7723) >>"$at_stdout" 2>>"$at_stderr"
7724at_status=$? at_failed=false
7725$at_check_filter
7726echo stderr:; cat "$at_stderr"
7727echo stdout:; cat "$at_stdout"
7728at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:49"
7729$at_failed && at_fn_log_failure
7730$at_traceon; }
7731
7732{ set +x
7733$as_echo "$at_srcdir/t_subr_atf_check.at:51: \$({
7734    old=\$(pwd)
7735    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7736        cd ..
7737    done
7738    topdir=\$(pwd)
7739    cd \${old}
7740    echo \${topdir}
7741})/bootstrap/h_tp_atf_check_sh \\
7742                          -s \$({
7743    old=\$(pwd)
7744    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7745        cd ..
7746    done
7747    topdir=\$(pwd)
7748    cd \${old}
7749    echo \${topdir}
7750})/bootstrap stdout_null_sth"
7751at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:51"
7752( $at_check_trace; $({
7753    old=$(pwd)
7754    while test $(pwd) != '/' -a ! -e ./Makefile; do
7755        cd ..
7756    done
7757    topdir=$(pwd)
7758    cd ${old}
7759    echo ${topdir}
7760})/bootstrap/h_tp_atf_check_sh \
7761                          -s $({
7762    old=$(pwd)
7763    while test $(pwd) != '/' -a ! -e ./Makefile; do
7764        cd ..
7765    done
7766    topdir=$(pwd)
7767    cd ${old}
7768    echo ${topdir}
7769})/bootstrap stdout_null_sth
7770) >>"$at_stdout" 2>>"$at_stderr"
7771at_status=$? at_failed=false
7772$at_check_filter
7773echo stderr:; cat "$at_stderr"
7774echo stdout:; cat "$at_stdout"
7775at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:51"
7776$at_failed && at_fn_log_failure
7777$at_traceon; }
7778
7779{ set +x
7780$as_echo "$at_srcdir/t_subr_atf_check.at:53: \$({
7781    old=\$(pwd)
7782    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7783        cd ..
7784    done
7785    topdir=\$(pwd)
7786    cd \${old}
7787    echo \${topdir}
7788})/bootstrap/h_tp_atf_check_sh \\
7789                          -s \$({
7790    old=\$(pwd)
7791    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7792        cd ..
7793    done
7794    topdir=\$(pwd)
7795    cd \${old}
7796    echo \${topdir}
7797})/bootstrap stdout_stdout_written"
7798at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:53"
7799( $at_check_trace; $({
7800    old=$(pwd)
7801    while test $(pwd) != '/' -a ! -e ./Makefile; do
7802        cd ..
7803    done
7804    topdir=$(pwd)
7805    cd ${old}
7806    echo ${topdir}
7807})/bootstrap/h_tp_atf_check_sh \
7808                          -s $({
7809    old=$(pwd)
7810    while test $(pwd) != '/' -a ! -e ./Makefile; do
7811        cd ..
7812    done
7813    topdir=$(pwd)
7814    cd ${old}
7815    echo ${topdir}
7816})/bootstrap stdout_stdout_written
7817) >>"$at_stdout" 2>>"$at_stderr"
7818at_status=$? at_failed=false
7819$at_check_filter
7820echo stderr:; cat "$at_stderr"
7821echo stdout:; cat "$at_stdout"
7822at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:53"
7823$at_failed && at_fn_log_failure
7824$at_traceon; }
7825
7826{ set +x
7827$as_echo "$at_srcdir/t_subr_atf_check.at:55: \$({
7828    old=\$(pwd)
7829    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7830        cd ..
7831    done
7832    topdir=\$(pwd)
7833    cd \${old}
7834    echo \${topdir}
7835})/bootstrap/h_tp_atf_check_sh \\
7836                          -s \$({
7837    old=\$(pwd)
7838    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7839        cd ..
7840    done
7841    topdir=\$(pwd)
7842    cd \${old}
7843    echo \${topdir}
7844})/bootstrap stdout_match_ok"
7845at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:55"
7846( $at_check_trace; $({
7847    old=$(pwd)
7848    while test $(pwd) != '/' -a ! -e ./Makefile; do
7849        cd ..
7850    done
7851    topdir=$(pwd)
7852    cd ${old}
7853    echo ${topdir}
7854})/bootstrap/h_tp_atf_check_sh \
7855                          -s $({
7856    old=$(pwd)
7857    while test $(pwd) != '/' -a ! -e ./Makefile; do
7858        cd ..
7859    done
7860    topdir=$(pwd)
7861    cd ${old}
7862    echo ${topdir}
7863})/bootstrap stdout_match_ok
7864) >>"$at_stdout" 2>>"$at_stderr"
7865at_status=$? at_failed=false
7866$at_check_filter
7867echo stderr:; cat "$at_stderr"
7868echo stdout:; cat "$at_stdout"
7869at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:55"
7870$at_failed && at_fn_log_failure
7871$at_traceon; }
7872
7873{ set +x
7874$as_echo "$at_srcdir/t_subr_atf_check.at:57: \$({
7875    old=\$(pwd)
7876    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7877        cd ..
7878    done
7879    topdir=\$(pwd)
7880    cd \${old}
7881    echo \${topdir}
7882})/bootstrap/h_tp_atf_check_sh \\
7883                          -s \$({
7884    old=\$(pwd)
7885    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7886        cd ..
7887    done
7888    topdir=\$(pwd)
7889    cd \${old}
7890    echo \${topdir}
7891})/bootstrap stdout_match_fail"
7892at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:57"
7893( $at_check_trace; $({
7894    old=$(pwd)
7895    while test $(pwd) != '/' -a ! -e ./Makefile; do
7896        cd ..
7897    done
7898    topdir=$(pwd)
7899    cd ${old}
7900    echo ${topdir}
7901})/bootstrap/h_tp_atf_check_sh \
7902                          -s $({
7903    old=$(pwd)
7904    while test $(pwd) != '/' -a ! -e ./Makefile; do
7905        cd ..
7906    done
7907    topdir=$(pwd)
7908    cd ${old}
7909    echo ${topdir}
7910})/bootstrap stdout_match_fail
7911) >>"$at_stdout" 2>>"$at_stderr"
7912at_status=$? at_failed=false
7913$at_check_filter
7914echo stderr:; cat "$at_stderr"
7915echo stdout:; cat "$at_stdout"
7916at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:57"
7917$at_failed && at_fn_log_failure
7918$at_traceon; }
7919
7920
7921{ set +x
7922$as_echo "$at_srcdir/t_subr_atf_check.at:60: \$({
7923    old=\$(pwd)
7924    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7925        cd ..
7926    done
7927    topdir=\$(pwd)
7928    cd \${old}
7929    echo \${topdir}
7930})/bootstrap/h_tp_atf_check_sh \\
7931                          -s \$({
7932    old=\$(pwd)
7933    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7934        cd ..
7935    done
7936    topdir=\$(pwd)
7937    cd \${old}
7938    echo \${topdir}
7939})/bootstrap stderr_experr_pass"
7940at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:60"
7941( $at_check_trace; $({
7942    old=$(pwd)
7943    while test $(pwd) != '/' -a ! -e ./Makefile; do
7944        cd ..
7945    done
7946    topdir=$(pwd)
7947    cd ${old}
7948    echo ${topdir}
7949})/bootstrap/h_tp_atf_check_sh \
7950                          -s $({
7951    old=$(pwd)
7952    while test $(pwd) != '/' -a ! -e ./Makefile; do
7953        cd ..
7954    done
7955    topdir=$(pwd)
7956    cd ${old}
7957    echo ${topdir}
7958})/bootstrap stderr_experr_pass
7959) >>"$at_stdout" 2>>"$at_stderr"
7960at_status=$? at_failed=false
7961$at_check_filter
7962echo stderr:; cat "$at_stderr"
7963echo stdout:; cat "$at_stdout"
7964at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:60"
7965$at_failed && at_fn_log_failure
7966$at_traceon; }
7967
7968{ set +x
7969$as_echo "$at_srcdir/t_subr_atf_check.at:62: \$({
7970    old=\$(pwd)
7971    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7972        cd ..
7973    done
7974    topdir=\$(pwd)
7975    cd \${old}
7976    echo \${topdir}
7977})/bootstrap/h_tp_atf_check_sh \\
7978                          -s \$({
7979    old=\$(pwd)
7980    while test \$(pwd) != '/' -a ! -e ./Makefile; do
7981        cd ..
7982    done
7983    topdir=\$(pwd)
7984    cd \${old}
7985    echo \${topdir}
7986})/bootstrap stderr_experr_fail"
7987at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:62"
7988( $at_check_trace; $({
7989    old=$(pwd)
7990    while test $(pwd) != '/' -a ! -e ./Makefile; do
7991        cd ..
7992    done
7993    topdir=$(pwd)
7994    cd ${old}
7995    echo ${topdir}
7996})/bootstrap/h_tp_atf_check_sh \
7997                          -s $({
7998    old=$(pwd)
7999    while test $(pwd) != '/' -a ! -e ./Makefile; do
8000        cd ..
8001    done
8002    topdir=$(pwd)
8003    cd ${old}
8004    echo ${topdir}
8005})/bootstrap stderr_experr_fail
8006) >>"$at_stdout" 2>>"$at_stderr"
8007at_status=$? at_failed=false
8008$at_check_filter
8009echo stderr:; cat "$at_stderr"
8010echo stdout:; cat "$at_stdout"
8011at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:62"
8012$at_failed && at_fn_log_failure
8013$at_traceon; }
8014
8015{ set +x
8016$as_echo "$at_srcdir/t_subr_atf_check.at:64: \$({
8017    old=\$(pwd)
8018    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8019        cd ..
8020    done
8021    topdir=\$(pwd)
8022    cd \${old}
8023    echo \${topdir}
8024})/bootstrap/h_tp_atf_check_sh \\
8025                          -s \$({
8026    old=\$(pwd)
8027    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8028        cd ..
8029    done
8030    topdir=\$(pwd)
8031    cd \${old}
8032    echo \${topdir}
8033})/bootstrap stderr_ignore_empty"
8034at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:64"
8035( $at_check_trace; $({
8036    old=$(pwd)
8037    while test $(pwd) != '/' -a ! -e ./Makefile; do
8038        cd ..
8039    done
8040    topdir=$(pwd)
8041    cd ${old}
8042    echo ${topdir}
8043})/bootstrap/h_tp_atf_check_sh \
8044                          -s $({
8045    old=$(pwd)
8046    while test $(pwd) != '/' -a ! -e ./Makefile; do
8047        cd ..
8048    done
8049    topdir=$(pwd)
8050    cd ${old}
8051    echo ${topdir}
8052})/bootstrap stderr_ignore_empty
8053) >>"$at_stdout" 2>>"$at_stderr"
8054at_status=$? at_failed=false
8055$at_check_filter
8056echo stderr:; cat "$at_stderr"
8057echo stdout:; cat "$at_stdout"
8058at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:64"
8059$at_failed && at_fn_log_failure
8060$at_traceon; }
8061
8062{ set +x
8063$as_echo "$at_srcdir/t_subr_atf_check.at:66: \$({
8064    old=\$(pwd)
8065    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8066        cd ..
8067    done
8068    topdir=\$(pwd)
8069    cd \${old}
8070    echo \${topdir}
8071})/bootstrap/h_tp_atf_check_sh \\
8072                          -s \$({
8073    old=\$(pwd)
8074    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8075        cd ..
8076    done
8077    topdir=\$(pwd)
8078    cd \${old}
8079    echo \${topdir}
8080})/bootstrap stderr_ignore_sth"
8081at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:66"
8082( $at_check_trace; $({
8083    old=$(pwd)
8084    while test $(pwd) != '/' -a ! -e ./Makefile; do
8085        cd ..
8086    done
8087    topdir=$(pwd)
8088    cd ${old}
8089    echo ${topdir}
8090})/bootstrap/h_tp_atf_check_sh \
8091                          -s $({
8092    old=$(pwd)
8093    while test $(pwd) != '/' -a ! -e ./Makefile; do
8094        cd ..
8095    done
8096    topdir=$(pwd)
8097    cd ${old}
8098    echo ${topdir}
8099})/bootstrap stderr_ignore_sth
8100) >>"$at_stdout" 2>>"$at_stderr"
8101at_status=$? at_failed=false
8102$at_check_filter
8103echo stderr:; cat "$at_stderr"
8104echo stdout:; cat "$at_stdout"
8105at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:66"
8106$at_failed && at_fn_log_failure
8107$at_traceon; }
8108
8109{ set +x
8110$as_echo "$at_srcdir/t_subr_atf_check.at:68: \$({
8111    old=\$(pwd)
8112    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8113        cd ..
8114    done
8115    topdir=\$(pwd)
8116    cd \${old}
8117    echo \${topdir}
8118})/bootstrap/h_tp_atf_check_sh \\
8119                          -s \$({
8120    old=\$(pwd)
8121    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8122        cd ..
8123    done
8124    topdir=\$(pwd)
8125    cd \${old}
8126    echo \${topdir}
8127})/bootstrap stderr_null_empty"
8128at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:68"
8129( $at_check_trace; $({
8130    old=$(pwd)
8131    while test $(pwd) != '/' -a ! -e ./Makefile; do
8132        cd ..
8133    done
8134    topdir=$(pwd)
8135    cd ${old}
8136    echo ${topdir}
8137})/bootstrap/h_tp_atf_check_sh \
8138                          -s $({
8139    old=$(pwd)
8140    while test $(pwd) != '/' -a ! -e ./Makefile; do
8141        cd ..
8142    done
8143    topdir=$(pwd)
8144    cd ${old}
8145    echo ${topdir}
8146})/bootstrap stderr_null_empty
8147) >>"$at_stdout" 2>>"$at_stderr"
8148at_status=$? at_failed=false
8149$at_check_filter
8150echo stderr:; cat "$at_stderr"
8151echo stdout:; cat "$at_stdout"
8152at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:68"
8153$at_failed && at_fn_log_failure
8154$at_traceon; }
8155
8156{ set +x
8157$as_echo "$at_srcdir/t_subr_atf_check.at:70: \$({
8158    old=\$(pwd)
8159    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8160        cd ..
8161    done
8162    topdir=\$(pwd)
8163    cd \${old}
8164    echo \${topdir}
8165})/bootstrap/h_tp_atf_check_sh \\
8166                          -s \$({
8167    old=\$(pwd)
8168    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8169        cd ..
8170    done
8171    topdir=\$(pwd)
8172    cd \${old}
8173    echo \${topdir}
8174})/bootstrap stderr_null_sth"
8175at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:70"
8176( $at_check_trace; $({
8177    old=$(pwd)
8178    while test $(pwd) != '/' -a ! -e ./Makefile; do
8179        cd ..
8180    done
8181    topdir=$(pwd)
8182    cd ${old}
8183    echo ${topdir}
8184})/bootstrap/h_tp_atf_check_sh \
8185                          -s $({
8186    old=$(pwd)
8187    while test $(pwd) != '/' -a ! -e ./Makefile; do
8188        cd ..
8189    done
8190    topdir=$(pwd)
8191    cd ${old}
8192    echo ${topdir}
8193})/bootstrap stderr_null_sth
8194) >>"$at_stdout" 2>>"$at_stderr"
8195at_status=$? at_failed=false
8196$at_check_filter
8197echo stderr:; cat "$at_stderr"
8198echo stdout:; cat "$at_stdout"
8199at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:70"
8200$at_failed && at_fn_log_failure
8201$at_traceon; }
8202
8203{ set +x
8204$as_echo "$at_srcdir/t_subr_atf_check.at:72: \$({
8205    old=\$(pwd)
8206    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8207        cd ..
8208    done
8209    topdir=\$(pwd)
8210    cd \${old}
8211    echo \${topdir}
8212})/bootstrap/h_tp_atf_check_sh \\
8213                          -s \$({
8214    old=\$(pwd)
8215    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8216        cd ..
8217    done
8218    topdir=\$(pwd)
8219    cd \${old}
8220    echo \${topdir}
8221})/bootstrap stderr_stderr_written"
8222at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:72"
8223( $at_check_trace; $({
8224    old=$(pwd)
8225    while test $(pwd) != '/' -a ! -e ./Makefile; do
8226        cd ..
8227    done
8228    topdir=$(pwd)
8229    cd ${old}
8230    echo ${topdir}
8231})/bootstrap/h_tp_atf_check_sh \
8232                          -s $({
8233    old=$(pwd)
8234    while test $(pwd) != '/' -a ! -e ./Makefile; do
8235        cd ..
8236    done
8237    topdir=$(pwd)
8238    cd ${old}
8239    echo ${topdir}
8240})/bootstrap stderr_stderr_written
8241) >>"$at_stdout" 2>>"$at_stderr"
8242at_status=$? at_failed=false
8243$at_check_filter
8244echo stderr:; cat "$at_stderr"
8245echo stdout:; cat "$at_stdout"
8246at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:72"
8247$at_failed && at_fn_log_failure
8248$at_traceon; }
8249
8250{ set +x
8251$as_echo "$at_srcdir/t_subr_atf_check.at:74: \$({
8252    old=\$(pwd)
8253    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8254        cd ..
8255    done
8256    topdir=\$(pwd)
8257    cd \${old}
8258    echo \${topdir}
8259})/bootstrap/h_tp_atf_check_sh \\
8260                          -s \$({
8261    old=\$(pwd)
8262    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8263        cd ..
8264    done
8265    topdir=\$(pwd)
8266    cd \${old}
8267    echo \${topdir}
8268})/bootstrap stderr_match_ok"
8269at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:74"
8270( $at_check_trace; $({
8271    old=$(pwd)
8272    while test $(pwd) != '/' -a ! -e ./Makefile; do
8273        cd ..
8274    done
8275    topdir=$(pwd)
8276    cd ${old}
8277    echo ${topdir}
8278})/bootstrap/h_tp_atf_check_sh \
8279                          -s $({
8280    old=$(pwd)
8281    while test $(pwd) != '/' -a ! -e ./Makefile; do
8282        cd ..
8283    done
8284    topdir=$(pwd)
8285    cd ${old}
8286    echo ${topdir}
8287})/bootstrap stderr_match_ok
8288) >>"$at_stdout" 2>>"$at_stderr"
8289at_status=$? at_failed=false
8290$at_check_filter
8291echo stderr:; cat "$at_stderr"
8292echo stdout:; cat "$at_stdout"
8293at_fn_check_status 0 $at_status "$at_srcdir/t_subr_atf_check.at:74"
8294$at_failed && at_fn_log_failure
8295$at_traceon; }
8296
8297{ set +x
8298$as_echo "$at_srcdir/t_subr_atf_check.at:76: \$({
8299    old=\$(pwd)
8300    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8301        cd ..
8302    done
8303    topdir=\$(pwd)
8304    cd \${old}
8305    echo \${topdir}
8306})/bootstrap/h_tp_atf_check_sh \\
8307                          -s \$({
8308    old=\$(pwd)
8309    while test \$(pwd) != '/' -a ! -e ./Makefile; do
8310        cd ..
8311    done
8312    topdir=\$(pwd)
8313    cd \${old}
8314    echo \${topdir}
8315})/bootstrap stderr_match_fail"
8316at_fn_check_prepare_notrace 'a $(...) command substitution' "t_subr_atf_check.at:76"
8317( $at_check_trace; $({
8318    old=$(pwd)
8319    while test $(pwd) != '/' -a ! -e ./Makefile; do
8320        cd ..
8321    done
8322    topdir=$(pwd)
8323    cd ${old}
8324    echo ${topdir}
8325})/bootstrap/h_tp_atf_check_sh \
8326                          -s $({
8327    old=$(pwd)
8328    while test $(pwd) != '/' -a ! -e ./Makefile; do
8329        cd ..
8330    done
8331    topdir=$(pwd)
8332    cd ${old}
8333    echo ${topdir}
8334})/bootstrap stderr_match_fail
8335) >>"$at_stdout" 2>>"$at_stderr"
8336at_status=$? at_failed=false
8337$at_check_filter
8338echo stderr:; cat "$at_stderr"
8339echo stdout:; cat "$at_stdout"
8340at_fn_check_status 1 $at_status "$at_srcdir/t_subr_atf_check.at:76"
8341$at_failed && at_fn_log_failure
8342$at_traceon; }
8343
8344
8345  set +x
8346  $at_times_p && times >"$at_times_file"
8347) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8348read at_status <"$at_status_file"
8349#AT_STOP_9
8350