2 # Generated from testsuite.at by GNU Autoconf 2.69.
4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in #(
34 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38 # Prefer a ksh shell builtin over an external printf program on Solaris,
39 # but without wasting forks for bash or zsh.
40 if test -z "$BASH_VERSION$ZSH_VERSION" \
41 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43 as_echo_n='print -rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50 as_echo_n='/usr/ucb/echo -n'
52 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 expr "X$arg" : "X\\(.*\\)$as_nl";
58 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
60 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 as_echo_n='sh -c $as_echo_n_body as_echo'
66 as_echo='sh -c $as_echo_body as_echo'
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
72 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # We need space, tab and new line, in precisely that order. Quoting is
81 # there to prevent editors from complaining about space-tab.
82 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
83 # splitting by setting IFS to empty value.)
86 # Find who we are. Look in the path if we contain no directory separator.
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 test -z "$as_dir" && as_dir=.
95 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 # We did not find ourselves, most probably we were run as `sh COMMAND'
102 # in which case we are not to be found in the path.
103 if test "x$as_myself" = x; then
106 if test ! -f "$as_myself"; then
107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 # Unset variables that we do not need and which cause bugs (e.g. in
112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
113 # suppresses any "Segmentation fault" message there. '((' could
114 # trigger a bug in pdksh 5.2.14.
115 for as_var in BASH_ENV ENV MAIL MAILPATH
116 do eval test x\${$as_var+set} = xset \
117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 if test "x$CONFIG_SHELL" = x; then
133 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
137 # is contrary to our usage. Disable this feature.
138 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 case \`(set -o) 2>/dev/null\` in #(
149 as_required="as_fn_return () { (exit \$1); }
150 as_fn_success () { as_fn_return 0; }
151 as_fn_failure () { as_fn_return 1; }
152 as_fn_ret_success () { return 0; }
153 as_fn_ret_failure () { return 1; }
156 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163 exitcode=1; echo positional parameters were not saved.
165 test x\$exitcode = x0 || exit 1
167 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
168 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
169 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
170 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
171 test \$(( 1 + 1 )) = 2 || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 test -z "$as_dir" && as_dir=.
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
210 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 # Preserve -v and -x to the replacement shell.
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 *v*x* | *x*v* ) as_opts=-vx ;;
225 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
226 # Admittedly, this is quite paranoid, since all the known shells bail
227 # out after a failed `exec'.
228 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332 # as_fn_executable_p FILE
333 # -----------------------
334 # Test if FILE is an executable regular file.
335 as_fn_executable_p ()
337 test -f "$1" && test -x "$1"
338 } # as_fn_executable_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
461 # already done that, so ensure we don't try to do so again and fall
462 # in an infinite loop. This has already happened in practice.
463 _as_can_reexec=no; export _as_can_reexec
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -pR'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
520 as_executable_p=as_fn_executable_p
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Not all shells have the 'times' builtin; the subshell is needed to make
539 # sure we discard the 'times: not found' message from the shell.
541 (times) >/dev/null 2>&1 && at_times_p=:
543 # CLI Arguments to pass to the debugging scripts.
547 # Shall we be verbose? ':' means no, empty means yes.
550 # Running several jobs in parallel, 0 means as many as test groups.
554 at_check_filter_trace=:
556 # Shall we keep the debug scripts? Must be `:' when the suite is
557 # run by a debug script, so that the script doesn't remove itself.
559 # Display help message?
561 # Display the version message?
569 # Whether to rerun failed tests.
571 # Whether a write failure occurred
574 # The directory we run the suite in. Default to . if no -C option.
576 # An absolute reference to this testsuite script.
578 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
579 * ) at_myself=$at_dir/$as_myself ;;
581 # Whether -C is in effect.
584 # Whether to enable colored test results.
586 # List of the tested programs.
588 # As many question marks as there are digits in the last test group number.
589 # Used to normalize the test group numbers so that `ls' lists them in
592 # Description of all the test groups.
593 at_help_all="1;version.at:19;tar version;;
594 2;pipe.at:29;decompressing from stdin;pipe;
595 3;options.at:24;mixing options;options options00;
596 4;options02.at:26;interspersed options;options options02;
597 5;opcomp01.at:21;occurrence compatibility;opcomp opcomp01;
598 6;opcomp02.at:21;occurrence compatibility;opcomp opcomp02;
599 7;opcomp03.at:21;--verify compatibility;opcomp opcomp03;
600 8;opcomp04.at:21;compress option compatibility;opcomp opcomp04;
601 9;opcomp05.at:21;--pax-option compatibility;opcomp opcomp05;
602 10;opcomp06.at:21;--pax-option compatibility;opcomp opcomp06;
603 11;T-mult.at:21;multiple file lists;files-from t-mult;
604 12;T-nest.at:21;nested file lists;files-from t-nest;
605 13;T-rec.at:21;recursive file lists;files-from t-rec;
606 14;T-cd.at:21;-C in file lists;files-from t-cd;
607 15;T-empty.at:26;empty entries;files-from empty-line;
608 16;T-null.at:21;0-separated file without -0;files-from null t-null;
609 17;T-zfile.at:26;empty file;files-from empty-file;
610 18;T-nonl.at:27;entries with missing newlines;files-from nonewline nonl t-nonl;
611 19;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
612 20;verbose.at:26;tar cvf -;stdout verbose;
613 21;gzip.at:23;gzip;gzip;
614 22;recurse.at:21;recurse;recurse;
615 23;shortrec.at:25;short records;shortrec;
616 24;same-order01.at:26;working -C with --same-order;same-order same-order01;
617 25;same-order02.at:25;multiple -C options;same-order same-order02;
618 26;append.at:21;append;append append00;
619 27;append01.at:29;appending files with long names;append append01;
620 28;append02.at:54;append vs. create;append append02 append-gnu;
621 29;append03.at:21;append with name transformation;append append03;
622 30;append04.at:29;append with verify;append append04 verify append-verify;
623 31;xform-h.at:30;transforming hard links on create;transform xform xform-h;
624 32;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
625 33;exclude.at:23;exclude;exclude;
626 34;exclude01.at:19;exclude wildcards;exclude exclude01;
627 35;exclude02.at:19;exclude: anchoring;exclude exclude02;
628 36;exclude03.at:19;exclude: wildcards match slash;exclude exclude03;
629 37;exclude04.at:19;exclude: case insensitive;exclude exclude04;
630 38;exclude05.at:21;exclude: lots of excludes;exclude exclude05;
631 39;exclude06.at:26;exclude: long files in pax archives;exclude exclude06;
632 40;exclude07.at:19;exclude: --exclude-backups option;exclude exclude07;
633 41;exclude08.at:36;--exclude-tag option;exclude exclude-tag exclude08;
634 42;exclude09.at:37;--exclude-tag option and --listed-incremental;exclude exclude-tag listed incremental exclude09;
635 43;exclude10.at:38;--exclude-tag option in incremental pass;exclude exclude-tag listed incremental exclude10;
636 44;exclude11.at:36;--exclude-tag-under option;exclude exclude-tag exclude-tag-under exclude11;
637 45;exclude12.at:37;--exclude-tag-under and --listed-incremental;exclude exclude-tag exclude-tag-under listed incremental exclude12;
638 46;exclude13.at:39;--exclude-tag-under option in incremental pass;exclude exclude-tag exclude-tag-under listed incremental exclude13;
639 47;exclude14.at:36;--exclude-tag-all option;exclude exclude-tag exclude-tag-all exclude14;
640 48;exclude15.at:36;--exclude-tag-all and --listed-incremental;exclude exclude-tag exclude-tag-all listed incremental exclude15;
641 49;exclude16.at:38;--exclude-tag-all option in incremental pass;exclude exclude-tag exclude-tag-all listed incremental exclude16;
642 50;delete01.at:23;deleting a member after a big one;delete delete01;
643 51;delete02.at:23;deleting a member from stdin archive;delete delete02;
644 52;delete03.at:21;deleting members with long names;delete delete03;
645 53;delete04.at:23;deleting a large last member;delete delete04;
646 54;delete05.at:27;deleting non-existing member;delete delete05;
647 55;extrac01.at:23;extract over an existing directory;extract extract01;
648 56;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
649 57;extrac03.at:23;extraction loops;extract extract03;
650 58;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
651 59;extrac05.at:30;extracting selected members from pax;extract extract05;
652 60;extrac06.at:34;mode of extracted directories;extract extract06 directory mode;
653 61;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
654 62;extrac08.at:33;restoring mode on existing directory;extract extrac08;
655 63;extrac09.at:24;no need to save dir with unreadable . and ..;extract extrac09;
656 64;extrac10.at:29;-C and delayed setting of metadata;extract extrac10;
657 65;extrac11.at:25;scarce file descriptors;extract extrac11;
658 66;extrac12.at:25;extract dot permissions;extract extrac12;
659 67;extrac13.at:26;extract over symlinks;extract extrac13;
660 68;extrac14.at:25;extract -C symlink;extract extrac14;
661 69;extrac15.at:25;extract parent mkdir failure;extract extrac15;
662 70;extrac16.at:26;extract empty directory with -C;extract extrac16;
663 71;extrac17.at:21;name matching/transformation ordering;extract extrac17;
664 72;extrac18.at:34;keep-old-files;extract extrac18 old-files keep-old-files;
665 73;extrac19.at:21;skip-old-files;extract extrac19 old-files skip-old-files;
666 74;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
667 75;label01.at:21;single-volume label;label label01;
668 76;label02.at:21;multi-volume label;label label02 multi-label multivolume multiv;
669 77;label03.at:27;test-label option;label label03 test-label;
670 78;label04.at:27;label with non-create option;label label04;
671 79;label05.at:24;label with non-create option;label label05;
672 80;incremental.at:23;incremental;incremental listed incr00;
673 81;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
674 82;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
675 83;listed01.at:26;--listed for individual files;listed incremental listed01;
676 84;listed02.at:28;working --listed;listed incremental listed02;
677 85;listed03.at:24;incremental dump when the parent directory is unreadable;listed incremental listed03;
678 86;listed04.at:26;--listed-incremental and --one-file-system;listed incremental listed04;
679 87;listed05.at:33;--listed-incremental and remounted directories;listed incremental listed05;
680 88;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
681 89;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
682 90;incr05.at:21;incremental dumps with -C;incremental incr05;
683 91;incr06.at:21;incremental dumps of nested directories;incremental incr06;
684 92;incr07.at:18;incremental restores with -C;incremental extract incr07;
685 93;incr08.at:38;filename normalization;incremental create incr08;
686 94;incr09.at:26;incremental with alternating -C;incremental create incr09;
687 95;filerem01.at:36;file removed as we read it (ca. 22 seconds);create incremental listed filechange filerem filerem01;
688 96;filerem02.at:26;toplevel file removed (ca. 24 seconds);create incremental listed filechange filerem filerem02;
689 97;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
690 98;rename02.at:24;move between hierarchies;incremental rename rename02;
691 99;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
692 100;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
693 101;rename05.at:24;renamed subdirectories;incremental rename05 rename;
694 102;chtype.at:27;changed file types in incrementals;incremental listed chtype;
695 103;ignfail.at:23;ignfail;ignfail;
696 104;link01.at:33;link count gt 2;hardlinks link01;
697 105;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
698 106;link03.at:24;working -l with --remove-files;hardlinks link03;
699 107;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
700 108;longv7.at:24;long names in V7 archives;longname longv7;
701 109;long01.at:28;long file names divisible by block size;longname long512;
702 110;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
703 111;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
704 112;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
705 113;old.at:23;old archives;old;
706 114;time01.at:20;time: tricky time stamps;time time01;
707 115;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
708 116;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
709 117;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
710 118;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental listed multiv04;
711 119;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
712 120;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
713 121;multiv07.at:28;volumes split at an extended header;multivolume multiv multiv07 xsplit;
714 122;multiv08.at:25;multivolume header creation;multivolume multiv multiv08;
715 123;owner.at:21;--owner and --group;owner;
716 124;sparse01.at:21;sparse files;sparse sparse01;
717 125;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
718 126;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
719 127;sparse04.at:21;storing long sparse file names;sparse sparse04;
720 128;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
721 129;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
722 130;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
723 131;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
724 132;update.at:28;update unchanged directories;update update00;
725 133;update01.at:29;update directories;update update01;
726 134;update02.at:26;update changed files;update update02;
727 135;verify.at:25;verify;verify;
728 136;volume.at:23;volume;volume volcheck;
729 137;volsize.at:29;volume header size;volume volsize;
730 138;comprec.at:21;compressed format recognition;comprec;
731 139;shortfile.at:26;short input files;shortfile shortfile0;
732 140;shortupd.at:31;updating short archives;shortfile shortfile1 shortupd;
733 141;truncate.at:29;truncate;truncate filechange;
734 142;grow.at:24;grow;grow filechange;
735 143;sigpipe.at:21;sigpipe handling;sigpipe;
736 144;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
737 145;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
738 146;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
739 147;remfiles04a.at:25;remove-files with -C:rel in -c/non-incr. mode;create remove-files remfiles04 remfiles04a;
740 148;remfiles04b.at:33;remove-files with -C:rel in -c/incr. mode;create incremental remove-files remfiles04 remfiles04b;
741 149;remfiles04c.at:33;remove-files with -C:rel in -r mode;create append remove-files remfiles04 remfiles04c;
742 150;remfiles05a.at:34;remove-files with -C:rel,rel in -c/non-incr. mode;create remove-files remfiles05 remfiles05a;
743 151;remfiles05b.at:25;remove-files with -C:rel,rel in -c/incr. mode;create incremental remove-files remfiles05 remfiles05b;
744 152;remfiles05c.at:25;remove-files with -C:rel,rel in -r mode;create append remove-files remfiles05 remfiles05c;
745 153;remfiles06a.at:25;remove-files with -C:rel,abs in -c/non-incr. mode;create remove-files remfiles06 remfiles06a;
746 154;remfiles06b.at:25;remove-files with -C:rel,abs in -c/incr. mode;create incremental remove-files remfiles06 remfiles06b;
747 155;remfiles06c.at:25;remove-files with -C:rel,abs in -r mode;create append remove-files remfiles06 remfiles06c;
748 156;remfiles07a.at:25;remove-files with -C:rel,abs in -c/non-incr. mode;create remove-files remfiles07 remfiles07a;
749 157;remfiles07b.at:25;remove-files with -C:rel,abs in -c/incr. mode;create incremental remove-files remfiles07 remfiles07b;
750 158;remfiles07c.at:25;remove-files with -C:rel,abs in -r mode;create append remove-files remfiles07 remfiles07c;
751 159;remfiles08a.at:25;remove-files with -C:abs,rel in -c/non-incr. mode;create remove-files remfiles08 remfiles08a;
752 160;remfiles08b.at:25;remove-files with -C:abs,rel in -c/incr. mode;create incremental remove-files remfiles08 remfiles08b;
753 161;remfiles08c.at:25;remove-files with -C:abs,rel in -r mode;create append remove-files remfiles08 remfiles08c;
754 162;remfiles09a.at:25;remove-files on full directory in -c/non-incr. mode;create remove-files remfiles09 remfiles09a;
755 163;remfiles09b.at:29;remove-files on full directory in -c/incr. mode;create incremental remove-files remfiles09 remfiles09b;
756 164;remfiles09c.at:25;remove-files on full directory in -r mode;create append remove-files remfiles09 remfiles09c;
757 165;xattr01.at:25;xattrs: basic functionality;xattrs xattr01;
758 166;xattr02.at:25;xattrs: change directory with -C option;xattrs xattr02;
759 167;xattr03.at:25;xattrs: trusted.* attributes;xattrs xattr03;
760 168;xattr04.at:26;xattrs: s/open/openat/ regression;xattrs xattr04;
761 169;xattr05.at:28;xattrs: keywords with '=' and '%';xattrs xattr05;
762 170;acls01.at:25;acls: basic functionality;xattrs acls acls01;
763 171;acls02.at:25;acls: work with -C;xattrs acls acls02;
764 172;selnx01.at:25;selinux: basic store/restore;xattrs selinux selnx01;
765 173;selacl01.at:25;acls/selinux: special files & fifos;xattrs selinux acls selacls01;
766 174;capabs_raw01.at:25;capabilities: binary store/restore;xattrs capabilities capabs_raw01;
767 175;gtarfail.at:21;gtarfail;star gtarfail;
768 176;gtarfail2.at:21;gtarfail2;star gtarfail2;
769 177;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
770 178;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
771 179;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
772 180;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
774 # List of the all the test groups.
775 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
777 # at_fn_validate_ranges NAME...
778 # -----------------------------
779 # Validate and normalize the test group number contained in each variable
780 # NAME. Leading zeroes are treated as decimal.
781 at_fn_validate_ranges ()
785 eval at_value=\$$at_grp
786 if test $at_value -lt 1 || test $at_value -gt 180; then
787 $as_echo "invalid test group: $at_value" >&2
791 0*) # We want to treat leading 0 as decimal, like expr and test, but
792 # AS_VAR_ARITH treats it as octal if it uses $(( )).
793 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
794 # expr fork, but it is not worth the effort to determine if the
795 # shell supports XSI when the user can just avoid leading 0.
796 eval $at_grp='`expr $at_value + 0`' ;;
804 # If the previous option needs an argument, assign it.
805 if test -n "$at_prev"; then
806 at_option=$at_prev=$at_option
811 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
839 no | never | none) at_color=never ;;
840 auto | tty | if-tty) at_color=auto ;;
841 always | yes | force) at_color=always ;;
842 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
843 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
857 at_verbose=; at_quiet=:
863 at_check_filter_trace=at_fn_filter_trace
866 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
867 at_fn_validate_ranges at_option
868 as_fn_append at_groups "$at_option$as_nl"
872 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
873 at_range_start=`echo $at_option |tr -d X-`
874 at_fn_validate_ranges at_range_start
875 at_range=`$as_echo "$at_groups_all" | \
876 sed -ne '/^'$at_range_start'$/,$p'`
877 as_fn_append at_groups "$at_range$as_nl"
880 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
881 at_range_end=`echo $at_option |tr -d X-`
882 at_fn_validate_ranges at_range_end
883 at_range=`$as_echo "$at_groups_all" | \
884 sed -ne '1,/^'$at_range_end'$/p'`
885 as_fn_append at_groups "$at_range$as_nl"
888 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
889 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
890 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
891 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
892 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
893 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
894 at_range_start=`expr $at_option : '\(.*\)-'`
895 at_range_end=`expr $at_option : '.*-\(.*\)'`
896 if test $at_range_start -gt $at_range_end; then
898 at_range_end=$at_range_start
899 at_range_start=$at_tmp
901 at_fn_validate_ranges at_range_start at_range_end
902 at_range=`$as_echo "$at_groups_all" | \
903 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
904 as_fn_append at_groups "$at_range$as_nl"
907 # Directory selection.
914 if test x- = "x$at_dir" ; then
919 # Parallel execution.
923 --jobs=* | -j[0-9]* )
924 if test -n "$at_optarg"; then
927 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
929 case $at_jobs in *[!0-9]*)
930 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
931 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
940 at_groups_selected=$at_help_all
952 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
955 # It is on purpose that we match the test group titles too.
956 at_groups_selected=`$as_echo "$at_groups_selected" |
957 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
959 # Smash the keywords.
960 at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
961 as_fn_append at_groups "$at_groups_selected$as_nl"
968 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
969 # Reject names that are not valid shell variable names.
971 '' | [0-9]* | *[!_$as_cr_alnum]* )
972 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
974 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
975 # Export now, but save eval for later and for debug scripts.
977 as_fn_append at_debug_args " $at_envvar='$at_value'"
980 *) $as_echo "$as_me: invalid option: $at_option" >&2
981 $as_echo "Try \`$0 --help' for more information." >&2
987 # Verify our last option didn't require an argument
988 if test -n "$at_prev"; then :
989 as_fn_error $? "\`$at_prev' requires an argument"
992 # The file containing the suite.
993 at_suite_log=$at_dir/$as_me.log
995 # Selected test groups.
996 if test -z "$at_groups$at_recheck"; then
997 at_groups=$at_groups_all
999 if test -n "$at_recheck" && test -r "$at_suite_log"; then
1000 at_oldfails=`sed -n '
1001 /^Failed tests:$/,/^Skipped tests:$/{
1002 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1004 /^Unexpected passes:$/,/^## Detailed failed tests/{
1005 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1007 /^## Detailed failed tests/q
1009 as_fn_append at_groups "$at_oldfails$as_nl"
1011 # Sort the tests, removing duplicates.
1012 at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
1015 if test x"$at_color" = xalways \
1016 || { test x"$at_color" = xauto && test -t 1; }; then
1017 at_red=`printf '\033[0;31m'`
1018 at_grn=`printf '\033[0;32m'`
1019 at_lgn=`printf '\033[1;32m'`
1020 at_blu=`printf '\033[1;34m'`
1021 at_std=`printf '\033[m'`
1023 at_red= at_grn= at_lgn= at_blu= at_std=
1028 cat <<_ATEOF || at_write_fail=1
1029 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
1031 Run all the tests, or the selected TESTS, given by numeric ranges, and
1032 save a detailed log file. Upon failure, create debugging scripts.
1034 Do not change environment variables directly. Instead, set them via
1035 command line arguments. Set \`AUTOTEST_PATH' to select the executables
1036 to exercise. Each relative directory is expanded as build and source
1037 directories relative to the top level of this distribution.
1038 E.g., from within the build directory /tmp/foo-1.0, invoking this:
1040 $ $0 AUTOTEST_PATH=bin
1042 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1044 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1046 cat <<_ATEOF || at_write_fail=1
1049 -h, --help print the help message, then exit
1050 -V, --version print version number, then exit
1051 -c, --clean remove all the files this test suite might create and exit
1052 -l, --list describes all the tests, or the selected TESTS
1054 cat <<_ATEOF || at_write_fail=1
1058 change to directory DIR before starting
1059 --color[=never|auto|always]
1060 enable colored test results on terminal, or always
1062 Allow N jobs at once; infinite jobs with no arg (default 1)
1063 -k, --keywords=KEYWORDS
1064 select the tests matching all the comma-separated KEYWORDS
1065 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1066 --recheck select all tests that failed or passed unexpectedly last time
1067 -e, --errexit abort as soon as a test fails; implies --debug
1068 -v, --verbose force more detailed output
1069 default for debugging scripts
1070 -d, --debug inhibit clean up and top-level logging
1071 default for debugging scripts
1072 -x, --trace enable tests shell tracing
1074 cat <<_ATEOF || at_write_fail=1
1076 Report bugs to <bug-tar@gnu.org>.
1077 General help using GNU software: <http://www.gnu.org/gethelp/>.
1084 cat <<_ATEOF || at_write_fail=1
1085 GNU tar 1.27.1 test suite test groups:
1087 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1091 # Pass an empty line as separator between selected groups and help.
1092 $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
1093 awk 'NF == 1 && FS != ";" {
1099 if (selected[$ 1]) {
1100 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1106 n = split ($ 4, a, " ")
1107 for (i = 1; i <= n; i++) {
1108 l = length (a[i]) + 1
1109 if (i > 1 && len + l > lmax) {
1111 line = indent " " a[i]
1114 line = line " " a[i]
1122 }' || at_write_fail=1
1125 if $at_version_p; then
1126 $as_echo "$as_me (GNU tar 1.27.1)" &&
1127 cat <<\_ATEOF || at_write_fail=1
1129 Copyright (C) 2012 Free Software Foundation, Inc.
1130 This test suite is free software; the Free Software Foundation gives
1131 unlimited permission to copy, distribute and modify it.
1136 # Should we print banners? Yes if more than one test is run.
1137 case $at_groups in #(
1139 at_print_banners=: ;; #(
1140 * ) at_print_banners=false ;;
1142 # Text for banner N, set to a single space once printed.
1143 # Banner 1. testsuite.at:191
1144 # Category starts at test group 5.
1145 at_banner_text_1="Option compatibility"
1146 # Banner 2. testsuite.at:199
1147 # Category starts at test group 11.
1148 at_banner_text_2="The -T option"
1149 # Banner 3. testsuite.at:209
1150 # Category starts at test group 19.
1151 at_banner_text_3="Various options"
1152 # Banner 4. testsuite.at:216
1153 # Category starts at test group 24.
1154 at_banner_text_4="The --same-order option"
1155 # Banner 5. testsuite.at:220
1156 # Category starts at test group 26.
1157 at_banner_text_5="Append"
1158 # Banner 6. testsuite.at:227
1159 # Category starts at test group 31.
1160 at_banner_text_6="Transforms"
1161 # Banner 7. testsuite.at:231
1162 # Category starts at test group 33.
1163 at_banner_text_7="Exclude"
1164 # Banner 8. testsuite.at:250
1165 # Category starts at test group 50.
1166 at_banner_text_8="Deletions"
1167 # Banner 9. testsuite.at:257
1168 # Category starts at test group 55.
1169 at_banner_text_9="Extracting"
1170 # Banner 10. testsuite.at:279
1171 # Category starts at test group 75.
1172 at_banner_text_10="Volume label operations"
1173 # Banner 11. testsuite.at:286
1174 # Category starts at test group 80.
1175 at_banner_text_11="Incremental archives"
1176 # Banner 12. testsuite.at:303
1177 # Category starts at test group 95.
1178 at_banner_text_12="Files removed while archiving"
1179 # Banner 13. testsuite.at:307
1180 # Category starts at test group 97.
1181 at_banner_text_13="Renames"
1182 # Banner 14. testsuite.at:315
1183 # Category starts at test group 103.
1184 at_banner_text_14="Ignore failing reads"
1185 # Banner 15. testsuite.at:318
1186 # Category starts at test group 104.
1187 at_banner_text_15="Link handling"
1188 # Banner 16. testsuite.at:324
1189 # Category starts at test group 108.
1190 at_banner_text_16="Specific archive formats"
1191 # Banner 17. testsuite.at:334
1192 # Category starts at test group 115.
1193 at_banner_text_17="Multivolume archives"
1194 # Banner 18. testsuite.at:344
1195 # Category starts at test group 123.
1196 at_banner_text_18="Owner and Groups"
1197 # Banner 19. testsuite.at:347
1198 # Category starts at test group 124.
1199 at_banner_text_19="Sparse files"
1200 # Banner 20. testsuite.at:357
1201 # Category starts at test group 132.
1202 at_banner_text_20="Updates"
1203 # Banner 21. testsuite.at:362
1204 # Category starts at test group 135.
1205 at_banner_text_21="Verifying the archive"
1206 # Banner 22. testsuite.at:365
1207 # Category starts at test group 136.
1208 at_banner_text_22="Volume operations"
1209 # Banner 23. testsuite.at:369
1210 # Category starts at test group 138.
1211 at_banner_text_23=""
1212 # Banner 24. testsuite.at:378
1213 # Category starts at test group 144.
1214 at_banner_text_24="Removing files after archiving"
1215 # Banner 25. testsuite.at:401
1216 # Category starts at test group 165.
1217 at_banner_text_25="Extended attributes"
1218 # Banner 26. testsuite.at:416
1219 # Category starts at test group 175.
1220 at_banner_text_26="Star tests"
1222 # Take any -C into account.
1223 if $at_change_dir ; then
1224 test x != "x$at_dir" && cd "$at_dir" \
1225 || as_fn_error $? "unable to change directory"
1229 # Load the config files for any default variable assignments.
1230 for at_file in atconfig atlocal
1232 test -r $at_file || continue
1233 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1236 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1237 : "${at_top_build_prefix=$at_top_builddir}"
1239 # Perform any assignments requested during argument parsing.
1240 eval "$at_debug_args"
1242 # atconfig delivers names relative to the directory the test suite is
1243 # in, but the groups themselves are run in testsuite-dir/group-dir.
1244 if test -n "$at_top_srcdir"; then
1246 for at_dir_var in srcdir top_srcdir top_build_prefix
1248 eval at_val=\$at_$at_dir_var
1250 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1251 *) at_prefix=../../ ;;
1253 eval "$at_dir_var=\$at_prefix\$at_val"
1257 ## -------------------- ##
1258 ## Directory structure. ##
1259 ## -------------------- ##
1261 # This is the set of directories and files used by this script
1262 # (non-literals are capitalized):
1264 # TESTSUITE - the testsuite
1265 # TESTSUITE.log - summarizes the complete testsuite run
1266 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1267 # + at-groups/ - during a run: status of all groups in run
1268 # | + NNN/ - during a run: meta-data about test group NNN
1269 # | | + check-line - location (source file and line) of current AT_CHECK
1270 # | | + status - exit status of current AT_CHECK
1271 # | | + stdout - stdout of current AT_CHECK
1272 # | | + stder1 - stderr, including trace
1273 # | | + stderr - stderr, with trace filtered out
1274 # | | + test-source - portion of testsuite that defines group
1275 # | | + times - timestamps for computing duration
1276 # | | + pass - created if group passed
1277 # | | + xpass - created if group xpassed
1278 # | | + fail - created if group failed
1279 # | | + xfail - created if group xfailed
1280 # | | + skip - created if group skipped
1281 # + at-stop - during a run: end the run if this file exists
1282 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1283 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1284 # | + TESTSUITE.log - summarizes the group results
1285 # | + ... - files created during the group
1287 # The directory the whole suite works in.
1288 # Should be absolute to let the user `cd' at will.
1289 at_suite_dir=$at_dir/$as_me.dir
1290 # The file containing the suite ($at_dir might have changed since earlier).
1291 at_suite_log=$at_dir/$as_me.log
1292 # The directory containing helper files per test group.
1293 at_helper_dir=$at_suite_dir/at-groups
1294 # Stop file: if it exists, do not start new jobs.
1295 at_stop_file=$at_suite_dir/at-stop
1296 # The fifo used for the job dispatcher.
1297 at_job_fifo=$at_suite_dir/at-job-fifo
1300 test -d "$at_suite_dir" &&
1301 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1302 rm -f -r "$at_suite_dir" "$at_suite_log"
1306 # Don't take risks: use only absolute directories in PATH.
1308 # For stand-alone test suites (ie. atconfig was not found),
1309 # AUTOTEST_PATH is relative to `.'.
1311 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1312 # of the package. Then expand it into build/src parts, since users
1313 # may create executables in both places.
1314 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 for as_dir in $AUTOTEST_PATH $PATH
1320 test -z "$as_dir" && as_dir=.
1321 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1324 as_fn_append at_path "$as_dir"
1327 if test -z "$at_top_build_prefix"; then
1328 # Stand-alone test suite.
1329 as_fn_append at_path "$as_dir"
1331 # Embedded test suite.
1332 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1333 as_fn_append at_path "$at_top_srcdir/$as_dir"
1341 # Now build and simplify PATH.
1343 # There might be directories that don't exist, but don't redirect
1344 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $at_path
1350 test -z "$as_dir" && as_dir=.
1351 test -d "$as_dir" || continue
1353 [\\/]* | ?:[\\/]* ) ;;
1354 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1356 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1357 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1358 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1359 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1367 # Setting up the FDs.
1371 # 5 is the log file. Not to be overwritten if `-d'.
1372 if $at_debug_p; then
1373 at_suite_log=/dev/null
1377 exec 5>>"$at_suite_log"
1380 $as_echo "## -------------------------- ##
1381 ## GNU tar 1.27.1 test suite. ##
1382 ## -------------------------- ##"
1384 $as_echo "## -------------------------- ##
1385 ## GNU tar 1.27.1 test suite. ##
1386 ## -------------------------- ##"
1389 $as_echo "$as_me: command line was:"
1390 $as_echo " \$ $0 $at_cli_args"
1393 # If ChangeLog exists, list a few lines in case it might help determining
1394 # the exact version.
1395 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1396 $as_echo "## ---------- ##
1400 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 $as_echo "PATH: $as_dir"
1441 # Contents of the config files.
1442 for at_file in atconfig atlocal
1444 test -r $at_file || continue
1445 $as_echo "$as_me: $at_file:"
1446 sed 's/^/| /' $at_file
1452 ## ------------------------- ##
1453 ## Autotest shell functions. ##
1454 ## ------------------------- ##
1456 # at_fn_banner NUMBER
1457 # -------------------
1458 # Output banner NUMBER, provided the testsuite is running multiple groups and
1459 # this particular banner has not yet been printed.
1462 $at_print_banners || return 0
1463 eval at_banner_text=\$at_banner_text_$1
1464 test "x$at_banner_text" = "x " && return 0
1465 eval "at_banner_text_$1=\" \""
1466 if test -z "$at_banner_text"; then
1469 $as_echo "$as_nl$at_banner_text$as_nl"
1473 # at_fn_check_prepare_notrace REASON LINE
1474 # ---------------------------------------
1475 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1476 # command; REASON is the reason for disabling tracing.
1477 at_fn_check_prepare_notrace ()
1479 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1480 $as_echo "$2" >"$at_check_line_file"
1481 at_check_trace=: at_check_filter=:
1482 : >"$at_stdout"; : >"$at_stderr"
1485 # at_fn_check_prepare_trace LINE
1486 # ------------------------------
1487 # Perform AT_CHECK preparations for the command at LINE for a traceable
1489 at_fn_check_prepare_trace ()
1491 $as_echo "$1" >"$at_check_line_file"
1492 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1493 : >"$at_stdout"; : >"$at_stderr"
1496 # at_fn_check_prepare_dynamic COMMAND LINE
1497 # ----------------------------------------
1498 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1499 # preparation function.
1500 at_fn_check_prepare_dynamic ()
1504 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1506 at_fn_check_prepare_trace "$2" ;;
1510 # at_fn_filter_trace
1511 # ------------------
1512 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1514 at_fn_filter_trace ()
1516 mv "$at_stderr" "$at_stder1"
1517 grep '^ *+' "$at_stder1" >&2
1518 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1521 # at_fn_log_failure FILE-LIST
1522 # ---------------------------
1523 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1524 # with a failure exit code.
1525 at_fn_log_failure ()
1528 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1529 echo 1 > "$at_status_file"
1533 # at_fn_check_skip EXIT-CODE LINE
1534 # -------------------------------
1535 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1536 # the test group subshell with that same exit code. Use LINE in any report
1537 # about test failure.
1541 99) echo 99 > "$at_status_file"; at_failed=:
1542 $as_echo "$2: hard failure"; exit 99;;
1543 77) echo 77 > "$at_status_file"; exit 77;;
1547 # at_fn_check_status EXPECTED EXIT-CODE LINE
1548 # ------------------------------------------
1549 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1550 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1551 # exit code; if it is anything else print an error message referring to LINE,
1552 # and fail the test.
1553 at_fn_check_status ()
1557 77) echo 77 > "$at_status_file"; exit 77;;
1558 99) echo 99 > "$at_status_file"; at_failed=:
1559 $as_echo "$3: hard failure"; exit 99;;
1560 *) $as_echo "$3: exit code was $2, expected $1"
1565 # at_fn_diff_devnull FILE
1566 # -----------------------
1567 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1569 at_fn_diff_devnull ()
1571 test -s "$1" || return 0
1572 $at_diff "$at_devnull" "$1"
1577 # Parse out test NUMBER from the tail of this file.
1580 eval at_sed=\$at_sed$1
1581 sed "$at_sed" "$at_myself" > "$at_test_source"
1584 # at_fn_create_debugging_script
1585 # -----------------------------
1586 # Create the debugging script $at_group_dir/run which will reproduce the
1587 # current test group.
1588 at_fn_create_debugging_script ()
1591 echo "#! /bin/sh" &&
1592 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1593 $as_echo "cd '$at_dir'" &&
1594 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1596 } >"$at_group_dir/run" &&
1597 chmod +x "$at_group_dir/run"
1600 ## -------------------------------- ##
1601 ## End of autotest shell functions. ##
1602 ## -------------------------------- ##
1604 $as_echo "## ---------------- ##
1605 ## Tested programs. ##
1606 ## ---------------- ##"
1610 # Report what programs are being tested.
1611 for at_program in : $at_tested
1613 test "$at_program" = : && continue
1615 [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 test -f "$as_dir/$at_program" && break
1626 at_program_=$as_dir/$at_program ;;
1628 if test -f "$at_program_"; then
1630 $as_echo "$at_srcdir/testsuite.at:180: $at_program_ --version"
1631 "$at_program_" --version </dev/null
1635 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1640 $as_echo "## ------------------ ##
1641 ## Running the tests. ##
1642 ## ------------------ ##"
1645 at_start_date=`date`
1646 at_start_time=`date +%s 2>/dev/null`
1647 $as_echo "$as_me: starting at: $at_start_date" >&5
1649 # Create the master directory if it doesn't already exist.
1650 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1651 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1653 # Can we diff with `/dev/null'? DU 5.0 refuses.
1654 if diff /dev/null /dev/null >/dev/null 2>&1; then
1655 at_devnull=/dev/null
1657 at_devnull=$at_suite_dir/devnull
1661 # Use `diff -u' when possible.
1662 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1669 # Get the last needed group.
1670 for at_group in : $at_groups; do :; done
1672 # Extract the start and end lines of each test group at the tail
1680 test = substr ($ 0, 10)
1681 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1682 if (test == "'"$at_group"'") exit
1683 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1684 . "$at_suite_dir/at-source-lines" ||
1685 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1686 rm -f "$at_suite_dir/at-source-lines"
1688 # Set number of jobs for `-j'; avoid more jobs than test groups.
1689 set X $at_groups; shift; at_max_jobs=$#
1690 if test $at_max_jobs -eq 0; then
1693 if test $at_jobs -ne 1 &&
1694 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1695 at_jobs=$at_max_jobs
1698 # If parallel mode, don't output banners, don't split summary lines.
1699 if test $at_jobs -ne 1; then
1700 at_print_banners=false
1704 # Set up helper dirs.
1705 rm -rf "$at_helper_dir" &&
1706 mkdir "$at_helper_dir" &&
1707 cd "$at_helper_dir" &&
1708 { test -z "$at_groups" || mkdir $at_groups; } ||
1709 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1711 # Functions for running a test group. We leave the actual
1712 # test group execution outside of a shell function in order
1713 # to avoid hitting zsh 4.x exit status bugs.
1715 # at_fn_group_prepare
1716 # -------------------
1717 # Prepare for running a test group.
1718 at_fn_group_prepare ()
1720 # The directory for additional per-group helper files.
1721 at_job_dir=$at_helper_dir/$at_group
1722 # The file containing the location of the last AT_CHECK.
1723 at_check_line_file=$at_job_dir/check-line
1724 # The file containing the exit status of the last command.
1725 at_status_file=$at_job_dir/status
1726 # The files containing the output of the tested commands.
1727 at_stdout=$at_job_dir/stdout
1728 at_stder1=$at_job_dir/stder1
1729 at_stderr=$at_job_dir/stderr
1730 # The file containing the code for a test group.
1731 at_test_source=$at_job_dir/test-source
1732 # The file containing dates.
1733 at_times_file=$at_job_dir/times
1735 # Be sure to come back to the top test directory.
1738 # Clearly separate the test groups when verbose.
1739 $at_first || $at_verbose echo
1741 at_group_normalized=$at_group
1744 case $at_group_normalized in #(
1745 '"$at_format"'*) break;;
1747 at_group_normalized=0$at_group_normalized
1751 # Create a fresh directory for the next test group, and enter.
1752 # If one already exists, the user may have invoked ./run from
1753 # within that directory; we remove the contents, but not the
1754 # directory itself, so that we aren't pulling the rug out from
1755 # under the shell's notion of the current directory.
1756 at_group_dir=$at_suite_dir/$at_group_normalized
1757 at_group_log=$at_group_dir/$as_me.log
1758 if test -d "$at_group_dir"; then
1759 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1760 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1763 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1764 # Be tolerant if the above `rm' was not able to remove the directory.
1765 as_dir="$at_group_dir"; as_fn_mkdir_p
1767 echo 0 > "$at_status_file"
1769 # In verbose mode, append to the log file *and* show on
1770 # the standard output; in quiet mode only write to the log.
1771 if test -z "$at_verbose"; then
1772 at_tee_pipe='tee -a "$at_group_log"'
1774 at_tee_pipe='cat >> "$at_group_log"'
1778 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1779 # -------------------------------------------------
1780 # Declare the test group ORDINAL, located at LINE with group description DESC,
1781 # and residing under BANNER. Use PAD to align the status column.
1782 at_fn_group_banner ()
1785 test -n "$5" && at_fn_banner $5
1788 [0-9]) at_desc_line=" $1: ";;
1789 [0-9][0-9]) at_desc_line=" $1: " ;;
1790 *) at_desc_line="$1: " ;;
1792 as_fn_append at_desc_line "$3$4"
1793 $at_quiet $as_echo_n "$at_desc_line"
1794 echo "# -*- compilation -*-" >> "$at_group_log"
1797 # at_fn_group_postprocess
1798 # -----------------------
1799 # Perform cleanup after running a test group.
1800 at_fn_group_postprocess ()
1802 # Be sure to come back to the suite directory, in particular
1803 # since below we might `rm' the group directory we are in currently.
1806 if test ! -f "$at_check_line_file"; then
1807 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1808 A failure happened in a test group before any test could be
1809 run. This means that test suite is improperly designed. Please
1810 report this failure to <bug-tar@gnu.org>.
1812 $as_echo "$at_setup_line" >"$at_check_line_file"
1815 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1816 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1817 case $at_xfail:$at_status in
1819 at_msg="UNEXPECTED PASS"
1821 at_errexit=$at_errexit_p
1831 at_msg='skipped ('`cat "$at_check_line_file"`')'
1837 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1839 at_errexit=$at_errexit_p
1843 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1849 echo "$at_res" > "$at_job_dir/$at_res"
1850 # In parallel mode, output the summary line only afterwards.
1851 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1852 $as_echo "$at_desc_line $at_color$at_msg$at_std"
1854 # Make sure there is a separator even with long titles.
1855 $as_echo " $at_color$at_msg$at_std"
1857 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1860 # $at_times_file is only available if the group succeeded.
1861 # We're not including the group log, so the success message
1862 # is written in the global log separately. But we also
1863 # write to the group log in case they're using -d.
1864 if test -f "$at_times_file"; then
1865 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1866 rm -f "$at_times_file"
1868 $as_echo "$at_log_msg" >> "$at_group_log"
1869 $as_echo "$at_log_msg" >&5
1871 # Cleanup the group directory, unless the user wants the files
1872 # or the success was unexpected.
1873 if $at_debug_p || test $at_res = xpass; then
1874 at_fn_create_debugging_script
1875 if test $at_res = xpass && $at_errexit; then
1876 echo stop > "$at_stop_file"
1879 if test -d "$at_group_dir"; then
1880 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1881 rm -fr "$at_group_dir"
1883 rm -f "$at_test_source"
1887 # Upon failure, include the log into the testsuite's global
1888 # log. The failure message is written in the group log. It
1889 # is later included in the global log.
1890 $as_echo "$at_log_msg" >> "$at_group_log"
1892 # Upon failure, keep the group directory for autopsy, and create
1893 # the debugging script. With -e, do not start any further tests.
1894 at_fn_create_debugging_script
1895 if $at_errexit; then
1896 echo stop > "$at_stop_file"
1908 if (set -m && set +m && set +b) >/dev/null 2>&1; then
1910 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1912 at_job_control_on=: at_job_control_off=: at_job_group=
1915 for at_signal in 1 2 15; do
1916 trap 'set +x; set +e
1918 at_signal='"$at_signal"'
1919 echo stop > "$at_stop_file"
1922 for at_pgid in `jobs -p 2>/dev/null`; do
1923 at_pgids="$at_pgids $at_job_group$at_pgid"
1925 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1927 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1930 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1932 test 0 -gt 2 && at_signame=$at_signal
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1934 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1935 as_fn_arith 128 + $at_signal && exit_status=$as_val
1936 as_fn_exit $exit_status' $at_signal
1939 rm -f "$at_stop_file"
1942 if test $at_jobs -ne 1 &&
1943 rm -f "$at_job_fifo" &&
1944 test -n "$at_job_group" &&
1945 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1947 # FIFO job dispatcher.
1950 for at_pid in `jobs -p`; do
1951 at_pids="$at_pids $at_job_group$at_pid"
1953 if test -n "$at_pids"; then
1955 test "${TMOUT+set}" = set && at_sig=STOP
1956 kill -$at_sig $at_pids 2>/dev/null
1959 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1962 # Turn jobs into a list of numbers, starting from 1.
1963 at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1967 for at_group in $at_groups; do
1968 $at_job_control_on 2>/dev/null
1970 # Start one test group.
1973 exec 7>"$at_job_fifo"
1977 trap 'set +x; set +e
1979 echo stop > "$at_stop_file"
1981 as_fn_exit 141' PIPE
1983 if cd "$at_group_dir" &&
1984 at_fn_test $at_group &&
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1988 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1991 at_fn_group_postprocess
1997 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
1999 shift # Consume one token.
2000 if test $# -gt 0; then :; else
2001 read at_token <&6 || break
2004 test -f "$at_stop_file" && break
2007 # Read back the remaining ($at_jobs - 1) tokens.
2010 if test $# -gt 0; then
2020 # Run serially, avoid forks and other potential surprises.
2021 for at_group in $at_groups; do
2023 if cd "$at_group_dir" &&
2024 at_fn_test $at_group &&
2025 . "$at_test_source"; then :; else
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2027 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2030 at_fn_group_postprocess
2031 test -f "$at_stop_file" && break
2036 # Wrap up the test suite with summary statistics.
2039 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2040 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2041 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2042 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2043 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2044 echo $f; done | sed '/?/d; s,/xpass,,'`
2045 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2046 echo $f; done | sed '/?/d; s,/fail,,'`
2048 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2049 shift; at_group_count=$#
2050 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2051 set X $at_xfail_list; shift; at_xfail_count=$#
2052 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2053 set X $at_skip_list; shift; at_skip_count=$#
2055 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2056 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2057 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2059 # Back to the top directory.
2061 rm -rf "$at_helper_dir"
2063 # Compute the duration of the suite.
2065 at_stop_time=`date +%s 2>/dev/null`
2066 $as_echo "$as_me: ending at: $at_stop_date" >&5
2067 case $at_start_time,$at_stop_time in
2069 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2070 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2071 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2072 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2073 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2074 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2075 $as_echo "$as_me: test suite duration: $at_duration" >&5
2080 $as_echo "## ------------- ##
2082 ## ------------- ##"
2086 $as_echo "## ------------- ##
2088 ## ------------- ##"
2092 if test $at_run_count = 1; then
2096 at_result="$at_run_count tests"
2099 if $at_errexit_p && test $at_unexpected_count != 0; then
2100 if test $at_xpass_count = 1; then
2101 at_result="$at_result $at_were run, one passed"
2103 at_result="$at_result $at_were run, one failed"
2105 at_result="$at_result unexpectedly and inhibited subsequent tests."
2108 # Don't you just love exponential explosion of the number of cases?
2110 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2112 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2113 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2115 # Some unexpected failures
2116 0:*:0) at_result="$at_result $at_were run,
2117 $at_fail_count failed unexpectedly." ;;
2119 # Some failures, both expected and unexpected
2120 0:*:1) at_result="$at_result $at_were run,
2121 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2122 0:*:*) at_result="$at_result $at_were run,
2123 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2125 # No unexpected failures, but some xpasses
2126 *:0:*) at_result="$at_result $at_were run,
2127 $at_xpass_count passed unexpectedly." ;;
2129 # No expected failures, but failures and xpasses
2130 *:1:0) at_result="$at_result $at_were run,
2131 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2132 *:*:0) at_result="$at_result $at_were run,
2133 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2136 *:*:1) at_result="$at_result $at_were run,
2137 $at_xpass_count passed unexpectedly,
2138 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2139 *:*:*) at_result="$at_result $at_were run,
2140 $at_xpass_count passed unexpectedly,
2141 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2144 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2145 at_result="All $at_result"
2149 # Now put skips in the mix.
2150 case $at_skip_count in
2152 1) at_result="$at_result
2153 1 test was skipped." ;;
2154 *) at_result="$at_result
2155 $at_skip_count tests were skipped." ;;
2158 if test $at_unexpected_count = 0; then
2159 echo "$at_color$at_result$at_std"
2160 echo "$at_result" >&5
2162 echo "${at_color}ERROR: $at_result$at_std" >&2
2163 echo "ERROR: $at_result" >&5
2166 $as_echo "## ------------------------ ##
2167 ## Summary of the failures. ##
2168 ## ------------------------ ##"
2170 # Summary of failed and skipped tests.
2171 if test $at_fail_count != 0; then
2172 echo "Failed tests:"
2173 $SHELL "$at_myself" $at_fail_list --list
2176 if test $at_skip_count != 0; then
2177 echo "Skipped tests:"
2178 $SHELL "$at_myself" $at_skip_list --list
2181 if test $at_xpass_count != 0; then
2182 echo "Unexpected passes:"
2183 $SHELL "$at_myself" $at_xpass_list --list
2186 if test $at_fail_count != 0; then
2187 $as_echo "## ---------------------- ##
2188 ## Detailed failed tests. ##
2189 ## ---------------------- ##"
2191 for at_group in $at_fail_list
2193 at_group_normalized=$at_group
2196 case $at_group_normalized in #(
2197 '"$at_format"'*) break;;
2199 at_group_normalized=0$at_group_normalized
2202 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2207 if test -n "$at_top_srcdir"; then
2208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2209 ## ${at_top_build_prefix}config.log ##
2211 sed 's/^/| /' ${at_top_build_prefix}config.log
2216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2217 ## $as_me.log was created. ##
2221 if $at_debug_p; then
2222 at_msg='per-test log files'
2224 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2226 $as_echo "Please send $at_msg and all information you think might help:
2228 To: <bug-tar@gnu.org>
2229 Subject: [GNU tar 1.27.1] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
2231 You may investigate any problem if you feel able to do so, in which
2232 case the test suite provides a good starting point. Its output may
2233 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2244 at_fn_group_banner 1 'version.at:19' \
2248 $as_echo "1. $at_setup_line: testing $at_desc ..."
2253 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
2254 at_fn_check_prepare_notrace 'a shell pipeline' "version.at:21"
2255 ( $at_check_trace; tar --version | sed 1q
2256 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2257 at_status=$? at_failed=false
2259 at_fn_diff_devnull "$at_stderr" || at_failed=:
2260 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.27.1
2262 $at_diff - "$at_stdout" || at_failed=:
2263 at_fn_check_status 0 $at_status "$at_srcdir/version.at:21"
2264 if $at_failed; then :
2265 cat >$XFAILFILE <<'_EOT'
2267 ==============================================================
2268 WARNING: Not using the proper version, *all* checks dubious...
2269 ==============================================================
2275 $at_failed && at_fn_log_failure
2280 $at_times_p && times >"$at_times_file"
2281 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2282 read at_status <"$at_status_file"
2285 at_fn_group_banner 2 'pipe.at:29' \
2286 "decompressing from stdin" " "
2288 test -f $XFAILFILE && at_xfail=yes
2290 $as_echo "2. $at_setup_line: testing $at_desc ..."
2299 $as_echo "$at_srcdir/pipe.at:33:
2303 export TEST_TAR_FORMAT
2304 TAR_OPTIONS=\"-H v7\"
2309 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2313 genfile --length 10240 --pattern zeros --file directory/file1
2314 genfile --length 13 --file directory/file2
2315 tar cf archive directory
2317 cat archive | tar xfv - --warning=no-timestamp | sort
2319 cmp orig/file1 directory/file1
2321 cmp orig/file2 directory/file2)"
2322 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2327 export TEST_TAR_FORMAT
2333 test -z "`sort < /dev/null 2>&1`" || exit 77
2337 genfile --length 10240 --pattern zeros --file directory/file1
2338 genfile --length 13 --file directory/file2
2339 tar cf archive directory
2341 cat archive | tar xfv - --warning=no-timestamp | sort
2343 cmp orig/file1 directory/file1
2345 cmp orig/file2 directory/file2)
2346 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2347 at_status=$? at_failed=false
2349 at_fn_diff_devnull "$at_stderr" || at_failed=:
2350 echo >>"$at_stdout"; $as_echo "directory/
2356 $at_diff - "$at_stdout" || at_failed=:
2357 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2358 $at_failed && at_fn_log_failure
2362 $as_echo "$at_srcdir/pipe.at:33:
2365 TEST_TAR_FORMAT=oldgnu
2366 export TEST_TAR_FORMAT
2367 TAR_OPTIONS=\"-H oldgnu\"
2372 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2376 genfile --length 10240 --pattern zeros --file directory/file1
2377 genfile --length 13 --file directory/file2
2378 tar cf archive directory
2380 cat archive | tar xfv - --warning=no-timestamp | sort
2382 cmp orig/file1 directory/file1
2384 cmp orig/file2 directory/file2)"
2385 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2389 TEST_TAR_FORMAT=oldgnu
2390 export TEST_TAR_FORMAT
2391 TAR_OPTIONS="-H oldgnu"
2396 test -z "`sort < /dev/null 2>&1`" || exit 77
2400 genfile --length 10240 --pattern zeros --file directory/file1
2401 genfile --length 13 --file directory/file2
2402 tar cf archive directory
2404 cat archive | tar xfv - --warning=no-timestamp | sort
2406 cmp orig/file1 directory/file1
2408 cmp orig/file2 directory/file2)
2409 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2410 at_status=$? at_failed=false
2412 at_fn_diff_devnull "$at_stderr" || at_failed=:
2413 echo >>"$at_stdout"; $as_echo "directory/
2419 $at_diff - "$at_stdout" || at_failed=:
2420 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2421 $at_failed && at_fn_log_failure
2425 $as_echo "$at_srcdir/pipe.at:33:
2428 TEST_TAR_FORMAT=ustar
2429 export TEST_TAR_FORMAT
2430 TAR_OPTIONS=\"-H ustar\"
2435 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2439 genfile --length 10240 --pattern zeros --file directory/file1
2440 genfile --length 13 --file directory/file2
2441 tar cf archive directory
2443 cat archive | tar xfv - --warning=no-timestamp | sort
2445 cmp orig/file1 directory/file1
2447 cmp orig/file2 directory/file2)"
2448 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2452 TEST_TAR_FORMAT=ustar
2453 export TEST_TAR_FORMAT
2454 TAR_OPTIONS="-H ustar"
2459 test -z "`sort < /dev/null 2>&1`" || exit 77
2463 genfile --length 10240 --pattern zeros --file directory/file1
2464 genfile --length 13 --file directory/file2
2465 tar cf archive directory
2467 cat archive | tar xfv - --warning=no-timestamp | sort
2469 cmp orig/file1 directory/file1
2471 cmp orig/file2 directory/file2)
2472 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2473 at_status=$? at_failed=false
2475 at_fn_diff_devnull "$at_stderr" || at_failed=:
2476 echo >>"$at_stdout"; $as_echo "directory/
2482 $at_diff - "$at_stdout" || at_failed=:
2483 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2484 $at_failed && at_fn_log_failure
2488 $as_echo "$at_srcdir/pipe.at:33:
2491 TEST_TAR_FORMAT=posix
2492 export TEST_TAR_FORMAT
2493 TAR_OPTIONS=\"-H posix\"
2498 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2502 genfile --length 10240 --pattern zeros --file directory/file1
2503 genfile --length 13 --file directory/file2
2504 tar cf archive directory
2506 cat archive | tar xfv - --warning=no-timestamp | sort
2508 cmp orig/file1 directory/file1
2510 cmp orig/file2 directory/file2)"
2511 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2515 TEST_TAR_FORMAT=posix
2516 export TEST_TAR_FORMAT
2517 TAR_OPTIONS="-H posix"
2522 test -z "`sort < /dev/null 2>&1`" || exit 77
2526 genfile --length 10240 --pattern zeros --file directory/file1
2527 genfile --length 13 --file directory/file2
2528 tar cf archive directory
2530 cat archive | tar xfv - --warning=no-timestamp | sort
2532 cmp orig/file1 directory/file1
2534 cmp orig/file2 directory/file2)
2535 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2536 at_status=$? at_failed=false
2538 at_fn_diff_devnull "$at_stderr" || at_failed=:
2539 echo >>"$at_stdout"; $as_echo "directory/
2545 $at_diff - "$at_stdout" || at_failed=:
2546 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2547 $at_failed && at_fn_log_failure
2551 $as_echo "$at_srcdir/pipe.at:33:
2555 export TEST_TAR_FORMAT
2556 TAR_OPTIONS=\"-H gnu\"
2561 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2565 genfile --length 10240 --pattern zeros --file directory/file1
2566 genfile --length 13 --file directory/file2
2567 tar cf archive directory
2569 cat archive | tar xfv - --warning=no-timestamp | sort
2571 cmp orig/file1 directory/file1
2573 cmp orig/file2 directory/file2)"
2574 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2579 export TEST_TAR_FORMAT
2580 TAR_OPTIONS="-H gnu"
2585 test -z "`sort < /dev/null 2>&1`" || exit 77
2589 genfile --length 10240 --pattern zeros --file directory/file1
2590 genfile --length 13 --file directory/file2
2591 tar cf archive directory
2593 cat archive | tar xfv - --warning=no-timestamp | sort
2595 cmp orig/file1 directory/file1
2597 cmp orig/file2 directory/file2)
2598 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2599 at_status=$? at_failed=false
2601 at_fn_diff_devnull "$at_stderr" || at_failed=:
2602 echo >>"$at_stdout"; $as_echo "directory/
2608 $at_diff - "$at_stdout" || at_failed=:
2609 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2610 $at_failed && at_fn_log_failure
2617 $at_times_p && times >"$at_times_file"
2618 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2619 read at_status <"$at_status_file"
2622 at_fn_group_banner 3 'options.at:24' \
2623 "mixing options" " "
2626 $as_echo "3. $at_setup_line: testing $at_desc ..."
2632 $as_echo "$at_srcdir/options.at:27:
2634 TAR_OPTIONS=--numeric-owner tar chof archive file1
2637 at_fn_check_prepare_notrace 'an embedded newline' "options.at:27"
2640 TAR_OPTIONS=--numeric-owner tar chof archive file1
2643 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2644 at_status=$? at_failed=false
2646 at_fn_diff_devnull "$at_stderr" || at_failed=:
2647 echo >>"$at_stdout"; $as_echo "file1
2649 $at_diff - "$at_stdout" || at_failed=:
2650 at_fn_check_status 0 $at_status "$at_srcdir/options.at:27"
2651 $at_failed && at_fn_log_failure
2656 $at_times_p && times >"$at_times_file"
2657 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2658 read at_status <"$at_status_file"
2661 at_fn_group_banner 4 'options02.at:26' \
2662 "interspersed options" " "
2665 $as_echo "4. $at_setup_line: testing $at_desc ..."
2671 $as_echo "$at_srcdir/options02.at:29:
2673 tar c file1 -f archive
2676 at_fn_check_prepare_notrace 'an embedded newline' "options02.at:29"
2679 tar c file1 -f archive
2682 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2683 at_status=$? at_failed=false
2685 at_fn_diff_devnull "$at_stderr" || at_failed=:
2686 echo >>"$at_stdout"; $as_echo "file1
2688 $at_diff - "$at_stdout" || at_failed=:
2689 at_fn_check_status 0 $at_status "$at_srcdir/options02.at:29"
2690 $at_failed && at_fn_log_failure
2695 $at_times_p && times >"$at_times_file"
2696 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2697 read at_status <"$at_status_file"
2700 at_fn_group_banner 5 'opcomp01.at:21' \
2701 "occurrence compatibility" " " 1
2704 $as_echo "5. $at_setup_line: testing $at_desc ..."
2710 $as_echo "$at_srcdir/opcomp01.at:24:
2711 tar --occurrence=1 -cf test.tar .
2713 at_fn_check_prepare_notrace 'an embedded newline' "opcomp01.at:24"
2715 tar --occurrence=1 -cf test.tar .
2717 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2718 at_status=$? at_failed=false
2720 echo >>"$at_stderr"; $as_echo "tar: --occurrence cannot be used with -c
2721 Try 'tar --help' or 'tar --usage' for more information.
2723 $at_diff - "$at_stderr" || at_failed=:
2724 at_fn_diff_devnull "$at_stdout" || at_failed=:
2725 at_fn_check_status 2 $at_status "$at_srcdir/opcomp01.at:24"
2726 $at_failed && at_fn_log_failure
2731 $at_times_p && times >"$at_times_file"
2732 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2733 read at_status <"$at_status_file"
2736 at_fn_group_banner 6 'opcomp02.at:21' \
2737 "occurrence compatibility" " " 1
2740 $as_echo "6. $at_setup_line: testing $at_desc ..."
2746 $as_echo "$at_srcdir/opcomp02.at:24:
2747 tar --occurrence=1 -tf test.tar
2749 at_fn_check_prepare_notrace 'an embedded newline' "opcomp02.at:24"
2751 tar --occurrence=1 -tf test.tar
2753 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2754 at_status=$? at_failed=false
2756 echo >>"$at_stderr"; $as_echo "tar: --occurrence is meaningless without a file list
2757 Try 'tar --help' or 'tar --usage' for more information.
2759 $at_diff - "$at_stderr" || at_failed=:
2760 at_fn_diff_devnull "$at_stdout" || at_failed=:
2761 at_fn_check_status 2 $at_status "$at_srcdir/opcomp02.at:24"
2762 $at_failed && at_fn_log_failure
2767 $at_times_p && times >"$at_times_file"
2768 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2769 read at_status <"$at_status_file"
2772 at_fn_group_banner 7 'opcomp03.at:21' \
2773 "--verify compatibility" " " 1
2776 $as_echo "7. $at_setup_line: testing $at_desc ..."
2782 $as_echo "$at_srcdir/opcomp03.at:24:
2785 at_fn_check_prepare_notrace 'an embedded newline' "opcomp03.at:24"
2789 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2790 at_status=$? at_failed=false
2792 echo >>"$at_stderr"; $as_echo "tar: --verify cannot be used with -t
2793 Try 'tar --help' or 'tar --usage' for more information.
2795 $at_diff - "$at_stderr" || at_failed=:
2796 at_fn_diff_devnull "$at_stdout" || at_failed=:
2797 at_fn_check_status 2 $at_status "$at_srcdir/opcomp03.at:24"
2798 $at_failed && at_fn_log_failure
2803 $at_times_p && times >"$at_times_file"
2804 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2805 read at_status <"$at_status_file"
2808 at_fn_group_banner 8 'opcomp04.at:21' \
2809 "compress option compatibility" " " 1
2812 $as_echo "8. $at_setup_line: testing $at_desc ..."
2818 $as_echo "$at_srcdir/opcomp04.at:24:
2820 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2823 tar czf test.tar file
2824 genfile --file newfile
2825 tar rzf test.tar newfile
2827 at_fn_check_prepare_notrace 'an embedded newline' "opcomp04.at:24"
2830 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2833 tar czf test.tar file
2834 genfile --file newfile
2835 tar rzf test.tar newfile
2837 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2838 at_status=$? at_failed=false
2840 echo >>"$at_stderr"; $as_echo "tar: Cannot update compressed archives
2841 Try 'tar --help' or 'tar --usage' for more information.
2843 $at_diff - "$at_stderr" || at_failed=:
2844 at_fn_diff_devnull "$at_stdout" || at_failed=:
2845 at_fn_check_status 2 $at_status "$at_srcdir/opcomp04.at:24"
2846 $at_failed && at_fn_log_failure
2851 $at_times_p && times >"$at_times_file"
2852 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2853 read at_status <"$at_status_file"
2856 at_fn_group_banner 9 'opcomp05.at:21' \
2857 "--pax-option compatibility" " " 1
2860 $as_echo "9. $at_setup_line: testing $at_desc ..."
2866 $as_echo "$at_srcdir/opcomp05.at:24:
2867 tar -Hgnu -cf test.tar --pax-option user:=root .
2869 at_fn_check_prepare_notrace 'an embedded newline' "opcomp05.at:24"
2871 tar -Hgnu -cf test.tar --pax-option user:=root .
2873 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2874 at_status=$? at_failed=false
2876 echo >>"$at_stderr"; $as_echo "tar: --pax-option can be used only on POSIX archives
2877 Try 'tar --help' or 'tar --usage' for more information.
2879 $at_diff - "$at_stderr" || at_failed=:
2880 at_fn_diff_devnull "$at_stdout" || at_failed=:
2881 at_fn_check_status 2 $at_status "$at_srcdir/opcomp05.at:24"
2882 $at_failed && at_fn_log_failure
2887 $at_times_p && times >"$at_times_file"
2888 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2889 read at_status <"$at_status_file"
2892 at_fn_group_banner 10 'opcomp06.at:21' \
2893 "--pax-option compatibility" " " 1
2896 $as_echo "10. $at_setup_line: testing $at_desc ..."
2902 $as_echo "$at_srcdir/opcomp06.at:24:
2905 file=\$(TMPDIR=. mktemp fiXXXXXX)
2907 setfacl -m u:\$UID:rwx \$file &> /dev/null
2908 if test \"\$?\" != 0; then
2913 getfacl \$file &> /dev/null
2914 if test \"\$?\" != 0; then
2920 file=\$(TMPDIR=. mktemp fiXXXXXX)
2921 setfacl -m u:\$UID:rwx \$file
2922 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
2923 if test \"\$err\" != \"0\"; then
2928 tar -cf test.tar --acls -Hgnu file
2930 at_fn_check_prepare_notrace 'a $(...) command substitution' "opcomp06.at:24"
2934 file=$(TMPDIR=. mktemp fiXXXXXX)
2936 setfacl -m u:$UID:rwx $file &> /dev/null
2937 if test "$?" != 0; then
2942 getfacl $file &> /dev/null
2943 if test "$?" != 0; then
2949 file=$(TMPDIR=. mktemp fiXXXXXX)
2950 setfacl -m u:$UID:rwx $file
2951 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
2952 if test "$err" != "0"; then
2957 tar -cf test.tar --acls -Hgnu file
2959 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2960 at_status=$? at_failed=false
2962 echo >>"$at_stderr"; $as_echo "tar: --acls can be used only on POSIX archives
2963 Try 'tar --help' or 'tar --usage' for more information.
2965 $at_diff - "$at_stderr" || at_failed=:
2966 at_fn_diff_devnull "$at_stdout" || at_failed=:
2967 at_fn_check_status 2 $at_status "$at_srcdir/opcomp06.at:24"
2968 $at_failed && at_fn_log_failure
2973 $at_times_p && times >"$at_times_file"
2974 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2975 read at_status <"$at_status_file"
2978 at_fn_group_banner 11 'T-mult.at:21' \
2979 "multiple file lists" " " 2
2981 test -f $XFAILFILE && at_xfail=yes
2983 $as_echo "11. $at_setup_line: testing $at_desc ..."
2991 $as_echo "$at_srcdir/T-mult.at:24:
2994 TEST_TAR_FORMAT=ustar
2995 export TEST_TAR_FORMAT
2996 TAR_OPTIONS=\"-H ustar\"
3014 tar cf archive -T F1 -T F2
3017 at_fn_check_prepare_notrace 'an embedded newline' "T-mult.at:24"
3021 TEST_TAR_FORMAT=ustar
3022 export TEST_TAR_FORMAT
3023 TAR_OPTIONS="-H ustar"
3041 tar cf archive -T F1 -T F2
3044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3045 at_status=$? at_failed=false
3047 at_fn_diff_devnull "$at_stderr" || at_failed=:
3048 echo >>"$at_stdout"; $as_echo "file1
3053 $at_diff - "$at_stdout" || at_failed=:
3054 at_fn_check_status 0 $at_status "$at_srcdir/T-mult.at:24"
3055 $at_failed && at_fn_log_failure
3062 $at_times_p && times >"$at_times_file"
3063 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3064 read at_status <"$at_status_file"
3067 at_fn_group_banner 12 'T-nest.at:21' \
3068 "nested file lists" " " 2
3070 test -f $XFAILFILE && at_xfail=yes
3072 $as_echo "12. $at_setup_line: testing $at_desc ..."
3080 $as_echo "$at_srcdir/T-nest.at:24:
3083 TEST_TAR_FORMAT=ustar
3084 export TEST_TAR_FORMAT
3085 TAR_OPTIONS=\"-H ustar\"
3104 tar cf archive -T F1
3107 at_fn_check_prepare_notrace 'an embedded newline' "T-nest.at:24"
3111 TEST_TAR_FORMAT=ustar
3112 export TEST_TAR_FORMAT
3113 TAR_OPTIONS="-H ustar"
3132 tar cf archive -T F1
3135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3136 at_status=$? at_failed=false
3138 at_fn_diff_devnull "$at_stderr" || at_failed=:
3139 echo >>"$at_stdout"; $as_echo "file1
3144 $at_diff - "$at_stdout" || at_failed=:
3145 at_fn_check_status 0 $at_status "$at_srcdir/T-nest.at:24"
3146 $at_failed && at_fn_log_failure
3153 $at_times_p && times >"$at_times_file"
3154 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3155 read at_status <"$at_status_file"
3158 at_fn_group_banner 13 'T-rec.at:21' \
3159 "recursive file lists" " " 2
3161 test -f $XFAILFILE && at_xfail=yes
3163 $as_echo "13. $at_setup_line: testing $at_desc ..."
3171 $as_echo "$at_srcdir/T-rec.at:24:
3174 TEST_TAR_FORMAT=ustar
3175 export TEST_TAR_FORMAT
3176 TAR_OPTIONS=\"-H ustar\"
3192 tar cf archive -T F1
3196 at_fn_check_prepare_notrace 'an embedded newline' "T-rec.at:24"
3200 TEST_TAR_FORMAT=ustar
3201 export TEST_TAR_FORMAT
3202 TAR_OPTIONS="-H ustar"
3218 tar cf archive -T F1
3222 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3223 at_status=$? at_failed=false
3225 echo >>"$at_stderr"; $as_echo "tar: F1: file list requested from F2 already read from command line
3226 tar: Exiting with failure status due to previous errors
3228 $at_diff - "$at_stderr" || at_failed=:
3229 echo >>"$at_stdout"; $as_echo "2
3233 $at_diff - "$at_stdout" || at_failed=:
3234 at_fn_check_status 0 $at_status "$at_srcdir/T-rec.at:24"
3235 $at_failed && at_fn_log_failure
3242 $at_times_p && times >"$at_times_file"
3243 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3244 read at_status <"$at_status_file"
3247 at_fn_group_banner 14 'T-cd.at:21' \
3248 "-C in file lists" " " 2
3250 test -f $XFAILFILE && at_xfail=yes
3252 $as_echo "14. $at_setup_line: testing $at_desc ..."
3260 $as_echo "$at_srcdir/T-cd.at:24:
3263 TEST_TAR_FORMAT=ustar
3264 export TEST_TAR_FORMAT
3265 TAR_OPTIONS=\"-H ustar\"
3270 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
3282 tar cf archive -T F1
3283 tar tf archive | sort
3285 at_fn_check_prepare_notrace 'a `...` command substitution' "T-cd.at:24"
3289 TEST_TAR_FORMAT=ustar
3290 export TEST_TAR_FORMAT
3291 TAR_OPTIONS="-H ustar"
3296 test -z "`sort < /dev/null 2>&1`" || exit 77
3308 tar cf archive -T F1
3309 tar tf archive | sort
3311 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3312 at_status=$? at_failed=false
3314 at_fn_diff_devnull "$at_stderr" || at_failed=:
3315 echo >>"$at_stdout"; $as_echo "./
3320 $at_diff - "$at_stdout" || at_failed=:
3321 at_fn_check_status 0 $at_status "$at_srcdir/T-cd.at:24"
3322 $at_failed && at_fn_log_failure
3329 $at_times_p && times >"$at_times_file"
3330 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3331 read at_status <"$at_status_file"
3334 at_fn_group_banner 15 'T-empty.at:26' \
3335 "empty entries" " " 2
3337 test -f $XFAILFILE && at_xfail=yes
3339 $as_echo "15. $at_setup_line: testing $at_desc ..."
3344 cat >file-list <<'_ATEOF'
3355 $as_echo "$at_srcdir/T-empty.at:36:
3358 TEST_TAR_FORMAT=ustar
3359 export TEST_TAR_FORMAT
3360 TAR_OPTIONS=\"-H ustar\"
3365 genfile --file jeden
3369 tar cfvT archive ../file-list
3371 at_fn_check_prepare_notrace 'an embedded newline' "T-empty.at:36"
3375 TEST_TAR_FORMAT=ustar
3376 export TEST_TAR_FORMAT
3377 TAR_OPTIONS="-H ustar"
3382 genfile --file jeden
3386 tar cfvT archive ../file-list
3388 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3389 at_status=$? at_failed=false
3391 at_fn_diff_devnull "$at_stderr" || at_failed=:
3392 echo >>"$at_stdout"; $as_echo "jeden
3396 $at_diff - "$at_stdout" || at_failed=:
3397 at_fn_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
3398 $at_failed && at_fn_log_failure
3402 # Testing one format is enough
3405 $at_times_p && times >"$at_times_file"
3406 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3407 read at_status <"$at_status_file"
3410 at_fn_group_banner 16 'T-null.at:21' \
3411 "0-separated file without -0" " " 2
3413 test -f $XFAILFILE && at_xfail=yes
3415 $as_echo "16. $at_setup_line: testing $at_desc ..."
3423 $as_echo "$at_srcdir/T-null.at:24:
3426 TEST_TAR_FORMAT=ustar
3427 export TEST_TAR_FORMAT
3428 TAR_OPTIONS=\"-H ustar\"
3433 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
3439 cat temp | tr '\\n' '\\0' > file-list
3445 tar cfTv archive file-list
3447 at_fn_check_prepare_notrace 'a `...` command substitution' "T-null.at:24"
3451 TEST_TAR_FORMAT=ustar
3452 export TEST_TAR_FORMAT
3453 TAR_OPTIONS="-H ustar"
3458 test -z "`sort < /dev/null 2>&1`" || exit 77
3464 cat temp | tr '\n' '\0' > file-list
3470 tar cfTv archive file-list
3472 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3473 at_status=$? at_failed=false
3475 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
3477 $at_diff - "$at_stderr" || at_failed=:
3478 echo >>"$at_stdout"; $as_echo "jeden
3482 $at_diff - "$at_stdout" || at_failed=:
3483 at_fn_check_status 0 $at_status "$at_srcdir/T-null.at:24"
3484 $at_failed && at_fn_log_failure
3488 # Testing one format is enough
3491 $at_times_p && times >"$at_times_file"
3492 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3493 read at_status <"$at_status_file"
3496 at_fn_group_banner 17 'T-zfile.at:26' \
3499 test -f $XFAILFILE && at_xfail=yes
3501 $as_echo "17. $at_setup_line: testing $at_desc ..."
3509 $as_echo "$at_srcdir/T-zfile.at:29:
3512 TEST_TAR_FORMAT=ustar
3513 export TEST_TAR_FORMAT
3514 TAR_OPTIONS=\"-H ustar\"
3518 genfile --length=0 --file empty
3521 cat >valid <<'_ATEOF'
3527 tar cf archive -T empty -T valid
3530 tar cf archive -T valid -T empty
3533 at_fn_check_prepare_notrace 'an embedded newline' "T-zfile.at:29"
3537 TEST_TAR_FORMAT=ustar
3538 export TEST_TAR_FORMAT
3539 TAR_OPTIONS="-H ustar"
3543 genfile --length=0 --file empty
3546 cat >valid <<'_ATEOF'
3552 tar cf archive -T empty -T valid
3555 tar cf archive -T valid -T empty
3558 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3559 at_status=$? at_failed=false
3561 at_fn_diff_devnull "$at_stderr" || at_failed=:
3562 echo >>"$at_stdout"; $as_echo "a
3568 $at_diff - "$at_stdout" || at_failed=:
3569 at_fn_check_status 0 $at_status "$at_srcdir/T-zfile.at:29"
3570 $at_failed && at_fn_log_failure
3574 # Testing one format is enough
3577 $at_times_p && times >"$at_times_file"
3578 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3579 read at_status <"$at_status_file"
3582 at_fn_group_banner 18 'T-nonl.at:27' \
3583 "entries with missing newlines" " " 2
3585 test -f $XFAILFILE && at_xfail=yes
3587 $as_echo "18. $at_setup_line: testing $at_desc ..."
3595 $as_echo "$at_srcdir/T-nonl.at:30:
3598 TEST_TAR_FORMAT=ustar
3599 export TEST_TAR_FORMAT
3600 TAR_OPTIONS=\"-H ustar\"
3604 genfile --length=0 --file empty
3605 \$as_echo_n c > 1.nonl
3607 \$as_echo_n e >> 2.nonl
3609 cat >filelist <<'_ATEOF'
3615 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
3618 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
3621 at_fn_check_prepare_notrace 'an embedded newline' "T-nonl.at:30"
3625 TEST_TAR_FORMAT=ustar
3626 export TEST_TAR_FORMAT
3627 TAR_OPTIONS="-H ustar"
3631 genfile --length=0 --file empty
3632 $as_echo_n c > 1.nonl
3634 $as_echo_n e >> 2.nonl
3636 cat >filelist <<'_ATEOF'
3642 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
3645 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
3648 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3649 at_status=$? at_failed=false
3651 at_fn_diff_devnull "$at_stderr" || at_failed=:
3652 echo >>"$at_stdout"; $as_echo "c
3664 $at_diff - "$at_stdout" || at_failed=:
3665 at_fn_check_status 0 $at_status "$at_srcdir/T-nonl.at:30"
3666 $at_failed && at_fn_log_failure
3673 $at_times_p && times >"$at_times_file"
3674 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3675 read at_status <"$at_status_file"
3678 at_fn_group_banner 19 'indexfile.at:26' \
3679 "tar --index-file=FILE --file=-" " " 3
3681 test -f $XFAILFILE && at_xfail=yes
3683 $as_echo "19. $at_setup_line: testing $at_desc ..."
3691 $as_echo "$at_srcdir/indexfile.at:29:
3695 export TEST_TAR_FORMAT
3696 TAR_OPTIONS=\"-H v7\"
3702 genfile --file=directory/a --length=1035
3704 echo \"Creating the archive\"
3705 tar -c -v -f - --index-file=idx directory > archive
3707 echo \"Testing the archive\"
3710 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3715 export TEST_TAR_FORMAT
3722 genfile --file=directory/a --length=1035
3724 echo "Creating the archive"
3725 tar -c -v -f - --index-file=idx directory > archive
3727 echo "Testing the archive"
3730 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3731 at_status=$? at_failed=false
3733 at_fn_diff_devnull "$at_stderr" || at_failed=:
3734 echo >>"$at_stdout"; $as_echo "Creating the archive
3739 $at_diff - "$at_stdout" || at_failed=:
3740 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3741 $at_failed && at_fn_log_failure
3745 $as_echo "$at_srcdir/indexfile.at:29:
3748 TEST_TAR_FORMAT=oldgnu
3749 export TEST_TAR_FORMAT
3750 TAR_OPTIONS=\"-H oldgnu\"
3756 genfile --file=directory/a --length=1035
3758 echo \"Creating the archive\"
3759 tar -c -v -f - --index-file=idx directory > archive
3761 echo \"Testing the archive\"
3764 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3768 TEST_TAR_FORMAT=oldgnu
3769 export TEST_TAR_FORMAT
3770 TAR_OPTIONS="-H oldgnu"
3776 genfile --file=directory/a --length=1035
3778 echo "Creating the archive"
3779 tar -c -v -f - --index-file=idx directory > archive
3781 echo "Testing the archive"
3784 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3785 at_status=$? at_failed=false
3787 at_fn_diff_devnull "$at_stderr" || at_failed=:
3788 echo >>"$at_stdout"; $as_echo "Creating the archive
3793 $at_diff - "$at_stdout" || at_failed=:
3794 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3795 $at_failed && at_fn_log_failure
3799 $as_echo "$at_srcdir/indexfile.at:29:
3802 TEST_TAR_FORMAT=ustar
3803 export TEST_TAR_FORMAT
3804 TAR_OPTIONS=\"-H ustar\"
3810 genfile --file=directory/a --length=1035
3812 echo \"Creating the archive\"
3813 tar -c -v -f - --index-file=idx directory > archive
3815 echo \"Testing the archive\"
3818 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3822 TEST_TAR_FORMAT=ustar
3823 export TEST_TAR_FORMAT
3824 TAR_OPTIONS="-H ustar"
3830 genfile --file=directory/a --length=1035
3832 echo "Creating the archive"
3833 tar -c -v -f - --index-file=idx directory > archive
3835 echo "Testing the archive"
3838 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3839 at_status=$? at_failed=false
3841 at_fn_diff_devnull "$at_stderr" || at_failed=:
3842 echo >>"$at_stdout"; $as_echo "Creating the archive
3847 $at_diff - "$at_stdout" || at_failed=:
3848 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3849 $at_failed && at_fn_log_failure
3853 $as_echo "$at_srcdir/indexfile.at:29:
3856 TEST_TAR_FORMAT=posix
3857 export TEST_TAR_FORMAT
3858 TAR_OPTIONS=\"-H posix\"
3864 genfile --file=directory/a --length=1035
3866 echo \"Creating the archive\"
3867 tar -c -v -f - --index-file=idx directory > archive
3869 echo \"Testing the archive\"
3872 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3876 TEST_TAR_FORMAT=posix
3877 export TEST_TAR_FORMAT
3878 TAR_OPTIONS="-H posix"
3884 genfile --file=directory/a --length=1035
3886 echo "Creating the archive"
3887 tar -c -v -f - --index-file=idx directory > archive
3889 echo "Testing the archive"
3892 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3893 at_status=$? at_failed=false
3895 at_fn_diff_devnull "$at_stderr" || at_failed=:
3896 echo >>"$at_stdout"; $as_echo "Creating the archive
3901 $at_diff - "$at_stdout" || at_failed=:
3902 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3903 $at_failed && at_fn_log_failure
3907 $as_echo "$at_srcdir/indexfile.at:29:
3911 export TEST_TAR_FORMAT
3912 TAR_OPTIONS=\"-H gnu\"
3918 genfile --file=directory/a --length=1035
3920 echo \"Creating the archive\"
3921 tar -c -v -f - --index-file=idx directory > archive
3923 echo \"Testing the archive\"
3926 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3931 export TEST_TAR_FORMAT
3932 TAR_OPTIONS="-H gnu"
3938 genfile --file=directory/a --length=1035
3940 echo "Creating the archive"
3941 tar -c -v -f - --index-file=idx directory > archive
3943 echo "Testing the archive"
3946 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3947 at_status=$? at_failed=false
3949 at_fn_diff_devnull "$at_stderr" || at_failed=:
3950 echo >>"$at_stdout"; $as_echo "Creating the archive
3955 $at_diff - "$at_stdout" || at_failed=:
3956 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3957 $at_failed && at_fn_log_failure
3964 $at_times_p && times >"$at_times_file"
3965 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3966 read at_status <"$at_status_file"
3969 at_fn_group_banner 20 'verbose.at:26' \
3972 test -f $XFAILFILE && at_xfail=yes
3974 $as_echo "20. $at_setup_line: testing $at_desc ..."
3982 $as_echo "$at_srcdir/verbose.at:29:
3986 export TEST_TAR_FORMAT
3987 TAR_OPTIONS=\"-H v7\"
3991 genfile --file file --length 10240
3992 echo Creating the archive
3993 tar cvf - file > archive
3994 echo Testing the archive
3997 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4002 export TEST_TAR_FORMAT
4007 genfile --file file --length 10240
4008 echo Creating the archive
4009 tar cvf - file > archive
4010 echo Testing the archive
4013 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4014 at_status=$? at_failed=false
4016 echo >>"$at_stderr"; $as_echo "file
4018 $at_diff - "$at_stderr" || at_failed=:
4019 echo >>"$at_stdout"; $as_echo "Creating the archive
4023 $at_diff - "$at_stdout" || at_failed=:
4024 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4025 $at_failed && at_fn_log_failure
4029 $as_echo "$at_srcdir/verbose.at:29:
4032 TEST_TAR_FORMAT=oldgnu
4033 export TEST_TAR_FORMAT
4034 TAR_OPTIONS=\"-H oldgnu\"
4038 genfile --file file --length 10240
4039 echo Creating the archive
4040 tar cvf - file > archive
4041 echo Testing the archive
4044 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4048 TEST_TAR_FORMAT=oldgnu
4049 export TEST_TAR_FORMAT
4050 TAR_OPTIONS="-H oldgnu"
4054 genfile --file file --length 10240
4055 echo Creating the archive
4056 tar cvf - file > archive
4057 echo Testing the archive
4060 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4061 at_status=$? at_failed=false
4063 echo >>"$at_stderr"; $as_echo "file
4065 $at_diff - "$at_stderr" || at_failed=:
4066 echo >>"$at_stdout"; $as_echo "Creating the archive
4070 $at_diff - "$at_stdout" || at_failed=:
4071 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4072 $at_failed && at_fn_log_failure
4076 $as_echo "$at_srcdir/verbose.at:29:
4079 TEST_TAR_FORMAT=ustar
4080 export TEST_TAR_FORMAT
4081 TAR_OPTIONS=\"-H ustar\"
4085 genfile --file file --length 10240
4086 echo Creating the archive
4087 tar cvf - file > archive
4088 echo Testing the archive
4091 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4095 TEST_TAR_FORMAT=ustar
4096 export TEST_TAR_FORMAT
4097 TAR_OPTIONS="-H ustar"
4101 genfile --file file --length 10240
4102 echo Creating the archive
4103 tar cvf - file > archive
4104 echo Testing the archive
4107 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4108 at_status=$? at_failed=false
4110 echo >>"$at_stderr"; $as_echo "file
4112 $at_diff - "$at_stderr" || at_failed=:
4113 echo >>"$at_stdout"; $as_echo "Creating the archive
4117 $at_diff - "$at_stdout" || at_failed=:
4118 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4119 $at_failed && at_fn_log_failure
4123 $as_echo "$at_srcdir/verbose.at:29:
4126 TEST_TAR_FORMAT=posix
4127 export TEST_TAR_FORMAT
4128 TAR_OPTIONS=\"-H posix\"
4132 genfile --file file --length 10240
4133 echo Creating the archive
4134 tar cvf - file > archive
4135 echo Testing the archive
4138 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4142 TEST_TAR_FORMAT=posix
4143 export TEST_TAR_FORMAT
4144 TAR_OPTIONS="-H posix"
4148 genfile --file file --length 10240
4149 echo Creating the archive
4150 tar cvf - file > archive
4151 echo Testing the archive
4154 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4155 at_status=$? at_failed=false
4157 echo >>"$at_stderr"; $as_echo "file
4159 $at_diff - "$at_stderr" || at_failed=:
4160 echo >>"$at_stdout"; $as_echo "Creating the archive
4164 $at_diff - "$at_stdout" || at_failed=:
4165 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4166 $at_failed && at_fn_log_failure
4170 $as_echo "$at_srcdir/verbose.at:29:
4174 export TEST_TAR_FORMAT
4175 TAR_OPTIONS=\"-H gnu\"
4179 genfile --file file --length 10240
4180 echo Creating the archive
4181 tar cvf - file > archive
4182 echo Testing the archive
4185 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4190 export TEST_TAR_FORMAT
4191 TAR_OPTIONS="-H gnu"
4195 genfile --file file --length 10240
4196 echo Creating the archive
4197 tar cvf - file > archive
4198 echo Testing the archive
4201 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4202 at_status=$? at_failed=false
4204 echo >>"$at_stderr"; $as_echo "file
4206 $at_diff - "$at_stderr" || at_failed=:
4207 echo >>"$at_stdout"; $as_echo "Creating the archive
4211 $at_diff - "$at_stdout" || at_failed=:
4212 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4213 $at_failed && at_fn_log_failure
4220 $at_times_p && times >"$at_times_file"
4221 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4222 read at_status <"$at_status_file"
4225 at_fn_group_banner 21 'gzip.at:23' \
4229 $as_echo "21. $at_setup_line: testing $at_desc ..."
4237 $as_echo "$at_srcdir/gzip.at:28:
4239 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
4241 tar xfvz /dev/null 2>err
4243 sed -n '/^tar:/p' err >&2
4246 at_fn_check_prepare_notrace 'an embedded newline' "gzip.at:28"
4249 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
4251 tar xfvz /dev/null 2>err
4253 sed -n '/^tar:/p' err >&2
4256 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4257 at_status=$? at_failed=false
4259 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
4260 tar: Error is not recoverable: exiting now
4262 $at_diff - "$at_stderr" || at_failed=:
4263 at_fn_diff_devnull "$at_stdout" || at_failed=:
4264 at_fn_check_status 2 $at_status "$at_srcdir/gzip.at:28"
4265 $at_failed && at_fn_log_failure
4270 $at_times_p && times >"$at_times_file"
4271 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4272 read at_status <"$at_status_file"
4275 at_fn_group_banner 22 'recurse.at:21' \
4278 test -f $XFAILFILE && at_xfail=yes
4280 $as_echo "22. $at_setup_line: testing $at_desc ..."
4288 $as_echo "$at_srcdir/recurse.at:24:
4292 export TEST_TAR_FORMAT
4293 TAR_OPTIONS=\"-H v7\"
4298 touch directory/file
4299 tar --create --file archive --no-recursion directory || exit 1
4302 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4307 export TEST_TAR_FORMAT
4313 touch directory/file
4314 tar --create --file archive --no-recursion directory || exit 1
4317 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4318 at_status=$? at_failed=false
4320 at_fn_diff_devnull "$at_stderr" || at_failed=:
4321 echo >>"$at_stdout"; $as_echo "directory/
4323 $at_diff - "$at_stdout" || at_failed=:
4324 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4325 $at_failed && at_fn_log_failure
4329 $as_echo "$at_srcdir/recurse.at:24:
4332 TEST_TAR_FORMAT=oldgnu
4333 export TEST_TAR_FORMAT
4334 TAR_OPTIONS=\"-H oldgnu\"
4339 touch directory/file
4340 tar --create --file archive --no-recursion directory || exit 1
4343 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4347 TEST_TAR_FORMAT=oldgnu
4348 export TEST_TAR_FORMAT
4349 TAR_OPTIONS="-H oldgnu"
4354 touch directory/file
4355 tar --create --file archive --no-recursion directory || exit 1
4358 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4359 at_status=$? at_failed=false
4361 at_fn_diff_devnull "$at_stderr" || at_failed=:
4362 echo >>"$at_stdout"; $as_echo "directory/
4364 $at_diff - "$at_stdout" || at_failed=:
4365 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4366 $at_failed && at_fn_log_failure
4370 $as_echo "$at_srcdir/recurse.at:24:
4373 TEST_TAR_FORMAT=ustar
4374 export TEST_TAR_FORMAT
4375 TAR_OPTIONS=\"-H ustar\"
4380 touch directory/file
4381 tar --create --file archive --no-recursion directory || exit 1
4384 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4388 TEST_TAR_FORMAT=ustar
4389 export TEST_TAR_FORMAT
4390 TAR_OPTIONS="-H ustar"
4395 touch directory/file
4396 tar --create --file archive --no-recursion directory || exit 1
4399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4400 at_status=$? at_failed=false
4402 at_fn_diff_devnull "$at_stderr" || at_failed=:
4403 echo >>"$at_stdout"; $as_echo "directory/
4405 $at_diff - "$at_stdout" || at_failed=:
4406 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4407 $at_failed && at_fn_log_failure
4411 $as_echo "$at_srcdir/recurse.at:24:
4414 TEST_TAR_FORMAT=posix
4415 export TEST_TAR_FORMAT
4416 TAR_OPTIONS=\"-H posix\"
4421 touch directory/file
4422 tar --create --file archive --no-recursion directory || exit 1
4425 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4429 TEST_TAR_FORMAT=posix
4430 export TEST_TAR_FORMAT
4431 TAR_OPTIONS="-H posix"
4436 touch directory/file
4437 tar --create --file archive --no-recursion directory || exit 1
4440 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4441 at_status=$? at_failed=false
4443 at_fn_diff_devnull "$at_stderr" || at_failed=:
4444 echo >>"$at_stdout"; $as_echo "directory/
4446 $at_diff - "$at_stdout" || at_failed=:
4447 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4448 $at_failed && at_fn_log_failure
4452 $as_echo "$at_srcdir/recurse.at:24:
4456 export TEST_TAR_FORMAT
4457 TAR_OPTIONS=\"-H gnu\"
4462 touch directory/file
4463 tar --create --file archive --no-recursion directory || exit 1
4466 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4471 export TEST_TAR_FORMAT
4472 TAR_OPTIONS="-H gnu"
4477 touch directory/file
4478 tar --create --file archive --no-recursion directory || exit 1
4481 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4482 at_status=$? at_failed=false
4484 at_fn_diff_devnull "$at_stderr" || at_failed=:
4485 echo >>"$at_stdout"; $as_echo "directory/
4487 $at_diff - "$at_stdout" || at_failed=:
4488 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4489 $at_failed && at_fn_log_failure
4496 $at_times_p && times >"$at_times_file"
4497 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4498 read at_status <"$at_status_file"
4501 at_fn_group_banner 23 'shortrec.at:25' \
4502 "short records" " " 3
4504 test -f $XFAILFILE && at_xfail=yes
4506 $as_echo "23. $at_setup_line: testing $at_desc ..."
4514 $as_echo "$at_srcdir/shortrec.at:28:
4518 export TEST_TAR_FORMAT
4519 TAR_OPTIONS=\"-H v7\"
4524 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4525 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4526 tar -c -b 1 -f archive directory
4527 tar -t -f archive > /dev/null
4528 tar -t -f - < archive > /dev/null
4532 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4537 export TEST_TAR_FORMAT
4543 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4544 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4545 tar -c -b 1 -f archive directory
4546 tar -t -f archive > /dev/null
4547 tar -t -f - < archive > /dev/null
4551 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4552 at_status=$? at_failed=false
4554 at_fn_diff_devnull "$at_stderr" || at_failed=:
4555 at_fn_diff_devnull "$at_stdout" || at_failed=:
4556 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4557 $at_failed && at_fn_log_failure
4561 $as_echo "$at_srcdir/shortrec.at:28:
4564 TEST_TAR_FORMAT=oldgnu
4565 export TEST_TAR_FORMAT
4566 TAR_OPTIONS=\"-H oldgnu\"
4571 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4572 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4573 tar -c -b 1 -f archive directory
4574 tar -t -f archive > /dev/null
4575 tar -t -f - < archive > /dev/null
4579 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4583 TEST_TAR_FORMAT=oldgnu
4584 export TEST_TAR_FORMAT
4585 TAR_OPTIONS="-H oldgnu"
4590 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4591 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4592 tar -c -b 1 -f archive directory
4593 tar -t -f archive > /dev/null
4594 tar -t -f - < archive > /dev/null
4598 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4599 at_status=$? at_failed=false
4601 at_fn_diff_devnull "$at_stderr" || at_failed=:
4602 at_fn_diff_devnull "$at_stdout" || at_failed=:
4603 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4604 $at_failed && at_fn_log_failure
4608 $as_echo "$at_srcdir/shortrec.at:28:
4611 TEST_TAR_FORMAT=ustar
4612 export TEST_TAR_FORMAT
4613 TAR_OPTIONS=\"-H ustar\"
4618 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4619 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4620 tar -c -b 1 -f archive directory
4621 tar -t -f archive > /dev/null
4622 tar -t -f - < archive > /dev/null
4626 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4630 TEST_TAR_FORMAT=ustar
4631 export TEST_TAR_FORMAT
4632 TAR_OPTIONS="-H ustar"
4637 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4638 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4639 tar -c -b 1 -f archive directory
4640 tar -t -f archive > /dev/null
4641 tar -t -f - < archive > /dev/null
4645 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4646 at_status=$? at_failed=false
4648 at_fn_diff_devnull "$at_stderr" || at_failed=:
4649 at_fn_diff_devnull "$at_stdout" || at_failed=:
4650 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4651 $at_failed && at_fn_log_failure
4655 $as_echo "$at_srcdir/shortrec.at:28:
4658 TEST_TAR_FORMAT=posix
4659 export TEST_TAR_FORMAT
4660 TAR_OPTIONS=\"-H posix\"
4665 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4666 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4667 tar -c -b 1 -f archive directory
4668 tar -t -f archive > /dev/null
4669 tar -t -f - < archive > /dev/null
4673 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4677 TEST_TAR_FORMAT=posix
4678 export TEST_TAR_FORMAT
4679 TAR_OPTIONS="-H posix"
4684 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4685 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4686 tar -c -b 1 -f archive directory
4687 tar -t -f archive > /dev/null
4688 tar -t -f - < archive > /dev/null
4692 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4693 at_status=$? at_failed=false
4695 at_fn_diff_devnull "$at_stderr" || at_failed=:
4696 at_fn_diff_devnull "$at_stdout" || at_failed=:
4697 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4698 $at_failed && at_fn_log_failure
4702 $as_echo "$at_srcdir/shortrec.at:28:
4706 export TEST_TAR_FORMAT
4707 TAR_OPTIONS=\"-H gnu\"
4712 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4713 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4714 tar -c -b 1 -f archive directory
4715 tar -t -f archive > /dev/null
4716 tar -t -f - < archive > /dev/null
4720 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4725 export TEST_TAR_FORMAT
4726 TAR_OPTIONS="-H gnu"
4731 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4732 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4733 tar -c -b 1 -f archive directory
4734 tar -t -f archive > /dev/null
4735 tar -t -f - < archive > /dev/null
4739 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4740 at_status=$? at_failed=false
4742 at_fn_diff_devnull "$at_stderr" || at_failed=:
4743 at_fn_diff_devnull "$at_stdout" || at_failed=:
4744 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4745 $at_failed && at_fn_log_failure
4752 $at_times_p && times >"$at_times_file"
4753 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4754 read at_status <"$at_status_file"
4757 at_fn_group_banner 24 'same-order01.at:26' \
4758 "working -C with --same-order" " " 4
4760 test -f $XFAILFILE && at_xfail=yes
4762 $as_echo "24. $at_setup_line: testing $at_desc ..."
4770 $as_echo "$at_srcdir/same-order01.at:29:
4774 export TEST_TAR_FORMAT
4775 TAR_OPTIONS=\"-H v7\"
4780 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4783 genfile -l 1024 -f file1
4784 genfile -l 1024 -f file2
4785 tar cf archive file1 file2
4788 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4792 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
4797 export TEST_TAR_FORMAT
4803 test -z "`sort < /dev/null 2>&1`" || exit 77
4806 genfile -l 1024 -f file1
4807 genfile -l 1024 -f file2
4808 tar cf archive file1 file2
4811 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4815 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4816 at_status=$? at_failed=false
4818 at_fn_diff_devnull "$at_stderr" || at_failed=:
4819 echo >>"$at_stdout"; $as_echo "file1
4822 $at_diff - "$at_stdout" || at_failed=:
4823 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
4824 $at_failed && at_fn_log_failure
4828 $as_echo "$at_srcdir/same-order01.at:29:
4831 TEST_TAR_FORMAT=oldgnu
4832 export TEST_TAR_FORMAT
4833 TAR_OPTIONS=\"-H oldgnu\"
4838 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4841 genfile -l 1024 -f file1
4842 genfile -l 1024 -f file2
4843 tar cf archive file1 file2
4846 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4850 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
4854 TEST_TAR_FORMAT=oldgnu
4855 export TEST_TAR_FORMAT
4856 TAR_OPTIONS="-H oldgnu"
4861 test -z "`sort < /dev/null 2>&1`" || exit 77
4864 genfile -l 1024 -f file1
4865 genfile -l 1024 -f file2
4866 tar cf archive file1 file2
4869 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4873 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4874 at_status=$? at_failed=false
4876 at_fn_diff_devnull "$at_stderr" || at_failed=:
4877 echo >>"$at_stdout"; $as_echo "file1
4880 $at_diff - "$at_stdout" || at_failed=:
4881 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
4882 $at_failed && at_fn_log_failure
4886 $as_echo "$at_srcdir/same-order01.at:29:
4889 TEST_TAR_FORMAT=ustar
4890 export TEST_TAR_FORMAT
4891 TAR_OPTIONS=\"-H ustar\"
4896 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4899 genfile -l 1024 -f file1
4900 genfile -l 1024 -f file2
4901 tar cf archive file1 file2
4904 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4908 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
4912 TEST_TAR_FORMAT=ustar
4913 export TEST_TAR_FORMAT
4914 TAR_OPTIONS="-H ustar"
4919 test -z "`sort < /dev/null 2>&1`" || exit 77
4922 genfile -l 1024 -f file1
4923 genfile -l 1024 -f file2
4924 tar cf archive file1 file2
4927 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4931 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4932 at_status=$? at_failed=false
4934 at_fn_diff_devnull "$at_stderr" || at_failed=:
4935 echo >>"$at_stdout"; $as_echo "file1
4938 $at_diff - "$at_stdout" || at_failed=:
4939 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
4940 $at_failed && at_fn_log_failure
4944 $as_echo "$at_srcdir/same-order01.at:29:
4947 TEST_TAR_FORMAT=posix
4948 export TEST_TAR_FORMAT
4949 TAR_OPTIONS=\"-H posix\"
4954 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4957 genfile -l 1024 -f file1
4958 genfile -l 1024 -f file2
4959 tar cf archive file1 file2
4962 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4966 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
4970 TEST_TAR_FORMAT=posix
4971 export TEST_TAR_FORMAT
4972 TAR_OPTIONS="-H posix"
4977 test -z "`sort < /dev/null 2>&1`" || exit 77
4980 genfile -l 1024 -f file1
4981 genfile -l 1024 -f file2
4982 tar cf archive file1 file2
4985 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
4989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4990 at_status=$? at_failed=false
4992 at_fn_diff_devnull "$at_stderr" || at_failed=:
4993 echo >>"$at_stdout"; $as_echo "file1
4996 $at_diff - "$at_stdout" || at_failed=:
4997 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
4998 $at_failed && at_fn_log_failure
5002 $as_echo "$at_srcdir/same-order01.at:29:
5006 export TEST_TAR_FORMAT
5007 TAR_OPTIONS=\"-H gnu\"
5012 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5015 genfile -l 1024 -f file1
5016 genfile -l 1024 -f file2
5017 tar cf archive file1 file2
5020 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5024 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5029 export TEST_TAR_FORMAT
5030 TAR_OPTIONS="-H gnu"
5035 test -z "`sort < /dev/null 2>&1`" || exit 77
5038 genfile -l 1024 -f file1
5039 genfile -l 1024 -f file2
5040 tar cf archive file1 file2
5043 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5047 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5048 at_status=$? at_failed=false
5050 at_fn_diff_devnull "$at_stderr" || at_failed=:
5051 echo >>"$at_stdout"; $as_echo "file1
5054 $at_diff - "$at_stdout" || at_failed=:
5055 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5056 $at_failed && at_fn_log_failure
5063 $at_times_p && times >"$at_times_file"
5064 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5065 read at_status <"$at_status_file"
5068 at_fn_group_banner 25 'same-order02.at:25' \
5069 "multiple -C options" " " 4
5071 test -f $XFAILFILE && at_xfail=yes
5073 $as_echo "25. $at_setup_line: testing $at_desc ..."
5081 $as_echo "$at_srcdir/same-order02.at:28:
5085 export TEST_TAR_FORMAT
5086 TAR_OPTIONS=\"-H v7\"
5090 genfile -l 1024 -f file1
5091 genfile -l 1024 -f file2
5092 tar cf archive file1 file2
5098 tar -xf archive --same-order --warning=no-timestamp \\
5099 -C \$HERE/en file1 \\
5100 -C \$HERE/to file2 || exit 1
5106 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5111 export TEST_TAR_FORMAT
5116 genfile -l 1024 -f file1
5117 genfile -l 1024 -f file2
5118 tar cf archive file1 file2
5124 tar -xf archive --same-order --warning=no-timestamp \
5126 -C $HERE/to file2 || exit 1
5132 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5133 at_status=$? at_failed=false
5135 at_fn_diff_devnull "$at_stderr" || at_failed=:
5136 echo >>"$at_stdout"; $as_echo "file1
5140 $at_diff - "$at_stdout" || at_failed=:
5141 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5142 $at_failed && at_fn_log_failure
5146 $as_echo "$at_srcdir/same-order02.at:28:
5149 TEST_TAR_FORMAT=oldgnu
5150 export TEST_TAR_FORMAT
5151 TAR_OPTIONS=\"-H oldgnu\"
5155 genfile -l 1024 -f file1
5156 genfile -l 1024 -f file2
5157 tar cf archive file1 file2
5163 tar -xf archive --same-order --warning=no-timestamp \\
5164 -C \$HERE/en file1 \\
5165 -C \$HERE/to file2 || exit 1
5171 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5175 TEST_TAR_FORMAT=oldgnu
5176 export TEST_TAR_FORMAT
5177 TAR_OPTIONS="-H oldgnu"
5181 genfile -l 1024 -f file1
5182 genfile -l 1024 -f file2
5183 tar cf archive file1 file2
5189 tar -xf archive --same-order --warning=no-timestamp \
5191 -C $HERE/to file2 || exit 1
5197 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5198 at_status=$? at_failed=false
5200 at_fn_diff_devnull "$at_stderr" || at_failed=:
5201 echo >>"$at_stdout"; $as_echo "file1
5205 $at_diff - "$at_stdout" || at_failed=:
5206 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5207 $at_failed && at_fn_log_failure
5211 $as_echo "$at_srcdir/same-order02.at:28:
5214 TEST_TAR_FORMAT=ustar
5215 export TEST_TAR_FORMAT
5216 TAR_OPTIONS=\"-H ustar\"
5220 genfile -l 1024 -f file1
5221 genfile -l 1024 -f file2
5222 tar cf archive file1 file2
5228 tar -xf archive --same-order --warning=no-timestamp \\
5229 -C \$HERE/en file1 \\
5230 -C \$HERE/to file2 || exit 1
5236 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5240 TEST_TAR_FORMAT=ustar
5241 export TEST_TAR_FORMAT
5242 TAR_OPTIONS="-H ustar"
5246 genfile -l 1024 -f file1
5247 genfile -l 1024 -f file2
5248 tar cf archive file1 file2
5254 tar -xf archive --same-order --warning=no-timestamp \
5256 -C $HERE/to file2 || exit 1
5262 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5263 at_status=$? at_failed=false
5265 at_fn_diff_devnull "$at_stderr" || at_failed=:
5266 echo >>"$at_stdout"; $as_echo "file1
5270 $at_diff - "$at_stdout" || at_failed=:
5271 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5272 $at_failed && at_fn_log_failure
5276 $as_echo "$at_srcdir/same-order02.at:28:
5279 TEST_TAR_FORMAT=posix
5280 export TEST_TAR_FORMAT
5281 TAR_OPTIONS=\"-H posix\"
5285 genfile -l 1024 -f file1
5286 genfile -l 1024 -f file2
5287 tar cf archive file1 file2
5293 tar -xf archive --same-order --warning=no-timestamp \\
5294 -C \$HERE/en file1 \\
5295 -C \$HERE/to file2 || exit 1
5301 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5305 TEST_TAR_FORMAT=posix
5306 export TEST_TAR_FORMAT
5307 TAR_OPTIONS="-H posix"
5311 genfile -l 1024 -f file1
5312 genfile -l 1024 -f file2
5313 tar cf archive file1 file2
5319 tar -xf archive --same-order --warning=no-timestamp \
5321 -C $HERE/to file2 || exit 1
5327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5328 at_status=$? at_failed=false
5330 at_fn_diff_devnull "$at_stderr" || at_failed=:
5331 echo >>"$at_stdout"; $as_echo "file1
5335 $at_diff - "$at_stdout" || at_failed=:
5336 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5337 $at_failed && at_fn_log_failure
5341 $as_echo "$at_srcdir/same-order02.at:28:
5345 export TEST_TAR_FORMAT
5346 TAR_OPTIONS=\"-H gnu\"
5350 genfile -l 1024 -f file1
5351 genfile -l 1024 -f file2
5352 tar cf archive file1 file2
5358 tar -xf archive --same-order --warning=no-timestamp \\
5359 -C \$HERE/en file1 \\
5360 -C \$HERE/to file2 || exit 1
5366 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5371 export TEST_TAR_FORMAT
5372 TAR_OPTIONS="-H gnu"
5376 genfile -l 1024 -f file1
5377 genfile -l 1024 -f file2
5378 tar cf archive file1 file2
5384 tar -xf archive --same-order --warning=no-timestamp \
5386 -C $HERE/to file2 || exit 1
5392 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5393 at_status=$? at_failed=false
5395 at_fn_diff_devnull "$at_stderr" || at_failed=:
5396 echo >>"$at_stdout"; $as_echo "file1
5400 $at_diff - "$at_stdout" || at_failed=:
5401 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5402 $at_failed && at_fn_log_failure
5409 $at_times_p && times >"$at_times_file"
5410 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5411 read at_status <"$at_status_file"
5414 at_fn_group_banner 26 'append.at:21' \
5417 test -f $XFAILFILE && at_xfail=yes
5419 $as_echo "26. $at_setup_line: testing $at_desc ..."
5427 $as_echo "$at_srcdir/append.at:24:
5431 export TEST_TAR_FORMAT
5432 TAR_OPTIONS=\"-H v7\"
5437 tar cf archive file1
5438 tar rf archive file2
5440 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5445 export TEST_TAR_FORMAT
5451 tar cf archive file1
5452 tar rf archive file2
5454 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5455 at_status=$? at_failed=false
5457 at_fn_diff_devnull "$at_stderr" || at_failed=:
5458 echo >>"$at_stdout"; $as_echo "file1
5461 $at_diff - "$at_stdout" || at_failed=:
5462 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5463 $at_failed && at_fn_log_failure
5467 $as_echo "$at_srcdir/append.at:24:
5470 TEST_TAR_FORMAT=oldgnu
5471 export TEST_TAR_FORMAT
5472 TAR_OPTIONS=\"-H oldgnu\"
5477 tar cf archive file1
5478 tar rf archive file2
5480 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5484 TEST_TAR_FORMAT=oldgnu
5485 export TEST_TAR_FORMAT
5486 TAR_OPTIONS="-H oldgnu"
5491 tar cf archive file1
5492 tar rf archive file2
5494 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5495 at_status=$? at_failed=false
5497 at_fn_diff_devnull "$at_stderr" || at_failed=:
5498 echo >>"$at_stdout"; $as_echo "file1
5501 $at_diff - "$at_stdout" || at_failed=:
5502 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5503 $at_failed && at_fn_log_failure
5507 $as_echo "$at_srcdir/append.at:24:
5510 TEST_TAR_FORMAT=ustar
5511 export TEST_TAR_FORMAT
5512 TAR_OPTIONS=\"-H ustar\"
5517 tar cf archive file1
5518 tar rf archive file2
5520 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5524 TEST_TAR_FORMAT=ustar
5525 export TEST_TAR_FORMAT
5526 TAR_OPTIONS="-H ustar"
5531 tar cf archive file1
5532 tar rf archive file2
5534 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5535 at_status=$? at_failed=false
5537 at_fn_diff_devnull "$at_stderr" || at_failed=:
5538 echo >>"$at_stdout"; $as_echo "file1
5541 $at_diff - "$at_stdout" || at_failed=:
5542 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5543 $at_failed && at_fn_log_failure
5547 $as_echo "$at_srcdir/append.at:24:
5550 TEST_TAR_FORMAT=posix
5551 export TEST_TAR_FORMAT
5552 TAR_OPTIONS=\"-H posix\"
5557 tar cf archive file1
5558 tar rf archive file2
5560 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5564 TEST_TAR_FORMAT=posix
5565 export TEST_TAR_FORMAT
5566 TAR_OPTIONS="-H posix"
5571 tar cf archive file1
5572 tar rf archive file2
5574 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5575 at_status=$? at_failed=false
5577 at_fn_diff_devnull "$at_stderr" || at_failed=:
5578 echo >>"$at_stdout"; $as_echo "file1
5581 $at_diff - "$at_stdout" || at_failed=:
5582 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5583 $at_failed && at_fn_log_failure
5587 $as_echo "$at_srcdir/append.at:24:
5591 export TEST_TAR_FORMAT
5592 TAR_OPTIONS=\"-H gnu\"
5597 tar cf archive file1
5598 tar rf archive file2
5600 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5605 export TEST_TAR_FORMAT
5606 TAR_OPTIONS="-H gnu"
5611 tar cf archive file1
5612 tar rf archive file2
5614 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5615 at_status=$? at_failed=false
5617 at_fn_diff_devnull "$at_stderr" || at_failed=:
5618 echo >>"$at_stdout"; $as_echo "file1
5621 $at_diff - "$at_stdout" || at_failed=:
5622 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5623 $at_failed && at_fn_log_failure
5630 $at_times_p && times >"$at_times_file"
5631 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5632 read at_status <"$at_status_file"
5635 at_fn_group_banner 27 'append01.at:29' \
5636 "appending files with long names" " " 5
5638 test -f $XFAILFILE && at_xfail=yes
5640 $as_echo "27. $at_setup_line: testing $at_desc ..."
5650 $as_echo "$at_srcdir/append01.at:34:
5653 TEST_TAR_FORMAT=oldgnu
5654 export TEST_TAR_FORMAT
5655 TAR_OPTIONS=\"-H oldgnu\"
5659 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5660 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5661 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5662 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5665 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
5669 TEST_TAR_FORMAT=oldgnu
5670 export TEST_TAR_FORMAT
5671 TAR_OPTIONS="-H oldgnu"
5675 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5676 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5677 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5678 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5681 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5682 at_status=$? at_failed=false
5684 at_fn_diff_devnull "$at_stderr" || at_failed=:
5685 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5686 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5688 $at_diff - "$at_stdout" || at_failed=:
5689 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
5690 $at_failed && at_fn_log_failure
5694 $as_echo "$at_srcdir/append01.at:34:
5697 TEST_TAR_FORMAT=ustar
5698 export TEST_TAR_FORMAT
5699 TAR_OPTIONS=\"-H ustar\"
5703 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5704 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5705 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5706 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5709 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
5713 TEST_TAR_FORMAT=ustar
5714 export TEST_TAR_FORMAT
5715 TAR_OPTIONS="-H ustar"
5719 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5720 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5721 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5722 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5725 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5726 at_status=$? at_failed=false
5728 at_fn_diff_devnull "$at_stderr" || at_failed=:
5729 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5730 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5732 $at_diff - "$at_stdout" || at_failed=:
5733 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
5734 $at_failed && at_fn_log_failure
5738 $as_echo "$at_srcdir/append01.at:34:
5741 TEST_TAR_FORMAT=posix
5742 export TEST_TAR_FORMAT
5743 TAR_OPTIONS=\"-H posix\"
5747 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5748 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5749 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5750 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5753 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
5757 TEST_TAR_FORMAT=posix
5758 export TEST_TAR_FORMAT
5759 TAR_OPTIONS="-H posix"
5763 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5764 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5765 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5766 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5769 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5770 at_status=$? at_failed=false
5772 at_fn_diff_devnull "$at_stderr" || at_failed=:
5773 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5774 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5776 $at_diff - "$at_stdout" || at_failed=:
5777 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
5778 $at_failed && at_fn_log_failure
5782 $as_echo "$at_srcdir/append01.at:34:
5786 export TEST_TAR_FORMAT
5787 TAR_OPTIONS=\"-H gnu\"
5791 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5792 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5793 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5794 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5797 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
5802 export TEST_TAR_FORMAT
5803 TAR_OPTIONS="-H gnu"
5807 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
5808 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5809 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5810 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5814 at_status=$? at_failed=false
5816 at_fn_diff_devnull "$at_stderr" || at_failed=:
5817 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
5818 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
5820 $at_diff - "$at_stdout" || at_failed=:
5821 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
5822 $at_failed && at_fn_log_failure
5830 $at_times_p && times >"$at_times_file"
5831 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5832 read at_status <"$at_status_file"
5835 at_fn_group_banner 28 'append02.at:54' \
5836 "append vs. create" " " 5
5838 test -f $XFAILFILE && at_xfail=yes
5840 $as_echo "28. $at_setup_line: testing $at_desc ..."
5848 $as_echo "$at_srcdir/append02.at:57:
5852 export TEST_TAR_FORMAT
5853 TAR_OPTIONS=\"-H v7\"
5857 genfile --file file1
5858 genfile --file file2
5860 # Make sure file timestamps in the archive will not differ
5861 MTIME=\"--mtime=@0\"
5863 # For PAX archives, we need to make sure extended header names are
5864 # reproducible and that their contents won't change with time
5865 if test \$TEST_TAR_FORMAT = posix; then
5866 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
5869 echo Creating archive.1
5870 tar \$MTIME -cf archive.1 file1 file2
5872 echo Creating archive.2
5873 tar \$MTIME -cf archive.2 -T /dev/null
5874 tar \$MTIME -rf archive.2 file1
5875 tar \$MTIME -rf archive.2 file2
5877 echo Comparing archives
5878 cmp archive.1 archive.2
5880 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
5885 export TEST_TAR_FORMAT
5890 genfile --file file1
5891 genfile --file file2
5893 # Make sure file timestamps in the archive will not differ
5896 # For PAX archives, we need to make sure extended header names are
5897 # reproducible and that their contents won't change with time
5898 if test $TEST_TAR_FORMAT = posix; then
5899 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
5902 echo Creating archive.1
5903 tar $MTIME -cf archive.1 file1 file2
5905 echo Creating archive.2
5906 tar $MTIME -cf archive.2 -T /dev/null
5907 tar $MTIME -rf archive.2 file1
5908 tar $MTIME -rf archive.2 file2
5910 echo Comparing archives
5911 cmp archive.1 archive.2
5913 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5914 at_status=$? at_failed=false
5916 at_fn_diff_devnull "$at_stderr" || at_failed=:
5917 echo >>"$at_stdout"; $as_echo "Creating archive.1
5921 $at_diff - "$at_stdout" || at_failed=:
5922 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
5923 $at_failed && at_fn_log_failure
5927 $as_echo "$at_srcdir/append02.at:57:
5930 TEST_TAR_FORMAT=oldgnu
5931 export TEST_TAR_FORMAT
5932 TAR_OPTIONS=\"-H oldgnu\"
5936 genfile --file file1
5937 genfile --file file2
5939 # Make sure file timestamps in the archive will not differ
5940 MTIME=\"--mtime=@0\"
5942 # For PAX archives, we need to make sure extended header names are
5943 # reproducible and that their contents won't change with time
5944 if test \$TEST_TAR_FORMAT = posix; then
5945 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
5948 echo Creating archive.1
5949 tar \$MTIME -cf archive.1 file1 file2
5951 echo Creating archive.2
5952 tar \$MTIME -cf archive.2 -T /dev/null
5953 tar \$MTIME -rf archive.2 file1
5954 tar \$MTIME -rf archive.2 file2
5956 echo Comparing archives
5957 cmp archive.1 archive.2
5959 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
5963 TEST_TAR_FORMAT=oldgnu
5964 export TEST_TAR_FORMAT
5965 TAR_OPTIONS="-H oldgnu"
5969 genfile --file file1
5970 genfile --file file2
5972 # Make sure file timestamps in the archive will not differ
5975 # For PAX archives, we need to make sure extended header names are
5976 # reproducible and that their contents won't change with time
5977 if test $TEST_TAR_FORMAT = posix; then
5978 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
5981 echo Creating archive.1
5982 tar $MTIME -cf archive.1 file1 file2
5984 echo Creating archive.2
5985 tar $MTIME -cf archive.2 -T /dev/null
5986 tar $MTIME -rf archive.2 file1
5987 tar $MTIME -rf archive.2 file2
5989 echo Comparing archives
5990 cmp archive.1 archive.2
5992 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5993 at_status=$? at_failed=false
5995 at_fn_diff_devnull "$at_stderr" || at_failed=:
5996 echo >>"$at_stdout"; $as_echo "Creating archive.1
6000 $at_diff - "$at_stdout" || at_failed=:
6001 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6002 $at_failed && at_fn_log_failure
6006 $as_echo "$at_srcdir/append02.at:57:
6009 TEST_TAR_FORMAT=ustar
6010 export TEST_TAR_FORMAT
6011 TAR_OPTIONS=\"-H ustar\"
6015 genfile --file file1
6016 genfile --file file2
6018 # Make sure file timestamps in the archive will not differ
6019 MTIME=\"--mtime=@0\"
6021 # For PAX archives, we need to make sure extended header names are
6022 # reproducible and that their contents won't change with time
6023 if test \$TEST_TAR_FORMAT = posix; then
6024 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6027 echo Creating archive.1
6028 tar \$MTIME -cf archive.1 file1 file2
6030 echo Creating archive.2
6031 tar \$MTIME -cf archive.2 -T /dev/null
6032 tar \$MTIME -rf archive.2 file1
6033 tar \$MTIME -rf archive.2 file2
6035 echo Comparing archives
6036 cmp archive.1 archive.2
6038 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6042 TEST_TAR_FORMAT=ustar
6043 export TEST_TAR_FORMAT
6044 TAR_OPTIONS="-H ustar"
6048 genfile --file file1
6049 genfile --file file2
6051 # Make sure file timestamps in the archive will not differ
6054 # For PAX archives, we need to make sure extended header names are
6055 # reproducible and that their contents won't change with time
6056 if test $TEST_TAR_FORMAT = posix; then
6057 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6060 echo Creating archive.1
6061 tar $MTIME -cf archive.1 file1 file2
6063 echo Creating archive.2
6064 tar $MTIME -cf archive.2 -T /dev/null
6065 tar $MTIME -rf archive.2 file1
6066 tar $MTIME -rf archive.2 file2
6068 echo Comparing archives
6069 cmp archive.1 archive.2
6071 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6072 at_status=$? at_failed=false
6074 at_fn_diff_devnull "$at_stderr" || at_failed=:
6075 echo >>"$at_stdout"; $as_echo "Creating archive.1
6079 $at_diff - "$at_stdout" || at_failed=:
6080 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6081 $at_failed && at_fn_log_failure
6085 $as_echo "$at_srcdir/append02.at:57:
6088 TEST_TAR_FORMAT=posix
6089 export TEST_TAR_FORMAT
6090 TAR_OPTIONS=\"-H posix\"
6094 genfile --file file1
6095 genfile --file file2
6097 # Make sure file timestamps in the archive will not differ
6098 MTIME=\"--mtime=@0\"
6100 # For PAX archives, we need to make sure extended header names are
6101 # reproducible and that their contents won't change with time
6102 if test \$TEST_TAR_FORMAT = posix; then
6103 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6106 echo Creating archive.1
6107 tar \$MTIME -cf archive.1 file1 file2
6109 echo Creating archive.2
6110 tar \$MTIME -cf archive.2 -T /dev/null
6111 tar \$MTIME -rf archive.2 file1
6112 tar \$MTIME -rf archive.2 file2
6114 echo Comparing archives
6115 cmp archive.1 archive.2
6117 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6121 TEST_TAR_FORMAT=posix
6122 export TEST_TAR_FORMAT
6123 TAR_OPTIONS="-H posix"
6127 genfile --file file1
6128 genfile --file file2
6130 # Make sure file timestamps in the archive will not differ
6133 # For PAX archives, we need to make sure extended header names are
6134 # reproducible and that their contents won't change with time
6135 if test $TEST_TAR_FORMAT = posix; then
6136 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6139 echo Creating archive.1
6140 tar $MTIME -cf archive.1 file1 file2
6142 echo Creating archive.2
6143 tar $MTIME -cf archive.2 -T /dev/null
6144 tar $MTIME -rf archive.2 file1
6145 tar $MTIME -rf archive.2 file2
6147 echo Comparing archives
6148 cmp archive.1 archive.2
6150 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6151 at_status=$? at_failed=false
6153 at_fn_diff_devnull "$at_stderr" || at_failed=:
6154 echo >>"$at_stdout"; $as_echo "Creating archive.1
6158 $at_diff - "$at_stdout" || at_failed=:
6159 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6160 $at_failed && at_fn_log_failure
6164 $as_echo "$at_srcdir/append02.at:57:
6168 export TEST_TAR_FORMAT
6169 TAR_OPTIONS=\"-H gnu\"
6173 genfile --file file1
6174 genfile --file file2
6176 # Make sure file timestamps in the archive will not differ
6177 MTIME=\"--mtime=@0\"
6179 # For PAX archives, we need to make sure extended header names are
6180 # reproducible and that their contents won't change with time
6181 if test \$TEST_TAR_FORMAT = posix; then
6182 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6185 echo Creating archive.1
6186 tar \$MTIME -cf archive.1 file1 file2
6188 echo Creating archive.2
6189 tar \$MTIME -cf archive.2 -T /dev/null
6190 tar \$MTIME -rf archive.2 file1
6191 tar \$MTIME -rf archive.2 file2
6193 echo Comparing archives
6194 cmp archive.1 archive.2
6196 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6201 export TEST_TAR_FORMAT
6202 TAR_OPTIONS="-H gnu"
6206 genfile --file file1
6207 genfile --file file2
6209 # Make sure file timestamps in the archive will not differ
6212 # For PAX archives, we need to make sure extended header names are
6213 # reproducible and that their contents won't change with time
6214 if test $TEST_TAR_FORMAT = posix; then
6215 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6218 echo Creating archive.1
6219 tar $MTIME -cf archive.1 file1 file2
6221 echo Creating archive.2
6222 tar $MTIME -cf archive.2 -T /dev/null
6223 tar $MTIME -rf archive.2 file1
6224 tar $MTIME -rf archive.2 file2
6226 echo Comparing archives
6227 cmp archive.1 archive.2
6229 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6230 at_status=$? at_failed=false
6232 at_fn_diff_devnull "$at_stderr" || at_failed=:
6233 echo >>"$at_stdout"; $as_echo "Creating archive.1
6237 $at_diff - "$at_stdout" || at_failed=:
6238 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6239 $at_failed && at_fn_log_failure
6246 $at_times_p && times >"$at_times_file"
6247 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6248 read at_status <"$at_status_file"
6251 at_fn_group_banner 29 'append03.at:21' \
6252 "append with name transformation" " " 5
6254 test -f $XFAILFILE && at_xfail=yes
6256 $as_echo "29. $at_setup_line: testing $at_desc ..."
6261 # Description: Make sure filenames are transformed during append.
6266 $as_echo "$at_srcdir/append03.at:26:
6270 export TEST_TAR_FORMAT
6271 TAR_OPTIONS=\"-H v7\"
6275 genfile --file file.1
6276 genfile --file file.2
6278 tar -c -f archive --transform 's/file/plik/' file.*
6280 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6284 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6289 export TEST_TAR_FORMAT
6294 genfile --file file.1
6295 genfile --file file.2
6297 tar -c -f archive --transform 's/file/plik/' file.*
6299 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6303 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6304 at_status=$? at_failed=false
6306 at_fn_diff_devnull "$at_stderr" || at_failed=:
6307 echo >>"$at_stdout"; $as_echo "Appending
6314 $at_diff - "$at_stdout" || at_failed=:
6315 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6316 $at_failed && at_fn_log_failure
6320 $as_echo "$at_srcdir/append03.at:26:
6323 TEST_TAR_FORMAT=oldgnu
6324 export TEST_TAR_FORMAT
6325 TAR_OPTIONS=\"-H oldgnu\"
6329 genfile --file file.1
6330 genfile --file file.2
6332 tar -c -f archive --transform 's/file/plik/' file.*
6334 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6338 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6342 TEST_TAR_FORMAT=oldgnu
6343 export TEST_TAR_FORMAT
6344 TAR_OPTIONS="-H oldgnu"
6348 genfile --file file.1
6349 genfile --file file.2
6351 tar -c -f archive --transform 's/file/plik/' file.*
6353 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6357 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6358 at_status=$? at_failed=false
6360 at_fn_diff_devnull "$at_stderr" || at_failed=:
6361 echo >>"$at_stdout"; $as_echo "Appending
6368 $at_diff - "$at_stdout" || at_failed=:
6369 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6370 $at_failed && at_fn_log_failure
6374 $as_echo "$at_srcdir/append03.at:26:
6377 TEST_TAR_FORMAT=ustar
6378 export TEST_TAR_FORMAT
6379 TAR_OPTIONS=\"-H ustar\"
6383 genfile --file file.1
6384 genfile --file file.2
6386 tar -c -f archive --transform 's/file/plik/' file.*
6388 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6392 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6396 TEST_TAR_FORMAT=ustar
6397 export TEST_TAR_FORMAT
6398 TAR_OPTIONS="-H ustar"
6402 genfile --file file.1
6403 genfile --file file.2
6405 tar -c -f archive --transform 's/file/plik/' file.*
6407 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6411 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6412 at_status=$? at_failed=false
6414 at_fn_diff_devnull "$at_stderr" || at_failed=:
6415 echo >>"$at_stdout"; $as_echo "Appending
6422 $at_diff - "$at_stdout" || at_failed=:
6423 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6424 $at_failed && at_fn_log_failure
6428 $as_echo "$at_srcdir/append03.at:26:
6431 TEST_TAR_FORMAT=posix
6432 export TEST_TAR_FORMAT
6433 TAR_OPTIONS=\"-H posix\"
6437 genfile --file file.1
6438 genfile --file file.2
6440 tar -c -f archive --transform 's/file/plik/' file.*
6442 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6446 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6450 TEST_TAR_FORMAT=posix
6451 export TEST_TAR_FORMAT
6452 TAR_OPTIONS="-H posix"
6456 genfile --file file.1
6457 genfile --file file.2
6459 tar -c -f archive --transform 's/file/plik/' file.*
6461 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6465 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6466 at_status=$? at_failed=false
6468 at_fn_diff_devnull "$at_stderr" || at_failed=:
6469 echo >>"$at_stdout"; $as_echo "Appending
6476 $at_diff - "$at_stdout" || at_failed=:
6477 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6478 $at_failed && at_fn_log_failure
6482 $as_echo "$at_srcdir/append03.at:26:
6486 export TEST_TAR_FORMAT
6487 TAR_OPTIONS=\"-H gnu\"
6491 genfile --file file.1
6492 genfile --file file.2
6494 tar -c -f archive --transform 's/file/plik/' file.*
6496 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6500 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6505 export TEST_TAR_FORMAT
6506 TAR_OPTIONS="-H gnu"
6510 genfile --file file.1
6511 genfile --file file.2
6513 tar -c -f archive --transform 's/file/plik/' file.*
6515 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6519 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6520 at_status=$? at_failed=false
6522 at_fn_diff_devnull "$at_stderr" || at_failed=:
6523 echo >>"$at_stdout"; $as_echo "Appending
6530 $at_diff - "$at_stdout" || at_failed=:
6531 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6532 $at_failed && at_fn_log_failure
6539 $at_times_p && times >"$at_times_file"
6540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6541 read at_status <"$at_status_file"
6544 at_fn_group_banner 30 'append04.at:29' \
6545 "append with verify" " " 5
6547 test -f $XFAILFILE && at_xfail=yes
6549 $as_echo "30. $at_setup_line: testing $at_desc ..."
6557 $as_echo "$at_srcdir/append04.at:32:
6561 export TEST_TAR_FORMAT
6562 TAR_OPTIONS=\"-H v7\"
6566 # Create two empty files:
6569 # Create an archive:
6570 tar cpfW archive.tar file1 file2
6572 # Verify created archive by listing its content:
6575 # Create another empty file:
6578 # Append it to the already created archive:
6579 tar rpfW archive.tar file3
6581 # Verify content of the new archive:
6584 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
6589 export TEST_TAR_FORMAT
6594 # Create two empty files:
6597 # Create an archive:
6598 tar cpfW archive.tar file1 file2
6600 # Verify created archive by listing its content:
6603 # Create another empty file:
6606 # Append it to the already created archive:
6607 tar rpfW archive.tar file3
6609 # Verify content of the new archive:
6612 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6613 at_status=$? at_failed=false
6615 at_fn_diff_devnull "$at_stderr" || at_failed=:
6616 echo >>"$at_stdout"; $as_echo "file1
6623 $at_diff - "$at_stdout" || at_failed=:
6624 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
6625 $at_failed && at_fn_log_failure
6629 $as_echo "$at_srcdir/append04.at:32:
6632 TEST_TAR_FORMAT=oldgnu
6633 export TEST_TAR_FORMAT
6634 TAR_OPTIONS=\"-H oldgnu\"
6638 # Create two empty files:
6641 # Create an archive:
6642 tar cpfW archive.tar file1 file2
6644 # Verify created archive by listing its content:
6647 # Create another empty file:
6650 # Append it to the already created archive:
6651 tar rpfW archive.tar file3
6653 # Verify content of the new archive:
6656 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
6660 TEST_TAR_FORMAT=oldgnu
6661 export TEST_TAR_FORMAT
6662 TAR_OPTIONS="-H oldgnu"
6666 # Create two empty files:
6669 # Create an archive:
6670 tar cpfW archive.tar file1 file2
6672 # Verify created archive by listing its content:
6675 # Create another empty file:
6678 # Append it to the already created archive:
6679 tar rpfW archive.tar file3
6681 # Verify content of the new archive:
6684 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6685 at_status=$? at_failed=false
6687 at_fn_diff_devnull "$at_stderr" || at_failed=:
6688 echo >>"$at_stdout"; $as_echo "file1
6695 $at_diff - "$at_stdout" || at_failed=:
6696 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
6697 $at_failed && at_fn_log_failure
6701 $as_echo "$at_srcdir/append04.at:32:
6704 TEST_TAR_FORMAT=ustar
6705 export TEST_TAR_FORMAT
6706 TAR_OPTIONS=\"-H ustar\"
6710 # Create two empty files:
6713 # Create an archive:
6714 tar cpfW archive.tar file1 file2
6716 # Verify created archive by listing its content:
6719 # Create another empty file:
6722 # Append it to the already created archive:
6723 tar rpfW archive.tar file3
6725 # Verify content of the new archive:
6728 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
6732 TEST_TAR_FORMAT=ustar
6733 export TEST_TAR_FORMAT
6734 TAR_OPTIONS="-H ustar"
6738 # Create two empty files:
6741 # Create an archive:
6742 tar cpfW archive.tar file1 file2
6744 # Verify created archive by listing its content:
6747 # Create another empty file:
6750 # Append it to the already created archive:
6751 tar rpfW archive.tar file3
6753 # Verify content of the new archive:
6756 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6757 at_status=$? at_failed=false
6759 at_fn_diff_devnull "$at_stderr" || at_failed=:
6760 echo >>"$at_stdout"; $as_echo "file1
6767 $at_diff - "$at_stdout" || at_failed=:
6768 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
6769 $at_failed && at_fn_log_failure
6773 $as_echo "$at_srcdir/append04.at:32:
6776 TEST_TAR_FORMAT=posix
6777 export TEST_TAR_FORMAT
6778 TAR_OPTIONS=\"-H posix\"
6782 # Create two empty files:
6785 # Create an archive:
6786 tar cpfW archive.tar file1 file2
6788 # Verify created archive by listing its content:
6791 # Create another empty file:
6794 # Append it to the already created archive:
6795 tar rpfW archive.tar file3
6797 # Verify content of the new archive:
6800 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
6804 TEST_TAR_FORMAT=posix
6805 export TEST_TAR_FORMAT
6806 TAR_OPTIONS="-H posix"
6810 # Create two empty files:
6813 # Create an archive:
6814 tar cpfW archive.tar file1 file2
6816 # Verify created archive by listing its content:
6819 # Create another empty file:
6822 # Append it to the already created archive:
6823 tar rpfW archive.tar file3
6825 # Verify content of the new archive:
6828 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6829 at_status=$? at_failed=false
6831 at_fn_diff_devnull "$at_stderr" || at_failed=:
6832 echo >>"$at_stdout"; $as_echo "file1
6839 $at_diff - "$at_stdout" || at_failed=:
6840 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
6841 $at_failed && at_fn_log_failure
6845 $as_echo "$at_srcdir/append04.at:32:
6849 export TEST_TAR_FORMAT
6850 TAR_OPTIONS=\"-H gnu\"
6854 # Create two empty files:
6857 # Create an archive:
6858 tar cpfW archive.tar file1 file2
6860 # Verify created archive by listing its content:
6863 # Create another empty file:
6866 # Append it to the already created archive:
6867 tar rpfW archive.tar file3
6869 # Verify content of the new archive:
6872 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
6877 export TEST_TAR_FORMAT
6878 TAR_OPTIONS="-H gnu"
6882 # Create two empty files:
6885 # Create an archive:
6886 tar cpfW archive.tar file1 file2
6888 # Verify created archive by listing its content:
6891 # Create another empty file:
6894 # Append it to the already created archive:
6895 tar rpfW archive.tar file3
6897 # Verify content of the new archive:
6900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6901 at_status=$? at_failed=false
6903 at_fn_diff_devnull "$at_stderr" || at_failed=:
6904 echo >>"$at_stdout"; $as_echo "file1
6911 $at_diff - "$at_stdout" || at_failed=:
6912 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
6913 $at_failed && at_fn_log_failure
6920 $at_times_p && times >"$at_times_file"
6921 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6922 read at_status <"$at_status_file"
6925 at_fn_group_banner 31 'xform-h.at:30' \
6926 "transforming hard links on create" " " 6
6928 test -f $XFAILFILE && at_xfail=yes
6930 $as_echo "31. $at_setup_line: testing $at_desc ..."
6940 $as_echo "$at_srcdir/xform-h.at:39:
6944 export TEST_TAR_FORMAT
6945 TAR_OPTIONS=\"-H v7\"
6950 echo \"hello\" > basedir/test
6951 ln basedir/test basedir/test_link
6954 echo \"Default transform scope\"
6955 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
6956 tar tvf archive | sed -n 's/.*test_link link to //p'
6959 echo \"Transforming hard links\"
6960 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
6961 tar tvf archive | sed -n 's/.*test_link link to //p'
6964 echo \"Not transforming hard links\"
6965 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
6966 tar tvf archive | sed -n 's/.*test_link link to //p'
6969 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
6974 export TEST_TAR_FORMAT
6980 echo "hello" > basedir/test
6981 ln basedir/test basedir/test_link
6984 echo "Default transform scope"
6985 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
6986 tar tvf archive | sed -n 's/.*test_link link to //p'
6989 echo "Transforming hard links"
6990 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
6991 tar tvf archive | sed -n 's/.*test_link link to //p'
6994 echo "Not transforming hard links"
6995 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
6996 tar tvf archive | sed -n 's/.*test_link link to //p'
6999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7000 at_status=$? at_failed=false
7002 at_fn_diff_devnull "$at_stderr" || at_failed=:
7003 echo >>"$at_stdout"; $as_echo "Default transform scope
7005 Transforming hard links
7007 Not transforming hard links
7010 $at_diff - "$at_stdout" || at_failed=:
7011 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7012 $at_failed && at_fn_log_failure
7016 $as_echo "$at_srcdir/xform-h.at:39:
7019 TEST_TAR_FORMAT=oldgnu
7020 export TEST_TAR_FORMAT
7021 TAR_OPTIONS=\"-H oldgnu\"
7026 echo \"hello\" > basedir/test
7027 ln basedir/test basedir/test_link
7030 echo \"Default transform scope\"
7031 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7032 tar tvf archive | sed -n 's/.*test_link link to //p'
7035 echo \"Transforming hard links\"
7036 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7037 tar tvf archive | sed -n 's/.*test_link link to //p'
7040 echo \"Not transforming hard links\"
7041 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7042 tar tvf archive | sed -n 's/.*test_link link to //p'
7045 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7049 TEST_TAR_FORMAT=oldgnu
7050 export TEST_TAR_FORMAT
7051 TAR_OPTIONS="-H oldgnu"
7056 echo "hello" > basedir/test
7057 ln basedir/test basedir/test_link
7060 echo "Default transform scope"
7061 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7062 tar tvf archive | sed -n 's/.*test_link link to //p'
7065 echo "Transforming hard links"
7066 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7067 tar tvf archive | sed -n 's/.*test_link link to //p'
7070 echo "Not transforming hard links"
7071 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7072 tar tvf archive | sed -n 's/.*test_link link to //p'
7075 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7076 at_status=$? at_failed=false
7078 at_fn_diff_devnull "$at_stderr" || at_failed=:
7079 echo >>"$at_stdout"; $as_echo "Default transform scope
7081 Transforming hard links
7083 Not transforming hard links
7086 $at_diff - "$at_stdout" || at_failed=:
7087 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7088 $at_failed && at_fn_log_failure
7092 $as_echo "$at_srcdir/xform-h.at:39:
7095 TEST_TAR_FORMAT=ustar
7096 export TEST_TAR_FORMAT
7097 TAR_OPTIONS=\"-H ustar\"
7102 echo \"hello\" > basedir/test
7103 ln basedir/test basedir/test_link
7106 echo \"Default transform scope\"
7107 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7108 tar tvf archive | sed -n 's/.*test_link link to //p'
7111 echo \"Transforming hard links\"
7112 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7113 tar tvf archive | sed -n 's/.*test_link link to //p'
7116 echo \"Not transforming hard links\"
7117 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7118 tar tvf archive | sed -n 's/.*test_link link to //p'
7121 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7125 TEST_TAR_FORMAT=ustar
7126 export TEST_TAR_FORMAT
7127 TAR_OPTIONS="-H ustar"
7132 echo "hello" > basedir/test
7133 ln basedir/test basedir/test_link
7136 echo "Default transform scope"
7137 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7138 tar tvf archive | sed -n 's/.*test_link link to //p'
7141 echo "Transforming hard links"
7142 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7143 tar tvf archive | sed -n 's/.*test_link link to //p'
7146 echo "Not transforming hard links"
7147 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7148 tar tvf archive | sed -n 's/.*test_link link to //p'
7151 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7152 at_status=$? at_failed=false
7154 at_fn_diff_devnull "$at_stderr" || at_failed=:
7155 echo >>"$at_stdout"; $as_echo "Default transform scope
7157 Transforming hard links
7159 Not transforming hard links
7162 $at_diff - "$at_stdout" || at_failed=:
7163 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7164 $at_failed && at_fn_log_failure
7168 $as_echo "$at_srcdir/xform-h.at:39:
7171 TEST_TAR_FORMAT=posix
7172 export TEST_TAR_FORMAT
7173 TAR_OPTIONS=\"-H posix\"
7178 echo \"hello\" > basedir/test
7179 ln basedir/test basedir/test_link
7182 echo \"Default transform scope\"
7183 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7184 tar tvf archive | sed -n 's/.*test_link link to //p'
7187 echo \"Transforming hard links\"
7188 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7189 tar tvf archive | sed -n 's/.*test_link link to //p'
7192 echo \"Not transforming hard links\"
7193 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7194 tar tvf archive | sed -n 's/.*test_link link to //p'
7197 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7201 TEST_TAR_FORMAT=posix
7202 export TEST_TAR_FORMAT
7203 TAR_OPTIONS="-H posix"
7208 echo "hello" > basedir/test
7209 ln basedir/test basedir/test_link
7212 echo "Default transform scope"
7213 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7214 tar tvf archive | sed -n 's/.*test_link link to //p'
7217 echo "Transforming hard links"
7218 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7219 tar tvf archive | sed -n 's/.*test_link link to //p'
7222 echo "Not transforming hard links"
7223 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7224 tar tvf archive | sed -n 's/.*test_link link to //p'
7227 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7228 at_status=$? at_failed=false
7230 at_fn_diff_devnull "$at_stderr" || at_failed=:
7231 echo >>"$at_stdout"; $as_echo "Default transform scope
7233 Transforming hard links
7235 Not transforming hard links
7238 $at_diff - "$at_stdout" || at_failed=:
7239 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7240 $at_failed && at_fn_log_failure
7244 $as_echo "$at_srcdir/xform-h.at:39:
7248 export TEST_TAR_FORMAT
7249 TAR_OPTIONS=\"-H gnu\"
7254 echo \"hello\" > basedir/test
7255 ln basedir/test basedir/test_link
7258 echo \"Default transform scope\"
7259 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7260 tar tvf archive | sed -n 's/.*test_link link to //p'
7263 echo \"Transforming hard links\"
7264 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7265 tar tvf archive | sed -n 's/.*test_link link to //p'
7268 echo \"Not transforming hard links\"
7269 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7270 tar tvf archive | sed -n 's/.*test_link link to //p'
7273 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7278 export TEST_TAR_FORMAT
7279 TAR_OPTIONS="-H gnu"
7284 echo "hello" > basedir/test
7285 ln basedir/test basedir/test_link
7288 echo "Default transform scope"
7289 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7290 tar tvf archive | sed -n 's/.*test_link link to //p'
7293 echo "Transforming hard links"
7294 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7295 tar tvf archive | sed -n 's/.*test_link link to //p'
7298 echo "Not transforming hard links"
7299 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7300 tar tvf archive | sed -n 's/.*test_link link to //p'
7303 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7304 at_status=$? at_failed=false
7306 at_fn_diff_devnull "$at_stderr" || at_failed=:
7307 echo >>"$at_stdout"; $as_echo "Default transform scope
7309 Transforming hard links
7311 Not transforming hard links
7314 $at_diff - "$at_stdout" || at_failed=:
7315 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7316 $at_failed && at_fn_log_failure
7325 $at_times_p && times >"$at_times_file"
7326 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7327 read at_status <"$at_status_file"
7330 at_fn_group_banner 32 'xform01.at:26' \
7331 "transformations and GNU volume labels" " " 6
7333 test -f $XFAILFILE && at_xfail=yes
7335 $as_echo "32. $at_setup_line: testing $at_desc ..."
7343 $as_echo "$at_srcdir/xform01.at:29:
7347 export TEST_TAR_FORMAT
7348 TAR_OPTIONS=\"-H gnu\"
7353 tar -cf archive.tar -V /label/ file
7356 at_fn_check_prepare_notrace 'an embedded newline' "xform01.at:29"
7361 export TEST_TAR_FORMAT
7362 TAR_OPTIONS="-H gnu"
7367 tar -cf archive.tar -V /label/ file
7370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7371 at_status=$? at_failed=false
7373 at_fn_diff_devnull "$at_stderr" || at_failed=:
7374 echo >>"$at_stdout"; $as_echo "/label/
7377 $at_diff - "$at_stdout" || at_failed=:
7378 at_fn_check_status 0 $at_status "$at_srcdir/xform01.at:29"
7379 $at_failed && at_fn_log_failure
7386 $at_times_p && times >"$at_times_file"
7387 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7388 read at_status <"$at_status_file"
7391 at_fn_group_banner 33 'exclude.at:23' \
7394 test -f $XFAILFILE && at_xfail=yes
7396 $as_echo "33. $at_setup_line: testing $at_desc ..."
7404 $as_echo "$at_srcdir/exclude.at:26:
7407 TEST_TAR_FORMAT=ustar
7408 export TEST_TAR_FORMAT
7409 TAR_OPTIONS=\"-H ustar\"
7414 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7418 echo blues > dir/blues
7419 echo jazz > dir/jazz
7421 echo tagfile > dir/folk/tagfile
7422 echo sanjuan > dir/folk/sanjuan
7424 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
7425 echo \"test\" > dir/rock/file
7427 for option in exclude-caches exclude-caches-under exclude-caches-all
7429 echo OPTION \$option
7430 tar -cf archive.tar --\$option -v dir 2>err | sort
7433 tar tf archive.tar | sort
7436 for option in exclude-tag exclude-tag-under exclude-tag-all
7438 echo OPTION \$option
7439 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
7442 tar tf archive.tar | sort
7445 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude.at:26"
7449 TEST_TAR_FORMAT=ustar
7450 export TEST_TAR_FORMAT
7451 TAR_OPTIONS="-H ustar"
7456 test -z "`sort < /dev/null 2>&1`" || exit 77
7460 echo blues > dir/blues
7461 echo jazz > dir/jazz
7463 echo tagfile > dir/folk/tagfile
7464 echo sanjuan > dir/folk/sanjuan
7466 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
7467 echo "test" > dir/rock/file
7469 for option in exclude-caches exclude-caches-under exclude-caches-all
7472 tar -cf archive.tar --$option -v dir 2>err | sort
7475 tar tf archive.tar | sort
7478 for option in exclude-tag exclude-tag-under exclude-tag-all
7481 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
7484 tar tf archive.tar | sort
7487 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7488 at_status=$? at_failed=false
7490 at_fn_diff_devnull "$at_stderr" || at_failed=:
7491 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
7499 dir/rock/CACHEDIR.TAG
7500 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
7509 dir/rock/CACHEDIR.TAG
7510 OPTION exclude-caches-under
7518 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
7527 OPTION exclude-caches-all
7534 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
7549 dir/rock/CACHEDIR.TAG
7551 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
7559 dir/rock/CACHEDIR.TAG
7561 OPTION exclude-tag-under
7567 dir/rock/CACHEDIR.TAG
7569 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
7576 dir/rock/CACHEDIR.TAG
7578 OPTION exclude-tag-all
7583 dir/rock/CACHEDIR.TAG
7585 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
7591 dir/rock/CACHEDIR.TAG
7594 $at_diff - "$at_stdout" || at_failed=:
7595 at_fn_check_status 0 $at_status "$at_srcdir/exclude.at:26"
7596 $at_failed && at_fn_log_failure
7603 $at_times_p && times >"$at_times_file"
7604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7605 read at_status <"$at_status_file"
7608 at_fn_group_banner 34 'exclude01.at:19' \
7609 "exclude wildcards" " " 7
7611 test -f $XFAILFILE && at_xfail=yes
7613 $as_echo "34. $at_setup_line: testing $at_desc ..."
7621 $as_echo "$at_srcdir/exclude01.at:22:
7625 export TEST_TAR_FORMAT
7626 TAR_OPTIONS=\"-H v7\"
7631 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7635 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7636 touch testdir/dir1/file1
7637 touch testdir/dir1/\\*
7638 touch testdir/dir2/file2
7639 touch testdir/dir2/\\*
7640 touch testdir/dir3/file3
7641 touch testdir/dir3/\\*
7643 tar cf archive --exclude=testdir/dir1/\\* \\
7645 --exclude=testdir/dir2/\\* \\
7647 --exclude=testdir/dir3/\\* \\
7649 tar tf archive | sort
7652 tar cf archive testdir
7653 tar t \"testdir/dir1/*\" -f archive | sort
7656 tar cf archive testdir/dir1
7657 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
7660 tar cf archive testdir
7661 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
7665 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
7670 export TEST_TAR_FORMAT
7676 test -z "`sort < /dev/null 2>&1`" || exit 77
7680 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7681 touch testdir/dir1/file1
7682 touch testdir/dir1/\*
7683 touch testdir/dir2/file2
7684 touch testdir/dir2/\*
7685 touch testdir/dir3/file3
7686 touch testdir/dir3/\*
7688 tar cf archive --exclude=testdir/dir1/\* \
7690 --exclude=testdir/dir2/\* \
7692 --exclude=testdir/dir3/\* \
7694 tar tf archive | sort
7697 tar cf archive testdir
7698 tar t "testdir/dir1/*" -f archive | sort
7701 tar cf archive testdir/dir1
7702 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
7705 tar cf archive testdir
7706 tar t --wildcards "testdir/dir1/*" -f archive | sort
7710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7711 at_status=$? at_failed=false
7713 at_fn_diff_devnull "$at_stderr" || at_failed=:
7714 echo >>"$at_stdout"; $as_echo "testdir/
7727 $at_diff - "$at_stdout" || at_failed=:
7728 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
7729 $at_failed && at_fn_log_failure
7733 $as_echo "$at_srcdir/exclude01.at:22:
7736 TEST_TAR_FORMAT=oldgnu
7737 export TEST_TAR_FORMAT
7738 TAR_OPTIONS=\"-H oldgnu\"
7743 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7747 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7748 touch testdir/dir1/file1
7749 touch testdir/dir1/\\*
7750 touch testdir/dir2/file2
7751 touch testdir/dir2/\\*
7752 touch testdir/dir3/file3
7753 touch testdir/dir3/\\*
7755 tar cf archive --exclude=testdir/dir1/\\* \\
7757 --exclude=testdir/dir2/\\* \\
7759 --exclude=testdir/dir3/\\* \\
7761 tar tf archive | sort
7764 tar cf archive testdir
7765 tar t \"testdir/dir1/*\" -f archive | sort
7768 tar cf archive testdir/dir1
7769 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
7772 tar cf archive testdir
7773 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
7777 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
7781 TEST_TAR_FORMAT=oldgnu
7782 export TEST_TAR_FORMAT
7783 TAR_OPTIONS="-H oldgnu"
7788 test -z "`sort < /dev/null 2>&1`" || exit 77
7792 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7793 touch testdir/dir1/file1
7794 touch testdir/dir1/\*
7795 touch testdir/dir2/file2
7796 touch testdir/dir2/\*
7797 touch testdir/dir3/file3
7798 touch testdir/dir3/\*
7800 tar cf archive --exclude=testdir/dir1/\* \
7802 --exclude=testdir/dir2/\* \
7804 --exclude=testdir/dir3/\* \
7806 tar tf archive | sort
7809 tar cf archive testdir
7810 tar t "testdir/dir1/*" -f archive | sort
7813 tar cf archive testdir/dir1
7814 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
7817 tar cf archive testdir
7818 tar t --wildcards "testdir/dir1/*" -f archive | sort
7822 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7823 at_status=$? at_failed=false
7825 at_fn_diff_devnull "$at_stderr" || at_failed=:
7826 echo >>"$at_stdout"; $as_echo "testdir/
7839 $at_diff - "$at_stdout" || at_failed=:
7840 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
7841 $at_failed && at_fn_log_failure
7845 $as_echo "$at_srcdir/exclude01.at:22:
7848 TEST_TAR_FORMAT=ustar
7849 export TEST_TAR_FORMAT
7850 TAR_OPTIONS=\"-H ustar\"
7855 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7859 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7860 touch testdir/dir1/file1
7861 touch testdir/dir1/\\*
7862 touch testdir/dir2/file2
7863 touch testdir/dir2/\\*
7864 touch testdir/dir3/file3
7865 touch testdir/dir3/\\*
7867 tar cf archive --exclude=testdir/dir1/\\* \\
7869 --exclude=testdir/dir2/\\* \\
7871 --exclude=testdir/dir3/\\* \\
7873 tar tf archive | sort
7876 tar cf archive testdir
7877 tar t \"testdir/dir1/*\" -f archive | sort
7880 tar cf archive testdir/dir1
7881 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
7884 tar cf archive testdir
7885 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
7889 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
7893 TEST_TAR_FORMAT=ustar
7894 export TEST_TAR_FORMAT
7895 TAR_OPTIONS="-H ustar"
7900 test -z "`sort < /dev/null 2>&1`" || exit 77
7904 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7905 touch testdir/dir1/file1
7906 touch testdir/dir1/\*
7907 touch testdir/dir2/file2
7908 touch testdir/dir2/\*
7909 touch testdir/dir3/file3
7910 touch testdir/dir3/\*
7912 tar cf archive --exclude=testdir/dir1/\* \
7914 --exclude=testdir/dir2/\* \
7916 --exclude=testdir/dir3/\* \
7918 tar tf archive | sort
7921 tar cf archive testdir
7922 tar t "testdir/dir1/*" -f archive | sort
7925 tar cf archive testdir/dir1
7926 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
7929 tar cf archive testdir
7930 tar t --wildcards "testdir/dir1/*" -f archive | sort
7934 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7935 at_status=$? at_failed=false
7937 at_fn_diff_devnull "$at_stderr" || at_failed=:
7938 echo >>"$at_stdout"; $as_echo "testdir/
7951 $at_diff - "$at_stdout" || at_failed=:
7952 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
7953 $at_failed && at_fn_log_failure
7957 $as_echo "$at_srcdir/exclude01.at:22:
7960 TEST_TAR_FORMAT=posix
7961 export TEST_TAR_FORMAT
7962 TAR_OPTIONS=\"-H posix\"
7967 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7971 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7972 touch testdir/dir1/file1
7973 touch testdir/dir1/\\*
7974 touch testdir/dir2/file2
7975 touch testdir/dir2/\\*
7976 touch testdir/dir3/file3
7977 touch testdir/dir3/\\*
7979 tar cf archive --exclude=testdir/dir1/\\* \\
7981 --exclude=testdir/dir2/\\* \\
7983 --exclude=testdir/dir3/\\* \\
7985 tar tf archive | sort
7988 tar cf archive testdir
7989 tar t \"testdir/dir1/*\" -f archive | sort
7992 tar cf archive testdir/dir1
7993 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
7996 tar cf archive testdir
7997 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8001 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8005 TEST_TAR_FORMAT=posix
8006 export TEST_TAR_FORMAT
8007 TAR_OPTIONS="-H posix"
8012 test -z "`sort < /dev/null 2>&1`" || exit 77
8016 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8017 touch testdir/dir1/file1
8018 touch testdir/dir1/\*
8019 touch testdir/dir2/file2
8020 touch testdir/dir2/\*
8021 touch testdir/dir3/file3
8022 touch testdir/dir3/\*
8024 tar cf archive --exclude=testdir/dir1/\* \
8026 --exclude=testdir/dir2/\* \
8028 --exclude=testdir/dir3/\* \
8030 tar tf archive | sort
8033 tar cf archive testdir
8034 tar t "testdir/dir1/*" -f archive | sort
8037 tar cf archive testdir/dir1
8038 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8041 tar cf archive testdir
8042 tar t --wildcards "testdir/dir1/*" -f archive | sort
8046 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8047 at_status=$? at_failed=false
8049 at_fn_diff_devnull "$at_stderr" || at_failed=:
8050 echo >>"$at_stdout"; $as_echo "testdir/
8063 $at_diff - "$at_stdout" || at_failed=:
8064 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8065 $at_failed && at_fn_log_failure
8069 $as_echo "$at_srcdir/exclude01.at:22:
8073 export TEST_TAR_FORMAT
8074 TAR_OPTIONS=\"-H gnu\"
8079 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8083 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8084 touch testdir/dir1/file1
8085 touch testdir/dir1/\\*
8086 touch testdir/dir2/file2
8087 touch testdir/dir2/\\*
8088 touch testdir/dir3/file3
8089 touch testdir/dir3/\\*
8091 tar cf archive --exclude=testdir/dir1/\\* \\
8093 --exclude=testdir/dir2/\\* \\
8095 --exclude=testdir/dir3/\\* \\
8097 tar tf archive | sort
8100 tar cf archive testdir
8101 tar t \"testdir/dir1/*\" -f archive | sort
8104 tar cf archive testdir/dir1
8105 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8108 tar cf archive testdir
8109 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8113 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8118 export TEST_TAR_FORMAT
8119 TAR_OPTIONS="-H gnu"
8124 test -z "`sort < /dev/null 2>&1`" || exit 77
8128 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8129 touch testdir/dir1/file1
8130 touch testdir/dir1/\*
8131 touch testdir/dir2/file2
8132 touch testdir/dir2/\*
8133 touch testdir/dir3/file3
8134 touch testdir/dir3/\*
8136 tar cf archive --exclude=testdir/dir1/\* \
8138 --exclude=testdir/dir2/\* \
8140 --exclude=testdir/dir3/\* \
8142 tar tf archive | sort
8145 tar cf archive testdir
8146 tar t "testdir/dir1/*" -f archive | sort
8149 tar cf archive testdir/dir1
8150 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8153 tar cf archive testdir
8154 tar t --wildcards "testdir/dir1/*" -f archive | sort
8158 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8159 at_status=$? at_failed=false
8161 at_fn_diff_devnull "$at_stderr" || at_failed=:
8162 echo >>"$at_stdout"; $as_echo "testdir/
8175 $at_diff - "$at_stdout" || at_failed=:
8176 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8177 $at_failed && at_fn_log_failure
8184 $at_times_p && times >"$at_times_file"
8185 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8186 read at_status <"$at_status_file"
8189 at_fn_group_banner 35 'exclude02.at:19' \
8190 "exclude: anchoring" " " 7
8192 test -f $XFAILFILE && at_xfail=yes
8194 $as_echo "35. $at_setup_line: testing $at_desc ..."
8202 $as_echo "$at_srcdir/exclude02.at:22:
8206 export TEST_TAR_FORMAT
8207 TAR_OPTIONS=\"-H v7\"
8212 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8218 touch testdir/file1.txt
8221 tar cf archive --exclude=\"file1.txt\" \\
8223 tar tf archive | sort
8226 tar cf archive --no-anchored \\
8227 --exclude=\"file1.txt\" \\
8229 tar tf archive | sort
8232 tar cf archive --anchored \\
8233 --exclude=\"file1.txt\" \\
8235 tar tf archive | sort
8238 tar cf archive testdir file1.txt
8239 tar t \"file1.txt\" -f archive | sort
8242 tar t --no-anchored \"file1.txt\" -f archive | sort
8245 tar t --anchored \"file1.txt\" -f archive | sort
8247 rm -rf testdir file1.txt
8250 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8255 export TEST_TAR_FORMAT
8261 test -z "`sort < /dev/null 2>&1`" || exit 77
8267 touch testdir/file1.txt
8270 tar cf archive --exclude="file1.txt" \
8272 tar tf archive | sort
8275 tar cf archive --no-anchored \
8276 --exclude="file1.txt" \
8278 tar tf archive | sort
8281 tar cf archive --anchored \
8282 --exclude="file1.txt" \
8284 tar tf archive | sort
8287 tar cf archive testdir file1.txt
8288 tar t "file1.txt" -f archive | sort
8291 tar t --no-anchored "file1.txt" -f archive | sort
8294 tar t --anchored "file1.txt" -f archive | sort
8296 rm -rf testdir file1.txt
8299 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8300 at_status=$? at_failed=false
8302 at_fn_diff_devnull "$at_stderr" || at_failed=:
8303 echo >>"$at_stdout"; $as_echo "testdir/
8320 $at_diff - "$at_stdout" || at_failed=:
8321 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8322 $at_failed && at_fn_log_failure
8326 $as_echo "$at_srcdir/exclude02.at:22:
8329 TEST_TAR_FORMAT=oldgnu
8330 export TEST_TAR_FORMAT
8331 TAR_OPTIONS=\"-H oldgnu\"
8336 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8342 touch testdir/file1.txt
8345 tar cf archive --exclude=\"file1.txt\" \\
8347 tar tf archive | sort
8350 tar cf archive --no-anchored \\
8351 --exclude=\"file1.txt\" \\
8353 tar tf archive | sort
8356 tar cf archive --anchored \\
8357 --exclude=\"file1.txt\" \\
8359 tar tf archive | sort
8362 tar cf archive testdir file1.txt
8363 tar t \"file1.txt\" -f archive | sort
8366 tar t --no-anchored \"file1.txt\" -f archive | sort
8369 tar t --anchored \"file1.txt\" -f archive | sort
8371 rm -rf testdir file1.txt
8374 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8378 TEST_TAR_FORMAT=oldgnu
8379 export TEST_TAR_FORMAT
8380 TAR_OPTIONS="-H oldgnu"
8385 test -z "`sort < /dev/null 2>&1`" || exit 77
8391 touch testdir/file1.txt
8394 tar cf archive --exclude="file1.txt" \
8396 tar tf archive | sort
8399 tar cf archive --no-anchored \
8400 --exclude="file1.txt" \
8402 tar tf archive | sort
8405 tar cf archive --anchored \
8406 --exclude="file1.txt" \
8408 tar tf archive | sort
8411 tar cf archive testdir file1.txt
8412 tar t "file1.txt" -f archive | sort
8415 tar t --no-anchored "file1.txt" -f archive | sort
8418 tar t --anchored "file1.txt" -f archive | sort
8420 rm -rf testdir file1.txt
8423 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8424 at_status=$? at_failed=false
8426 at_fn_diff_devnull "$at_stderr" || at_failed=:
8427 echo >>"$at_stdout"; $as_echo "testdir/
8444 $at_diff - "$at_stdout" || at_failed=:
8445 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8446 $at_failed && at_fn_log_failure
8450 $as_echo "$at_srcdir/exclude02.at:22:
8453 TEST_TAR_FORMAT=ustar
8454 export TEST_TAR_FORMAT
8455 TAR_OPTIONS=\"-H ustar\"
8460 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8466 touch testdir/file1.txt
8469 tar cf archive --exclude=\"file1.txt\" \\
8471 tar tf archive | sort
8474 tar cf archive --no-anchored \\
8475 --exclude=\"file1.txt\" \\
8477 tar tf archive | sort
8480 tar cf archive --anchored \\
8481 --exclude=\"file1.txt\" \\
8483 tar tf archive | sort
8486 tar cf archive testdir file1.txt
8487 tar t \"file1.txt\" -f archive | sort
8490 tar t --no-anchored \"file1.txt\" -f archive | sort
8493 tar t --anchored \"file1.txt\" -f archive | sort
8495 rm -rf testdir file1.txt
8498 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8502 TEST_TAR_FORMAT=ustar
8503 export TEST_TAR_FORMAT
8504 TAR_OPTIONS="-H ustar"
8509 test -z "`sort < /dev/null 2>&1`" || exit 77
8515 touch testdir/file1.txt
8518 tar cf archive --exclude="file1.txt" \
8520 tar tf archive | sort
8523 tar cf archive --no-anchored \
8524 --exclude="file1.txt" \
8526 tar tf archive | sort
8529 tar cf archive --anchored \
8530 --exclude="file1.txt" \
8532 tar tf archive | sort
8535 tar cf archive testdir file1.txt
8536 tar t "file1.txt" -f archive | sort
8539 tar t --no-anchored "file1.txt" -f archive | sort
8542 tar t --anchored "file1.txt" -f archive | sort
8544 rm -rf testdir file1.txt
8547 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8548 at_status=$? at_failed=false
8550 at_fn_diff_devnull "$at_stderr" || at_failed=:
8551 echo >>"$at_stdout"; $as_echo "testdir/
8568 $at_diff - "$at_stdout" || at_failed=:
8569 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8570 $at_failed && at_fn_log_failure
8574 $as_echo "$at_srcdir/exclude02.at:22:
8577 TEST_TAR_FORMAT=posix
8578 export TEST_TAR_FORMAT
8579 TAR_OPTIONS=\"-H posix\"
8584 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8590 touch testdir/file1.txt
8593 tar cf archive --exclude=\"file1.txt\" \\
8595 tar tf archive | sort
8598 tar cf archive --no-anchored \\
8599 --exclude=\"file1.txt\" \\
8601 tar tf archive | sort
8604 tar cf archive --anchored \\
8605 --exclude=\"file1.txt\" \\
8607 tar tf archive | sort
8610 tar cf archive testdir file1.txt
8611 tar t \"file1.txt\" -f archive | sort
8614 tar t --no-anchored \"file1.txt\" -f archive | sort
8617 tar t --anchored \"file1.txt\" -f archive | sort
8619 rm -rf testdir file1.txt
8622 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8626 TEST_TAR_FORMAT=posix
8627 export TEST_TAR_FORMAT
8628 TAR_OPTIONS="-H posix"
8633 test -z "`sort < /dev/null 2>&1`" || exit 77
8639 touch testdir/file1.txt
8642 tar cf archive --exclude="file1.txt" \
8644 tar tf archive | sort
8647 tar cf archive --no-anchored \
8648 --exclude="file1.txt" \
8650 tar tf archive | sort
8653 tar cf archive --anchored \
8654 --exclude="file1.txt" \
8656 tar tf archive | sort
8659 tar cf archive testdir file1.txt
8660 tar t "file1.txt" -f archive | sort
8663 tar t --no-anchored "file1.txt" -f archive | sort
8666 tar t --anchored "file1.txt" -f archive | sort
8668 rm -rf testdir file1.txt
8671 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8672 at_status=$? at_failed=false
8674 at_fn_diff_devnull "$at_stderr" || at_failed=:
8675 echo >>"$at_stdout"; $as_echo "testdir/
8692 $at_diff - "$at_stdout" || at_failed=:
8693 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8694 $at_failed && at_fn_log_failure
8698 $as_echo "$at_srcdir/exclude02.at:22:
8702 export TEST_TAR_FORMAT
8703 TAR_OPTIONS=\"-H gnu\"
8708 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8714 touch testdir/file1.txt
8717 tar cf archive --exclude=\"file1.txt\" \\
8719 tar tf archive | sort
8722 tar cf archive --no-anchored \\
8723 --exclude=\"file1.txt\" \\
8725 tar tf archive | sort
8728 tar cf archive --anchored \\
8729 --exclude=\"file1.txt\" \\
8731 tar tf archive | sort
8734 tar cf archive testdir file1.txt
8735 tar t \"file1.txt\" -f archive | sort
8738 tar t --no-anchored \"file1.txt\" -f archive | sort
8741 tar t --anchored \"file1.txt\" -f archive | sort
8743 rm -rf testdir file1.txt
8746 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8751 export TEST_TAR_FORMAT
8752 TAR_OPTIONS="-H gnu"
8757 test -z "`sort < /dev/null 2>&1`" || exit 77
8763 touch testdir/file1.txt
8766 tar cf archive --exclude="file1.txt" \
8768 tar tf archive | sort
8771 tar cf archive --no-anchored \
8772 --exclude="file1.txt" \
8774 tar tf archive | sort
8777 tar cf archive --anchored \
8778 --exclude="file1.txt" \
8780 tar tf archive | sort
8783 tar cf archive testdir file1.txt
8784 tar t "file1.txt" -f archive | sort
8787 tar t --no-anchored "file1.txt" -f archive | sort
8790 tar t --anchored "file1.txt" -f archive | sort
8792 rm -rf testdir file1.txt
8795 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8796 at_status=$? at_failed=false
8798 at_fn_diff_devnull "$at_stderr" || at_failed=:
8799 echo >>"$at_stdout"; $as_echo "testdir/
8816 $at_diff - "$at_stdout" || at_failed=:
8817 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8818 $at_failed && at_fn_log_failure
8825 $at_times_p && times >"$at_times_file"
8826 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8827 read at_status <"$at_status_file"
8830 at_fn_group_banner 36 'exclude03.at:19' \
8831 "exclude: wildcards match slash" " " 7
8833 test -f $XFAILFILE && at_xfail=yes
8835 $as_echo "36. $at_setup_line: testing $at_desc ..."
8843 $as_echo "$at_srcdir/exclude03.at:22:
8847 export TEST_TAR_FORMAT
8848 TAR_OPTIONS=\"-H v7\"
8853 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8857 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8858 touch testdir/\\*f\\*1
8859 touch testdir/dir1/file1
8860 touch testdir/dir1/\\*
8861 touch testdir/dir2/file2
8862 touch testdir/dir2/\\*
8863 touch testdir/dir3/file3
8864 touch testdir/dir3/\\*
8866 tar cf archive --exclude='testdir*f*1' \\
8867 --no-wildcards-match-slash \\
8868 --exclude='testdir*f*2' \\
8869 --wildcards-match-slash \\
8870 --exclude='testdir*f*3' \\
8872 tar tf archive | sort
8875 tar cf archive testdir
8876 tar t --wildcards 'testdir/*f*1' -f archive | sort
8879 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8882 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8887 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
8892 export TEST_TAR_FORMAT
8898 test -z "`sort < /dev/null 2>&1`" || exit 77
8902 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8903 touch testdir/\*f\*1
8904 touch testdir/dir1/file1
8905 touch testdir/dir1/\*
8906 touch testdir/dir2/file2
8907 touch testdir/dir2/\*
8908 touch testdir/dir3/file3
8909 touch testdir/dir3/\*
8911 tar cf archive --exclude='testdir*f*1' \
8912 --no-wildcards-match-slash \
8913 --exclude='testdir*f*2' \
8914 --wildcards-match-slash \
8915 --exclude='testdir*f*3' \
8917 tar tf archive | sort
8920 tar cf archive testdir
8921 tar t --wildcards 'testdir/*f*1' -f archive | sort
8924 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8927 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8933 at_status=$? at_failed=false
8935 at_fn_diff_devnull "$at_stderr" || at_failed=:
8936 echo >>"$at_stdout"; $as_echo "testdir/
8953 $at_diff - "$at_stdout" || at_failed=:
8954 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
8955 $at_failed && at_fn_log_failure
8959 $as_echo "$at_srcdir/exclude03.at:22:
8962 TEST_TAR_FORMAT=oldgnu
8963 export TEST_TAR_FORMAT
8964 TAR_OPTIONS=\"-H oldgnu\"
8969 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8973 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8974 touch testdir/\\*f\\*1
8975 touch testdir/dir1/file1
8976 touch testdir/dir1/\\*
8977 touch testdir/dir2/file2
8978 touch testdir/dir2/\\*
8979 touch testdir/dir3/file3
8980 touch testdir/dir3/\\*
8982 tar cf archive --exclude='testdir*f*1' \\
8983 --no-wildcards-match-slash \\
8984 --exclude='testdir*f*2' \\
8985 --wildcards-match-slash \\
8986 --exclude='testdir*f*3' \\
8988 tar tf archive | sort
8991 tar cf archive testdir
8992 tar t --wildcards 'testdir/*f*1' -f archive | sort
8995 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8998 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9003 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9007 TEST_TAR_FORMAT=oldgnu
9008 export TEST_TAR_FORMAT
9009 TAR_OPTIONS="-H oldgnu"
9014 test -z "`sort < /dev/null 2>&1`" || exit 77
9018 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9019 touch testdir/\*f\*1
9020 touch testdir/dir1/file1
9021 touch testdir/dir1/\*
9022 touch testdir/dir2/file2
9023 touch testdir/dir2/\*
9024 touch testdir/dir3/file3
9025 touch testdir/dir3/\*
9027 tar cf archive --exclude='testdir*f*1' \
9028 --no-wildcards-match-slash \
9029 --exclude='testdir*f*2' \
9030 --wildcards-match-slash \
9031 --exclude='testdir*f*3' \
9033 tar tf archive | sort
9036 tar cf archive testdir
9037 tar t --wildcards 'testdir/*f*1' -f archive | sort
9040 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9043 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9049 at_status=$? at_failed=false
9051 at_fn_diff_devnull "$at_stderr" || at_failed=:
9052 echo >>"$at_stdout"; $as_echo "testdir/
9069 $at_diff - "$at_stdout" || at_failed=:
9070 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9071 $at_failed && at_fn_log_failure
9075 $as_echo "$at_srcdir/exclude03.at:22:
9078 TEST_TAR_FORMAT=ustar
9079 export TEST_TAR_FORMAT
9080 TAR_OPTIONS=\"-H ustar\"
9085 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9089 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9090 touch testdir/\\*f\\*1
9091 touch testdir/dir1/file1
9092 touch testdir/dir1/\\*
9093 touch testdir/dir2/file2
9094 touch testdir/dir2/\\*
9095 touch testdir/dir3/file3
9096 touch testdir/dir3/\\*
9098 tar cf archive --exclude='testdir*f*1' \\
9099 --no-wildcards-match-slash \\
9100 --exclude='testdir*f*2' \\
9101 --wildcards-match-slash \\
9102 --exclude='testdir*f*3' \\
9104 tar tf archive | sort
9107 tar cf archive testdir
9108 tar t --wildcards 'testdir/*f*1' -f archive | sort
9111 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9114 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9119 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9123 TEST_TAR_FORMAT=ustar
9124 export TEST_TAR_FORMAT
9125 TAR_OPTIONS="-H ustar"
9130 test -z "`sort < /dev/null 2>&1`" || exit 77
9134 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9135 touch testdir/\*f\*1
9136 touch testdir/dir1/file1
9137 touch testdir/dir1/\*
9138 touch testdir/dir2/file2
9139 touch testdir/dir2/\*
9140 touch testdir/dir3/file3
9141 touch testdir/dir3/\*
9143 tar cf archive --exclude='testdir*f*1' \
9144 --no-wildcards-match-slash \
9145 --exclude='testdir*f*2' \
9146 --wildcards-match-slash \
9147 --exclude='testdir*f*3' \
9149 tar tf archive | sort
9152 tar cf archive testdir
9153 tar t --wildcards 'testdir/*f*1' -f archive | sort
9156 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9159 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9164 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9165 at_status=$? at_failed=false
9167 at_fn_diff_devnull "$at_stderr" || at_failed=:
9168 echo >>"$at_stdout"; $as_echo "testdir/
9185 $at_diff - "$at_stdout" || at_failed=:
9186 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9187 $at_failed && at_fn_log_failure
9191 $as_echo "$at_srcdir/exclude03.at:22:
9194 TEST_TAR_FORMAT=posix
9195 export TEST_TAR_FORMAT
9196 TAR_OPTIONS=\"-H posix\"
9201 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9205 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9206 touch testdir/\\*f\\*1
9207 touch testdir/dir1/file1
9208 touch testdir/dir1/\\*
9209 touch testdir/dir2/file2
9210 touch testdir/dir2/\\*
9211 touch testdir/dir3/file3
9212 touch testdir/dir3/\\*
9214 tar cf archive --exclude='testdir*f*1' \\
9215 --no-wildcards-match-slash \\
9216 --exclude='testdir*f*2' \\
9217 --wildcards-match-slash \\
9218 --exclude='testdir*f*3' \\
9220 tar tf archive | sort
9223 tar cf archive testdir
9224 tar t --wildcards 'testdir/*f*1' -f archive | sort
9227 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9230 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9235 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9239 TEST_TAR_FORMAT=posix
9240 export TEST_TAR_FORMAT
9241 TAR_OPTIONS="-H posix"
9246 test -z "`sort < /dev/null 2>&1`" || exit 77
9250 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9251 touch testdir/\*f\*1
9252 touch testdir/dir1/file1
9253 touch testdir/dir1/\*
9254 touch testdir/dir2/file2
9255 touch testdir/dir2/\*
9256 touch testdir/dir3/file3
9257 touch testdir/dir3/\*
9259 tar cf archive --exclude='testdir*f*1' \
9260 --no-wildcards-match-slash \
9261 --exclude='testdir*f*2' \
9262 --wildcards-match-slash \
9263 --exclude='testdir*f*3' \
9265 tar tf archive | sort
9268 tar cf archive testdir
9269 tar t --wildcards 'testdir/*f*1' -f archive | sort
9272 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9275 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9281 at_status=$? at_failed=false
9283 at_fn_diff_devnull "$at_stderr" || at_failed=:
9284 echo >>"$at_stdout"; $as_echo "testdir/
9301 $at_diff - "$at_stdout" || at_failed=:
9302 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9303 $at_failed && at_fn_log_failure
9307 $as_echo "$at_srcdir/exclude03.at:22:
9311 export TEST_TAR_FORMAT
9312 TAR_OPTIONS=\"-H gnu\"
9317 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9321 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9322 touch testdir/\\*f\\*1
9323 touch testdir/dir1/file1
9324 touch testdir/dir1/\\*
9325 touch testdir/dir2/file2
9326 touch testdir/dir2/\\*
9327 touch testdir/dir3/file3
9328 touch testdir/dir3/\\*
9330 tar cf archive --exclude='testdir*f*1' \\
9331 --no-wildcards-match-slash \\
9332 --exclude='testdir*f*2' \\
9333 --wildcards-match-slash \\
9334 --exclude='testdir*f*3' \\
9336 tar tf archive | sort
9339 tar cf archive testdir
9340 tar t --wildcards 'testdir/*f*1' -f archive | sort
9343 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9346 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9351 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9356 export TEST_TAR_FORMAT
9357 TAR_OPTIONS="-H gnu"
9362 test -z "`sort < /dev/null 2>&1`" || exit 77
9366 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9367 touch testdir/\*f\*1
9368 touch testdir/dir1/file1
9369 touch testdir/dir1/\*
9370 touch testdir/dir2/file2
9371 touch testdir/dir2/\*
9372 touch testdir/dir3/file3
9373 touch testdir/dir3/\*
9375 tar cf archive --exclude='testdir*f*1' \
9376 --no-wildcards-match-slash \
9377 --exclude='testdir*f*2' \
9378 --wildcards-match-slash \
9379 --exclude='testdir*f*3' \
9381 tar tf archive | sort
9384 tar cf archive testdir
9385 tar t --wildcards 'testdir/*f*1' -f archive | sort
9388 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9391 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9396 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9397 at_status=$? at_failed=false
9399 at_fn_diff_devnull "$at_stderr" || at_failed=:
9400 echo >>"$at_stdout"; $as_echo "testdir/
9417 $at_diff - "$at_stdout" || at_failed=:
9418 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9419 $at_failed && at_fn_log_failure
9426 $at_times_p && times >"$at_times_file"
9427 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9428 read at_status <"$at_status_file"
9431 at_fn_group_banner 37 'exclude04.at:19' \
9432 "exclude: case insensitive" " " 7
9434 test -f $XFAILFILE && at_xfail=yes
9436 $as_echo "37. $at_setup_line: testing $at_desc ..."
9444 $as_echo "$at_srcdir/exclude04.at:22:
9448 export TEST_TAR_FORMAT
9449 TAR_OPTIONS=\"-H v7\"
9454 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9458 mkdir -p testdir/dir
9463 touch testdir/dir/File1
9464 touch testdir/dir/File2
9465 touch testdir/dir/File3
9466 touch testdir/dir/File4
9468 tar cf archive --exclude=FILE2 \\
9476 tar tf archive | sort
9479 tar cf archive testdir
9480 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9483 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9486 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9491 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9496 export TEST_TAR_FORMAT
9502 test -z "`sort < /dev/null 2>&1`" || exit 77
9506 mkdir -p testdir/dir
9511 touch testdir/dir/File1
9512 touch testdir/dir/File2
9513 touch testdir/dir/File3
9514 touch testdir/dir/File4
9516 tar cf archive --exclude=FILE2 \
9524 tar tf archive | sort
9527 tar cf archive testdir
9528 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9531 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9534 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9540 at_status=$? at_failed=false
9542 at_fn_diff_devnull "$at_stderr" || at_failed=:
9543 echo >>"$at_stdout"; $as_echo "testdir/
9557 $at_diff - "$at_stdout" || at_failed=:
9558 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
9559 $at_failed && at_fn_log_failure
9563 $as_echo "$at_srcdir/exclude04.at:22:
9566 TEST_TAR_FORMAT=oldgnu
9567 export TEST_TAR_FORMAT
9568 TAR_OPTIONS=\"-H oldgnu\"
9573 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9577 mkdir -p testdir/dir
9582 touch testdir/dir/File1
9583 touch testdir/dir/File2
9584 touch testdir/dir/File3
9585 touch testdir/dir/File4
9587 tar cf archive --exclude=FILE2 \\
9595 tar tf archive | sort
9598 tar cf archive testdir
9599 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9602 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9605 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9610 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9614 TEST_TAR_FORMAT=oldgnu
9615 export TEST_TAR_FORMAT
9616 TAR_OPTIONS="-H oldgnu"
9621 test -z "`sort < /dev/null 2>&1`" || exit 77
9625 mkdir -p testdir/dir
9630 touch testdir/dir/File1
9631 touch testdir/dir/File2
9632 touch testdir/dir/File3
9633 touch testdir/dir/File4
9635 tar cf archive --exclude=FILE2 \
9643 tar tf archive | sort
9646 tar cf archive testdir
9647 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9650 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9653 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9658 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9659 at_status=$? at_failed=false
9661 at_fn_diff_devnull "$at_stderr" || at_failed=:
9662 echo >>"$at_stdout"; $as_echo "testdir/
9676 $at_diff - "$at_stdout" || at_failed=:
9677 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
9678 $at_failed && at_fn_log_failure
9682 $as_echo "$at_srcdir/exclude04.at:22:
9685 TEST_TAR_FORMAT=ustar
9686 export TEST_TAR_FORMAT
9687 TAR_OPTIONS=\"-H ustar\"
9692 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9696 mkdir -p testdir/dir
9701 touch testdir/dir/File1
9702 touch testdir/dir/File2
9703 touch testdir/dir/File3
9704 touch testdir/dir/File4
9706 tar cf archive --exclude=FILE2 \\
9714 tar tf archive | sort
9717 tar cf archive testdir
9718 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9721 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9724 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9729 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9733 TEST_TAR_FORMAT=ustar
9734 export TEST_TAR_FORMAT
9735 TAR_OPTIONS="-H ustar"
9740 test -z "`sort < /dev/null 2>&1`" || exit 77
9744 mkdir -p testdir/dir
9749 touch testdir/dir/File1
9750 touch testdir/dir/File2
9751 touch testdir/dir/File3
9752 touch testdir/dir/File4
9754 tar cf archive --exclude=FILE2 \
9762 tar tf archive | sort
9765 tar cf archive testdir
9766 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9769 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9772 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9778 at_status=$? at_failed=false
9780 at_fn_diff_devnull "$at_stderr" || at_failed=:
9781 echo >>"$at_stdout"; $as_echo "testdir/
9795 $at_diff - "$at_stdout" || at_failed=:
9796 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
9797 $at_failed && at_fn_log_failure
9801 $as_echo "$at_srcdir/exclude04.at:22:
9804 TEST_TAR_FORMAT=posix
9805 export TEST_TAR_FORMAT
9806 TAR_OPTIONS=\"-H posix\"
9811 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9815 mkdir -p testdir/dir
9820 touch testdir/dir/File1
9821 touch testdir/dir/File2
9822 touch testdir/dir/File3
9823 touch testdir/dir/File4
9825 tar cf archive --exclude=FILE2 \\
9833 tar tf archive | sort
9836 tar cf archive testdir
9837 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9840 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9843 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9848 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9852 TEST_TAR_FORMAT=posix
9853 export TEST_TAR_FORMAT
9854 TAR_OPTIONS="-H posix"
9859 test -z "`sort < /dev/null 2>&1`" || exit 77
9863 mkdir -p testdir/dir
9868 touch testdir/dir/File1
9869 touch testdir/dir/File2
9870 touch testdir/dir/File3
9871 touch testdir/dir/File4
9873 tar cf archive --exclude=FILE2 \
9881 tar tf archive | sort
9884 tar cf archive testdir
9885 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9888 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9891 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9896 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9897 at_status=$? at_failed=false
9899 at_fn_diff_devnull "$at_stderr" || at_failed=:
9900 echo >>"$at_stdout"; $as_echo "testdir/
9914 $at_diff - "$at_stdout" || at_failed=:
9915 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
9916 $at_failed && at_fn_log_failure
9920 $as_echo "$at_srcdir/exclude04.at:22:
9924 export TEST_TAR_FORMAT
9925 TAR_OPTIONS=\"-H gnu\"
9930 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9934 mkdir -p testdir/dir
9939 touch testdir/dir/File1
9940 touch testdir/dir/File2
9941 touch testdir/dir/File3
9942 touch testdir/dir/File4
9944 tar cf archive --exclude=FILE2 \\
9952 tar tf archive | sort
9955 tar cf archive testdir
9956 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9959 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9962 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9967 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9972 export TEST_TAR_FORMAT
9973 TAR_OPTIONS="-H gnu"
9978 test -z "`sort < /dev/null 2>&1`" || exit 77
9982 mkdir -p testdir/dir
9987 touch testdir/dir/File1
9988 touch testdir/dir/File2
9989 touch testdir/dir/File3
9990 touch testdir/dir/File4
9992 tar cf archive --exclude=FILE2 \
10000 tar tf archive | sort
10003 tar cf archive testdir
10004 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10007 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10010 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10015 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10016 at_status=$? at_failed=false
10018 at_fn_diff_devnull "$at_stderr" || at_failed=:
10019 echo >>"$at_stdout"; $as_echo "testdir/
10033 $at_diff - "$at_stdout" || at_failed=:
10034 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10035 $at_failed && at_fn_log_failure
10042 $at_times_p && times >"$at_times_file"
10043 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10044 read at_status <"$at_status_file"
10047 at_fn_group_banner 38 'exclude05.at:21' \
10048 "exclude: lots of excludes" " " 7
10050 test -f $XFAILFILE && at_xfail=yes
10052 $as_echo "38. $at_setup_line: testing $at_desc ..."
10060 $as_echo "$at_srcdir/exclude05.at:24:
10064 export TEST_TAR_FORMAT
10065 TAR_OPTIONS=\"-H v7\"
10070 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10073 rm -rf testdir exclfile
10075 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10078 genfile --file \$name
10081 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10083 tar cf archive --anchored --exclude-from=exclfile \\
10085 tar tf archive | sort
10088 tar cf archive --exclude-from=exclfile \\
10090 tar tf archive | sort
10092 rm -rf testdir exclfile
10095 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10100 export TEST_TAR_FORMAT
10101 TAR_OPTIONS="-H v7"
10106 test -z "`sort < /dev/null 2>&1`" || exit 77
10109 rm -rf testdir exclfile
10111 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10114 genfile --file $name
10117 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10119 tar cf archive --anchored --exclude-from=exclfile \
10121 tar tf archive | sort
10124 tar cf archive --exclude-from=exclfile \
10126 tar tf archive | sort
10128 rm -rf testdir exclfile
10131 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10132 at_status=$? at_failed=false
10134 at_fn_diff_devnull "$at_stderr" || at_failed=:
10135 echo >>"$at_stdout"; $as_echo "testdir/
10145 $at_diff - "$at_stdout" || at_failed=:
10146 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10147 $at_failed && at_fn_log_failure
10151 $as_echo "$at_srcdir/exclude05.at:24:
10154 TEST_TAR_FORMAT=oldgnu
10155 export TEST_TAR_FORMAT
10156 TAR_OPTIONS=\"-H oldgnu\"
10161 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10164 rm -rf testdir exclfile
10166 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10169 genfile --file \$name
10172 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10174 tar cf archive --anchored --exclude-from=exclfile \\
10176 tar tf archive | sort
10179 tar cf archive --exclude-from=exclfile \\
10181 tar tf archive | sort
10183 rm -rf testdir exclfile
10186 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10190 TEST_TAR_FORMAT=oldgnu
10191 export TEST_TAR_FORMAT
10192 TAR_OPTIONS="-H oldgnu"
10197 test -z "`sort < /dev/null 2>&1`" || exit 77
10200 rm -rf testdir exclfile
10202 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10205 genfile --file $name
10208 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10210 tar cf archive --anchored --exclude-from=exclfile \
10212 tar tf archive | sort
10215 tar cf archive --exclude-from=exclfile \
10217 tar tf archive | sort
10219 rm -rf testdir exclfile
10222 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10223 at_status=$? at_failed=false
10225 at_fn_diff_devnull "$at_stderr" || at_failed=:
10226 echo >>"$at_stdout"; $as_echo "testdir/
10236 $at_diff - "$at_stdout" || at_failed=:
10237 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10238 $at_failed && at_fn_log_failure
10242 $as_echo "$at_srcdir/exclude05.at:24:
10245 TEST_TAR_FORMAT=ustar
10246 export TEST_TAR_FORMAT
10247 TAR_OPTIONS=\"-H ustar\"
10252 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10255 rm -rf testdir exclfile
10257 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10260 genfile --file \$name
10263 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10265 tar cf archive --anchored --exclude-from=exclfile \\
10267 tar tf archive | sort
10270 tar cf archive --exclude-from=exclfile \\
10272 tar tf archive | sort
10274 rm -rf testdir exclfile
10277 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10281 TEST_TAR_FORMAT=ustar
10282 export TEST_TAR_FORMAT
10283 TAR_OPTIONS="-H ustar"
10288 test -z "`sort < /dev/null 2>&1`" || exit 77
10291 rm -rf testdir exclfile
10293 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10296 genfile --file $name
10299 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10301 tar cf archive --anchored --exclude-from=exclfile \
10303 tar tf archive | sort
10306 tar cf archive --exclude-from=exclfile \
10308 tar tf archive | sort
10310 rm -rf testdir exclfile
10313 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10314 at_status=$? at_failed=false
10316 at_fn_diff_devnull "$at_stderr" || at_failed=:
10317 echo >>"$at_stdout"; $as_echo "testdir/
10327 $at_diff - "$at_stdout" || at_failed=:
10328 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10329 $at_failed && at_fn_log_failure
10333 $as_echo "$at_srcdir/exclude05.at:24:
10336 TEST_TAR_FORMAT=posix
10337 export TEST_TAR_FORMAT
10338 TAR_OPTIONS=\"-H posix\"
10343 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10346 rm -rf testdir exclfile
10348 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10351 genfile --file \$name
10354 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10356 tar cf archive --anchored --exclude-from=exclfile \\
10358 tar tf archive | sort
10361 tar cf archive --exclude-from=exclfile \\
10363 tar tf archive | sort
10365 rm -rf testdir exclfile
10368 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10372 TEST_TAR_FORMAT=posix
10373 export TEST_TAR_FORMAT
10374 TAR_OPTIONS="-H posix"
10379 test -z "`sort < /dev/null 2>&1`" || exit 77
10382 rm -rf testdir exclfile
10384 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10387 genfile --file $name
10390 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10392 tar cf archive --anchored --exclude-from=exclfile \
10394 tar tf archive | sort
10397 tar cf archive --exclude-from=exclfile \
10399 tar tf archive | sort
10401 rm -rf testdir exclfile
10404 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10405 at_status=$? at_failed=false
10407 at_fn_diff_devnull "$at_stderr" || at_failed=:
10408 echo >>"$at_stdout"; $as_echo "testdir/
10418 $at_diff - "$at_stdout" || at_failed=:
10419 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10420 $at_failed && at_fn_log_failure
10424 $as_echo "$at_srcdir/exclude05.at:24:
10427 TEST_TAR_FORMAT=gnu
10428 export TEST_TAR_FORMAT
10429 TAR_OPTIONS=\"-H gnu\"
10434 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10437 rm -rf testdir exclfile
10439 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10442 genfile --file \$name
10445 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10447 tar cf archive --anchored --exclude-from=exclfile \\
10449 tar tf archive | sort
10452 tar cf archive --exclude-from=exclfile \\
10454 tar tf archive | sort
10456 rm -rf testdir exclfile
10459 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10463 TEST_TAR_FORMAT=gnu
10464 export TEST_TAR_FORMAT
10465 TAR_OPTIONS="-H gnu"
10470 test -z "`sort < /dev/null 2>&1`" || exit 77
10473 rm -rf testdir exclfile
10475 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10478 genfile --file $name
10481 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10483 tar cf archive --anchored --exclude-from=exclfile \
10485 tar tf archive | sort
10488 tar cf archive --exclude-from=exclfile \
10490 tar tf archive | sort
10492 rm -rf testdir exclfile
10495 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10496 at_status=$? at_failed=false
10498 at_fn_diff_devnull "$at_stderr" || at_failed=:
10499 echo >>"$at_stdout"; $as_echo "testdir/
10509 $at_diff - "$at_stdout" || at_failed=:
10510 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10511 $at_failed && at_fn_log_failure
10518 $at_times_p && times >"$at_times_file"
10519 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10520 read at_status <"$at_status_file"
10523 at_fn_group_banner 39 'exclude06.at:26' \
10524 "exclude: long files in pax archives" " " 7
10526 test -f $XFAILFILE && at_xfail=yes
10528 $as_echo "39. $at_setup_line: testing $at_desc ..."
10538 $as_echo "$at_srcdir/exclude06.at:31:
10541 TEST_TAR_FORMAT=pax
10542 export TEST_TAR_FORMAT
10543 TAR_OPTIONS=\"-H pax\"
10548 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
10549 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10550 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10552 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10554 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10557 at_fn_check_prepare_notrace 'an embedded newline' "exclude06.at:31"
10561 TEST_TAR_FORMAT=pax
10562 export TEST_TAR_FORMAT
10563 TAR_OPTIONS="-H pax"
10568 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
10569 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10570 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10572 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10574 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10577 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10578 at_status=$? at_failed=false
10580 at_fn_diff_devnull "$at_stderr" || at_failed=:
10581 echo >>"$at_stdout"; $as_echo "out/one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10583 $at_diff - "$at_stdout" || at_failed=:
10584 at_fn_check_status 0 $at_status "$at_srcdir/exclude06.at:31"
10585 $at_failed && at_fn_log_failure
10593 $at_times_p && times >"$at_times_file"
10594 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10595 read at_status <"$at_status_file"
10598 at_fn_group_banner 40 'exclude07.at:19' \
10599 "exclude: --exclude-backups option" " " 7
10601 test -f $XFAILFILE && at_xfail=yes
10603 $as_echo "40. $at_setup_line: testing $at_desc ..."
10611 $as_echo "$at_srcdir/exclude07.at:22:
10615 export TEST_TAR_FORMAT
10616 TAR_OPTIONS=\"-H v7\"
10621 genfile --file dir/file
10622 genfile --file dir/file~
10623 genfile --file \"dir/.#file\"
10624 genfile --file \"dir/#file#\"
10626 tar -v -c -f archive --exclude-backups dir
10628 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
10633 export TEST_TAR_FORMAT
10634 TAR_OPTIONS="-H v7"
10639 genfile --file dir/file
10640 genfile --file dir/file~
10641 genfile --file "dir/.#file"
10642 genfile --file "dir/#file#"
10644 tar -v -c -f archive --exclude-backups dir
10646 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10647 at_status=$? at_failed=false
10649 at_fn_diff_devnull "$at_stderr" || at_failed=:
10650 echo >>"$at_stdout"; $as_echo "dir/
10653 $at_diff - "$at_stdout" || at_failed=:
10654 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
10655 $at_failed && at_fn_log_failure
10659 $as_echo "$at_srcdir/exclude07.at:22:
10662 TEST_TAR_FORMAT=oldgnu
10663 export TEST_TAR_FORMAT
10664 TAR_OPTIONS=\"-H oldgnu\"
10669 genfile --file dir/file
10670 genfile --file dir/file~
10671 genfile --file \"dir/.#file\"
10672 genfile --file \"dir/#file#\"
10674 tar -v -c -f archive --exclude-backups dir
10676 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
10680 TEST_TAR_FORMAT=oldgnu
10681 export TEST_TAR_FORMAT
10682 TAR_OPTIONS="-H oldgnu"
10687 genfile --file dir/file
10688 genfile --file dir/file~
10689 genfile --file "dir/.#file"
10690 genfile --file "dir/#file#"
10692 tar -v -c -f archive --exclude-backups dir
10694 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10695 at_status=$? at_failed=false
10697 at_fn_diff_devnull "$at_stderr" || at_failed=:
10698 echo >>"$at_stdout"; $as_echo "dir/
10701 $at_diff - "$at_stdout" || at_failed=:
10702 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
10703 $at_failed && at_fn_log_failure
10707 $as_echo "$at_srcdir/exclude07.at:22:
10710 TEST_TAR_FORMAT=ustar
10711 export TEST_TAR_FORMAT
10712 TAR_OPTIONS=\"-H ustar\"
10717 genfile --file dir/file
10718 genfile --file dir/file~
10719 genfile --file \"dir/.#file\"
10720 genfile --file \"dir/#file#\"
10722 tar -v -c -f archive --exclude-backups dir
10724 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
10728 TEST_TAR_FORMAT=ustar
10729 export TEST_TAR_FORMAT
10730 TAR_OPTIONS="-H ustar"
10735 genfile --file dir/file
10736 genfile --file dir/file~
10737 genfile --file "dir/.#file"
10738 genfile --file "dir/#file#"
10740 tar -v -c -f archive --exclude-backups dir
10742 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10743 at_status=$? at_failed=false
10745 at_fn_diff_devnull "$at_stderr" || at_failed=:
10746 echo >>"$at_stdout"; $as_echo "dir/
10749 $at_diff - "$at_stdout" || at_failed=:
10750 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
10751 $at_failed && at_fn_log_failure
10755 $as_echo "$at_srcdir/exclude07.at:22:
10758 TEST_TAR_FORMAT=posix
10759 export TEST_TAR_FORMAT
10760 TAR_OPTIONS=\"-H posix\"
10765 genfile --file dir/file
10766 genfile --file dir/file~
10767 genfile --file \"dir/.#file\"
10768 genfile --file \"dir/#file#\"
10770 tar -v -c -f archive --exclude-backups dir
10772 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
10776 TEST_TAR_FORMAT=posix
10777 export TEST_TAR_FORMAT
10778 TAR_OPTIONS="-H posix"
10783 genfile --file dir/file
10784 genfile --file dir/file~
10785 genfile --file "dir/.#file"
10786 genfile --file "dir/#file#"
10788 tar -v -c -f archive --exclude-backups dir
10790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10791 at_status=$? at_failed=false
10793 at_fn_diff_devnull "$at_stderr" || at_failed=:
10794 echo >>"$at_stdout"; $as_echo "dir/
10797 $at_diff - "$at_stdout" || at_failed=:
10798 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
10799 $at_failed && at_fn_log_failure
10803 $as_echo "$at_srcdir/exclude07.at:22:
10806 TEST_TAR_FORMAT=gnu
10807 export TEST_TAR_FORMAT
10808 TAR_OPTIONS=\"-H gnu\"
10813 genfile --file dir/file
10814 genfile --file dir/file~
10815 genfile --file \"dir/.#file\"
10816 genfile --file \"dir/#file#\"
10818 tar -v -c -f archive --exclude-backups dir
10820 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
10824 TEST_TAR_FORMAT=gnu
10825 export TEST_TAR_FORMAT
10826 TAR_OPTIONS="-H gnu"
10831 genfile --file dir/file
10832 genfile --file dir/file~
10833 genfile --file "dir/.#file"
10834 genfile --file "dir/#file#"
10836 tar -v -c -f archive --exclude-backups dir
10838 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10839 at_status=$? at_failed=false
10841 at_fn_diff_devnull "$at_stderr" || at_failed=:
10842 echo >>"$at_stdout"; $as_echo "dir/
10845 $at_diff - "$at_stdout" || at_failed=:
10846 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
10847 $at_failed && at_fn_log_failure
10854 $at_times_p && times >"$at_times_file"
10855 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10856 read at_status <"$at_status_file"
10859 at_fn_group_banner 41 'exclude08.at:36' \
10860 "--exclude-tag option" " " 7
10862 test -f $XFAILFILE && at_xfail=yes
10864 $as_echo "41. $at_setup_line: testing $at_desc ..."
10872 $as_echo "$at_srcdir/exclude08.at:39:
10876 export TEST_TAR_FORMAT
10877 TAR_OPTIONS=\"-H v7\"
10882 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10885 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10887 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
10892 export TEST_TAR_FORMAT
10893 TAR_OPTIONS="-H v7"
10898 test -z "`sort < /dev/null 2>&1`" || exit 77
10901 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10903 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10904 at_status=$? at_failed=false
10906 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
10908 $at_diff - "$at_stderr" || at_failed=:
10909 echo >>"$at_stdout"; $as_echo "etest/
10911 etest/subdir/excludeme
10912 etest/top-level-file
10914 $at_diff - "$at_stdout" || at_failed=:
10915 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
10916 $at_failed && at_fn_log_failure
10920 $as_echo "$at_srcdir/exclude08.at:39:
10923 TEST_TAR_FORMAT=oldgnu
10924 export TEST_TAR_FORMAT
10925 TAR_OPTIONS=\"-H oldgnu\"
10930 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10933 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10935 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
10939 TEST_TAR_FORMAT=oldgnu
10940 export TEST_TAR_FORMAT
10941 TAR_OPTIONS="-H oldgnu"
10946 test -z "`sort < /dev/null 2>&1`" || exit 77
10949 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10951 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10952 at_status=$? at_failed=false
10954 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
10956 $at_diff - "$at_stderr" || at_failed=:
10957 echo >>"$at_stdout"; $as_echo "etest/
10959 etest/subdir/excludeme
10960 etest/top-level-file
10962 $at_diff - "$at_stdout" || at_failed=:
10963 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
10964 $at_failed && at_fn_log_failure
10968 $as_echo "$at_srcdir/exclude08.at:39:
10971 TEST_TAR_FORMAT=ustar
10972 export TEST_TAR_FORMAT
10973 TAR_OPTIONS=\"-H ustar\"
10978 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10981 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10983 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
10987 TEST_TAR_FORMAT=ustar
10988 export TEST_TAR_FORMAT
10989 TAR_OPTIONS="-H ustar"
10994 test -z "`sort < /dev/null 2>&1`" || exit 77
10997 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
10999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11000 at_status=$? at_failed=false
11002 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11004 $at_diff - "$at_stderr" || at_failed=:
11005 echo >>"$at_stdout"; $as_echo "etest/
11007 etest/subdir/excludeme
11008 etest/top-level-file
11010 $at_diff - "$at_stdout" || at_failed=:
11011 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11012 $at_failed && at_fn_log_failure
11016 $as_echo "$at_srcdir/exclude08.at:39:
11019 TEST_TAR_FORMAT=posix
11020 export TEST_TAR_FORMAT
11021 TAR_OPTIONS=\"-H posix\"
11026 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11029 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11031 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11035 TEST_TAR_FORMAT=posix
11036 export TEST_TAR_FORMAT
11037 TAR_OPTIONS="-H posix"
11042 test -z "`sort < /dev/null 2>&1`" || exit 77
11045 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11047 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11048 at_status=$? at_failed=false
11050 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11052 $at_diff - "$at_stderr" || at_failed=:
11053 echo >>"$at_stdout"; $as_echo "etest/
11055 etest/subdir/excludeme
11056 etest/top-level-file
11058 $at_diff - "$at_stdout" || at_failed=:
11059 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11060 $at_failed && at_fn_log_failure
11064 $as_echo "$at_srcdir/exclude08.at:39:
11067 TEST_TAR_FORMAT=gnu
11068 export TEST_TAR_FORMAT
11069 TAR_OPTIONS=\"-H gnu\"
11074 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11077 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11079 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11083 TEST_TAR_FORMAT=gnu
11084 export TEST_TAR_FORMAT
11085 TAR_OPTIONS="-H gnu"
11090 test -z "`sort < /dev/null 2>&1`" || exit 77
11093 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11095 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11096 at_status=$? at_failed=false
11098 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11100 $at_diff - "$at_stderr" || at_failed=:
11101 echo >>"$at_stdout"; $as_echo "etest/
11103 etest/subdir/excludeme
11104 etest/top-level-file
11106 $at_diff - "$at_stdout" || at_failed=:
11107 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11108 $at_failed && at_fn_log_failure
11115 $at_times_p && times >"$at_times_file"
11116 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11117 read at_status <"$at_status_file"
11120 at_fn_group_banner 42 'exclude09.at:37' \
11121 "--exclude-tag option and --listed-incremental" " " 7
11123 test -f $XFAILFILE && at_xfail=yes
11125 $as_echo "42. $at_setup_line: testing $at_desc ..."
11133 $as_echo "$at_srcdir/exclude09.at:40:
11136 TEST_TAR_FORMAT=gnu
11137 export TEST_TAR_FORMAT
11138 TAR_OPTIONS=\"-H gnu\"
11143 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11146 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
11148 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude09.at:40"
11152 TEST_TAR_FORMAT=gnu
11153 export TEST_TAR_FORMAT
11154 TAR_OPTIONS="-H gnu"
11159 test -z "`sort < /dev/null 2>&1`" || exit 77
11162 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
11164 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11165 at_status=$? at_failed=false
11167 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
11168 tar: etest/subdir: Directory is new
11169 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11171 $at_diff - "$at_stderr" || at_failed=:
11172 echo >>"$at_stdout"; $as_echo "etest/
11174 etest/subdir/excludeme
11175 etest/top-level-file
11177 $at_diff - "$at_stdout" || at_failed=:
11178 at_fn_check_status 0 $at_status "$at_srcdir/exclude09.at:40"
11179 $at_failed && at_fn_log_failure
11186 $at_times_p && times >"$at_times_file"
11187 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11188 read at_status <"$at_status_file"
11191 at_fn_group_banner 43 'exclude10.at:38' \
11192 "--exclude-tag option in incremental pass" " " 7
11194 test -f $XFAILFILE && at_xfail=yes
11196 $as_echo "43. $at_setup_line: testing $at_desc ..."
11204 $as_echo "$at_srcdir/exclude10.at:41:
11207 TEST_TAR_FORMAT=gnu
11208 export TEST_TAR_FORMAT
11209 TAR_OPTIONS=\"-H gnu\"
11214 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11217 rm etest/subdir/excludeme
11218 decho \"# Level 0\"
11219 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
11220 touch etest/subdir/excludeme
11221 touch etest/subdir/otherfile
11223 decho \"# Level 1\"
11225 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
11227 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude10.at:41"
11231 TEST_TAR_FORMAT=gnu
11232 export TEST_TAR_FORMAT
11233 TAR_OPTIONS="-H gnu"
11238 test -z "`sort < /dev/null 2>&1`" || exit 77
11241 rm etest/subdir/excludeme
11243 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
11244 touch etest/subdir/excludeme
11245 touch etest/subdir/otherfile
11249 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
11251 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11252 at_status=$? at_failed=false
11254 echo >>"$at_stderr"; $as_echo "# Level 0
11255 tar: etest: Directory is new
11256 tar: etest/subdir: Directory is new
11258 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11260 $at_diff - "$at_stderr" || at_failed=:
11261 echo >>"$at_stdout"; $as_echo "# Level 0
11264 etest/subdir/subdir-file
11265 etest/top-level-file
11269 etest/subdir/excludeme
11271 $at_diff - "$at_stdout" || at_failed=:
11272 at_fn_check_status 0 $at_status "$at_srcdir/exclude10.at:41"
11273 $at_failed && at_fn_log_failure
11280 $at_times_p && times >"$at_times_file"
11281 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11282 read at_status <"$at_status_file"
11285 at_fn_group_banner 44 'exclude11.at:36' \
11286 "--exclude-tag-under option" " " 7
11288 test -f $XFAILFILE && at_xfail=yes
11290 $as_echo "44. $at_setup_line: testing $at_desc ..."
11298 $as_echo "$at_srcdir/exclude11.at:39:
11302 export TEST_TAR_FORMAT
11303 TAR_OPTIONS=\"-H v7\"
11308 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11311 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11313 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11318 export TEST_TAR_FORMAT
11319 TAR_OPTIONS="-H v7"
11324 test -z "`sort < /dev/null 2>&1`" || exit 77
11327 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11329 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11330 at_status=$? at_failed=false
11332 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11334 $at_diff - "$at_stderr" || at_failed=:
11335 echo >>"$at_stdout"; $as_echo "etest/
11337 etest/top-level-file
11339 $at_diff - "$at_stdout" || at_failed=:
11340 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11341 $at_failed && at_fn_log_failure
11345 $as_echo "$at_srcdir/exclude11.at:39:
11348 TEST_TAR_FORMAT=oldgnu
11349 export TEST_TAR_FORMAT
11350 TAR_OPTIONS=\"-H oldgnu\"
11355 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11358 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11360 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11364 TEST_TAR_FORMAT=oldgnu
11365 export TEST_TAR_FORMAT
11366 TAR_OPTIONS="-H oldgnu"
11371 test -z "`sort < /dev/null 2>&1`" || exit 77
11374 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11376 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11377 at_status=$? at_failed=false
11379 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11381 $at_diff - "$at_stderr" || at_failed=:
11382 echo >>"$at_stdout"; $as_echo "etest/
11384 etest/top-level-file
11386 $at_diff - "$at_stdout" || at_failed=:
11387 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11388 $at_failed && at_fn_log_failure
11392 $as_echo "$at_srcdir/exclude11.at:39:
11395 TEST_TAR_FORMAT=ustar
11396 export TEST_TAR_FORMAT
11397 TAR_OPTIONS=\"-H ustar\"
11402 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11405 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11407 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11411 TEST_TAR_FORMAT=ustar
11412 export TEST_TAR_FORMAT
11413 TAR_OPTIONS="-H ustar"
11418 test -z "`sort < /dev/null 2>&1`" || exit 77
11421 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11423 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11424 at_status=$? at_failed=false
11426 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11428 $at_diff - "$at_stderr" || at_failed=:
11429 echo >>"$at_stdout"; $as_echo "etest/
11431 etest/top-level-file
11433 $at_diff - "$at_stdout" || at_failed=:
11434 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11435 $at_failed && at_fn_log_failure
11439 $as_echo "$at_srcdir/exclude11.at:39:
11442 TEST_TAR_FORMAT=posix
11443 export TEST_TAR_FORMAT
11444 TAR_OPTIONS=\"-H posix\"
11449 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11452 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11454 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11458 TEST_TAR_FORMAT=posix
11459 export TEST_TAR_FORMAT
11460 TAR_OPTIONS="-H posix"
11465 test -z "`sort < /dev/null 2>&1`" || exit 77
11468 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11470 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11471 at_status=$? at_failed=false
11473 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11475 $at_diff - "$at_stderr" || at_failed=:
11476 echo >>"$at_stdout"; $as_echo "etest/
11478 etest/top-level-file
11480 $at_diff - "$at_stdout" || at_failed=:
11481 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11482 $at_failed && at_fn_log_failure
11486 $as_echo "$at_srcdir/exclude11.at:39:
11489 TEST_TAR_FORMAT=gnu
11490 export TEST_TAR_FORMAT
11491 TAR_OPTIONS=\"-H gnu\"
11496 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11499 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11501 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11505 TEST_TAR_FORMAT=gnu
11506 export TEST_TAR_FORMAT
11507 TAR_OPTIONS="-H gnu"
11512 test -z "`sort < /dev/null 2>&1`" || exit 77
11515 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11517 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11518 at_status=$? at_failed=false
11520 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11522 $at_diff - "$at_stderr" || at_failed=:
11523 echo >>"$at_stdout"; $as_echo "etest/
11525 etest/top-level-file
11527 $at_diff - "$at_stdout" || at_failed=:
11528 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11529 $at_failed && at_fn_log_failure
11536 $at_times_p && times >"$at_times_file"
11537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11538 read at_status <"$at_status_file"
11541 at_fn_group_banner 45 'exclude12.at:37' \
11542 "--exclude-tag-under and --listed-incremental" " " 7
11544 test -f $XFAILFILE && at_xfail=yes
11546 $as_echo "45. $at_setup_line: testing $at_desc ..."
11554 $as_echo "$at_srcdir/exclude12.at:40:
11557 TEST_TAR_FORMAT=gnu
11558 export TEST_TAR_FORMAT
11559 TAR_OPTIONS=\"-H gnu\"
11564 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11567 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
11569 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude12.at:40"
11573 TEST_TAR_FORMAT=gnu
11574 export TEST_TAR_FORMAT
11575 TAR_OPTIONS="-H gnu"
11580 test -z "`sort < /dev/null 2>&1`" || exit 77
11583 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
11585 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11586 at_status=$? at_failed=false
11588 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
11589 tar: etest/subdir: Directory is new
11590 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11592 $at_diff - "$at_stderr" || at_failed=:
11593 echo >>"$at_stdout"; $as_echo "etest/
11595 etest/top-level-file
11597 $at_diff - "$at_stdout" || at_failed=:
11598 at_fn_check_status 0 $at_status "$at_srcdir/exclude12.at:40"
11599 $at_failed && at_fn_log_failure
11606 $at_times_p && times >"$at_times_file"
11607 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11608 read at_status <"$at_status_file"
11611 at_fn_group_banner 46 'exclude13.at:39' \
11612 "--exclude-tag-under option in incremental pass" " " 7
11614 test -f $XFAILFILE && at_xfail=yes
11616 $as_echo "46. $at_setup_line: testing $at_desc ..."
11624 $as_echo "$at_srcdir/exclude13.at:42:
11627 TEST_TAR_FORMAT=gnu
11628 export TEST_TAR_FORMAT
11629 TAR_OPTIONS=\"-H gnu\"
11634 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11637 rm etest/subdir/excludeme
11638 decho \"# Level 0\"
11639 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
11640 touch etest/subdir/excludeme
11641 touch etest/subdir/otherfile
11643 decho \"# Level 1\"
11645 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
11647 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude13.at:42"
11651 TEST_TAR_FORMAT=gnu
11652 export TEST_TAR_FORMAT
11653 TAR_OPTIONS="-H gnu"
11658 test -z "`sort < /dev/null 2>&1`" || exit 77
11661 rm etest/subdir/excludeme
11663 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
11664 touch etest/subdir/excludeme
11665 touch etest/subdir/otherfile
11669 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
11671 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11672 at_status=$? at_failed=false
11674 echo >>"$at_stderr"; $as_echo "# Level 0
11675 tar: etest: Directory is new
11676 tar: etest/subdir: Directory is new
11678 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11680 $at_diff - "$at_stderr" || at_failed=:
11681 echo >>"$at_stdout"; $as_echo "# Level 0
11684 etest/subdir/subdir-file
11685 etest/top-level-file
11690 $at_diff - "$at_stdout" || at_failed=:
11691 at_fn_check_status 0 $at_status "$at_srcdir/exclude13.at:42"
11692 $at_failed && at_fn_log_failure
11699 $at_times_p && times >"$at_times_file"
11700 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11701 read at_status <"$at_status_file"
11704 at_fn_group_banner 47 'exclude14.at:36' \
11705 "--exclude-tag-all option" " " 7
11707 test -f $XFAILFILE && at_xfail=yes
11709 $as_echo "47. $at_setup_line: testing $at_desc ..."
11717 $as_echo "$at_srcdir/exclude14.at:39:
11721 export TEST_TAR_FORMAT
11722 TAR_OPTIONS=\"-H v7\"
11727 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11730 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11732 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
11737 export TEST_TAR_FORMAT
11738 TAR_OPTIONS="-H v7"
11743 test -z "`sort < /dev/null 2>&1`" || exit 77
11746 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11748 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11749 at_status=$? at_failed=false
11751 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
11753 $at_diff - "$at_stderr" || at_failed=:
11754 echo >>"$at_stdout"; $as_echo "etest/
11755 etest/top-level-file
11757 $at_diff - "$at_stdout" || at_failed=:
11758 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
11759 $at_failed && at_fn_log_failure
11763 $as_echo "$at_srcdir/exclude14.at:39:
11766 TEST_TAR_FORMAT=oldgnu
11767 export TEST_TAR_FORMAT
11768 TAR_OPTIONS=\"-H oldgnu\"
11773 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11776 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11778 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
11782 TEST_TAR_FORMAT=oldgnu
11783 export TEST_TAR_FORMAT
11784 TAR_OPTIONS="-H oldgnu"
11789 test -z "`sort < /dev/null 2>&1`" || exit 77
11792 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11794 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11795 at_status=$? at_failed=false
11797 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
11799 $at_diff - "$at_stderr" || at_failed=:
11800 echo >>"$at_stdout"; $as_echo "etest/
11801 etest/top-level-file
11803 $at_diff - "$at_stdout" || at_failed=:
11804 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
11805 $at_failed && at_fn_log_failure
11809 $as_echo "$at_srcdir/exclude14.at:39:
11812 TEST_TAR_FORMAT=ustar
11813 export TEST_TAR_FORMAT
11814 TAR_OPTIONS=\"-H ustar\"
11819 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11822 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11824 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
11828 TEST_TAR_FORMAT=ustar
11829 export TEST_TAR_FORMAT
11830 TAR_OPTIONS="-H ustar"
11835 test -z "`sort < /dev/null 2>&1`" || exit 77
11838 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11840 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11841 at_status=$? at_failed=false
11843 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
11845 $at_diff - "$at_stderr" || at_failed=:
11846 echo >>"$at_stdout"; $as_echo "etest/
11847 etest/top-level-file
11849 $at_diff - "$at_stdout" || at_failed=:
11850 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
11851 $at_failed && at_fn_log_failure
11855 $as_echo "$at_srcdir/exclude14.at:39:
11858 TEST_TAR_FORMAT=posix
11859 export TEST_TAR_FORMAT
11860 TAR_OPTIONS=\"-H posix\"
11865 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11868 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11870 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
11874 TEST_TAR_FORMAT=posix
11875 export TEST_TAR_FORMAT
11876 TAR_OPTIONS="-H posix"
11881 test -z "`sort < /dev/null 2>&1`" || exit 77
11884 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11887 at_status=$? at_failed=false
11889 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
11891 $at_diff - "$at_stderr" || at_failed=:
11892 echo >>"$at_stdout"; $as_echo "etest/
11893 etest/top-level-file
11895 $at_diff - "$at_stdout" || at_failed=:
11896 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
11897 $at_failed && at_fn_log_failure
11901 $as_echo "$at_srcdir/exclude14.at:39:
11904 TEST_TAR_FORMAT=gnu
11905 export TEST_TAR_FORMAT
11906 TAR_OPTIONS=\"-H gnu\"
11911 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11914 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11916 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
11920 TEST_TAR_FORMAT=gnu
11921 export TEST_TAR_FORMAT
11922 TAR_OPTIONS="-H gnu"
11927 test -z "`sort < /dev/null 2>&1`" || exit 77
11930 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
11932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11933 at_status=$? at_failed=false
11935 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
11937 $at_diff - "$at_stderr" || at_failed=:
11938 echo >>"$at_stdout"; $as_echo "etest/
11939 etest/top-level-file
11941 $at_diff - "$at_stdout" || at_failed=:
11942 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
11943 $at_failed && at_fn_log_failure
11950 $at_times_p && times >"$at_times_file"
11951 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11952 read at_status <"$at_status_file"
11955 at_fn_group_banner 48 'exclude15.at:36' \
11956 "--exclude-tag-all and --listed-incremental" " " 7
11958 test -f $XFAILFILE && at_xfail=yes
11960 $as_echo "48. $at_setup_line: testing $at_desc ..."
11968 $as_echo "$at_srcdir/exclude15.at:39:
11971 TEST_TAR_FORMAT=gnu
11972 export TEST_TAR_FORMAT
11973 TAR_OPTIONS=\"-H gnu\"
11978 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11981 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
11983 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude15.at:39"
11987 TEST_TAR_FORMAT=gnu
11988 export TEST_TAR_FORMAT
11989 TAR_OPTIONS="-H gnu"
11994 test -z "`sort < /dev/null 2>&1`" || exit 77
11997 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
11999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12000 at_status=$? at_failed=false
12002 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
12003 tar: etest/subdir: Directory is new
12004 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
12006 $at_diff - "$at_stderr" || at_failed=:
12007 echo >>"$at_stdout"; $as_echo "etest/
12008 etest/top-level-file
12010 $at_diff - "$at_stdout" || at_failed=:
12011 at_fn_check_status 0 $at_status "$at_srcdir/exclude15.at:39"
12012 $at_failed && at_fn_log_failure
12019 $at_times_p && times >"$at_times_file"
12020 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12021 read at_status <"$at_status_file"
12024 at_fn_group_banner 49 'exclude16.at:38' \
12025 "--exclude-tag-all option in incremental pass" " " 7
12027 test -f $XFAILFILE && at_xfail=yes
12029 $as_echo "49. $at_setup_line: testing $at_desc ..."
12037 $as_echo "$at_srcdir/exclude16.at:41:
12040 TEST_TAR_FORMAT=gnu
12041 export TEST_TAR_FORMAT
12042 TAR_OPTIONS=\"-H gnu\"
12047 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12050 rm etest/subdir/excludeme
12051 decho \"# Level 0\"
12052 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
12053 touch etest/subdir/excludeme
12054 touch etest/subdir/otherfile
12056 decho \"# Level 1\"
12058 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
12060 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude16.at:41"
12064 TEST_TAR_FORMAT=gnu
12065 export TEST_TAR_FORMAT
12066 TAR_OPTIONS="-H gnu"
12071 test -z "`sort < /dev/null 2>&1`" || exit 77
12074 rm etest/subdir/excludeme
12076 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
12077 touch etest/subdir/excludeme
12078 touch etest/subdir/otherfile
12082 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
12084 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12085 at_status=$? at_failed=false
12087 echo >>"$at_stderr"; $as_echo "# Level 0
12088 tar: etest: Directory is new
12089 tar: etest/subdir: Directory is new
12091 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
12093 $at_diff - "$at_stderr" || at_failed=:
12094 echo >>"$at_stdout"; $as_echo "# Level 0
12097 etest/subdir/subdir-file
12098 etest/top-level-file
12102 $at_diff - "$at_stdout" || at_failed=:
12103 at_fn_check_status 0 $at_status "$at_srcdir/exclude16.at:41"
12104 $at_failed && at_fn_log_failure
12111 $at_times_p && times >"$at_times_file"
12112 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12113 read at_status <"$at_status_file"
12116 at_fn_group_banner 50 'delete01.at:23' \
12117 "deleting a member after a big one" " " 8
12119 test -f $XFAILFILE && at_xfail=yes
12121 $as_echo "50. $at_setup_line: testing $at_desc ..."
12129 $as_echo "$at_srcdir/delete01.at:26:
12133 export TEST_TAR_FORMAT
12134 TAR_OPTIONS=\"-H v7\"
12138 genfile -l 50000 --file file1
12139 genfile -l 1024 --file file2
12140 tar cf archive file1 file2
12141 tar f archive --delete file2
12143 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12148 export TEST_TAR_FORMAT
12149 TAR_OPTIONS="-H v7"
12153 genfile -l 50000 --file file1
12154 genfile -l 1024 --file file2
12155 tar cf archive file1 file2
12156 tar f archive --delete file2
12158 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12159 at_status=$? at_failed=false
12161 at_fn_diff_devnull "$at_stderr" || at_failed=:
12162 echo >>"$at_stdout"; $as_echo "file1
12164 $at_diff - "$at_stdout" || at_failed=:
12165 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12166 $at_failed && at_fn_log_failure
12170 $as_echo "$at_srcdir/delete01.at:26:
12173 TEST_TAR_FORMAT=oldgnu
12174 export TEST_TAR_FORMAT
12175 TAR_OPTIONS=\"-H oldgnu\"
12179 genfile -l 50000 --file file1
12180 genfile -l 1024 --file file2
12181 tar cf archive file1 file2
12182 tar f archive --delete file2
12184 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12188 TEST_TAR_FORMAT=oldgnu
12189 export TEST_TAR_FORMAT
12190 TAR_OPTIONS="-H oldgnu"
12194 genfile -l 50000 --file file1
12195 genfile -l 1024 --file file2
12196 tar cf archive file1 file2
12197 tar f archive --delete file2
12199 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12200 at_status=$? at_failed=false
12202 at_fn_diff_devnull "$at_stderr" || at_failed=:
12203 echo >>"$at_stdout"; $as_echo "file1
12205 $at_diff - "$at_stdout" || at_failed=:
12206 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12207 $at_failed && at_fn_log_failure
12211 $as_echo "$at_srcdir/delete01.at:26:
12214 TEST_TAR_FORMAT=ustar
12215 export TEST_TAR_FORMAT
12216 TAR_OPTIONS=\"-H ustar\"
12220 genfile -l 50000 --file file1
12221 genfile -l 1024 --file file2
12222 tar cf archive file1 file2
12223 tar f archive --delete file2
12225 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12229 TEST_TAR_FORMAT=ustar
12230 export TEST_TAR_FORMAT
12231 TAR_OPTIONS="-H ustar"
12235 genfile -l 50000 --file file1
12236 genfile -l 1024 --file file2
12237 tar cf archive file1 file2
12238 tar f archive --delete file2
12240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12241 at_status=$? at_failed=false
12243 at_fn_diff_devnull "$at_stderr" || at_failed=:
12244 echo >>"$at_stdout"; $as_echo "file1
12246 $at_diff - "$at_stdout" || at_failed=:
12247 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12248 $at_failed && at_fn_log_failure
12252 $as_echo "$at_srcdir/delete01.at:26:
12255 TEST_TAR_FORMAT=posix
12256 export TEST_TAR_FORMAT
12257 TAR_OPTIONS=\"-H posix\"
12261 genfile -l 50000 --file file1
12262 genfile -l 1024 --file file2
12263 tar cf archive file1 file2
12264 tar f archive --delete file2
12266 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12270 TEST_TAR_FORMAT=posix
12271 export TEST_TAR_FORMAT
12272 TAR_OPTIONS="-H posix"
12276 genfile -l 50000 --file file1
12277 genfile -l 1024 --file file2
12278 tar cf archive file1 file2
12279 tar f archive --delete file2
12281 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12282 at_status=$? at_failed=false
12284 at_fn_diff_devnull "$at_stderr" || at_failed=:
12285 echo >>"$at_stdout"; $as_echo "file1
12287 $at_diff - "$at_stdout" || at_failed=:
12288 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12289 $at_failed && at_fn_log_failure
12293 $as_echo "$at_srcdir/delete01.at:26:
12296 TEST_TAR_FORMAT=gnu
12297 export TEST_TAR_FORMAT
12298 TAR_OPTIONS=\"-H gnu\"
12302 genfile -l 50000 --file file1
12303 genfile -l 1024 --file file2
12304 tar cf archive file1 file2
12305 tar f archive --delete file2
12307 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12311 TEST_TAR_FORMAT=gnu
12312 export TEST_TAR_FORMAT
12313 TAR_OPTIONS="-H gnu"
12317 genfile -l 50000 --file file1
12318 genfile -l 1024 --file file2
12319 tar cf archive file1 file2
12320 tar f archive --delete file2
12322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12323 at_status=$? at_failed=false
12325 at_fn_diff_devnull "$at_stderr" || at_failed=:
12326 echo >>"$at_stdout"; $as_echo "file1
12328 $at_diff - "$at_stdout" || at_failed=:
12329 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12330 $at_failed && at_fn_log_failure
12337 $at_times_p && times >"$at_times_file"
12338 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12339 read at_status <"$at_status_file"
12342 at_fn_group_banner 51 'delete02.at:23' \
12343 "deleting a member from stdin archive" " " 8
12345 test -f $XFAILFILE && at_xfail=yes
12347 $as_echo "51. $at_setup_line: testing $at_desc ..."
12355 $as_echo "$at_srcdir/delete02.at:26:
12359 export TEST_TAR_FORMAT
12360 TAR_OPTIONS=\"-H v7\"
12364 genfile -l 3073 -p zeros --file 1
12367 tar cf archive 1 2 3
12369 cat archive | tar f - --delete 2 > archive2
12372 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12377 export TEST_TAR_FORMAT
12378 TAR_OPTIONS="-H v7"
12382 genfile -l 3073 -p zeros --file 1
12385 tar cf archive 1 2 3
12387 cat archive | tar f - --delete 2 > archive2
12390 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12391 at_status=$? at_failed=false
12393 at_fn_diff_devnull "$at_stderr" || at_failed=:
12394 echo >>"$at_stdout"; $as_echo "1
12401 $at_diff - "$at_stdout" || at_failed=:
12402 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12403 $at_failed && at_fn_log_failure
12407 $as_echo "$at_srcdir/delete02.at:26:
12410 TEST_TAR_FORMAT=oldgnu
12411 export TEST_TAR_FORMAT
12412 TAR_OPTIONS=\"-H oldgnu\"
12416 genfile -l 3073 -p zeros --file 1
12419 tar cf archive 1 2 3
12421 cat archive | tar f - --delete 2 > archive2
12424 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12428 TEST_TAR_FORMAT=oldgnu
12429 export TEST_TAR_FORMAT
12430 TAR_OPTIONS="-H oldgnu"
12434 genfile -l 3073 -p zeros --file 1
12437 tar cf archive 1 2 3
12439 cat archive | tar f - --delete 2 > archive2
12442 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12443 at_status=$? at_failed=false
12445 at_fn_diff_devnull "$at_stderr" || at_failed=:
12446 echo >>"$at_stdout"; $as_echo "1
12453 $at_diff - "$at_stdout" || at_failed=:
12454 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12455 $at_failed && at_fn_log_failure
12459 $as_echo "$at_srcdir/delete02.at:26:
12462 TEST_TAR_FORMAT=ustar
12463 export TEST_TAR_FORMAT
12464 TAR_OPTIONS=\"-H ustar\"
12468 genfile -l 3073 -p zeros --file 1
12471 tar cf archive 1 2 3
12473 cat archive | tar f - --delete 2 > archive2
12476 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12480 TEST_TAR_FORMAT=ustar
12481 export TEST_TAR_FORMAT
12482 TAR_OPTIONS="-H ustar"
12486 genfile -l 3073 -p zeros --file 1
12489 tar cf archive 1 2 3
12491 cat archive | tar f - --delete 2 > archive2
12494 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12495 at_status=$? at_failed=false
12497 at_fn_diff_devnull "$at_stderr" || at_failed=:
12498 echo >>"$at_stdout"; $as_echo "1
12505 $at_diff - "$at_stdout" || at_failed=:
12506 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12507 $at_failed && at_fn_log_failure
12511 $as_echo "$at_srcdir/delete02.at:26:
12514 TEST_TAR_FORMAT=posix
12515 export TEST_TAR_FORMAT
12516 TAR_OPTIONS=\"-H posix\"
12520 genfile -l 3073 -p zeros --file 1
12523 tar cf archive 1 2 3
12525 cat archive | tar f - --delete 2 > archive2
12528 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12532 TEST_TAR_FORMAT=posix
12533 export TEST_TAR_FORMAT
12534 TAR_OPTIONS="-H posix"
12538 genfile -l 3073 -p zeros --file 1
12541 tar cf archive 1 2 3
12543 cat archive | tar f - --delete 2 > archive2
12546 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12547 at_status=$? at_failed=false
12549 at_fn_diff_devnull "$at_stderr" || at_failed=:
12550 echo >>"$at_stdout"; $as_echo "1
12557 $at_diff - "$at_stdout" || at_failed=:
12558 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12559 $at_failed && at_fn_log_failure
12563 $as_echo "$at_srcdir/delete02.at:26:
12566 TEST_TAR_FORMAT=gnu
12567 export TEST_TAR_FORMAT
12568 TAR_OPTIONS=\"-H gnu\"
12572 genfile -l 3073 -p zeros --file 1
12575 tar cf archive 1 2 3
12577 cat archive | tar f - --delete 2 > archive2
12580 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12584 TEST_TAR_FORMAT=gnu
12585 export TEST_TAR_FORMAT
12586 TAR_OPTIONS="-H gnu"
12590 genfile -l 3073 -p zeros --file 1
12593 tar cf archive 1 2 3
12595 cat archive | tar f - --delete 2 > archive2
12598 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12599 at_status=$? at_failed=false
12601 at_fn_diff_devnull "$at_stderr" || at_failed=:
12602 echo >>"$at_stdout"; $as_echo "1
12609 $at_diff - "$at_stdout" || at_failed=:
12610 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12611 $at_failed && at_fn_log_failure
12618 $at_times_p && times >"$at_times_file"
12619 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12620 read at_status <"$at_status_file"
12623 at_fn_group_banner 52 'delete03.at:21' \
12624 "deleting members with long names" " " 8
12626 test -f $XFAILFILE && at_xfail=yes
12628 $as_echo "52. $at_setup_line: testing $at_desc ..."
12638 $as_echo "$at_srcdir/delete03.at:26:
12641 TEST_TAR_FORMAT=gnu
12642 export TEST_TAR_FORMAT
12643 TAR_OPTIONS=\"-H gnu\"
12648 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12650 for i in 1 2 3 4 5 6 7 8 9
12651 do touch \$prefix\$i
12653 tar -cf archive ./\$prefix* &&
12654 tar --delete -f archive ./\${prefix}5 &&
12657 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
12661 TEST_TAR_FORMAT=gnu
12662 export TEST_TAR_FORMAT
12663 TAR_OPTIONS="-H gnu"
12668 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12670 for i in 1 2 3 4 5 6 7 8 9
12673 tar -cf archive ./$prefix* &&
12674 tar --delete -f archive ./${prefix}5 &&
12677 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12678 at_status=$? at_failed=false
12680 at_fn_diff_devnull "$at_stderr" || at_failed=:
12681 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
12682 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
12683 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
12684 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
12685 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
12686 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX7
12687 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX8
12688 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX9
12690 $at_diff - "$at_stdout" || at_failed=:
12691 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
12692 $at_failed && at_fn_log_failure
12696 $as_echo "$at_srcdir/delete03.at:26:
12699 TEST_TAR_FORMAT=oldgnu
12700 export TEST_TAR_FORMAT
12701 TAR_OPTIONS=\"-H oldgnu\"
12706 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12708 for i in 1 2 3 4 5 6 7 8 9
12709 do touch \$prefix\$i
12711 tar -cf archive ./\$prefix* &&
12712 tar --delete -f archive ./\${prefix}5 &&
12715 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
12719 TEST_TAR_FORMAT=oldgnu
12720 export TEST_TAR_FORMAT
12721 TAR_OPTIONS="-H oldgnu"
12726 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12728 for i in 1 2 3 4 5 6 7 8 9
12731 tar -cf archive ./$prefix* &&
12732 tar --delete -f archive ./${prefix}5 &&
12735 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12736 at_status=$? at_failed=false
12738 at_fn_diff_devnull "$at_stderr" || at_failed=:
12739 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
12740 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
12741 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
12742 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
12743 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
12744 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX7
12745 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX8
12746 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX9
12748 $at_diff - "$at_stdout" || at_failed=:
12749 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
12750 $at_failed && at_fn_log_failure
12754 $as_echo "$at_srcdir/delete03.at:26:
12757 TEST_TAR_FORMAT=posix
12758 export TEST_TAR_FORMAT
12759 TAR_OPTIONS=\"-H posix\"
12764 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12766 for i in 1 2 3 4 5 6 7 8 9
12767 do touch \$prefix\$i
12769 tar -cf archive ./\$prefix* &&
12770 tar --delete -f archive ./\${prefix}5 &&
12773 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
12777 TEST_TAR_FORMAT=posix
12778 export TEST_TAR_FORMAT
12779 TAR_OPTIONS="-H posix"
12784 prefix=This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX
12786 for i in 1 2 3 4 5 6 7 8 9
12789 tar -cf archive ./$prefix* &&
12790 tar --delete -f archive ./${prefix}5 &&
12793 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12794 at_status=$? at_failed=false
12796 at_fn_diff_devnull "$at_stderr" || at_failed=:
12797 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
12798 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
12799 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
12800 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
12801 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
12802 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX7
12803 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX8
12804 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX9
12806 $at_diff - "$at_stdout" || at_failed=:
12807 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
12808 $at_failed && at_fn_log_failure
12816 $at_times_p && times >"$at_times_file"
12817 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12818 read at_status <"$at_status_file"
12821 at_fn_group_banner 53 'delete04.at:23' \
12822 "deleting a large last member" " " 8
12824 test -f $XFAILFILE && at_xfail=yes
12826 $as_echo "53. $at_setup_line: testing $at_desc ..."
12834 $as_echo "$at_srcdir/delete04.at:26:
12838 export TEST_TAR_FORMAT
12839 TAR_OPTIONS=\"-H v7\"
12843 genfile -l 3 -f file1
12844 genfile -l 5 -f file2
12845 genfile -l 3 -f file3
12846 genfile -l 6 -f file4
12847 genfile -l 24 -f file5
12848 genfile -l 13 -f file6
12849 genfile -l 1385 -f file7
12850 genfile -l 30 -f file8
12851 genfile -l 10 -f file9
12852 genfile -l 256000 -f file10
12853 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
12854 tar f archive --delete file10
12857 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
12862 export TEST_TAR_FORMAT
12863 TAR_OPTIONS="-H v7"
12867 genfile -l 3 -f file1
12868 genfile -l 5 -f file2
12869 genfile -l 3 -f file3
12870 genfile -l 6 -f file4
12871 genfile -l 24 -f file5
12872 genfile -l 13 -f file6
12873 genfile -l 1385 -f file7
12874 genfile -l 30 -f file8
12875 genfile -l 10 -f file9
12876 genfile -l 256000 -f file10
12877 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
12878 tar f archive --delete file10
12881 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12882 at_status=$? at_failed=false
12884 at_fn_diff_devnull "$at_stderr" || at_failed=:
12885 echo >>"$at_stdout"; $as_echo "file1
12895 $at_diff - "$at_stdout" || at_failed=:
12896 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
12897 $at_failed && at_fn_log_failure
12901 $as_echo "$at_srcdir/delete04.at:26:
12904 TEST_TAR_FORMAT=oldgnu
12905 export TEST_TAR_FORMAT
12906 TAR_OPTIONS=\"-H oldgnu\"
12910 genfile -l 3 -f file1
12911 genfile -l 5 -f file2
12912 genfile -l 3 -f file3
12913 genfile -l 6 -f file4
12914 genfile -l 24 -f file5
12915 genfile -l 13 -f file6
12916 genfile -l 1385 -f file7
12917 genfile -l 30 -f file8
12918 genfile -l 10 -f file9
12919 genfile -l 256000 -f file10
12920 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
12921 tar f archive --delete file10
12924 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
12928 TEST_TAR_FORMAT=oldgnu
12929 export TEST_TAR_FORMAT
12930 TAR_OPTIONS="-H oldgnu"
12934 genfile -l 3 -f file1
12935 genfile -l 5 -f file2
12936 genfile -l 3 -f file3
12937 genfile -l 6 -f file4
12938 genfile -l 24 -f file5
12939 genfile -l 13 -f file6
12940 genfile -l 1385 -f file7
12941 genfile -l 30 -f file8
12942 genfile -l 10 -f file9
12943 genfile -l 256000 -f file10
12944 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
12945 tar f archive --delete file10
12948 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12949 at_status=$? at_failed=false
12951 at_fn_diff_devnull "$at_stderr" || at_failed=:
12952 echo >>"$at_stdout"; $as_echo "file1
12962 $at_diff - "$at_stdout" || at_failed=:
12963 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
12964 $at_failed && at_fn_log_failure
12968 $as_echo "$at_srcdir/delete04.at:26:
12971 TEST_TAR_FORMAT=ustar
12972 export TEST_TAR_FORMAT
12973 TAR_OPTIONS=\"-H ustar\"
12977 genfile -l 3 -f file1
12978 genfile -l 5 -f file2
12979 genfile -l 3 -f file3
12980 genfile -l 6 -f file4
12981 genfile -l 24 -f file5
12982 genfile -l 13 -f file6
12983 genfile -l 1385 -f file7
12984 genfile -l 30 -f file8
12985 genfile -l 10 -f file9
12986 genfile -l 256000 -f file10
12987 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
12988 tar f archive --delete file10
12991 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
12995 TEST_TAR_FORMAT=ustar
12996 export TEST_TAR_FORMAT
12997 TAR_OPTIONS="-H ustar"
13001 genfile -l 3 -f file1
13002 genfile -l 5 -f file2
13003 genfile -l 3 -f file3
13004 genfile -l 6 -f file4
13005 genfile -l 24 -f file5
13006 genfile -l 13 -f file6
13007 genfile -l 1385 -f file7
13008 genfile -l 30 -f file8
13009 genfile -l 10 -f file9
13010 genfile -l 256000 -f file10
13011 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13012 tar f archive --delete file10
13015 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13016 at_status=$? at_failed=false
13018 at_fn_diff_devnull "$at_stderr" || at_failed=:
13019 echo >>"$at_stdout"; $as_echo "file1
13029 $at_diff - "$at_stdout" || at_failed=:
13030 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13031 $at_failed && at_fn_log_failure
13035 $as_echo "$at_srcdir/delete04.at:26:
13038 TEST_TAR_FORMAT=posix
13039 export TEST_TAR_FORMAT
13040 TAR_OPTIONS=\"-H posix\"
13044 genfile -l 3 -f file1
13045 genfile -l 5 -f file2
13046 genfile -l 3 -f file3
13047 genfile -l 6 -f file4
13048 genfile -l 24 -f file5
13049 genfile -l 13 -f file6
13050 genfile -l 1385 -f file7
13051 genfile -l 30 -f file8
13052 genfile -l 10 -f file9
13053 genfile -l 256000 -f file10
13054 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13055 tar f archive --delete file10
13058 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13062 TEST_TAR_FORMAT=posix
13063 export TEST_TAR_FORMAT
13064 TAR_OPTIONS="-H posix"
13068 genfile -l 3 -f file1
13069 genfile -l 5 -f file2
13070 genfile -l 3 -f file3
13071 genfile -l 6 -f file4
13072 genfile -l 24 -f file5
13073 genfile -l 13 -f file6
13074 genfile -l 1385 -f file7
13075 genfile -l 30 -f file8
13076 genfile -l 10 -f file9
13077 genfile -l 256000 -f file10
13078 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13079 tar f archive --delete file10
13082 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13083 at_status=$? at_failed=false
13085 at_fn_diff_devnull "$at_stderr" || at_failed=:
13086 echo >>"$at_stdout"; $as_echo "file1
13096 $at_diff - "$at_stdout" || at_failed=:
13097 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13098 $at_failed && at_fn_log_failure
13102 $as_echo "$at_srcdir/delete04.at:26:
13105 TEST_TAR_FORMAT=gnu
13106 export TEST_TAR_FORMAT
13107 TAR_OPTIONS=\"-H gnu\"
13111 genfile -l 3 -f file1
13112 genfile -l 5 -f file2
13113 genfile -l 3 -f file3
13114 genfile -l 6 -f file4
13115 genfile -l 24 -f file5
13116 genfile -l 13 -f file6
13117 genfile -l 1385 -f file7
13118 genfile -l 30 -f file8
13119 genfile -l 10 -f file9
13120 genfile -l 256000 -f file10
13121 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13122 tar f archive --delete file10
13125 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13129 TEST_TAR_FORMAT=gnu
13130 export TEST_TAR_FORMAT
13131 TAR_OPTIONS="-H gnu"
13135 genfile -l 3 -f file1
13136 genfile -l 5 -f file2
13137 genfile -l 3 -f file3
13138 genfile -l 6 -f file4
13139 genfile -l 24 -f file5
13140 genfile -l 13 -f file6
13141 genfile -l 1385 -f file7
13142 genfile -l 30 -f file8
13143 genfile -l 10 -f file9
13144 genfile -l 256000 -f file10
13145 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13146 tar f archive --delete file10
13149 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13150 at_status=$? at_failed=false
13152 at_fn_diff_devnull "$at_stderr" || at_failed=:
13153 echo >>"$at_stdout"; $as_echo "file1
13163 $at_diff - "$at_stdout" || at_failed=:
13164 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13165 $at_failed && at_fn_log_failure
13172 $at_times_p && times >"$at_times_file"
13173 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13174 read at_status <"$at_status_file"
13177 at_fn_group_banner 54 'delete05.at:27' \
13178 "deleting non-existing member" " " 8
13180 test -f $XFAILFILE && at_xfail=yes
13182 $as_echo "54. $at_setup_line: testing $at_desc ..."
13190 $as_echo "$at_srcdir/delete05.at:30:
13194 export TEST_TAR_FORMAT
13195 TAR_OPTIONS=\"-H v7\"
13199 genfile -l 1024 -f en
13200 genfile -l 1024 -f to
13202 tar cf archive en to
13203 # Make sure we don't use bogus blocking factor.
13204 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13205 tar --file archive --blocking-factor=20 --delete tre
13208 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13213 export TEST_TAR_FORMAT
13214 TAR_OPTIONS="-H v7"
13218 genfile -l 1024 -f en
13219 genfile -l 1024 -f to
13221 tar cf archive en to
13222 # Make sure we don't use bogus blocking factor.
13223 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13224 tar --file archive --blocking-factor=20 --delete tre
13227 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13228 at_status=$? at_failed=false
13230 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13231 tar: Exiting with failure status due to previous errors
13233 $at_diff - "$at_stderr" || at_failed=:
13234 echo >>"$at_stdout"; $as_echo "en
13237 $at_diff - "$at_stdout" || at_failed=:
13238 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13239 $at_failed && at_fn_log_failure
13243 $as_echo "$at_srcdir/delete05.at:30:
13246 TEST_TAR_FORMAT=oldgnu
13247 export TEST_TAR_FORMAT
13248 TAR_OPTIONS=\"-H oldgnu\"
13252 genfile -l 1024 -f en
13253 genfile -l 1024 -f to
13255 tar cf archive en to
13256 # Make sure we don't use bogus blocking factor.
13257 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13258 tar --file archive --blocking-factor=20 --delete tre
13261 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13265 TEST_TAR_FORMAT=oldgnu
13266 export TEST_TAR_FORMAT
13267 TAR_OPTIONS="-H oldgnu"
13271 genfile -l 1024 -f en
13272 genfile -l 1024 -f to
13274 tar cf archive en to
13275 # Make sure we don't use bogus blocking factor.
13276 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13277 tar --file archive --blocking-factor=20 --delete tre
13280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13281 at_status=$? at_failed=false
13283 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13284 tar: Exiting with failure status due to previous errors
13286 $at_diff - "$at_stderr" || at_failed=:
13287 echo >>"$at_stdout"; $as_echo "en
13290 $at_diff - "$at_stdout" || at_failed=:
13291 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13292 $at_failed && at_fn_log_failure
13296 $as_echo "$at_srcdir/delete05.at:30:
13299 TEST_TAR_FORMAT=ustar
13300 export TEST_TAR_FORMAT
13301 TAR_OPTIONS=\"-H ustar\"
13305 genfile -l 1024 -f en
13306 genfile -l 1024 -f to
13308 tar cf archive en to
13309 # Make sure we don't use bogus blocking factor.
13310 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13311 tar --file archive --blocking-factor=20 --delete tre
13314 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13318 TEST_TAR_FORMAT=ustar
13319 export TEST_TAR_FORMAT
13320 TAR_OPTIONS="-H ustar"
13324 genfile -l 1024 -f en
13325 genfile -l 1024 -f to
13327 tar cf archive en to
13328 # Make sure we don't use bogus blocking factor.
13329 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13330 tar --file archive --blocking-factor=20 --delete tre
13333 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13334 at_status=$? at_failed=false
13336 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13337 tar: Exiting with failure status due to previous errors
13339 $at_diff - "$at_stderr" || at_failed=:
13340 echo >>"$at_stdout"; $as_echo "en
13343 $at_diff - "$at_stdout" || at_failed=:
13344 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13345 $at_failed && at_fn_log_failure
13349 $as_echo "$at_srcdir/delete05.at:30:
13352 TEST_TAR_FORMAT=posix
13353 export TEST_TAR_FORMAT
13354 TAR_OPTIONS=\"-H posix\"
13358 genfile -l 1024 -f en
13359 genfile -l 1024 -f to
13361 tar cf archive en to
13362 # Make sure we don't use bogus blocking factor.
13363 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13364 tar --file archive --blocking-factor=20 --delete tre
13367 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13371 TEST_TAR_FORMAT=posix
13372 export TEST_TAR_FORMAT
13373 TAR_OPTIONS="-H posix"
13377 genfile -l 1024 -f en
13378 genfile -l 1024 -f to
13380 tar cf archive en to
13381 # Make sure we don't use bogus blocking factor.
13382 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13383 tar --file archive --blocking-factor=20 --delete tre
13386 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13387 at_status=$? at_failed=false
13389 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13390 tar: Exiting with failure status due to previous errors
13392 $at_diff - "$at_stderr" || at_failed=:
13393 echo >>"$at_stdout"; $as_echo "en
13396 $at_diff - "$at_stdout" || at_failed=:
13397 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13398 $at_failed && at_fn_log_failure
13402 $as_echo "$at_srcdir/delete05.at:30:
13405 TEST_TAR_FORMAT=gnu
13406 export TEST_TAR_FORMAT
13407 TAR_OPTIONS=\"-H gnu\"
13411 genfile -l 1024 -f en
13412 genfile -l 1024 -f to
13414 tar cf archive en to
13415 # Make sure we don't use bogus blocking factor.
13416 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13417 tar --file archive --blocking-factor=20 --delete tre
13420 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13424 TEST_TAR_FORMAT=gnu
13425 export TEST_TAR_FORMAT
13426 TAR_OPTIONS="-H gnu"
13430 genfile -l 1024 -f en
13431 genfile -l 1024 -f to
13433 tar cf archive en to
13434 # Make sure we don't use bogus blocking factor.
13435 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13436 tar --file archive --blocking-factor=20 --delete tre
13439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13440 at_status=$? at_failed=false
13442 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13443 tar: Exiting with failure status due to previous errors
13445 $at_diff - "$at_stderr" || at_failed=:
13446 echo >>"$at_stdout"; $as_echo "en
13449 $at_diff - "$at_stdout" || at_failed=:
13450 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13451 $at_failed && at_fn_log_failure
13458 $at_times_p && times >"$at_times_file"
13459 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13460 read at_status <"$at_status_file"
13463 at_fn_group_banner 55 'extrac01.at:23' \
13464 "extract over an existing directory" " " 9
13466 test -f $XFAILFILE && at_xfail=yes
13468 $as_echo "55. $at_setup_line: testing $at_desc ..."
13476 $as_echo "$at_srcdir/extrac01.at:26:
13480 export TEST_TAR_FORMAT
13481 TAR_OPTIONS=\"-H v7\"
13486 touch directory/file
13487 tar cf archive directory || exit 1
13488 tar xf archive --warning=no-timestamp || exit 1
13490 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13495 export TEST_TAR_FORMAT
13496 TAR_OPTIONS="-H v7"
13501 touch directory/file
13502 tar cf archive directory || exit 1
13503 tar xf archive --warning=no-timestamp || exit 1
13505 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13506 at_status=$? at_failed=false
13508 at_fn_diff_devnull "$at_stderr" || at_failed=:
13509 at_fn_diff_devnull "$at_stdout" || at_failed=:
13510 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13511 $at_failed && at_fn_log_failure
13515 $as_echo "$at_srcdir/extrac01.at:26:
13518 TEST_TAR_FORMAT=oldgnu
13519 export TEST_TAR_FORMAT
13520 TAR_OPTIONS=\"-H oldgnu\"
13525 touch directory/file
13526 tar cf archive directory || exit 1
13527 tar xf archive --warning=no-timestamp || exit 1
13529 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13533 TEST_TAR_FORMAT=oldgnu
13534 export TEST_TAR_FORMAT
13535 TAR_OPTIONS="-H oldgnu"
13540 touch directory/file
13541 tar cf archive directory || exit 1
13542 tar xf archive --warning=no-timestamp || exit 1
13544 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13545 at_status=$? at_failed=false
13547 at_fn_diff_devnull "$at_stderr" || at_failed=:
13548 at_fn_diff_devnull "$at_stdout" || at_failed=:
13549 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13550 $at_failed && at_fn_log_failure
13554 $as_echo "$at_srcdir/extrac01.at:26:
13557 TEST_TAR_FORMAT=ustar
13558 export TEST_TAR_FORMAT
13559 TAR_OPTIONS=\"-H ustar\"
13564 touch directory/file
13565 tar cf archive directory || exit 1
13566 tar xf archive --warning=no-timestamp || exit 1
13568 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13572 TEST_TAR_FORMAT=ustar
13573 export TEST_TAR_FORMAT
13574 TAR_OPTIONS="-H ustar"
13579 touch directory/file
13580 tar cf archive directory || exit 1
13581 tar xf archive --warning=no-timestamp || exit 1
13583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13584 at_status=$? at_failed=false
13586 at_fn_diff_devnull "$at_stderr" || at_failed=:
13587 at_fn_diff_devnull "$at_stdout" || at_failed=:
13588 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13589 $at_failed && at_fn_log_failure
13593 $as_echo "$at_srcdir/extrac01.at:26:
13596 TEST_TAR_FORMAT=posix
13597 export TEST_TAR_FORMAT
13598 TAR_OPTIONS=\"-H posix\"
13603 touch directory/file
13604 tar cf archive directory || exit 1
13605 tar xf archive --warning=no-timestamp || exit 1
13607 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13611 TEST_TAR_FORMAT=posix
13612 export TEST_TAR_FORMAT
13613 TAR_OPTIONS="-H posix"
13618 touch directory/file
13619 tar cf archive directory || exit 1
13620 tar xf archive --warning=no-timestamp || exit 1
13622 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13623 at_status=$? at_failed=false
13625 at_fn_diff_devnull "$at_stderr" || at_failed=:
13626 at_fn_diff_devnull "$at_stdout" || at_failed=:
13627 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13628 $at_failed && at_fn_log_failure
13632 $as_echo "$at_srcdir/extrac01.at:26:
13635 TEST_TAR_FORMAT=gnu
13636 export TEST_TAR_FORMAT
13637 TAR_OPTIONS=\"-H gnu\"
13642 touch directory/file
13643 tar cf archive directory || exit 1
13644 tar xf archive --warning=no-timestamp || exit 1
13646 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13650 TEST_TAR_FORMAT=gnu
13651 export TEST_TAR_FORMAT
13652 TAR_OPTIONS="-H gnu"
13657 touch directory/file
13658 tar cf archive directory || exit 1
13659 tar xf archive --warning=no-timestamp || exit 1
13661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13662 at_status=$? at_failed=false
13664 at_fn_diff_devnull "$at_stderr" || at_failed=:
13665 at_fn_diff_devnull "$at_stdout" || at_failed=:
13666 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13667 $at_failed && at_fn_log_failure
13674 $at_times_p && times >"$at_times_file"
13675 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13676 read at_status <"$at_status_file"
13679 at_fn_group_banner 56 'extrac02.at:23' \
13680 "extracting symlinks over an existing file" " " 9
13682 test -f $XFAILFILE && at_xfail=yes
13684 $as_echo "56. $at_setup_line: testing $at_desc ..."
13689 # FIXME: Skip if symlinks are not supported on the system
13694 $as_echo "$at_srcdir/extrac02.at:28:
13698 export TEST_TAR_FORMAT
13699 TAR_OPTIONS=\"-H v7\"
13704 ln -s file link 2> /dev/null || ln file link
13705 tar cf archive link
13710 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
13715 export TEST_TAR_FORMAT
13716 TAR_OPTIONS="-H v7"
13721 ln -s file link 2> /dev/null || ln file link
13722 tar cf archive link
13727 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13728 at_status=$? at_failed=false
13730 at_fn_diff_devnull "$at_stderr" || at_failed=:
13731 at_fn_diff_devnull "$at_stdout" || at_failed=:
13732 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13733 $at_failed && at_fn_log_failure
13737 $as_echo "$at_srcdir/extrac02.at:28:
13740 TEST_TAR_FORMAT=oldgnu
13741 export TEST_TAR_FORMAT
13742 TAR_OPTIONS=\"-H oldgnu\"
13747 ln -s file link 2> /dev/null || ln file link
13748 tar cf archive link
13753 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
13757 TEST_TAR_FORMAT=oldgnu
13758 export TEST_TAR_FORMAT
13759 TAR_OPTIONS="-H oldgnu"
13764 ln -s file link 2> /dev/null || ln file link
13765 tar cf archive link
13770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13771 at_status=$? at_failed=false
13773 at_fn_diff_devnull "$at_stderr" || at_failed=:
13774 at_fn_diff_devnull "$at_stdout" || at_failed=:
13775 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13776 $at_failed && at_fn_log_failure
13780 $as_echo "$at_srcdir/extrac02.at:28:
13783 TEST_TAR_FORMAT=ustar
13784 export TEST_TAR_FORMAT
13785 TAR_OPTIONS=\"-H ustar\"
13790 ln -s file link 2> /dev/null || ln file link
13791 tar cf archive link
13796 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
13800 TEST_TAR_FORMAT=ustar
13801 export TEST_TAR_FORMAT
13802 TAR_OPTIONS="-H ustar"
13807 ln -s file link 2> /dev/null || ln file link
13808 tar cf archive link
13813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13814 at_status=$? at_failed=false
13816 at_fn_diff_devnull "$at_stderr" || at_failed=:
13817 at_fn_diff_devnull "$at_stdout" || at_failed=:
13818 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13819 $at_failed && at_fn_log_failure
13823 $as_echo "$at_srcdir/extrac02.at:28:
13826 TEST_TAR_FORMAT=posix
13827 export TEST_TAR_FORMAT
13828 TAR_OPTIONS=\"-H posix\"
13833 ln -s file link 2> /dev/null || ln file link
13834 tar cf archive link
13839 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
13843 TEST_TAR_FORMAT=posix
13844 export TEST_TAR_FORMAT
13845 TAR_OPTIONS="-H posix"
13850 ln -s file link 2> /dev/null || ln file link
13851 tar cf archive link
13856 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13857 at_status=$? at_failed=false
13859 at_fn_diff_devnull "$at_stderr" || at_failed=:
13860 at_fn_diff_devnull "$at_stdout" || at_failed=:
13861 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13862 $at_failed && at_fn_log_failure
13866 $as_echo "$at_srcdir/extrac02.at:28:
13869 TEST_TAR_FORMAT=gnu
13870 export TEST_TAR_FORMAT
13871 TAR_OPTIONS=\"-H gnu\"
13876 ln -s file link 2> /dev/null || ln file link
13877 tar cf archive link
13882 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
13886 TEST_TAR_FORMAT=gnu
13887 export TEST_TAR_FORMAT
13888 TAR_OPTIONS="-H gnu"
13893 ln -s file link 2> /dev/null || ln file link
13894 tar cf archive link
13899 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13900 at_status=$? at_failed=false
13902 at_fn_diff_devnull "$at_stderr" || at_failed=:
13903 at_fn_diff_devnull "$at_stdout" || at_failed=:
13904 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13905 $at_failed && at_fn_log_failure
13912 $at_times_p && times >"$at_times_file"
13913 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13914 read at_status <"$at_status_file"
13917 at_fn_group_banner 57 'extrac03.at:23' \
13918 "extraction loops" " " 9
13920 test -f $XFAILFILE && at_xfail=yes
13922 $as_echo "57. $at_setup_line: testing $at_desc ..."
13930 $as_echo "$at_srcdir/extrac03.at:26:
13934 export TEST_TAR_FORMAT
13935 TAR_OPTIONS=\"-H v7\"
13940 tar -cPvf archive directory/../directory
13942 tar -xPvf archive --warning=no-timestamp)"
13943 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
13948 export TEST_TAR_FORMAT
13949 TAR_OPTIONS="-H v7"
13954 tar -cPvf archive directory/../directory
13956 tar -xPvf archive --warning=no-timestamp)
13957 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13958 at_status=$? at_failed=false
13960 at_fn_diff_devnull "$at_stderr" || at_failed=:
13961 echo >>"$at_stdout"; $as_echo "directory/../directory/
13963 directory/../directory/
13965 $at_diff - "$at_stdout" || at_failed=:
13966 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13967 $at_failed && at_fn_log_failure
13971 $as_echo "$at_srcdir/extrac03.at:26:
13974 TEST_TAR_FORMAT=oldgnu
13975 export TEST_TAR_FORMAT
13976 TAR_OPTIONS=\"-H oldgnu\"
13981 tar -cPvf archive directory/../directory
13983 tar -xPvf archive --warning=no-timestamp)"
13984 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
13988 TEST_TAR_FORMAT=oldgnu
13989 export TEST_TAR_FORMAT
13990 TAR_OPTIONS="-H oldgnu"
13995 tar -cPvf archive directory/../directory
13997 tar -xPvf archive --warning=no-timestamp)
13998 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13999 at_status=$? at_failed=false
14001 at_fn_diff_devnull "$at_stderr" || at_failed=:
14002 echo >>"$at_stdout"; $as_echo "directory/../directory/
14004 directory/../directory/
14006 $at_diff - "$at_stdout" || at_failed=:
14007 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14008 $at_failed && at_fn_log_failure
14012 $as_echo "$at_srcdir/extrac03.at:26:
14015 TEST_TAR_FORMAT=ustar
14016 export TEST_TAR_FORMAT
14017 TAR_OPTIONS=\"-H ustar\"
14022 tar -cPvf archive directory/../directory
14024 tar -xPvf archive --warning=no-timestamp)"
14025 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14029 TEST_TAR_FORMAT=ustar
14030 export TEST_TAR_FORMAT
14031 TAR_OPTIONS="-H ustar"
14036 tar -cPvf archive directory/../directory
14038 tar -xPvf archive --warning=no-timestamp)
14039 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14040 at_status=$? at_failed=false
14042 at_fn_diff_devnull "$at_stderr" || at_failed=:
14043 echo >>"$at_stdout"; $as_echo "directory/../directory/
14045 directory/../directory/
14047 $at_diff - "$at_stdout" || at_failed=:
14048 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14049 $at_failed && at_fn_log_failure
14053 $as_echo "$at_srcdir/extrac03.at:26:
14056 TEST_TAR_FORMAT=posix
14057 export TEST_TAR_FORMAT
14058 TAR_OPTIONS=\"-H posix\"
14063 tar -cPvf archive directory/../directory
14065 tar -xPvf archive --warning=no-timestamp)"
14066 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14070 TEST_TAR_FORMAT=posix
14071 export TEST_TAR_FORMAT
14072 TAR_OPTIONS="-H posix"
14077 tar -cPvf archive directory/../directory
14079 tar -xPvf archive --warning=no-timestamp)
14080 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14081 at_status=$? at_failed=false
14083 at_fn_diff_devnull "$at_stderr" || at_failed=:
14084 echo >>"$at_stdout"; $as_echo "directory/../directory/
14086 directory/../directory/
14088 $at_diff - "$at_stdout" || at_failed=:
14089 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14090 $at_failed && at_fn_log_failure
14094 $as_echo "$at_srcdir/extrac03.at:26:
14097 TEST_TAR_FORMAT=gnu
14098 export TEST_TAR_FORMAT
14099 TAR_OPTIONS=\"-H gnu\"
14104 tar -cPvf archive directory/../directory
14106 tar -xPvf archive --warning=no-timestamp)"
14107 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14111 TEST_TAR_FORMAT=gnu
14112 export TEST_TAR_FORMAT
14113 TAR_OPTIONS="-H gnu"
14118 tar -cPvf archive directory/../directory
14120 tar -xPvf archive --warning=no-timestamp)
14121 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14122 at_status=$? at_failed=false
14124 at_fn_diff_devnull "$at_stderr" || at_failed=:
14125 echo >>"$at_stdout"; $as_echo "directory/../directory/
14127 directory/../directory/
14129 $at_diff - "$at_stdout" || at_failed=:
14130 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14131 $at_failed && at_fn_log_failure
14138 $at_times_p && times >"$at_times_file"
14139 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14140 read at_status <"$at_status_file"
14143 at_fn_group_banner 58 'extrac04.at:23' \
14144 "extract + fnmatch" " " 9
14146 test -f $XFAILFILE && at_xfail=yes
14148 $as_echo "58. $at_setup_line: testing $at_desc ..."
14156 $as_echo "$at_srcdir/extrac04.at:26:
14160 export TEST_TAR_FORMAT
14161 TAR_OPTIONS=\"-H v7\"
14166 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14170 mkdir directory/subdirectory
14171 touch directory/file1
14172 touch directory/file2
14173 touch directory/subdirectory/file1
14174 touch directory/subdirectory/file2
14175 tar -cf archive ./file1 directory
14177 --exclude='./*1' \\
14178 --exclude='d*/*1' \\
14179 --exclude='d*/s*/*2' | sort
14181 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14186 export TEST_TAR_FORMAT
14187 TAR_OPTIONS="-H v7"
14192 test -z "`sort < /dev/null 2>&1`" || exit 77
14196 mkdir directory/subdirectory
14197 touch directory/file1
14198 touch directory/file2
14199 touch directory/subdirectory/file1
14200 touch directory/subdirectory/file2
14201 tar -cf archive ./file1 directory
14204 --exclude='d*/*1' \
14205 --exclude='d*/s*/*2' | sort
14207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14208 at_status=$? at_failed=false
14210 at_fn_diff_devnull "$at_stderr" || at_failed=:
14211 echo >>"$at_stdout"; $as_echo "directory/
14213 directory/subdirectory/
14215 $at_diff - "$at_stdout" || at_failed=:
14216 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14217 $at_failed && at_fn_log_failure
14221 $as_echo "$at_srcdir/extrac04.at:26:
14224 TEST_TAR_FORMAT=oldgnu
14225 export TEST_TAR_FORMAT
14226 TAR_OPTIONS=\"-H oldgnu\"
14231 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14235 mkdir directory/subdirectory
14236 touch directory/file1
14237 touch directory/file2
14238 touch directory/subdirectory/file1
14239 touch directory/subdirectory/file2
14240 tar -cf archive ./file1 directory
14242 --exclude='./*1' \\
14243 --exclude='d*/*1' \\
14244 --exclude='d*/s*/*2' | sort
14246 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14250 TEST_TAR_FORMAT=oldgnu
14251 export TEST_TAR_FORMAT
14252 TAR_OPTIONS="-H oldgnu"
14257 test -z "`sort < /dev/null 2>&1`" || exit 77
14261 mkdir directory/subdirectory
14262 touch directory/file1
14263 touch directory/file2
14264 touch directory/subdirectory/file1
14265 touch directory/subdirectory/file2
14266 tar -cf archive ./file1 directory
14269 --exclude='d*/*1' \
14270 --exclude='d*/s*/*2' | sort
14272 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14273 at_status=$? at_failed=false
14275 at_fn_diff_devnull "$at_stderr" || at_failed=:
14276 echo >>"$at_stdout"; $as_echo "directory/
14278 directory/subdirectory/
14280 $at_diff - "$at_stdout" || at_failed=:
14281 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14282 $at_failed && at_fn_log_failure
14286 $as_echo "$at_srcdir/extrac04.at:26:
14289 TEST_TAR_FORMAT=ustar
14290 export TEST_TAR_FORMAT
14291 TAR_OPTIONS=\"-H ustar\"
14296 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14300 mkdir directory/subdirectory
14301 touch directory/file1
14302 touch directory/file2
14303 touch directory/subdirectory/file1
14304 touch directory/subdirectory/file2
14305 tar -cf archive ./file1 directory
14307 --exclude='./*1' \\
14308 --exclude='d*/*1' \\
14309 --exclude='d*/s*/*2' | sort
14311 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14315 TEST_TAR_FORMAT=ustar
14316 export TEST_TAR_FORMAT
14317 TAR_OPTIONS="-H ustar"
14322 test -z "`sort < /dev/null 2>&1`" || exit 77
14326 mkdir directory/subdirectory
14327 touch directory/file1
14328 touch directory/file2
14329 touch directory/subdirectory/file1
14330 touch directory/subdirectory/file2
14331 tar -cf archive ./file1 directory
14334 --exclude='d*/*1' \
14335 --exclude='d*/s*/*2' | sort
14337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14338 at_status=$? at_failed=false
14340 at_fn_diff_devnull "$at_stderr" || at_failed=:
14341 echo >>"$at_stdout"; $as_echo "directory/
14343 directory/subdirectory/
14345 $at_diff - "$at_stdout" || at_failed=:
14346 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14347 $at_failed && at_fn_log_failure
14351 $as_echo "$at_srcdir/extrac04.at:26:
14354 TEST_TAR_FORMAT=posix
14355 export TEST_TAR_FORMAT
14356 TAR_OPTIONS=\"-H posix\"
14361 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14365 mkdir directory/subdirectory
14366 touch directory/file1
14367 touch directory/file2
14368 touch directory/subdirectory/file1
14369 touch directory/subdirectory/file2
14370 tar -cf archive ./file1 directory
14372 --exclude='./*1' \\
14373 --exclude='d*/*1' \\
14374 --exclude='d*/s*/*2' | sort
14376 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14380 TEST_TAR_FORMAT=posix
14381 export TEST_TAR_FORMAT
14382 TAR_OPTIONS="-H posix"
14387 test -z "`sort < /dev/null 2>&1`" || exit 77
14391 mkdir directory/subdirectory
14392 touch directory/file1
14393 touch directory/file2
14394 touch directory/subdirectory/file1
14395 touch directory/subdirectory/file2
14396 tar -cf archive ./file1 directory
14399 --exclude='d*/*1' \
14400 --exclude='d*/s*/*2' | sort
14402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14403 at_status=$? at_failed=false
14405 at_fn_diff_devnull "$at_stderr" || at_failed=:
14406 echo >>"$at_stdout"; $as_echo "directory/
14408 directory/subdirectory/
14410 $at_diff - "$at_stdout" || at_failed=:
14411 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14412 $at_failed && at_fn_log_failure
14416 $as_echo "$at_srcdir/extrac04.at:26:
14419 TEST_TAR_FORMAT=gnu
14420 export TEST_TAR_FORMAT
14421 TAR_OPTIONS=\"-H gnu\"
14426 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14430 mkdir directory/subdirectory
14431 touch directory/file1
14432 touch directory/file2
14433 touch directory/subdirectory/file1
14434 touch directory/subdirectory/file2
14435 tar -cf archive ./file1 directory
14437 --exclude='./*1' \\
14438 --exclude='d*/*1' \\
14439 --exclude='d*/s*/*2' | sort
14441 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14445 TEST_TAR_FORMAT=gnu
14446 export TEST_TAR_FORMAT
14447 TAR_OPTIONS="-H gnu"
14452 test -z "`sort < /dev/null 2>&1`" || exit 77
14456 mkdir directory/subdirectory
14457 touch directory/file1
14458 touch directory/file2
14459 touch directory/subdirectory/file1
14460 touch directory/subdirectory/file2
14461 tar -cf archive ./file1 directory
14464 --exclude='d*/*1' \
14465 --exclude='d*/s*/*2' | sort
14467 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14468 at_status=$? at_failed=false
14470 at_fn_diff_devnull "$at_stderr" || at_failed=:
14471 echo >>"$at_stdout"; $as_echo "directory/
14473 directory/subdirectory/
14475 $at_diff - "$at_stdout" || at_failed=:
14476 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14477 $at_failed && at_fn_log_failure
14484 $at_times_p && times >"$at_times_file"
14485 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14486 read at_status <"$at_status_file"
14489 at_fn_group_banner 59 'extrac05.at:30' \
14490 "extracting selected members from pax" " " 9
14492 test -f $XFAILFILE && at_xfail=yes
14494 $as_echo "59. $at_setup_line: testing $at_desc ..."
14499 cat >list <<'_ATEOF'
14508 $as_echo "$at_srcdir/extrac05.at:38:
14511 TEST_TAR_FORMAT=posix
14512 export TEST_TAR_FORMAT
14513 TAR_OPTIONS=\"-H posix\"
14517 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
14518 genfile --length 118 --file jeden
14519 genfile --length 223 --file dwa
14520 genfile --length 517 --file trzy
14521 genfile --length 110 --file cztery
14523 tar cf archive jeden dwa trzy cztery || exit 1
14528 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
14532 at_fn_check_prepare_notrace 'an embedded newline' "extrac05.at:38"
14536 TEST_TAR_FORMAT=posix
14537 export TEST_TAR_FORMAT
14538 TAR_OPTIONS="-H posix"
14542 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
14543 genfile --length 118 --file jeden
14544 genfile --length 223 --file dwa
14545 genfile --length 517 --file trzy
14546 genfile --length 110 --file cztery
14548 tar cf archive jeden dwa trzy cztery || exit 1
14553 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
14557 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14558 at_status=$? at_failed=false
14560 at_fn_diff_devnull "$at_stderr" || at_failed=:
14561 echo >>"$at_stdout"; $as_echo "jeden
14564 $at_diff - "$at_stdout" || at_failed=:
14565 at_fn_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
14566 $at_failed && at_fn_log_failure
14573 $at_times_p && times >"$at_times_file"
14574 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14575 read at_status <"$at_status_file"
14578 at_fn_group_banner 60 'extrac06.at:34' \
14579 "mode of extracted directories" " " 9
14581 test -f $XFAILFILE && at_xfail=yes
14583 $as_echo "60. $at_setup_line: testing $at_desc ..."
14591 $as_echo "$at_srcdir/extrac06.at:37:
14595 export TEST_TAR_FORMAT
14596 TAR_OPTIONS=\"-H v7\"
14604 # Make sure user's umask is honored, even if we are superuser
14605 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14607 # Create a directory
14609 chmod 777 directory
14610 genfile --stat=mode:777 directory
14613 tar cf arc directory
14615 # Change its permissions ...
14616 chmod 755 directory
14617 genfile --stat=mode:777 directory
14619 # ... and attempt to restore it twice
14620 tar xf arc directory --warning=no-timestamp
14621 genfile --stat=mode:777 directory
14623 tar xf arc directory --warning=no-timestamp
14624 genfile --stat=mode:777 directory
14626 # After both restores, the directory mode should be 755
14628 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
14633 export TEST_TAR_FORMAT
14634 TAR_OPTIONS="-H v7"
14642 # Make sure user's umask is honored, even if we are superuser
14643 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14645 # Create a directory
14647 chmod 777 directory
14648 genfile --stat=mode:777 directory
14651 tar cf arc directory
14653 # Change its permissions ...
14654 chmod 755 directory
14655 genfile --stat=mode:777 directory
14657 # ... and attempt to restore it twice
14658 tar xf arc directory --warning=no-timestamp
14659 genfile --stat=mode:777 directory
14661 tar xf arc directory --warning=no-timestamp
14662 genfile --stat=mode:777 directory
14664 # After both restores, the directory mode should be 755
14666 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14667 at_status=$? at_failed=false
14669 at_fn_diff_devnull "$at_stderr" || at_failed=:
14670 echo >>"$at_stdout"; $as_echo "777
14675 $at_diff - "$at_stdout" || at_failed=:
14676 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
14677 $at_failed && at_fn_log_failure
14681 $as_echo "$at_srcdir/extrac06.at:37:
14684 TEST_TAR_FORMAT=oldgnu
14685 export TEST_TAR_FORMAT
14686 TAR_OPTIONS=\"-H oldgnu\"
14694 # Make sure user's umask is honored, even if we are superuser
14695 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14697 # Create a directory
14699 chmod 777 directory
14700 genfile --stat=mode:777 directory
14703 tar cf arc directory
14705 # Change its permissions ...
14706 chmod 755 directory
14707 genfile --stat=mode:777 directory
14709 # ... and attempt to restore it twice
14710 tar xf arc directory --warning=no-timestamp
14711 genfile --stat=mode:777 directory
14713 tar xf arc directory --warning=no-timestamp
14714 genfile --stat=mode:777 directory
14716 # After both restores, the directory mode should be 755
14718 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
14722 TEST_TAR_FORMAT=oldgnu
14723 export TEST_TAR_FORMAT
14724 TAR_OPTIONS="-H oldgnu"
14732 # Make sure user's umask is honored, even if we are superuser
14733 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14735 # Create a directory
14737 chmod 777 directory
14738 genfile --stat=mode:777 directory
14741 tar cf arc directory
14743 # Change its permissions ...
14744 chmod 755 directory
14745 genfile --stat=mode:777 directory
14747 # ... and attempt to restore it twice
14748 tar xf arc directory --warning=no-timestamp
14749 genfile --stat=mode:777 directory
14751 tar xf arc directory --warning=no-timestamp
14752 genfile --stat=mode:777 directory
14754 # After both restores, the directory mode should be 755
14756 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14757 at_status=$? at_failed=false
14759 at_fn_diff_devnull "$at_stderr" || at_failed=:
14760 echo >>"$at_stdout"; $as_echo "777
14765 $at_diff - "$at_stdout" || at_failed=:
14766 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
14767 $at_failed && at_fn_log_failure
14771 $as_echo "$at_srcdir/extrac06.at:37:
14774 TEST_TAR_FORMAT=ustar
14775 export TEST_TAR_FORMAT
14776 TAR_OPTIONS=\"-H ustar\"
14784 # Make sure user's umask is honored, even if we are superuser
14785 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14787 # Create a directory
14789 chmod 777 directory
14790 genfile --stat=mode:777 directory
14793 tar cf arc directory
14795 # Change its permissions ...
14796 chmod 755 directory
14797 genfile --stat=mode:777 directory
14799 # ... and attempt to restore it twice
14800 tar xf arc directory --warning=no-timestamp
14801 genfile --stat=mode:777 directory
14803 tar xf arc directory --warning=no-timestamp
14804 genfile --stat=mode:777 directory
14806 # After both restores, the directory mode should be 755
14808 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
14812 TEST_TAR_FORMAT=ustar
14813 export TEST_TAR_FORMAT
14814 TAR_OPTIONS="-H ustar"
14822 # Make sure user's umask is honored, even if we are superuser
14823 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14825 # Create a directory
14827 chmod 777 directory
14828 genfile --stat=mode:777 directory
14831 tar cf arc directory
14833 # Change its permissions ...
14834 chmod 755 directory
14835 genfile --stat=mode:777 directory
14837 # ... and attempt to restore it twice
14838 tar xf arc directory --warning=no-timestamp
14839 genfile --stat=mode:777 directory
14841 tar xf arc directory --warning=no-timestamp
14842 genfile --stat=mode:777 directory
14844 # After both restores, the directory mode should be 755
14846 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14847 at_status=$? at_failed=false
14849 at_fn_diff_devnull "$at_stderr" || at_failed=:
14850 echo >>"$at_stdout"; $as_echo "777
14855 $at_diff - "$at_stdout" || at_failed=:
14856 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
14857 $at_failed && at_fn_log_failure
14861 $as_echo "$at_srcdir/extrac06.at:37:
14864 TEST_TAR_FORMAT=posix
14865 export TEST_TAR_FORMAT
14866 TAR_OPTIONS=\"-H posix\"
14874 # Make sure user's umask is honored, even if we are superuser
14875 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14877 # Create a directory
14879 chmod 777 directory
14880 genfile --stat=mode:777 directory
14883 tar cf arc directory
14885 # Change its permissions ...
14886 chmod 755 directory
14887 genfile --stat=mode:777 directory
14889 # ... and attempt to restore it twice
14890 tar xf arc directory --warning=no-timestamp
14891 genfile --stat=mode:777 directory
14893 tar xf arc directory --warning=no-timestamp
14894 genfile --stat=mode:777 directory
14896 # After both restores, the directory mode should be 755
14898 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
14902 TEST_TAR_FORMAT=posix
14903 export TEST_TAR_FORMAT
14904 TAR_OPTIONS="-H posix"
14912 # Make sure user's umask is honored, even if we are superuser
14913 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14915 # Create a directory
14917 chmod 777 directory
14918 genfile --stat=mode:777 directory
14921 tar cf arc directory
14923 # Change its permissions ...
14924 chmod 755 directory
14925 genfile --stat=mode:777 directory
14927 # ... and attempt to restore it twice
14928 tar xf arc directory --warning=no-timestamp
14929 genfile --stat=mode:777 directory
14931 tar xf arc directory --warning=no-timestamp
14932 genfile --stat=mode:777 directory
14934 # After both restores, the directory mode should be 755
14936 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14937 at_status=$? at_failed=false
14939 at_fn_diff_devnull "$at_stderr" || at_failed=:
14940 echo >>"$at_stdout"; $as_echo "777
14945 $at_diff - "$at_stdout" || at_failed=:
14946 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
14947 $at_failed && at_fn_log_failure
14951 $as_echo "$at_srcdir/extrac06.at:37:
14954 TEST_TAR_FORMAT=gnu
14955 export TEST_TAR_FORMAT
14956 TAR_OPTIONS=\"-H gnu\"
14964 # Make sure user's umask is honored, even if we are superuser
14965 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14967 # Create a directory
14969 chmod 777 directory
14970 genfile --stat=mode:777 directory
14973 tar cf arc directory
14975 # Change its permissions ...
14976 chmod 755 directory
14977 genfile --stat=mode:777 directory
14979 # ... and attempt to restore it twice
14980 tar xf arc directory --warning=no-timestamp
14981 genfile --stat=mode:777 directory
14983 tar xf arc directory --warning=no-timestamp
14984 genfile --stat=mode:777 directory
14986 # After both restores, the directory mode should be 755
14988 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
14992 TEST_TAR_FORMAT=gnu
14993 export TEST_TAR_FORMAT
14994 TAR_OPTIONS="-H gnu"
15002 # Make sure user's umask is honored, even if we are superuser
15003 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15005 # Create a directory
15007 chmod 777 directory
15008 genfile --stat=mode:777 directory
15011 tar cf arc directory
15013 # Change its permissions ...
15014 chmod 755 directory
15015 genfile --stat=mode:777 directory
15017 # ... and attempt to restore it twice
15018 tar xf arc directory --warning=no-timestamp
15019 genfile --stat=mode:777 directory
15021 tar xf arc directory --warning=no-timestamp
15022 genfile --stat=mode:777 directory
15024 # After both restores, the directory mode should be 755
15026 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15027 at_status=$? at_failed=false
15029 at_fn_diff_devnull "$at_stderr" || at_failed=:
15030 echo >>"$at_stdout"; $as_echo "777
15035 $at_diff - "$at_stdout" || at_failed=:
15036 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15037 $at_failed && at_fn_log_failure
15044 $at_times_p && times >"$at_times_file"
15045 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15046 read at_status <"$at_status_file"
15049 at_fn_group_banner 61 'extrac07.at:27' \
15050 "extracting symlinks to a read-only dir" " " 9
15052 test -f $XFAILFILE && at_xfail=yes
15054 $as_echo "61. $at_setup_line: testing $at_desc ..."
15062 $as_echo "$at_srcdir/extrac07.at:30:
15065 TEST_TAR_FORMAT=ustar
15066 export TEST_TAR_FORMAT
15067 TAR_OPTIONS=\"-H ustar\"
15072 echo \"test\" > \$\$
15074 cat \$\$ > /dev/null 2>&1
15077 test \$result -eq 0 && exit 77
15080 echo Prepare the directory
15088 echo Create the archive
15089 tar cf archive dir || exit 1
15095 tar -C out -xvf archive
15097 at_fn_check_prepare_notrace 'an embedded newline' "extrac07.at:30"
15101 TEST_TAR_FORMAT=ustar
15102 export TEST_TAR_FORMAT
15103 TAR_OPTIONS="-H ustar"
15110 cat $$ > /dev/null 2>&1
15113 test $result -eq 0 && exit 77
15116 echo Prepare the directory
15124 echo Create the archive
15125 tar cf archive dir || exit 1
15131 tar -C out -xvf archive
15133 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15134 at_status=$? at_failed=false
15136 at_fn_diff_devnull "$at_stderr" || at_failed=:
15137 echo >>"$at_stdout"; $as_echo "Prepare the directory
15143 $at_diff - "$at_stdout" || at_failed=:
15144 at_fn_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
15145 $at_failed && at_fn_log_failure
15149 # Testing one format is enough
15152 $at_times_p && times >"$at_times_file"
15153 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15154 read at_status <"$at_status_file"
15157 at_fn_group_banner 62 'extrac08.at:33' \
15158 "restoring mode on existing directory" " " 9
15160 test -f $XFAILFILE && at_xfail=yes
15162 $as_echo "62. $at_setup_line: testing $at_desc ..."
15170 $as_echo "$at_srcdir/extrac08.at:36:
15174 export TEST_TAR_FORMAT
15175 TAR_OPTIONS=\"-H v7\"
15182 echo bla > dir/file
15183 tar cf test.tar dir
15185 tar xfv test.tar --warning=no-timestamp
15186 genfile --stat=mode.777 dir
15188 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15193 export TEST_TAR_FORMAT
15194 TAR_OPTIONS="-H v7"
15201 echo bla > dir/file
15202 tar cf test.tar dir
15204 tar xfv test.tar --warning=no-timestamp
15205 genfile --stat=mode.777 dir
15207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15208 at_status=$? at_failed=false
15210 at_fn_diff_devnull "$at_stderr" || at_failed=:
15211 echo >>"$at_stdout"; $as_echo "dir/
15215 $at_diff - "$at_stdout" || at_failed=:
15216 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15217 $at_failed && at_fn_log_failure
15221 $as_echo "$at_srcdir/extrac08.at:36:
15224 TEST_TAR_FORMAT=oldgnu
15225 export TEST_TAR_FORMAT
15226 TAR_OPTIONS=\"-H oldgnu\"
15233 echo bla > dir/file
15234 tar cf test.tar dir
15236 tar xfv test.tar --warning=no-timestamp
15237 genfile --stat=mode.777 dir
15239 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15243 TEST_TAR_FORMAT=oldgnu
15244 export TEST_TAR_FORMAT
15245 TAR_OPTIONS="-H oldgnu"
15252 echo bla > dir/file
15253 tar cf test.tar dir
15255 tar xfv test.tar --warning=no-timestamp
15256 genfile --stat=mode.777 dir
15258 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15259 at_status=$? at_failed=false
15261 at_fn_diff_devnull "$at_stderr" || at_failed=:
15262 echo >>"$at_stdout"; $as_echo "dir/
15266 $at_diff - "$at_stdout" || at_failed=:
15267 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15268 $at_failed && at_fn_log_failure
15272 $as_echo "$at_srcdir/extrac08.at:36:
15275 TEST_TAR_FORMAT=ustar
15276 export TEST_TAR_FORMAT
15277 TAR_OPTIONS=\"-H ustar\"
15284 echo bla > dir/file
15285 tar cf test.tar dir
15287 tar xfv test.tar --warning=no-timestamp
15288 genfile --stat=mode.777 dir
15290 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15294 TEST_TAR_FORMAT=ustar
15295 export TEST_TAR_FORMAT
15296 TAR_OPTIONS="-H ustar"
15303 echo bla > dir/file
15304 tar cf test.tar dir
15306 tar xfv test.tar --warning=no-timestamp
15307 genfile --stat=mode.777 dir
15309 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15310 at_status=$? at_failed=false
15312 at_fn_diff_devnull "$at_stderr" || at_failed=:
15313 echo >>"$at_stdout"; $as_echo "dir/
15317 $at_diff - "$at_stdout" || at_failed=:
15318 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15319 $at_failed && at_fn_log_failure
15323 $as_echo "$at_srcdir/extrac08.at:36:
15326 TEST_TAR_FORMAT=posix
15327 export TEST_TAR_FORMAT
15328 TAR_OPTIONS=\"-H posix\"
15335 echo bla > dir/file
15336 tar cf test.tar dir
15338 tar xfv test.tar --warning=no-timestamp
15339 genfile --stat=mode.777 dir
15341 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15345 TEST_TAR_FORMAT=posix
15346 export TEST_TAR_FORMAT
15347 TAR_OPTIONS="-H posix"
15354 echo bla > dir/file
15355 tar cf test.tar dir
15357 tar xfv test.tar --warning=no-timestamp
15358 genfile --stat=mode.777 dir
15360 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15361 at_status=$? at_failed=false
15363 at_fn_diff_devnull "$at_stderr" || at_failed=:
15364 echo >>"$at_stdout"; $as_echo "dir/
15368 $at_diff - "$at_stdout" || at_failed=:
15369 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15370 $at_failed && at_fn_log_failure
15374 $as_echo "$at_srcdir/extrac08.at:36:
15377 TEST_TAR_FORMAT=gnu
15378 export TEST_TAR_FORMAT
15379 TAR_OPTIONS=\"-H gnu\"
15386 echo bla > dir/file
15387 tar cf test.tar dir
15389 tar xfv test.tar --warning=no-timestamp
15390 genfile --stat=mode.777 dir
15392 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15396 TEST_TAR_FORMAT=gnu
15397 export TEST_TAR_FORMAT
15398 TAR_OPTIONS="-H gnu"
15405 echo bla > dir/file
15406 tar cf test.tar dir
15408 tar xfv test.tar --warning=no-timestamp
15409 genfile --stat=mode.777 dir
15411 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15412 at_status=$? at_failed=false
15414 at_fn_diff_devnull "$at_stderr" || at_failed=:
15415 echo >>"$at_stdout"; $as_echo "dir/
15419 $at_diff - "$at_stdout" || at_failed=:
15420 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15421 $at_failed && at_fn_log_failure
15428 $at_times_p && times >"$at_times_file"
15429 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15430 read at_status <"$at_status_file"
15433 at_fn_group_banner 63 'extrac09.at:24' \
15434 "no need to save dir with unreadable . and .." " " 9
15436 test -f $XFAILFILE && at_xfail=yes
15438 $as_echo "63. $at_setup_line: testing $at_desc ..."
15446 $as_echo "$at_srcdir/extrac09.at:27:
15449 TEST_TAR_FORMAT=gnu
15450 export TEST_TAR_FORMAT
15451 TAR_OPTIONS=\"-H gnu\"
15456 echo \"test\" > \$\$
15458 cat \$\$ > /dev/null 2>&1
15461 test \$result -eq 0 && exit 77
15466 mkdir dir/sub/extract
15467 genfile --file dir/sub/f
15470 tar -cf archive.tar f
15473 tar -xvf archive.tar -C extract f
15476 cmp f extract/f || status=\$?
15479 at_fn_check_prepare_notrace 'an embedded newline' "extrac09.at:27"
15483 TEST_TAR_FORMAT=gnu
15484 export TEST_TAR_FORMAT
15485 TAR_OPTIONS="-H gnu"
15492 cat $$ > /dev/null 2>&1
15495 test $result -eq 0 && exit 77
15500 mkdir dir/sub/extract
15501 genfile --file dir/sub/f
15504 tar -cf archive.tar f
15507 tar -xvf archive.tar -C extract f
15510 cmp f extract/f || status=$?
15513 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15514 at_status=$? at_failed=false
15516 at_fn_diff_devnull "$at_stderr" || at_failed=:
15517 echo >>"$at_stdout"; $as_echo "f
15519 $at_diff - "$at_stdout" || at_failed=:
15520 at_fn_check_status 0 $at_status "$at_srcdir/extrac09.at:27"
15521 $at_failed && at_fn_log_failure
15528 $at_times_p && times >"$at_times_file"
15529 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15530 read at_status <"$at_status_file"
15533 at_fn_group_banner 64 'extrac10.at:29' \
15534 "-C and delayed setting of metadata" " " 9
15536 test -f $XFAILFILE && at_xfail=yes
15538 $as_echo "64. $at_setup_line: testing $at_desc ..."
15546 $as_echo "$at_srcdir/extrac10.at:32:
15549 TEST_TAR_FORMAT=gnu
15550 export TEST_TAR_FORMAT
15551 TAR_OPTIONS=\"-H gnu\"
15559 tar -cf archive.tar d e &&
15560 tar -xf archive.tar -C x d -C y e &&
15564 at_fn_check_prepare_notrace 'an embedded newline' "extrac10.at:32"
15568 TEST_TAR_FORMAT=gnu
15569 export TEST_TAR_FORMAT
15570 TAR_OPTIONS="-H gnu"
15578 tar -cf archive.tar d e &&
15579 tar -xf archive.tar -C x d -C y e &&
15583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15584 at_status=$? at_failed=false
15586 at_fn_diff_devnull "$at_stderr" || at_failed=:
15587 at_fn_diff_devnull "$at_stdout" || at_failed=:
15588 at_fn_check_status 0 $at_status "$at_srcdir/extrac10.at:32"
15589 $at_failed && at_fn_log_failure
15596 $at_times_p && times >"$at_times_file"
15597 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15598 read at_status <"$at_status_file"
15601 at_fn_group_banner 65 'extrac11.at:25' \
15602 "scarce file descriptors" " " 9
15604 test -f $XFAILFILE && at_xfail=yes
15606 $as_echo "65. $at_setup_line: testing $at_desc ..."
15614 $as_echo "$at_srcdir/extrac11.at:28:
15617 TEST_TAR_FORMAT=gnu
15618 export TEST_TAR_FORMAT
15619 TAR_OPTIONS=\"-H gnu\"
15633 a/b/c/d/e/f/g/h/i/j
15634 a/b/c/d/e/f/g/h/i/j/k
15637 mkdir \$dirs dest1 dest2 dest3 || exit
15638 for dir in \$dirs; do
15639 for file in X Y Z; do
15640 echo \$file >\$dir/\$file || exit
15641 files=\"\$files \$file\"
15645 # Check that \"ulimit\" itself works. Close file descriptors before
15646 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
15647 # where they squirrel away dups of file descriptors into FD 10 and up
15648 # before closing the originals.
15649 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15651 tar -cf archive1.tar a &&
15652 tar -xf archive1.tar -C dest1 a
15655 ) >/dev/null 2>&1 ||
15658 # Another test that \"ulimit\" itself works:
15659 # tar should fail when completely starved of file descriptors.
15660 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15662 tar -cf archive2.tar a &&
15663 tar -xf archive2.tar -C dest2 a
15666 ) >/dev/null 2>&1 &&
15669 # Tar should work when there are few, but enough, file descriptors.
15670 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15672 tar -cf archive3.tar a &&
15673 tar -xf archive3.tar -C dest3 a
15675 diff -r a dest3/a >/dev/null 2>&1
15676 ) || { diff -r a dest3/a; exit 1; }
15678 at_fn_check_prepare_notrace 'an embedded newline' "extrac11.at:28"
15682 TEST_TAR_FORMAT=gnu
15683 export TEST_TAR_FORMAT
15684 TAR_OPTIONS="-H gnu"
15698 a/b/c/d/e/f/g/h/i/j
15699 a/b/c/d/e/f/g/h/i/j/k
15702 mkdir $dirs dest1 dest2 dest3 || exit
15703 for dir in $dirs; do
15704 for file in X Y Z; do
15705 echo $file >$dir/$file || exit
15706 files="$files $file"
15710 # Check that "ulimit" itself works. Close file descriptors before
15711 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15712 # where they squirrel away dups of file descriptors into FD 10 and up
15713 # before closing the originals.
15714 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15716 tar -cf archive1.tar a &&
15717 tar -xf archive1.tar -C dest1 a
15720 ) >/dev/null 2>&1 ||
15723 # Another test that "ulimit" itself works:
15724 # tar should fail when completely starved of file descriptors.
15725 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15727 tar -cf archive2.tar a &&
15728 tar -xf archive2.tar -C dest2 a
15731 ) >/dev/null 2>&1 &&
15734 # Tar should work when there are few, but enough, file descriptors.
15735 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15737 tar -cf archive3.tar a &&
15738 tar -xf archive3.tar -C dest3 a
15740 diff -r a dest3/a >/dev/null 2>&1
15741 ) || { diff -r a dest3/a; exit 1; }
15743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15744 at_status=$? at_failed=false
15746 at_fn_diff_devnull "$at_stderr" || at_failed=:
15747 at_fn_diff_devnull "$at_stdout" || at_failed=:
15748 at_fn_check_status 0 $at_status "$at_srcdir/extrac11.at:28"
15749 $at_failed && at_fn_log_failure
15756 $at_times_p && times >"$at_times_file"
15757 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15758 read at_status <"$at_status_file"
15761 at_fn_group_banner 66 'extrac12.at:25' \
15762 "extract dot permissions" " " 9
15764 test -f $XFAILFILE && at_xfail=yes
15766 $as_echo "66. $at_setup_line: testing $at_desc ..."
15774 $as_echo "$at_srcdir/extrac12.at:28:
15777 TEST_TAR_FORMAT=gnu
15778 export TEST_TAR_FORMAT
15779 TAR_OPTIONS=\"-H gnu\"
15784 echo file1 >src/file1
15785 echo file2 >src/file2
15788 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15789 tar -xf archive.tar -C dst &&
15790 cmp src/file1 dst/file1 &&
15791 cmp src/file2 dst/file2
15793 at_fn_check_prepare_notrace 'an embedded newline' "extrac12.at:28"
15797 TEST_TAR_FORMAT=gnu
15798 export TEST_TAR_FORMAT
15799 TAR_OPTIONS="-H gnu"
15804 echo file1 >src/file1
15805 echo file2 >src/file2
15808 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15809 tar -xf archive.tar -C dst &&
15810 cmp src/file1 dst/file1 &&
15811 cmp src/file2 dst/file2
15813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15814 at_status=$? at_failed=false
15816 at_fn_diff_devnull "$at_stderr" || at_failed=:
15817 at_fn_diff_devnull "$at_stdout" || at_failed=:
15818 at_fn_check_status 0 $at_status "$at_srcdir/extrac12.at:28"
15819 $at_failed && at_fn_log_failure
15826 $at_times_p && times >"$at_times_file"
15827 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15828 read at_status <"$at_status_file"
15831 at_fn_group_banner 67 'extrac13.at:26' \
15832 "extract over symlinks" " " 9
15834 test -f $XFAILFILE && at_xfail=yes
15836 $as_echo "67. $at_setup_line: testing $at_desc ..."
15844 $as_echo "$at_srcdir/extrac13.at:29:
15847 TEST_TAR_FORMAT=gnu
15848 export TEST_TAR_FORMAT
15849 TAR_OPTIONS=\"-H gnu\"
15853 mkdir src dst1 dst2 dst3
15854 echo file1 >src/file1
15855 ln -s target1 dst1/file1
15856 echo target1 >dst1/target1
15857 echo target1 >target1
15859 tar -cf archive.tar -C src . &&
15860 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15861 diff src/file1 dst1/file1 &&
15862 diff target1 dst1/target1
15864 ln -s target1 dst2/file1
15865 echo target1 >dst2/target1
15866 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15867 diff src/file1 dst2/file1 &&
15868 diff target1 dst2/target1
15870 ln -s target1 dst3/file1
15871 echo target1 >dst3/target1
15872 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15873 diff src/file1 dst3/file1 &&
15874 diff src/file1 dst3/target1
15876 at_fn_check_prepare_notrace 'an embedded newline' "extrac13.at:29"
15880 TEST_TAR_FORMAT=gnu
15881 export TEST_TAR_FORMAT
15882 TAR_OPTIONS="-H gnu"
15886 mkdir src dst1 dst2 dst3
15887 echo file1 >src/file1
15888 ln -s target1 dst1/file1
15889 echo target1 >dst1/target1
15890 echo target1 >target1
15892 tar -cf archive.tar -C src . &&
15893 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15894 diff src/file1 dst1/file1 &&
15895 diff target1 dst1/target1
15897 ln -s target1 dst2/file1
15898 echo target1 >dst2/target1
15899 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15900 diff src/file1 dst2/file1 &&
15901 diff target1 dst2/target1
15903 ln -s target1 dst3/file1
15904 echo target1 >dst3/target1
15905 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15906 diff src/file1 dst3/file1 &&
15907 diff src/file1 dst3/target1
15909 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15910 at_status=$? at_failed=false
15912 at_fn_diff_devnull "$at_stderr" || at_failed=:
15913 at_fn_diff_devnull "$at_stdout" || at_failed=:
15914 at_fn_check_status 0 $at_status "$at_srcdir/extrac13.at:29"
15915 $at_failed && at_fn_log_failure
15922 $at_times_p && times >"$at_times_file"
15923 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15924 read at_status <"$at_status_file"
15927 at_fn_group_banner 68 'extrac14.at:25' \
15928 "extract -C symlink" " " 9
15930 test -f $XFAILFILE && at_xfail=yes
15932 $as_echo "68. $at_setup_line: testing $at_desc ..."
15940 $as_echo "$at_srcdir/extrac14.at:28:
15943 TEST_TAR_FORMAT=gnu
15944 export TEST_TAR_FORMAT
15945 TAR_OPTIONS=\"-H gnu\"
15952 tar -cf archive.tar foo &&
15953 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15956 at_fn_check_prepare_notrace 'an embedded newline' "extrac14.at:28"
15960 TEST_TAR_FORMAT=gnu
15961 export TEST_TAR_FORMAT
15962 TAR_OPTIONS="-H gnu"
15969 tar -cf archive.tar foo &&
15970 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15973 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15974 at_status=$? at_failed=false
15976 at_fn_diff_devnull "$at_stderr" || at_failed=:
15977 at_fn_diff_devnull "$at_stdout" || at_failed=:
15978 at_fn_check_status 0 $at_status "$at_srcdir/extrac14.at:28"
15979 $at_failed && at_fn_log_failure
15986 $at_times_p && times >"$at_times_file"
15987 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15988 read at_status <"$at_status_file"
15991 at_fn_group_banner 69 'extrac15.at:25' \
15992 "extract parent mkdir failure" " " 9
15994 test -f $XFAILFILE && at_xfail=yes
15996 $as_echo "69. $at_setup_line: testing $at_desc ..."
16004 $as_echo "$at_srcdir/extrac15.at:28:
16007 TEST_TAR_FORMAT=gnu
16008 export TEST_TAR_FORMAT
16009 TAR_OPTIONS=\"-H gnu\"
16014 echo \"test\" > \$\$
16016 cat \$\$ > /dev/null 2>&1
16019 test \$result -eq 0 && exit 77
16022 mkdir src src/a src/a/b dest dest/a
16026 tar -cf archive.tar -C src a/b/c &&
16027 if tar -xf archive.tar -C dest a/b/c
16032 at_fn_check_prepare_notrace 'an embedded newline' "extrac15.at:28"
16036 TEST_TAR_FORMAT=gnu
16037 export TEST_TAR_FORMAT
16038 TAR_OPTIONS="-H gnu"
16045 cat $$ > /dev/null 2>&1
16048 test $result -eq 0 && exit 77
16051 mkdir src src/a src/a/b dest dest/a
16055 tar -cf archive.tar -C src a/b/c &&
16056 if tar -xf archive.tar -C dest a/b/c
16061 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16062 at_status=$? at_failed=false
16064 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
16065 tar: a/b/c: Cannot open: No such file or directory
16066 tar: Exiting with failure status due to previous errors
16068 $at_diff - "$at_stderr" || at_failed=:
16069 at_fn_diff_devnull "$at_stdout" || at_failed=:
16070 at_fn_check_status 0 $at_status "$at_srcdir/extrac15.at:28"
16071 $at_failed && at_fn_log_failure
16078 $at_times_p && times >"$at_times_file"
16079 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16080 read at_status <"$at_status_file"
16083 at_fn_group_banner 70 'extrac16.at:26' \
16084 "extract empty directory with -C" " " 9
16086 test -f $XFAILFILE && at_xfail=yes
16088 $as_echo "70. $at_setup_line: testing $at_desc ..."
16096 $as_echo "$at_srcdir/extrac16.at:29:
16099 TEST_TAR_FORMAT=gnu
16100 export TEST_TAR_FORMAT
16101 TAR_OPTIONS=\"-H gnu\"
16105 mkdir src src/a src/a/b dest
16108 tar -cf archive.tar -C src a &&
16109 tar -xf archive.tar -C dest
16111 at_fn_check_prepare_notrace 'an embedded newline' "extrac16.at:29"
16115 TEST_TAR_FORMAT=gnu
16116 export TEST_TAR_FORMAT
16117 TAR_OPTIONS="-H gnu"
16121 mkdir src src/a src/a/b dest
16124 tar -cf archive.tar -C src a &&
16125 tar -xf archive.tar -C dest
16127 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16128 at_status=$? at_failed=false
16130 at_fn_diff_devnull "$at_stderr" || at_failed=:
16131 at_fn_diff_devnull "$at_stdout" || at_failed=:
16132 at_fn_check_status 0 $at_status "$at_srcdir/extrac16.at:29"
16133 $at_failed && at_fn_log_failure
16140 $at_times_p && times >"$at_times_file"
16141 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16142 read at_status <"$at_status_file"
16145 at_fn_group_banner 71 'extrac17.at:21' \
16146 "name matching/transformation ordering" " " 9
16148 test -f $XFAILFILE && at_xfail=yes
16150 $as_echo "71. $at_setup_line: testing $at_desc ..."
16155 # Description: Tar 1.24 changed the ordering of name matching and
16156 # name transformation so that the former saw already transformed
16157 # file names (see commit 9c194c99 and exclude06.at). This reverted
16158 # ordering made it impossible to match file names in certain cases.
16159 # In particular, the testcase below would not extract anything.
16161 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
16162 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
16163 # http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
16168 $as_echo "$at_srcdir/extrac17.at:34:
16172 export TEST_TAR_FORMAT
16173 TAR_OPTIONS=\"-H v7\"
16177 mkdir dir dir/subdir1 dir/subdir2 out
16178 genfile --file dir/subdir1/file1
16179 genfile --file dir/subdir2/file2
16183 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16186 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16191 export TEST_TAR_FORMAT
16192 TAR_OPTIONS="-H v7"
16196 mkdir dir dir/subdir1 dir/subdir2 out
16197 genfile --file dir/subdir1/file1
16198 genfile --file dir/subdir2/file2
16202 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16205 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16206 at_status=$? at_failed=false
16208 at_fn_diff_devnull "$at_stderr" || at_failed=:
16209 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16211 $at_diff - "$at_stdout" || at_failed=:
16212 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16213 $at_failed && at_fn_log_failure
16217 $as_echo "$at_srcdir/extrac17.at:34:
16220 TEST_TAR_FORMAT=oldgnu
16221 export TEST_TAR_FORMAT
16222 TAR_OPTIONS=\"-H oldgnu\"
16226 mkdir dir dir/subdir1 dir/subdir2 out
16227 genfile --file dir/subdir1/file1
16228 genfile --file dir/subdir2/file2
16232 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16235 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16239 TEST_TAR_FORMAT=oldgnu
16240 export TEST_TAR_FORMAT
16241 TAR_OPTIONS="-H oldgnu"
16245 mkdir dir dir/subdir1 dir/subdir2 out
16246 genfile --file dir/subdir1/file1
16247 genfile --file dir/subdir2/file2
16251 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16254 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16255 at_status=$? at_failed=false
16257 at_fn_diff_devnull "$at_stderr" || at_failed=:
16258 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16260 $at_diff - "$at_stdout" || at_failed=:
16261 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16262 $at_failed && at_fn_log_failure
16266 $as_echo "$at_srcdir/extrac17.at:34:
16269 TEST_TAR_FORMAT=ustar
16270 export TEST_TAR_FORMAT
16271 TAR_OPTIONS=\"-H ustar\"
16275 mkdir dir dir/subdir1 dir/subdir2 out
16276 genfile --file dir/subdir1/file1
16277 genfile --file dir/subdir2/file2
16281 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16284 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16288 TEST_TAR_FORMAT=ustar
16289 export TEST_TAR_FORMAT
16290 TAR_OPTIONS="-H ustar"
16294 mkdir dir dir/subdir1 dir/subdir2 out
16295 genfile --file dir/subdir1/file1
16296 genfile --file dir/subdir2/file2
16300 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16303 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16304 at_status=$? at_failed=false
16306 at_fn_diff_devnull "$at_stderr" || at_failed=:
16307 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16309 $at_diff - "$at_stdout" || at_failed=:
16310 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16311 $at_failed && at_fn_log_failure
16315 $as_echo "$at_srcdir/extrac17.at:34:
16318 TEST_TAR_FORMAT=posix
16319 export TEST_TAR_FORMAT
16320 TAR_OPTIONS=\"-H posix\"
16324 mkdir dir dir/subdir1 dir/subdir2 out
16325 genfile --file dir/subdir1/file1
16326 genfile --file dir/subdir2/file2
16330 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16333 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16337 TEST_TAR_FORMAT=posix
16338 export TEST_TAR_FORMAT
16339 TAR_OPTIONS="-H posix"
16343 mkdir dir dir/subdir1 dir/subdir2 out
16344 genfile --file dir/subdir1/file1
16345 genfile --file dir/subdir2/file2
16349 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16352 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16353 at_status=$? at_failed=false
16355 at_fn_diff_devnull "$at_stderr" || at_failed=:
16356 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16358 $at_diff - "$at_stdout" || at_failed=:
16359 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16360 $at_failed && at_fn_log_failure
16364 $as_echo "$at_srcdir/extrac17.at:34:
16367 TEST_TAR_FORMAT=gnu
16368 export TEST_TAR_FORMAT
16369 TAR_OPTIONS=\"-H gnu\"
16373 mkdir dir dir/subdir1 dir/subdir2 out
16374 genfile --file dir/subdir1/file1
16375 genfile --file dir/subdir2/file2
16379 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16382 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16386 TEST_TAR_FORMAT=gnu
16387 export TEST_TAR_FORMAT
16388 TAR_OPTIONS="-H gnu"
16392 mkdir dir dir/subdir1 dir/subdir2 out
16393 genfile --file dir/subdir1/file1
16394 genfile --file dir/subdir2/file2
16398 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16402 at_status=$? at_failed=false
16404 at_fn_diff_devnull "$at_stderr" || at_failed=:
16405 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16407 $at_diff - "$at_stdout" || at_failed=:
16408 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16409 $at_failed && at_fn_log_failure
16416 $at_times_p && times >"$at_times_file"
16417 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16418 read at_status <"$at_status_file"
16421 at_fn_group_banner 72 'extrac18.at:34' \
16422 "keep-old-files" " " 9
16424 test -f $XFAILFILE && at_xfail=yes
16426 $as_echo "72. $at_setup_line: testing $at_desc ..."
16434 $as_echo "$at_srcdir/extrac18.at:37:
16438 export TEST_TAR_FORMAT
16439 TAR_OPTIONS=\"-H v7\"
16445 echo 'Old file a' > a
16446 echo 'Old file b' > b
16448 tar cf ../archive .
16453 tar -x -k -f ../archive
16458 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16463 export TEST_TAR_FORMAT
16464 TAR_OPTIONS="-H v7"
16470 echo 'Old file a' > a
16471 echo 'Old file b' > b
16473 tar cf ../archive .
16478 tar -x -k -f ../archive
16483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16484 at_status=$? at_failed=false
16486 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16487 tar: Exiting with failure status due to previous errors
16489 $at_diff - "$at_stderr" || at_failed=:
16490 echo >>"$at_stdout"; $as_echo "status=2
16493 $at_diff - "$at_stdout" || at_failed=:
16494 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16495 $at_failed && at_fn_log_failure
16499 $as_echo "$at_srcdir/extrac18.at:37:
16502 TEST_TAR_FORMAT=oldgnu
16503 export TEST_TAR_FORMAT
16504 TAR_OPTIONS=\"-H oldgnu\"
16510 echo 'Old file a' > a
16511 echo 'Old file b' > b
16513 tar cf ../archive .
16518 tar -x -k -f ../archive
16523 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16527 TEST_TAR_FORMAT=oldgnu
16528 export TEST_TAR_FORMAT
16529 TAR_OPTIONS="-H oldgnu"
16535 echo 'Old file a' > a
16536 echo 'Old file b' > b
16538 tar cf ../archive .
16543 tar -x -k -f ../archive
16548 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16549 at_status=$? at_failed=false
16551 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16552 tar: Exiting with failure status due to previous errors
16554 $at_diff - "$at_stderr" || at_failed=:
16555 echo >>"$at_stdout"; $as_echo "status=2
16558 $at_diff - "$at_stdout" || at_failed=:
16559 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16560 $at_failed && at_fn_log_failure
16564 $as_echo "$at_srcdir/extrac18.at:37:
16567 TEST_TAR_FORMAT=ustar
16568 export TEST_TAR_FORMAT
16569 TAR_OPTIONS=\"-H ustar\"
16575 echo 'Old file a' > a
16576 echo 'Old file b' > b
16578 tar cf ../archive .
16583 tar -x -k -f ../archive
16588 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16592 TEST_TAR_FORMAT=ustar
16593 export TEST_TAR_FORMAT
16594 TAR_OPTIONS="-H ustar"
16600 echo 'Old file a' > a
16601 echo 'Old file b' > b
16603 tar cf ../archive .
16608 tar -x -k -f ../archive
16613 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16614 at_status=$? at_failed=false
16616 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16617 tar: Exiting with failure status due to previous errors
16619 $at_diff - "$at_stderr" || at_failed=:
16620 echo >>"$at_stdout"; $as_echo "status=2
16623 $at_diff - "$at_stdout" || at_failed=:
16624 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16625 $at_failed && at_fn_log_failure
16629 $as_echo "$at_srcdir/extrac18.at:37:
16632 TEST_TAR_FORMAT=posix
16633 export TEST_TAR_FORMAT
16634 TAR_OPTIONS=\"-H posix\"
16640 echo 'Old file a' > a
16641 echo 'Old file b' > b
16643 tar cf ../archive .
16648 tar -x -k -f ../archive
16653 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16657 TEST_TAR_FORMAT=posix
16658 export TEST_TAR_FORMAT
16659 TAR_OPTIONS="-H posix"
16665 echo 'Old file a' > a
16666 echo 'Old file b' > b
16668 tar cf ../archive .
16673 tar -x -k -f ../archive
16678 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16679 at_status=$? at_failed=false
16681 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16682 tar: Exiting with failure status due to previous errors
16684 $at_diff - "$at_stderr" || at_failed=:
16685 echo >>"$at_stdout"; $as_echo "status=2
16688 $at_diff - "$at_stdout" || at_failed=:
16689 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16690 $at_failed && at_fn_log_failure
16694 $as_echo "$at_srcdir/extrac18.at:37:
16697 TEST_TAR_FORMAT=gnu
16698 export TEST_TAR_FORMAT
16699 TAR_OPTIONS=\"-H gnu\"
16705 echo 'Old file a' > a
16706 echo 'Old file b' > b
16708 tar cf ../archive .
16713 tar -x -k -f ../archive
16718 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16722 TEST_TAR_FORMAT=gnu
16723 export TEST_TAR_FORMAT
16724 TAR_OPTIONS="-H gnu"
16730 echo 'Old file a' > a
16731 echo 'Old file b' > b
16733 tar cf ../archive .
16738 tar -x -k -f ../archive
16743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16744 at_status=$? at_failed=false
16746 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16747 tar: Exiting with failure status due to previous errors
16749 $at_diff - "$at_stderr" || at_failed=:
16750 echo >>"$at_stdout"; $as_echo "status=2
16753 $at_diff - "$at_stdout" || at_failed=:
16754 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16755 $at_failed && at_fn_log_failure
16762 $at_times_p && times >"$at_times_file"
16763 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16764 read at_status <"$at_status_file"
16767 at_fn_group_banner 73 'extrac19.at:21' \
16768 "skip-old-files" " " 9
16770 test -f $XFAILFILE && at_xfail=yes
16772 $as_echo "73. $at_setup_line: testing $at_desc ..."
16780 $as_echo "$at_srcdir/extrac19.at:24:
16784 export TEST_TAR_FORMAT
16785 TAR_OPTIONS=\"-H v7\"
16791 echo 'Old file a' > a
16792 echo 'Old file b' > b
16794 tar cf ../archive .
16799 tar -x --skip-old-files -f ../archive
16804 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
16809 export TEST_TAR_FORMAT
16810 TAR_OPTIONS="-H v7"
16816 echo 'Old file a' > a
16817 echo 'Old file b' > b
16819 tar cf ../archive .
16824 tar -x --skip-old-files -f ../archive
16829 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16830 at_status=$? at_failed=false
16832 at_fn_diff_devnull "$at_stderr" || at_failed=:
16833 echo >>"$at_stdout"; $as_echo "status=0
16836 $at_diff - "$at_stdout" || at_failed=:
16837 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
16838 $at_failed && at_fn_log_failure
16842 $as_echo "$at_srcdir/extrac19.at:24:
16845 TEST_TAR_FORMAT=oldgnu
16846 export TEST_TAR_FORMAT
16847 TAR_OPTIONS=\"-H oldgnu\"
16853 echo 'Old file a' > a
16854 echo 'Old file b' > b
16856 tar cf ../archive .
16861 tar -x --skip-old-files -f ../archive
16866 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
16870 TEST_TAR_FORMAT=oldgnu
16871 export TEST_TAR_FORMAT
16872 TAR_OPTIONS="-H oldgnu"
16878 echo 'Old file a' > a
16879 echo 'Old file b' > b
16881 tar cf ../archive .
16886 tar -x --skip-old-files -f ../archive
16891 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16892 at_status=$? at_failed=false
16894 at_fn_diff_devnull "$at_stderr" || at_failed=:
16895 echo >>"$at_stdout"; $as_echo "status=0
16898 $at_diff - "$at_stdout" || at_failed=:
16899 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
16900 $at_failed && at_fn_log_failure
16904 $as_echo "$at_srcdir/extrac19.at:24:
16907 TEST_TAR_FORMAT=ustar
16908 export TEST_TAR_FORMAT
16909 TAR_OPTIONS=\"-H ustar\"
16915 echo 'Old file a' > a
16916 echo 'Old file b' > b
16918 tar cf ../archive .
16923 tar -x --skip-old-files -f ../archive
16928 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
16932 TEST_TAR_FORMAT=ustar
16933 export TEST_TAR_FORMAT
16934 TAR_OPTIONS="-H ustar"
16940 echo 'Old file a' > a
16941 echo 'Old file b' > b
16943 tar cf ../archive .
16948 tar -x --skip-old-files -f ../archive
16953 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16954 at_status=$? at_failed=false
16956 at_fn_diff_devnull "$at_stderr" || at_failed=:
16957 echo >>"$at_stdout"; $as_echo "status=0
16960 $at_diff - "$at_stdout" || at_failed=:
16961 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
16962 $at_failed && at_fn_log_failure
16966 $as_echo "$at_srcdir/extrac19.at:24:
16969 TEST_TAR_FORMAT=posix
16970 export TEST_TAR_FORMAT
16971 TAR_OPTIONS=\"-H posix\"
16977 echo 'Old file a' > a
16978 echo 'Old file b' > b
16980 tar cf ../archive .
16985 tar -x --skip-old-files -f ../archive
16990 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
16994 TEST_TAR_FORMAT=posix
16995 export TEST_TAR_FORMAT
16996 TAR_OPTIONS="-H posix"
17002 echo 'Old file a' > a
17003 echo 'Old file b' > b
17005 tar cf ../archive .
17010 tar -x --skip-old-files -f ../archive
17015 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17016 at_status=$? at_failed=false
17018 at_fn_diff_devnull "$at_stderr" || at_failed=:
17019 echo >>"$at_stdout"; $as_echo "status=0
17022 $at_diff - "$at_stdout" || at_failed=:
17023 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17024 $at_failed && at_fn_log_failure
17028 $as_echo "$at_srcdir/extrac19.at:24:
17031 TEST_TAR_FORMAT=gnu
17032 export TEST_TAR_FORMAT
17033 TAR_OPTIONS=\"-H gnu\"
17039 echo 'Old file a' > a
17040 echo 'Old file b' > b
17042 tar cf ../archive .
17047 tar -x --skip-old-files -f ../archive
17052 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17056 TEST_TAR_FORMAT=gnu
17057 export TEST_TAR_FORMAT
17058 TAR_OPTIONS="-H gnu"
17064 echo 'Old file a' > a
17065 echo 'Old file b' > b
17067 tar cf ../archive .
17072 tar -x --skip-old-files -f ../archive
17077 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17078 at_status=$? at_failed=false
17080 at_fn_diff_devnull "$at_stderr" || at_failed=:
17081 echo >>"$at_stdout"; $as_echo "status=0
17084 $at_diff - "$at_stdout" || at_failed=:
17085 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17086 $at_failed && at_fn_log_failure
17093 $at_times_p && times >"$at_times_file"
17094 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17095 read at_status <"$at_status_file"
17098 at_fn_group_banner 74 'backup01.at:33' \
17099 "extracting existing dir with --backup" " " 9
17101 test -f $XFAILFILE && at_xfail=yes
17103 $as_echo "74. $at_setup_line: testing $at_desc ..."
17111 $as_echo "$at_srcdir/backup01.at:36:
17115 export TEST_TAR_FORMAT
17116 TAR_OPTIONS=\"-H v7\"
17120 unset VERSION_CONTROL
17122 echo bla > dir1/file1
17123 tar cf test.tar dir1 dir2
17124 tar xfv test.tar --backup --warning=no-timestamp
17126 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17131 export TEST_TAR_FORMAT
17132 TAR_OPTIONS="-H v7"
17136 unset VERSION_CONTROL
17138 echo bla > dir1/file1
17139 tar cf test.tar dir1 dir2
17140 tar xfv test.tar --backup --warning=no-timestamp
17142 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17143 at_status=$? at_failed=false
17145 at_fn_diff_devnull "$at_stderr" || at_failed=:
17146 echo >>"$at_stdout"; $as_echo "dir1/
17148 Renaming 'dir1/file1' to 'dir1/file1~'
17151 $at_diff - "$at_stdout" || at_failed=:
17152 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17153 $at_failed && at_fn_log_failure
17157 $as_echo "$at_srcdir/backup01.at:36:
17160 TEST_TAR_FORMAT=oldgnu
17161 export TEST_TAR_FORMAT
17162 TAR_OPTIONS=\"-H oldgnu\"
17166 unset VERSION_CONTROL
17168 echo bla > dir1/file1
17169 tar cf test.tar dir1 dir2
17170 tar xfv test.tar --backup --warning=no-timestamp
17172 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17176 TEST_TAR_FORMAT=oldgnu
17177 export TEST_TAR_FORMAT
17178 TAR_OPTIONS="-H oldgnu"
17182 unset VERSION_CONTROL
17184 echo bla > dir1/file1
17185 tar cf test.tar dir1 dir2
17186 tar xfv test.tar --backup --warning=no-timestamp
17188 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17189 at_status=$? at_failed=false
17191 at_fn_diff_devnull "$at_stderr" || at_failed=:
17192 echo >>"$at_stdout"; $as_echo "dir1/
17194 Renaming 'dir1/file1' to 'dir1/file1~'
17197 $at_diff - "$at_stdout" || at_failed=:
17198 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17199 $at_failed && at_fn_log_failure
17203 $as_echo "$at_srcdir/backup01.at:36:
17206 TEST_TAR_FORMAT=ustar
17207 export TEST_TAR_FORMAT
17208 TAR_OPTIONS=\"-H ustar\"
17212 unset VERSION_CONTROL
17214 echo bla > dir1/file1
17215 tar cf test.tar dir1 dir2
17216 tar xfv test.tar --backup --warning=no-timestamp
17218 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17222 TEST_TAR_FORMAT=ustar
17223 export TEST_TAR_FORMAT
17224 TAR_OPTIONS="-H ustar"
17228 unset VERSION_CONTROL
17230 echo bla > dir1/file1
17231 tar cf test.tar dir1 dir2
17232 tar xfv test.tar --backup --warning=no-timestamp
17234 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17235 at_status=$? at_failed=false
17237 at_fn_diff_devnull "$at_stderr" || at_failed=:
17238 echo >>"$at_stdout"; $as_echo "dir1/
17240 Renaming 'dir1/file1' to 'dir1/file1~'
17243 $at_diff - "$at_stdout" || at_failed=:
17244 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17245 $at_failed && at_fn_log_failure
17249 $as_echo "$at_srcdir/backup01.at:36:
17252 TEST_TAR_FORMAT=posix
17253 export TEST_TAR_FORMAT
17254 TAR_OPTIONS=\"-H posix\"
17258 unset VERSION_CONTROL
17260 echo bla > dir1/file1
17261 tar cf test.tar dir1 dir2
17262 tar xfv test.tar --backup --warning=no-timestamp
17264 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17268 TEST_TAR_FORMAT=posix
17269 export TEST_TAR_FORMAT
17270 TAR_OPTIONS="-H posix"
17274 unset VERSION_CONTROL
17276 echo bla > dir1/file1
17277 tar cf test.tar dir1 dir2
17278 tar xfv test.tar --backup --warning=no-timestamp
17280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17281 at_status=$? at_failed=false
17283 at_fn_diff_devnull "$at_stderr" || at_failed=:
17284 echo >>"$at_stdout"; $as_echo "dir1/
17286 Renaming 'dir1/file1' to 'dir1/file1~'
17289 $at_diff - "$at_stdout" || at_failed=:
17290 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17291 $at_failed && at_fn_log_failure
17295 $as_echo "$at_srcdir/backup01.at:36:
17298 TEST_TAR_FORMAT=gnu
17299 export TEST_TAR_FORMAT
17300 TAR_OPTIONS=\"-H gnu\"
17304 unset VERSION_CONTROL
17306 echo bla > dir1/file1
17307 tar cf test.tar dir1 dir2
17308 tar xfv test.tar --backup --warning=no-timestamp
17310 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17314 TEST_TAR_FORMAT=gnu
17315 export TEST_TAR_FORMAT
17316 TAR_OPTIONS="-H gnu"
17320 unset VERSION_CONTROL
17322 echo bla > dir1/file1
17323 tar cf test.tar dir1 dir2
17324 tar xfv test.tar --backup --warning=no-timestamp
17326 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17327 at_status=$? at_failed=false
17329 at_fn_diff_devnull "$at_stderr" || at_failed=:
17330 echo >>"$at_stdout"; $as_echo "dir1/
17332 Renaming 'dir1/file1' to 'dir1/file1~'
17335 $at_diff - "$at_stdout" || at_failed=:
17336 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17337 $at_failed && at_fn_log_failure
17344 $at_times_p && times >"$at_times_file"
17345 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17346 read at_status <"$at_status_file"
17349 at_fn_group_banner 75 'label01.at:21' \
17350 "single-volume label" " " 10
17352 test -f $XFAILFILE && at_xfail=yes
17354 $as_echo "75. $at_setup_line: testing $at_desc ..."
17362 $as_echo "$at_srcdir/label01.at:24:
17365 TEST_TAR_FORMAT=gnu
17366 export TEST_TAR_FORMAT
17367 TAR_OPTIONS=\"-H gnu\"
17373 tar -cf archive --label=Test foo bar
17376 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17380 TEST_TAR_FORMAT=gnu
17381 export TEST_TAR_FORMAT
17382 TAR_OPTIONS="-H gnu"
17388 tar -cf archive --label=Test foo bar
17391 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17392 at_status=$? at_failed=false
17394 at_fn_diff_devnull "$at_stderr" || at_failed=:
17395 echo >>"$at_stdout"; $as_echo "Test
17399 $at_diff - "$at_stdout" || at_failed=:
17400 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17401 $at_failed && at_fn_log_failure
17405 $as_echo "$at_srcdir/label01.at:24:
17408 TEST_TAR_FORMAT=oldgnu
17409 export TEST_TAR_FORMAT
17410 TAR_OPTIONS=\"-H oldgnu\"
17416 tar -cf archive --label=Test foo bar
17419 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17423 TEST_TAR_FORMAT=oldgnu
17424 export TEST_TAR_FORMAT
17425 TAR_OPTIONS="-H oldgnu"
17431 tar -cf archive --label=Test foo bar
17434 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17435 at_status=$? at_failed=false
17437 at_fn_diff_devnull "$at_stderr" || at_failed=:
17438 echo >>"$at_stdout"; $as_echo "Test
17442 $at_diff - "$at_stdout" || at_failed=:
17443 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17444 $at_failed && at_fn_log_failure
17448 $as_echo "$at_srcdir/label01.at:24:
17451 TEST_TAR_FORMAT=posix
17452 export TEST_TAR_FORMAT
17453 TAR_OPTIONS=\"-H posix\"
17459 tar -cf archive --label=Test foo bar
17462 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17466 TEST_TAR_FORMAT=posix
17467 export TEST_TAR_FORMAT
17468 TAR_OPTIONS="-H posix"
17474 tar -cf archive --label=Test foo bar
17477 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17478 at_status=$? at_failed=false
17480 at_fn_diff_devnull "$at_stderr" || at_failed=:
17481 echo >>"$at_stdout"; $as_echo "Test
17485 $at_diff - "$at_stdout" || at_failed=:
17486 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17487 $at_failed && at_fn_log_failure
17494 $at_times_p && times >"$at_times_file"
17495 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17496 read at_status <"$at_status_file"
17499 at_fn_group_banner 76 'label02.at:21' \
17500 "multi-volume label" " " 10
17502 test -f $XFAILFILE && at_xfail=yes
17504 $as_echo "76. $at_setup_line: testing $at_desc ..."
17512 $as_echo "$at_srcdir/label02.at:24:
17515 TEST_TAR_FORMAT=gnu
17516 export TEST_TAR_FORMAT
17517 TAR_OPTIONS=\"-H gnu\"
17522 genfile --length 0 --file foo
17523 genfile --length 12288 --file bar
17524 genfile --length 12288 --file baz
17525 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17526 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17528 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
17532 TEST_TAR_FORMAT=gnu
17533 export TEST_TAR_FORMAT
17534 TAR_OPTIONS="-H gnu"
17539 genfile --length 0 --file foo
17540 genfile --length 12288 --file bar
17541 genfile --length 12288 --file baz
17542 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17543 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17545 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17546 at_status=$? at_failed=false
17548 at_fn_diff_devnull "$at_stderr" || at_failed=:
17549 echo >>"$at_stdout"; $as_echo "Test Volume 1
17554 $at_diff - "$at_stdout" || at_failed=:
17555 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
17556 $at_failed && at_fn_log_failure
17560 $as_echo "$at_srcdir/label02.at:24:
17563 TEST_TAR_FORMAT=oldgnu
17564 export TEST_TAR_FORMAT
17565 TAR_OPTIONS=\"-H oldgnu\"
17570 genfile --length 0 --file foo
17571 genfile --length 12288 --file bar
17572 genfile --length 12288 --file baz
17573 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17574 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17576 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
17580 TEST_TAR_FORMAT=oldgnu
17581 export TEST_TAR_FORMAT
17582 TAR_OPTIONS="-H oldgnu"
17587 genfile --length 0 --file foo
17588 genfile --length 12288 --file bar
17589 genfile --length 12288 --file baz
17590 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17591 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17593 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17594 at_status=$? at_failed=false
17596 at_fn_diff_devnull "$at_stderr" || at_failed=:
17597 echo >>"$at_stdout"; $as_echo "Test Volume 1
17602 $at_diff - "$at_stdout" || at_failed=:
17603 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
17604 $at_failed && at_fn_log_failure
17608 $as_echo "$at_srcdir/label02.at:24:
17611 TEST_TAR_FORMAT=posix
17612 export TEST_TAR_FORMAT
17613 TAR_OPTIONS=\"-H posix\"
17618 genfile --length 0 --file foo
17619 genfile --length 12288 --file bar
17620 genfile --length 12288 --file baz
17621 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17622 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17624 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
17628 TEST_TAR_FORMAT=posix
17629 export TEST_TAR_FORMAT
17630 TAR_OPTIONS="-H posix"
17635 genfile --length 0 --file foo
17636 genfile --length 12288 --file bar
17637 genfile --length 12288 --file baz
17638 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17639 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17641 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17642 at_status=$? at_failed=false
17644 at_fn_diff_devnull "$at_stderr" || at_failed=:
17645 echo >>"$at_stdout"; $as_echo "Test Volume 1
17650 $at_diff - "$at_stdout" || at_failed=:
17651 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
17652 $at_failed && at_fn_log_failure
17659 $at_times_p && times >"$at_times_file"
17660 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17661 read at_status <"$at_status_file"
17664 at_fn_group_banner 77 'label03.at:27' \
17665 "test-label option" " " 10
17667 test -f $XFAILFILE && at_xfail=yes
17669 $as_echo "77. $at_setup_line: testing $at_desc ..."
17677 $as_echo "$at_srcdir/label03.at:30:
17680 TEST_TAR_FORMAT=gnu
17681 export TEST_TAR_FORMAT
17682 TAR_OPTIONS=\"-H gnu\"
17687 genfile --file file
17688 tar -c --label='iamalabel' --file iamanarchive file
17689 tar -c --file unlabeled.tar file
17690 decho \"# Display label\"
17691 tar --test-label --file=iamanarchive; echo \$?
17692 decho \"# Display label: unlabeled\"
17693 tar --test-label --file=unlabeled.tar; echo \$?
17694 decho \"# Test label: success\"
17695 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17696 decho \"# Test label: failure\"
17697 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17698 decho \"# Test label: unlabeled\"
17699 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17700 decho \"# Test label, verbose: success\"
17701 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17702 decho \"# Test label, verbose: failure\"
17703 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17704 decho \"# Test label: multiple arguments\"
17705 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17706 decho \"# Test label: wildcards\"
17707 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17709 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
17713 TEST_TAR_FORMAT=gnu
17714 export TEST_TAR_FORMAT
17715 TAR_OPTIONS="-H gnu"
17720 genfile --file file
17721 tar -c --label='iamalabel' --file iamanarchive file
17722 tar -c --file unlabeled.tar file
17723 decho "# Display label"
17724 tar --test-label --file=iamanarchive; echo $?
17725 decho "# Display label: unlabeled"
17726 tar --test-label --file=unlabeled.tar; echo $?
17727 decho "# Test label: success"
17728 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17729 decho "# Test label: failure"
17730 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17731 decho "# Test label: unlabeled"
17732 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17733 decho "# Test label, verbose: success"
17734 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17735 decho "# Test label, verbose: failure"
17736 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17737 decho "# Test label: multiple arguments"
17738 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17739 decho "# Test label: wildcards"
17740 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17742 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17743 at_status=$? at_failed=false
17745 echo >>"$at_stderr"; $as_echo "# Display label
17746 # Display label: unlabeled
17747 # Test label: success
17748 # Test label: failure
17749 # Test label: unlabeled
17750 # Test label, verbose: success
17751 # Test label, verbose: failure
17752 tar: Archive label mismatch
17753 # Test label: multiple arguments
17754 # Test label: wildcards
17756 $at_diff - "$at_stderr" || at_failed=:
17757 echo >>"$at_stdout"; $as_echo "# Display label
17760 # Display label: unlabeled
17762 # Test label: success
17764 # Test label: failure
17766 # Test label: unlabeled
17768 # Test label, verbose: success
17771 # Test label, verbose: failure
17774 # Test label: multiple arguments
17776 # Test label: wildcards
17779 $at_diff - "$at_stdout" || at_failed=:
17780 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
17781 $at_failed && at_fn_log_failure
17785 $as_echo "$at_srcdir/label03.at:30:
17788 TEST_TAR_FORMAT=oldgnu
17789 export TEST_TAR_FORMAT
17790 TAR_OPTIONS=\"-H oldgnu\"
17795 genfile --file file
17796 tar -c --label='iamalabel' --file iamanarchive file
17797 tar -c --file unlabeled.tar file
17798 decho \"# Display label\"
17799 tar --test-label --file=iamanarchive; echo \$?
17800 decho \"# Display label: unlabeled\"
17801 tar --test-label --file=unlabeled.tar; echo \$?
17802 decho \"# Test label: success\"
17803 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17804 decho \"# Test label: failure\"
17805 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17806 decho \"# Test label: unlabeled\"
17807 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17808 decho \"# Test label, verbose: success\"
17809 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17810 decho \"# Test label, verbose: failure\"
17811 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17812 decho \"# Test label: multiple arguments\"
17813 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17814 decho \"# Test label: wildcards\"
17815 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17817 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
17821 TEST_TAR_FORMAT=oldgnu
17822 export TEST_TAR_FORMAT
17823 TAR_OPTIONS="-H oldgnu"
17828 genfile --file file
17829 tar -c --label='iamalabel' --file iamanarchive file
17830 tar -c --file unlabeled.tar file
17831 decho "# Display label"
17832 tar --test-label --file=iamanarchive; echo $?
17833 decho "# Display label: unlabeled"
17834 tar --test-label --file=unlabeled.tar; echo $?
17835 decho "# Test label: success"
17836 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17837 decho "# Test label: failure"
17838 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17839 decho "# Test label: unlabeled"
17840 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17841 decho "# Test label, verbose: success"
17842 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17843 decho "# Test label, verbose: failure"
17844 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17845 decho "# Test label: multiple arguments"
17846 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17847 decho "# Test label: wildcards"
17848 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17850 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17851 at_status=$? at_failed=false
17853 echo >>"$at_stderr"; $as_echo "# Display label
17854 # Display label: unlabeled
17855 # Test label: success
17856 # Test label: failure
17857 # Test label: unlabeled
17858 # Test label, verbose: success
17859 # Test label, verbose: failure
17860 tar: Archive label mismatch
17861 # Test label: multiple arguments
17862 # Test label: wildcards
17864 $at_diff - "$at_stderr" || at_failed=:
17865 echo >>"$at_stdout"; $as_echo "# Display label
17868 # Display label: unlabeled
17870 # Test label: success
17872 # Test label: failure
17874 # Test label: unlabeled
17876 # Test label, verbose: success
17879 # Test label, verbose: failure
17882 # Test label: multiple arguments
17884 # Test label: wildcards
17887 $at_diff - "$at_stdout" || at_failed=:
17888 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
17889 $at_failed && at_fn_log_failure
17893 $as_echo "$at_srcdir/label03.at:30:
17896 TEST_TAR_FORMAT=posix
17897 export TEST_TAR_FORMAT
17898 TAR_OPTIONS=\"-H posix\"
17903 genfile --file file
17904 tar -c --label='iamalabel' --file iamanarchive file
17905 tar -c --file unlabeled.tar file
17906 decho \"# Display label\"
17907 tar --test-label --file=iamanarchive; echo \$?
17908 decho \"# Display label: unlabeled\"
17909 tar --test-label --file=unlabeled.tar; echo \$?
17910 decho \"# Test label: success\"
17911 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17912 decho \"# Test label: failure\"
17913 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17914 decho \"# Test label: unlabeled\"
17915 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17916 decho \"# Test label, verbose: success\"
17917 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17918 decho \"# Test label, verbose: failure\"
17919 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17920 decho \"# Test label: multiple arguments\"
17921 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17922 decho \"# Test label: wildcards\"
17923 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17925 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
17929 TEST_TAR_FORMAT=posix
17930 export TEST_TAR_FORMAT
17931 TAR_OPTIONS="-H posix"
17936 genfile --file file
17937 tar -c --label='iamalabel' --file iamanarchive file
17938 tar -c --file unlabeled.tar file
17939 decho "# Display label"
17940 tar --test-label --file=iamanarchive; echo $?
17941 decho "# Display label: unlabeled"
17942 tar --test-label --file=unlabeled.tar; echo $?
17943 decho "# Test label: success"
17944 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17945 decho "# Test label: failure"
17946 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17947 decho "# Test label: unlabeled"
17948 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17949 decho "# Test label, verbose: success"
17950 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17951 decho "# Test label, verbose: failure"
17952 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17953 decho "# Test label: multiple arguments"
17954 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17955 decho "# Test label: wildcards"
17956 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17958 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17959 at_status=$? at_failed=false
17961 echo >>"$at_stderr"; $as_echo "# Display label
17962 # Display label: unlabeled
17963 # Test label: success
17964 # Test label: failure
17965 # Test label: unlabeled
17966 # Test label, verbose: success
17967 # Test label, verbose: failure
17968 tar: Archive label mismatch
17969 # Test label: multiple arguments
17970 # Test label: wildcards
17972 $at_diff - "$at_stderr" || at_failed=:
17973 echo >>"$at_stdout"; $as_echo "# Display label
17976 # Display label: unlabeled
17978 # Test label: success
17980 # Test label: failure
17982 # Test label: unlabeled
17984 # Test label, verbose: success
17987 # Test label, verbose: failure
17990 # Test label: multiple arguments
17992 # Test label: wildcards
17995 $at_diff - "$at_stdout" || at_failed=:
17996 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
17997 $at_failed && at_fn_log_failure
18004 $at_times_p && times >"$at_times_file"
18005 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18006 read at_status <"$at_status_file"
18009 at_fn_group_banner 78 'label04.at:27' \
18010 "label with non-create option" " " 10
18012 test -f $XFAILFILE && at_xfail=yes
18014 $as_echo "78. $at_setup_line: testing $at_desc ..."
18022 $as_echo "$at_srcdir/label04.at:30:
18025 TEST_TAR_FORMAT=gnu
18026 export TEST_TAR_FORMAT
18027 TAR_OPTIONS=\"-H gnu\"
18032 genfile --file file
18033 decho \"# Create volume\"
18034 tar -c -f archive --label='New volume' file
18035 decho \"# Update: wrong label\"
18036 tar -rf archive --label='My volume' file; echo \$?
18037 decho \"# Update: right label\"
18038 tar -rf archive --label='New volume' file
18040 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18044 TEST_TAR_FORMAT=gnu
18045 export TEST_TAR_FORMAT
18046 TAR_OPTIONS="-H gnu"
18051 genfile --file file
18052 decho "# Create volume"
18053 tar -c -f archive --label='New volume' file
18054 decho "# Update: wrong label"
18055 tar -rf archive --label='My volume' file; echo $?
18056 decho "# Update: right label"
18057 tar -rf archive --label='New volume' file
18059 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18060 at_status=$? at_failed=false
18062 echo >>"$at_stderr"; $as_echo "# Create volume
18063 # Update: wrong label
18064 tar: Volume 'New volume' does not match 'My volume'
18065 tar: Error is not recoverable: exiting now
18066 # Update: right label
18068 $at_diff - "$at_stderr" || at_failed=:
18069 echo >>"$at_stdout"; $as_echo "# Create volume
18070 # Update: wrong label
18072 # Update: right label
18074 $at_diff - "$at_stdout" || at_failed=:
18075 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18076 $at_failed && at_fn_log_failure
18080 $as_echo "$at_srcdir/label04.at:30:
18083 TEST_TAR_FORMAT=oldgnu
18084 export TEST_TAR_FORMAT
18085 TAR_OPTIONS=\"-H oldgnu\"
18090 genfile --file file
18091 decho \"# Create volume\"
18092 tar -c -f archive --label='New volume' file
18093 decho \"# Update: wrong label\"
18094 tar -rf archive --label='My volume' file; echo \$?
18095 decho \"# Update: right label\"
18096 tar -rf archive --label='New volume' file
18098 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18102 TEST_TAR_FORMAT=oldgnu
18103 export TEST_TAR_FORMAT
18104 TAR_OPTIONS="-H oldgnu"
18109 genfile --file file
18110 decho "# Create volume"
18111 tar -c -f archive --label='New volume' file
18112 decho "# Update: wrong label"
18113 tar -rf archive --label='My volume' file; echo $?
18114 decho "# Update: right label"
18115 tar -rf archive --label='New volume' file
18117 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18118 at_status=$? at_failed=false
18120 echo >>"$at_stderr"; $as_echo "# Create volume
18121 # Update: wrong label
18122 tar: Volume 'New volume' does not match 'My volume'
18123 tar: Error is not recoverable: exiting now
18124 # Update: right label
18126 $at_diff - "$at_stderr" || at_failed=:
18127 echo >>"$at_stdout"; $as_echo "# Create volume
18128 # Update: wrong label
18130 # Update: right label
18132 $at_diff - "$at_stdout" || at_failed=:
18133 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18134 $at_failed && at_fn_log_failure
18138 $as_echo "$at_srcdir/label04.at:30:
18141 TEST_TAR_FORMAT=posix
18142 export TEST_TAR_FORMAT
18143 TAR_OPTIONS=\"-H posix\"
18148 genfile --file file
18149 decho \"# Create volume\"
18150 tar -c -f archive --label='New volume' file
18151 decho \"# Update: wrong label\"
18152 tar -rf archive --label='My volume' file; echo \$?
18153 decho \"# Update: right label\"
18154 tar -rf archive --label='New volume' file
18156 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18160 TEST_TAR_FORMAT=posix
18161 export TEST_TAR_FORMAT
18162 TAR_OPTIONS="-H posix"
18167 genfile --file file
18168 decho "# Create volume"
18169 tar -c -f archive --label='New volume' file
18170 decho "# Update: wrong label"
18171 tar -rf archive --label='My volume' file; echo $?
18172 decho "# Update: right label"
18173 tar -rf archive --label='New volume' file
18175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18176 at_status=$? at_failed=false
18178 echo >>"$at_stderr"; $as_echo "# Create volume
18179 # Update: wrong label
18180 tar: Volume 'New volume' does not match 'My volume'
18181 tar: Error is not recoverable: exiting now
18182 # Update: right label
18184 $at_diff - "$at_stderr" || at_failed=:
18185 echo >>"$at_stdout"; $as_echo "# Create volume
18186 # Update: wrong label
18188 # Update: right label
18190 $at_diff - "$at_stdout" || at_failed=:
18191 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18192 $at_failed && at_fn_log_failure
18199 $at_times_p && times >"$at_times_file"
18200 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18201 read at_status <"$at_status_file"
18204 at_fn_group_banner 79 'label05.at:24' \
18205 "label with non-create option" " " 10
18207 test -f $XFAILFILE && at_xfail=yes
18209 $as_echo "79. $at_setup_line: testing $at_desc ..."
18217 $as_echo "$at_srcdir/label05.at:27:
18220 TEST_TAR_FORMAT=gnu
18221 export TEST_TAR_FORMAT
18222 TAR_OPTIONS=\"-H gnu\"
18227 genfile --file file
18228 decho \"# Create volume\"
18229 tar -c -f archive file
18230 decho \"# Update: wrong label\"
18231 tar -rf archive --label='My volume' file; echo \$?
18232 decho \"# Update: right label\"
18233 tar -rf archive file
18235 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18239 TEST_TAR_FORMAT=gnu
18240 export TEST_TAR_FORMAT
18241 TAR_OPTIONS="-H gnu"
18246 genfile --file file
18247 decho "# Create volume"
18248 tar -c -f archive file
18249 decho "# Update: wrong label"
18250 tar -rf archive --label='My volume' file; echo $?
18251 decho "# Update: right label"
18252 tar -rf archive file
18254 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18255 at_status=$? at_failed=false
18257 echo >>"$at_stderr"; $as_echo "# Create volume
18258 # Update: wrong label
18259 tar: Archive not labeled to match 'My volume'
18260 tar: Error is not recoverable: exiting now
18261 # Update: right label
18263 $at_diff - "$at_stderr" || at_failed=:
18264 echo >>"$at_stdout"; $as_echo "# Create volume
18265 # Update: wrong label
18267 # Update: right label
18269 $at_diff - "$at_stdout" || at_failed=:
18270 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18271 $at_failed && at_fn_log_failure
18275 $as_echo "$at_srcdir/label05.at:27:
18278 TEST_TAR_FORMAT=oldgnu
18279 export TEST_TAR_FORMAT
18280 TAR_OPTIONS=\"-H oldgnu\"
18285 genfile --file file
18286 decho \"# Create volume\"
18287 tar -c -f archive file
18288 decho \"# Update: wrong label\"
18289 tar -rf archive --label='My volume' file; echo \$?
18290 decho \"# Update: right label\"
18291 tar -rf archive file
18293 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18297 TEST_TAR_FORMAT=oldgnu
18298 export TEST_TAR_FORMAT
18299 TAR_OPTIONS="-H oldgnu"
18304 genfile --file file
18305 decho "# Create volume"
18306 tar -c -f archive file
18307 decho "# Update: wrong label"
18308 tar -rf archive --label='My volume' file; echo $?
18309 decho "# Update: right label"
18310 tar -rf archive file
18312 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18313 at_status=$? at_failed=false
18315 echo >>"$at_stderr"; $as_echo "# Create volume
18316 # Update: wrong label
18317 tar: Archive not labeled to match 'My volume'
18318 tar: Error is not recoverable: exiting now
18319 # Update: right label
18321 $at_diff - "$at_stderr" || at_failed=:
18322 echo >>"$at_stdout"; $as_echo "# Create volume
18323 # Update: wrong label
18325 # Update: right label
18327 $at_diff - "$at_stdout" || at_failed=:
18328 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18329 $at_failed && at_fn_log_failure
18333 $as_echo "$at_srcdir/label05.at:27:
18336 TEST_TAR_FORMAT=posix
18337 export TEST_TAR_FORMAT
18338 TAR_OPTIONS=\"-H posix\"
18343 genfile --file file
18344 decho \"# Create volume\"
18345 tar -c -f archive file
18346 decho \"# Update: wrong label\"
18347 tar -rf archive --label='My volume' file; echo \$?
18348 decho \"# Update: right label\"
18349 tar -rf archive file
18351 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18355 TEST_TAR_FORMAT=posix
18356 export TEST_TAR_FORMAT
18357 TAR_OPTIONS="-H posix"
18362 genfile --file file
18363 decho "# Create volume"
18364 tar -c -f archive file
18365 decho "# Update: wrong label"
18366 tar -rf archive --label='My volume' file; echo $?
18367 decho "# Update: right label"
18368 tar -rf archive file
18370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18371 at_status=$? at_failed=false
18373 echo >>"$at_stderr"; $as_echo "# Create volume
18374 # Update: wrong label
18375 tar: Archive not labeled to match 'My volume'
18376 tar: Error is not recoverable: exiting now
18377 # Update: right label
18379 $at_diff - "$at_stderr" || at_failed=:
18380 echo >>"$at_stdout"; $as_echo "# Create volume
18381 # Update: wrong label
18383 # Update: right label
18385 $at_diff - "$at_stdout" || at_failed=:
18386 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18387 $at_failed && at_fn_log_failure
18394 $at_times_p && times >"$at_times_file"
18395 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18396 read at_status <"$at_status_file"
18399 at_fn_group_banner 80 'incremental.at:23' \
18400 "incremental" " " 11
18402 test -f $XFAILFILE && at_xfail=yes
18404 $as_echo "80. $at_setup_line: testing $at_desc ..."
18412 $as_echo "$at_srcdir/incremental.at:26:
18415 TEST_TAR_FORMAT=gnu
18416 export TEST_TAR_FORMAT
18417 TAR_OPTIONS=\"-H gnu\"
18422 echo x >structure/file
18424 # On Nextstep (and perhaps other 4.3BSD systems),
18425 # a newly created file's ctime isn't updated
18426 # until the next sync or stat operation on the file.
18427 ls -l structure/file >/dev/null
18429 # If the time of an initial backup and the creation time of a file contained
18430 # in that backup are the same, the file will be backed up again when an
18431 # incremental backup is done, because the incremental backup backs up
18432 # files created \"on or after\" the initial backup time. Without the sleep
18433 # command, behaviour of tar becomes variable, depending whether the system
18434 # clock ticked over to the next second between creating the file and
18438 tar cf archive --listed=list structure
18439 tar cfv archive --listed=list structure
18441 # ReiserFS often offsets the timestamps of newly created files
18442 # 1 second to the past. Try to compensate for it, until a better
18443 # solution is found.
18445 echo y >structure/file
18446 tar cfv archive --listed=list structure
18448 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
18452 TEST_TAR_FORMAT=gnu
18453 export TEST_TAR_FORMAT
18454 TAR_OPTIONS="-H gnu"
18459 echo x >structure/file
18461 # On Nextstep (and perhaps other 4.3BSD systems),
18462 # a newly created file's ctime isn't updated
18463 # until the next sync or stat operation on the file.
18464 ls -l structure/file >/dev/null
18466 # If the time of an initial backup and the creation time of a file contained
18467 # in that backup are the same, the file will be backed up again when an
18468 # incremental backup is done, because the incremental backup backs up
18469 # files created "on or after" the initial backup time. Without the sleep
18470 # command, behaviour of tar becomes variable, depending whether the system
18471 # clock ticked over to the next second between creating the file and
18475 tar cf archive --listed=list structure
18476 tar cfv archive --listed=list structure
18478 # ReiserFS often offsets the timestamps of newly created files
18479 # 1 second to the past. Try to compensate for it, until a better
18480 # solution is found.
18482 echo y >structure/file
18483 tar cfv archive --listed=list structure
18485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18486 at_status=$? at_failed=false
18488 at_fn_diff_devnull "$at_stderr" || at_failed=:
18489 echo >>"$at_stdout"; $as_echo "structure/
18494 $at_diff - "$at_stdout" || at_failed=:
18495 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18496 $at_failed && at_fn_log_failure
18500 $as_echo "$at_srcdir/incremental.at:26:
18503 TEST_TAR_FORMAT=oldgnu
18504 export TEST_TAR_FORMAT
18505 TAR_OPTIONS=\"-H oldgnu\"
18510 echo x >structure/file
18512 # On Nextstep (and perhaps other 4.3BSD systems),
18513 # a newly created file's ctime isn't updated
18514 # until the next sync or stat operation on the file.
18515 ls -l structure/file >/dev/null
18517 # If the time of an initial backup and the creation time of a file contained
18518 # in that backup are the same, the file will be backed up again when an
18519 # incremental backup is done, because the incremental backup backs up
18520 # files created \"on or after\" the initial backup time. Without the sleep
18521 # command, behaviour of tar becomes variable, depending whether the system
18522 # clock ticked over to the next second between creating the file and
18526 tar cf archive --listed=list structure
18527 tar cfv archive --listed=list structure
18529 # ReiserFS often offsets the timestamps of newly created files
18530 # 1 second to the past. Try to compensate for it, until a better
18531 # solution is found.
18533 echo y >structure/file
18534 tar cfv archive --listed=list structure
18536 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
18540 TEST_TAR_FORMAT=oldgnu
18541 export TEST_TAR_FORMAT
18542 TAR_OPTIONS="-H oldgnu"
18547 echo x >structure/file
18549 # On Nextstep (and perhaps other 4.3BSD systems),
18550 # a newly created file's ctime isn't updated
18551 # until the next sync or stat operation on the file.
18552 ls -l structure/file >/dev/null
18554 # If the time of an initial backup and the creation time of a file contained
18555 # in that backup are the same, the file will be backed up again when an
18556 # incremental backup is done, because the incremental backup backs up
18557 # files created "on or after" the initial backup time. Without the sleep
18558 # command, behaviour of tar becomes variable, depending whether the system
18559 # clock ticked over to the next second between creating the file and
18563 tar cf archive --listed=list structure
18564 tar cfv archive --listed=list structure
18566 # ReiserFS often offsets the timestamps of newly created files
18567 # 1 second to the past. Try to compensate for it, until a better
18568 # solution is found.
18570 echo y >structure/file
18571 tar cfv archive --listed=list structure
18573 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18574 at_status=$? at_failed=false
18576 at_fn_diff_devnull "$at_stderr" || at_failed=:
18577 echo >>"$at_stdout"; $as_echo "structure/
18582 $at_diff - "$at_stdout" || at_failed=:
18583 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18584 $at_failed && at_fn_log_failure
18588 $as_echo "$at_srcdir/incremental.at:26:
18591 TEST_TAR_FORMAT=posix
18592 export TEST_TAR_FORMAT
18593 TAR_OPTIONS=\"-H posix\"
18598 echo x >structure/file
18600 # On Nextstep (and perhaps other 4.3BSD systems),
18601 # a newly created file's ctime isn't updated
18602 # until the next sync or stat operation on the file.
18603 ls -l structure/file >/dev/null
18605 # If the time of an initial backup and the creation time of a file contained
18606 # in that backup are the same, the file will be backed up again when an
18607 # incremental backup is done, because the incremental backup backs up
18608 # files created \"on or after\" the initial backup time. Without the sleep
18609 # command, behaviour of tar becomes variable, depending whether the system
18610 # clock ticked over to the next second between creating the file and
18614 tar cf archive --listed=list structure
18615 tar cfv archive --listed=list structure
18617 # ReiserFS often offsets the timestamps of newly created files
18618 # 1 second to the past. Try to compensate for it, until a better
18619 # solution is found.
18621 echo y >structure/file
18622 tar cfv archive --listed=list structure
18624 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
18628 TEST_TAR_FORMAT=posix
18629 export TEST_TAR_FORMAT
18630 TAR_OPTIONS="-H posix"
18635 echo x >structure/file
18637 # On Nextstep (and perhaps other 4.3BSD systems),
18638 # a newly created file's ctime isn't updated
18639 # until the next sync or stat operation on the file.
18640 ls -l structure/file >/dev/null
18642 # If the time of an initial backup and the creation time of a file contained
18643 # in that backup are the same, the file will be backed up again when an
18644 # incremental backup is done, because the incremental backup backs up
18645 # files created "on or after" the initial backup time. Without the sleep
18646 # command, behaviour of tar becomes variable, depending whether the system
18647 # clock ticked over to the next second between creating the file and
18651 tar cf archive --listed=list structure
18652 tar cfv archive --listed=list structure
18654 # ReiserFS often offsets the timestamps of newly created files
18655 # 1 second to the past. Try to compensate for it, until a better
18656 # solution is found.
18658 echo y >structure/file
18659 tar cfv archive --listed=list structure
18661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18662 at_status=$? at_failed=false
18664 at_fn_diff_devnull "$at_stderr" || at_failed=:
18665 echo >>"$at_stdout"; $as_echo "structure/
18670 $at_diff - "$at_stdout" || at_failed=:
18671 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18672 $at_failed && at_fn_log_failure
18679 $at_times_p && times >"$at_times_file"
18680 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18681 read at_status <"$at_status_file"
18684 at_fn_group_banner 81 'incr01.at:27' \
18685 "restore broken symlinks from incremental" " " 11
18687 test -f $XFAILFILE && at_xfail=yes
18689 $as_echo "81. $at_setup_line: testing $at_desc ..."
18697 $as_echo "$at_srcdir/incr01.at:30:
18700 TEST_TAR_FORMAT=gnu
18701 export TEST_TAR_FORMAT
18702 TAR_OPTIONS=\"-H gnu\"
18707 \$as_ln_s foo directory/bar
18709 tar -cf archive.0 -g db directory
18711 tar -cf archive.1 -g db directory
18715 tar xvfg archive.0 /dev/null --warning=no-timestamp
18717 tar xvfg archive.1 /dev/null --warning=no-timestamp
18719 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
18723 TEST_TAR_FORMAT=gnu
18724 export TEST_TAR_FORMAT
18725 TAR_OPTIONS="-H gnu"
18730 $as_ln_s foo directory/bar
18732 tar -cf archive.0 -g db directory
18734 tar -cf archive.1 -g db directory
18738 tar xvfg archive.0 /dev/null --warning=no-timestamp
18740 tar xvfg archive.1 /dev/null --warning=no-timestamp
18742 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18743 at_status=$? at_failed=false
18745 at_fn_diff_devnull "$at_stderr" || at_failed=:
18746 echo >>"$at_stdout"; $as_echo "directory/
18750 tar: Deleting 'directory/bar'
18752 $at_diff - "$at_stdout" || at_failed=:
18753 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18754 $at_failed && at_fn_log_failure
18758 $as_echo "$at_srcdir/incr01.at:30:
18761 TEST_TAR_FORMAT=oldgnu
18762 export TEST_TAR_FORMAT
18763 TAR_OPTIONS=\"-H oldgnu\"
18768 \$as_ln_s foo directory/bar
18770 tar -cf archive.0 -g db directory
18772 tar -cf archive.1 -g db directory
18776 tar xvfg archive.0 /dev/null --warning=no-timestamp
18778 tar xvfg archive.1 /dev/null --warning=no-timestamp
18780 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
18784 TEST_TAR_FORMAT=oldgnu
18785 export TEST_TAR_FORMAT
18786 TAR_OPTIONS="-H oldgnu"
18791 $as_ln_s foo directory/bar
18793 tar -cf archive.0 -g db directory
18795 tar -cf archive.1 -g db directory
18799 tar xvfg archive.0 /dev/null --warning=no-timestamp
18801 tar xvfg archive.1 /dev/null --warning=no-timestamp
18803 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18804 at_status=$? at_failed=false
18806 at_fn_diff_devnull "$at_stderr" || at_failed=:
18807 echo >>"$at_stdout"; $as_echo "directory/
18811 tar: Deleting 'directory/bar'
18813 $at_diff - "$at_stdout" || at_failed=:
18814 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18815 $at_failed && at_fn_log_failure
18819 $as_echo "$at_srcdir/incr01.at:30:
18822 TEST_TAR_FORMAT=posix
18823 export TEST_TAR_FORMAT
18824 TAR_OPTIONS=\"-H posix\"
18829 \$as_ln_s foo directory/bar
18831 tar -cf archive.0 -g db directory
18833 tar -cf archive.1 -g db directory
18837 tar xvfg archive.0 /dev/null --warning=no-timestamp
18839 tar xvfg archive.1 /dev/null --warning=no-timestamp
18841 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
18845 TEST_TAR_FORMAT=posix
18846 export TEST_TAR_FORMAT
18847 TAR_OPTIONS="-H posix"
18852 $as_ln_s foo directory/bar
18854 tar -cf archive.0 -g db directory
18856 tar -cf archive.1 -g db directory
18860 tar xvfg archive.0 /dev/null --warning=no-timestamp
18862 tar xvfg archive.1 /dev/null --warning=no-timestamp
18864 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18865 at_status=$? at_failed=false
18867 at_fn_diff_devnull "$at_stderr" || at_failed=:
18868 echo >>"$at_stdout"; $as_echo "directory/
18872 tar: Deleting 'directory/bar'
18874 $at_diff - "$at_stdout" || at_failed=:
18875 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18876 $at_failed && at_fn_log_failure
18883 $at_times_p && times >"$at_times_file"
18884 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18885 read at_status <"$at_status_file"
18888 at_fn_group_banner 82 'incr02.at:32' \
18889 "restoring timestamps from incremental" " " 11
18891 test -f $XFAILFILE && at_xfail=yes
18893 $as_echo "82. $at_setup_line: testing $at_desc ..."
18901 $as_echo "$at_srcdir/incr02.at:35:
18904 TEST_TAR_FORMAT=gnu
18905 export TEST_TAR_FORMAT
18906 TAR_OPTIONS=\"-H gnu\"
18910 # Create directory structure
18914 genfile --length 10 --file dir/subdir1/file
18916 # Save mtime for later comparison
18917 genfile --stat=mtime dir/subdir1 > ts
18919 # Create an archive. Using incremental mode makes sure the
18920 # archive will have a directory-first member ordering,
18925 # dir/subdir1/foofile
18927 # When restoring from this directory structure, 'dir/subdir2/' used to
18928 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18929 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
18930 # latter clobbered the directory timestamp.
18932 tar -cf archive -g db dir
18934 # Move away the directory
18937 # Wait enough time for timestamps to differ in case of failure.
18940 # Restore the directory
18941 tar -xf archive dir
18943 # Check the timestamp
18944 genfile --stat=mtime dir/subdir1 | diff ts -
18946 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
18950 TEST_TAR_FORMAT=gnu
18951 export TEST_TAR_FORMAT
18952 TAR_OPTIONS="-H gnu"
18956 # Create directory structure
18960 genfile --length 10 --file dir/subdir1/file
18962 # Save mtime for later comparison
18963 genfile --stat=mtime dir/subdir1 > ts
18965 # Create an archive. Using incremental mode makes sure the
18966 # archive will have a directory-first member ordering,
18971 # dir/subdir1/foofile
18973 # When restoring from this directory structure, 'dir/subdir2/' used to
18974 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18975 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
18976 # latter clobbered the directory timestamp.
18978 tar -cf archive -g db dir
18980 # Move away the directory
18983 # Wait enough time for timestamps to differ in case of failure.
18986 # Restore the directory
18987 tar -xf archive dir
18989 # Check the timestamp
18990 genfile --stat=mtime dir/subdir1 | diff ts -
18992 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18993 at_status=$? at_failed=false
18995 at_fn_diff_devnull "$at_stderr" || at_failed=:
18996 at_fn_diff_devnull "$at_stdout" || at_failed=:
18997 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
18998 $at_failed && at_fn_log_failure
19002 $as_echo "$at_srcdir/incr02.at:35:
19005 TEST_TAR_FORMAT=oldgnu
19006 export TEST_TAR_FORMAT
19007 TAR_OPTIONS=\"-H oldgnu\"
19011 # Create directory structure
19015 genfile --length 10 --file dir/subdir1/file
19017 # Save mtime for later comparison
19018 genfile --stat=mtime dir/subdir1 > ts
19020 # Create an archive. Using incremental mode makes sure the
19021 # archive will have a directory-first member ordering,
19026 # dir/subdir1/foofile
19028 # When restoring from this directory structure, 'dir/subdir2/' used to
19029 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19030 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19031 # latter clobbered the directory timestamp.
19033 tar -cf archive -g db dir
19035 # Move away the directory
19038 # Wait enough time for timestamps to differ in case of failure.
19041 # Restore the directory
19042 tar -xf archive dir
19044 # Check the timestamp
19045 genfile --stat=mtime dir/subdir1 | diff ts -
19047 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
19051 TEST_TAR_FORMAT=oldgnu
19052 export TEST_TAR_FORMAT
19053 TAR_OPTIONS="-H oldgnu"
19057 # Create directory structure
19061 genfile --length 10 --file dir/subdir1/file
19063 # Save mtime for later comparison
19064 genfile --stat=mtime dir/subdir1 > ts
19066 # Create an archive. Using incremental mode makes sure the
19067 # archive will have a directory-first member ordering,
19072 # dir/subdir1/foofile
19074 # When restoring from this directory structure, 'dir/subdir2/' used to
19075 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19076 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19077 # latter clobbered the directory timestamp.
19079 tar -cf archive -g db dir
19081 # Move away the directory
19084 # Wait enough time for timestamps to differ in case of failure.
19087 # Restore the directory
19088 tar -xf archive dir
19090 # Check the timestamp
19091 genfile --stat=mtime dir/subdir1 | diff ts -
19093 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19094 at_status=$? at_failed=false
19096 at_fn_diff_devnull "$at_stderr" || at_failed=:
19097 at_fn_diff_devnull "$at_stdout" || at_failed=:
19098 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19099 $at_failed && at_fn_log_failure
19103 $as_echo "$at_srcdir/incr02.at:35:
19106 TEST_TAR_FORMAT=posix
19107 export TEST_TAR_FORMAT
19108 TAR_OPTIONS=\"-H posix\"
19112 # Create directory structure
19116 genfile --length 10 --file dir/subdir1/file
19118 # Save mtime for later comparison
19119 genfile --stat=mtime dir/subdir1 > ts
19121 # Create an archive. Using incremental mode makes sure the
19122 # archive will have a directory-first member ordering,
19127 # dir/subdir1/foofile
19129 # When restoring from this directory structure, 'dir/subdir2/' used to
19130 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19131 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19132 # latter clobbered the directory timestamp.
19134 tar -cf archive -g db dir
19136 # Move away the directory
19139 # Wait enough time for timestamps to differ in case of failure.
19142 # Restore the directory
19143 tar -xf archive dir
19145 # Check the timestamp
19146 genfile --stat=mtime dir/subdir1 | diff ts -
19148 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
19152 TEST_TAR_FORMAT=posix
19153 export TEST_TAR_FORMAT
19154 TAR_OPTIONS="-H posix"
19158 # Create directory structure
19162 genfile --length 10 --file dir/subdir1/file
19164 # Save mtime for later comparison
19165 genfile --stat=mtime dir/subdir1 > ts
19167 # Create an archive. Using incremental mode makes sure the
19168 # archive will have a directory-first member ordering,
19173 # dir/subdir1/foofile
19175 # When restoring from this directory structure, 'dir/subdir2/' used to
19176 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19177 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19178 # latter clobbered the directory timestamp.
19180 tar -cf archive -g db dir
19182 # Move away the directory
19185 # Wait enough time for timestamps to differ in case of failure.
19188 # Restore the directory
19189 tar -xf archive dir
19191 # Check the timestamp
19192 genfile --stat=mtime dir/subdir1 | diff ts -
19194 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19195 at_status=$? at_failed=false
19197 at_fn_diff_devnull "$at_stderr" || at_failed=:
19198 at_fn_diff_devnull "$at_stdout" || at_failed=:
19199 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19200 $at_failed && at_fn_log_failure
19207 $at_times_p && times >"$at_times_file"
19208 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19209 read at_status <"$at_status_file"
19212 at_fn_group_banner 83 'listed01.at:26' \
19213 "--listed for individual files" " " 11
19215 test -f $XFAILFILE && at_xfail=yes
19217 $as_echo "83. $at_setup_line: testing $at_desc ..."
19225 $as_echo "$at_srcdir/listed01.at:29:
19228 TEST_TAR_FORMAT=gnu
19229 export TEST_TAR_FORMAT
19230 TAR_OPTIONS=\"-H gnu\"
19235 genfile --length 10240 --pattern zeros --file directory/file1
19236 # Let the things settle
19240 --file=archive.1 \\
19241 --listed-incremental=listing \\
19244 tar tf archive.1 || exit 1
19248 genfile --length 10240 --pattern zeros --file directory/file2
19251 cp listing listing.old
19253 --file=archive.2 \\
19254 --listed-incremental=listing \\
19255 directory/file* || exit 1
19257 tar tf archive.2 || exit 1
19259 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:29"
19263 TEST_TAR_FORMAT=gnu
19264 export TEST_TAR_FORMAT
19265 TAR_OPTIONS="-H gnu"
19270 genfile --length 10240 --pattern zeros --file directory/file1
19271 # Let the things settle
19276 --listed-incremental=listing \
19279 tar tf archive.1 || exit 1
19283 genfile --length 10240 --pattern zeros --file directory/file2
19286 cp listing listing.old
19289 --listed-incremental=listing \
19290 directory/file* || exit 1
19292 tar tf archive.2 || exit 1
19294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19295 at_status=$? at_failed=false
19297 at_fn_diff_devnull "$at_stderr" || at_failed=:
19298 echo >>"$at_stdout"; $as_echo "directory/file1
19302 $at_diff - "$at_stdout" || at_failed=:
19303 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19304 $at_failed && at_fn_log_failure
19308 $as_echo "$at_srcdir/listed01.at:29:
19311 TEST_TAR_FORMAT=oldgnu
19312 export TEST_TAR_FORMAT
19313 TAR_OPTIONS=\"-H oldgnu\"
19318 genfile --length 10240 --pattern zeros --file directory/file1
19319 # Let the things settle
19323 --file=archive.1 \\
19324 --listed-incremental=listing \\
19327 tar tf archive.1 || exit 1
19331 genfile --length 10240 --pattern zeros --file directory/file2
19334 cp listing listing.old
19336 --file=archive.2 \\
19337 --listed-incremental=listing \\
19338 directory/file* || exit 1
19340 tar tf archive.2 || exit 1
19342 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:29"
19346 TEST_TAR_FORMAT=oldgnu
19347 export TEST_TAR_FORMAT
19348 TAR_OPTIONS="-H oldgnu"
19353 genfile --length 10240 --pattern zeros --file directory/file1
19354 # Let the things settle
19359 --listed-incremental=listing \
19362 tar tf archive.1 || exit 1
19366 genfile --length 10240 --pattern zeros --file directory/file2
19369 cp listing listing.old
19372 --listed-incremental=listing \
19373 directory/file* || exit 1
19375 tar tf archive.2 || exit 1
19377 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19378 at_status=$? at_failed=false
19380 at_fn_diff_devnull "$at_stderr" || at_failed=:
19381 echo >>"$at_stdout"; $as_echo "directory/file1
19385 $at_diff - "$at_stdout" || at_failed=:
19386 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19387 $at_failed && at_fn_log_failure
19394 $at_times_p && times >"$at_times_file"
19395 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19396 read at_status <"$at_status_file"
19399 at_fn_group_banner 84 'listed02.at:28' \
19400 "working --listed" " " 11
19402 test -f $XFAILFILE && at_xfail=yes
19404 $as_echo "84. $at_setup_line: testing $at_desc ..."
19412 $as_echo "$at_srcdir/listed02.at:31:
19415 TEST_TAR_FORMAT=gnu
19416 export TEST_TAR_FORMAT
19417 TAR_OPTIONS=\"-H gnu\"
19422 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
19424 echo Create directories
19433 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19435 echo File \$file > \$file
19440 echo Creating main archive
19441 echo >&2 \"Creating main archive\"
19442 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19444 # The above prints two lines to stderr announcing the new directories c0 and c1.
19445 # Ensure that they appear in this script's stderr in sorted order.
19446 sort err 1>&2; rm -f err
19449 echo Modifying filesystem
19456 echo Directory contents
19457 find tart -print | sort 2>/dev/null
19460 echo Creating incremental archive
19461 echo >&2 \"Creating incremental archive\"
19462 cp -p tart.incr1 tart.incr2
19463 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19468 echo Extracting main archive
19469 echo >&2 \"Extracting main archive\"
19470 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19471 echo Extracting incremental archive
19472 # This command should produce three messages about deletion
19473 # of the existing files, that may appear in any order. Piping
19474 # to sort makes sure we don't depend on any particular ordering.
19475 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19478 find tart -print | sort 2>/dev/null
19480 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:31"
19484 TEST_TAR_FORMAT=gnu
19485 export TEST_TAR_FORMAT
19486 TAR_OPTIONS="-H gnu"
19491 test -z "`sort < /dev/null 2>&1`" || exit 77
19493 echo Create directories
19502 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19504 echo File $file > $file
19509 echo Creating main archive
19510 echo >&2 "Creating main archive"
19511 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19513 # The above prints two lines to stderr announcing the new directories c0 and c1.
19514 # Ensure that they appear in this script's stderr in sorted order.
19515 sort err 1>&2; rm -f err
19518 echo Modifying filesystem
19525 echo Directory contents
19526 find tart -print | sort 2>/dev/null
19529 echo Creating incremental archive
19530 echo >&2 "Creating incremental archive"
19531 cp -p tart.incr1 tart.incr2
19532 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19537 echo Extracting main archive
19538 echo >&2 "Extracting main archive"
19539 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19540 echo Extracting incremental archive
19541 # This command should produce three messages about deletion
19542 # of the existing files, that may appear in any order. Piping
19543 # to sort makes sure we don't depend on any particular ordering.
19544 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19547 find tart -print | sort 2>/dev/null
19549 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19550 at_status=$? at_failed=false
19552 echo >>"$at_stderr"; $as_echo "Creating main archive
19553 tar: tart/c0: Directory is new
19554 tar: tart/c1: Directory is new
19555 tar: tart: Directory is new
19556 Creating incremental archive
19557 tar: tart/c2: Directory has been renamed from 'tart/c1'
19558 Extracting main archive
19560 $at_diff - "$at_stderr" || at_failed=:
19561 echo >>"$at_stdout"; $as_echo "Create directories
19562 Creating main archive
19572 Modifying filesystem
19583 Creating incremental archive
19589 Extracting main archive
19599 Extracting incremental archive
19600 tar: Deleting 'tart/a1'
19601 tar: Deleting 'tart/b1'
19618 $at_diff - "$at_stdout" || at_failed=:
19619 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:31"
19620 $at_failed && at_fn_log_failure
19624 $as_echo "$at_srcdir/listed02.at:31:
19627 TEST_TAR_FORMAT=oldgnu
19628 export TEST_TAR_FORMAT
19629 TAR_OPTIONS=\"-H oldgnu\"
19634 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
19636 echo Create directories
19645 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19647 echo File \$file > \$file
19652 echo Creating main archive
19653 echo >&2 \"Creating main archive\"
19654 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19656 # The above prints two lines to stderr announcing the new directories c0 and c1.
19657 # Ensure that they appear in this script's stderr in sorted order.
19658 sort err 1>&2; rm -f err
19661 echo Modifying filesystem
19668 echo Directory contents
19669 find tart -print | sort 2>/dev/null
19672 echo Creating incremental archive
19673 echo >&2 \"Creating incremental archive\"
19674 cp -p tart.incr1 tart.incr2
19675 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19680 echo Extracting main archive
19681 echo >&2 \"Extracting main archive\"
19682 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19683 echo Extracting incremental archive
19684 # This command should produce three messages about deletion
19685 # of the existing files, that may appear in any order. Piping
19686 # to sort makes sure we don't depend on any particular ordering.
19687 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19690 find tart -print | sort 2>/dev/null
19692 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:31"
19696 TEST_TAR_FORMAT=oldgnu
19697 export TEST_TAR_FORMAT
19698 TAR_OPTIONS="-H oldgnu"
19703 test -z "`sort < /dev/null 2>&1`" || exit 77
19705 echo Create directories
19714 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19716 echo File $file > $file
19721 echo Creating main archive
19722 echo >&2 "Creating main archive"
19723 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19725 # The above prints two lines to stderr announcing the new directories c0 and c1.
19726 # Ensure that they appear in this script's stderr in sorted order.
19727 sort err 1>&2; rm -f err
19730 echo Modifying filesystem
19737 echo Directory contents
19738 find tart -print | sort 2>/dev/null
19741 echo Creating incremental archive
19742 echo >&2 "Creating incremental archive"
19743 cp -p tart.incr1 tart.incr2
19744 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19749 echo Extracting main archive
19750 echo >&2 "Extracting main archive"
19751 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19752 echo Extracting incremental archive
19753 # This command should produce three messages about deletion
19754 # of the existing files, that may appear in any order. Piping
19755 # to sort makes sure we don't depend on any particular ordering.
19756 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19759 find tart -print | sort 2>/dev/null
19761 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19762 at_status=$? at_failed=false
19764 echo >>"$at_stderr"; $as_echo "Creating main archive
19765 tar: tart/c0: Directory is new
19766 tar: tart/c1: Directory is new
19767 tar: tart: Directory is new
19768 Creating incremental archive
19769 tar: tart/c2: Directory has been renamed from 'tart/c1'
19770 Extracting main archive
19772 $at_diff - "$at_stderr" || at_failed=:
19773 echo >>"$at_stdout"; $as_echo "Create directories
19774 Creating main archive
19784 Modifying filesystem
19795 Creating incremental archive
19801 Extracting main archive
19811 Extracting incremental archive
19812 tar: Deleting 'tart/a1'
19813 tar: Deleting 'tart/b1'
19830 $at_diff - "$at_stdout" || at_failed=:
19831 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:31"
19832 $at_failed && at_fn_log_failure
19839 $at_times_p && times >"$at_times_file"
19840 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19841 read at_status <"$at_status_file"
19844 at_fn_group_banner 85 'listed03.at:24' \
19845 "incremental dump when the parent directory is unreadable" "" 11
19847 test -f $XFAILFILE && at_xfail=yes
19849 $as_echo "85. $at_setup_line: testing $at_desc ..."
19857 $as_echo "$at_srcdir/listed03.at:27:
19860 TEST_TAR_FORMAT=gnu
19861 export TEST_TAR_FORMAT
19862 TAR_OPTIONS=\"-H gnu\"
19867 echo \"test\" > \$\$
19869 cat \$\$ > /dev/null 2>&1
19872 test \$result -eq 0 && exit 77
19878 genfile --file dir/sub/a/file
19882 tar -c -f archive.tar --listed-incremental=db.1 -v a
19887 at_fn_check_prepare_notrace 'an embedded newline' "listed03.at:27"
19891 TEST_TAR_FORMAT=gnu
19892 export TEST_TAR_FORMAT
19893 TAR_OPTIONS="-H gnu"
19900 cat $$ > /dev/null 2>&1
19903 test $result -eq 0 && exit 77
19909 genfile --file dir/sub/a/file
19913 tar -c -f archive.tar --listed-incremental=db.1 -v a
19918 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19919 at_status=$? at_failed=false
19921 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
19923 $at_diff - "$at_stderr" || at_failed=:
19924 echo >>"$at_stdout"; $as_echo "a/
19927 $at_diff - "$at_stdout" || at_failed=:
19928 at_fn_check_status 0 $at_status "$at_srcdir/listed03.at:27"
19929 $at_failed && at_fn_log_failure
19936 $at_times_p && times >"$at_times_file"
19937 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19938 read at_status <"$at_status_file"
19941 at_fn_group_banner 86 'listed04.at:26' \
19942 "--listed-incremental and --one-file-system" " " 11
19944 test -f $XFAILFILE && at_xfail=yes
19946 $as_echo "86. $at_setup_line: testing $at_desc ..."
19954 $as_echo "$at_srcdir/listed04.at:29:
19957 TEST_TAR_FORMAT=gnu
19958 export TEST_TAR_FORMAT
19959 TAR_OPTIONS=\"-H gnu\"
19968 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
19969 tar -tf archive.tar || exit
19971 at_fn_check_prepare_notrace 'an embedded newline' "listed04.at:29"
19975 TEST_TAR_FORMAT=gnu
19976 export TEST_TAR_FORMAT
19977 TAR_OPTIONS="-H gnu"
19986 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
19987 tar -tf archive.tar || exit
19989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19990 at_status=$? at_failed=false
19992 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
19994 $at_diff - "$at_stderr" || at_failed=:
19995 echo >>"$at_stdout"; $as_echo "dir/
20002 $at_diff - "$at_stdout" || at_failed=:
20003 at_fn_check_status 0 $at_status "$at_srcdir/listed04.at:29"
20004 $at_failed && at_fn_log_failure
20011 $at_times_p && times >"$at_times_file"
20012 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20013 read at_status <"$at_status_file"
20016 at_fn_group_banner 87 'listed05.at:33' \
20017 "--listed-incremental and remounted directories" " " 11
20019 test -f $XFAILFILE && at_xfail=yes
20021 $as_echo "87. $at_setup_line: testing $at_desc ..."
20029 $as_echo "$at_srcdir/listed05.at:36:
20032 TEST_TAR_FORMAT=gnu
20033 export TEST_TAR_FORMAT
20034 TAR_OPTIONS=\"-H gnu\"
20039 echo \"test\" > \$\$
20041 cat \$\$ > /dev/null 2>&1
20044 test \$result -eq 0 || exit 77
20046 options=\"-C tartest --create --one-file-system --verbose\"
20047 rm -rf archive-01.snar archive-01.tar tartest subdir
20049 # Create initial structure
20051 echo \"hi\" > tartest/top-level-file
20052 mkdir tartest/subdir
20053 echo \"hi\" > tartest/subdir/subdir-file
20056 tar \$options --file archive-0.tar --listed-incremental=archive-0.snar .
20059 mv tartest/subdir .
20060 mkdir tartest/subdir
20061 mount -t ramfs none tartest/subdir || exit 77
20062 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
20065 cp archive-0.snar archive-1.snar
20066 tar \$options --file archive-1.tar --listed-incremental=archive-1.snar .
20068 umount tartest/subdir
20070 at_fn_check_prepare_notrace 'an embedded newline' "listed05.at:36"
20074 TEST_TAR_FORMAT=gnu
20075 export TEST_TAR_FORMAT
20076 TAR_OPTIONS="-H gnu"
20083 cat $$ > /dev/null 2>&1
20086 test $result -eq 0 || exit 77
20088 options="-C tartest --create --one-file-system --verbose"
20089 rm -rf archive-01.snar archive-01.tar tartest subdir
20091 # Create initial structure
20093 echo "hi" > tartest/top-level-file
20094 mkdir tartest/subdir
20095 echo "hi" > tartest/subdir/subdir-file
20098 tar $options --file archive-0.tar --listed-incremental=archive-0.snar .
20101 mv tartest/subdir .
20102 mkdir tartest/subdir
20103 mount -t ramfs none tartest/subdir || exit 77
20104 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
20107 cp archive-0.snar archive-1.snar
20108 tar $options --file archive-1.tar --listed-incremental=archive-1.snar .
20110 umount tartest/subdir
20112 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20113 at_status=$? at_failed=false
20115 echo >>"$at_stderr"; $as_echo "tar: .: Directory is new
20116 tar: ./subdir: Directory is new
20117 tar: ./subdir: directory is on a different filesystem; not dumped
20119 $at_diff - "$at_stderr" || at_failed=:
20120 echo >>"$at_stdout"; $as_echo "# Level 0
20124 ./subdir/subdir-file
20130 $at_diff - "$at_stdout" || at_failed=:
20131 at_fn_check_status 0 $at_status "$at_srcdir/listed05.at:36"
20132 $at_failed && at_fn_log_failure
20139 $at_times_p && times >"$at_times_file"
20140 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20141 read at_status <"$at_status_file"
20144 at_fn_group_banner 88 'incr03.at:28' \
20145 "renamed files in incrementals" " " 11
20147 test -f $XFAILFILE && at_xfail=yes
20149 $as_echo "88. $at_setup_line: testing $at_desc ..."
20157 $as_echo "$at_srcdir/incr03.at:31:
20160 TEST_TAR_FORMAT=gnu
20161 export TEST_TAR_FORMAT
20162 TAR_OPTIONS=\"-H gnu\"
20167 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20170 genfile --file=directory/x
20171 genfile --file=directory/y
20175 tar -cf archive.1 -g db directory
20177 mv directory/x directory/z
20179 tar -cf archive.2 -g db directory
20183 echo Listing of archive.1
20184 tar -tf archive.1 | sort
20185 echo Listing of archive.2
20186 tar -tf archive.2 | sort
20188 echo Directory after first restore
20189 tar -xf archive.1 -g db --warning=no-timestamp
20190 find directory | sort
20192 echo Directory after second restore
20193 tar -xf archive.2 -g db --warning=no-timestamp
20194 find directory | sort
20196 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20200 TEST_TAR_FORMAT=gnu
20201 export TEST_TAR_FORMAT
20202 TAR_OPTIONS="-H gnu"
20207 test -z "`sort < /dev/null 2>&1`" || exit 77
20210 genfile --file=directory/x
20211 genfile --file=directory/y
20215 tar -cf archive.1 -g db directory
20217 mv directory/x directory/z
20219 tar -cf archive.2 -g db directory
20223 echo Listing of archive.1
20224 tar -tf archive.1 | sort
20225 echo Listing of archive.2
20226 tar -tf archive.2 | sort
20228 echo Directory after first restore
20229 tar -xf archive.1 -g db --warning=no-timestamp
20230 find directory | sort
20232 echo Directory after second restore
20233 tar -xf archive.2 -g db --warning=no-timestamp
20234 find directory | sort
20236 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20237 at_status=$? at_failed=false
20239 at_fn_diff_devnull "$at_stderr" || at_failed=:
20240 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20244 Listing of archive.2
20247 Directory after first restore
20251 Directory after second restore
20256 $at_diff - "$at_stdout" || at_failed=:
20257 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20258 $at_failed && at_fn_log_failure
20262 $as_echo "$at_srcdir/incr03.at:31:
20265 TEST_TAR_FORMAT=oldgnu
20266 export TEST_TAR_FORMAT
20267 TAR_OPTIONS=\"-H oldgnu\"
20272 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20275 genfile --file=directory/x
20276 genfile --file=directory/y
20280 tar -cf archive.1 -g db directory
20282 mv directory/x directory/z
20284 tar -cf archive.2 -g db directory
20288 echo Listing of archive.1
20289 tar -tf archive.1 | sort
20290 echo Listing of archive.2
20291 tar -tf archive.2 | sort
20293 echo Directory after first restore
20294 tar -xf archive.1 -g db --warning=no-timestamp
20295 find directory | sort
20297 echo Directory after second restore
20298 tar -xf archive.2 -g db --warning=no-timestamp
20299 find directory | sort
20301 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20305 TEST_TAR_FORMAT=oldgnu
20306 export TEST_TAR_FORMAT
20307 TAR_OPTIONS="-H oldgnu"
20312 test -z "`sort < /dev/null 2>&1`" || exit 77
20315 genfile --file=directory/x
20316 genfile --file=directory/y
20320 tar -cf archive.1 -g db directory
20322 mv directory/x directory/z
20324 tar -cf archive.2 -g db directory
20328 echo Listing of archive.1
20329 tar -tf archive.1 | sort
20330 echo Listing of archive.2
20331 tar -tf archive.2 | sort
20333 echo Directory after first restore
20334 tar -xf archive.1 -g db --warning=no-timestamp
20335 find directory | sort
20337 echo Directory after second restore
20338 tar -xf archive.2 -g db --warning=no-timestamp
20339 find directory | sort
20341 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20342 at_status=$? at_failed=false
20344 at_fn_diff_devnull "$at_stderr" || at_failed=:
20345 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20349 Listing of archive.2
20352 Directory after first restore
20356 Directory after second restore
20361 $at_diff - "$at_stdout" || at_failed=:
20362 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20363 $at_failed && at_fn_log_failure
20367 $as_echo "$at_srcdir/incr03.at:31:
20370 TEST_TAR_FORMAT=posix
20371 export TEST_TAR_FORMAT
20372 TAR_OPTIONS=\"-H posix\"
20377 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20380 genfile --file=directory/x
20381 genfile --file=directory/y
20385 tar -cf archive.1 -g db directory
20387 mv directory/x directory/z
20389 tar -cf archive.2 -g db directory
20393 echo Listing of archive.1
20394 tar -tf archive.1 | sort
20395 echo Listing of archive.2
20396 tar -tf archive.2 | sort
20398 echo Directory after first restore
20399 tar -xf archive.1 -g db --warning=no-timestamp
20400 find directory | sort
20402 echo Directory after second restore
20403 tar -xf archive.2 -g db --warning=no-timestamp
20404 find directory | sort
20406 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20410 TEST_TAR_FORMAT=posix
20411 export TEST_TAR_FORMAT
20412 TAR_OPTIONS="-H posix"
20417 test -z "`sort < /dev/null 2>&1`" || exit 77
20420 genfile --file=directory/x
20421 genfile --file=directory/y
20425 tar -cf archive.1 -g db directory
20427 mv directory/x directory/z
20429 tar -cf archive.2 -g db directory
20433 echo Listing of archive.1
20434 tar -tf archive.1 | sort
20435 echo Listing of archive.2
20436 tar -tf archive.2 | sort
20438 echo Directory after first restore
20439 tar -xf archive.1 -g db --warning=no-timestamp
20440 find directory | sort
20442 echo Directory after second restore
20443 tar -xf archive.2 -g db --warning=no-timestamp
20444 find directory | sort
20446 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20447 at_status=$? at_failed=false
20449 at_fn_diff_devnull "$at_stderr" || at_failed=:
20450 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20454 Listing of archive.2
20457 Directory after first restore
20461 Directory after second restore
20466 $at_diff - "$at_stdout" || at_failed=:
20467 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20468 $at_failed && at_fn_log_failure
20475 $at_times_p && times >"$at_times_file"
20476 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20477 read at_status <"$at_status_file"
20480 at_fn_group_banner 89 'incr04.at:29' \
20481 "proper icontents initialization" " " 11
20483 test -f $XFAILFILE && at_xfail=yes
20485 $as_echo "89. $at_setup_line: testing $at_desc ..."
20495 $as_echo "$at_srcdir/incr04.at:34:
20498 TEST_TAR_FORMAT=gnu
20499 export TEST_TAR_FORMAT
20500 TAR_OPTIONS=\"-H gnu\"
20505 install-sh -d a/b >/dev/null || exit 77
20507 for (i=1;i<=142;i++)
20508 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20509 }' < /dev/null | genfile --files-from -
20513 echo \"Initial dump\"
20514 tar cvf a0.tar -g a.sna a
20516 echo \"Incremental dump\"
20517 tar cvf a1.tar -g a.sna a
20519 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
20523 TEST_TAR_FORMAT=gnu
20524 export TEST_TAR_FORMAT
20525 TAR_OPTIONS="-H gnu"
20530 install-sh -d a/b >/dev/null || exit 77
20532 for (i=1;i<=142;i++)
20533 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20534 }' < /dev/null | genfile --files-from -
20538 echo "Initial dump"
20539 tar cvf a0.tar -g a.sna a
20541 echo "Incremental dump"
20542 tar cvf a1.tar -g a.sna a
20544 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20545 at_status=$? at_failed=false
20547 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20548 tar: a/b: Directory is new
20549 tar: a/c: Directory has been renamed from 'a/b'
20551 $at_diff - "$at_stderr" || at_failed=:
20552 echo >>"$at_stdout"; $as_echo "Initial dump
20555 a/b/one_31_chars_long_file_name_001
20556 a/b/one_31_chars_long_file_name_002
20557 a/b/one_31_chars_long_file_name_003
20558 a/b/one_31_chars_long_file_name_004
20559 a/b/one_31_chars_long_file_name_005
20560 a/b/one_31_chars_long_file_name_006
20561 a/b/one_31_chars_long_file_name_007
20562 a/b/one_31_chars_long_file_name_008
20563 a/b/one_31_chars_long_file_name_009
20564 a/b/one_31_chars_long_file_name_010
20565 a/b/one_31_chars_long_file_name_011
20566 a/b/one_31_chars_long_file_name_012
20567 a/b/one_31_chars_long_file_name_013
20568 a/b/one_31_chars_long_file_name_014
20569 a/b/one_31_chars_long_file_name_015
20570 a/b/one_31_chars_long_file_name_016
20571 a/b/one_31_chars_long_file_name_017
20572 a/b/one_31_chars_long_file_name_018
20573 a/b/one_31_chars_long_file_name_019
20574 a/b/one_31_chars_long_file_name_020
20575 a/b/one_31_chars_long_file_name_021
20576 a/b/one_31_chars_long_file_name_022
20577 a/b/one_31_chars_long_file_name_023
20578 a/b/one_31_chars_long_file_name_024
20579 a/b/one_31_chars_long_file_name_025
20580 a/b/one_31_chars_long_file_name_026
20581 a/b/one_31_chars_long_file_name_027
20582 a/b/one_31_chars_long_file_name_028
20583 a/b/one_31_chars_long_file_name_029
20584 a/b/one_31_chars_long_file_name_030
20585 a/b/one_31_chars_long_file_name_031
20586 a/b/one_31_chars_long_file_name_032
20587 a/b/one_31_chars_long_file_name_033
20588 a/b/one_31_chars_long_file_name_034
20589 a/b/one_31_chars_long_file_name_035
20590 a/b/one_31_chars_long_file_name_036
20591 a/b/one_31_chars_long_file_name_037
20592 a/b/one_31_chars_long_file_name_038
20593 a/b/one_31_chars_long_file_name_039
20594 a/b/one_31_chars_long_file_name_040
20595 a/b/one_31_chars_long_file_name_041
20596 a/b/one_31_chars_long_file_name_042
20597 a/b/one_31_chars_long_file_name_043
20598 a/b/one_31_chars_long_file_name_044
20599 a/b/one_31_chars_long_file_name_045
20600 a/b/one_31_chars_long_file_name_046
20601 a/b/one_31_chars_long_file_name_047
20602 a/b/one_31_chars_long_file_name_048
20603 a/b/one_31_chars_long_file_name_049
20604 a/b/one_31_chars_long_file_name_050
20605 a/b/one_31_chars_long_file_name_051
20606 a/b/one_31_chars_long_file_name_052
20607 a/b/one_31_chars_long_file_name_053
20608 a/b/one_31_chars_long_file_name_054
20609 a/b/one_31_chars_long_file_name_055
20610 a/b/one_31_chars_long_file_name_056
20611 a/b/one_31_chars_long_file_name_057
20612 a/b/one_31_chars_long_file_name_058
20613 a/b/one_31_chars_long_file_name_059
20614 a/b/one_31_chars_long_file_name_060
20615 a/b/one_31_chars_long_file_name_061
20616 a/b/one_31_chars_long_file_name_062
20617 a/b/one_31_chars_long_file_name_063
20618 a/b/one_31_chars_long_file_name_064
20619 a/b/one_31_chars_long_file_name_065
20620 a/b/one_31_chars_long_file_name_066
20621 a/b/one_31_chars_long_file_name_067
20622 a/b/one_31_chars_long_file_name_068
20623 a/b/one_31_chars_long_file_name_069
20624 a/b/one_31_chars_long_file_name_070
20625 a/b/one_31_chars_long_file_name_071
20626 a/b/one_31_chars_long_file_name_072
20627 a/b/one_31_chars_long_file_name_073
20628 a/b/one_31_chars_long_file_name_074
20629 a/b/one_31_chars_long_file_name_075
20630 a/b/one_31_chars_long_file_name_076
20631 a/b/one_31_chars_long_file_name_077
20632 a/b/one_31_chars_long_file_name_078
20633 a/b/one_31_chars_long_file_name_079
20634 a/b/one_31_chars_long_file_name_080
20635 a/b/one_31_chars_long_file_name_081
20636 a/b/one_31_chars_long_file_name_082
20637 a/b/one_31_chars_long_file_name_083
20638 a/b/one_31_chars_long_file_name_084
20639 a/b/one_31_chars_long_file_name_085
20640 a/b/one_31_chars_long_file_name_086
20641 a/b/one_31_chars_long_file_name_087
20642 a/b/one_31_chars_long_file_name_088
20643 a/b/one_31_chars_long_file_name_089
20644 a/b/one_31_chars_long_file_name_090
20645 a/b/one_31_chars_long_file_name_091
20646 a/b/one_31_chars_long_file_name_092
20647 a/b/one_31_chars_long_file_name_093
20648 a/b/one_31_chars_long_file_name_094
20649 a/b/one_31_chars_long_file_name_095
20650 a/b/one_31_chars_long_file_name_096
20651 a/b/one_31_chars_long_file_name_097
20652 a/b/one_31_chars_long_file_name_098
20653 a/b/one_31_chars_long_file_name_099
20654 a/b/one_31_chars_long_file_name_100
20655 a/b/one_31_chars_long_file_name_101
20656 a/b/one_31_chars_long_file_name_102
20657 a/b/one_31_chars_long_file_name_103
20658 a/b/one_31_chars_long_file_name_104
20659 a/b/one_31_chars_long_file_name_105
20660 a/b/one_31_chars_long_file_name_106
20661 a/b/one_31_chars_long_file_name_107
20662 a/b/one_31_chars_long_file_name_108
20663 a/b/one_31_chars_long_file_name_109
20664 a/b/one_31_chars_long_file_name_110
20665 a/b/one_31_chars_long_file_name_111
20666 a/b/one_31_chars_long_file_name_112
20667 a/b/one_31_chars_long_file_name_113
20668 a/b/one_31_chars_long_file_name_114
20669 a/b/one_31_chars_long_file_name_115
20670 a/b/one_31_chars_long_file_name_116
20671 a/b/one_31_chars_long_file_name_117
20672 a/b/one_31_chars_long_file_name_118
20673 a/b/one_31_chars_long_file_name_119
20674 a/b/one_31_chars_long_file_name_120
20675 a/b/one_31_chars_long_file_name_121
20676 a/b/one_31_chars_long_file_name_122
20677 a/b/one_31_chars_long_file_name_123
20678 a/b/one_31_chars_long_file_name_124
20679 a/b/one_31_chars_long_file_name_125
20680 a/b/one_31_chars_long_file_name_126
20681 a/b/one_31_chars_long_file_name_127
20682 a/b/one_31_chars_long_file_name_128
20683 a/b/one_31_chars_long_file_name_129
20684 a/b/one_31_chars_long_file_name_130
20685 a/b/one_31_chars_long_file_name_131
20686 a/b/one_31_chars_long_file_name_132
20687 a/b/one_31_chars_long_file_name_133
20688 a/b/one_31_chars_long_file_name_134
20689 a/b/one_31_chars_long_file_name_135
20690 a/b/one_31_chars_long_file_name_136
20691 a/b/one_31_chars_long_file_name_137
20692 a/b/one_31_chars_long_file_name_138
20693 a/b/one_31_chars_long_file_name_139
20694 a/b/one_31_chars_long_file_name_140
20695 a/b/one_31_chars_long_file_name_141
20696 a/b/one_31_chars_long_file_name_142
20701 $at_diff - "$at_stdout" || at_failed=:
20702 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
20703 $at_failed && at_fn_log_failure
20707 $as_echo "$at_srcdir/incr04.at:34:
20710 TEST_TAR_FORMAT=oldgnu
20711 export TEST_TAR_FORMAT
20712 TAR_OPTIONS=\"-H oldgnu\"
20717 install-sh -d a/b >/dev/null || exit 77
20719 for (i=1;i<=142;i++)
20720 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20721 }' < /dev/null | genfile --files-from -
20725 echo \"Initial dump\"
20726 tar cvf a0.tar -g a.sna a
20728 echo \"Incremental dump\"
20729 tar cvf a1.tar -g a.sna a
20731 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
20735 TEST_TAR_FORMAT=oldgnu
20736 export TEST_TAR_FORMAT
20737 TAR_OPTIONS="-H oldgnu"
20742 install-sh -d a/b >/dev/null || exit 77
20744 for (i=1;i<=142;i++)
20745 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20746 }' < /dev/null | genfile --files-from -
20750 echo "Initial dump"
20751 tar cvf a0.tar -g a.sna a
20753 echo "Incremental dump"
20754 tar cvf a1.tar -g a.sna a
20756 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20757 at_status=$? at_failed=false
20759 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20760 tar: a/b: Directory is new
20761 tar: a/c: Directory has been renamed from 'a/b'
20763 $at_diff - "$at_stderr" || at_failed=:
20764 echo >>"$at_stdout"; $as_echo "Initial dump
20767 a/b/one_31_chars_long_file_name_001
20768 a/b/one_31_chars_long_file_name_002
20769 a/b/one_31_chars_long_file_name_003
20770 a/b/one_31_chars_long_file_name_004
20771 a/b/one_31_chars_long_file_name_005
20772 a/b/one_31_chars_long_file_name_006
20773 a/b/one_31_chars_long_file_name_007
20774 a/b/one_31_chars_long_file_name_008
20775 a/b/one_31_chars_long_file_name_009
20776 a/b/one_31_chars_long_file_name_010
20777 a/b/one_31_chars_long_file_name_011
20778 a/b/one_31_chars_long_file_name_012
20779 a/b/one_31_chars_long_file_name_013
20780 a/b/one_31_chars_long_file_name_014
20781 a/b/one_31_chars_long_file_name_015
20782 a/b/one_31_chars_long_file_name_016
20783 a/b/one_31_chars_long_file_name_017
20784 a/b/one_31_chars_long_file_name_018
20785 a/b/one_31_chars_long_file_name_019
20786 a/b/one_31_chars_long_file_name_020
20787 a/b/one_31_chars_long_file_name_021
20788 a/b/one_31_chars_long_file_name_022
20789 a/b/one_31_chars_long_file_name_023
20790 a/b/one_31_chars_long_file_name_024
20791 a/b/one_31_chars_long_file_name_025
20792 a/b/one_31_chars_long_file_name_026
20793 a/b/one_31_chars_long_file_name_027
20794 a/b/one_31_chars_long_file_name_028
20795 a/b/one_31_chars_long_file_name_029
20796 a/b/one_31_chars_long_file_name_030
20797 a/b/one_31_chars_long_file_name_031
20798 a/b/one_31_chars_long_file_name_032
20799 a/b/one_31_chars_long_file_name_033
20800 a/b/one_31_chars_long_file_name_034
20801 a/b/one_31_chars_long_file_name_035
20802 a/b/one_31_chars_long_file_name_036
20803 a/b/one_31_chars_long_file_name_037
20804 a/b/one_31_chars_long_file_name_038
20805 a/b/one_31_chars_long_file_name_039
20806 a/b/one_31_chars_long_file_name_040
20807 a/b/one_31_chars_long_file_name_041
20808 a/b/one_31_chars_long_file_name_042
20809 a/b/one_31_chars_long_file_name_043
20810 a/b/one_31_chars_long_file_name_044
20811 a/b/one_31_chars_long_file_name_045
20812 a/b/one_31_chars_long_file_name_046
20813 a/b/one_31_chars_long_file_name_047
20814 a/b/one_31_chars_long_file_name_048
20815 a/b/one_31_chars_long_file_name_049
20816 a/b/one_31_chars_long_file_name_050
20817 a/b/one_31_chars_long_file_name_051
20818 a/b/one_31_chars_long_file_name_052
20819 a/b/one_31_chars_long_file_name_053
20820 a/b/one_31_chars_long_file_name_054
20821 a/b/one_31_chars_long_file_name_055
20822 a/b/one_31_chars_long_file_name_056
20823 a/b/one_31_chars_long_file_name_057
20824 a/b/one_31_chars_long_file_name_058
20825 a/b/one_31_chars_long_file_name_059
20826 a/b/one_31_chars_long_file_name_060
20827 a/b/one_31_chars_long_file_name_061
20828 a/b/one_31_chars_long_file_name_062
20829 a/b/one_31_chars_long_file_name_063
20830 a/b/one_31_chars_long_file_name_064
20831 a/b/one_31_chars_long_file_name_065
20832 a/b/one_31_chars_long_file_name_066
20833 a/b/one_31_chars_long_file_name_067
20834 a/b/one_31_chars_long_file_name_068
20835 a/b/one_31_chars_long_file_name_069
20836 a/b/one_31_chars_long_file_name_070
20837 a/b/one_31_chars_long_file_name_071
20838 a/b/one_31_chars_long_file_name_072
20839 a/b/one_31_chars_long_file_name_073
20840 a/b/one_31_chars_long_file_name_074
20841 a/b/one_31_chars_long_file_name_075
20842 a/b/one_31_chars_long_file_name_076
20843 a/b/one_31_chars_long_file_name_077
20844 a/b/one_31_chars_long_file_name_078
20845 a/b/one_31_chars_long_file_name_079
20846 a/b/one_31_chars_long_file_name_080
20847 a/b/one_31_chars_long_file_name_081
20848 a/b/one_31_chars_long_file_name_082
20849 a/b/one_31_chars_long_file_name_083
20850 a/b/one_31_chars_long_file_name_084
20851 a/b/one_31_chars_long_file_name_085
20852 a/b/one_31_chars_long_file_name_086
20853 a/b/one_31_chars_long_file_name_087
20854 a/b/one_31_chars_long_file_name_088
20855 a/b/one_31_chars_long_file_name_089
20856 a/b/one_31_chars_long_file_name_090
20857 a/b/one_31_chars_long_file_name_091
20858 a/b/one_31_chars_long_file_name_092
20859 a/b/one_31_chars_long_file_name_093
20860 a/b/one_31_chars_long_file_name_094
20861 a/b/one_31_chars_long_file_name_095
20862 a/b/one_31_chars_long_file_name_096
20863 a/b/one_31_chars_long_file_name_097
20864 a/b/one_31_chars_long_file_name_098
20865 a/b/one_31_chars_long_file_name_099
20866 a/b/one_31_chars_long_file_name_100
20867 a/b/one_31_chars_long_file_name_101
20868 a/b/one_31_chars_long_file_name_102
20869 a/b/one_31_chars_long_file_name_103
20870 a/b/one_31_chars_long_file_name_104
20871 a/b/one_31_chars_long_file_name_105
20872 a/b/one_31_chars_long_file_name_106
20873 a/b/one_31_chars_long_file_name_107
20874 a/b/one_31_chars_long_file_name_108
20875 a/b/one_31_chars_long_file_name_109
20876 a/b/one_31_chars_long_file_name_110
20877 a/b/one_31_chars_long_file_name_111
20878 a/b/one_31_chars_long_file_name_112
20879 a/b/one_31_chars_long_file_name_113
20880 a/b/one_31_chars_long_file_name_114
20881 a/b/one_31_chars_long_file_name_115
20882 a/b/one_31_chars_long_file_name_116
20883 a/b/one_31_chars_long_file_name_117
20884 a/b/one_31_chars_long_file_name_118
20885 a/b/one_31_chars_long_file_name_119
20886 a/b/one_31_chars_long_file_name_120
20887 a/b/one_31_chars_long_file_name_121
20888 a/b/one_31_chars_long_file_name_122
20889 a/b/one_31_chars_long_file_name_123
20890 a/b/one_31_chars_long_file_name_124
20891 a/b/one_31_chars_long_file_name_125
20892 a/b/one_31_chars_long_file_name_126
20893 a/b/one_31_chars_long_file_name_127
20894 a/b/one_31_chars_long_file_name_128
20895 a/b/one_31_chars_long_file_name_129
20896 a/b/one_31_chars_long_file_name_130
20897 a/b/one_31_chars_long_file_name_131
20898 a/b/one_31_chars_long_file_name_132
20899 a/b/one_31_chars_long_file_name_133
20900 a/b/one_31_chars_long_file_name_134
20901 a/b/one_31_chars_long_file_name_135
20902 a/b/one_31_chars_long_file_name_136
20903 a/b/one_31_chars_long_file_name_137
20904 a/b/one_31_chars_long_file_name_138
20905 a/b/one_31_chars_long_file_name_139
20906 a/b/one_31_chars_long_file_name_140
20907 a/b/one_31_chars_long_file_name_141
20908 a/b/one_31_chars_long_file_name_142
20913 $at_diff - "$at_stdout" || at_failed=:
20914 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
20915 $at_failed && at_fn_log_failure
20919 $as_echo "$at_srcdir/incr04.at:34:
20922 TEST_TAR_FORMAT=posix
20923 export TEST_TAR_FORMAT
20924 TAR_OPTIONS=\"-H posix\"
20929 install-sh -d a/b >/dev/null || exit 77
20931 for (i=1;i<=142;i++)
20932 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20933 }' < /dev/null | genfile --files-from -
20937 echo \"Initial dump\"
20938 tar cvf a0.tar -g a.sna a
20940 echo \"Incremental dump\"
20941 tar cvf a1.tar -g a.sna a
20943 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
20947 TEST_TAR_FORMAT=posix
20948 export TEST_TAR_FORMAT
20949 TAR_OPTIONS="-H posix"
20954 install-sh -d a/b >/dev/null || exit 77
20956 for (i=1;i<=142;i++)
20957 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20958 }' < /dev/null | genfile --files-from -
20962 echo "Initial dump"
20963 tar cvf a0.tar -g a.sna a
20965 echo "Incremental dump"
20966 tar cvf a1.tar -g a.sna a
20968 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20969 at_status=$? at_failed=false
20971 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20972 tar: a/b: Directory is new
20973 tar: a/c: Directory has been renamed from 'a/b'
20975 $at_diff - "$at_stderr" || at_failed=:
20976 echo >>"$at_stdout"; $as_echo "Initial dump
20979 a/b/one_31_chars_long_file_name_001
20980 a/b/one_31_chars_long_file_name_002
20981 a/b/one_31_chars_long_file_name_003
20982 a/b/one_31_chars_long_file_name_004
20983 a/b/one_31_chars_long_file_name_005
20984 a/b/one_31_chars_long_file_name_006
20985 a/b/one_31_chars_long_file_name_007
20986 a/b/one_31_chars_long_file_name_008
20987 a/b/one_31_chars_long_file_name_009
20988 a/b/one_31_chars_long_file_name_010
20989 a/b/one_31_chars_long_file_name_011
20990 a/b/one_31_chars_long_file_name_012
20991 a/b/one_31_chars_long_file_name_013
20992 a/b/one_31_chars_long_file_name_014
20993 a/b/one_31_chars_long_file_name_015
20994 a/b/one_31_chars_long_file_name_016
20995 a/b/one_31_chars_long_file_name_017
20996 a/b/one_31_chars_long_file_name_018
20997 a/b/one_31_chars_long_file_name_019
20998 a/b/one_31_chars_long_file_name_020
20999 a/b/one_31_chars_long_file_name_021
21000 a/b/one_31_chars_long_file_name_022
21001 a/b/one_31_chars_long_file_name_023
21002 a/b/one_31_chars_long_file_name_024
21003 a/b/one_31_chars_long_file_name_025
21004 a/b/one_31_chars_long_file_name_026
21005 a/b/one_31_chars_long_file_name_027
21006 a/b/one_31_chars_long_file_name_028
21007 a/b/one_31_chars_long_file_name_029
21008 a/b/one_31_chars_long_file_name_030
21009 a/b/one_31_chars_long_file_name_031
21010 a/b/one_31_chars_long_file_name_032
21011 a/b/one_31_chars_long_file_name_033
21012 a/b/one_31_chars_long_file_name_034
21013 a/b/one_31_chars_long_file_name_035
21014 a/b/one_31_chars_long_file_name_036
21015 a/b/one_31_chars_long_file_name_037
21016 a/b/one_31_chars_long_file_name_038
21017 a/b/one_31_chars_long_file_name_039
21018 a/b/one_31_chars_long_file_name_040
21019 a/b/one_31_chars_long_file_name_041
21020 a/b/one_31_chars_long_file_name_042
21021 a/b/one_31_chars_long_file_name_043
21022 a/b/one_31_chars_long_file_name_044
21023 a/b/one_31_chars_long_file_name_045
21024 a/b/one_31_chars_long_file_name_046
21025 a/b/one_31_chars_long_file_name_047
21026 a/b/one_31_chars_long_file_name_048
21027 a/b/one_31_chars_long_file_name_049
21028 a/b/one_31_chars_long_file_name_050
21029 a/b/one_31_chars_long_file_name_051
21030 a/b/one_31_chars_long_file_name_052
21031 a/b/one_31_chars_long_file_name_053
21032 a/b/one_31_chars_long_file_name_054
21033 a/b/one_31_chars_long_file_name_055
21034 a/b/one_31_chars_long_file_name_056
21035 a/b/one_31_chars_long_file_name_057
21036 a/b/one_31_chars_long_file_name_058
21037 a/b/one_31_chars_long_file_name_059
21038 a/b/one_31_chars_long_file_name_060
21039 a/b/one_31_chars_long_file_name_061
21040 a/b/one_31_chars_long_file_name_062
21041 a/b/one_31_chars_long_file_name_063
21042 a/b/one_31_chars_long_file_name_064
21043 a/b/one_31_chars_long_file_name_065
21044 a/b/one_31_chars_long_file_name_066
21045 a/b/one_31_chars_long_file_name_067
21046 a/b/one_31_chars_long_file_name_068
21047 a/b/one_31_chars_long_file_name_069
21048 a/b/one_31_chars_long_file_name_070
21049 a/b/one_31_chars_long_file_name_071
21050 a/b/one_31_chars_long_file_name_072
21051 a/b/one_31_chars_long_file_name_073
21052 a/b/one_31_chars_long_file_name_074
21053 a/b/one_31_chars_long_file_name_075
21054 a/b/one_31_chars_long_file_name_076
21055 a/b/one_31_chars_long_file_name_077
21056 a/b/one_31_chars_long_file_name_078
21057 a/b/one_31_chars_long_file_name_079
21058 a/b/one_31_chars_long_file_name_080
21059 a/b/one_31_chars_long_file_name_081
21060 a/b/one_31_chars_long_file_name_082
21061 a/b/one_31_chars_long_file_name_083
21062 a/b/one_31_chars_long_file_name_084
21063 a/b/one_31_chars_long_file_name_085
21064 a/b/one_31_chars_long_file_name_086
21065 a/b/one_31_chars_long_file_name_087
21066 a/b/one_31_chars_long_file_name_088
21067 a/b/one_31_chars_long_file_name_089
21068 a/b/one_31_chars_long_file_name_090
21069 a/b/one_31_chars_long_file_name_091
21070 a/b/one_31_chars_long_file_name_092
21071 a/b/one_31_chars_long_file_name_093
21072 a/b/one_31_chars_long_file_name_094
21073 a/b/one_31_chars_long_file_name_095
21074 a/b/one_31_chars_long_file_name_096
21075 a/b/one_31_chars_long_file_name_097
21076 a/b/one_31_chars_long_file_name_098
21077 a/b/one_31_chars_long_file_name_099
21078 a/b/one_31_chars_long_file_name_100
21079 a/b/one_31_chars_long_file_name_101
21080 a/b/one_31_chars_long_file_name_102
21081 a/b/one_31_chars_long_file_name_103
21082 a/b/one_31_chars_long_file_name_104
21083 a/b/one_31_chars_long_file_name_105
21084 a/b/one_31_chars_long_file_name_106
21085 a/b/one_31_chars_long_file_name_107
21086 a/b/one_31_chars_long_file_name_108
21087 a/b/one_31_chars_long_file_name_109
21088 a/b/one_31_chars_long_file_name_110
21089 a/b/one_31_chars_long_file_name_111
21090 a/b/one_31_chars_long_file_name_112
21091 a/b/one_31_chars_long_file_name_113
21092 a/b/one_31_chars_long_file_name_114
21093 a/b/one_31_chars_long_file_name_115
21094 a/b/one_31_chars_long_file_name_116
21095 a/b/one_31_chars_long_file_name_117
21096 a/b/one_31_chars_long_file_name_118
21097 a/b/one_31_chars_long_file_name_119
21098 a/b/one_31_chars_long_file_name_120
21099 a/b/one_31_chars_long_file_name_121
21100 a/b/one_31_chars_long_file_name_122
21101 a/b/one_31_chars_long_file_name_123
21102 a/b/one_31_chars_long_file_name_124
21103 a/b/one_31_chars_long_file_name_125
21104 a/b/one_31_chars_long_file_name_126
21105 a/b/one_31_chars_long_file_name_127
21106 a/b/one_31_chars_long_file_name_128
21107 a/b/one_31_chars_long_file_name_129
21108 a/b/one_31_chars_long_file_name_130
21109 a/b/one_31_chars_long_file_name_131
21110 a/b/one_31_chars_long_file_name_132
21111 a/b/one_31_chars_long_file_name_133
21112 a/b/one_31_chars_long_file_name_134
21113 a/b/one_31_chars_long_file_name_135
21114 a/b/one_31_chars_long_file_name_136
21115 a/b/one_31_chars_long_file_name_137
21116 a/b/one_31_chars_long_file_name_138
21117 a/b/one_31_chars_long_file_name_139
21118 a/b/one_31_chars_long_file_name_140
21119 a/b/one_31_chars_long_file_name_141
21120 a/b/one_31_chars_long_file_name_142
21125 $at_diff - "$at_stdout" || at_failed=:
21126 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21127 $at_failed && at_fn_log_failure
21135 $at_times_p && times >"$at_times_file"
21136 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21137 read at_status <"$at_status_file"
21140 at_fn_group_banner 90 'incr05.at:21' \
21141 "incremental dumps with -C" " " 11
21143 test -f $XFAILFILE && at_xfail=yes
21145 $as_echo "90. $at_setup_line: testing $at_desc ..."
21153 $as_echo "$at_srcdir/incr05.at:24:
21156 TEST_TAR_FORMAT=gnu
21157 export TEST_TAR_FORMAT
21158 TAR_OPTIONS=\"-H gnu\"
21164 genfile --file dir/file1
21165 genfile --file dir/sub/file2
21168 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21170 genfile --file dir/file3
21172 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21174 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21178 TEST_TAR_FORMAT=gnu
21179 export TEST_TAR_FORMAT
21180 TAR_OPTIONS="-H gnu"
21186 genfile --file dir/file1
21187 genfile --file dir/sub/file2
21190 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21192 genfile --file dir/file3
21194 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21197 at_status=$? at_failed=false
21199 at_fn_diff_devnull "$at_stderr" || at_failed=:
21200 echo >>"$at_stdout"; $as_echo "Level 0
21210 $at_diff - "$at_stdout" || at_failed=:
21211 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
21212 $at_failed && at_fn_log_failure
21216 $as_echo "$at_srcdir/incr05.at:24:
21219 TEST_TAR_FORMAT=oldgnu
21220 export TEST_TAR_FORMAT
21221 TAR_OPTIONS=\"-H oldgnu\"
21227 genfile --file dir/file1
21228 genfile --file dir/sub/file2
21231 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21233 genfile --file dir/file3
21235 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21237 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21241 TEST_TAR_FORMAT=oldgnu
21242 export TEST_TAR_FORMAT
21243 TAR_OPTIONS="-H oldgnu"
21249 genfile --file dir/file1
21250 genfile --file dir/sub/file2
21253 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21255 genfile --file dir/file3
21257 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21260 at_status=$? at_failed=false
21262 at_fn_diff_devnull "$at_stderr" || at_failed=:
21263 echo >>"$at_stdout"; $as_echo "Level 0
21273 $at_diff - "$at_stdout" || at_failed=:
21274 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
21275 $at_failed && at_fn_log_failure
21279 $as_echo "$at_srcdir/incr05.at:24:
21282 TEST_TAR_FORMAT=posix
21283 export TEST_TAR_FORMAT
21284 TAR_OPTIONS=\"-H posix\"
21290 genfile --file dir/file1
21291 genfile --file dir/sub/file2
21294 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21296 genfile --file dir/file3
21298 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21300 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21304 TEST_TAR_FORMAT=posix
21305 export TEST_TAR_FORMAT
21306 TAR_OPTIONS="-H posix"
21312 genfile --file dir/file1
21313 genfile --file dir/sub/file2
21316 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21318 genfile --file dir/file3
21320 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21323 at_status=$? at_failed=false
21325 at_fn_diff_devnull "$at_stderr" || at_failed=:
21326 echo >>"$at_stdout"; $as_echo "Level 0
21336 $at_diff - "$at_stdout" || at_failed=:
21337 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
21338 $at_failed && at_fn_log_failure
21345 $at_times_p && times >"$at_times_file"
21346 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21347 read at_status <"$at_status_file"
21350 at_fn_group_banner 91 'incr06.at:21' \
21351 "incremental dumps of nested directories" " " 11
21353 test -f $XFAILFILE && at_xfail=yes
21355 $as_echo "91. $at_setup_line: testing $at_desc ..."
21363 $as_echo "$at_srcdir/incr06.at:24:
21366 TEST_TAR_FORMAT=gnu
21367 export TEST_TAR_FORMAT
21368 TAR_OPTIONS=\"-H gnu\"
21376 genfile --file dir/file1
21377 genfile --file dir/sub/file2
21378 genfile --file dir/sub/a/file3
21381 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21383 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21386 genfile --file dir/sub/b/file4
21389 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21391 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21393 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
21397 TEST_TAR_FORMAT=gnu
21398 export TEST_TAR_FORMAT
21399 TAR_OPTIONS="-H gnu"
21407 genfile --file dir/file1
21408 genfile --file dir/sub/file2
21409 genfile --file dir/sub/a/file3
21412 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21414 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21417 genfile --file dir/sub/b/file4
21420 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21422 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21424 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21425 at_status=$? at_failed=false
21427 at_fn_diff_devnull "$at_stderr" || at_failed=:
21428 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21459 $at_diff - "$at_stdout" || at_failed=:
21460 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
21461 $at_failed && at_fn_log_failure
21465 $as_echo "$at_srcdir/incr06.at:24:
21468 TEST_TAR_FORMAT=oldgnu
21469 export TEST_TAR_FORMAT
21470 TAR_OPTIONS=\"-H oldgnu\"
21478 genfile --file dir/file1
21479 genfile --file dir/sub/file2
21480 genfile --file dir/sub/a/file3
21483 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21485 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21488 genfile --file dir/sub/b/file4
21491 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21493 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21495 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
21499 TEST_TAR_FORMAT=oldgnu
21500 export TEST_TAR_FORMAT
21501 TAR_OPTIONS="-H oldgnu"
21509 genfile --file dir/file1
21510 genfile --file dir/sub/file2
21511 genfile --file dir/sub/a/file3
21514 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21516 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21519 genfile --file dir/sub/b/file4
21522 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21524 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21527 at_status=$? at_failed=false
21529 at_fn_diff_devnull "$at_stderr" || at_failed=:
21530 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21561 $at_diff - "$at_stdout" || at_failed=:
21562 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
21563 $at_failed && at_fn_log_failure
21567 $as_echo "$at_srcdir/incr06.at:24:
21570 TEST_TAR_FORMAT=posix
21571 export TEST_TAR_FORMAT
21572 TAR_OPTIONS=\"-H posix\"
21580 genfile --file dir/file1
21581 genfile --file dir/sub/file2
21582 genfile --file dir/sub/a/file3
21585 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21587 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21590 genfile --file dir/sub/b/file4
21593 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21595 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21597 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
21601 TEST_TAR_FORMAT=posix
21602 export TEST_TAR_FORMAT
21603 TAR_OPTIONS="-H posix"
21611 genfile --file dir/file1
21612 genfile --file dir/sub/file2
21613 genfile --file dir/sub/a/file3
21616 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21618 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21621 genfile --file dir/sub/b/file4
21624 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21626 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21628 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21629 at_status=$? at_failed=false
21631 at_fn_diff_devnull "$at_stderr" || at_failed=:
21632 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21663 $at_diff - "$at_stdout" || at_failed=:
21664 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
21665 $at_failed && at_fn_log_failure
21672 $at_times_p && times >"$at_times_file"
21673 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21674 read at_status <"$at_status_file"
21677 at_fn_group_banner 92 'incr07.at:18' \
21678 "incremental restores with -C" " " 11
21680 test -f $XFAILFILE && at_xfail=yes
21682 $as_echo "92. $at_setup_line: testing $at_desc ..."
21687 # Tar 1.26 had problems extracting from incremental restores when given
21688 # the -C option. The code in incremen.c:try_purge_directory and
21689 # misc.c:remove_any_file was using savedir(), which ignored eventual changes
21690 # in the current working directory and caused the malfunctioning.
21692 # The problem was reported by Piotr Rotter on 2013-03-22.
21694 # This testcase is based on scripts provided by Piotr Rotter and Nathan
21695 # Stratton Treadway.
21697 # References: <514C8F56.90900@active24.pl>,
21698 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00036.html,
21699 # <20130326181922.GZ3732@shire.ontko.com>,
21700 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00042.html,
21701 # <20130327051828.GA3732@shire.ontko.com>,
21702 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00043.html,
21703 # <20130327054957.GB3732@shire.ontko.com>,
21704 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00044.html
21709 $as_echo "$at_srcdir/incr07.at:40:
21712 TEST_TAR_FORMAT=gnu
21713 export TEST_TAR_FORMAT
21714 TAR_OPTIONS=\"-H gnu\"
21723 tar -g test.snar -vcf test.0.tar A
21727 tar -g test.snar -vcf test.1.tar A
21731 tar -g test.snar -vcf test.2.tar A
21737 tar -g test.snar -vxf test.0.tar -C ext/
21739 tar -g test.snar -vxf test.1.tar -C ext/
21742 tar -g test.snar -vxf test.2.tar -C ext/
21748 tar -g test.snar -vxf test.2.tar -C ext/
21751 test -d A && echo >&2 \"toplevel A exists\"
21754 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
21758 TEST_TAR_FORMAT=gnu
21759 export TEST_TAR_FORMAT
21760 TAR_OPTIONS="-H gnu"
21769 tar -g test.snar -vcf test.0.tar A
21773 tar -g test.snar -vcf test.1.tar A
21777 tar -g test.snar -vcf test.2.tar A
21783 tar -g test.snar -vxf test.0.tar -C ext/
21785 tar -g test.snar -vxf test.1.tar -C ext/
21788 tar -g test.snar -vxf test.2.tar -C ext/
21794 tar -g test.snar -vxf test.2.tar -C ext/
21797 test -d A && echo >&2 "toplevel A exists"
21800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21801 at_status=$? at_failed=false
21803 echo >>"$at_stderr"; $as_echo "C0
21804 tar: A: Directory is new
21812 $at_diff - "$at_stderr" || at_failed=:
21813 echo >>"$at_stdout"; $as_echo "C0
21831 tar: Deleting 'A/a'
21834 tar: Deleting 'A/B'
21837 $at_diff - "$at_stdout" || at_failed=:
21838 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
21839 $at_failed && at_fn_log_failure
21843 $as_echo "$at_srcdir/incr07.at:40:
21846 TEST_TAR_FORMAT=oldgnu
21847 export TEST_TAR_FORMAT
21848 TAR_OPTIONS=\"-H oldgnu\"
21857 tar -g test.snar -vcf test.0.tar A
21861 tar -g test.snar -vcf test.1.tar A
21865 tar -g test.snar -vcf test.2.tar A
21871 tar -g test.snar -vxf test.0.tar -C ext/
21873 tar -g test.snar -vxf test.1.tar -C ext/
21876 tar -g test.snar -vxf test.2.tar -C ext/
21882 tar -g test.snar -vxf test.2.tar -C ext/
21885 test -d A && echo >&2 \"toplevel A exists\"
21888 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
21892 TEST_TAR_FORMAT=oldgnu
21893 export TEST_TAR_FORMAT
21894 TAR_OPTIONS="-H oldgnu"
21903 tar -g test.snar -vcf test.0.tar A
21907 tar -g test.snar -vcf test.1.tar A
21911 tar -g test.snar -vcf test.2.tar A
21917 tar -g test.snar -vxf test.0.tar -C ext/
21919 tar -g test.snar -vxf test.1.tar -C ext/
21922 tar -g test.snar -vxf test.2.tar -C ext/
21928 tar -g test.snar -vxf test.2.tar -C ext/
21931 test -d A && echo >&2 "toplevel A exists"
21934 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21935 at_status=$? at_failed=false
21937 echo >>"$at_stderr"; $as_echo "C0
21938 tar: A: Directory is new
21946 $at_diff - "$at_stderr" || at_failed=:
21947 echo >>"$at_stdout"; $as_echo "C0
21965 tar: Deleting 'A/a'
21968 tar: Deleting 'A/B'
21971 $at_diff - "$at_stdout" || at_failed=:
21972 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
21973 $at_failed && at_fn_log_failure
21977 $as_echo "$at_srcdir/incr07.at:40:
21980 TEST_TAR_FORMAT=posix
21981 export TEST_TAR_FORMAT
21982 TAR_OPTIONS=\"-H posix\"
21991 tar -g test.snar -vcf test.0.tar A
21995 tar -g test.snar -vcf test.1.tar A
21999 tar -g test.snar -vcf test.2.tar A
22005 tar -g test.snar -vxf test.0.tar -C ext/
22007 tar -g test.snar -vxf test.1.tar -C ext/
22010 tar -g test.snar -vxf test.2.tar -C ext/
22016 tar -g test.snar -vxf test.2.tar -C ext/
22019 test -d A && echo >&2 \"toplevel A exists\"
22022 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
22026 TEST_TAR_FORMAT=posix
22027 export TEST_TAR_FORMAT
22028 TAR_OPTIONS="-H posix"
22037 tar -g test.snar -vcf test.0.tar A
22041 tar -g test.snar -vcf test.1.tar A
22045 tar -g test.snar -vcf test.2.tar A
22051 tar -g test.snar -vxf test.0.tar -C ext/
22053 tar -g test.snar -vxf test.1.tar -C ext/
22056 tar -g test.snar -vxf test.2.tar -C ext/
22062 tar -g test.snar -vxf test.2.tar -C ext/
22065 test -d A && echo >&2 "toplevel A exists"
22068 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22069 at_status=$? at_failed=false
22071 echo >>"$at_stderr"; $as_echo "C0
22072 tar: A: Directory is new
22080 $at_diff - "$at_stderr" || at_failed=:
22081 echo >>"$at_stdout"; $as_echo "C0
22099 tar: Deleting 'A/a'
22102 tar: Deleting 'A/B'
22105 $at_diff - "$at_stdout" || at_failed=:
22106 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
22107 $at_failed && at_fn_log_failure
22114 $at_times_p && times >"$at_times_file"
22115 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22116 read at_status <"$at_status_file"
22119 at_fn_group_banner 93 'incr08.at:38' \
22120 "filename normalization" " " 11
22122 test -f $XFAILFILE && at_xfail=yes
22124 $as_echo "93. $at_setup_line: testing $at_desc ..."
22132 $as_echo "$at_srcdir/incr08.at:41:
22135 TEST_TAR_FORMAT=gnu
22136 export TEST_TAR_FORMAT
22137 TAR_OPTIONS=\"-H gnu\"
22142 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22148 mkdir foo/subdir/dir1
22156 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . \$DIR 2>../err |\\
22157 sed \"s|\$DIR|ABSPATH|\"
22158 sed \"s|\$DIR|ABSPATH|\" ../err >&2
22160 at_fn_check_prepare_notrace 'a `...` command substitution' "incr08.at:41"
22164 TEST_TAR_FORMAT=gnu
22165 export TEST_TAR_FORMAT
22166 TAR_OPTIONS="-H gnu"
22171 test -z "`sort < /dev/null 2>&1`" || exit 77
22177 mkdir foo/subdir/dir1
22185 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . $DIR 2>../err |\
22186 sed "s|$DIR|ABSPATH|"
22187 sed "s|$DIR|ABSPATH|" ../err >&2
22189 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22190 at_status=$? at_failed=false
22192 echo >>"$at_stderr"; $as_echo "A
22194 tar: .: Directory is new
22195 tar: ./subdir: Directory is new
22196 tar: ./subdir/dir1: Directory is new
22197 tar: ABSPATH: Directory is new
22198 tar: ABSPATH/subdir: Directory is new
22199 tar: ABSPATH/subdir/dir2: Directory is new
22200 tar: Removing leading \`/' from member names
22202 $at_diff - "$at_stderr" || at_failed=:
22203 echo >>"$at_stdout"; $as_echo "A
22216 ABSPATH/subdir/dir2/
22218 $at_diff - "$at_stdout" || at_failed=:
22219 at_fn_check_status 0 $at_status "$at_srcdir/incr08.at:41"
22220 $at_failed && at_fn_log_failure
22227 $at_times_p && times >"$at_times_file"
22228 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22229 read at_status <"$at_status_file"
22232 at_fn_group_banner 94 'incr09.at:26' \
22233 "incremental with alternating -C" " " 11
22235 test -f $XFAILFILE && at_xfail=yes
22237 $as_echo "94. $at_setup_line: testing $at_desc ..."
22245 $as_echo "$at_srcdir/incr09.at:29:
22248 TEST_TAR_FORMAT=gnu
22249 export TEST_TAR_FORMAT
22250 TAR_OPTIONS=\"-H gnu\"
22255 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22257 mkdir foo bar middle
22258 echo foo/foo_file > foo/foo_file
22259 echo bar/bar_file > bar/bar_file
22260 echo middle/file > middle/middle_file
22262 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` middle -C bar .
22267 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` toplevel_file -C bar .
22269 at_fn_check_prepare_notrace 'a `...` command substitution' "incr09.at:29"
22273 TEST_TAR_FORMAT=gnu
22274 export TEST_TAR_FORMAT
22275 TAR_OPTIONS="-H gnu"
22280 test -z "`sort < /dev/null 2>&1`" || exit 77
22282 mkdir foo bar middle
22283 echo foo/foo_file > foo/foo_file
22284 echo bar/bar_file > bar/bar_file
22285 echo middle/file > middle/middle_file
22287 tar -cvf foo.tar --incremental -C foo . -C `pwd` middle -C bar .
22292 tar -cvf foo.tar --incremental -C foo . -C `pwd` toplevel_file -C bar .
22294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22295 at_status=$? at_failed=false
22297 echo >>"$at_stderr"; $as_echo "A
22298 tar: .: Directory is new
22299 tar: middle: Directory is new
22300 tar: .: Directory is new
22302 tar: .: Directory is new
22303 tar: .: Directory is new
22305 $at_diff - "$at_stderr" || at_failed=:
22306 echo >>"$at_stdout"; $as_echo "A
22320 $at_diff - "$at_stdout" || at_failed=:
22321 at_fn_check_status 0 $at_status "$at_srcdir/incr09.at:29"
22322 $at_failed && at_fn_log_failure
22329 $at_times_p && times >"$at_times_file"
22330 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22331 read at_status <"$at_status_file"
22334 at_fn_group_banner 95 'filerem01.at:36' \
22335 "file removed as we read it (ca. 22 seconds)" " " 12
22337 test -f $XFAILFILE && at_xfail=yes
22339 $as_echo "95. $at_setup_line: testing $at_desc ..."
22347 $as_echo "$at_srcdir/filerem01.at:39:
22350 TEST_TAR_FORMAT=gnu
22351 export TEST_TAR_FORMAT
22352 TAR_OPTIONS=\"-H gnu\"
22358 genfile --file dir/file1
22359 genfile --file dir/sub/file2
22361 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22362 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22363 --checkpoint-action='echo' -c -f archive.tar \\
22364 --listed-incremental db -v dir >/dev/null
22366 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
22370 TEST_TAR_FORMAT=gnu
22371 export TEST_TAR_FORMAT
22372 TAR_OPTIONS="-H gnu"
22378 genfile --file dir/file1
22379 genfile --file dir/sub/file2
22381 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22382 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22383 --checkpoint-action='echo' -c -f archive.tar \
22384 --listed-incremental db -v dir >/dev/null
22386 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22387 at_status=$? at_failed=false
22389 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22390 tar: dir/sub: Directory is new
22391 tar: dir/file1: File removed before we read it
22393 $at_diff - "$at_stderr" || at_failed=:
22394 echo stdout:; cat "$at_stdout"
22395 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
22396 $at_failed && at_fn_log_failure
22400 $as_echo "$at_srcdir/filerem01.at:39:
22403 TEST_TAR_FORMAT=posix
22404 export TEST_TAR_FORMAT
22405 TAR_OPTIONS=\"-H posix\"
22411 genfile --file dir/file1
22412 genfile --file dir/sub/file2
22414 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22415 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22416 --checkpoint-action='echo' -c -f archive.tar \\
22417 --listed-incremental db -v dir >/dev/null
22419 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
22423 TEST_TAR_FORMAT=posix
22424 export TEST_TAR_FORMAT
22425 TAR_OPTIONS="-H posix"
22431 genfile --file dir/file1
22432 genfile --file dir/sub/file2
22434 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22435 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22436 --checkpoint-action='echo' -c -f archive.tar \
22437 --listed-incremental db -v dir >/dev/null
22439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22440 at_status=$? at_failed=false
22442 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22443 tar: dir/sub: Directory is new
22444 tar: dir/file1: File removed before we read it
22446 $at_diff - "$at_stderr" || at_failed=:
22447 echo stdout:; cat "$at_stdout"
22448 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
22449 $at_failed && at_fn_log_failure
22455 # Timing information:
22457 # For -Hgnu the above command line takes about 8 seconds to execute and
22460 # tar: dir: Directory is new
22461 # tar: dir/sub: Directory is new
22463 # tar: Write checkpoint 1
22464 # tar: Write checkpoint 2
22466 # tar: Write checkpoint 3
22467 # tar: Write checkpoint 4
22469 # tar: Write checkpoint 5
22471 # tar: Write checkpoint 6
22472 # tar: Write checkpoint 7
22473 # tar: Write checkpoint 8
22475 # For -Hposix the above command line takes about 14 seconds to execute and
22478 # ./tar: dir: Directory is new
22479 # ./tar: dir/sub: Directory is new
22481 # ./tar: Write checkpoint 1
22482 # ./tar: Write checkpoint 2
22483 # ./tar: Write checkpoint 3
22485 # ./tar: Write checkpoint 4
22486 # ./tar: Write checkpoint 5
22487 # ./tar: Write checkpoint 6
22489 # ./tar: Write checkpoint 7
22490 # ./tar: Write checkpoint 8
22491 # ./tar: Write checkpoint 9
22493 # ./tar: Write checkpoint 10
22494 # ./tar: Write checkpoint 11
22495 # ./tar: Write checkpoint 12
22496 # ./tar: Write checkpoint 13
22497 # ./tar: Write checkpoint 14
22501 $at_times_p && times >"$at_times_file"
22502 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22503 read at_status <"$at_status_file"
22506 at_fn_group_banner 96 'filerem02.at:26' \
22507 "toplevel file removed (ca. 24 seconds)" " " 12
22509 test -f $XFAILFILE && at_xfail=yes
22511 $as_echo "96. $at_setup_line: testing $at_desc ..."
22519 $as_echo "$at_srcdir/filerem02.at:29:
22522 TEST_TAR_FORMAT=gnu
22523 export TEST_TAR_FORMAT
22524 TAR_OPTIONS=\"-H gnu\"
22530 genfile --file dir/file1
22531 genfile --file dir/sub/file2
22533 genfile --file dir2/file1
22535 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22536 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22537 --checkpoint-action='echo' -c -f archive.tar \\
22538 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22540 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
22544 TEST_TAR_FORMAT=gnu
22545 export TEST_TAR_FORMAT
22546 TAR_OPTIONS="-H gnu"
22552 genfile --file dir/file1
22553 genfile --file dir/sub/file2
22555 genfile --file dir2/file1
22557 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22558 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22559 --checkpoint-action='echo' -c -f archive.tar \
22560 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22562 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22563 at_status=$? at_failed=false
22565 echo stderr:; cat "$at_stderr"
22566 echo stdout:; cat "$at_stdout"
22567 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
22568 $at_failed && at_fn_log_failure
22572 $as_echo "$at_srcdir/filerem02.at:29:
22575 TEST_TAR_FORMAT=posix
22576 export TEST_TAR_FORMAT
22577 TAR_OPTIONS=\"-H posix\"
22583 genfile --file dir/file1
22584 genfile --file dir/sub/file2
22586 genfile --file dir2/file1
22588 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22589 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22590 --checkpoint-action='echo' -c -f archive.tar \\
22591 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22593 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
22597 TEST_TAR_FORMAT=posix
22598 export TEST_TAR_FORMAT
22599 TAR_OPTIONS="-H posix"
22605 genfile --file dir/file1
22606 genfile --file dir/sub/file2
22608 genfile --file dir2/file1
22610 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22611 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22612 --checkpoint-action='echo' -c -f archive.tar \
22613 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22615 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22616 at_status=$? at_failed=false
22618 echo stderr:; cat "$at_stderr"
22619 echo stdout:; cat "$at_stdout"
22620 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
22621 $at_failed && at_fn_log_failure
22627 # Ignore stdout and stderr because their contents depend on
22628 # the file system implementation.
22630 # Timing information: see filerem01.at
22633 $at_times_p && times >"$at_times_file"
22634 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22635 read at_status <"$at_status_file"
22638 at_fn_group_banner 97 'rename01.at:24' \
22639 "renamed dirs in incrementals" " " 13
22641 test -f $XFAILFILE && at_xfail=yes
22643 $as_echo "97. $at_setup_line: testing $at_desc ..."
22651 $as_echo "$at_srcdir/rename01.at:27:
22654 TEST_TAR_FORMAT=gnu
22655 export TEST_TAR_FORMAT
22656 TAR_OPTIONS=\"-H gnu\"
22661 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22665 genfile --file foo/file1
22666 genfile --file foo/file2
22668 genfile --file foo/bar/file
22670 echo \"Creating base archive\"
22671 tar -g incr -cf arch.1 -v foo
22675 echo \"Creating incremental archive\"
22676 tar -g incr -cf arch.2 -v foo
22680 tar xfg arch.1 /dev/null
22682 echo \"Begin directory listing 1\"
22684 echo \"End directory listing 1\"
22686 tar xfg arch.2 /dev/null
22687 echo Begin directory listing 2
22689 echo End directory listing 2
22691 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
22695 TEST_TAR_FORMAT=gnu
22696 export TEST_TAR_FORMAT
22697 TAR_OPTIONS="-H gnu"
22702 test -z "`sort < /dev/null 2>&1`" || exit 77
22706 genfile --file foo/file1
22707 genfile --file foo/file2
22709 genfile --file foo/bar/file
22711 echo "Creating base archive"
22712 tar -g incr -cf arch.1 -v foo
22716 echo "Creating incremental archive"
22717 tar -g incr -cf arch.2 -v foo
22721 tar xfg arch.1 /dev/null
22723 echo "Begin directory listing 1"
22725 echo "End directory listing 1"
22727 tar xfg arch.2 /dev/null
22728 echo Begin directory listing 2
22730 echo End directory listing 2
22732 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22733 at_status=$? at_failed=false
22735 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22736 tar: foo/bar: Directory is new
22737 tar: foo/baz: Directory has been renamed from 'foo/bar'
22739 $at_diff - "$at_stderr" || at_failed=:
22740 echo >>"$at_stdout"; $as_echo "Creating base archive
22746 Creating incremental archive
22749 Begin directory listing 1
22755 End directory listing 1
22756 Begin directory listing 2
22762 End directory listing 2
22764 $at_diff - "$at_stdout" || at_failed=:
22765 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
22766 $at_failed && at_fn_log_failure
22770 $as_echo "$at_srcdir/rename01.at:27:
22773 TEST_TAR_FORMAT=oldgnu
22774 export TEST_TAR_FORMAT
22775 TAR_OPTIONS=\"-H oldgnu\"
22780 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22784 genfile --file foo/file1
22785 genfile --file foo/file2
22787 genfile --file foo/bar/file
22789 echo \"Creating base archive\"
22790 tar -g incr -cf arch.1 -v foo
22794 echo \"Creating incremental archive\"
22795 tar -g incr -cf arch.2 -v foo
22799 tar xfg arch.1 /dev/null
22801 echo \"Begin directory listing 1\"
22803 echo \"End directory listing 1\"
22805 tar xfg arch.2 /dev/null
22806 echo Begin directory listing 2
22808 echo End directory listing 2
22810 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
22814 TEST_TAR_FORMAT=oldgnu
22815 export TEST_TAR_FORMAT
22816 TAR_OPTIONS="-H oldgnu"
22821 test -z "`sort < /dev/null 2>&1`" || exit 77
22825 genfile --file foo/file1
22826 genfile --file foo/file2
22828 genfile --file foo/bar/file
22830 echo "Creating base archive"
22831 tar -g incr -cf arch.1 -v foo
22835 echo "Creating incremental archive"
22836 tar -g incr -cf arch.2 -v foo
22840 tar xfg arch.1 /dev/null
22842 echo "Begin directory listing 1"
22844 echo "End directory listing 1"
22846 tar xfg arch.2 /dev/null
22847 echo Begin directory listing 2
22849 echo End directory listing 2
22851 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22852 at_status=$? at_failed=false
22854 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22855 tar: foo/bar: Directory is new
22856 tar: foo/baz: Directory has been renamed from 'foo/bar'
22858 $at_diff - "$at_stderr" || at_failed=:
22859 echo >>"$at_stdout"; $as_echo "Creating base archive
22865 Creating incremental archive
22868 Begin directory listing 1
22874 End directory listing 1
22875 Begin directory listing 2
22881 End directory listing 2
22883 $at_diff - "$at_stdout" || at_failed=:
22884 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
22885 $at_failed && at_fn_log_failure
22889 $as_echo "$at_srcdir/rename01.at:27:
22892 TEST_TAR_FORMAT=posix
22893 export TEST_TAR_FORMAT
22894 TAR_OPTIONS=\"-H posix\"
22899 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22903 genfile --file foo/file1
22904 genfile --file foo/file2
22906 genfile --file foo/bar/file
22908 echo \"Creating base archive\"
22909 tar -g incr -cf arch.1 -v foo
22913 echo \"Creating incremental archive\"
22914 tar -g incr -cf arch.2 -v foo
22918 tar xfg arch.1 /dev/null
22920 echo \"Begin directory listing 1\"
22922 echo \"End directory listing 1\"
22924 tar xfg arch.2 /dev/null
22925 echo Begin directory listing 2
22927 echo End directory listing 2
22929 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
22933 TEST_TAR_FORMAT=posix
22934 export TEST_TAR_FORMAT
22935 TAR_OPTIONS="-H posix"
22940 test -z "`sort < /dev/null 2>&1`" || exit 77
22944 genfile --file foo/file1
22945 genfile --file foo/file2
22947 genfile --file foo/bar/file
22949 echo "Creating base archive"
22950 tar -g incr -cf arch.1 -v foo
22954 echo "Creating incremental archive"
22955 tar -g incr -cf arch.2 -v foo
22959 tar xfg arch.1 /dev/null
22961 echo "Begin directory listing 1"
22963 echo "End directory listing 1"
22965 tar xfg arch.2 /dev/null
22966 echo Begin directory listing 2
22968 echo End directory listing 2
22970 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22971 at_status=$? at_failed=false
22973 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22974 tar: foo/bar: Directory is new
22975 tar: foo/baz: Directory has been renamed from 'foo/bar'
22977 $at_diff - "$at_stderr" || at_failed=:
22978 echo >>"$at_stdout"; $as_echo "Creating base archive
22984 Creating incremental archive
22987 Begin directory listing 1
22993 End directory listing 1
22994 Begin directory listing 2
23000 End directory listing 2
23002 $at_diff - "$at_stdout" || at_failed=:
23003 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23004 $at_failed && at_fn_log_failure
23011 $at_times_p && times >"$at_times_file"
23012 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23013 read at_status <"$at_status_file"
23016 at_fn_group_banner 98 'rename02.at:24' \
23017 "move between hierarchies" " " 13
23019 test -f $XFAILFILE && at_xfail=yes
23021 $as_echo "98. $at_setup_line: testing $at_desc ..."
23029 $as_echo "$at_srcdir/rename02.at:27:
23032 TEST_TAR_FORMAT=gnu
23033 export TEST_TAR_FORMAT
23034 TAR_OPTIONS=\"-H gnu\"
23039 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23042 genfile --file foo/file1
23043 genfile --file foo/file2
23045 genfile --file foo/bar/file.r
23047 genfile --file foo/bar/baz/file.z
23051 echo \"Creating base archive\"
23052 tar -g incr -cf arch.1 -v foo
23056 echo \"Creating incremental archive\"
23057 tar -g incr -cf arch.2 -v foo
23061 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23064 echo \"Begin directory listing 1\"
23066 echo \"End directory listing 1\"
23068 tar xfgv arch.2 /dev/null --warning=no-timestamp
23069 echo Begin directory listing 2
23071 echo End directory listing 2
23073 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23077 TEST_TAR_FORMAT=gnu
23078 export TEST_TAR_FORMAT
23079 TAR_OPTIONS="-H gnu"
23084 test -z "`sort < /dev/null 2>&1`" || exit 77
23087 genfile --file foo/file1
23088 genfile --file foo/file2
23090 genfile --file foo/bar/file.r
23092 genfile --file foo/bar/baz/file.z
23096 echo "Creating base archive"
23097 tar -g incr -cf arch.1 -v foo
23101 echo "Creating incremental archive"
23102 tar -g incr -cf arch.2 -v foo
23106 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23109 echo "Begin directory listing 1"
23111 echo "End directory listing 1"
23113 tar xfgv arch.2 /dev/null --warning=no-timestamp
23114 echo Begin directory listing 2
23116 echo End directory listing 2
23118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23119 at_status=$? at_failed=false
23121 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23122 tar: foo/bar: Directory is new
23123 tar: foo/bar/baz: Directory is new
23124 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23126 $at_diff - "$at_stderr" || at_failed=:
23127 echo >>"$at_stdout"; $as_echo "Creating base archive
23135 Creating incremental archive
23139 Begin directory listing 1
23147 End directory listing 1
23151 Begin directory listing 2
23159 End directory listing 2
23161 $at_diff - "$at_stdout" || at_failed=:
23162 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23163 $at_failed && at_fn_log_failure
23167 $as_echo "$at_srcdir/rename02.at:27:
23170 TEST_TAR_FORMAT=oldgnu
23171 export TEST_TAR_FORMAT
23172 TAR_OPTIONS=\"-H oldgnu\"
23177 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23180 genfile --file foo/file1
23181 genfile --file foo/file2
23183 genfile --file foo/bar/file.r
23185 genfile --file foo/bar/baz/file.z
23189 echo \"Creating base archive\"
23190 tar -g incr -cf arch.1 -v foo
23194 echo \"Creating incremental archive\"
23195 tar -g incr -cf arch.2 -v foo
23199 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23202 echo \"Begin directory listing 1\"
23204 echo \"End directory listing 1\"
23206 tar xfgv arch.2 /dev/null --warning=no-timestamp
23207 echo Begin directory listing 2
23209 echo End directory listing 2
23211 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23215 TEST_TAR_FORMAT=oldgnu
23216 export TEST_TAR_FORMAT
23217 TAR_OPTIONS="-H oldgnu"
23222 test -z "`sort < /dev/null 2>&1`" || exit 77
23225 genfile --file foo/file1
23226 genfile --file foo/file2
23228 genfile --file foo/bar/file.r
23230 genfile --file foo/bar/baz/file.z
23234 echo "Creating base archive"
23235 tar -g incr -cf arch.1 -v foo
23239 echo "Creating incremental archive"
23240 tar -g incr -cf arch.2 -v foo
23244 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23247 echo "Begin directory listing 1"
23249 echo "End directory listing 1"
23251 tar xfgv arch.2 /dev/null --warning=no-timestamp
23252 echo Begin directory listing 2
23254 echo End directory listing 2
23256 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23257 at_status=$? at_failed=false
23259 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23260 tar: foo/bar: Directory is new
23261 tar: foo/bar/baz: Directory is new
23262 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23264 $at_diff - "$at_stderr" || at_failed=:
23265 echo >>"$at_stdout"; $as_echo "Creating base archive
23273 Creating incremental archive
23277 Begin directory listing 1
23285 End directory listing 1
23289 Begin directory listing 2
23297 End directory listing 2
23299 $at_diff - "$at_stdout" || at_failed=:
23300 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23301 $at_failed && at_fn_log_failure
23305 $as_echo "$at_srcdir/rename02.at:27:
23308 TEST_TAR_FORMAT=posix
23309 export TEST_TAR_FORMAT
23310 TAR_OPTIONS=\"-H posix\"
23315 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23318 genfile --file foo/file1
23319 genfile --file foo/file2
23321 genfile --file foo/bar/file.r
23323 genfile --file foo/bar/baz/file.z
23327 echo \"Creating base archive\"
23328 tar -g incr -cf arch.1 -v foo
23332 echo \"Creating incremental archive\"
23333 tar -g incr -cf arch.2 -v foo
23337 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23340 echo \"Begin directory listing 1\"
23342 echo \"End directory listing 1\"
23344 tar xfgv arch.2 /dev/null --warning=no-timestamp
23345 echo Begin directory listing 2
23347 echo End directory listing 2
23349 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23353 TEST_TAR_FORMAT=posix
23354 export TEST_TAR_FORMAT
23355 TAR_OPTIONS="-H posix"
23360 test -z "`sort < /dev/null 2>&1`" || exit 77
23363 genfile --file foo/file1
23364 genfile --file foo/file2
23366 genfile --file foo/bar/file.r
23368 genfile --file foo/bar/baz/file.z
23372 echo "Creating base archive"
23373 tar -g incr -cf arch.1 -v foo
23377 echo "Creating incremental archive"
23378 tar -g incr -cf arch.2 -v foo
23382 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23385 echo "Begin directory listing 1"
23387 echo "End directory listing 1"
23389 tar xfgv arch.2 /dev/null --warning=no-timestamp
23390 echo Begin directory listing 2
23392 echo End directory listing 2
23394 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23395 at_status=$? at_failed=false
23397 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23398 tar: foo/bar: Directory is new
23399 tar: foo/bar/baz: Directory is new
23400 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23402 $at_diff - "$at_stderr" || at_failed=:
23403 echo >>"$at_stdout"; $as_echo "Creating base archive
23411 Creating incremental archive
23415 Begin directory listing 1
23423 End directory listing 1
23427 Begin directory listing 2
23435 End directory listing 2
23437 $at_diff - "$at_stdout" || at_failed=:
23438 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23439 $at_failed && at_fn_log_failure
23446 $at_times_p && times >"$at_times_file"
23447 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23448 read at_status <"$at_status_file"
23451 at_fn_group_banner 99 'rename03.at:23' \
23452 "cyclic renames" " " 13
23454 test -f $XFAILFILE && at_xfail=yes
23456 $as_echo "99. $at_setup_line: testing $at_desc ..."
23464 $as_echo "$at_srcdir/rename03.at:26:
23467 TEST_TAR_FORMAT=gnu
23468 export TEST_TAR_FORMAT
23469 TAR_OPTIONS=\"-H gnu\"
23474 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23478 genfile --file foo/file1
23479 genfile --file foo/file2
23482 genfile --file foo/a/filea
23485 genfile --file foo/b/fileb
23488 genfile --file foo/c/filec
23492 echo \"First dump\"
23493 echo \"First dump\">&2
23494 tar -g incr -cf arch.1 -v foo 2>tmperr
23497 # Shuffle directories:
23504 echo \"Second dump\"
23505 echo \"Second dump\" >&2
23506 tar -g incr -cf arch.2 -v foo 2>tmperr
23509 tar xfg arch.1 /dev/null --warning=no-timestamp
23511 echo \"Begin directory listing 1\"
23513 echo \"End directory listing 1\"
23515 tar xfgv arch.2 /dev/null --warning=no-timestamp
23516 echo Begin directory listing 2
23518 echo End directory listing 2
23520 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
23524 TEST_TAR_FORMAT=gnu
23525 export TEST_TAR_FORMAT
23526 TAR_OPTIONS="-H gnu"
23531 test -z "`sort < /dev/null 2>&1`" || exit 77
23535 genfile --file foo/file1
23536 genfile --file foo/file2
23539 genfile --file foo/a/filea
23542 genfile --file foo/b/fileb
23545 genfile --file foo/c/filec
23550 echo "First dump">&2
23551 tar -g incr -cf arch.1 -v foo 2>tmperr
23554 # Shuffle directories:
23562 echo "Second dump" >&2
23563 tar -g incr -cf arch.2 -v foo 2>tmperr
23566 tar xfg arch.1 /dev/null --warning=no-timestamp
23568 echo "Begin directory listing 1"
23570 echo "End directory listing 1"
23572 tar xfgv arch.2 /dev/null --warning=no-timestamp
23573 echo Begin directory listing 2
23575 echo End directory listing 2
23577 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23578 at_status=$? at_failed=false
23580 echo >>"$at_stderr"; $as_echo "First dump
23581 tar: foo/a: Directory is new
23582 tar: foo/b: Directory is new
23583 tar: foo/c: Directory is new
23584 tar: foo: Directory is new
23586 tar: foo/a: Directory has been renamed from 'foo/c'
23587 tar: foo/b: Directory has been renamed from 'foo/a'
23588 tar: foo/c: Directory has been renamed from 'foo/b'
23590 $at_diff - "$at_stderr" || at_failed=:
23591 echo >>"$at_stdout"; $as_echo "First dump
23606 Begin directory listing 1
23616 End directory listing 1
23621 Begin directory listing 2
23631 End directory listing 2
23633 $at_diff - "$at_stdout" || at_failed=:
23634 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23635 $at_failed && at_fn_log_failure
23639 $as_echo "$at_srcdir/rename03.at:26:
23642 TEST_TAR_FORMAT=oldgnu
23643 export TEST_TAR_FORMAT
23644 TAR_OPTIONS=\"-H oldgnu\"
23649 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23653 genfile --file foo/file1
23654 genfile --file foo/file2
23657 genfile --file foo/a/filea
23660 genfile --file foo/b/fileb
23663 genfile --file foo/c/filec
23667 echo \"First dump\"
23668 echo \"First dump\">&2
23669 tar -g incr -cf arch.1 -v foo 2>tmperr
23672 # Shuffle directories:
23679 echo \"Second dump\"
23680 echo \"Second dump\" >&2
23681 tar -g incr -cf arch.2 -v foo 2>tmperr
23684 tar xfg arch.1 /dev/null --warning=no-timestamp
23686 echo \"Begin directory listing 1\"
23688 echo \"End directory listing 1\"
23690 tar xfgv arch.2 /dev/null --warning=no-timestamp
23691 echo Begin directory listing 2
23693 echo End directory listing 2
23695 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
23699 TEST_TAR_FORMAT=oldgnu
23700 export TEST_TAR_FORMAT
23701 TAR_OPTIONS="-H oldgnu"
23706 test -z "`sort < /dev/null 2>&1`" || exit 77
23710 genfile --file foo/file1
23711 genfile --file foo/file2
23714 genfile --file foo/a/filea
23717 genfile --file foo/b/fileb
23720 genfile --file foo/c/filec
23725 echo "First dump">&2
23726 tar -g incr -cf arch.1 -v foo 2>tmperr
23729 # Shuffle directories:
23737 echo "Second dump" >&2
23738 tar -g incr -cf arch.2 -v foo 2>tmperr
23741 tar xfg arch.1 /dev/null --warning=no-timestamp
23743 echo "Begin directory listing 1"
23745 echo "End directory listing 1"
23747 tar xfgv arch.2 /dev/null --warning=no-timestamp
23748 echo Begin directory listing 2
23750 echo End directory listing 2
23752 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23753 at_status=$? at_failed=false
23755 echo >>"$at_stderr"; $as_echo "First dump
23756 tar: foo/a: Directory is new
23757 tar: foo/b: Directory is new
23758 tar: foo/c: Directory is new
23759 tar: foo: Directory is new
23761 tar: foo/a: Directory has been renamed from 'foo/c'
23762 tar: foo/b: Directory has been renamed from 'foo/a'
23763 tar: foo/c: Directory has been renamed from 'foo/b'
23765 $at_diff - "$at_stderr" || at_failed=:
23766 echo >>"$at_stdout"; $as_echo "First dump
23781 Begin directory listing 1
23791 End directory listing 1
23796 Begin directory listing 2
23806 End directory listing 2
23808 $at_diff - "$at_stdout" || at_failed=:
23809 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23810 $at_failed && at_fn_log_failure
23814 $as_echo "$at_srcdir/rename03.at:26:
23817 TEST_TAR_FORMAT=posix
23818 export TEST_TAR_FORMAT
23819 TAR_OPTIONS=\"-H posix\"
23824 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23828 genfile --file foo/file1
23829 genfile --file foo/file2
23832 genfile --file foo/a/filea
23835 genfile --file foo/b/fileb
23838 genfile --file foo/c/filec
23842 echo \"First dump\"
23843 echo \"First dump\">&2
23844 tar -g incr -cf arch.1 -v foo 2>tmperr
23847 # Shuffle directories:
23854 echo \"Second dump\"
23855 echo \"Second dump\" >&2
23856 tar -g incr -cf arch.2 -v foo 2>tmperr
23859 tar xfg arch.1 /dev/null --warning=no-timestamp
23861 echo \"Begin directory listing 1\"
23863 echo \"End directory listing 1\"
23865 tar xfgv arch.2 /dev/null --warning=no-timestamp
23866 echo Begin directory listing 2
23868 echo End directory listing 2
23870 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
23874 TEST_TAR_FORMAT=posix
23875 export TEST_TAR_FORMAT
23876 TAR_OPTIONS="-H posix"
23881 test -z "`sort < /dev/null 2>&1`" || exit 77
23885 genfile --file foo/file1
23886 genfile --file foo/file2
23889 genfile --file foo/a/filea
23892 genfile --file foo/b/fileb
23895 genfile --file foo/c/filec
23900 echo "First dump">&2
23901 tar -g incr -cf arch.1 -v foo 2>tmperr
23904 # Shuffle directories:
23912 echo "Second dump" >&2
23913 tar -g incr -cf arch.2 -v foo 2>tmperr
23916 tar xfg arch.1 /dev/null --warning=no-timestamp
23918 echo "Begin directory listing 1"
23920 echo "End directory listing 1"
23922 tar xfgv arch.2 /dev/null --warning=no-timestamp
23923 echo Begin directory listing 2
23925 echo End directory listing 2
23927 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23928 at_status=$? at_failed=false
23930 echo >>"$at_stderr"; $as_echo "First dump
23931 tar: foo/a: Directory is new
23932 tar: foo/b: Directory is new
23933 tar: foo/c: Directory is new
23934 tar: foo: Directory is new
23936 tar: foo/a: Directory has been renamed from 'foo/c'
23937 tar: foo/b: Directory has been renamed from 'foo/a'
23938 tar: foo/c: Directory has been renamed from 'foo/b'
23940 $at_diff - "$at_stderr" || at_failed=:
23941 echo >>"$at_stdout"; $as_echo "First dump
23956 Begin directory listing 1
23966 End directory listing 1
23971 Begin directory listing 2
23981 End directory listing 2
23983 $at_diff - "$at_stdout" || at_failed=:
23984 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23985 $at_failed && at_fn_log_failure
23992 $at_times_p && times >"$at_times_file"
23993 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23994 read at_status <"$at_status_file"
23997 at_fn_group_banner 100 'rename04.at:27' \
23998 "renamed directory containing subdirectories" " " 13
24000 test -f $XFAILFILE && at_xfail=yes
24002 $as_echo "100. $at_setup_line: testing $at_desc ..."
24010 $as_echo "$at_srcdir/rename04.at:30:
24013 TEST_TAR_FORMAT=gnu
24014 export TEST_TAR_FORMAT
24015 TAR_OPTIONS=\"-H gnu\"
24020 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24023 decho Creating directory structure
24025 mkdir directory/subdir
24026 genfile --file=directory/file
24028 decho Creating initial archive
24029 tar -cf archive.1 -g db.1 directory
24034 decho Creating incremental archive
24036 tar -cf archive.2 -g db.2 dir
24040 decho First restore
24041 tar -xf archive.1 -g db.1
24042 find directory | sort
24044 decho Second restore
24045 tar -xf archive.2 -g db.2
24048 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24052 TEST_TAR_FORMAT=gnu
24053 export TEST_TAR_FORMAT
24054 TAR_OPTIONS="-H gnu"
24059 test -z "`sort < /dev/null 2>&1`" || exit 77
24062 decho Creating directory structure
24064 mkdir directory/subdir
24065 genfile --file=directory/file
24067 decho Creating initial archive
24068 tar -cf archive.1 -g db.1 directory
24073 decho Creating incremental archive
24075 tar -cf archive.2 -g db.2 dir
24079 decho First restore
24080 tar -xf archive.1 -g db.1
24081 find directory | sort
24083 decho Second restore
24084 tar -xf archive.2 -g db.2
24087 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24088 at_status=$? at_failed=false
24090 echo >>"$at_stderr"; $as_echo "Creating directory structure
24091 Creating initial archive
24093 Creating incremental archive
24097 $at_diff - "$at_stderr" || at_failed=:
24098 echo >>"$at_stdout"; $as_echo "Creating directory structure
24099 Creating initial archive
24101 Creating incremental archive
24110 $at_diff - "$at_stdout" || at_failed=:
24111 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24112 $at_failed && at_fn_log_failure
24116 $as_echo "$at_srcdir/rename04.at:30:
24119 TEST_TAR_FORMAT=oldgnu
24120 export TEST_TAR_FORMAT
24121 TAR_OPTIONS=\"-H oldgnu\"
24126 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24129 decho Creating directory structure
24131 mkdir directory/subdir
24132 genfile --file=directory/file
24134 decho Creating initial archive
24135 tar -cf archive.1 -g db.1 directory
24140 decho Creating incremental archive
24142 tar -cf archive.2 -g db.2 dir
24146 decho First restore
24147 tar -xf archive.1 -g db.1
24148 find directory | sort
24150 decho Second restore
24151 tar -xf archive.2 -g db.2
24154 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24158 TEST_TAR_FORMAT=oldgnu
24159 export TEST_TAR_FORMAT
24160 TAR_OPTIONS="-H oldgnu"
24165 test -z "`sort < /dev/null 2>&1`" || exit 77
24168 decho Creating directory structure
24170 mkdir directory/subdir
24171 genfile --file=directory/file
24173 decho Creating initial archive
24174 tar -cf archive.1 -g db.1 directory
24179 decho Creating incremental archive
24181 tar -cf archive.2 -g db.2 dir
24185 decho First restore
24186 tar -xf archive.1 -g db.1
24187 find directory | sort
24189 decho Second restore
24190 tar -xf archive.2 -g db.2
24193 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24194 at_status=$? at_failed=false
24196 echo >>"$at_stderr"; $as_echo "Creating directory structure
24197 Creating initial archive
24199 Creating incremental archive
24203 $at_diff - "$at_stderr" || at_failed=:
24204 echo >>"$at_stdout"; $as_echo "Creating directory structure
24205 Creating initial archive
24207 Creating incremental archive
24216 $at_diff - "$at_stdout" || at_failed=:
24217 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24218 $at_failed && at_fn_log_failure
24222 $as_echo "$at_srcdir/rename04.at:30:
24225 TEST_TAR_FORMAT=posix
24226 export TEST_TAR_FORMAT
24227 TAR_OPTIONS=\"-H posix\"
24232 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24235 decho Creating directory structure
24237 mkdir directory/subdir
24238 genfile --file=directory/file
24240 decho Creating initial archive
24241 tar -cf archive.1 -g db.1 directory
24246 decho Creating incremental archive
24248 tar -cf archive.2 -g db.2 dir
24252 decho First restore
24253 tar -xf archive.1 -g db.1
24254 find directory | sort
24256 decho Second restore
24257 tar -xf archive.2 -g db.2
24260 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24264 TEST_TAR_FORMAT=posix
24265 export TEST_TAR_FORMAT
24266 TAR_OPTIONS="-H posix"
24271 test -z "`sort < /dev/null 2>&1`" || exit 77
24274 decho Creating directory structure
24276 mkdir directory/subdir
24277 genfile --file=directory/file
24279 decho Creating initial archive
24280 tar -cf archive.1 -g db.1 directory
24285 decho Creating incremental archive
24287 tar -cf archive.2 -g db.2 dir
24291 decho First restore
24292 tar -xf archive.1 -g db.1
24293 find directory | sort
24295 decho Second restore
24296 tar -xf archive.2 -g db.2
24299 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24300 at_status=$? at_failed=false
24302 echo >>"$at_stderr"; $as_echo "Creating directory structure
24303 Creating initial archive
24305 Creating incremental archive
24309 $at_diff - "$at_stderr" || at_failed=:
24310 echo >>"$at_stdout"; $as_echo "Creating directory structure
24311 Creating initial archive
24313 Creating incremental archive
24322 $at_diff - "$at_stdout" || at_failed=:
24323 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24324 $at_failed && at_fn_log_failure
24331 $at_times_p && times >"$at_times_file"
24332 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24333 read at_status <"$at_status_file"
24336 at_fn_group_banner 101 'rename05.at:24' \
24337 "renamed subdirectories" " " 13
24339 test -f $XFAILFILE && at_xfail=yes
24341 $as_echo "101. $at_setup_line: testing $at_desc ..."
24349 $as_echo "$at_srcdir/rename05.at:27:
24352 TEST_TAR_FORMAT=gnu
24353 export TEST_TAR_FORMAT
24354 TAR_OPTIONS=\"-H gnu\"
24359 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24362 decho Creating directory structure
24364 mkdir directory/subdir
24365 genfile --file=directory/file
24367 decho Creating initial archive
24368 tar -cf archive.1 -g db.1 directory
24371 mv directory/subdir directory/subdir.0
24374 decho Creating incremental archive
24376 tar -cf archive.2 -g db.2 dir
24380 decho First restore
24381 tar -xf archive.1 -g db.1 --warning=no-timestamp
24382 find directory | sort
24384 decho Second restore
24385 tar -xf archive.2 -g db.2 --warning=no-timestamp
24388 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
24392 TEST_TAR_FORMAT=gnu
24393 export TEST_TAR_FORMAT
24394 TAR_OPTIONS="-H gnu"
24399 test -z "`sort < /dev/null 2>&1`" || exit 77
24402 decho Creating directory structure
24404 mkdir directory/subdir
24405 genfile --file=directory/file
24407 decho Creating initial archive
24408 tar -cf archive.1 -g db.1 directory
24411 mv directory/subdir directory/subdir.0
24414 decho Creating incremental archive
24416 tar -cf archive.2 -g db.2 dir
24420 decho First restore
24421 tar -xf archive.1 -g db.1 --warning=no-timestamp
24422 find directory | sort
24424 decho Second restore
24425 tar -xf archive.2 -g db.2 --warning=no-timestamp
24428 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24429 at_status=$? at_failed=false
24431 echo >>"$at_stderr"; $as_echo "Creating directory structure
24432 Creating initial archive
24434 Creating incremental archive
24438 $at_diff - "$at_stderr" || at_failed=:
24439 echo >>"$at_stdout"; $as_echo "Creating directory structure
24440 Creating initial archive
24442 Creating incremental archive
24451 $at_diff - "$at_stdout" || at_failed=:
24452 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24453 $at_failed && at_fn_log_failure
24457 $as_echo "$at_srcdir/rename05.at:27:
24460 TEST_TAR_FORMAT=oldgnu
24461 export TEST_TAR_FORMAT
24462 TAR_OPTIONS=\"-H oldgnu\"
24467 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24470 decho Creating directory structure
24472 mkdir directory/subdir
24473 genfile --file=directory/file
24475 decho Creating initial archive
24476 tar -cf archive.1 -g db.1 directory
24479 mv directory/subdir directory/subdir.0
24482 decho Creating incremental archive
24484 tar -cf archive.2 -g db.2 dir
24488 decho First restore
24489 tar -xf archive.1 -g db.1 --warning=no-timestamp
24490 find directory | sort
24492 decho Second restore
24493 tar -xf archive.2 -g db.2 --warning=no-timestamp
24496 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
24500 TEST_TAR_FORMAT=oldgnu
24501 export TEST_TAR_FORMAT
24502 TAR_OPTIONS="-H oldgnu"
24507 test -z "`sort < /dev/null 2>&1`" || exit 77
24510 decho Creating directory structure
24512 mkdir directory/subdir
24513 genfile --file=directory/file
24515 decho Creating initial archive
24516 tar -cf archive.1 -g db.1 directory
24519 mv directory/subdir directory/subdir.0
24522 decho Creating incremental archive
24524 tar -cf archive.2 -g db.2 dir
24528 decho First restore
24529 tar -xf archive.1 -g db.1 --warning=no-timestamp
24530 find directory | sort
24532 decho Second restore
24533 tar -xf archive.2 -g db.2 --warning=no-timestamp
24536 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24537 at_status=$? at_failed=false
24539 echo >>"$at_stderr"; $as_echo "Creating directory structure
24540 Creating initial archive
24542 Creating incremental archive
24546 $at_diff - "$at_stderr" || at_failed=:
24547 echo >>"$at_stdout"; $as_echo "Creating directory structure
24548 Creating initial archive
24550 Creating incremental archive
24559 $at_diff - "$at_stdout" || at_failed=:
24560 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24561 $at_failed && at_fn_log_failure
24565 $as_echo "$at_srcdir/rename05.at:27:
24568 TEST_TAR_FORMAT=posix
24569 export TEST_TAR_FORMAT
24570 TAR_OPTIONS=\"-H posix\"
24575 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24578 decho Creating directory structure
24580 mkdir directory/subdir
24581 genfile --file=directory/file
24583 decho Creating initial archive
24584 tar -cf archive.1 -g db.1 directory
24587 mv directory/subdir directory/subdir.0
24590 decho Creating incremental archive
24592 tar -cf archive.2 -g db.2 dir
24596 decho First restore
24597 tar -xf archive.1 -g db.1 --warning=no-timestamp
24598 find directory | sort
24600 decho Second restore
24601 tar -xf archive.2 -g db.2 --warning=no-timestamp
24604 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
24608 TEST_TAR_FORMAT=posix
24609 export TEST_TAR_FORMAT
24610 TAR_OPTIONS="-H posix"
24615 test -z "`sort < /dev/null 2>&1`" || exit 77
24618 decho Creating directory structure
24620 mkdir directory/subdir
24621 genfile --file=directory/file
24623 decho Creating initial archive
24624 tar -cf archive.1 -g db.1 directory
24627 mv directory/subdir directory/subdir.0
24630 decho Creating incremental archive
24632 tar -cf archive.2 -g db.2 dir
24636 decho First restore
24637 tar -xf archive.1 -g db.1 --warning=no-timestamp
24638 find directory | sort
24640 decho Second restore
24641 tar -xf archive.2 -g db.2 --warning=no-timestamp
24644 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24645 at_status=$? at_failed=false
24647 echo >>"$at_stderr"; $as_echo "Creating directory structure
24648 Creating initial archive
24650 Creating incremental archive
24654 $at_diff - "$at_stderr" || at_failed=:
24655 echo >>"$at_stdout"; $as_echo "Creating directory structure
24656 Creating initial archive
24658 Creating incremental archive
24667 $at_diff - "$at_stdout" || at_failed=:
24668 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24669 $at_failed && at_fn_log_failure
24676 $at_times_p && times >"$at_times_file"
24677 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24678 read at_status <"$at_status_file"
24681 at_fn_group_banner 102 'chtype.at:27' \
24682 "changed file types in incrementals" " " 13
24684 test -f $XFAILFILE && at_xfail=yes
24686 $as_echo "102. $at_setup_line: testing $at_desc ..."
24694 $as_echo "$at_srcdir/chtype.at:30:
24697 TEST_TAR_FORMAT=gnu
24698 export TEST_TAR_FORMAT
24699 TAR_OPTIONS=\"-H gnu\"
24704 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24707 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24709 genfile --file directory/a/a
24712 tar --create --file=archive.1 --listed-incremental=db.1 directory
24716 # Remove directory b and create a file with this name.
24717 # Previous versions were not able to restore over this file.
24719 genfile --file directory/b
24720 genfile --file directory/a/b
24723 tar --create --file=archive.2 --listed-incremental=db.2 directory
24728 echo Restore archive.1
24729 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24730 echo Restore archive.2
24731 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24732 find directory | sort
24734 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
24738 TEST_TAR_FORMAT=gnu
24739 export TEST_TAR_FORMAT
24740 TAR_OPTIONS="-H gnu"
24745 test -z "`sort < /dev/null 2>&1`" || exit 77
24748 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24750 genfile --file directory/a/a
24753 tar --create --file=archive.1 --listed-incremental=db.1 directory
24757 # Remove directory b and create a file with this name.
24758 # Previous versions were not able to restore over this file.
24760 genfile --file directory/b
24761 genfile --file directory/a/b
24764 tar --create --file=archive.2 --listed-incremental=db.2 directory
24769 echo Restore archive.1
24770 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24771 echo Restore archive.2
24772 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24773 find directory | sort
24775 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24776 at_status=$? at_failed=false
24778 at_fn_diff_devnull "$at_stderr" || at_failed=:
24779 echo >>"$at_stdout"; $as_echo "First backup
24789 $at_diff - "$at_stdout" || at_failed=:
24790 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
24791 $at_failed && at_fn_log_failure
24795 $as_echo "$at_srcdir/chtype.at:30:
24798 TEST_TAR_FORMAT=oldgnu
24799 export TEST_TAR_FORMAT
24800 TAR_OPTIONS=\"-H oldgnu\"
24805 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24808 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24810 genfile --file directory/a/a
24813 tar --create --file=archive.1 --listed-incremental=db.1 directory
24817 # Remove directory b and create a file with this name.
24818 # Previous versions were not able to restore over this file.
24820 genfile --file directory/b
24821 genfile --file directory/a/b
24824 tar --create --file=archive.2 --listed-incremental=db.2 directory
24829 echo Restore archive.1
24830 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24831 echo Restore archive.2
24832 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24833 find directory | sort
24835 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
24839 TEST_TAR_FORMAT=oldgnu
24840 export TEST_TAR_FORMAT
24841 TAR_OPTIONS="-H oldgnu"
24846 test -z "`sort < /dev/null 2>&1`" || exit 77
24849 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24851 genfile --file directory/a/a
24854 tar --create --file=archive.1 --listed-incremental=db.1 directory
24858 # Remove directory b and create a file with this name.
24859 # Previous versions were not able to restore over this file.
24861 genfile --file directory/b
24862 genfile --file directory/a/b
24865 tar --create --file=archive.2 --listed-incremental=db.2 directory
24870 echo Restore archive.1
24871 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24872 echo Restore archive.2
24873 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24874 find directory | sort
24876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24877 at_status=$? at_failed=false
24879 at_fn_diff_devnull "$at_stderr" || at_failed=:
24880 echo >>"$at_stdout"; $as_echo "First backup
24890 $at_diff - "$at_stdout" || at_failed=:
24891 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
24892 $at_failed && at_fn_log_failure
24896 $as_echo "$at_srcdir/chtype.at:30:
24899 TEST_TAR_FORMAT=posix
24900 export TEST_TAR_FORMAT
24901 TAR_OPTIONS=\"-H posix\"
24906 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24909 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24911 genfile --file directory/a/a
24914 tar --create --file=archive.1 --listed-incremental=db.1 directory
24918 # Remove directory b and create a file with this name.
24919 # Previous versions were not able to restore over this file.
24921 genfile --file directory/b
24922 genfile --file directory/a/b
24925 tar --create --file=archive.2 --listed-incremental=db.2 directory
24930 echo Restore archive.1
24931 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24932 echo Restore archive.2
24933 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24934 find directory | sort
24936 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
24940 TEST_TAR_FORMAT=posix
24941 export TEST_TAR_FORMAT
24942 TAR_OPTIONS="-H posix"
24947 test -z "`sort < /dev/null 2>&1`" || exit 77
24950 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24952 genfile --file directory/a/a
24955 tar --create --file=archive.1 --listed-incremental=db.1 directory
24959 # Remove directory b and create a file with this name.
24960 # Previous versions were not able to restore over this file.
24962 genfile --file directory/b
24963 genfile --file directory/a/b
24966 tar --create --file=archive.2 --listed-incremental=db.2 directory
24971 echo Restore archive.1
24972 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24973 echo Restore archive.2
24974 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24975 find directory | sort
24977 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24978 at_status=$? at_failed=false
24980 at_fn_diff_devnull "$at_stderr" || at_failed=:
24981 echo >>"$at_stdout"; $as_echo "First backup
24991 $at_diff - "$at_stdout" || at_failed=:
24992 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
24993 $at_failed && at_fn_log_failure
25000 $at_times_p && times >"$at_times_file"
25001 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25002 read at_status <"$at_status_file"
25005 at_fn_group_banner 103 'ignfail.at:23' \
25008 test -f $XFAILFILE && at_xfail=yes
25010 $as_echo "103. $at_setup_line: testing $at_desc ..."
25018 $as_echo "$at_srcdir/ignfail.at:26:
25022 export TEST_TAR_FORMAT
25023 TAR_OPTIONS=\"-H v7\"
25027 # The test is meaningless for super-user.
25029 echo \"test\" > \$\$
25031 cat \$\$ > /dev/null 2>&1
25034 test \$result -eq 0 && exit 77
25039 touch directory/file
25043 tar cf archive file
25046 test \$status = 2 || exit 1
25050 tar cf archive --ignore-failed-read file || exit 1
25053 test \$status = 0 || exit 1
25056 chmod 000 directory
25057 tar cf archive directory
25059 chmod 700 directory
25060 test \$status = 2 || exit 1
25063 chmod 000 directory
25064 tar cf archive --ignore-failed-read directory || exit 1
25066 chmod 700 directory
25069 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25074 export TEST_TAR_FORMAT
25075 TAR_OPTIONS="-H v7"
25079 # The test is meaningless for super-user.
25083 cat $$ > /dev/null 2>&1
25086 test $result -eq 0 && exit 77
25091 touch directory/file
25095 tar cf archive file
25098 test $status = 2 || exit 1
25102 tar cf archive --ignore-failed-read file || exit 1
25105 test $status = 0 || exit 1
25108 chmod 000 directory
25109 tar cf archive directory
25111 chmod 700 directory
25112 test $status = 2 || exit 1
25115 chmod 000 directory
25116 tar cf archive --ignore-failed-read directory || exit 1
25118 chmod 700 directory
25121 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25122 at_status=$? at_failed=false
25124 echo >>"$at_stderr"; $as_echo "-----
25125 tar: file: Cannot open: Permission denied
25126 tar: Exiting with failure status due to previous errors
25128 tar: file: Warning: Cannot open: Permission denied
25130 tar: directory: Cannot open: Permission denied
25131 tar: Exiting with failure status due to previous errors
25133 tar: directory: Warning: Cannot open: Permission denied
25135 $at_diff - "$at_stderr" || at_failed=:
25136 at_fn_diff_devnull "$at_stdout" || at_failed=:
25137 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25138 $at_failed && at_fn_log_failure
25142 $as_echo "$at_srcdir/ignfail.at:26:
25145 TEST_TAR_FORMAT=oldgnu
25146 export TEST_TAR_FORMAT
25147 TAR_OPTIONS=\"-H oldgnu\"
25151 # The test is meaningless for super-user.
25153 echo \"test\" > \$\$
25155 cat \$\$ > /dev/null 2>&1
25158 test \$result -eq 0 && exit 77
25163 touch directory/file
25167 tar cf archive file
25170 test \$status = 2 || exit 1
25174 tar cf archive --ignore-failed-read file || exit 1
25177 test \$status = 0 || exit 1
25180 chmod 000 directory
25181 tar cf archive directory
25183 chmod 700 directory
25184 test \$status = 2 || exit 1
25187 chmod 000 directory
25188 tar cf archive --ignore-failed-read directory || exit 1
25190 chmod 700 directory
25193 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25197 TEST_TAR_FORMAT=oldgnu
25198 export TEST_TAR_FORMAT
25199 TAR_OPTIONS="-H oldgnu"
25203 # The test is meaningless for super-user.
25207 cat $$ > /dev/null 2>&1
25210 test $result -eq 0 && exit 77
25215 touch directory/file
25219 tar cf archive file
25222 test $status = 2 || exit 1
25226 tar cf archive --ignore-failed-read file || exit 1
25229 test $status = 0 || exit 1
25232 chmod 000 directory
25233 tar cf archive directory
25235 chmod 700 directory
25236 test $status = 2 || exit 1
25239 chmod 000 directory
25240 tar cf archive --ignore-failed-read directory || exit 1
25242 chmod 700 directory
25245 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25246 at_status=$? at_failed=false
25248 echo >>"$at_stderr"; $as_echo "-----
25249 tar: file: Cannot open: Permission denied
25250 tar: Exiting with failure status due to previous errors
25252 tar: file: Warning: Cannot open: Permission denied
25254 tar: directory: Cannot open: Permission denied
25255 tar: Exiting with failure status due to previous errors
25257 tar: directory: Warning: Cannot open: Permission denied
25259 $at_diff - "$at_stderr" || at_failed=:
25260 at_fn_diff_devnull "$at_stdout" || at_failed=:
25261 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25262 $at_failed && at_fn_log_failure
25266 $as_echo "$at_srcdir/ignfail.at:26:
25269 TEST_TAR_FORMAT=ustar
25270 export TEST_TAR_FORMAT
25271 TAR_OPTIONS=\"-H ustar\"
25275 # The test is meaningless for super-user.
25277 echo \"test\" > \$\$
25279 cat \$\$ > /dev/null 2>&1
25282 test \$result -eq 0 && exit 77
25287 touch directory/file
25291 tar cf archive file
25294 test \$status = 2 || exit 1
25298 tar cf archive --ignore-failed-read file || exit 1
25301 test \$status = 0 || exit 1
25304 chmod 000 directory
25305 tar cf archive directory
25307 chmod 700 directory
25308 test \$status = 2 || exit 1
25311 chmod 000 directory
25312 tar cf archive --ignore-failed-read directory || exit 1
25314 chmod 700 directory
25317 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25321 TEST_TAR_FORMAT=ustar
25322 export TEST_TAR_FORMAT
25323 TAR_OPTIONS="-H ustar"
25327 # The test is meaningless for super-user.
25331 cat $$ > /dev/null 2>&1
25334 test $result -eq 0 && exit 77
25339 touch directory/file
25343 tar cf archive file
25346 test $status = 2 || exit 1
25350 tar cf archive --ignore-failed-read file || exit 1
25353 test $status = 0 || exit 1
25356 chmod 000 directory
25357 tar cf archive directory
25359 chmod 700 directory
25360 test $status = 2 || exit 1
25363 chmod 000 directory
25364 tar cf archive --ignore-failed-read directory || exit 1
25366 chmod 700 directory
25369 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25370 at_status=$? at_failed=false
25372 echo >>"$at_stderr"; $as_echo "-----
25373 tar: file: Cannot open: Permission denied
25374 tar: Exiting with failure status due to previous errors
25376 tar: file: Warning: Cannot open: Permission denied
25378 tar: directory: Cannot open: Permission denied
25379 tar: Exiting with failure status due to previous errors
25381 tar: directory: Warning: Cannot open: Permission denied
25383 $at_diff - "$at_stderr" || at_failed=:
25384 at_fn_diff_devnull "$at_stdout" || at_failed=:
25385 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25386 $at_failed && at_fn_log_failure
25390 $as_echo "$at_srcdir/ignfail.at:26:
25393 TEST_TAR_FORMAT=posix
25394 export TEST_TAR_FORMAT
25395 TAR_OPTIONS=\"-H posix\"
25399 # The test is meaningless for super-user.
25401 echo \"test\" > \$\$
25403 cat \$\$ > /dev/null 2>&1
25406 test \$result -eq 0 && exit 77
25411 touch directory/file
25415 tar cf archive file
25418 test \$status = 2 || exit 1
25422 tar cf archive --ignore-failed-read file || exit 1
25425 test \$status = 0 || exit 1
25428 chmod 000 directory
25429 tar cf archive directory
25431 chmod 700 directory
25432 test \$status = 2 || exit 1
25435 chmod 000 directory
25436 tar cf archive --ignore-failed-read directory || exit 1
25438 chmod 700 directory
25441 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25445 TEST_TAR_FORMAT=posix
25446 export TEST_TAR_FORMAT
25447 TAR_OPTIONS="-H posix"
25451 # The test is meaningless for super-user.
25455 cat $$ > /dev/null 2>&1
25458 test $result -eq 0 && exit 77
25463 touch directory/file
25467 tar cf archive file
25470 test $status = 2 || exit 1
25474 tar cf archive --ignore-failed-read file || exit 1
25477 test $status = 0 || exit 1
25480 chmod 000 directory
25481 tar cf archive directory
25483 chmod 700 directory
25484 test $status = 2 || exit 1
25487 chmod 000 directory
25488 tar cf archive --ignore-failed-read directory || exit 1
25490 chmod 700 directory
25493 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25494 at_status=$? at_failed=false
25496 echo >>"$at_stderr"; $as_echo "-----
25497 tar: file: Cannot open: Permission denied
25498 tar: Exiting with failure status due to previous errors
25500 tar: file: Warning: Cannot open: Permission denied
25502 tar: directory: Cannot open: Permission denied
25503 tar: Exiting with failure status due to previous errors
25505 tar: directory: Warning: Cannot open: Permission denied
25507 $at_diff - "$at_stderr" || at_failed=:
25508 at_fn_diff_devnull "$at_stdout" || at_failed=:
25509 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25510 $at_failed && at_fn_log_failure
25514 $as_echo "$at_srcdir/ignfail.at:26:
25517 TEST_TAR_FORMAT=gnu
25518 export TEST_TAR_FORMAT
25519 TAR_OPTIONS=\"-H gnu\"
25523 # The test is meaningless for super-user.
25525 echo \"test\" > \$\$
25527 cat \$\$ > /dev/null 2>&1
25530 test \$result -eq 0 && exit 77
25535 touch directory/file
25539 tar cf archive file
25542 test \$status = 2 || exit 1
25546 tar cf archive --ignore-failed-read file || exit 1
25549 test \$status = 0 || exit 1
25552 chmod 000 directory
25553 tar cf archive directory
25555 chmod 700 directory
25556 test \$status = 2 || exit 1
25559 chmod 000 directory
25560 tar cf archive --ignore-failed-read directory || exit 1
25562 chmod 700 directory
25565 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25569 TEST_TAR_FORMAT=gnu
25570 export TEST_TAR_FORMAT
25571 TAR_OPTIONS="-H gnu"
25575 # The test is meaningless for super-user.
25579 cat $$ > /dev/null 2>&1
25582 test $result -eq 0 && exit 77
25587 touch directory/file
25591 tar cf archive file
25594 test $status = 2 || exit 1
25598 tar cf archive --ignore-failed-read file || exit 1
25601 test $status = 0 || exit 1
25604 chmod 000 directory
25605 tar cf archive directory
25607 chmod 700 directory
25608 test $status = 2 || exit 1
25611 chmod 000 directory
25612 tar cf archive --ignore-failed-read directory || exit 1
25614 chmod 700 directory
25617 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25618 at_status=$? at_failed=false
25620 echo >>"$at_stderr"; $as_echo "-----
25621 tar: file: Cannot open: Permission denied
25622 tar: Exiting with failure status due to previous errors
25624 tar: file: Warning: Cannot open: Permission denied
25626 tar: directory: Cannot open: Permission denied
25627 tar: Exiting with failure status due to previous errors
25629 tar: directory: Warning: Cannot open: Permission denied
25631 $at_diff - "$at_stderr" || at_failed=:
25632 at_fn_diff_devnull "$at_stdout" || at_failed=:
25633 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25634 $at_failed && at_fn_log_failure
25641 $at_times_p && times >"$at_times_file"
25642 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25643 read at_status <"$at_status_file"
25646 at_fn_group_banner 104 'link01.at:33' \
25647 "link count gt 2" " " 15
25649 test -f $XFAILFILE && at_xfail=yes
25651 $as_echo "104. $at_setup_line: testing $at_desc ..."
25659 $as_echo "$at_srcdir/link01.at:36:
25663 export TEST_TAR_FORMAT
25664 TAR_OPTIONS=\"-H v7\"
25669 mkdir directory/test1
25670 mkdir directory/test2
25672 echo TEST > directory/test1/test.txt
25673 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25675 tar cf archive directory/test1/test.txt directory/test1/test.txt
25678 tar xf archive --warning=no-timestamp
25682 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
25687 export TEST_TAR_FORMAT
25688 TAR_OPTIONS="-H v7"
25693 mkdir directory/test1
25694 mkdir directory/test2
25696 echo TEST > directory/test1/test.txt
25697 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25699 tar cf archive directory/test1/test.txt directory/test1/test.txt
25702 tar xf archive --warning=no-timestamp
25706 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25707 at_status=$? at_failed=false
25709 at_fn_diff_devnull "$at_stderr" || at_failed=:
25710 echo >>"$at_stdout"; $as_echo "test.txt
25712 $at_diff - "$at_stdout" || at_failed=:
25713 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
25714 $at_failed && at_fn_log_failure
25718 $as_echo "$at_srcdir/link01.at:36:
25721 TEST_TAR_FORMAT=oldgnu
25722 export TEST_TAR_FORMAT
25723 TAR_OPTIONS=\"-H oldgnu\"
25728 mkdir directory/test1
25729 mkdir directory/test2
25731 echo TEST > directory/test1/test.txt
25732 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25734 tar cf archive directory/test1/test.txt directory/test1/test.txt
25737 tar xf archive --warning=no-timestamp
25741 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
25745 TEST_TAR_FORMAT=oldgnu
25746 export TEST_TAR_FORMAT
25747 TAR_OPTIONS="-H oldgnu"
25752 mkdir directory/test1
25753 mkdir directory/test2
25755 echo TEST > directory/test1/test.txt
25756 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25758 tar cf archive directory/test1/test.txt directory/test1/test.txt
25761 tar xf archive --warning=no-timestamp
25765 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25766 at_status=$? at_failed=false
25768 at_fn_diff_devnull "$at_stderr" || at_failed=:
25769 echo >>"$at_stdout"; $as_echo "test.txt
25771 $at_diff - "$at_stdout" || at_failed=:
25772 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
25773 $at_failed && at_fn_log_failure
25777 $as_echo "$at_srcdir/link01.at:36:
25780 TEST_TAR_FORMAT=ustar
25781 export TEST_TAR_FORMAT
25782 TAR_OPTIONS=\"-H ustar\"
25787 mkdir directory/test1
25788 mkdir directory/test2
25790 echo TEST > directory/test1/test.txt
25791 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25793 tar cf archive directory/test1/test.txt directory/test1/test.txt
25796 tar xf archive --warning=no-timestamp
25800 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
25804 TEST_TAR_FORMAT=ustar
25805 export TEST_TAR_FORMAT
25806 TAR_OPTIONS="-H ustar"
25811 mkdir directory/test1
25812 mkdir directory/test2
25814 echo TEST > directory/test1/test.txt
25815 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25817 tar cf archive directory/test1/test.txt directory/test1/test.txt
25820 tar xf archive --warning=no-timestamp
25824 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25825 at_status=$? at_failed=false
25827 at_fn_diff_devnull "$at_stderr" || at_failed=:
25828 echo >>"$at_stdout"; $as_echo "test.txt
25830 $at_diff - "$at_stdout" || at_failed=:
25831 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
25832 $at_failed && at_fn_log_failure
25836 $as_echo "$at_srcdir/link01.at:36:
25839 TEST_TAR_FORMAT=posix
25840 export TEST_TAR_FORMAT
25841 TAR_OPTIONS=\"-H posix\"
25846 mkdir directory/test1
25847 mkdir directory/test2
25849 echo TEST > directory/test1/test.txt
25850 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25852 tar cf archive directory/test1/test.txt directory/test1/test.txt
25855 tar xf archive --warning=no-timestamp
25859 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
25863 TEST_TAR_FORMAT=posix
25864 export TEST_TAR_FORMAT
25865 TAR_OPTIONS="-H posix"
25870 mkdir directory/test1
25871 mkdir directory/test2
25873 echo TEST > directory/test1/test.txt
25874 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25876 tar cf archive directory/test1/test.txt directory/test1/test.txt
25879 tar xf archive --warning=no-timestamp
25883 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25884 at_status=$? at_failed=false
25886 at_fn_diff_devnull "$at_stderr" || at_failed=:
25887 echo >>"$at_stdout"; $as_echo "test.txt
25889 $at_diff - "$at_stdout" || at_failed=:
25890 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
25891 $at_failed && at_fn_log_failure
25895 $as_echo "$at_srcdir/link01.at:36:
25898 TEST_TAR_FORMAT=gnu
25899 export TEST_TAR_FORMAT
25900 TAR_OPTIONS=\"-H gnu\"
25905 mkdir directory/test1
25906 mkdir directory/test2
25908 echo TEST > directory/test1/test.txt
25909 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25911 tar cf archive directory/test1/test.txt directory/test1/test.txt
25914 tar xf archive --warning=no-timestamp
25918 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
25922 TEST_TAR_FORMAT=gnu
25923 export TEST_TAR_FORMAT
25924 TAR_OPTIONS="-H gnu"
25929 mkdir directory/test1
25930 mkdir directory/test2
25932 echo TEST > directory/test1/test.txt
25933 ln directory/test1/test.txt directory/test2/test.txt || exit 77
25935 tar cf archive directory/test1/test.txt directory/test1/test.txt
25938 tar xf archive --warning=no-timestamp
25942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25943 at_status=$? at_failed=false
25945 at_fn_diff_devnull "$at_stderr" || at_failed=:
25946 echo >>"$at_stdout"; $as_echo "test.txt
25948 $at_diff - "$at_stdout" || at_failed=:
25949 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
25950 $at_failed && at_fn_log_failure
25957 $at_times_p && times >"$at_times_file"
25958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25959 read at_status <"$at_status_file"
25962 at_fn_group_banner 105 'link02.at:32' \
25963 "preserve hard links with --remove-files" " " 15
25965 test -f $XFAILFILE && at_xfail=yes
25967 $as_echo "105. $at_setup_line: testing $at_desc ..."
25975 $as_echo "$at_srcdir/link02.at:35:
25979 export TEST_TAR_FORMAT
25980 TAR_OPTIONS=\"-H v7\"
25984 genfile -l 64 -f file1
25988 tar -c -f archive --remove-files file1 file2 file3 file4
25989 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25991 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
25996 export TEST_TAR_FORMAT
25997 TAR_OPTIONS="-H v7"
26001 genfile -l 64 -f file1
26005 tar -c -f archive --remove-files file1 file2 file3 file4
26006 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26008 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26009 at_status=$? at_failed=false
26011 at_fn_diff_devnull "$at_stderr" || at_failed=:
26012 echo >>"$at_stdout"; $as_echo "file1
26016 $at_diff - "$at_stdout" || at_failed=:
26017 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26018 $at_failed && at_fn_log_failure
26022 $as_echo "$at_srcdir/link02.at:35:
26025 TEST_TAR_FORMAT=oldgnu
26026 export TEST_TAR_FORMAT
26027 TAR_OPTIONS=\"-H oldgnu\"
26031 genfile -l 64 -f file1
26035 tar -c -f archive --remove-files file1 file2 file3 file4
26036 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26038 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26042 TEST_TAR_FORMAT=oldgnu
26043 export TEST_TAR_FORMAT
26044 TAR_OPTIONS="-H oldgnu"
26048 genfile -l 64 -f file1
26052 tar -c -f archive --remove-files file1 file2 file3 file4
26053 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26056 at_status=$? at_failed=false
26058 at_fn_diff_devnull "$at_stderr" || at_failed=:
26059 echo >>"$at_stdout"; $as_echo "file1
26063 $at_diff - "$at_stdout" || at_failed=:
26064 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26065 $at_failed && at_fn_log_failure
26069 $as_echo "$at_srcdir/link02.at:35:
26072 TEST_TAR_FORMAT=ustar
26073 export TEST_TAR_FORMAT
26074 TAR_OPTIONS=\"-H ustar\"
26078 genfile -l 64 -f file1
26082 tar -c -f archive --remove-files file1 file2 file3 file4
26083 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26085 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26089 TEST_TAR_FORMAT=ustar
26090 export TEST_TAR_FORMAT
26091 TAR_OPTIONS="-H ustar"
26095 genfile -l 64 -f file1
26099 tar -c -f archive --remove-files file1 file2 file3 file4
26100 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26102 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26103 at_status=$? at_failed=false
26105 at_fn_diff_devnull "$at_stderr" || at_failed=:
26106 echo >>"$at_stdout"; $as_echo "file1
26110 $at_diff - "$at_stdout" || at_failed=:
26111 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26112 $at_failed && at_fn_log_failure
26116 $as_echo "$at_srcdir/link02.at:35:
26119 TEST_TAR_FORMAT=posix
26120 export TEST_TAR_FORMAT
26121 TAR_OPTIONS=\"-H posix\"
26125 genfile -l 64 -f file1
26129 tar -c -f archive --remove-files file1 file2 file3 file4
26130 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26132 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26136 TEST_TAR_FORMAT=posix
26137 export TEST_TAR_FORMAT
26138 TAR_OPTIONS="-H posix"
26142 genfile -l 64 -f file1
26146 tar -c -f archive --remove-files file1 file2 file3 file4
26147 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26149 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26150 at_status=$? at_failed=false
26152 at_fn_diff_devnull "$at_stderr" || at_failed=:
26153 echo >>"$at_stdout"; $as_echo "file1
26157 $at_diff - "$at_stdout" || at_failed=:
26158 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26159 $at_failed && at_fn_log_failure
26163 $as_echo "$at_srcdir/link02.at:35:
26166 TEST_TAR_FORMAT=gnu
26167 export TEST_TAR_FORMAT
26168 TAR_OPTIONS=\"-H gnu\"
26172 genfile -l 64 -f file1
26176 tar -c -f archive --remove-files file1 file2 file3 file4
26177 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26179 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26183 TEST_TAR_FORMAT=gnu
26184 export TEST_TAR_FORMAT
26185 TAR_OPTIONS="-H gnu"
26189 genfile -l 64 -f file1
26193 tar -c -f archive --remove-files file1 file2 file3 file4
26194 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26197 at_status=$? at_failed=false
26199 at_fn_diff_devnull "$at_stderr" || at_failed=:
26200 echo >>"$at_stdout"; $as_echo "file1
26204 $at_diff - "$at_stdout" || at_failed=:
26205 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26206 $at_failed && at_fn_log_failure
26213 $at_times_p && times >"$at_times_file"
26214 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26215 read at_status <"$at_status_file"
26218 at_fn_group_banner 106 'link03.at:24' \
26219 "working -l with --remove-files" " " 15
26221 test -f $XFAILFILE && at_xfail=yes
26223 $as_echo "106. $at_setup_line: testing $at_desc ..."
26233 $as_echo "$at_srcdir/link03.at:34:
26237 export TEST_TAR_FORMAT
26238 TAR_OPTIONS=\"-H v7\"
26243 genfile -l 64 -f file1
26249 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26251 genfile -l 64 -f file1
26257 tar -c -f archive.2 -l --remove-files file1 file2 file3
26258 echo testing archive.2
26259 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26261 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26266 export TEST_TAR_FORMAT
26267 TAR_OPTIONS="-H v7"
26272 genfile -l 64 -f file1
26278 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26280 genfile -l 64 -f file1
26286 tar -c -f archive.2 -l --remove-files file1 file2 file3
26287 echo testing archive.2
26288 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26290 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26291 at_status=$? at_failed=false
26293 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26295 $at_diff - "$at_stderr" || at_failed=:
26296 echo >>"$at_stdout"; $as_echo "archive.1
26302 $at_diff - "$at_stdout" || at_failed=:
26303 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26304 $at_failed && at_fn_log_failure
26308 $as_echo "$at_srcdir/link03.at:34:
26311 TEST_TAR_FORMAT=oldgnu
26312 export TEST_TAR_FORMAT
26313 TAR_OPTIONS=\"-H oldgnu\"
26318 genfile -l 64 -f file1
26324 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26326 genfile -l 64 -f file1
26332 tar -c -f archive.2 -l --remove-files file1 file2 file3
26333 echo testing archive.2
26334 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26336 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26340 TEST_TAR_FORMAT=oldgnu
26341 export TEST_TAR_FORMAT
26342 TAR_OPTIONS="-H oldgnu"
26347 genfile -l 64 -f file1
26353 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26355 genfile -l 64 -f file1
26361 tar -c -f archive.2 -l --remove-files file1 file2 file3
26362 echo testing archive.2
26363 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26366 at_status=$? at_failed=false
26368 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26370 $at_diff - "$at_stderr" || at_failed=:
26371 echo >>"$at_stdout"; $as_echo "archive.1
26377 $at_diff - "$at_stdout" || at_failed=:
26378 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26379 $at_failed && at_fn_log_failure
26383 $as_echo "$at_srcdir/link03.at:34:
26386 TEST_TAR_FORMAT=ustar
26387 export TEST_TAR_FORMAT
26388 TAR_OPTIONS=\"-H ustar\"
26393 genfile -l 64 -f file1
26399 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26401 genfile -l 64 -f file1
26407 tar -c -f archive.2 -l --remove-files file1 file2 file3
26408 echo testing archive.2
26409 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26411 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26415 TEST_TAR_FORMAT=ustar
26416 export TEST_TAR_FORMAT
26417 TAR_OPTIONS="-H ustar"
26422 genfile -l 64 -f file1
26428 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26430 genfile -l 64 -f file1
26436 tar -c -f archive.2 -l --remove-files file1 file2 file3
26437 echo testing archive.2
26438 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26440 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26441 at_status=$? at_failed=false
26443 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26445 $at_diff - "$at_stderr" || at_failed=:
26446 echo >>"$at_stdout"; $as_echo "archive.1
26452 $at_diff - "$at_stdout" || at_failed=:
26453 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26454 $at_failed && at_fn_log_failure
26458 $as_echo "$at_srcdir/link03.at:34:
26461 TEST_TAR_FORMAT=posix
26462 export TEST_TAR_FORMAT
26463 TAR_OPTIONS=\"-H posix\"
26468 genfile -l 64 -f file1
26474 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26476 genfile -l 64 -f file1
26482 tar -c -f archive.2 -l --remove-files file1 file2 file3
26483 echo testing archive.2
26484 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26486 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26490 TEST_TAR_FORMAT=posix
26491 export TEST_TAR_FORMAT
26492 TAR_OPTIONS="-H posix"
26497 genfile -l 64 -f file1
26503 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26505 genfile -l 64 -f file1
26511 tar -c -f archive.2 -l --remove-files file1 file2 file3
26512 echo testing archive.2
26513 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26515 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26516 at_status=$? at_failed=false
26518 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26520 $at_diff - "$at_stderr" || at_failed=:
26521 echo >>"$at_stdout"; $as_echo "archive.1
26527 $at_diff - "$at_stdout" || at_failed=:
26528 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26529 $at_failed && at_fn_log_failure
26533 $as_echo "$at_srcdir/link03.at:34:
26536 TEST_TAR_FORMAT=gnu
26537 export TEST_TAR_FORMAT
26538 TAR_OPTIONS=\"-H gnu\"
26543 genfile -l 64 -f file1
26549 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26551 genfile -l 64 -f file1
26557 tar -c -f archive.2 -l --remove-files file1 file2 file3
26558 echo testing archive.2
26559 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26561 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26565 TEST_TAR_FORMAT=gnu
26566 export TEST_TAR_FORMAT
26567 TAR_OPTIONS="-H gnu"
26572 genfile -l 64 -f file1
26578 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26580 genfile -l 64 -f file1
26586 tar -c -f archive.2 -l --remove-files file1 file2 file3
26587 echo testing archive.2
26588 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26590 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26591 at_status=$? at_failed=false
26593 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26595 $at_diff - "$at_stderr" || at_failed=:
26596 echo >>"$at_stdout"; $as_echo "archive.1
26602 $at_diff - "$at_stdout" || at_failed=:
26603 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26604 $at_failed && at_fn_log_failure
26612 $at_times_p && times >"$at_times_file"
26613 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26614 read at_status <"$at_status_file"
26617 at_fn_group_banner 107 'link04.at:29' \
26618 "link count is 1 but multiple occurrences" " " 15
26620 test -f $XFAILFILE && at_xfail=yes
26622 $as_echo "107. $at_setup_line: testing $at_desc ..."
26630 $as_echo "$at_srcdir/link04.at:32:
26634 export TEST_TAR_FORMAT
26635 TAR_OPTIONS=\"-H v7\"
26640 echo TEST > dir/file
26641 ln -s file dir/symlink || exit 77
26643 tar cf archive dir dir
26644 tar tvf archive | sed '
26645 s,.*[0-9] dir/,dir/,
26650 tar chf archive dir
26651 tar tvf archive | sed '
26652 s,.*[0-9] dir/,dir/,
26657 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
26662 export TEST_TAR_FORMAT
26663 TAR_OPTIONS="-H v7"
26668 echo TEST > dir/file
26669 ln -s file dir/symlink || exit 77
26671 tar cf archive dir dir
26672 tar tvf archive | sed '
26673 s,.*[0-9] dir/,dir/,
26678 tar chf archive dir
26679 tar tvf archive | sed '
26680 s,.*[0-9] dir/,dir/,
26685 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26686 at_status=$? at_failed=false
26688 at_fn_diff_devnull "$at_stderr" || at_failed=:
26689 echo >>"$at_stdout"; $as_echo "dir/
26692 dir/file link to dir/file
26693 dir/symlink -> file
26694 dir/symlink link to dir/symlink
26698 dir/FOO link to dir/FOO
26700 $at_diff - "$at_stdout" || at_failed=:
26701 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
26702 $at_failed && at_fn_log_failure
26706 $as_echo "$at_srcdir/link04.at:32:
26709 TEST_TAR_FORMAT=oldgnu
26710 export TEST_TAR_FORMAT
26711 TAR_OPTIONS=\"-H oldgnu\"
26716 echo TEST > dir/file
26717 ln -s file dir/symlink || exit 77
26719 tar cf archive dir dir
26720 tar tvf archive | sed '
26721 s,.*[0-9] dir/,dir/,
26726 tar chf archive dir
26727 tar tvf archive | sed '
26728 s,.*[0-9] dir/,dir/,
26733 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
26737 TEST_TAR_FORMAT=oldgnu
26738 export TEST_TAR_FORMAT
26739 TAR_OPTIONS="-H oldgnu"
26744 echo TEST > dir/file
26745 ln -s file dir/symlink || exit 77
26747 tar cf archive dir dir
26748 tar tvf archive | sed '
26749 s,.*[0-9] dir/,dir/,
26754 tar chf archive dir
26755 tar tvf archive | sed '
26756 s,.*[0-9] dir/,dir/,
26761 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26762 at_status=$? at_failed=false
26764 at_fn_diff_devnull "$at_stderr" || at_failed=:
26765 echo >>"$at_stdout"; $as_echo "dir/
26768 dir/file link to dir/file
26769 dir/symlink -> file
26770 dir/symlink link to dir/symlink
26774 dir/FOO link to dir/FOO
26776 $at_diff - "$at_stdout" || at_failed=:
26777 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
26778 $at_failed && at_fn_log_failure
26782 $as_echo "$at_srcdir/link04.at:32:
26785 TEST_TAR_FORMAT=ustar
26786 export TEST_TAR_FORMAT
26787 TAR_OPTIONS=\"-H ustar\"
26792 echo TEST > dir/file
26793 ln -s file dir/symlink || exit 77
26795 tar cf archive dir dir
26796 tar tvf archive | sed '
26797 s,.*[0-9] dir/,dir/,
26802 tar chf archive dir
26803 tar tvf archive | sed '
26804 s,.*[0-9] dir/,dir/,
26809 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
26813 TEST_TAR_FORMAT=ustar
26814 export TEST_TAR_FORMAT
26815 TAR_OPTIONS="-H ustar"
26820 echo TEST > dir/file
26821 ln -s file dir/symlink || exit 77
26823 tar cf archive dir dir
26824 tar tvf archive | sed '
26825 s,.*[0-9] dir/,dir/,
26830 tar chf archive dir
26831 tar tvf archive | sed '
26832 s,.*[0-9] dir/,dir/,
26837 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26838 at_status=$? at_failed=false
26840 at_fn_diff_devnull "$at_stderr" || at_failed=:
26841 echo >>"$at_stdout"; $as_echo "dir/
26844 dir/file link to dir/file
26845 dir/symlink -> file
26846 dir/symlink link to dir/symlink
26850 dir/FOO link to dir/FOO
26852 $at_diff - "$at_stdout" || at_failed=:
26853 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
26854 $at_failed && at_fn_log_failure
26858 $as_echo "$at_srcdir/link04.at:32:
26861 TEST_TAR_FORMAT=posix
26862 export TEST_TAR_FORMAT
26863 TAR_OPTIONS=\"-H posix\"
26868 echo TEST > dir/file
26869 ln -s file dir/symlink || exit 77
26871 tar cf archive dir dir
26872 tar tvf archive | sed '
26873 s,.*[0-9] dir/,dir/,
26878 tar chf archive dir
26879 tar tvf archive | sed '
26880 s,.*[0-9] dir/,dir/,
26885 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
26889 TEST_TAR_FORMAT=posix
26890 export TEST_TAR_FORMAT
26891 TAR_OPTIONS="-H posix"
26896 echo TEST > dir/file
26897 ln -s file dir/symlink || exit 77
26899 tar cf archive dir dir
26900 tar tvf archive | sed '
26901 s,.*[0-9] dir/,dir/,
26906 tar chf archive dir
26907 tar tvf archive | sed '
26908 s,.*[0-9] dir/,dir/,
26913 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26914 at_status=$? at_failed=false
26916 at_fn_diff_devnull "$at_stderr" || at_failed=:
26917 echo >>"$at_stdout"; $as_echo "dir/
26920 dir/file link to dir/file
26921 dir/symlink -> file
26922 dir/symlink link to dir/symlink
26926 dir/FOO link to dir/FOO
26928 $at_diff - "$at_stdout" || at_failed=:
26929 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
26930 $at_failed && at_fn_log_failure
26934 $as_echo "$at_srcdir/link04.at:32:
26937 TEST_TAR_FORMAT=gnu
26938 export TEST_TAR_FORMAT
26939 TAR_OPTIONS=\"-H gnu\"
26944 echo TEST > dir/file
26945 ln -s file dir/symlink || exit 77
26947 tar cf archive dir dir
26948 tar tvf archive | sed '
26949 s,.*[0-9] dir/,dir/,
26954 tar chf archive dir
26955 tar tvf archive | sed '
26956 s,.*[0-9] dir/,dir/,
26961 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
26965 TEST_TAR_FORMAT=gnu
26966 export TEST_TAR_FORMAT
26967 TAR_OPTIONS="-H gnu"
26972 echo TEST > dir/file
26973 ln -s file dir/symlink || exit 77
26975 tar cf archive dir dir
26976 tar tvf archive | sed '
26977 s,.*[0-9] dir/,dir/,
26982 tar chf archive dir
26983 tar tvf archive | sed '
26984 s,.*[0-9] dir/,dir/,
26989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26990 at_status=$? at_failed=false
26992 at_fn_diff_devnull "$at_stderr" || at_failed=:
26993 echo >>"$at_stdout"; $as_echo "dir/
26996 dir/file link to dir/file
26997 dir/symlink -> file
26998 dir/symlink link to dir/symlink
27002 dir/FOO link to dir/FOO
27004 $at_diff - "$at_stdout" || at_failed=:
27005 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27006 $at_failed && at_fn_log_failure
27013 $at_times_p && times >"$at_times_file"
27014 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27015 read at_status <"$at_status_file"
27018 at_fn_group_banner 108 'longv7.at:24' \
27019 "long names in V7 archives" " " 16
27021 test -f $XFAILFILE && at_xfail=yes
27023 $as_echo "108. $at_setup_line: testing $at_desc ..."
27034 $as_echo "$at_srcdir/longv7.at:30:
27038 export TEST_TAR_FORMAT
27039 TAR_OPTIONS=\"-H v7\"
27043 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
27044 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
27046 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
27050 at_fn_check_prepare_notrace 'an embedded newline' "longv7.at:30"
27055 export TEST_TAR_FORMAT
27056 TAR_OPTIONS="-H v7"
27060 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
27061 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
27063 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
27067 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27068 at_status=$? at_failed=false
27070 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c: file name is too long (max 99); not dumped
27071 tar: Exiting with failure status due to previous errors
27073 $at_diff - "$at_stderr" || at_failed=:
27074 echo >>"$at_stdout"; $as_echo "separator
27075 this_is_a_very_long_name_for_a_directory_which_causes_problems/
27077 $at_diff - "$at_stdout" || at_failed=:
27078 at_fn_check_status 0 $at_status "$at_srcdir/longv7.at:30"
27079 $at_failed && at_fn_log_failure
27088 $at_times_p && times >"$at_times_file"
27089 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27090 read at_status <"$at_status_file"
27093 at_fn_group_banner 109 'long01.at:28' \
27094 "long file names divisible by block size" " " 16
27096 test -f $XFAILFILE && at_xfail=yes
27098 $as_echo "109. $at_setup_line: testing $at_desc ..."
27110 $as_echo "$at_srcdir/long01.at:36:
27113 TEST_TAR_FORMAT=gnu
27114 export TEST_TAR_FORMAT
27115 TAR_OPTIONS=\"-H gnu\"
27120 install-sh -d 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde >/dev/null && genfile --file 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde || exit 77
27121 echo test > endfile
27123 tar cf archive 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde endfile
27125 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
27129 TEST_TAR_FORMAT=gnu
27130 export TEST_TAR_FORMAT
27131 TAR_OPTIONS="-H gnu"
27136 install-sh -d 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde >/dev/null && genfile --file 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde || exit 77
27137 echo test > endfile
27139 tar cf archive 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde endfile
27141 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27142 at_status=$? at_failed=false
27144 at_fn_diff_devnull "$at_stderr" || at_failed=:
27145 echo >>"$at_stdout"; $as_echo "0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde
27148 $at_diff - "$at_stdout" || at_failed=:
27149 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
27150 $at_failed && at_fn_log_failure
27154 $as_echo "$at_srcdir/long01.at:36:
27157 TEST_TAR_FORMAT=oldgnu
27158 export TEST_TAR_FORMAT
27159 TAR_OPTIONS=\"-H oldgnu\"
27164 install-sh -d 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde >/dev/null && genfile --file 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde || exit 77
27165 echo test > endfile
27167 tar cf archive 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde endfile
27169 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
27173 TEST_TAR_FORMAT=oldgnu
27174 export TEST_TAR_FORMAT
27175 TAR_OPTIONS="-H oldgnu"
27180 install-sh -d 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde >/dev/null && genfile --file 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde || exit 77
27181 echo test > endfile
27183 tar cf archive 0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde endfile
27185 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27186 at_status=$? at_failed=false
27188 at_fn_diff_devnull "$at_stderr" || at_failed=:
27189 echo >>"$at_stdout"; $as_echo "0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde
27192 $at_diff - "$at_stdout" || at_failed=:
27193 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
27194 $at_failed && at_fn_log_failure
27203 $at_times_p && times >"$at_times_file"
27204 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27205 read at_status <"$at_status_file"
27208 at_fn_group_banner 110 'lustar01.at:21' \
27209 "ustar: unsplittable file name" " " 16
27211 test -f $XFAILFILE && at_xfail=yes
27213 $as_echo "110. $at_setup_line: testing $at_desc ..."
27223 $as_echo "$at_srcdir/lustar01.at:27:
27226 TEST_TAR_FORMAT=ustar
27227 export TEST_TAR_FORMAT
27228 TAR_OPTIONS=\"-H ustar\"
27232 genfile --file=this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix || exit 77
27233 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix
27235 at_fn_check_prepare_notrace 'an embedded newline' "lustar01.at:27"
27239 TEST_TAR_FORMAT=ustar
27240 export TEST_TAR_FORMAT
27241 TAR_OPTIONS="-H ustar"
27245 genfile --file=this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix || exit 77
27246 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix
27248 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27249 at_status=$? at_failed=false
27251 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix: file name is too long (cannot be split); not dumped
27252 tar: Exiting with failure status due to previous errors
27254 $at_diff - "$at_stderr" || at_failed=:
27255 at_fn_diff_devnull "$at_stdout" || at_failed=:
27256 at_fn_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
27257 $at_failed && at_fn_log_failure
27265 $at_times_p && times >"$at_times_file"
27266 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27267 read at_status <"$at_status_file"
27270 at_fn_group_banner 111 'lustar02.at:21' \
27271 "ustar: unsplittable path name" " " 16
27273 test -f $XFAILFILE && at_xfail=yes
27275 $as_echo "111. $at_setup_line: testing $at_desc ..."
27289 $as_echo "$at_srcdir/lustar02.at:32:
27292 TEST_TAR_FORMAT=ustar
27293 export TEST_TAR_FORMAT
27294 TAR_OPTIONS=\"-H ustar\"
27299 install-sh -d this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be >/dev/null && genfile --file this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/tween_name_and_prefix || exit 77
27300 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be
27302 at_fn_check_prepare_notrace 'an embedded newline' "lustar02.at:32"
27306 TEST_TAR_FORMAT=ustar
27307 export TEST_TAR_FORMAT
27308 TAR_OPTIONS="-H ustar"
27313 install-sh -d this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be >/dev/null && genfile --file this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/tween_name_and_prefix || exit 77
27314 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be
27316 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27317 at_status=$? at_failed=false
27319 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/: file name is too long (cannot be split); not dumped
27320 tar: Exiting with failure status due to previous errors
27322 $at_diff - "$at_stderr" || at_failed=:
27323 at_fn_diff_devnull "$at_stdout" || at_failed=:
27324 at_fn_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
27325 $at_failed && at_fn_log_failure
27336 $at_times_p && times >"$at_times_file"
27337 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27338 read at_status <"$at_status_file"
27341 at_fn_group_banner 112 'lustar03.at:21' \
27342 "ustar: splitting long names" " " 16
27344 test -f $XFAILFILE && at_xfail=yes
27346 $as_echo "112. $at_setup_line: testing $at_desc ..."
27358 $as_echo "$at_srcdir/lustar03.at:29:
27361 TEST_TAR_FORMAT=ustar
27362 export TEST_TAR_FORMAT
27363 TAR_OPTIONS=\"-H ustar\"
27368 install-sh -d this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be >/dev/null && genfile --file this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/file || exit 77
27369 echo \"Create archive\"
27370 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be
27371 echo \"List archive\"
27373 at_fn_check_prepare_notrace 'an embedded newline' "lustar03.at:29"
27377 TEST_TAR_FORMAT=ustar
27378 export TEST_TAR_FORMAT
27379 TAR_OPTIONS="-H ustar"
27384 install-sh -d this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be >/dev/null && genfile --file this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/file || exit 77
27385 echo "Create archive"
27386 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be
27387 echo "List archive"
27389 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27390 at_status=$? at_failed=false
27392 at_fn_diff_devnull "$at_stderr" || at_failed=:
27393 echo >>"$at_stdout"; $as_echo "Create archive
27395 this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/
27396 this_is_a_very_long_name_for_a_file_designed_to_test_generation/of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/file
27398 $at_diff - "$at_stdout" || at_failed=:
27399 at_fn_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
27400 $at_failed && at_fn_log_failure
27409 $at_times_p && times >"$at_times_file"
27410 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27411 read at_status <"$at_status_file"
27414 at_fn_group_banner 113 'old.at:23' \
27415 "old archives" " " 16
27418 $as_echo "113. $at_setup_line: testing $at_desc ..."
27425 $as_echo "$at_srcdir/old.at:27:
27427 tar cfvo archive directory || exit 1
27430 at_fn_check_prepare_notrace 'an embedded newline' "old.at:27"
27433 tar cfvo archive directory || exit 1
27436 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27437 at_status=$? at_failed=false
27439 at_fn_diff_devnull "$at_stderr" || at_failed=:
27440 echo >>"$at_stdout"; $as_echo "directory/
27443 $at_diff - "$at_stdout" || at_failed=:
27444 at_fn_check_status 0 $at_status "$at_srcdir/old.at:27"
27445 $at_failed && at_fn_log_failure
27450 $at_times_p && times >"$at_times_file"
27451 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27452 read at_status <"$at_status_file"
27455 at_fn_group_banner 114 'time01.at:20' \
27456 "time: tricky time stamps" " " 16
27458 test -f $XFAILFILE && at_xfail=yes
27460 $as_echo "114. $at_setup_line: testing $at_desc ..."
27468 $as_echo "$at_srcdir/time01.at:23:
27471 TEST_TAR_FORMAT=pax
27472 export TEST_TAR_FORMAT
27473 TAR_OPTIONS=\"-H pax\"
27480 # Test files with time stamps that are near common sources of error,
27481 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
27482 # Use GNU-style @ notation for very large time stamps, since they
27483 # typically don't render into years correctly due to int overflow.
27485 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \\
27486 0000-01-01T00:00:00 0000-01-01T00:00:01 \\
27487 0000-01-02T00:00:00 \\
27488 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \\
27489 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \\
27490 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \\
27491 1901-12-14T20:45:51 \\
27492 1969-12-31T23:59:58 1969-12-31T23:59:59 \\
27493 1970-01-01T00:00:00 1970-01-01T00:00:01 \\
27494 2038-01-18T03:14:07 \\
27495 2038-01-19T03:14:07 2038-01-19T03:14:08 \\
27496 2106-02-07T06:28:15 2106-02-07T06:28:16 \\
27497 2242-03-16T12:56:31 2242-03-16T12:56:32 \\
27498 9999-12-31T23:59:58 9999-12-31T23:59:59 \\
27499 @9223372036854775807 @9223372036854775808
27501 # Skip a time stamp \$s if it's out of range for this platform,
27502 # of if it uses a notation that this platform does not recognize.
27503 touch -d \$s dir/f\$s >/dev/null 2>&1 || continue
27505 # Likewise for \$s.1. If \$s is the most negative time stamp and
27506 # time stamps are signed, then \$s.1 is out of range.
27507 touch -d \$s.1 dir/f\$s.\$ns >/dev/null 2>&1 || continue
27509 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \\
27510 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
27512 touch -d \$s.\$frac dir/f\$s.\$frac
27516 tar -c -f archive.tar dir
27517 tar -d -f archive.tar dir
27519 at_fn_check_prepare_notrace 'an embedded newline' "time01.at:23"
27523 TEST_TAR_FORMAT=pax
27524 export TEST_TAR_FORMAT
27525 TAR_OPTIONS="-H pax"
27532 # Test files with time stamps that are near common sources of error,
27533 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
27534 # Use GNU-style @ notation for very large time stamps, since they
27535 # typically don't render into years correctly due to int overflow.
27537 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \
27538 0000-01-01T00:00:00 0000-01-01T00:00:01 \
27539 0000-01-02T00:00:00 \
27540 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \
27541 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \
27542 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \
27543 1901-12-14T20:45:51 \
27544 1969-12-31T23:59:58 1969-12-31T23:59:59 \
27545 1970-01-01T00:00:00 1970-01-01T00:00:01 \
27546 2038-01-18T03:14:07 \
27547 2038-01-19T03:14:07 2038-01-19T03:14:08 \
27548 2106-02-07T06:28:15 2106-02-07T06:28:16 \
27549 2242-03-16T12:56:31 2242-03-16T12:56:32 \
27550 9999-12-31T23:59:58 9999-12-31T23:59:59 \
27551 @9223372036854775807 @9223372036854775808
27553 # Skip a time stamp $s if it's out of range for this platform,
27554 # of if it uses a notation that this platform does not recognize.
27555 touch -d $s dir/f$s >/dev/null 2>&1 || continue
27557 # Likewise for $s.1. If $s is the most negative time stamp and
27558 # time stamps are signed, then $s.1 is out of range.
27559 touch -d $s.1 dir/f$s.$ns >/dev/null 2>&1 || continue
27561 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \
27562 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
27564 touch -d $s.$frac dir/f$s.$frac
27568 tar -c -f archive.tar dir
27569 tar -d -f archive.tar dir
27571 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27572 at_status=$? at_failed=false
27574 at_fn_diff_devnull "$at_stderr" || at_failed=:
27575 at_fn_diff_devnull "$at_stdout" || at_failed=:
27576 at_fn_check_status 0 $at_status "$at_srcdir/time01.at:23"
27577 $at_failed && at_fn_log_failure
27584 $at_times_p && times >"$at_times_file"
27585 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27586 read at_status <"$at_status_file"
27589 at_fn_group_banner 115 'multiv01.at:23' \
27590 "multivolume dumps from pipes" " " 17
27592 test -f $XFAILFILE && at_xfail=yes
27594 $as_echo "115. $at_setup_line: testing $at_desc ..."
27599 # Fixme: should be configurable
27600 # TRUSS=truss -o /tmp/tr
27606 $as_echo "$at_srcdir/multiv01.at:30:
27609 TEST_TAR_FORMAT=gnu
27610 export TEST_TAR_FORMAT
27611 TAR_OPTIONS=\"-H gnu\"
27616 genfile --length 7168 --file file1
27618 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
27619 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
27620 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27621 for count in 2 3 4 5 6 7 8 ; do
27622 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27626 if test \$TEST_TAR_FORMAT = pax; then
27632 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
27633 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27635 mkdir extract-dir-pipe
27636 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27637 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
27638 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
27639 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
27641 cmp file1 extract-dir-pipe/file1
27642 cmp file2 extract-dir-pipe/file2
27644 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:30"
27648 TEST_TAR_FORMAT=gnu
27649 export TEST_TAR_FORMAT
27650 TAR_OPTIONS="-H gnu"
27655 genfile --length 7168 --file file1
27657 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
27658 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
27659 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27660 for count in 2 3 4 5 6 7 8 ; do
27661 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27665 if test $TEST_TAR_FORMAT = pax; then
27671 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
27672 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27674 mkdir extract-dir-pipe
27675 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27676 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
27677 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
27678 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
27680 cmp file1 extract-dir-pipe/file1
27681 cmp file2 extract-dir-pipe/file2
27683 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27684 at_status=$? at_failed=false
27686 at_fn_diff_devnull "$at_stderr" || at_failed=:
27687 at_fn_diff_devnull "$at_stdout" || at_failed=:
27688 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
27689 $at_failed && at_fn_log_failure
27693 $as_echo "$at_srcdir/multiv01.at:30:
27696 TEST_TAR_FORMAT=oldgnu
27697 export TEST_TAR_FORMAT
27698 TAR_OPTIONS=\"-H oldgnu\"
27703 genfile --length 7168 --file file1
27705 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
27706 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
27707 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27708 for count in 2 3 4 5 6 7 8 ; do
27709 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27713 if test \$TEST_TAR_FORMAT = pax; then
27719 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
27720 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27722 mkdir extract-dir-pipe
27723 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27724 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
27725 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
27726 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
27728 cmp file1 extract-dir-pipe/file1
27729 cmp file2 extract-dir-pipe/file2
27731 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:30"
27735 TEST_TAR_FORMAT=oldgnu
27736 export TEST_TAR_FORMAT
27737 TAR_OPTIONS="-H oldgnu"
27742 genfile --length 7168 --file file1
27744 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
27745 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
27746 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27747 for count in 2 3 4 5 6 7 8 ; do
27748 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27752 if test $TEST_TAR_FORMAT = pax; then
27758 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
27759 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27761 mkdir extract-dir-pipe
27762 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27763 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
27764 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
27765 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
27767 cmp file1 extract-dir-pipe/file1
27768 cmp file2 extract-dir-pipe/file2
27770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27771 at_status=$? at_failed=false
27773 at_fn_diff_devnull "$at_stderr" || at_failed=:
27774 at_fn_diff_devnull "$at_stdout" || at_failed=:
27775 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
27776 $at_failed && at_fn_log_failure
27780 $as_echo "$at_srcdir/multiv01.at:30:
27783 TEST_TAR_FORMAT=pax
27784 export TEST_TAR_FORMAT
27785 TAR_OPTIONS=\"-H pax\"
27790 genfile --length 7168 --file file1
27792 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
27793 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
27794 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27795 for count in 2 3 4 5 6 7 8 ; do
27796 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
27800 if test \$TEST_TAR_FORMAT = pax; then
27806 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
27807 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27809 mkdir extract-dir-pipe
27810 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27811 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
27812 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
27813 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
27815 cmp file1 extract-dir-pipe/file1
27816 cmp file2 extract-dir-pipe/file2
27818 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:30"
27822 TEST_TAR_FORMAT=pax
27823 export TEST_TAR_FORMAT
27824 TAR_OPTIONS="-H pax"
27829 genfile --length 7168 --file file1
27831 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
27832 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
27833 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27834 for count in 2 3 4 5 6 7 8 ; do
27835 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
27839 if test $TEST_TAR_FORMAT = pax; then
27845 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
27846 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
27848 mkdir extract-dir-pipe
27849 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
27850 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
27851 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
27852 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
27854 cmp file1 extract-dir-pipe/file1
27855 cmp file2 extract-dir-pipe/file2
27857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27858 at_status=$? at_failed=false
27860 at_fn_diff_devnull "$at_stderr" || at_failed=:
27861 at_fn_diff_devnull "$at_stdout" || at_failed=:
27862 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
27863 $at_failed && at_fn_log_failure
27870 $at_times_p && times >"$at_times_file"
27871 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27872 read at_status <"$at_status_file"
27875 at_fn_group_banner 116 'multiv02.at:28' \
27876 "skipping a straddling member" " " 17
27878 test -f $XFAILFILE && at_xfail=yes
27880 $as_echo "116. $at_setup_line: testing $at_desc ..."
27888 $as_echo "$at_srcdir/multiv02.at:31:
27891 TEST_TAR_FORMAT=gnu
27892 export TEST_TAR_FORMAT
27893 TAR_OPTIONS=\"-H gnu\"
27897 genfile --length 10240 --file en
27898 genfile --length 20000 --file to
27899 genfile --length 20000 --file tre
27900 genfile --length 10240 --file fire
27904 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27906 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
27908 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
27912 TEST_TAR_FORMAT=gnu
27913 export TEST_TAR_FORMAT
27914 TAR_OPTIONS="-H gnu"
27918 genfile --length 10240 --file en
27919 genfile --length 20000 --file to
27920 genfile --length 20000 --file tre
27921 genfile --length 10240 --file fire
27925 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27927 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
27929 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27930 at_status=$? at_failed=false
27932 at_fn_diff_devnull "$at_stderr" || at_failed=:
27933 echo >>"$at_stdout"; $as_echo "separator
27936 $at_diff - "$at_stdout" || at_failed=:
27937 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
27938 $at_failed && at_fn_log_failure
27942 $as_echo "$at_srcdir/multiv02.at:31:
27945 TEST_TAR_FORMAT=oldgnu
27946 export TEST_TAR_FORMAT
27947 TAR_OPTIONS=\"-H oldgnu\"
27951 genfile --length 10240 --file en
27952 genfile --length 20000 --file to
27953 genfile --length 20000 --file tre
27954 genfile --length 10240 --file fire
27958 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27960 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
27962 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
27966 TEST_TAR_FORMAT=oldgnu
27967 export TEST_TAR_FORMAT
27968 TAR_OPTIONS="-H oldgnu"
27972 genfile --length 10240 --file en
27973 genfile --length 20000 --file to
27974 genfile --length 20000 --file tre
27975 genfile --length 10240 --file fire
27979 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27981 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
27983 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27984 at_status=$? at_failed=false
27986 at_fn_diff_devnull "$at_stderr" || at_failed=:
27987 echo >>"$at_stdout"; $as_echo "separator
27990 $at_diff - "$at_stdout" || at_failed=:
27991 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
27992 $at_failed && at_fn_log_failure
27996 $as_echo "$at_srcdir/multiv02.at:31:
27999 TEST_TAR_FORMAT=pax
28000 export TEST_TAR_FORMAT
28001 TAR_OPTIONS=\"-H pax\"
28005 genfile --length 10240 --file en
28006 genfile --length 20000 --file to
28007 genfile --length 20000 --file tre
28008 genfile --length 10240 --file fire
28012 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28014 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28016 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
28020 TEST_TAR_FORMAT=pax
28021 export TEST_TAR_FORMAT
28022 TAR_OPTIONS="-H pax"
28026 genfile --length 10240 --file en
28027 genfile --length 20000 --file to
28028 genfile --length 20000 --file tre
28029 genfile --length 10240 --file fire
28033 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28035 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28037 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28038 at_status=$? at_failed=false
28040 at_fn_diff_devnull "$at_stderr" || at_failed=:
28041 echo >>"$at_stdout"; $as_echo "separator
28044 $at_diff - "$at_stdout" || at_failed=:
28045 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
28046 $at_failed && at_fn_log_failure
28053 $at_times_p && times >"$at_times_file"
28054 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28055 read at_status <"$at_status_file"
28058 at_fn_group_banner 117 'multiv03.at:30' \
28059 "MV archive & long filenames" " " 17
28061 test -f $XFAILFILE && at_xfail=yes
28063 $as_echo "117. $at_setup_line: testing $at_desc ..."
28071 $as_echo "$at_srcdir/multiv03.at:33:
28074 TEST_TAR_FORMAT=gnu
28075 export TEST_TAR_FORMAT
28076 TAR_OPTIONS=\"-H gnu\"
28080 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
28081 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
28083 cat > ../experr <<EOF
28084 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
28085 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
28088 cat > ../expout <<EOF
28094 genfile --length 15360 --file \$AFILE
28098 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
28099 tar -tM -f arch.1 -f arch.2 || exit 1
28103 genfile --length 15360 --file \$BFILE
28104 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
28108 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28111 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
28115 TEST_TAR_FORMAT=gnu
28116 export TEST_TAR_FORMAT
28117 TAR_OPTIONS="-H gnu"
28121 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
28122 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
28124 cat > ../experr <<EOF
28125 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
28126 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
28129 cat > ../expout <<EOF
28135 genfile --length 15360 --file $AFILE
28139 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
28140 tar -tM -f arch.1 -f arch.2 || exit 1
28144 genfile --length 15360 --file $BFILE
28145 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
28149 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28152 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28153 at_status=$? at_failed=false
28155 $at_diff experr "$at_stderr" || at_failed=:
28156 $at_diff expout "$at_stdout" || at_failed=:
28157 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
28158 $at_failed && at_fn_log_failure
28162 $as_echo "$at_srcdir/multiv03.at:33:
28165 TEST_TAR_FORMAT=oldgnu
28166 export TEST_TAR_FORMAT
28167 TAR_OPTIONS=\"-H oldgnu\"
28171 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
28172 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
28174 cat > ../experr <<EOF
28175 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
28176 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
28179 cat > ../expout <<EOF
28185 genfile --length 15360 --file \$AFILE
28189 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
28190 tar -tM -f arch.1 -f arch.2 || exit 1
28194 genfile --length 15360 --file \$BFILE
28195 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
28199 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28202 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
28206 TEST_TAR_FORMAT=oldgnu
28207 export TEST_TAR_FORMAT
28208 TAR_OPTIONS="-H oldgnu"
28212 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
28213 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
28215 cat > ../experr <<EOF
28216 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
28217 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
28220 cat > ../expout <<EOF
28226 genfile --length 15360 --file $AFILE
28230 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
28231 tar -tM -f arch.1 -f arch.2 || exit 1
28235 genfile --length 15360 --file $BFILE
28236 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
28240 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28243 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28244 at_status=$? at_failed=false
28246 $at_diff experr "$at_stderr" || at_failed=:
28247 $at_diff expout "$at_stdout" || at_failed=:
28248 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
28249 $at_failed && at_fn_log_failure
28256 $at_times_p && times >"$at_times_file"
28257 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28258 read at_status <"$at_status_file"
28261 at_fn_group_banner 118 'multiv04.at:36' \
28262 "split directory members in a MV archive" " " 17
28264 test -f $XFAILFILE && at_xfail=yes
28266 $as_echo "118. $at_setup_line: testing $at_desc ..."
28274 $as_echo "$at_srcdir/multiv04.at:39:
28277 TEST_TAR_FORMAT=gnu
28278 export TEST_TAR_FORMAT
28279 TAR_OPTIONS=\"-H gnu\"
28285 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
28291 tar --listed-incremental=list -c -f archive.a directory
28295 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28299 tar -MRt -f arc.1 -f arc.2)"
28300 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
28304 TEST_TAR_FORMAT=gnu
28305 export TEST_TAR_FORMAT
28306 TAR_OPTIONS="-H gnu"
28312 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
28318 tar --listed-incremental=list -c -f archive.a directory
28322 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28326 tar -MRt -f arc.1 -f arc.2)
28327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28328 at_status=$? at_failed=false
28330 at_fn_diff_devnull "$at_stderr" || at_failed=:
28331 echo >>"$at_stdout"; $as_echo "directory/
28333 block 0: directory/
28334 block 35: ** Block of NULs **
28336 $at_diff - "$at_stdout" || at_failed=:
28337 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
28338 $at_failed && at_fn_log_failure
28342 $as_echo "$at_srcdir/multiv04.at:39:
28345 TEST_TAR_FORMAT=oldgnu
28346 export TEST_TAR_FORMAT
28347 TAR_OPTIONS=\"-H oldgnu\"
28353 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
28359 tar --listed-incremental=list -c -f archive.a directory
28363 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28367 tar -MRt -f arc.1 -f arc.2)"
28368 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
28372 TEST_TAR_FORMAT=oldgnu
28373 export TEST_TAR_FORMAT
28374 TAR_OPTIONS="-H oldgnu"
28380 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
28386 tar --listed-incremental=list -c -f archive.a directory
28390 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28394 tar -MRt -f arc.1 -f arc.2)
28395 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28396 at_status=$? at_failed=false
28398 at_fn_diff_devnull "$at_stderr" || at_failed=:
28399 echo >>"$at_stdout"; $as_echo "directory/
28401 block 0: directory/
28402 block 35: ** Block of NULs **
28404 $at_diff - "$at_stdout" || at_failed=:
28405 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
28406 $at_failed && at_fn_log_failure
28413 $at_times_p && times >"$at_times_file"
28414 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28415 read at_status <"$at_status_file"
28418 at_fn_group_banner 119 'multiv05.at:26' \
28419 "Restoring after an out of sync volume" " " 17
28421 test -f $XFAILFILE && at_xfail=yes
28423 $as_echo "119. $at_setup_line: testing $at_desc ..."
28432 $as_echo "$at_srcdir/multiv05.at:30:
28435 TEST_TAR_FORMAT=gnu
28436 export TEST_TAR_FORMAT
28437 TAR_OPTIONS=\"-H gnu\"
28443 genfile --length 250k --file jeden
28444 genfile --length 250k --file dwa
28445 genfile --length 250k --file trzy
28446 genfile --length 250k --file cztery
28447 genfile --length 250k --file piec
28448 genfile --length 250k --file szesc
28451 echo Creating archive
28452 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
28455 mv jeden dwa trzy cztery piec szesc bak
28456 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
28458 cmp bak/jeden jeden || exit 1
28460 cmp bak/dwa dwa || exit 1
28462 cmp bak/trzy trzy || exit 1
28463 echo Diffing cztery
28464 cmp bak/cztery cztery || exit 1
28466 cmp bak/piec piec || exit 1
28468 cmp bak/szesc szesc || exit 1
28470 at_fn_check_prepare_notrace 'an embedded newline' "multiv05.at:30"
28474 TEST_TAR_FORMAT=gnu
28475 export TEST_TAR_FORMAT
28476 TAR_OPTIONS="-H gnu"
28482 genfile --length 250k --file jeden
28483 genfile --length 250k --file dwa
28484 genfile --length 250k --file trzy
28485 genfile --length 250k --file cztery
28486 genfile --length 250k --file piec
28487 genfile --length 250k --file szesc
28490 echo Creating archive
28491 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
28494 mv jeden dwa trzy cztery piec szesc bak
28495 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
28497 cmp bak/jeden jeden || exit 1
28499 cmp bak/dwa dwa || exit 1
28501 cmp bak/trzy trzy || exit 1
28502 echo Diffing cztery
28503 cmp bak/cztery cztery || exit 1
28505 cmp bak/piec piec || exit 1
28507 cmp bak/szesc szesc || exit 1
28509 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28510 at_status=$? at_failed=false
28512 echo >>"$at_stderr"; $as_echo "tar: 'trzy' is not continued on this volume
28514 $at_diff - "$at_stderr" || at_failed=:
28515 echo >>"$at_stdout"; $as_echo "Creating archive
28530 $at_diff - "$at_stdout" || at_failed=:
28531 at_fn_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
28532 $at_failed && at_fn_log_failure
28540 $at_times_p && times >"$at_times_file"
28541 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28542 read at_status <"$at_status_file"
28545 at_fn_group_banner 120 'multiv06.at:27' \
28546 "Multivolumes with L=record_size" " " 17
28548 test -f $XFAILFILE && at_xfail=yes
28550 $as_echo "120. $at_setup_line: testing $at_desc ..."
28558 $as_echo "$at_srcdir/multiv06.at:30:
28561 TEST_TAR_FORMAT=gnu
28562 export TEST_TAR_FORMAT
28563 TAR_OPTIONS=\"-H gnu\"
28568 decho Creating file
28569 genfile --length 20139 --file file
28570 decho Creating archive
28571 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
28572 decho Testing archive
28573 tar -t -M -farc.1 -farc.2 -farc.3)"
28574 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
28578 TEST_TAR_FORMAT=gnu
28579 export TEST_TAR_FORMAT
28580 TAR_OPTIONS="-H gnu"
28585 decho Creating file
28586 genfile --length 20139 --file file
28587 decho Creating archive
28588 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
28589 decho Testing archive
28590 tar -t -M -farc.1 -farc.2 -farc.3)
28591 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28592 at_status=$? at_failed=false
28594 echo >>"$at_stderr"; $as_echo "Creating file
28598 $at_diff - "$at_stderr" || at_failed=:
28599 echo >>"$at_stdout"; $as_echo "Creating file
28604 $at_diff - "$at_stdout" || at_failed=:
28605 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
28606 $at_failed && at_fn_log_failure
28610 $as_echo "$at_srcdir/multiv06.at:30:
28613 TEST_TAR_FORMAT=pax
28614 export TEST_TAR_FORMAT
28615 TAR_OPTIONS=\"-H pax\"
28620 decho Creating file
28621 genfile --length 20139 --file file
28622 decho Creating archive
28623 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
28624 decho Testing archive
28625 tar -t -M -farc.1 -farc.2 -farc.3)"
28626 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
28630 TEST_TAR_FORMAT=pax
28631 export TEST_TAR_FORMAT
28632 TAR_OPTIONS="-H pax"
28637 decho Creating file
28638 genfile --length 20139 --file file
28639 decho Creating archive
28640 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
28641 decho Testing archive
28642 tar -t -M -farc.1 -farc.2 -farc.3)
28643 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28644 at_status=$? at_failed=false
28646 echo >>"$at_stderr"; $as_echo "Creating file
28650 $at_diff - "$at_stderr" || at_failed=:
28651 echo >>"$at_stdout"; $as_echo "Creating file
28656 $at_diff - "$at_stdout" || at_failed=:
28657 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
28658 $at_failed && at_fn_log_failure
28665 $at_times_p && times >"$at_times_file"
28666 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28667 read at_status <"$at_status_file"
28670 at_fn_group_banner 121 'multiv07.at:28' \
28671 "volumes split at an extended header" " " 17
28673 test -f $XFAILFILE && at_xfail=yes
28675 $as_echo "121. $at_setup_line: testing $at_desc ..."
28681 $as_echo "$at_srcdir/multiv07.at:31:
28684 test -z \"\$TEST_DATA_DIR\" && exit 77
28685 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
28687 test -z \"\$TEST_DATA_DIR\" && exit 77
28688 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
28693 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
28695 at_fn_check_prepare_notrace 'an embedded newline' "multiv07.at:31"
28699 test -z "$TEST_DATA_DIR" && exit 77
28700 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28702 test -z "$TEST_DATA_DIR" && exit 77
28703 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28708 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
28710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28711 at_status=$? at_failed=false
28713 at_fn_diff_devnull "$at_stderr" || at_failed=:
28714 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
28718 $at_diff - "$at_stdout" || at_failed=:
28719 at_fn_check_status 0 $at_status "$at_srcdir/multiv07.at:31"
28720 $at_failed && at_fn_log_failure
28725 $at_times_p && times >"$at_times_file"
28726 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28727 read at_status <"$at_status_file"
28730 at_fn_group_banner 122 'multiv08.at:25' \
28731 "multivolume header creation" " " 17
28733 test -f $XFAILFILE && at_xfail=yes
28735 $as_echo "122. $at_setup_line: testing $at_desc ..."
28743 $as_echo "$at_srcdir/multiv08.at:28:
28746 TEST_TAR_FORMAT=gnu
28747 export TEST_TAR_FORMAT
28748 TAR_OPTIONS=\"-H gnu\"
28752 genfile --length 9472 --file a
28753 genfile --length 9984 --file b
28755 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
28757 tar -tMR -f A.tar -f B.tar -f C.tar
28759 at_fn_check_prepare_notrace 'an embedded newline' "multiv08.at:28"
28763 TEST_TAR_FORMAT=gnu
28764 export TEST_TAR_FORMAT
28765 TAR_OPTIONS="-H gnu"
28769 genfile --length 9472 --file a
28770 genfile --length 9984 --file b
28772 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
28774 tar -tMR -f A.tar -f B.tar -f C.tar
28776 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28777 at_status=$? at_failed=false
28779 echo >>"$at_stderr"; $as_echo "Creating
28782 $at_diff - "$at_stderr" || at_failed=:
28783 echo >>"$at_stdout"; $as_echo "Creating
28787 block 43: ** Block of NULs **
28789 $at_diff - "$at_stdout" || at_failed=:
28790 at_fn_check_status 0 $at_status "$at_srcdir/multiv08.at:28"
28791 $at_failed && at_fn_log_failure
28798 $at_times_p && times >"$at_times_file"
28799 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28800 read at_status <"$at_status_file"
28803 at_fn_group_banner 123 'owner.at:21' \
28804 "--owner and --group" " " 18
28806 test -f $XFAILFILE && at_xfail=yes
28808 $as_echo "123. $at_setup_line: testing $at_desc ..."
28816 $as_echo "$at_srcdir/owner.at:24:
28819 TEST_TAR_FORMAT=gnu
28820 export TEST_TAR_FORMAT
28821 TAR_OPTIONS=\"-H gnu\"
28829 tar --owner=\"Joe the Plumber:1234\" \\
28830 --group=\"Plumber's Union:5678\" \\
28832 --mode='u=rw,go=r' \\
28836 tar --numeric-owner -tvf arc
28838 at_fn_check_prepare_notrace 'an embedded newline' "owner.at:24"
28842 TEST_TAR_FORMAT=gnu
28843 export TEST_TAR_FORMAT
28844 TAR_OPTIONS="-H gnu"
28852 tar --owner="Joe the Plumber:1234" \
28853 --group="Plumber's Union:5678" \
28855 --mode='u=rw,go=r' \
28859 tar --numeric-owner -tvf arc
28861 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28862 at_status=$? at_failed=false
28864 at_fn_diff_devnull "$at_stderr" || at_failed=:
28865 echo >>"$at_stdout"; $as_echo "-rw-r--r-- Joe the Plumber/Plumber's Union 0 1970-01-01 00:00 a
28866 -rw-r--r-- 1234/5678 0 1970-01-01 00:00 a
28868 $at_diff - "$at_stdout" || at_failed=:
28869 at_fn_check_status 0 $at_status "$at_srcdir/owner.at:24"
28870 $at_failed && at_fn_log_failure
28877 $at_times_p && times >"$at_times_file"
28878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28879 read at_status <"$at_status_file"
28882 at_fn_group_banner 124 'sparse01.at:21' \
28883 "sparse files" " " 19
28885 test -f $XFAILFILE && at_xfail=yes
28887 $as_echo "124. $at_setup_line: testing $at_desc ..."
28895 $as_echo "$at_srcdir/sparse01.at:24:
28898 TEST_TAR_FORMAT=posix
28899 export TEST_TAR_FORMAT
28900 TAR_OPTIONS=\"-H posix\"
28904 genfile --length 1000 -f begin
28905 genfile --length 1000 -f end
28906 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
28907 tar -c -f archive --sparse begin sparsefile end || exit 1
28913 tar Cxf directory archive --warning=no-timestamp
28914 genfile --stat=name,size sparsefile
28915 cmp sparsefile directory/sparsefile
28917 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
28921 TEST_TAR_FORMAT=posix
28922 export TEST_TAR_FORMAT
28923 TAR_OPTIONS="-H posix"
28927 genfile --length 1000 -f begin
28928 genfile --length 1000 -f end
28929 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
28930 tar -c -f archive --sparse begin sparsefile end || exit 1
28936 tar Cxf directory archive --warning=no-timestamp
28937 genfile --stat=name,size sparsefile
28938 cmp sparsefile directory/sparsefile
28940 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28941 at_status=$? at_failed=false
28943 at_fn_diff_devnull "$at_stderr" || at_failed=:
28944 echo stdout:; tee stdout <"$at_stdout"
28945 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
28946 $at_failed && at_fn_log_failure
28950 $as_echo "$at_srcdir/sparse01.at:24:
28953 TEST_TAR_FORMAT=gnu
28954 export TEST_TAR_FORMAT
28955 TAR_OPTIONS=\"-H gnu\"
28959 genfile --length 1000 -f begin
28960 genfile --length 1000 -f end
28961 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
28962 tar -c -f archive --sparse begin sparsefile end || exit 1
28968 tar Cxf directory archive --warning=no-timestamp
28969 genfile --stat=name,size sparsefile
28970 cmp sparsefile directory/sparsefile
28972 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
28976 TEST_TAR_FORMAT=gnu
28977 export TEST_TAR_FORMAT
28978 TAR_OPTIONS="-H gnu"
28982 genfile --length 1000 -f begin
28983 genfile --length 1000 -f end
28984 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
28985 tar -c -f archive --sparse begin sparsefile end || exit 1
28991 tar Cxf directory archive --warning=no-timestamp
28992 genfile --stat=name,size sparsefile
28993 cmp sparsefile directory/sparsefile
28995 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28996 at_status=$? at_failed=false
28998 at_fn_diff_devnull "$at_stderr" || at_failed=:
28999 echo stdout:; tee stdout <"$at_stdout"
29000 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29001 $at_failed && at_fn_log_failure
29005 $as_echo "$at_srcdir/sparse01.at:24:
29008 TEST_TAR_FORMAT=oldgnu
29009 export TEST_TAR_FORMAT
29010 TAR_OPTIONS=\"-H oldgnu\"
29014 genfile --length 1000 -f begin
29015 genfile --length 1000 -f end
29016 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29017 tar -c -f archive --sparse begin sparsefile end || exit 1
29023 tar Cxf directory archive --warning=no-timestamp
29024 genfile --stat=name,size sparsefile
29025 cmp sparsefile directory/sparsefile
29027 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
29031 TEST_TAR_FORMAT=oldgnu
29032 export TEST_TAR_FORMAT
29033 TAR_OPTIONS="-H oldgnu"
29037 genfile --length 1000 -f begin
29038 genfile --length 1000 -f end
29039 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29040 tar -c -f archive --sparse begin sparsefile end || exit 1
29046 tar Cxf directory archive --warning=no-timestamp
29047 genfile --stat=name,size sparsefile
29048 cmp sparsefile directory/sparsefile
29050 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29051 at_status=$? at_failed=false
29053 at_fn_diff_devnull "$at_stderr" || at_failed=:
29054 echo stdout:; tee stdout <"$at_stdout"
29055 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29056 $at_failed && at_fn_log_failure
29063 cat >stdout.re <<'_ATEOF'
29065 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
29066 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
29067 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
29069 sparsefile 10344448
29072 awk '{print NR " " $0}' stdout > $$.1
29073 awk '{print NR " " $0}' stdout.re | join - $$.1 |
29074 while read NUM RE LINE
29076 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29081 $at_times_p && times >"$at_times_file"
29082 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29083 read at_status <"$at_status_file"
29086 at_fn_group_banner 125 'sparse02.at:21' \
29087 "extracting sparse file over a pipe" " " 19
29089 test -f $XFAILFILE && at_xfail=yes
29091 $as_echo "125. $at_setup_line: testing $at_desc ..."
29096 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
29097 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
29098 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
29103 $as_echo "$at_srcdir/sparse02.at:28:
29106 TEST_TAR_FORMAT=posix
29107 export TEST_TAR_FORMAT
29108 TAR_OPTIONS=\"-H posix\"
29112 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29113 tar -c -f archive --sparse sparsefile || exit 1
29116 tar xfO archive | cat - > sparsecopy || exit 1
29117 cmp sparsefile sparsecopy
29119 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29123 TEST_TAR_FORMAT=posix
29124 export TEST_TAR_FORMAT
29125 TAR_OPTIONS="-H posix"
29129 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29130 tar -c -f archive --sparse sparsefile || exit 1
29133 tar xfO archive | cat - > sparsecopy || exit 1
29134 cmp sparsefile sparsecopy
29136 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29137 at_status=$? at_failed=false
29139 at_fn_diff_devnull "$at_stderr" || at_failed=:
29140 echo >>"$at_stdout"; $as_echo "separator
29142 $at_diff - "$at_stdout" || at_failed=:
29143 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29144 $at_failed && at_fn_log_failure
29148 $as_echo "$at_srcdir/sparse02.at:28:
29151 TEST_TAR_FORMAT=gnu
29152 export TEST_TAR_FORMAT
29153 TAR_OPTIONS=\"-H gnu\"
29157 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29158 tar -c -f archive --sparse sparsefile || exit 1
29161 tar xfO archive | cat - > sparsecopy || exit 1
29162 cmp sparsefile sparsecopy
29164 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29168 TEST_TAR_FORMAT=gnu
29169 export TEST_TAR_FORMAT
29170 TAR_OPTIONS="-H gnu"
29174 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29175 tar -c -f archive --sparse sparsefile || exit 1
29178 tar xfO archive | cat - > sparsecopy || exit 1
29179 cmp sparsefile sparsecopy
29181 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29182 at_status=$? at_failed=false
29184 at_fn_diff_devnull "$at_stderr" || at_failed=:
29185 echo >>"$at_stdout"; $as_echo "separator
29187 $at_diff - "$at_stdout" || at_failed=:
29188 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29189 $at_failed && at_fn_log_failure
29193 $as_echo "$at_srcdir/sparse02.at:28:
29196 TEST_TAR_FORMAT=oldgnu
29197 export TEST_TAR_FORMAT
29198 TAR_OPTIONS=\"-H oldgnu\"
29202 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29203 tar -c -f archive --sparse sparsefile || exit 1
29206 tar xfO archive | cat - > sparsecopy || exit 1
29207 cmp sparsefile sparsecopy
29209 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29213 TEST_TAR_FORMAT=oldgnu
29214 export TEST_TAR_FORMAT
29215 TAR_OPTIONS="-H oldgnu"
29219 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29220 tar -c -f archive --sparse sparsefile || exit 1
29223 tar xfO archive | cat - > sparsecopy || exit 1
29224 cmp sparsefile sparsecopy
29226 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29227 at_status=$? at_failed=false
29229 at_fn_diff_devnull "$at_stderr" || at_failed=:
29230 echo >>"$at_stdout"; $as_echo "separator
29232 $at_diff - "$at_stdout" || at_failed=:
29233 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29234 $at_failed && at_fn_log_failure
29241 $at_times_p && times >"$at_times_file"
29242 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29243 read at_status <"$at_status_file"
29246 at_fn_group_banner 126 'sparse03.at:21' \
29247 "storing sparse files > 8G" " " 19
29249 test -f $XFAILFILE && at_xfail=yes
29251 $as_echo "126. $at_setup_line: testing $at_desc ..."
29256 # Tar 1.15.1 incorrectly computed sparse member size if the extended
29257 # PAX header contained size keyword.
29258 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
29259 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
29264 $as_echo "$at_srcdir/sparse03.at:29:
29267 TEST_TAR_FORMAT=posix
29268 export TEST_TAR_FORMAT
29269 TAR_OPTIONS=\"-H posix\"
29273 genfile --length 1000 --file begin
29274 genfile --length 1000 --file end
29275 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
29276 tar -c -f archive --sparse begin sparsefile end || exit 1
29282 tar Cxf directory archive
29283 genfile --stat=name,size sparsefile
29284 cmp sparsefile directory/sparsefile
29286 at_fn_check_prepare_notrace 'an embedded newline' "sparse03.at:29"
29290 TEST_TAR_FORMAT=posix
29291 export TEST_TAR_FORMAT
29292 TAR_OPTIONS="-H posix"
29296 genfile --length 1000 --file begin
29297 genfile --length 1000 --file end
29298 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
29299 tar -c -f archive --sparse begin sparsefile end || exit 1
29305 tar Cxf directory archive
29306 genfile --stat=name,size sparsefile
29307 cmp sparsefile directory/sparsefile
29309 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29310 at_status=$? at_failed=false
29312 at_fn_diff_devnull "$at_stderr" || at_failed=:
29313 echo stdout:; tee stdout <"$at_stdout"
29314 at_fn_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
29315 $at_failed && at_fn_log_failure
29322 cat >stdout.re <<'_ATEOF'
29324 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
29325 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
29326 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
29328 sparsefile 8589935104
29331 awk '{print NR " " $0}' stdout > $$.1
29332 awk '{print NR " " $0}' stdout.re | join - $$.1 |
29333 while read NUM RE LINE
29335 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29340 $at_times_p && times >"$at_times_file"
29341 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29342 read at_status <"$at_status_file"
29345 at_fn_group_banner 127 'sparse04.at:21' \
29346 "storing long sparse file names" " " 19
29348 test -f $XFAILFILE && at_xfail=yes
29350 $as_echo "127. $at_setup_line: testing $at_desc ..."
29355 # Description: Tar versions from 1.15.92 to 1.25 would incorrectly
29356 # store sparse file names longer than 100 characters in pax mode.
29357 # Namely, the 'path' keyword of the produced PAX header would contain the
29358 # crafted name of the header itself, instead of that of the file.
29359 # Reported by: Kamil Dudka <kdudka@redhat.com>
29360 # References: <201011250026.44908.kdudka@redhat.com>,
29361 # http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00099.html
29368 $as_echo "$at_srcdir/sparse04.at:35:
29371 TEST_TAR_FORMAT=pax
29372 export TEST_TAR_FORMAT
29373 TAR_OPTIONS=\"-H pax\"
29377 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
29378 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
29380 at_fn_check_prepare_notrace 'an embedded newline' "sparse04.at:35"
29384 TEST_TAR_FORMAT=pax
29385 export TEST_TAR_FORMAT
29386 TAR_OPTIONS="-H pax"
29390 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
29391 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
29393 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29394 at_status=$? at_failed=false
29396 at_fn_diff_devnull "$at_stderr" || at_failed=:
29397 echo >>"$at_stdout"; $as_echo "123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
29399 $at_diff - "$at_stdout" || at_failed=:
29400 at_fn_check_status 0 $at_status "$at_srcdir/sparse04.at:35"
29401 $at_failed && at_fn_log_failure
29409 $at_times_p && times >"$at_times_file"
29410 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29411 read at_status <"$at_status_file"
29414 at_fn_group_banner 128 'sparsemv.at:21' \
29415 "sparse files in MV archives" " " 19
29417 test -f $XFAILFILE && at_xfail=yes
29419 $as_echo "128. $at_setup_line: testing $at_desc ..."
29424 # Check if sparse files are correctly split between GNU multi-volume
29426 # There are two cases: the file can be split within an empty (null) block,
29427 # or within a data block. Since null blocks are not archived, the first
29428 # case means the file is split between two consecutive data blocks.
29434 $as_echo "$at_srcdir/sparsemv.at:31:
29437 TEST_TAR_FORMAT=gnu
29438 export TEST_TAR_FORMAT
29439 TAR_OPTIONS=\"-H gnu\"
29444 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29445 echo \"Pass 1: Split between data blocks\"
29446 echo \"Create archive\"
29447 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29448 echo \"Test archive\"
29449 tar --record-size=512 -t -M -f arc.1 -f arc.2
29450 echo \"Compare archive\"
29451 tar --record-size=512 -d -M -f arc.1 -f arc.2
29453 echo \"Pass 2: Split within a data block\"
29454 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29455 echo \"Create archive\"
29456 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29457 echo \"Test archive\"
29458 tar --record-size=512 -t -M -f arc.1 -f arc.2
29459 echo \"Compare archive\"
29460 tar --record-size=512 -d -M -f arc.1 -f arc.2
29462 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
29466 TEST_TAR_FORMAT=gnu
29467 export TEST_TAR_FORMAT
29468 TAR_OPTIONS="-H gnu"
29473 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29474 echo "Pass 1: Split between data blocks"
29475 echo "Create archive"
29476 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29477 echo "Test archive"
29478 tar --record-size=512 -t -M -f arc.1 -f arc.2
29479 echo "Compare archive"
29480 tar --record-size=512 -d -M -f arc.1 -f arc.2
29482 echo "Pass 2: Split within a data block"
29483 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29484 echo "Create archive"
29485 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29486 echo "Test archive"
29487 tar --record-size=512 -t -M -f arc.1 -f arc.2
29488 echo "Compare archive"
29489 tar --record-size=512 -d -M -f arc.1 -f arc.2
29491 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29492 at_status=$? at_failed=false
29494 at_fn_diff_devnull "$at_stderr" || at_failed=:
29495 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29500 Pass 2: Split within a data block
29506 $at_diff - "$at_stdout" || at_failed=:
29507 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
29508 $at_failed && at_fn_log_failure
29512 $as_echo "$at_srcdir/sparsemv.at:31:
29515 TEST_TAR_FORMAT=oldgnu
29516 export TEST_TAR_FORMAT
29517 TAR_OPTIONS=\"-H oldgnu\"
29522 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29523 echo \"Pass 1: Split between data blocks\"
29524 echo \"Create archive\"
29525 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29526 echo \"Test archive\"
29527 tar --record-size=512 -t -M -f arc.1 -f arc.2
29528 echo \"Compare archive\"
29529 tar --record-size=512 -d -M -f arc.1 -f arc.2
29531 echo \"Pass 2: Split within a data block\"
29532 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29533 echo \"Create archive\"
29534 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29535 echo \"Test archive\"
29536 tar --record-size=512 -t -M -f arc.1 -f arc.2
29537 echo \"Compare archive\"
29538 tar --record-size=512 -d -M -f arc.1 -f arc.2
29540 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
29544 TEST_TAR_FORMAT=oldgnu
29545 export TEST_TAR_FORMAT
29546 TAR_OPTIONS="-H oldgnu"
29551 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29552 echo "Pass 1: Split between data blocks"
29553 echo "Create archive"
29554 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29555 echo "Test archive"
29556 tar --record-size=512 -t -M -f arc.1 -f arc.2
29557 echo "Compare archive"
29558 tar --record-size=512 -d -M -f arc.1 -f arc.2
29560 echo "Pass 2: Split within a data block"
29561 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29562 echo "Create archive"
29563 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29564 echo "Test archive"
29565 tar --record-size=512 -t -M -f arc.1 -f arc.2
29566 echo "Compare archive"
29567 tar --record-size=512 -d -M -f arc.1 -f arc.2
29569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29570 at_status=$? at_failed=false
29572 at_fn_diff_devnull "$at_stderr" || at_failed=:
29573 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29578 Pass 2: Split within a data block
29584 $at_diff - "$at_stdout" || at_failed=:
29585 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
29586 $at_failed && at_fn_log_failure
29593 $at_times_p && times >"$at_times_file"
29594 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29595 read at_status <"$at_status_file"
29598 at_fn_group_banner 129 'spmvp00.at:21' \
29599 "sparse files in PAX MV archives, v.0.0" " " 19
29601 test -f $XFAILFILE && at_xfail=yes
29603 $as_echo "129. $at_setup_line: testing $at_desc ..."
29612 $as_echo "$at_srcdir/spmvp00.at:24:
29615 TEST_TAR_FORMAT=pax
29616 export TEST_TAR_FORMAT
29617 TAR_OPTIONS=\"-H pax\"
29622 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
29623 echo \"Pass 1: Split between data blocks\"
29624 echo \"Create archive\"
29625 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29626 echo \"Test archive\"
29627 tar -t -M -f arc.1 -f arc.2 -f arc.3
29628 echo \"Compare archive\"
29629 tar -d -M -f arc.1 -f arc.2 -f arc.3
29631 echo \"Pass 2: Split within a data block\"
29632 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
29633 echo \"Create archive\"
29634 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29635 echo \"Test archive\"
29636 tar -t -M -f arc.1 -f arc.2 -f arc.3
29637 echo \"Compare archive\"
29638 tar -d -M -f arc.1 -f arc.2 -f arc.3
29640 at_fn_check_prepare_notrace 'an embedded newline' "spmvp00.at:24"
29644 TEST_TAR_FORMAT=pax
29645 export TEST_TAR_FORMAT
29646 TAR_OPTIONS="-H pax"
29651 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
29652 echo "Pass 1: Split between data blocks"
29653 echo "Create archive"
29654 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29655 echo "Test archive"
29656 tar -t -M -f arc.1 -f arc.2 -f arc.3
29657 echo "Compare archive"
29658 tar -d -M -f arc.1 -f arc.2 -f arc.3
29660 echo "Pass 2: Split within a data block"
29661 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
29662 echo "Create archive"
29663 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29664 echo "Test archive"
29665 tar -t -M -f arc.1 -f arc.2 -f arc.3
29666 echo "Compare archive"
29667 tar -d -M -f arc.1 -f arc.2 -f arc.3
29669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29670 at_status=$? at_failed=false
29672 at_fn_diff_devnull "$at_stderr" || at_failed=:
29673 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29678 Pass 2: Split within a data block
29684 $at_diff - "$at_stdout" || at_failed=:
29685 at_fn_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
29686 $at_failed && at_fn_log_failure
29693 $at_times_p && times >"$at_times_file"
29694 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29695 read at_status <"$at_status_file"
29698 at_fn_group_banner 130 'spmvp01.at:21' \
29699 "sparse files in PAX MV archives, v.0.1" " " 19
29701 test -f $XFAILFILE && at_xfail=yes
29703 $as_echo "130. $at_setup_line: testing $at_desc ..."
29712 $as_echo "$at_srcdir/spmvp01.at:24:
29715 TEST_TAR_FORMAT=pax
29716 export TEST_TAR_FORMAT
29717 TAR_OPTIONS=\"-H pax\"
29722 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29723 echo \"Pass 1: Split between data blocks\"
29724 echo \"Create archive\"
29725 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29726 echo \"Test archive\"
29727 tar -t -M -f arc.1 -f arc.2 -f arc.3
29728 echo \"Compare archive\"
29729 tar -d -M -f arc.1 -f arc.2 -f arc.3
29731 echo \"Pass 2: Split within a data block\"
29732 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29733 echo \"Create archive\"
29734 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29735 echo \"Test archive\"
29736 tar -t -M -f arc.1 -f arc.2 -f arc.3
29737 echo \"Compare archive\"
29738 tar -d -M -f arc.1 -f arc.2 -f arc.3
29740 at_fn_check_prepare_notrace 'an embedded newline' "spmvp01.at:24"
29744 TEST_TAR_FORMAT=pax
29745 export TEST_TAR_FORMAT
29746 TAR_OPTIONS="-H pax"
29751 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29752 echo "Pass 1: Split between data blocks"
29753 echo "Create archive"
29754 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29755 echo "Test archive"
29756 tar -t -M -f arc.1 -f arc.2 -f arc.3
29757 echo "Compare archive"
29758 tar -d -M -f arc.1 -f arc.2 -f arc.3
29760 echo "Pass 2: Split within a data block"
29761 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29762 echo "Create archive"
29763 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29764 echo "Test archive"
29765 tar -t -M -f arc.1 -f arc.2 -f arc.3
29766 echo "Compare archive"
29767 tar -d -M -f arc.1 -f arc.2 -f arc.3
29769 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29770 at_status=$? at_failed=false
29772 at_fn_diff_devnull "$at_stderr" || at_failed=:
29773 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29778 Pass 2: Split within a data block
29784 $at_diff - "$at_stdout" || at_failed=:
29785 at_fn_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
29786 $at_failed && at_fn_log_failure
29793 $at_times_p && times >"$at_times_file"
29794 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29795 read at_status <"$at_status_file"
29798 at_fn_group_banner 131 'spmvp10.at:21' \
29799 "sparse files in PAX MV archives, v.1.0" " " 19
29801 test -f $XFAILFILE && at_xfail=yes
29803 $as_echo "131. $at_setup_line: testing $at_desc ..."
29812 $as_echo "$at_srcdir/spmvp10.at:24:
29815 TEST_TAR_FORMAT=pax
29816 export TEST_TAR_FORMAT
29817 TAR_OPTIONS=\"-H pax\"
29822 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
29823 echo \"Pass 1: Split between data blocks\"
29824 echo \"Create archive\"
29825 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29826 echo \"Test archive\"
29827 tar -t -M -f arc.1 -f arc.2 -f arc.3
29828 echo \"Compare archive\"
29829 tar -d -M -f arc.1 -f arc.2 -f arc.3
29831 echo \"Pass 2: Split within a data block\"
29832 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
29833 echo \"Create archive\"
29834 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29835 echo \"Test archive\"
29836 tar -t -M -f arc.1 -f arc.2 -f arc.3
29837 echo \"Compare archive\"
29838 tar -d -M -f arc.1 -f arc.2 -f arc.3
29840 at_fn_check_prepare_notrace 'an embedded newline' "spmvp10.at:24"
29844 TEST_TAR_FORMAT=pax
29845 export TEST_TAR_FORMAT
29846 TAR_OPTIONS="-H pax"
29851 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
29852 echo "Pass 1: Split between data blocks"
29853 echo "Create archive"
29854 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29855 echo "Test archive"
29856 tar -t -M -f arc.1 -f arc.2 -f arc.3
29857 echo "Compare archive"
29858 tar -d -M -f arc.1 -f arc.2 -f arc.3
29860 echo "Pass 2: Split within a data block"
29861 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
29862 echo "Create archive"
29863 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
29864 echo "Test archive"
29865 tar -t -M -f arc.1 -f arc.2 -f arc.3
29866 echo "Compare archive"
29867 tar -d -M -f arc.1 -f arc.2 -f arc.3
29869 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29870 at_status=$? at_failed=false
29872 at_fn_diff_devnull "$at_stderr" || at_failed=:
29873 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29878 Pass 2: Split within a data block
29884 $at_diff - "$at_stdout" || at_failed=:
29885 at_fn_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
29886 $at_failed && at_fn_log_failure
29893 $at_times_p && times >"$at_times_file"
29894 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29895 read at_status <"$at_status_file"
29898 at_fn_group_banner 132 'update.at:28' \
29899 "update unchanged directories" " " 20
29901 test -f $XFAILFILE && at_xfail=yes
29903 $as_echo "132. $at_setup_line: testing $at_desc ..."
29911 $as_echo "$at_srcdir/update.at:31:
29915 export TEST_TAR_FORMAT
29916 TAR_OPTIONS=\"-H v7\"
29921 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
29924 genfile --length 10240 --pattern zeros --file directory/file1
29925 genfile --length 10240 --pattern default --file directory/file2
29927 tar cf archive directory || exit 1
29929 tar uf archive directory || exit 1
29931 tar tf archive | sort || exit 1
29933 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
29938 export TEST_TAR_FORMAT
29939 TAR_OPTIONS="-H v7"
29944 test -z "`sort < /dev/null 2>&1`" || exit 77
29947 genfile --length 10240 --pattern zeros --file directory/file1
29948 genfile --length 10240 --pattern default --file directory/file2
29950 tar cf archive directory || exit 1
29952 tar uf archive directory || exit 1
29954 tar tf archive | sort || exit 1
29956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29957 at_status=$? at_failed=false
29959 at_fn_diff_devnull "$at_stderr" || at_failed=:
29960 echo >>"$at_stdout"; $as_echo "separator
29966 $at_diff - "$at_stdout" || at_failed=:
29967 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
29968 $at_failed && at_fn_log_failure
29972 $as_echo "$at_srcdir/update.at:31:
29975 TEST_TAR_FORMAT=oldgnu
29976 export TEST_TAR_FORMAT
29977 TAR_OPTIONS=\"-H oldgnu\"
29982 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
29985 genfile --length 10240 --pattern zeros --file directory/file1
29986 genfile --length 10240 --pattern default --file directory/file2
29988 tar cf archive directory || exit 1
29990 tar uf archive directory || exit 1
29992 tar tf archive | sort || exit 1
29994 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
29998 TEST_TAR_FORMAT=oldgnu
29999 export TEST_TAR_FORMAT
30000 TAR_OPTIONS="-H oldgnu"
30005 test -z "`sort < /dev/null 2>&1`" || exit 77
30008 genfile --length 10240 --pattern zeros --file directory/file1
30009 genfile --length 10240 --pattern default --file directory/file2
30011 tar cf archive directory || exit 1
30013 tar uf archive directory || exit 1
30015 tar tf archive | sort || exit 1
30017 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30018 at_status=$? at_failed=false
30020 at_fn_diff_devnull "$at_stderr" || at_failed=:
30021 echo >>"$at_stdout"; $as_echo "separator
30027 $at_diff - "$at_stdout" || at_failed=:
30028 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30029 $at_failed && at_fn_log_failure
30033 $as_echo "$at_srcdir/update.at:31:
30036 TEST_TAR_FORMAT=ustar
30037 export TEST_TAR_FORMAT
30038 TAR_OPTIONS=\"-H ustar\"
30043 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30046 genfile --length 10240 --pattern zeros --file directory/file1
30047 genfile --length 10240 --pattern default --file directory/file2
30049 tar cf archive directory || exit 1
30051 tar uf archive directory || exit 1
30053 tar tf archive | sort || exit 1
30055 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30059 TEST_TAR_FORMAT=ustar
30060 export TEST_TAR_FORMAT
30061 TAR_OPTIONS="-H ustar"
30066 test -z "`sort < /dev/null 2>&1`" || exit 77
30069 genfile --length 10240 --pattern zeros --file directory/file1
30070 genfile --length 10240 --pattern default --file directory/file2
30072 tar cf archive directory || exit 1
30074 tar uf archive directory || exit 1
30076 tar tf archive | sort || exit 1
30078 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30079 at_status=$? at_failed=false
30081 at_fn_diff_devnull "$at_stderr" || at_failed=:
30082 echo >>"$at_stdout"; $as_echo "separator
30088 $at_diff - "$at_stdout" || at_failed=:
30089 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30090 $at_failed && at_fn_log_failure
30094 $as_echo "$at_srcdir/update.at:31:
30097 TEST_TAR_FORMAT=posix
30098 export TEST_TAR_FORMAT
30099 TAR_OPTIONS=\"-H posix\"
30104 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30107 genfile --length 10240 --pattern zeros --file directory/file1
30108 genfile --length 10240 --pattern default --file directory/file2
30110 tar cf archive directory || exit 1
30112 tar uf archive directory || exit 1
30114 tar tf archive | sort || exit 1
30116 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30120 TEST_TAR_FORMAT=posix
30121 export TEST_TAR_FORMAT
30122 TAR_OPTIONS="-H posix"
30127 test -z "`sort < /dev/null 2>&1`" || exit 77
30130 genfile --length 10240 --pattern zeros --file directory/file1
30131 genfile --length 10240 --pattern default --file directory/file2
30133 tar cf archive directory || exit 1
30135 tar uf archive directory || exit 1
30137 tar tf archive | sort || exit 1
30139 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30140 at_status=$? at_failed=false
30142 at_fn_diff_devnull "$at_stderr" || at_failed=:
30143 echo >>"$at_stdout"; $as_echo "separator
30149 $at_diff - "$at_stdout" || at_failed=:
30150 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30151 $at_failed && at_fn_log_failure
30155 $as_echo "$at_srcdir/update.at:31:
30158 TEST_TAR_FORMAT=gnu
30159 export TEST_TAR_FORMAT
30160 TAR_OPTIONS=\"-H gnu\"
30165 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30168 genfile --length 10240 --pattern zeros --file directory/file1
30169 genfile --length 10240 --pattern default --file directory/file2
30171 tar cf archive directory || exit 1
30173 tar uf archive directory || exit 1
30175 tar tf archive | sort || exit 1
30177 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30181 TEST_TAR_FORMAT=gnu
30182 export TEST_TAR_FORMAT
30183 TAR_OPTIONS="-H gnu"
30188 test -z "`sort < /dev/null 2>&1`" || exit 77
30191 genfile --length 10240 --pattern zeros --file directory/file1
30192 genfile --length 10240 --pattern default --file directory/file2
30194 tar cf archive directory || exit 1
30196 tar uf archive directory || exit 1
30198 tar tf archive | sort || exit 1
30200 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30201 at_status=$? at_failed=false
30203 at_fn_diff_devnull "$at_stderr" || at_failed=:
30204 echo >>"$at_stdout"; $as_echo "separator
30210 $at_diff - "$at_stdout" || at_failed=:
30211 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30212 $at_failed && at_fn_log_failure
30219 $at_times_p && times >"$at_times_file"
30220 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30221 read at_status <"$at_status_file"
30224 at_fn_group_banner 133 'update01.at:29' \
30225 "update directories" " " 20
30227 test -f $XFAILFILE && at_xfail=yes
30229 $as_echo "133. $at_setup_line: testing $at_desc ..."
30237 $as_echo "$at_srcdir/update01.at:32:
30241 export TEST_TAR_FORMAT
30242 TAR_OPTIONS=\"-H v7\"
30247 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30261 tar tf arc | sort || exit 1
30263 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30268 export TEST_TAR_FORMAT
30269 TAR_OPTIONS="-H v7"
30274 test -z "`sort < /dev/null 2>&1`" || exit 77
30288 tar tf arc | sort || exit 1
30290 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30291 at_status=$? at_failed=false
30293 at_fn_diff_devnull "$at_stderr" || at_failed=:
30294 echo >>"$at_stdout"; $as_echo "separator
30301 $at_diff - "$at_stdout" || at_failed=:
30302 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30303 $at_failed && at_fn_log_failure
30307 $as_echo "$at_srcdir/update01.at:32:
30310 TEST_TAR_FORMAT=oldgnu
30311 export TEST_TAR_FORMAT
30312 TAR_OPTIONS=\"-H oldgnu\"
30317 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30331 tar tf arc | sort || exit 1
30333 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30337 TEST_TAR_FORMAT=oldgnu
30338 export TEST_TAR_FORMAT
30339 TAR_OPTIONS="-H oldgnu"
30344 test -z "`sort < /dev/null 2>&1`" || exit 77
30358 tar tf arc | sort || exit 1
30360 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30361 at_status=$? at_failed=false
30363 at_fn_diff_devnull "$at_stderr" || at_failed=:
30364 echo >>"$at_stdout"; $as_echo "separator
30371 $at_diff - "$at_stdout" || at_failed=:
30372 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30373 $at_failed && at_fn_log_failure
30377 $as_echo "$at_srcdir/update01.at:32:
30380 TEST_TAR_FORMAT=ustar
30381 export TEST_TAR_FORMAT
30382 TAR_OPTIONS=\"-H ustar\"
30387 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30401 tar tf arc | sort || exit 1
30403 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30407 TEST_TAR_FORMAT=ustar
30408 export TEST_TAR_FORMAT
30409 TAR_OPTIONS="-H ustar"
30414 test -z "`sort < /dev/null 2>&1`" || exit 77
30428 tar tf arc | sort || exit 1
30430 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30431 at_status=$? at_failed=false
30433 at_fn_diff_devnull "$at_stderr" || at_failed=:
30434 echo >>"$at_stdout"; $as_echo "separator
30441 $at_diff - "$at_stdout" || at_failed=:
30442 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30443 $at_failed && at_fn_log_failure
30447 $as_echo "$at_srcdir/update01.at:32:
30450 TEST_TAR_FORMAT=posix
30451 export TEST_TAR_FORMAT
30452 TAR_OPTIONS=\"-H posix\"
30457 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30471 tar tf arc | sort || exit 1
30473 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30477 TEST_TAR_FORMAT=posix
30478 export TEST_TAR_FORMAT
30479 TAR_OPTIONS="-H posix"
30484 test -z "`sort < /dev/null 2>&1`" || exit 77
30498 tar tf arc | sort || exit 1
30500 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30501 at_status=$? at_failed=false
30503 at_fn_diff_devnull "$at_stderr" || at_failed=:
30504 echo >>"$at_stdout"; $as_echo "separator
30511 $at_diff - "$at_stdout" || at_failed=:
30512 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30513 $at_failed && at_fn_log_failure
30517 $as_echo "$at_srcdir/update01.at:32:
30520 TEST_TAR_FORMAT=gnu
30521 export TEST_TAR_FORMAT
30522 TAR_OPTIONS=\"-H gnu\"
30527 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30541 tar tf arc | sort || exit 1
30543 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30547 TEST_TAR_FORMAT=gnu
30548 export TEST_TAR_FORMAT
30549 TAR_OPTIONS="-H gnu"
30554 test -z "`sort < /dev/null 2>&1`" || exit 77
30568 tar tf arc | sort || exit 1
30570 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30571 at_status=$? at_failed=false
30573 at_fn_diff_devnull "$at_stderr" || at_failed=:
30574 echo >>"$at_stdout"; $as_echo "separator
30581 $at_diff - "$at_stdout" || at_failed=:
30582 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30583 $at_failed && at_fn_log_failure
30590 $at_times_p && times >"$at_times_file"
30591 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30592 read at_status <"$at_status_file"
30595 at_fn_group_banner 134 'update02.at:26' \
30596 "update changed files" " " 20
30598 test -f $XFAILFILE && at_xfail=yes
30600 $as_echo "134. $at_setup_line: testing $at_desc ..."
30608 $as_echo "$at_srcdir/update02.at:29:
30612 export TEST_TAR_FORMAT
30613 TAR_OPTIONS=\"-H v7\"
30618 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30632 tar tf arc | sort || exit 1
30634 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
30639 export TEST_TAR_FORMAT
30640 TAR_OPTIONS="-H v7"
30645 test -z "`sort < /dev/null 2>&1`" || exit 77
30659 tar tf arc | sort || exit 1
30661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30662 at_status=$? at_failed=false
30664 at_fn_diff_devnull "$at_stderr" || at_failed=:
30665 echo >>"$at_stdout"; $as_echo "separator
30672 $at_diff - "$at_stdout" || at_failed=:
30673 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
30674 $at_failed && at_fn_log_failure
30678 $as_echo "$at_srcdir/update02.at:29:
30681 TEST_TAR_FORMAT=oldgnu
30682 export TEST_TAR_FORMAT
30683 TAR_OPTIONS=\"-H oldgnu\"
30688 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30702 tar tf arc | sort || exit 1
30704 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
30708 TEST_TAR_FORMAT=oldgnu
30709 export TEST_TAR_FORMAT
30710 TAR_OPTIONS="-H oldgnu"
30715 test -z "`sort < /dev/null 2>&1`" || exit 77
30729 tar tf arc | sort || exit 1
30731 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30732 at_status=$? at_failed=false
30734 at_fn_diff_devnull "$at_stderr" || at_failed=:
30735 echo >>"$at_stdout"; $as_echo "separator
30742 $at_diff - "$at_stdout" || at_failed=:
30743 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
30744 $at_failed && at_fn_log_failure
30748 $as_echo "$at_srcdir/update02.at:29:
30751 TEST_TAR_FORMAT=ustar
30752 export TEST_TAR_FORMAT
30753 TAR_OPTIONS=\"-H ustar\"
30758 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30772 tar tf arc | sort || exit 1
30774 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
30778 TEST_TAR_FORMAT=ustar
30779 export TEST_TAR_FORMAT
30780 TAR_OPTIONS="-H ustar"
30785 test -z "`sort < /dev/null 2>&1`" || exit 77
30799 tar tf arc | sort || exit 1
30801 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30802 at_status=$? at_failed=false
30804 at_fn_diff_devnull "$at_stderr" || at_failed=:
30805 echo >>"$at_stdout"; $as_echo "separator
30812 $at_diff - "$at_stdout" || at_failed=:
30813 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
30814 $at_failed && at_fn_log_failure
30818 $as_echo "$at_srcdir/update02.at:29:
30821 TEST_TAR_FORMAT=posix
30822 export TEST_TAR_FORMAT
30823 TAR_OPTIONS=\"-H posix\"
30828 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30842 tar tf arc | sort || exit 1
30844 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
30848 TEST_TAR_FORMAT=posix
30849 export TEST_TAR_FORMAT
30850 TAR_OPTIONS="-H posix"
30855 test -z "`sort < /dev/null 2>&1`" || exit 77
30869 tar tf arc | sort || exit 1
30871 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30872 at_status=$? at_failed=false
30874 at_fn_diff_devnull "$at_stderr" || at_failed=:
30875 echo >>"$at_stdout"; $as_echo "separator
30882 $at_diff - "$at_stdout" || at_failed=:
30883 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
30884 $at_failed && at_fn_log_failure
30888 $as_echo "$at_srcdir/update02.at:29:
30891 TEST_TAR_FORMAT=gnu
30892 export TEST_TAR_FORMAT
30893 TAR_OPTIONS=\"-H gnu\"
30898 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30912 tar tf arc | sort || exit 1
30914 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
30918 TEST_TAR_FORMAT=gnu
30919 export TEST_TAR_FORMAT
30920 TAR_OPTIONS="-H gnu"
30925 test -z "`sort < /dev/null 2>&1`" || exit 77
30939 tar tf arc | sort || exit 1
30941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30942 at_status=$? at_failed=false
30944 at_fn_diff_devnull "$at_stderr" || at_failed=:
30945 echo >>"$at_stdout"; $as_echo "separator
30952 $at_diff - "$at_stdout" || at_failed=:
30953 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
30954 $at_failed && at_fn_log_failure
30961 $at_times_p && times >"$at_times_file"
30962 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30963 read at_status <"$at_status_file"
30966 at_fn_group_banner 135 'verify.at:25' \
30969 test -f $XFAILFILE && at_xfail=yes
30971 $as_echo "135. $at_setup_line: testing $at_desc ..."
30979 $as_echo "$at_srcdir/verify.at:28:
30983 export TEST_TAR_FORMAT
30984 TAR_OPTIONS=\"-H v7\"
30989 tar -cvf archive.tar --verify foo
30991 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
30996 export TEST_TAR_FORMAT
30997 TAR_OPTIONS="-H v7"
31002 tar -cvf archive.tar --verify foo
31004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31005 at_status=$? at_failed=false
31007 at_fn_diff_devnull "$at_stderr" || at_failed=:
31008 echo >>"$at_stdout"; $as_echo "foo
31011 $at_diff - "$at_stdout" || at_failed=:
31012 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31013 $at_failed && at_fn_log_failure
31017 $as_echo "$at_srcdir/verify.at:28:
31020 TEST_TAR_FORMAT=oldgnu
31021 export TEST_TAR_FORMAT
31022 TAR_OPTIONS=\"-H oldgnu\"
31027 tar -cvf archive.tar --verify foo
31029 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31033 TEST_TAR_FORMAT=oldgnu
31034 export TEST_TAR_FORMAT
31035 TAR_OPTIONS="-H oldgnu"
31040 tar -cvf archive.tar --verify foo
31042 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31043 at_status=$? at_failed=false
31045 at_fn_diff_devnull "$at_stderr" || at_failed=:
31046 echo >>"$at_stdout"; $as_echo "foo
31049 $at_diff - "$at_stdout" || at_failed=:
31050 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31051 $at_failed && at_fn_log_failure
31055 $as_echo "$at_srcdir/verify.at:28:
31058 TEST_TAR_FORMAT=ustar
31059 export TEST_TAR_FORMAT
31060 TAR_OPTIONS=\"-H ustar\"
31065 tar -cvf archive.tar --verify foo
31067 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31071 TEST_TAR_FORMAT=ustar
31072 export TEST_TAR_FORMAT
31073 TAR_OPTIONS="-H ustar"
31078 tar -cvf archive.tar --verify foo
31080 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31081 at_status=$? at_failed=false
31083 at_fn_diff_devnull "$at_stderr" || at_failed=:
31084 echo >>"$at_stdout"; $as_echo "foo
31087 $at_diff - "$at_stdout" || at_failed=:
31088 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31089 $at_failed && at_fn_log_failure
31093 $as_echo "$at_srcdir/verify.at:28:
31096 TEST_TAR_FORMAT=posix
31097 export TEST_TAR_FORMAT
31098 TAR_OPTIONS=\"-H posix\"
31103 tar -cvf archive.tar --verify foo
31105 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31109 TEST_TAR_FORMAT=posix
31110 export TEST_TAR_FORMAT
31111 TAR_OPTIONS="-H posix"
31116 tar -cvf archive.tar --verify foo
31118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31119 at_status=$? at_failed=false
31121 at_fn_diff_devnull "$at_stderr" || at_failed=:
31122 echo >>"$at_stdout"; $as_echo "foo
31125 $at_diff - "$at_stdout" || at_failed=:
31126 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31127 $at_failed && at_fn_log_failure
31131 $as_echo "$at_srcdir/verify.at:28:
31134 TEST_TAR_FORMAT=gnu
31135 export TEST_TAR_FORMAT
31136 TAR_OPTIONS=\"-H gnu\"
31141 tar -cvf archive.tar --verify foo
31143 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31147 TEST_TAR_FORMAT=gnu
31148 export TEST_TAR_FORMAT
31149 TAR_OPTIONS="-H gnu"
31154 tar -cvf archive.tar --verify foo
31156 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31157 at_status=$? at_failed=false
31159 at_fn_diff_devnull "$at_stderr" || at_failed=:
31160 echo >>"$at_stdout"; $as_echo "foo
31163 $at_diff - "$at_stdout" || at_failed=:
31164 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31165 $at_failed && at_fn_log_failure
31172 $at_times_p && times >"$at_times_file"
31173 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31174 read at_status <"$at_status_file"
31177 at_fn_group_banner 136 'volume.at:23' \
31180 test -f $XFAILFILE && at_xfail=yes
31182 $as_echo "136. $at_setup_line: testing $at_desc ..."
31190 $as_echo "$at_srcdir/volume.at:26:
31193 TEST_TAR_FORMAT=gnu
31194 export TEST_TAR_FORMAT
31195 TAR_OPTIONS=\"-H gnu\"
31199 tar -cf archive -V label -T /dev/null || exit 1
31201 tar xfV archive label || exit 1
31202 tar xfV archive 'la?el' || exit 1
31203 tar xfV archive 'l*l' || exit 1
31206 tar xfV archive lab
31207 test \$? = 2 || exit 1
31209 tar xfV archive bel
31210 test \$? = 2 || exit 1
31212 tar xfV archive babel
31215 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:26"
31219 TEST_TAR_FORMAT=gnu
31220 export TEST_TAR_FORMAT
31221 TAR_OPTIONS="-H gnu"
31225 tar -cf archive -V label -T /dev/null || exit 1
31227 tar xfV archive label || exit 1
31228 tar xfV archive 'la?el' || exit 1
31229 tar xfV archive 'l*l' || exit 1
31232 tar xfV archive lab
31233 test $? = 2 || exit 1
31235 tar xfV archive bel
31236 test $? = 2 || exit 1
31238 tar xfV archive babel
31241 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31242 at_status=$? at_failed=false
31244 echo >>"$at_stderr"; $as_echo "-----
31245 tar: Volume 'label' does not match 'lab'
31246 tar: Error is not recoverable: exiting now
31248 tar: Volume 'label' does not match 'bel'
31249 tar: Error is not recoverable: exiting now
31251 tar: Volume 'label' does not match 'babel'
31252 tar: Error is not recoverable: exiting now
31254 $at_diff - "$at_stderr" || at_failed=:
31255 at_fn_diff_devnull "$at_stdout" || at_failed=:
31256 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:26"
31257 $at_failed && at_fn_log_failure
31261 $as_echo "$at_srcdir/volume.at:26:
31264 TEST_TAR_FORMAT=oldgnu
31265 export TEST_TAR_FORMAT
31266 TAR_OPTIONS=\"-H oldgnu\"
31270 tar -cf archive -V label -T /dev/null || exit 1
31272 tar xfV archive label || exit 1
31273 tar xfV archive 'la?el' || exit 1
31274 tar xfV archive 'l*l' || exit 1
31277 tar xfV archive lab
31278 test \$? = 2 || exit 1
31280 tar xfV archive bel
31281 test \$? = 2 || exit 1
31283 tar xfV archive babel
31286 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:26"
31290 TEST_TAR_FORMAT=oldgnu
31291 export TEST_TAR_FORMAT
31292 TAR_OPTIONS="-H oldgnu"
31296 tar -cf archive -V label -T /dev/null || exit 1
31298 tar xfV archive label || exit 1
31299 tar xfV archive 'la?el' || exit 1
31300 tar xfV archive 'l*l' || exit 1
31303 tar xfV archive lab
31304 test $? = 2 || exit 1
31306 tar xfV archive bel
31307 test $? = 2 || exit 1
31309 tar xfV archive babel
31312 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31313 at_status=$? at_failed=false
31315 echo >>"$at_stderr"; $as_echo "-----
31316 tar: Volume 'label' does not match 'lab'
31317 tar: Error is not recoverable: exiting now
31319 tar: Volume 'label' does not match 'bel'
31320 tar: Error is not recoverable: exiting now
31322 tar: Volume 'label' does not match 'babel'
31323 tar: Error is not recoverable: exiting now
31325 $at_diff - "$at_stderr" || at_failed=:
31326 at_fn_diff_devnull "$at_stdout" || at_failed=:
31327 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:26"
31328 $at_failed && at_fn_log_failure
31335 $at_times_p && times >"$at_times_file"
31336 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31337 read at_status <"$at_status_file"
31340 at_fn_group_banner 137 'volsize.at:29' \
31341 "volume header size" " " 22
31343 test -f $XFAILFILE && at_xfail=yes
31345 $as_echo "137. $at_setup_line: testing $at_desc ..."
31353 $as_echo "$at_srcdir/volsize.at:32:
31357 export TEST_TAR_FORMAT
31358 TAR_OPTIONS=\"-H v7\"
31363 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31366 test -z \"\$TEST_DATA_DIR\" && exit 77
31367 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31370 tar tf \$TEST_DATA_DIR/abc.tar
31371 echo Verbose Listing
31372 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31373 echo Extracted directory
31374 tar xf \$TEST_DATA_DIR/abc.tar
31377 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31382 export TEST_TAR_FORMAT
31383 TAR_OPTIONS="-H v7"
31388 test -z "`sort < /dev/null 2>&1`" || exit 77
31391 test -z "$TEST_DATA_DIR" && exit 77
31392 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31395 tar tf $TEST_DATA_DIR/abc.tar
31396 echo Verbose Listing
31397 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31398 echo Extracted directory
31399 tar xf $TEST_DATA_DIR/abc.tar
31402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31403 at_status=$? at_failed=false
31405 at_fn_diff_devnull "$at_stderr" || at_failed=:
31406 echo >>"$at_stdout"; $as_echo "Short Listing
31410 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31411 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31412 Extracted directory
31416 $at_diff - "$at_stdout" || at_failed=:
31417 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31418 $at_failed && at_fn_log_failure
31422 $as_echo "$at_srcdir/volsize.at:32:
31425 TEST_TAR_FORMAT=oldgnu
31426 export TEST_TAR_FORMAT
31427 TAR_OPTIONS=\"-H oldgnu\"
31432 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31435 test -z \"\$TEST_DATA_DIR\" && exit 77
31436 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31439 tar tf \$TEST_DATA_DIR/abc.tar
31440 echo Verbose Listing
31441 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31442 echo Extracted directory
31443 tar xf \$TEST_DATA_DIR/abc.tar
31446 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31450 TEST_TAR_FORMAT=oldgnu
31451 export TEST_TAR_FORMAT
31452 TAR_OPTIONS="-H oldgnu"
31457 test -z "`sort < /dev/null 2>&1`" || exit 77
31460 test -z "$TEST_DATA_DIR" && exit 77
31461 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31464 tar tf $TEST_DATA_DIR/abc.tar
31465 echo Verbose Listing
31466 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31467 echo Extracted directory
31468 tar xf $TEST_DATA_DIR/abc.tar
31471 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31472 at_status=$? at_failed=false
31474 at_fn_diff_devnull "$at_stderr" || at_failed=:
31475 echo >>"$at_stdout"; $as_echo "Short Listing
31479 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31480 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31481 Extracted directory
31485 $at_diff - "$at_stdout" || at_failed=:
31486 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31487 $at_failed && at_fn_log_failure
31491 $as_echo "$at_srcdir/volsize.at:32:
31494 TEST_TAR_FORMAT=ustar
31495 export TEST_TAR_FORMAT
31496 TAR_OPTIONS=\"-H ustar\"
31501 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31504 test -z \"\$TEST_DATA_DIR\" && exit 77
31505 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31508 tar tf \$TEST_DATA_DIR/abc.tar
31509 echo Verbose Listing
31510 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31511 echo Extracted directory
31512 tar xf \$TEST_DATA_DIR/abc.tar
31515 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31519 TEST_TAR_FORMAT=ustar
31520 export TEST_TAR_FORMAT
31521 TAR_OPTIONS="-H ustar"
31526 test -z "`sort < /dev/null 2>&1`" || exit 77
31529 test -z "$TEST_DATA_DIR" && exit 77
31530 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31533 tar tf $TEST_DATA_DIR/abc.tar
31534 echo Verbose Listing
31535 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31536 echo Extracted directory
31537 tar xf $TEST_DATA_DIR/abc.tar
31540 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31541 at_status=$? at_failed=false
31543 at_fn_diff_devnull "$at_stderr" || at_failed=:
31544 echo >>"$at_stdout"; $as_echo "Short Listing
31548 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31549 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31550 Extracted directory
31554 $at_diff - "$at_stdout" || at_failed=:
31555 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31556 $at_failed && at_fn_log_failure
31560 $as_echo "$at_srcdir/volsize.at:32:
31563 TEST_TAR_FORMAT=posix
31564 export TEST_TAR_FORMAT
31565 TAR_OPTIONS=\"-H posix\"
31570 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31573 test -z \"\$TEST_DATA_DIR\" && exit 77
31574 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31577 tar tf \$TEST_DATA_DIR/abc.tar
31578 echo Verbose Listing
31579 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31580 echo Extracted directory
31581 tar xf \$TEST_DATA_DIR/abc.tar
31584 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31588 TEST_TAR_FORMAT=posix
31589 export TEST_TAR_FORMAT
31590 TAR_OPTIONS="-H posix"
31595 test -z "`sort < /dev/null 2>&1`" || exit 77
31598 test -z "$TEST_DATA_DIR" && exit 77
31599 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31602 tar tf $TEST_DATA_DIR/abc.tar
31603 echo Verbose Listing
31604 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31605 echo Extracted directory
31606 tar xf $TEST_DATA_DIR/abc.tar
31609 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31610 at_status=$? at_failed=false
31612 at_fn_diff_devnull "$at_stderr" || at_failed=:
31613 echo >>"$at_stdout"; $as_echo "Short Listing
31617 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31618 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31619 Extracted directory
31623 $at_diff - "$at_stdout" || at_failed=:
31624 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31625 $at_failed && at_fn_log_failure
31629 $as_echo "$at_srcdir/volsize.at:32:
31632 TEST_TAR_FORMAT=gnu
31633 export TEST_TAR_FORMAT
31634 TAR_OPTIONS=\"-H gnu\"
31639 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31642 test -z \"\$TEST_DATA_DIR\" && exit 77
31643 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31646 tar tf \$TEST_DATA_DIR/abc.tar
31647 echo Verbose Listing
31648 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31649 echo Extracted directory
31650 tar xf \$TEST_DATA_DIR/abc.tar
31653 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31657 TEST_TAR_FORMAT=gnu
31658 export TEST_TAR_FORMAT
31659 TAR_OPTIONS="-H gnu"
31664 test -z "`sort < /dev/null 2>&1`" || exit 77
31667 test -z "$TEST_DATA_DIR" && exit 77
31668 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31671 tar tf $TEST_DATA_DIR/abc.tar
31672 echo Verbose Listing
31673 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31674 echo Extracted directory
31675 tar xf $TEST_DATA_DIR/abc.tar
31678 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31679 at_status=$? at_failed=false
31681 at_fn_diff_devnull "$at_stderr" || at_failed=:
31682 echo >>"$at_stdout"; $as_echo "Short Listing
31686 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31687 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31688 Extracted directory
31692 $at_diff - "$at_stdout" || at_failed=:
31693 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31694 $at_failed && at_fn_log_failure
31701 $at_times_p && times >"$at_times_file"
31702 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31703 read at_status <"$at_status_file"
31706 at_fn_group_banner 138 'comprec.at:21' \
31707 "compressed format recognition" " " 23
31709 test -f $XFAILFILE && at_xfail=yes
31711 $as_echo "138. $at_setup_line: testing $at_desc ..."
31720 $as_echo "$at_srcdir/comprec.at:25:
31724 export TEST_TAR_FORMAT
31725 TAR_OPTIONS=\"-H v7\"
31730 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31732 genfile --length 10240 --file file1
31734 tar cfz archive file1
31737 tar xfv archive --warning=no-timestamp
31740 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
31745 export TEST_TAR_FORMAT
31746 TAR_OPTIONS="-H v7"
31751 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31753 genfile --length 10240 --file file1
31755 tar cfz archive file1
31758 tar xfv archive --warning=no-timestamp
31761 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31762 at_status=$? at_failed=false
31764 at_fn_diff_devnull "$at_stderr" || at_failed=:
31765 echo >>"$at_stdout"; $as_echo "separator
31769 $at_diff - "$at_stdout" || at_failed=:
31770 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
31771 $at_failed && at_fn_log_failure
31775 $as_echo "$at_srcdir/comprec.at:25:
31778 TEST_TAR_FORMAT=oldgnu
31779 export TEST_TAR_FORMAT
31780 TAR_OPTIONS=\"-H oldgnu\"
31785 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31787 genfile --length 10240 --file file1
31789 tar cfz archive file1
31792 tar xfv archive --warning=no-timestamp
31795 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
31799 TEST_TAR_FORMAT=oldgnu
31800 export TEST_TAR_FORMAT
31801 TAR_OPTIONS="-H oldgnu"
31806 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31808 genfile --length 10240 --file file1
31810 tar cfz archive file1
31813 tar xfv archive --warning=no-timestamp
31816 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31817 at_status=$? at_failed=false
31819 at_fn_diff_devnull "$at_stderr" || at_failed=:
31820 echo >>"$at_stdout"; $as_echo "separator
31824 $at_diff - "$at_stdout" || at_failed=:
31825 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
31826 $at_failed && at_fn_log_failure
31830 $as_echo "$at_srcdir/comprec.at:25:
31833 TEST_TAR_FORMAT=ustar
31834 export TEST_TAR_FORMAT
31835 TAR_OPTIONS=\"-H ustar\"
31840 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31842 genfile --length 10240 --file file1
31844 tar cfz archive file1
31847 tar xfv archive --warning=no-timestamp
31850 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
31854 TEST_TAR_FORMAT=ustar
31855 export TEST_TAR_FORMAT
31856 TAR_OPTIONS="-H ustar"
31861 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31863 genfile --length 10240 --file file1
31865 tar cfz archive file1
31868 tar xfv archive --warning=no-timestamp
31871 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31872 at_status=$? at_failed=false
31874 at_fn_diff_devnull "$at_stderr" || at_failed=:
31875 echo >>"$at_stdout"; $as_echo "separator
31879 $at_diff - "$at_stdout" || at_failed=:
31880 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
31881 $at_failed && at_fn_log_failure
31885 $as_echo "$at_srcdir/comprec.at:25:
31888 TEST_TAR_FORMAT=posix
31889 export TEST_TAR_FORMAT
31890 TAR_OPTIONS=\"-H posix\"
31895 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31897 genfile --length 10240 --file file1
31899 tar cfz archive file1
31902 tar xfv archive --warning=no-timestamp
31905 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
31909 TEST_TAR_FORMAT=posix
31910 export TEST_TAR_FORMAT
31911 TAR_OPTIONS="-H posix"
31916 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31918 genfile --length 10240 --file file1
31920 tar cfz archive file1
31923 tar xfv archive --warning=no-timestamp
31926 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31927 at_status=$? at_failed=false
31929 at_fn_diff_devnull "$at_stderr" || at_failed=:
31930 echo >>"$at_stdout"; $as_echo "separator
31934 $at_diff - "$at_stdout" || at_failed=:
31935 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
31936 $at_failed && at_fn_log_failure
31940 $as_echo "$at_srcdir/comprec.at:25:
31943 TEST_TAR_FORMAT=gnu
31944 export TEST_TAR_FORMAT
31945 TAR_OPTIONS=\"-H gnu\"
31950 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31952 genfile --length 10240 --file file1
31954 tar cfz archive file1
31957 tar xfv archive --warning=no-timestamp
31960 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
31964 TEST_TAR_FORMAT=gnu
31965 export TEST_TAR_FORMAT
31966 TAR_OPTIONS="-H gnu"
31971 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
31973 genfile --length 10240 --file file1
31975 tar cfz archive file1
31978 tar xfv archive --warning=no-timestamp
31981 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31982 at_status=$? at_failed=false
31984 at_fn_diff_devnull "$at_stderr" || at_failed=:
31985 echo >>"$at_stdout"; $as_echo "separator
31989 $at_diff - "$at_stdout" || at_failed=:
31990 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
31991 $at_failed && at_fn_log_failure
31998 $at_times_p && times >"$at_times_file"
31999 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32000 read at_status <"$at_status_file"
32003 at_fn_group_banner 139 'shortfile.at:26' \
32004 "short input files" " " 23
32006 test -f $XFAILFILE && at_xfail=yes
32008 $as_echo "139. $at_setup_line: testing $at_desc ..."
32016 $as_echo "$at_srcdir/shortfile.at:29:
32019 TEST_TAR_FORMAT=gnu
32020 export TEST_TAR_FORMAT
32021 TAR_OPTIONS=\"-H gnu\"
32025 genfile --length 511 --file foo || exit 5
32028 at_fn_check_prepare_notrace 'an embedded newline' "shortfile.at:29"
32032 TEST_TAR_FORMAT=gnu
32033 export TEST_TAR_FORMAT
32034 TAR_OPTIONS="-H gnu"
32038 genfile --length 511 --file foo || exit 5
32041 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32042 at_status=$? at_failed=false
32044 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
32045 tar: Exiting with failure status due to previous errors
32047 $at_diff - "$at_stderr" || at_failed=:
32048 at_fn_diff_devnull "$at_stdout" || at_failed=:
32049 at_fn_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
32050 $at_failed && at_fn_log_failure
32057 $at_times_p && times >"$at_times_file"
32058 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32059 read at_status <"$at_status_file"
32062 at_fn_group_banner 140 'shortupd.at:31' \
32063 "updating short archives" " " 23
32065 test -f $XFAILFILE && at_xfail=yes
32067 $as_echo "140. $at_setup_line: testing $at_desc ..."
32075 $as_echo "$at_srcdir/shortupd.at:34:
32079 export TEST_TAR_FORMAT
32080 TAR_OPTIONS=\"-H v7\"
32087 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32092 export TEST_TAR_FORMAT
32093 TAR_OPTIONS="-H v7"
32100 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32101 at_status=$? at_failed=false
32103 at_fn_diff_devnull "$at_stderr" || at_failed=:
32104 at_fn_diff_devnull "$at_stdout" || at_failed=:
32105 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32106 $at_failed && at_fn_log_failure
32110 $as_echo "$at_srcdir/shortupd.at:34:
32113 TEST_TAR_FORMAT=oldgnu
32114 export TEST_TAR_FORMAT
32115 TAR_OPTIONS=\"-H oldgnu\"
32122 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32126 TEST_TAR_FORMAT=oldgnu
32127 export TEST_TAR_FORMAT
32128 TAR_OPTIONS="-H oldgnu"
32135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32136 at_status=$? at_failed=false
32138 at_fn_diff_devnull "$at_stderr" || at_failed=:
32139 at_fn_diff_devnull "$at_stdout" || at_failed=:
32140 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32141 $at_failed && at_fn_log_failure
32145 $as_echo "$at_srcdir/shortupd.at:34:
32148 TEST_TAR_FORMAT=ustar
32149 export TEST_TAR_FORMAT
32150 TAR_OPTIONS=\"-H ustar\"
32157 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32161 TEST_TAR_FORMAT=ustar
32162 export TEST_TAR_FORMAT
32163 TAR_OPTIONS="-H ustar"
32170 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32171 at_status=$? at_failed=false
32173 at_fn_diff_devnull "$at_stderr" || at_failed=:
32174 at_fn_diff_devnull "$at_stdout" || at_failed=:
32175 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32176 $at_failed && at_fn_log_failure
32180 $as_echo "$at_srcdir/shortupd.at:34:
32183 TEST_TAR_FORMAT=posix
32184 export TEST_TAR_FORMAT
32185 TAR_OPTIONS=\"-H posix\"
32192 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32196 TEST_TAR_FORMAT=posix
32197 export TEST_TAR_FORMAT
32198 TAR_OPTIONS="-H posix"
32205 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32206 at_status=$? at_failed=false
32208 at_fn_diff_devnull "$at_stderr" || at_failed=:
32209 at_fn_diff_devnull "$at_stdout" || at_failed=:
32210 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32211 $at_failed && at_fn_log_failure
32215 $as_echo "$at_srcdir/shortupd.at:34:
32218 TEST_TAR_FORMAT=gnu
32219 export TEST_TAR_FORMAT
32220 TAR_OPTIONS=\"-H gnu\"
32227 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32231 TEST_TAR_FORMAT=gnu
32232 export TEST_TAR_FORMAT
32233 TAR_OPTIONS="-H gnu"
32240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32241 at_status=$? at_failed=false
32243 at_fn_diff_devnull "$at_stderr" || at_failed=:
32244 at_fn_diff_devnull "$at_stdout" || at_failed=:
32245 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32246 $at_failed && at_fn_log_failure
32253 $at_times_p && times >"$at_times_file"
32254 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32255 read at_status <"$at_status_file"
32258 at_fn_group_banner 141 'truncate.at:29' \
32261 test -f $XFAILFILE && at_xfail=yes
32263 $as_echo "141. $at_setup_line: testing $at_desc ..."
32271 $as_echo "$at_srcdir/truncate.at:32:
32275 export TEST_TAR_FORMAT
32276 TAR_OPTIONS=\"-H v7\"
32280 genfile --file foo --length 200k
32282 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32283 echo Exit status: \$?
32285 genfile --file foo --seek 195k --length 5k --pattern=zeros
32287 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32292 export TEST_TAR_FORMAT
32293 TAR_OPTIONS="-H v7"
32297 genfile --file foo --length 200k
32299 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32300 echo Exit status: $?
32302 genfile --file foo --seek 195k --length 5k --pattern=zeros
32304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32305 at_status=$? at_failed=false
32307 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32309 $at_diff - "$at_stderr" || at_failed=:
32310 echo >>"$at_stdout"; $as_echo "foo
32315 foo: Mod time differs
32318 $at_diff - "$at_stdout" || at_failed=:
32319 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32320 $at_failed && at_fn_log_failure
32324 $as_echo "$at_srcdir/truncate.at:32:
32327 TEST_TAR_FORMAT=oldgnu
32328 export TEST_TAR_FORMAT
32329 TAR_OPTIONS=\"-H oldgnu\"
32333 genfile --file foo --length 200k
32335 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32336 echo Exit status: \$?
32338 genfile --file foo --seek 195k --length 5k --pattern=zeros
32340 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32344 TEST_TAR_FORMAT=oldgnu
32345 export TEST_TAR_FORMAT
32346 TAR_OPTIONS="-H oldgnu"
32350 genfile --file foo --length 200k
32352 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32353 echo Exit status: $?
32355 genfile --file foo --seek 195k --length 5k --pattern=zeros
32357 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32358 at_status=$? at_failed=false
32360 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32362 $at_diff - "$at_stderr" || at_failed=:
32363 echo >>"$at_stdout"; $as_echo "foo
32368 foo: Mod time differs
32371 $at_diff - "$at_stdout" || at_failed=:
32372 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32373 $at_failed && at_fn_log_failure
32377 $as_echo "$at_srcdir/truncate.at:32:
32380 TEST_TAR_FORMAT=ustar
32381 export TEST_TAR_FORMAT
32382 TAR_OPTIONS=\"-H ustar\"
32386 genfile --file foo --length 200k
32388 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32389 echo Exit status: \$?
32391 genfile --file foo --seek 195k --length 5k --pattern=zeros
32393 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32397 TEST_TAR_FORMAT=ustar
32398 export TEST_TAR_FORMAT
32399 TAR_OPTIONS="-H ustar"
32403 genfile --file foo --length 200k
32405 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32406 echo Exit status: $?
32408 genfile --file foo --seek 195k --length 5k --pattern=zeros
32410 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32411 at_status=$? at_failed=false
32413 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32415 $at_diff - "$at_stderr" || at_failed=:
32416 echo >>"$at_stdout"; $as_echo "foo
32421 foo: Mod time differs
32424 $at_diff - "$at_stdout" || at_failed=:
32425 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32426 $at_failed && at_fn_log_failure
32430 $as_echo "$at_srcdir/truncate.at:32:
32433 TEST_TAR_FORMAT=posix
32434 export TEST_TAR_FORMAT
32435 TAR_OPTIONS=\"-H posix\"
32439 genfile --file foo --length 200k
32441 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32442 echo Exit status: \$?
32444 genfile --file foo --seek 195k --length 5k --pattern=zeros
32446 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32450 TEST_TAR_FORMAT=posix
32451 export TEST_TAR_FORMAT
32452 TAR_OPTIONS="-H posix"
32456 genfile --file foo --length 200k
32458 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32459 echo Exit status: $?
32461 genfile --file foo --seek 195k --length 5k --pattern=zeros
32463 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32464 at_status=$? at_failed=false
32466 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32468 $at_diff - "$at_stderr" || at_failed=:
32469 echo >>"$at_stdout"; $as_echo "foo
32474 foo: Mod time differs
32477 $at_diff - "$at_stdout" || at_failed=:
32478 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32479 $at_failed && at_fn_log_failure
32483 $as_echo "$at_srcdir/truncate.at:32:
32486 TEST_TAR_FORMAT=gnu
32487 export TEST_TAR_FORMAT
32488 TAR_OPTIONS=\"-H gnu\"
32492 genfile --file foo --length 200k
32494 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32495 echo Exit status: \$?
32497 genfile --file foo --seek 195k --length 5k --pattern=zeros
32499 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32503 TEST_TAR_FORMAT=gnu
32504 export TEST_TAR_FORMAT
32505 TAR_OPTIONS="-H gnu"
32509 genfile --file foo --length 200k
32511 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32512 echo Exit status: $?
32514 genfile --file foo --seek 195k --length 5k --pattern=zeros
32516 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32517 at_status=$? at_failed=false
32519 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32521 $at_diff - "$at_stderr" || at_failed=:
32522 echo >>"$at_stdout"; $as_echo "foo
32527 foo: Mod time differs
32530 $at_diff - "$at_stdout" || at_failed=:
32531 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32532 $at_failed && at_fn_log_failure
32539 $at_times_p && times >"$at_times_file"
32540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32541 read at_status <"$at_status_file"
32544 at_fn_group_banner 142 'grow.at:24' \
32547 test -f $XFAILFILE && at_xfail=yes
32549 $as_echo "142. $at_setup_line: testing $at_desc ..."
32557 $as_echo "$at_srcdir/grow.at:27:
32561 export TEST_TAR_FORMAT
32562 TAR_OPTIONS=\"-H v7\"
32566 genfile --file foo --length 50000k
32568 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32570 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
32575 export TEST_TAR_FORMAT
32576 TAR_OPTIONS="-H v7"
32580 genfile --file foo --length 50000k
32582 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32584 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32585 at_status=$? at_failed=false
32587 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
32589 $at_diff - "$at_stderr" || at_failed=:
32590 echo >>"$at_stdout"; $as_echo "foo
32593 $at_diff - "$at_stdout" || at_failed=:
32594 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
32595 $at_failed && at_fn_log_failure
32599 $as_echo "$at_srcdir/grow.at:27:
32602 TEST_TAR_FORMAT=oldgnu
32603 export TEST_TAR_FORMAT
32604 TAR_OPTIONS=\"-H oldgnu\"
32608 genfile --file foo --length 50000k
32610 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32612 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
32616 TEST_TAR_FORMAT=oldgnu
32617 export TEST_TAR_FORMAT
32618 TAR_OPTIONS="-H oldgnu"
32622 genfile --file foo --length 50000k
32624 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32626 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32627 at_status=$? at_failed=false
32629 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
32631 $at_diff - "$at_stderr" || at_failed=:
32632 echo >>"$at_stdout"; $as_echo "foo
32635 $at_diff - "$at_stdout" || at_failed=:
32636 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
32637 $at_failed && at_fn_log_failure
32641 $as_echo "$at_srcdir/grow.at:27:
32644 TEST_TAR_FORMAT=ustar
32645 export TEST_TAR_FORMAT
32646 TAR_OPTIONS=\"-H ustar\"
32650 genfile --file foo --length 50000k
32652 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32654 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
32658 TEST_TAR_FORMAT=ustar
32659 export TEST_TAR_FORMAT
32660 TAR_OPTIONS="-H ustar"
32664 genfile --file foo --length 50000k
32666 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32669 at_status=$? at_failed=false
32671 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
32673 $at_diff - "$at_stderr" || at_failed=:
32674 echo >>"$at_stdout"; $as_echo "foo
32677 $at_diff - "$at_stdout" || at_failed=:
32678 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
32679 $at_failed && at_fn_log_failure
32683 $as_echo "$at_srcdir/grow.at:27:
32686 TEST_TAR_FORMAT=posix
32687 export TEST_TAR_FORMAT
32688 TAR_OPTIONS=\"-H posix\"
32692 genfile --file foo --length 50000k
32694 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32696 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
32700 TEST_TAR_FORMAT=posix
32701 export TEST_TAR_FORMAT
32702 TAR_OPTIONS="-H posix"
32706 genfile --file foo --length 50000k
32708 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32711 at_status=$? at_failed=false
32713 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
32715 $at_diff - "$at_stderr" || at_failed=:
32716 echo >>"$at_stdout"; $as_echo "foo
32719 $at_diff - "$at_stdout" || at_failed=:
32720 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
32721 $at_failed && at_fn_log_failure
32725 $as_echo "$at_srcdir/grow.at:27:
32728 TEST_TAR_FORMAT=gnu
32729 export TEST_TAR_FORMAT
32730 TAR_OPTIONS=\"-H gnu\"
32734 genfile --file foo --length 50000k
32736 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32738 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
32742 TEST_TAR_FORMAT=gnu
32743 export TEST_TAR_FORMAT
32744 TAR_OPTIONS="-H gnu"
32748 genfile --file foo --length 50000k
32750 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
32752 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32753 at_status=$? at_failed=false
32755 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
32757 $at_diff - "$at_stderr" || at_failed=:
32758 echo >>"$at_stdout"; $as_echo "foo
32761 $at_diff - "$at_stdout" || at_failed=:
32762 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
32763 $at_failed && at_fn_log_failure
32770 $at_times_p && times >"$at_times_file"
32771 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32772 read at_status <"$at_status_file"
32775 at_fn_group_banner 143 'sigpipe.at:21' \
32776 "sigpipe handling" " " 23
32779 $as_echo "143. $at_setup_line: testing $at_desc ..."
32784 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
32785 # error" diagnostics when piping output to another programs.
32786 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
32787 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
32788 # <20100319184141.GC30047@wo.int.altlinux.org>
32791 $as_echo "$at_srcdir/sigpipe.at:30:
32793 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
32798 genfile --length 2048 --file first
32799 genfile --length 2048 --file second
32800 genfile --length 2049 --file third
32802 tar cf archive first second third
32804 # Discard diagnostics that some shells generate about broken pipes.
32805 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
32807 at_fn_check_prepare_notrace 'a `...` command substitution' "sigpipe.at:30"
32810 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
32815 genfile --length 2048 --file first
32816 genfile --length 2048 --file second
32817 genfile --length 2049 --file third
32819 tar cf archive first second third
32821 # Discard diagnostics that some shells generate about broken pipes.
32822 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
32824 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32825 at_status=$? at_failed=false
32827 at_fn_diff_devnull "$at_stderr" || at_failed=:
32828 at_fn_diff_devnull "$at_stdout" || at_failed=:
32829 at_fn_check_status 0 $at_status "$at_srcdir/sigpipe.at:30"
32830 $at_failed && at_fn_log_failure
32835 $at_times_p && times >"$at_times_file"
32836 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32837 read at_status <"$at_status_file"
32840 at_fn_group_banner 144 'remfiles01.at:28' \
32841 "remove-files with compression" " " 24
32844 $as_echo "144. $at_setup_line: testing $at_desc ..."
32851 $as_echo "$at_srcdir/remfiles01.at:32:
32853 echo \"test\" > \$\$
32855 cat \$\$ > /dev/null 2>&1
32858 test \$result -eq 0 && exit 77
32861 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32864 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
32869 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
32874 genfile --file a --length 0
32879 # Depending on when the SIGPIPE gets delivered, the invocation below
32880 # may finish with either
32881 # tar: a: Cannot write: Broken pipe
32883 # tar: Child returned status 2
32885 # Discard diagnostics that some shells generate about broken pipes,
32886 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
32887 # Gzip's exit code is propagated to the shell. Usually it is 141.
32888 # Convert all non-zero exits to 2 to make it predictable.
32889 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
32891 sed -n '/(child)/p' err >&2
32896 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles01.at:32"
32901 cat $$ > /dev/null 2>&1
32904 test $result -eq 0 && exit 77
32907 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32910 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
32915 test -z "`sort < /dev/null 2>&1`" || exit 77
32920 genfile --file a --length 0
32925 # Depending on when the SIGPIPE gets delivered, the invocation below
32926 # may finish with either
32927 # tar: a: Cannot write: Broken pipe
32929 # tar: Child returned status 2
32931 # Discard diagnostics that some shells generate about broken pipes,
32932 # and discard all of tar's diagnostics except for the ones saying "(child)".
32933 # Gzip's exit code is propagated to the shell. Usually it is 141.
32934 # Convert all non-zero exits to 2 to make it predictable.
32935 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
32937 sed -n '/(child)/p' err >&2
32942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32943 at_status=$? at_failed=false
32945 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
32946 tar (child): Error is not recoverable: exiting now
32948 $at_diff - "$at_stderr" || at_failed=:
32949 echo >>"$at_stdout"; $as_echo ".
32954 $at_diff - "$at_stdout" || at_failed=:
32955 at_fn_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
32956 $at_failed && at_fn_log_failure
32961 $at_times_p && times >"$at_times_file"
32962 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32963 read at_status <"$at_status_file"
32966 at_fn_group_banner 145 'remfiles02.at:28' \
32967 "remove-files with compression: grand-child" " " 24
32970 $as_echo "145. $at_setup_line: testing $at_desc ..."
32977 $as_echo "$at_srcdir/remfiles02.at:32:
32979 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32982 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
32991 tar -c -f a -z --remove-files b c 2>err
32993 sed -n '/(child)/p' err >&2
32998 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles02.at:32"
33001 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33004 test -z "`sort < /dev/null 2>&1`" || exit 77
33013 tar -c -f a -z --remove-files b c 2>err
33015 sed -n '/(child)/p' err >&2
33020 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33021 at_status=$? at_failed=false
33023 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
33024 tar (child): Error is not recoverable: exiting now
33026 $at_diff - "$at_stderr" || at_failed=:
33027 echo >>"$at_stdout"; $as_echo ".
33032 $at_diff - "$at_stdout" || at_failed=:
33033 at_fn_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
33034 $at_failed && at_fn_log_failure
33039 $at_times_p && times >"$at_times_file"
33040 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33041 read at_status <"$at_status_file"
33044 at_fn_group_banner 146 'remfiles03.at:28' \
33045 "remove-files with symbolic links" " " 24
33048 $as_echo "146. $at_setup_line: testing $at_desc ..."
33054 $as_echo "$at_srcdir/remfiles03.at:31:
33057 ln -s b a/c || exit 77
33058 tar --remove-files -cf a.tar a
33061 at_fn_check_prepare_notrace 'an embedded newline' "remfiles03.at:31"
33065 ln -s b a/c || exit 77
33066 tar --remove-files -cf a.tar a
33069 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33070 at_status=$? at_failed=false
33072 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
33074 $at_diff - "$at_stderr" || at_failed=:
33075 at_fn_diff_devnull "$at_stdout" || at_failed=:
33076 at_fn_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
33077 $at_failed && at_fn_log_failure
33082 $at_times_p && times >"$at_times_file"
33083 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33084 read at_status <"$at_status_file"
33087 at_fn_group_banner 147 'remfiles04a.at:25' \
33088 "remove-files with -C:rel in -c/non-incr. mode" " " 24
33090 test -f $XFAILFILE && at_xfail=yes
33092 $as_echo "147. $at_setup_line: testing $at_desc ..."
33100 $as_echo "$at_srcdir/remfiles04a.at:28:
33103 TEST_TAR_FORMAT=gnu
33104 export TEST_TAR_FORMAT
33105 TAR_OPTIONS=\"-H gnu\"
33110 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33114 echo foobar > foo/bar
33115 tar -cf foo.tar --remove-files -C foo bar
33119 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04a.at:28"
33123 TEST_TAR_FORMAT=gnu
33124 export TEST_TAR_FORMAT
33125 TAR_OPTIONS="-H gnu"
33130 test -z "`sort < /dev/null 2>&1`" || exit 77
33134 echo foobar > foo/bar
33135 tar -cf foo.tar --remove-files -C foo bar
33139 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33140 at_status=$? at_failed=false
33142 at_fn_diff_devnull "$at_stderr" || at_failed=:
33143 echo >>"$at_stdout"; $as_echo "A
33149 $at_diff - "$at_stdout" || at_failed=:
33150 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04a.at:28"
33151 $at_failed && at_fn_log_failure
33158 $at_times_p && times >"$at_times_file"
33159 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33160 read at_status <"$at_status_file"
33163 at_fn_group_banner 148 'remfiles04b.at:33' \
33164 "remove-files with -C:rel in -c/incr. mode" " " 24
33166 test -f $XFAILFILE && at_xfail=yes
33168 $as_echo "148. $at_setup_line: testing $at_desc ..."
33176 $as_echo "$at_srcdir/remfiles04b.at:36:
33179 TEST_TAR_FORMAT=gnu
33180 export TEST_TAR_FORMAT
33181 TAR_OPTIONS=\"-H gnu\"
33186 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33190 echo foobar > foo/bar
33191 tar -cf foo.tar --incremental --remove-files -C foo bar
33195 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04b.at:36"
33199 TEST_TAR_FORMAT=gnu
33200 export TEST_TAR_FORMAT
33201 TAR_OPTIONS="-H gnu"
33206 test -z "`sort < /dev/null 2>&1`" || exit 77
33210 echo foobar > foo/bar
33211 tar -cf foo.tar --incremental --remove-files -C foo bar
33215 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33216 at_status=$? at_failed=false
33218 at_fn_diff_devnull "$at_stderr" || at_failed=:
33219 echo >>"$at_stdout"; $as_echo "A
33225 $at_diff - "$at_stdout" || at_failed=:
33226 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04b.at:36"
33227 $at_failed && at_fn_log_failure
33234 $at_times_p && times >"$at_times_file"
33235 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33236 read at_status <"$at_status_file"
33239 at_fn_group_banner 149 'remfiles04c.at:33' \
33240 "remove-files with -C:rel in -r mode" " " 24
33242 test -f $XFAILFILE && at_xfail=yes
33244 $as_echo "149. $at_setup_line: testing $at_desc ..."
33252 $as_echo "$at_srcdir/remfiles04c.at:36:
33255 TEST_TAR_FORMAT=gnu
33256 export TEST_TAR_FORMAT
33257 TAR_OPTIONS=\"-H gnu\"
33262 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33266 echo foobar > foo/bar
33267 tar -cf foo.tar -C foo bar
33270 tar -rf foo.tar --remove-files -C foo bar
33274 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04c.at:36"
33278 TEST_TAR_FORMAT=gnu
33279 export TEST_TAR_FORMAT
33280 TAR_OPTIONS="-H gnu"
33285 test -z "`sort < /dev/null 2>&1`" || exit 77
33289 echo foobar > foo/bar
33290 tar -cf foo.tar -C foo bar
33293 tar -rf foo.tar --remove-files -C foo bar
33297 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33298 at_status=$? at_failed=false
33300 at_fn_diff_devnull "$at_stderr" || at_failed=:
33301 echo >>"$at_stdout"; $as_echo "A
33313 $at_diff - "$at_stdout" || at_failed=:
33314 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04c.at:36"
33315 $at_failed && at_fn_log_failure
33322 $at_times_p && times >"$at_times_file"
33323 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33324 read at_status <"$at_status_file"
33327 at_fn_group_banner 150 'remfiles05a.at:34' \
33328 "remove-files with -C:rel,rel in -c/non-incr. mode" "" 24
33330 test -f $XFAILFILE && at_xfail=yes
33332 $as_echo "150. $at_setup_line: testing $at_desc ..."
33340 $as_echo "$at_srcdir/remfiles05a.at:37:
33343 TEST_TAR_FORMAT=gnu
33344 export TEST_TAR_FORMAT
33345 TAR_OPTIONS=\"-H gnu\"
33350 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33355 echo foo/file > foo/file
33356 echo bar/file > bar/file
33358 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
33362 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05a.at:37"
33366 TEST_TAR_FORMAT=gnu
33367 export TEST_TAR_FORMAT
33368 TAR_OPTIONS="-H gnu"
33373 test -z "`sort < /dev/null 2>&1`" || exit 77
33378 echo foo/file > foo/file
33379 echo bar/file > bar/file
33381 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
33385 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33386 at_status=$? at_failed=false
33388 echo >>"$at_stderr"; $as_echo "A
33391 $at_diff - "$at_stderr" || at_failed=:
33392 echo >>"$at_stdout"; $as_echo "A
33402 $at_diff - "$at_stdout" || at_failed=:
33403 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05a.at:37"
33404 $at_failed && at_fn_log_failure
33411 $at_times_p && times >"$at_times_file"
33412 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33413 read at_status <"$at_status_file"
33416 at_fn_group_banner 151 'remfiles05b.at:25' \
33417 "remove-files with -C:rel,rel in -c/incr. mode" " " 24
33419 test -f $XFAILFILE && at_xfail=yes
33421 $as_echo "151. $at_setup_line: testing $at_desc ..."
33429 $as_echo "$at_srcdir/remfiles05b.at:28:
33432 TEST_TAR_FORMAT=gnu
33433 export TEST_TAR_FORMAT
33434 TAR_OPTIONS=\"-H gnu\"
33439 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33444 echo foo/file > foo/file
33445 echo bar/file > bar/file
33447 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
33451 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05b.at:28"
33455 TEST_TAR_FORMAT=gnu
33456 export TEST_TAR_FORMAT
33457 TAR_OPTIONS="-H gnu"
33462 test -z "`sort < /dev/null 2>&1`" || exit 77
33467 echo foo/file > foo/file
33468 echo bar/file > bar/file
33470 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
33474 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33475 at_status=$? at_failed=false
33477 echo >>"$at_stderr"; $as_echo "A
33480 $at_diff - "$at_stderr" || at_failed=:
33481 echo >>"$at_stdout"; $as_echo "A
33491 $at_diff - "$at_stdout" || at_failed=:
33492 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05b.at:28"
33493 $at_failed && at_fn_log_failure
33500 $at_times_p && times >"$at_times_file"
33501 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33502 read at_status <"$at_status_file"
33505 at_fn_group_banner 152 'remfiles05c.at:25' \
33506 "remove-files with -C:rel,rel in -r mode" " " 24
33508 test -f $XFAILFILE && at_xfail=yes
33510 $as_echo "152. $at_setup_line: testing $at_desc ..."
33518 $as_echo "$at_srcdir/remfiles05c.at:28:
33521 TEST_TAR_FORMAT=gnu
33522 export TEST_TAR_FORMAT
33523 TAR_OPTIONS=\"-H gnu\"
33528 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33533 echo foo/file > foo/file
33534 echo bar/file > bar/file
33535 tar -cf foo.tar -C foo file -C ../bar file
33539 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
33543 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05c.at:28"
33547 TEST_TAR_FORMAT=gnu
33548 export TEST_TAR_FORMAT
33549 TAR_OPTIONS="-H gnu"
33554 test -z "`sort < /dev/null 2>&1`" || exit 77
33559 echo foo/file > foo/file
33560 echo bar/file > bar/file
33561 tar -cf foo.tar -C foo file -C ../bar file
33565 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
33569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33570 at_status=$? at_failed=false
33572 echo >>"$at_stderr"; $as_echo "A
33576 $at_diff - "$at_stderr" || at_failed=:
33577 echo >>"$at_stdout"; $as_echo "A
33595 $at_diff - "$at_stdout" || at_failed=:
33596 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05c.at:28"
33597 $at_failed && at_fn_log_failure
33604 $at_times_p && times >"$at_times_file"
33605 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33606 read at_status <"$at_status_file"
33609 at_fn_group_banner 153 'remfiles06a.at:25' \
33610 "remove-files with -C:rel,abs in -c/non-incr. mode" "" 24
33612 test -f $XFAILFILE && at_xfail=yes
33614 $as_echo "153. $at_setup_line: testing $at_desc ..."
33622 $as_echo "$at_srcdir/remfiles06a.at:28:
33625 TEST_TAR_FORMAT=gnu
33626 export TEST_TAR_FORMAT
33627 TAR_OPTIONS=\"-H gnu\"
33632 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33637 echo foo/file > foo/file
33638 echo bar/file > bar/file
33641 tar -cvf foo.tar --remove-files -C foo file -C \$DIR/bar file
33645 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06a.at:28"
33649 TEST_TAR_FORMAT=gnu
33650 export TEST_TAR_FORMAT
33651 TAR_OPTIONS="-H gnu"
33656 test -z "`sort < /dev/null 2>&1`" || exit 77
33661 echo foo/file > foo/file
33662 echo bar/file > bar/file
33665 tar -cvf foo.tar --remove-files -C foo file -C $DIR/bar file
33669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33670 at_status=$? at_failed=false
33672 echo >>"$at_stderr"; $as_echo "A
33675 $at_diff - "$at_stderr" || at_failed=:
33676 echo >>"$at_stdout"; $as_echo "A
33686 $at_diff - "$at_stdout" || at_failed=:
33687 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06a.at:28"
33688 $at_failed && at_fn_log_failure
33695 $at_times_p && times >"$at_times_file"
33696 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33697 read at_status <"$at_status_file"
33700 at_fn_group_banner 154 'remfiles06b.at:25' \
33701 "remove-files with -C:rel,abs in -c/incr. mode" " " 24
33703 test -f $XFAILFILE && at_xfail=yes
33705 $as_echo "154. $at_setup_line: testing $at_desc ..."
33713 $as_echo "$at_srcdir/remfiles06b.at:28:
33716 TEST_TAR_FORMAT=gnu
33717 export TEST_TAR_FORMAT
33718 TAR_OPTIONS=\"-H gnu\"
33723 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33728 echo foo/file > foo/file
33729 echo bar/file > bar/file
33732 tar -cvf foo.tar --incremental --remove-files -C foo file -C \$DIR/bar file
33736 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06b.at:28"
33740 TEST_TAR_FORMAT=gnu
33741 export TEST_TAR_FORMAT
33742 TAR_OPTIONS="-H gnu"
33747 test -z "`sort < /dev/null 2>&1`" || exit 77
33752 echo foo/file > foo/file
33753 echo bar/file > bar/file
33756 tar -cvf foo.tar --incremental --remove-files -C foo file -C $DIR/bar file
33760 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33761 at_status=$? at_failed=false
33763 echo >>"$at_stderr"; $as_echo "A
33766 $at_diff - "$at_stderr" || at_failed=:
33767 echo >>"$at_stdout"; $as_echo "A
33777 $at_diff - "$at_stdout" || at_failed=:
33778 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06b.at:28"
33779 $at_failed && at_fn_log_failure
33786 $at_times_p && times >"$at_times_file"
33787 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33788 read at_status <"$at_status_file"
33791 at_fn_group_banner 155 'remfiles06c.at:25' \
33792 "remove-files with -C:rel,abs in -r mode" " " 24
33794 test -f $XFAILFILE && at_xfail=yes
33796 $as_echo "155. $at_setup_line: testing $at_desc ..."
33804 $as_echo "$at_srcdir/remfiles06c.at:28:
33807 TEST_TAR_FORMAT=gnu
33808 export TEST_TAR_FORMAT
33809 TAR_OPTIONS=\"-H gnu\"
33814 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33819 echo foo/file > foo/file
33820 echo bar/file > bar/file
33822 tar -cf foo.tar -C foo file -C \$DIR/bar file
33826 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
33830 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06c.at:28"
33834 TEST_TAR_FORMAT=gnu
33835 export TEST_TAR_FORMAT
33836 TAR_OPTIONS="-H gnu"
33841 test -z "`sort < /dev/null 2>&1`" || exit 77
33846 echo foo/file > foo/file
33847 echo bar/file > bar/file
33849 tar -cf foo.tar -C foo file -C $DIR/bar file
33853 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
33857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33858 at_status=$? at_failed=false
33860 echo >>"$at_stderr"; $as_echo "A
33864 $at_diff - "$at_stderr" || at_failed=:
33865 echo >>"$at_stdout"; $as_echo "A
33883 $at_diff - "$at_stdout" || at_failed=:
33884 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06c.at:28"
33885 $at_failed && at_fn_log_failure
33892 $at_times_p && times >"$at_times_file"
33893 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33894 read at_status <"$at_status_file"
33897 at_fn_group_banner 156 'remfiles07a.at:25' \
33898 "remove-files with -C:rel,abs in -c/non-incr. mode" "" 24
33900 test -f $XFAILFILE && at_xfail=yes
33902 $as_echo "156. $at_setup_line: testing $at_desc ..."
33910 $as_echo "$at_srcdir/remfiles07a.at:28:
33913 TEST_TAR_FORMAT=gnu
33914 export TEST_TAR_FORMAT
33915 TAR_OPTIONS=\"-H gnu\"
33920 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33925 echo foo/file > foo/file
33926 echo bar/file > bar/file
33929 tar -cvf foo.tar --remove-files -C foo file -C \$DIR/bar file
33933 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07a.at:28"
33937 TEST_TAR_FORMAT=gnu
33938 export TEST_TAR_FORMAT
33939 TAR_OPTIONS="-H gnu"
33944 test -z "`sort < /dev/null 2>&1`" || exit 77
33949 echo foo/file > foo/file
33950 echo bar/file > bar/file
33953 tar -cvf foo.tar --remove-files -C foo file -C $DIR/bar file
33957 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33958 at_status=$? at_failed=false
33960 echo >>"$at_stderr"; $as_echo "A
33963 $at_diff - "$at_stderr" || at_failed=:
33964 echo >>"$at_stdout"; $as_echo "A
33974 $at_diff - "$at_stdout" || at_failed=:
33975 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07a.at:28"
33976 $at_failed && at_fn_log_failure
33983 $at_times_p && times >"$at_times_file"
33984 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33985 read at_status <"$at_status_file"
33988 at_fn_group_banner 157 'remfiles07b.at:25' \
33989 "remove-files with -C:rel,abs in -c/incr. mode" " " 24
33991 test -f $XFAILFILE && at_xfail=yes
33993 $as_echo "157. $at_setup_line: testing $at_desc ..."
34001 $as_echo "$at_srcdir/remfiles07b.at:28:
34004 TEST_TAR_FORMAT=gnu
34005 export TEST_TAR_FORMAT
34006 TAR_OPTIONS=\"-H gnu\"
34011 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34016 echo foo/file > foo/file
34017 echo bar/file > bar/file
34020 tar -cvf foo.tar --incremental --remove-files -C foo file -C \$DIR/bar file
34024 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07b.at:28"
34028 TEST_TAR_FORMAT=gnu
34029 export TEST_TAR_FORMAT
34030 TAR_OPTIONS="-H gnu"
34035 test -z "`sort < /dev/null 2>&1`" || exit 77
34040 echo foo/file > foo/file
34041 echo bar/file > bar/file
34044 tar -cvf foo.tar --incremental --remove-files -C foo file -C $DIR/bar file
34048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34049 at_status=$? at_failed=false
34051 echo >>"$at_stderr"; $as_echo "A
34054 $at_diff - "$at_stderr" || at_failed=:
34055 echo >>"$at_stdout"; $as_echo "A
34065 $at_diff - "$at_stdout" || at_failed=:
34066 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07b.at:28"
34067 $at_failed && at_fn_log_failure
34074 $at_times_p && times >"$at_times_file"
34075 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34076 read at_status <"$at_status_file"
34079 at_fn_group_banner 158 'remfiles07c.at:25' \
34080 "remove-files with -C:rel,abs in -r mode" " " 24
34082 test -f $XFAILFILE && at_xfail=yes
34084 $as_echo "158. $at_setup_line: testing $at_desc ..."
34092 $as_echo "$at_srcdir/remfiles07c.at:28:
34095 TEST_TAR_FORMAT=gnu
34096 export TEST_TAR_FORMAT
34097 TAR_OPTIONS=\"-H gnu\"
34102 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34107 echo foo/file > foo/file
34108 echo bar/file > bar/file
34110 tar -cf foo.tar -C foo file -C \$DIR/bar file
34114 tar -rvf foo.tar --remove-files -C foo file -C \$DIR/bar file
34118 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07c.at:28"
34122 TEST_TAR_FORMAT=gnu
34123 export TEST_TAR_FORMAT
34124 TAR_OPTIONS="-H gnu"
34129 test -z "`sort < /dev/null 2>&1`" || exit 77
34134 echo foo/file > foo/file
34135 echo bar/file > bar/file
34137 tar -cf foo.tar -C foo file -C $DIR/bar file
34141 tar -rvf foo.tar --remove-files -C foo file -C $DIR/bar file
34145 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34146 at_status=$? at_failed=false
34148 echo >>"$at_stderr"; $as_echo "A
34152 $at_diff - "$at_stderr" || at_failed=:
34153 echo >>"$at_stdout"; $as_echo "A
34171 $at_diff - "$at_stdout" || at_failed=:
34172 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07c.at:28"
34173 $at_failed && at_fn_log_failure
34180 $at_times_p && times >"$at_times_file"
34181 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34182 read at_status <"$at_status_file"
34185 at_fn_group_banner 159 'remfiles08a.at:25' \
34186 "remove-files with -C:abs,rel in -c/non-incr. mode" "" 24
34188 test -f $XFAILFILE && at_xfail=yes
34190 $as_echo "159. $at_setup_line: testing $at_desc ..."
34198 $as_echo "$at_srcdir/remfiles08a.at:28:
34201 TEST_TAR_FORMAT=gnu
34202 export TEST_TAR_FORMAT
34203 TAR_OPTIONS=\"-H gnu\"
34208 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34213 echo foo/file > foo/file
34214 echo bar/file > bar/file
34217 tar -cvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
34221 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles08a.at:28"
34225 TEST_TAR_FORMAT=gnu
34226 export TEST_TAR_FORMAT
34227 TAR_OPTIONS="-H gnu"
34232 test -z "`sort < /dev/null 2>&1`" || exit 77
34237 echo foo/file > foo/file
34238 echo bar/file > bar/file
34241 tar -cvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
34245 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34246 at_status=$? at_failed=false
34248 echo >>"$at_stderr"; $as_echo "A
34251 $at_diff - "$at_stderr" || at_failed=:
34252 echo >>"$at_stdout"; $as_echo "A
34262 $at_diff - "$at_stdout" || at_failed=:
34263 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08a.at:28"
34264 $at_failed && at_fn_log_failure
34271 $at_times_p && times >"$at_times_file"
34272 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34273 read at_status <"$at_status_file"
34276 at_fn_group_banner 160 'remfiles08b.at:25' \
34277 "remove-files with -C:abs,rel in -c/incr. mode" " " 24
34279 test -f $XFAILFILE && at_xfail=yes
34281 $as_echo "160. $at_setup_line: testing $at_desc ..."
34289 $as_echo "$at_srcdir/remfiles08b.at:28:
34292 TEST_TAR_FORMAT=gnu
34293 export TEST_TAR_FORMAT
34294 TAR_OPTIONS=\"-H gnu\"
34299 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34304 echo foo/file > foo/file
34305 echo bar/file > bar/file
34308 tar -cvf foo.tar --incremental --remove-files -C \$DIR/foo file -C ../bar file
34312 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles08b.at:28"
34316 TEST_TAR_FORMAT=gnu
34317 export TEST_TAR_FORMAT
34318 TAR_OPTIONS="-H gnu"
34323 test -z "`sort < /dev/null 2>&1`" || exit 77
34328 echo foo/file > foo/file
34329 echo bar/file > bar/file
34332 tar -cvf foo.tar --incremental --remove-files -C $DIR/foo file -C ../bar file
34336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34337 at_status=$? at_failed=false
34339 echo >>"$at_stderr"; $as_echo "A
34342 $at_diff - "$at_stderr" || at_failed=:
34343 echo >>"$at_stdout"; $as_echo "A
34353 $at_diff - "$at_stdout" || at_failed=:
34354 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08b.at:28"
34355 $at_failed && at_fn_log_failure
34362 $at_times_p && times >"$at_times_file"
34363 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34364 read at_status <"$at_status_file"
34367 at_fn_group_banner 161 'remfiles08c.at:25' \
34368 "remove-files with -C:abs,rel in -r mode" " " 24
34370 test -f $XFAILFILE && at_xfail=yes
34372 $as_echo "161. $at_setup_line: testing $at_desc ..."
34380 $as_echo "$at_srcdir/remfiles08c.at:28:
34383 TEST_TAR_FORMAT=gnu
34384 export TEST_TAR_FORMAT
34385 TAR_OPTIONS=\"-H gnu\"
34390 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34395 echo foo/file > foo/file
34396 echo bar/file > bar/file
34398 tar -cf foo.tar -C \$DIR/foo file -C ../bar file
34402 tar -rvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
34406 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles08c.at:28"
34410 TEST_TAR_FORMAT=gnu
34411 export TEST_TAR_FORMAT
34412 TAR_OPTIONS="-H gnu"
34417 test -z "`sort < /dev/null 2>&1`" || exit 77
34422 echo foo/file > foo/file
34423 echo bar/file > bar/file
34425 tar -cf foo.tar -C $DIR/foo file -C ../bar file
34429 tar -rvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
34433 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34434 at_status=$? at_failed=false
34436 echo >>"$at_stderr"; $as_echo "A
34440 $at_diff - "$at_stderr" || at_failed=:
34441 echo >>"$at_stdout"; $as_echo "A
34459 $at_diff - "$at_stdout" || at_failed=:
34460 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08c.at:28"
34461 $at_failed && at_fn_log_failure
34468 $at_times_p && times >"$at_times_file"
34469 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34470 read at_status <"$at_status_file"
34473 at_fn_group_banner 162 'remfiles09a.at:25' \
34474 "remove-files on full directory in -c/non-incr. mode" "" 24
34476 test -f $XFAILFILE && at_xfail=yes
34478 $as_echo "162. $at_setup_line: testing $at_desc ..."
34486 $as_echo "$at_srcdir/remfiles09a.at:28:
34489 TEST_TAR_FORMAT=gnu
34490 export TEST_TAR_FORMAT
34491 TAR_OPTIONS=\"-H gnu\"
34496 echo foo/file > foo/file
34498 tar -cvf foo.tar --remove-files foo
34502 at_fn_check_prepare_notrace 'an embedded newline' "remfiles09a.at:28"
34506 TEST_TAR_FORMAT=gnu
34507 export TEST_TAR_FORMAT
34508 TAR_OPTIONS="-H gnu"
34513 echo foo/file > foo/file
34515 tar -cvf foo.tar --remove-files foo
34519 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34520 at_status=$? at_failed=false
34522 echo >>"$at_stderr"; $as_echo "A
34525 $at_diff - "$at_stderr" || at_failed=:
34526 echo >>"$at_stdout"; $as_echo "A
34533 $at_diff - "$at_stdout" || at_failed=:
34534 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09a.at:28"
34535 $at_failed && at_fn_log_failure
34542 $at_times_p && times >"$at_times_file"
34543 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34544 read at_status <"$at_status_file"
34547 at_fn_group_banner 163 'remfiles09b.at:29' \
34548 "remove-files on full directory in -c/incr. mode" "" 24
34550 test -f $XFAILFILE && at_xfail=yes
34552 $as_echo "163. $at_setup_line: testing $at_desc ..."
34557 # we expect to fail in tar 1.27
34562 $as_echo "$at_srcdir/remfiles09b.at:34:
34565 TEST_TAR_FORMAT=gnu
34566 export TEST_TAR_FORMAT
34567 TAR_OPTIONS=\"-H gnu\"
34572 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34575 echo foo/file > foo/file
34577 tar -cvf foo.tar --incremental --remove-files foo
34582 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles09b.at:34"
34586 TEST_TAR_FORMAT=gnu
34587 export TEST_TAR_FORMAT
34588 TAR_OPTIONS="-H gnu"
34593 test -z "`sort < /dev/null 2>&1`" || exit 77
34596 echo foo/file > foo/file
34598 tar -cvf foo.tar --incremental --remove-files foo
34603 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34604 at_status=$? at_failed=false
34606 echo >>"$at_stderr"; $as_echo "A
34607 tar: foo: Directory is new
34610 $at_diff - "$at_stderr" || at_failed=:
34611 echo >>"$at_stdout"; $as_echo "A
34619 $at_diff - "$at_stdout" || at_failed=:
34620 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09b.at:34"
34621 $at_failed && at_fn_log_failure
34628 $at_times_p && times >"$at_times_file"
34629 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34630 read at_status <"$at_status_file"
34633 at_fn_group_banner 164 'remfiles09c.at:25' \
34634 "remove-files on full directory in -r mode" " " 24
34636 test -f $XFAILFILE && at_xfail=yes
34638 $as_echo "164. $at_setup_line: testing $at_desc ..."
34646 $as_echo "$at_srcdir/remfiles09c.at:28:
34649 TEST_TAR_FORMAT=gnu
34650 export TEST_TAR_FORMAT
34651 TAR_OPTIONS=\"-H gnu\"
34656 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34659 echo foo/file > foo/file
34660 tar -cf foo.tar foo
34664 tar -rvf foo.tar --remove-files foo
34668 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles09c.at:28"
34672 TEST_TAR_FORMAT=gnu
34673 export TEST_TAR_FORMAT
34674 TAR_OPTIONS="-H gnu"
34679 test -z "`sort < /dev/null 2>&1`" || exit 77
34682 echo foo/file > foo/file
34683 tar -cf foo.tar foo
34687 tar -rvf foo.tar --remove-files foo
34691 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34692 at_status=$? at_failed=false
34694 echo >>"$at_stderr"; $as_echo "A
34698 $at_diff - "$at_stderr" || at_failed=:
34699 echo >>"$at_stdout"; $as_echo "A
34711 $at_diff - "$at_stdout" || at_failed=:
34712 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09c.at:28"
34713 $at_failed && at_fn_log_failure
34720 $at_times_p && times >"$at_times_file"
34721 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34722 read at_status <"$at_status_file"
34725 at_fn_group_banner 165 'xattr01.at:25' \
34726 "xattrs: basic functionality" " " 25
34728 test -f $XFAILFILE && at_xfail=yes
34730 $as_echo "165. $at_setup_line: testing $at_desc ..."
34738 $as_echo "$at_srcdir/xattr01.at:28:
34742 export TEST_TAR_FORMAT
34743 TAR_OPTIONS=\"-H v7\"
34749 file=\$(TMPDIR=. mktemp fiXXXXXX)
34751 setfattr -n user.test -v test \$file &> /dev/null
34752 if test \"\$?\" != 0; then
34757 getfattr \$file &> /dev/null
34758 if test \"\$?\" != 0; then
34763 file=\$(TMPDIR=. mktemp fiXXXXXX)
34764 setfattr -n user.test -v ahoj \$file
34765 # check whether tar fails to store xattrs
34766 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
34767 if test \"\$err\" != \"0\"; then
34772 genfile --file dir/file
34774 setfattr -n user.test -v OurDirValue dir
34775 setfattr -n user.test -v OurFileValue dir/file
34777 tar --xattrs -cf archive.tar dir
34780 tar --xattrs -xf archive.tar
34782 getfattr -h -d dir | grep -v -e '^#' -e ^\$
34783 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
34785 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
34790 export TEST_TAR_FORMAT
34791 TAR_OPTIONS="-H v7"
34797 file=$(TMPDIR=. mktemp fiXXXXXX)
34799 setfattr -n user.test -v test $file &> /dev/null
34800 if test "$?" != 0; then
34805 getfattr $file &> /dev/null
34806 if test "$?" != 0; then
34811 file=$(TMPDIR=. mktemp fiXXXXXX)
34812 setfattr -n user.test -v ahoj $file
34813 # check whether tar fails to store xattrs
34814 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
34815 if test "$err" != "0"; then
34820 genfile --file dir/file
34822 setfattr -n user.test -v OurDirValue dir
34823 setfattr -n user.test -v OurFileValue dir/file
34825 tar --xattrs -cf archive.tar dir
34828 tar --xattrs -xf archive.tar
34830 getfattr -h -d dir | grep -v -e '^#' -e ^$
34831 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
34833 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34834 at_status=$? at_failed=false
34836 at_fn_diff_devnull "$at_stderr" || at_failed=:
34837 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
34838 user.test=\"OurFileValue\"
34840 $at_diff - "$at_stdout" || at_failed=:
34841 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
34842 $at_failed && at_fn_log_failure
34846 $as_echo "$at_srcdir/xattr01.at:28:
34849 TEST_TAR_FORMAT=oldgnu
34850 export TEST_TAR_FORMAT
34851 TAR_OPTIONS=\"-H oldgnu\"
34857 file=\$(TMPDIR=. mktemp fiXXXXXX)
34859 setfattr -n user.test -v test \$file &> /dev/null
34860 if test \"\$?\" != 0; then
34865 getfattr \$file &> /dev/null
34866 if test \"\$?\" != 0; then
34871 file=\$(TMPDIR=. mktemp fiXXXXXX)
34872 setfattr -n user.test -v ahoj \$file
34873 # check whether tar fails to store xattrs
34874 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
34875 if test \"\$err\" != \"0\"; then
34880 genfile --file dir/file
34882 setfattr -n user.test -v OurDirValue dir
34883 setfattr -n user.test -v OurFileValue dir/file
34885 tar --xattrs -cf archive.tar dir
34888 tar --xattrs -xf archive.tar
34890 getfattr -h -d dir | grep -v -e '^#' -e ^\$
34891 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
34893 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
34897 TEST_TAR_FORMAT=oldgnu
34898 export TEST_TAR_FORMAT
34899 TAR_OPTIONS="-H oldgnu"
34905 file=$(TMPDIR=. mktemp fiXXXXXX)
34907 setfattr -n user.test -v test $file &> /dev/null
34908 if test "$?" != 0; then
34913 getfattr $file &> /dev/null
34914 if test "$?" != 0; then
34919 file=$(TMPDIR=. mktemp fiXXXXXX)
34920 setfattr -n user.test -v ahoj $file
34921 # check whether tar fails to store xattrs
34922 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
34923 if test "$err" != "0"; then
34928 genfile --file dir/file
34930 setfattr -n user.test -v OurDirValue dir
34931 setfattr -n user.test -v OurFileValue dir/file
34933 tar --xattrs -cf archive.tar dir
34936 tar --xattrs -xf archive.tar
34938 getfattr -h -d dir | grep -v -e '^#' -e ^$
34939 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
34941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34942 at_status=$? at_failed=false
34944 at_fn_diff_devnull "$at_stderr" || at_failed=:
34945 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
34946 user.test=\"OurFileValue\"
34948 $at_diff - "$at_stdout" || at_failed=:
34949 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
34950 $at_failed && at_fn_log_failure
34954 $as_echo "$at_srcdir/xattr01.at:28:
34957 TEST_TAR_FORMAT=ustar
34958 export TEST_TAR_FORMAT
34959 TAR_OPTIONS=\"-H ustar\"
34965 file=\$(TMPDIR=. mktemp fiXXXXXX)
34967 setfattr -n user.test -v test \$file &> /dev/null
34968 if test \"\$?\" != 0; then
34973 getfattr \$file &> /dev/null
34974 if test \"\$?\" != 0; then
34979 file=\$(TMPDIR=. mktemp fiXXXXXX)
34980 setfattr -n user.test -v ahoj \$file
34981 # check whether tar fails to store xattrs
34982 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
34983 if test \"\$err\" != \"0\"; then
34988 genfile --file dir/file
34990 setfattr -n user.test -v OurDirValue dir
34991 setfattr -n user.test -v OurFileValue dir/file
34993 tar --xattrs -cf archive.tar dir
34996 tar --xattrs -xf archive.tar
34998 getfattr -h -d dir | grep -v -e '^#' -e ^\$
34999 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35001 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35005 TEST_TAR_FORMAT=ustar
35006 export TEST_TAR_FORMAT
35007 TAR_OPTIONS="-H ustar"
35013 file=$(TMPDIR=. mktemp fiXXXXXX)
35015 setfattr -n user.test -v test $file &> /dev/null
35016 if test "$?" != 0; then
35021 getfattr $file &> /dev/null
35022 if test "$?" != 0; then
35027 file=$(TMPDIR=. mktemp fiXXXXXX)
35028 setfattr -n user.test -v ahoj $file
35029 # check whether tar fails to store xattrs
35030 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35031 if test "$err" != "0"; then
35036 genfile --file dir/file
35038 setfattr -n user.test -v OurDirValue dir
35039 setfattr -n user.test -v OurFileValue dir/file
35041 tar --xattrs -cf archive.tar dir
35044 tar --xattrs -xf archive.tar
35046 getfattr -h -d dir | grep -v -e '^#' -e ^$
35047 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35049 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35050 at_status=$? at_failed=false
35052 at_fn_diff_devnull "$at_stderr" || at_failed=:
35053 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35054 user.test=\"OurFileValue\"
35056 $at_diff - "$at_stdout" || at_failed=:
35057 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35058 $at_failed && at_fn_log_failure
35062 $as_echo "$at_srcdir/xattr01.at:28:
35065 TEST_TAR_FORMAT=posix
35066 export TEST_TAR_FORMAT
35067 TAR_OPTIONS=\"-H posix\"
35073 file=\$(TMPDIR=. mktemp fiXXXXXX)
35075 setfattr -n user.test -v test \$file &> /dev/null
35076 if test \"\$?\" != 0; then
35081 getfattr \$file &> /dev/null
35082 if test \"\$?\" != 0; then
35087 file=\$(TMPDIR=. mktemp fiXXXXXX)
35088 setfattr -n user.test -v ahoj \$file
35089 # check whether tar fails to store xattrs
35090 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35091 if test \"\$err\" != \"0\"; then
35096 genfile --file dir/file
35098 setfattr -n user.test -v OurDirValue dir
35099 setfattr -n user.test -v OurFileValue dir/file
35101 tar --xattrs -cf archive.tar dir
35104 tar --xattrs -xf archive.tar
35106 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35107 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35109 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35113 TEST_TAR_FORMAT=posix
35114 export TEST_TAR_FORMAT
35115 TAR_OPTIONS="-H posix"
35121 file=$(TMPDIR=. mktemp fiXXXXXX)
35123 setfattr -n user.test -v test $file &> /dev/null
35124 if test "$?" != 0; then
35129 getfattr $file &> /dev/null
35130 if test "$?" != 0; then
35135 file=$(TMPDIR=. mktemp fiXXXXXX)
35136 setfattr -n user.test -v ahoj $file
35137 # check whether tar fails to store xattrs
35138 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35139 if test "$err" != "0"; then
35144 genfile --file dir/file
35146 setfattr -n user.test -v OurDirValue dir
35147 setfattr -n user.test -v OurFileValue dir/file
35149 tar --xattrs -cf archive.tar dir
35152 tar --xattrs -xf archive.tar
35154 getfattr -h -d dir | grep -v -e '^#' -e ^$
35155 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35157 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35158 at_status=$? at_failed=false
35160 at_fn_diff_devnull "$at_stderr" || at_failed=:
35161 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35162 user.test=\"OurFileValue\"
35164 $at_diff - "$at_stdout" || at_failed=:
35165 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35166 $at_failed && at_fn_log_failure
35170 $as_echo "$at_srcdir/xattr01.at:28:
35173 TEST_TAR_FORMAT=gnu
35174 export TEST_TAR_FORMAT
35175 TAR_OPTIONS=\"-H gnu\"
35181 file=\$(TMPDIR=. mktemp fiXXXXXX)
35183 setfattr -n user.test -v test \$file &> /dev/null
35184 if test \"\$?\" != 0; then
35189 getfattr \$file &> /dev/null
35190 if test \"\$?\" != 0; then
35195 file=\$(TMPDIR=. mktemp fiXXXXXX)
35196 setfattr -n user.test -v ahoj \$file
35197 # check whether tar fails to store xattrs
35198 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35199 if test \"\$err\" != \"0\"; then
35204 genfile --file dir/file
35206 setfattr -n user.test -v OurDirValue dir
35207 setfattr -n user.test -v OurFileValue dir/file
35209 tar --xattrs -cf archive.tar dir
35212 tar --xattrs -xf archive.tar
35214 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35215 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35217 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35221 TEST_TAR_FORMAT=gnu
35222 export TEST_TAR_FORMAT
35223 TAR_OPTIONS="-H gnu"
35229 file=$(TMPDIR=. mktemp fiXXXXXX)
35231 setfattr -n user.test -v test $file &> /dev/null
35232 if test "$?" != 0; then
35237 getfattr $file &> /dev/null
35238 if test "$?" != 0; then
35243 file=$(TMPDIR=. mktemp fiXXXXXX)
35244 setfattr -n user.test -v ahoj $file
35245 # check whether tar fails to store xattrs
35246 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35247 if test "$err" != "0"; then
35252 genfile --file dir/file
35254 setfattr -n user.test -v OurDirValue dir
35255 setfattr -n user.test -v OurFileValue dir/file
35257 tar --xattrs -cf archive.tar dir
35260 tar --xattrs -xf archive.tar
35262 getfattr -h -d dir | grep -v -e '^#' -e ^$
35263 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35265 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35266 at_status=$? at_failed=false
35268 at_fn_diff_devnull "$at_stderr" || at_failed=:
35269 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35270 user.test=\"OurFileValue\"
35272 $at_diff - "$at_stdout" || at_failed=:
35273 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35274 $at_failed && at_fn_log_failure
35281 $at_times_p && times >"$at_times_file"
35282 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35283 read at_status <"$at_status_file"
35286 at_fn_group_banner 166 'xattr02.at:25' \
35287 "xattrs: change directory with -C option" " " 25
35289 test -f $XFAILFILE && at_xfail=yes
35291 $as_echo "166. $at_setup_line: testing $at_desc ..."
35299 $as_echo "$at_srcdir/xattr02.at:28:
35303 export TEST_TAR_FORMAT
35304 TAR_OPTIONS=\"-H v7\"
35310 file=\$(TMPDIR=. mktemp fiXXXXXX)
35312 setfattr -n user.test -v test \$file &> /dev/null
35313 if test \"\$?\" != 0; then
35318 getfattr \$file &> /dev/null
35319 if test \"\$?\" != 0; then
35324 file=\$(TMPDIR=. mktemp fiXXXXXX)
35325 setfattr -n user.test -v ahoj \$file
35326 # check whether tar fails to store xattrs
35327 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35328 if test \"\$err\" != \"0\"; then
35335 mkdir dir/subdir/subsubdir
35336 genfile --file dir/file1
35337 genfile --file dir/subdir/file2
35339 setfattr -n user.test -v OurFile1Value dir/file1
35340 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35341 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35343 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35347 tar --xattrs -xf archive.tar
35349 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35350 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35351 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35353 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35358 export TEST_TAR_FORMAT
35359 TAR_OPTIONS="-H v7"
35365 file=$(TMPDIR=. mktemp fiXXXXXX)
35367 setfattr -n user.test -v test $file &> /dev/null
35368 if test "$?" != 0; then
35373 getfattr $file &> /dev/null
35374 if test "$?" != 0; then
35379 file=$(TMPDIR=. mktemp fiXXXXXX)
35380 setfattr -n user.test -v ahoj $file
35381 # check whether tar fails to store xattrs
35382 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35383 if test "$err" != "0"; then
35390 mkdir dir/subdir/subsubdir
35391 genfile --file dir/file1
35392 genfile --file dir/subdir/file2
35394 setfattr -n user.test -v OurFile1Value dir/file1
35395 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35396 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35398 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35402 tar --xattrs -xf archive.tar
35404 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35405 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35406 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35408 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35409 at_status=$? at_failed=false
35411 at_fn_diff_devnull "$at_stderr" || at_failed=:
35412 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35413 user.test=\"OurFile2Value\"
35414 user.test=\"OurDirValue\"
35416 $at_diff - "$at_stdout" || at_failed=:
35417 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35418 $at_failed && at_fn_log_failure
35422 $as_echo "$at_srcdir/xattr02.at:28:
35425 TEST_TAR_FORMAT=oldgnu
35426 export TEST_TAR_FORMAT
35427 TAR_OPTIONS=\"-H oldgnu\"
35433 file=\$(TMPDIR=. mktemp fiXXXXXX)
35435 setfattr -n user.test -v test \$file &> /dev/null
35436 if test \"\$?\" != 0; then
35441 getfattr \$file &> /dev/null
35442 if test \"\$?\" != 0; then
35447 file=\$(TMPDIR=. mktemp fiXXXXXX)
35448 setfattr -n user.test -v ahoj \$file
35449 # check whether tar fails to store xattrs
35450 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35451 if test \"\$err\" != \"0\"; then
35458 mkdir dir/subdir/subsubdir
35459 genfile --file dir/file1
35460 genfile --file dir/subdir/file2
35462 setfattr -n user.test -v OurFile1Value dir/file1
35463 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35464 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35466 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35470 tar --xattrs -xf archive.tar
35472 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35473 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35474 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35476 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35480 TEST_TAR_FORMAT=oldgnu
35481 export TEST_TAR_FORMAT
35482 TAR_OPTIONS="-H oldgnu"
35488 file=$(TMPDIR=. mktemp fiXXXXXX)
35490 setfattr -n user.test -v test $file &> /dev/null
35491 if test "$?" != 0; then
35496 getfattr $file &> /dev/null
35497 if test "$?" != 0; then
35502 file=$(TMPDIR=. mktemp fiXXXXXX)
35503 setfattr -n user.test -v ahoj $file
35504 # check whether tar fails to store xattrs
35505 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35506 if test "$err" != "0"; then
35513 mkdir dir/subdir/subsubdir
35514 genfile --file dir/file1
35515 genfile --file dir/subdir/file2
35517 setfattr -n user.test -v OurFile1Value dir/file1
35518 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35519 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35521 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35525 tar --xattrs -xf archive.tar
35527 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35528 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35529 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35531 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35532 at_status=$? at_failed=false
35534 at_fn_diff_devnull "$at_stderr" || at_failed=:
35535 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35536 user.test=\"OurFile2Value\"
35537 user.test=\"OurDirValue\"
35539 $at_diff - "$at_stdout" || at_failed=:
35540 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35541 $at_failed && at_fn_log_failure
35545 $as_echo "$at_srcdir/xattr02.at:28:
35548 TEST_TAR_FORMAT=ustar
35549 export TEST_TAR_FORMAT
35550 TAR_OPTIONS=\"-H ustar\"
35556 file=\$(TMPDIR=. mktemp fiXXXXXX)
35558 setfattr -n user.test -v test \$file &> /dev/null
35559 if test \"\$?\" != 0; then
35564 getfattr \$file &> /dev/null
35565 if test \"\$?\" != 0; then
35570 file=\$(TMPDIR=. mktemp fiXXXXXX)
35571 setfattr -n user.test -v ahoj \$file
35572 # check whether tar fails to store xattrs
35573 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35574 if test \"\$err\" != \"0\"; then
35581 mkdir dir/subdir/subsubdir
35582 genfile --file dir/file1
35583 genfile --file dir/subdir/file2
35585 setfattr -n user.test -v OurFile1Value dir/file1
35586 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35587 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35589 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35593 tar --xattrs -xf archive.tar
35595 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35596 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35597 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35599 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35603 TEST_TAR_FORMAT=ustar
35604 export TEST_TAR_FORMAT
35605 TAR_OPTIONS="-H ustar"
35611 file=$(TMPDIR=. mktemp fiXXXXXX)
35613 setfattr -n user.test -v test $file &> /dev/null
35614 if test "$?" != 0; then
35619 getfattr $file &> /dev/null
35620 if test "$?" != 0; then
35625 file=$(TMPDIR=. mktemp fiXXXXXX)
35626 setfattr -n user.test -v ahoj $file
35627 # check whether tar fails to store xattrs
35628 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35629 if test "$err" != "0"; then
35636 mkdir dir/subdir/subsubdir
35637 genfile --file dir/file1
35638 genfile --file dir/subdir/file2
35640 setfattr -n user.test -v OurFile1Value dir/file1
35641 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35642 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35644 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35648 tar --xattrs -xf archive.tar
35650 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35651 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35652 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35654 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35655 at_status=$? at_failed=false
35657 at_fn_diff_devnull "$at_stderr" || at_failed=:
35658 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35659 user.test=\"OurFile2Value\"
35660 user.test=\"OurDirValue\"
35662 $at_diff - "$at_stdout" || at_failed=:
35663 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35664 $at_failed && at_fn_log_failure
35668 $as_echo "$at_srcdir/xattr02.at:28:
35671 TEST_TAR_FORMAT=posix
35672 export TEST_TAR_FORMAT
35673 TAR_OPTIONS=\"-H posix\"
35679 file=\$(TMPDIR=. mktemp fiXXXXXX)
35681 setfattr -n user.test -v test \$file &> /dev/null
35682 if test \"\$?\" != 0; then
35687 getfattr \$file &> /dev/null
35688 if test \"\$?\" != 0; then
35693 file=\$(TMPDIR=. mktemp fiXXXXXX)
35694 setfattr -n user.test -v ahoj \$file
35695 # check whether tar fails to store xattrs
35696 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35697 if test \"\$err\" != \"0\"; then
35704 mkdir dir/subdir/subsubdir
35705 genfile --file dir/file1
35706 genfile --file dir/subdir/file2
35708 setfattr -n user.test -v OurFile1Value dir/file1
35709 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35710 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35712 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35716 tar --xattrs -xf archive.tar
35718 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35719 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35720 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35722 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35726 TEST_TAR_FORMAT=posix
35727 export TEST_TAR_FORMAT
35728 TAR_OPTIONS="-H posix"
35734 file=$(TMPDIR=. mktemp fiXXXXXX)
35736 setfattr -n user.test -v test $file &> /dev/null
35737 if test "$?" != 0; then
35742 getfattr $file &> /dev/null
35743 if test "$?" != 0; then
35748 file=$(TMPDIR=. mktemp fiXXXXXX)
35749 setfattr -n user.test -v ahoj $file
35750 # check whether tar fails to store xattrs
35751 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35752 if test "$err" != "0"; then
35759 mkdir dir/subdir/subsubdir
35760 genfile --file dir/file1
35761 genfile --file dir/subdir/file2
35763 setfattr -n user.test -v OurFile1Value dir/file1
35764 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35765 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35767 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35771 tar --xattrs -xf archive.tar
35773 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35774 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35775 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35778 at_status=$? at_failed=false
35780 at_fn_diff_devnull "$at_stderr" || at_failed=:
35781 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35782 user.test=\"OurFile2Value\"
35783 user.test=\"OurDirValue\"
35785 $at_diff - "$at_stdout" || at_failed=:
35786 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35787 $at_failed && at_fn_log_failure
35791 $as_echo "$at_srcdir/xattr02.at:28:
35794 TEST_TAR_FORMAT=gnu
35795 export TEST_TAR_FORMAT
35796 TAR_OPTIONS=\"-H gnu\"
35802 file=\$(TMPDIR=. mktemp fiXXXXXX)
35804 setfattr -n user.test -v test \$file &> /dev/null
35805 if test \"\$?\" != 0; then
35810 getfattr \$file &> /dev/null
35811 if test \"\$?\" != 0; then
35816 file=\$(TMPDIR=. mktemp fiXXXXXX)
35817 setfattr -n user.test -v ahoj \$file
35818 # check whether tar fails to store xattrs
35819 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35820 if test \"\$err\" != \"0\"; then
35827 mkdir dir/subdir/subsubdir
35828 genfile --file dir/file1
35829 genfile --file dir/subdir/file2
35831 setfattr -n user.test -v OurFile1Value dir/file1
35832 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35833 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35835 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35839 tar --xattrs -xf archive.tar
35841 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35842 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35843 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35845 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35849 TEST_TAR_FORMAT=gnu
35850 export TEST_TAR_FORMAT
35851 TAR_OPTIONS="-H gnu"
35857 file=$(TMPDIR=. mktemp fiXXXXXX)
35859 setfattr -n user.test -v test $file &> /dev/null
35860 if test "$?" != 0; then
35865 getfattr $file &> /dev/null
35866 if test "$?" != 0; then
35871 file=$(TMPDIR=. mktemp fiXXXXXX)
35872 setfattr -n user.test -v ahoj $file
35873 # check whether tar fails to store xattrs
35874 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35875 if test "$err" != "0"; then
35882 mkdir dir/subdir/subsubdir
35883 genfile --file dir/file1
35884 genfile --file dir/subdir/file2
35886 setfattr -n user.test -v OurFile1Value dir/file1
35887 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35888 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35890 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35894 tar --xattrs -xf archive.tar
35896 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35897 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35898 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35901 at_status=$? at_failed=false
35903 at_fn_diff_devnull "$at_stderr" || at_failed=:
35904 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35905 user.test=\"OurFile2Value\"
35906 user.test=\"OurDirValue\"
35908 $at_diff - "$at_stdout" || at_failed=:
35909 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35910 $at_failed && at_fn_log_failure
35917 $at_times_p && times >"$at_times_file"
35918 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35919 read at_status <"$at_status_file"
35922 at_fn_group_banner 167 'xattr03.at:25' \
35923 "xattrs: trusted.* attributes" " " 25
35925 test -f $XFAILFILE && at_xfail=yes
35927 $as_echo "167. $at_setup_line: testing $at_desc ..."
35935 $as_echo "$at_srcdir/xattr03.at:28:
35939 export TEST_TAR_FORMAT
35940 TAR_OPTIONS=\"-H v7\"
35945 echo \"test\" > \$\$
35947 cat \$\$ > /dev/null 2>&1
35950 test \$result -eq 0 || exit 77
35954 file=\$(TMPDIR=. mktemp fiXXXXXX)
35956 setfattr -n user.test -v test \$file &> /dev/null
35957 if test \"\$?\" != 0; then
35962 getfattr \$file &> /dev/null
35963 if test \"\$?\" != 0; then
35968 file=\$(TMPDIR=. mktemp fiXXXXXX)
35969 setfattr -n user.test -v ahoj \$file
35970 # check whether tar fails to store xattrs
35971 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35972 if test \"\$err\" != \"0\"; then
35979 mkdir dir/subdir/subsubdir
35980 genfile --file dir/file1
35981 genfile --file dir/subdir/file2
35983 setfattr -n trusted.test -v OurFile1Value dir/file1
35984 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
35985 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
35987 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35991 tar --xattrs --xattrs-include=trusted* -xf archive.tar
35993 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
35994 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
35995 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
35997 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36002 export TEST_TAR_FORMAT
36003 TAR_OPTIONS="-H v7"
36010 cat $$ > /dev/null 2>&1
36013 test $result -eq 0 || exit 77
36017 file=$(TMPDIR=. mktemp fiXXXXXX)
36019 setfattr -n user.test -v test $file &> /dev/null
36020 if test "$?" != 0; then
36025 getfattr $file &> /dev/null
36026 if test "$?" != 0; then
36031 file=$(TMPDIR=. mktemp fiXXXXXX)
36032 setfattr -n user.test -v ahoj $file
36033 # check whether tar fails to store xattrs
36034 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36035 if test "$err" != "0"; then
36042 mkdir dir/subdir/subsubdir
36043 genfile --file dir/file1
36044 genfile --file dir/subdir/file2
36046 setfattr -n trusted.test -v OurFile1Value dir/file1
36047 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36048 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36050 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36054 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36056 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36057 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36058 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36060 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36061 at_status=$? at_failed=false
36063 at_fn_diff_devnull "$at_stderr" || at_failed=:
36064 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36065 trusted.test=\"OurFile2Value\"
36066 trusted.test=\"OurDirValue\"
36068 $at_diff - "$at_stdout" || at_failed=:
36069 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36070 $at_failed && at_fn_log_failure
36074 $as_echo "$at_srcdir/xattr03.at:28:
36077 TEST_TAR_FORMAT=oldgnu
36078 export TEST_TAR_FORMAT
36079 TAR_OPTIONS=\"-H oldgnu\"
36084 echo \"test\" > \$\$
36086 cat \$\$ > /dev/null 2>&1
36089 test \$result -eq 0 || exit 77
36093 file=\$(TMPDIR=. mktemp fiXXXXXX)
36095 setfattr -n user.test -v test \$file &> /dev/null
36096 if test \"\$?\" != 0; then
36101 getfattr \$file &> /dev/null
36102 if test \"\$?\" != 0; then
36107 file=\$(TMPDIR=. mktemp fiXXXXXX)
36108 setfattr -n user.test -v ahoj \$file
36109 # check whether tar fails to store xattrs
36110 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36111 if test \"\$err\" != \"0\"; then
36118 mkdir dir/subdir/subsubdir
36119 genfile --file dir/file1
36120 genfile --file dir/subdir/file2
36122 setfattr -n trusted.test -v OurFile1Value dir/file1
36123 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36124 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36126 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36130 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36132 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36133 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36134 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36136 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36140 TEST_TAR_FORMAT=oldgnu
36141 export TEST_TAR_FORMAT
36142 TAR_OPTIONS="-H oldgnu"
36149 cat $$ > /dev/null 2>&1
36152 test $result -eq 0 || exit 77
36156 file=$(TMPDIR=. mktemp fiXXXXXX)
36158 setfattr -n user.test -v test $file &> /dev/null
36159 if test "$?" != 0; then
36164 getfattr $file &> /dev/null
36165 if test "$?" != 0; then
36170 file=$(TMPDIR=. mktemp fiXXXXXX)
36171 setfattr -n user.test -v ahoj $file
36172 # check whether tar fails to store xattrs
36173 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36174 if test "$err" != "0"; then
36181 mkdir dir/subdir/subsubdir
36182 genfile --file dir/file1
36183 genfile --file dir/subdir/file2
36185 setfattr -n trusted.test -v OurFile1Value dir/file1
36186 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36187 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36189 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36193 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36195 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36196 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36197 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36199 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36200 at_status=$? at_failed=false
36202 at_fn_diff_devnull "$at_stderr" || at_failed=:
36203 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36204 trusted.test=\"OurFile2Value\"
36205 trusted.test=\"OurDirValue\"
36207 $at_diff - "$at_stdout" || at_failed=:
36208 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36209 $at_failed && at_fn_log_failure
36213 $as_echo "$at_srcdir/xattr03.at:28:
36216 TEST_TAR_FORMAT=ustar
36217 export TEST_TAR_FORMAT
36218 TAR_OPTIONS=\"-H ustar\"
36223 echo \"test\" > \$\$
36225 cat \$\$ > /dev/null 2>&1
36228 test \$result -eq 0 || exit 77
36232 file=\$(TMPDIR=. mktemp fiXXXXXX)
36234 setfattr -n user.test -v test \$file &> /dev/null
36235 if test \"\$?\" != 0; then
36240 getfattr \$file &> /dev/null
36241 if test \"\$?\" != 0; then
36246 file=\$(TMPDIR=. mktemp fiXXXXXX)
36247 setfattr -n user.test -v ahoj \$file
36248 # check whether tar fails to store xattrs
36249 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36250 if test \"\$err\" != \"0\"; then
36257 mkdir dir/subdir/subsubdir
36258 genfile --file dir/file1
36259 genfile --file dir/subdir/file2
36261 setfattr -n trusted.test -v OurFile1Value dir/file1
36262 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36263 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36265 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36269 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36271 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36272 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36273 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36275 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36279 TEST_TAR_FORMAT=ustar
36280 export TEST_TAR_FORMAT
36281 TAR_OPTIONS="-H ustar"
36288 cat $$ > /dev/null 2>&1
36291 test $result -eq 0 || exit 77
36295 file=$(TMPDIR=. mktemp fiXXXXXX)
36297 setfattr -n user.test -v test $file &> /dev/null
36298 if test "$?" != 0; then
36303 getfattr $file &> /dev/null
36304 if test "$?" != 0; then
36309 file=$(TMPDIR=. mktemp fiXXXXXX)
36310 setfattr -n user.test -v ahoj $file
36311 # check whether tar fails to store xattrs
36312 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36313 if test "$err" != "0"; then
36320 mkdir dir/subdir/subsubdir
36321 genfile --file dir/file1
36322 genfile --file dir/subdir/file2
36324 setfattr -n trusted.test -v OurFile1Value dir/file1
36325 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36326 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36328 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36332 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36334 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36335 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36336 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36338 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36339 at_status=$? at_failed=false
36341 at_fn_diff_devnull "$at_stderr" || at_failed=:
36342 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36343 trusted.test=\"OurFile2Value\"
36344 trusted.test=\"OurDirValue\"
36346 $at_diff - "$at_stdout" || at_failed=:
36347 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36348 $at_failed && at_fn_log_failure
36352 $as_echo "$at_srcdir/xattr03.at:28:
36355 TEST_TAR_FORMAT=posix
36356 export TEST_TAR_FORMAT
36357 TAR_OPTIONS=\"-H posix\"
36362 echo \"test\" > \$\$
36364 cat \$\$ > /dev/null 2>&1
36367 test \$result -eq 0 || exit 77
36371 file=\$(TMPDIR=. mktemp fiXXXXXX)
36373 setfattr -n user.test -v test \$file &> /dev/null
36374 if test \"\$?\" != 0; then
36379 getfattr \$file &> /dev/null
36380 if test \"\$?\" != 0; then
36385 file=\$(TMPDIR=. mktemp fiXXXXXX)
36386 setfattr -n user.test -v ahoj \$file
36387 # check whether tar fails to store xattrs
36388 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36389 if test \"\$err\" != \"0\"; then
36396 mkdir dir/subdir/subsubdir
36397 genfile --file dir/file1
36398 genfile --file dir/subdir/file2
36400 setfattr -n trusted.test -v OurFile1Value dir/file1
36401 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36402 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36404 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36408 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36410 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36411 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36412 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36414 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36418 TEST_TAR_FORMAT=posix
36419 export TEST_TAR_FORMAT
36420 TAR_OPTIONS="-H posix"
36427 cat $$ > /dev/null 2>&1
36430 test $result -eq 0 || exit 77
36434 file=$(TMPDIR=. mktemp fiXXXXXX)
36436 setfattr -n user.test -v test $file &> /dev/null
36437 if test "$?" != 0; then
36442 getfattr $file &> /dev/null
36443 if test "$?" != 0; then
36448 file=$(TMPDIR=. mktemp fiXXXXXX)
36449 setfattr -n user.test -v ahoj $file
36450 # check whether tar fails to store xattrs
36451 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36452 if test "$err" != "0"; then
36459 mkdir dir/subdir/subsubdir
36460 genfile --file dir/file1
36461 genfile --file dir/subdir/file2
36463 setfattr -n trusted.test -v OurFile1Value dir/file1
36464 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36465 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36467 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36471 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36473 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36474 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36475 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36477 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36478 at_status=$? at_failed=false
36480 at_fn_diff_devnull "$at_stderr" || at_failed=:
36481 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36482 trusted.test=\"OurFile2Value\"
36483 trusted.test=\"OurDirValue\"
36485 $at_diff - "$at_stdout" || at_failed=:
36486 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36487 $at_failed && at_fn_log_failure
36491 $as_echo "$at_srcdir/xattr03.at:28:
36494 TEST_TAR_FORMAT=gnu
36495 export TEST_TAR_FORMAT
36496 TAR_OPTIONS=\"-H gnu\"
36501 echo \"test\" > \$\$
36503 cat \$\$ > /dev/null 2>&1
36506 test \$result -eq 0 || exit 77
36510 file=\$(TMPDIR=. mktemp fiXXXXXX)
36512 setfattr -n user.test -v test \$file &> /dev/null
36513 if test \"\$?\" != 0; then
36518 getfattr \$file &> /dev/null
36519 if test \"\$?\" != 0; then
36524 file=\$(TMPDIR=. mktemp fiXXXXXX)
36525 setfattr -n user.test -v ahoj \$file
36526 # check whether tar fails to store xattrs
36527 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36528 if test \"\$err\" != \"0\"; then
36535 mkdir dir/subdir/subsubdir
36536 genfile --file dir/file1
36537 genfile --file dir/subdir/file2
36539 setfattr -n trusted.test -v OurFile1Value dir/file1
36540 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36541 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36543 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36547 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36549 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36550 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36551 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36553 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36557 TEST_TAR_FORMAT=gnu
36558 export TEST_TAR_FORMAT
36559 TAR_OPTIONS="-H gnu"
36566 cat $$ > /dev/null 2>&1
36569 test $result -eq 0 || exit 77
36573 file=$(TMPDIR=. mktemp fiXXXXXX)
36575 setfattr -n user.test -v test $file &> /dev/null
36576 if test "$?" != 0; then
36581 getfattr $file &> /dev/null
36582 if test "$?" != 0; then
36587 file=$(TMPDIR=. mktemp fiXXXXXX)
36588 setfattr -n user.test -v ahoj $file
36589 # check whether tar fails to store xattrs
36590 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36591 if test "$err" != "0"; then
36598 mkdir dir/subdir/subsubdir
36599 genfile --file dir/file1
36600 genfile --file dir/subdir/file2
36602 setfattr -n trusted.test -v OurFile1Value dir/file1
36603 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36604 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36606 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36610 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36612 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36613 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36614 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36616 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36617 at_status=$? at_failed=false
36619 at_fn_diff_devnull "$at_stderr" || at_failed=:
36620 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36621 trusted.test=\"OurFile2Value\"
36622 trusted.test=\"OurDirValue\"
36624 $at_diff - "$at_stdout" || at_failed=:
36625 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36626 $at_failed && at_fn_log_failure
36633 $at_times_p && times >"$at_times_file"
36634 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
36635 read at_status <"$at_status_file"
36638 at_fn_group_banner 168 'xattr04.at:26' \
36639 "xattrs: s/open/openat/ regression" " " 25
36641 test -f $XFAILFILE && at_xfail=yes
36643 $as_echo "168. $at_setup_line: testing $at_desc ..."
36651 $as_echo "$at_srcdir/xattr04.at:29:
36655 export TEST_TAR_FORMAT
36656 TAR_OPTIONS=\"-H v7\"
36662 file=\$(TMPDIR=. mktemp fiXXXXXX)
36664 setfattr -n user.test -v test \$file &> /dev/null
36665 if test \"\$?\" != 0; then
36670 getfattr \$file &> /dev/null
36671 if test \"\$?\" != 0; then
36676 file=\$(TMPDIR=. mktemp fiXXXXXX)
36677 setfattr -n user.test -v ahoj \$file
36678 # check whether tar fails to store xattrs
36679 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36680 if test \"\$err\" != \"0\"; then
36687 genfile --file dir/file
36689 setfattr -n user.test -v value dir/file
36691 # archive whole directory including binary xattrs
36692 tar --xattrs -cf archive.tar -C dir .
36694 tar --xattrs -xf archive.tar -C output
36696 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
36699 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
36704 export TEST_TAR_FORMAT
36705 TAR_OPTIONS="-H v7"
36711 file=$(TMPDIR=. mktemp fiXXXXXX)
36713 setfattr -n user.test -v test $file &> /dev/null
36714 if test "$?" != 0; then
36719 getfattr $file &> /dev/null
36720 if test "$?" != 0; then
36725 file=$(TMPDIR=. mktemp fiXXXXXX)
36726 setfattr -n user.test -v ahoj $file
36727 # check whether tar fails to store xattrs
36728 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36729 if test "$err" != "0"; then
36736 genfile --file dir/file
36738 setfattr -n user.test -v value dir/file
36740 # archive whole directory including binary xattrs
36741 tar --xattrs -cf archive.tar -C dir .
36743 tar --xattrs -xf archive.tar -C output
36745 getfattr -h -d output/file | grep -v -e '^#' -e ^$
36748 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36749 at_status=$? at_failed=false
36751 at_fn_diff_devnull "$at_stderr" || at_failed=:
36752 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
36754 $at_diff - "$at_stdout" || at_failed=:
36755 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
36756 $at_failed && at_fn_log_failure
36760 $as_echo "$at_srcdir/xattr04.at:29:
36763 TEST_TAR_FORMAT=oldgnu
36764 export TEST_TAR_FORMAT
36765 TAR_OPTIONS=\"-H oldgnu\"
36771 file=\$(TMPDIR=. mktemp fiXXXXXX)
36773 setfattr -n user.test -v test \$file &> /dev/null
36774 if test \"\$?\" != 0; then
36779 getfattr \$file &> /dev/null
36780 if test \"\$?\" != 0; then
36785 file=\$(TMPDIR=. mktemp fiXXXXXX)
36786 setfattr -n user.test -v ahoj \$file
36787 # check whether tar fails to store xattrs
36788 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36789 if test \"\$err\" != \"0\"; then
36796 genfile --file dir/file
36798 setfattr -n user.test -v value dir/file
36800 # archive whole directory including binary xattrs
36801 tar --xattrs -cf archive.tar -C dir .
36803 tar --xattrs -xf archive.tar -C output
36805 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
36808 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
36812 TEST_TAR_FORMAT=oldgnu
36813 export TEST_TAR_FORMAT
36814 TAR_OPTIONS="-H oldgnu"
36820 file=$(TMPDIR=. mktemp fiXXXXXX)
36822 setfattr -n user.test -v test $file &> /dev/null
36823 if test "$?" != 0; then
36828 getfattr $file &> /dev/null
36829 if test "$?" != 0; then
36834 file=$(TMPDIR=. mktemp fiXXXXXX)
36835 setfattr -n user.test -v ahoj $file
36836 # check whether tar fails to store xattrs
36837 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36838 if test "$err" != "0"; then
36845 genfile --file dir/file
36847 setfattr -n user.test -v value dir/file
36849 # archive whole directory including binary xattrs
36850 tar --xattrs -cf archive.tar -C dir .
36852 tar --xattrs -xf archive.tar -C output
36854 getfattr -h -d output/file | grep -v -e '^#' -e ^$
36857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36858 at_status=$? at_failed=false
36860 at_fn_diff_devnull "$at_stderr" || at_failed=:
36861 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
36863 $at_diff - "$at_stdout" || at_failed=:
36864 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
36865 $at_failed && at_fn_log_failure
36869 $as_echo "$at_srcdir/xattr04.at:29:
36872 TEST_TAR_FORMAT=ustar
36873 export TEST_TAR_FORMAT
36874 TAR_OPTIONS=\"-H ustar\"
36880 file=\$(TMPDIR=. mktemp fiXXXXXX)
36882 setfattr -n user.test -v test \$file &> /dev/null
36883 if test \"\$?\" != 0; then
36888 getfattr \$file &> /dev/null
36889 if test \"\$?\" != 0; then
36894 file=\$(TMPDIR=. mktemp fiXXXXXX)
36895 setfattr -n user.test -v ahoj \$file
36896 # check whether tar fails to store xattrs
36897 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36898 if test \"\$err\" != \"0\"; then
36905 genfile --file dir/file
36907 setfattr -n user.test -v value dir/file
36909 # archive whole directory including binary xattrs
36910 tar --xattrs -cf archive.tar -C dir .
36912 tar --xattrs -xf archive.tar -C output
36914 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
36917 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
36921 TEST_TAR_FORMAT=ustar
36922 export TEST_TAR_FORMAT
36923 TAR_OPTIONS="-H ustar"
36929 file=$(TMPDIR=. mktemp fiXXXXXX)
36931 setfattr -n user.test -v test $file &> /dev/null
36932 if test "$?" != 0; then
36937 getfattr $file &> /dev/null
36938 if test "$?" != 0; then
36943 file=$(TMPDIR=. mktemp fiXXXXXX)
36944 setfattr -n user.test -v ahoj $file
36945 # check whether tar fails to store xattrs
36946 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36947 if test "$err" != "0"; then
36954 genfile --file dir/file
36956 setfattr -n user.test -v value dir/file
36958 # archive whole directory including binary xattrs
36959 tar --xattrs -cf archive.tar -C dir .
36961 tar --xattrs -xf archive.tar -C output
36963 getfattr -h -d output/file | grep -v -e '^#' -e ^$
36966 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36967 at_status=$? at_failed=false
36969 at_fn_diff_devnull "$at_stderr" || at_failed=:
36970 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
36972 $at_diff - "$at_stdout" || at_failed=:
36973 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
36974 $at_failed && at_fn_log_failure
36978 $as_echo "$at_srcdir/xattr04.at:29:
36981 TEST_TAR_FORMAT=posix
36982 export TEST_TAR_FORMAT
36983 TAR_OPTIONS=\"-H posix\"
36989 file=\$(TMPDIR=. mktemp fiXXXXXX)
36991 setfattr -n user.test -v test \$file &> /dev/null
36992 if test \"\$?\" != 0; then
36997 getfattr \$file &> /dev/null
36998 if test \"\$?\" != 0; then
37003 file=\$(TMPDIR=. mktemp fiXXXXXX)
37004 setfattr -n user.test -v ahoj \$file
37005 # check whether tar fails to store xattrs
37006 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37007 if test \"\$err\" != \"0\"; then
37014 genfile --file dir/file
37016 setfattr -n user.test -v value dir/file
37018 # archive whole directory including binary xattrs
37019 tar --xattrs -cf archive.tar -C dir .
37021 tar --xattrs -xf archive.tar -C output
37023 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37026 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37030 TEST_TAR_FORMAT=posix
37031 export TEST_TAR_FORMAT
37032 TAR_OPTIONS="-H posix"
37038 file=$(TMPDIR=. mktemp fiXXXXXX)
37040 setfattr -n user.test -v test $file &> /dev/null
37041 if test "$?" != 0; then
37046 getfattr $file &> /dev/null
37047 if test "$?" != 0; then
37052 file=$(TMPDIR=. mktemp fiXXXXXX)
37053 setfattr -n user.test -v ahoj $file
37054 # check whether tar fails to store xattrs
37055 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37056 if test "$err" != "0"; then
37063 genfile --file dir/file
37065 setfattr -n user.test -v value dir/file
37067 # archive whole directory including binary xattrs
37068 tar --xattrs -cf archive.tar -C dir .
37070 tar --xattrs -xf archive.tar -C output
37072 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37075 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37076 at_status=$? at_failed=false
37078 at_fn_diff_devnull "$at_stderr" || at_failed=:
37079 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37081 $at_diff - "$at_stdout" || at_failed=:
37082 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37083 $at_failed && at_fn_log_failure
37087 $as_echo "$at_srcdir/xattr04.at:29:
37090 TEST_TAR_FORMAT=gnu
37091 export TEST_TAR_FORMAT
37092 TAR_OPTIONS=\"-H gnu\"
37098 file=\$(TMPDIR=. mktemp fiXXXXXX)
37100 setfattr -n user.test -v test \$file &> /dev/null
37101 if test \"\$?\" != 0; then
37106 getfattr \$file &> /dev/null
37107 if test \"\$?\" != 0; then
37112 file=\$(TMPDIR=. mktemp fiXXXXXX)
37113 setfattr -n user.test -v ahoj \$file
37114 # check whether tar fails to store xattrs
37115 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37116 if test \"\$err\" != \"0\"; then
37123 genfile --file dir/file
37125 setfattr -n user.test -v value dir/file
37127 # archive whole directory including binary xattrs
37128 tar --xattrs -cf archive.tar -C dir .
37130 tar --xattrs -xf archive.tar -C output
37132 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37135 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37139 TEST_TAR_FORMAT=gnu
37140 export TEST_TAR_FORMAT
37141 TAR_OPTIONS="-H gnu"
37147 file=$(TMPDIR=. mktemp fiXXXXXX)
37149 setfattr -n user.test -v test $file &> /dev/null
37150 if test "$?" != 0; then
37155 getfattr $file &> /dev/null
37156 if test "$?" != 0; then
37161 file=$(TMPDIR=. mktemp fiXXXXXX)
37162 setfattr -n user.test -v ahoj $file
37163 # check whether tar fails to store xattrs
37164 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37165 if test "$err" != "0"; then
37172 genfile --file dir/file
37174 setfattr -n user.test -v value dir/file
37176 # archive whole directory including binary xattrs
37177 tar --xattrs -cf archive.tar -C dir .
37179 tar --xattrs -xf archive.tar -C output
37181 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37184 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37185 at_status=$? at_failed=false
37187 at_fn_diff_devnull "$at_stderr" || at_failed=:
37188 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37190 $at_diff - "$at_stdout" || at_failed=:
37191 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37192 $at_failed && at_fn_log_failure
37199 $at_times_p && times >"$at_times_file"
37200 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37201 read at_status <"$at_status_file"
37204 at_fn_group_banner 169 'xattr05.at:28' \
37205 "xattrs: keywords with '=' and '%'" " " 25
37207 test -f $XFAILFILE && at_xfail=yes
37209 $as_echo "169. $at_setup_line: testing $at_desc ..."
37217 $as_echo "$at_srcdir/xattr05.at:31:
37221 export TEST_TAR_FORMAT
37222 TAR_OPTIONS=\"-H v7\"
37228 file=\$(TMPDIR=. mktemp fiXXXXXX)
37230 setfattr -n user.test -v test \$file &> /dev/null
37231 if test \"\$?\" != 0; then
37236 getfattr \$file &> /dev/null
37237 if test \"\$?\" != 0; then
37242 file=\$(TMPDIR=. mktemp fiXXXXXX)
37243 setfattr -n user.test -v ahoj \$file
37244 # check whether tar fails to store xattrs
37245 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37246 if test \"\$err\" != \"0\"; then
37253 genfile --file dir/file
37255 setfattr -n user.=NAME%3D= -v value dir/file
37256 getfattr -d dir/file | grep -v '# ' > before
37258 # archive whole directory including binary xattrs
37259 tar --xattrs -cf archive.tar -C dir .
37261 tar --xattrs -xf archive.tar -C output
37262 getfattr -d output/file | grep -v '# ' > after
37265 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37270 export TEST_TAR_FORMAT
37271 TAR_OPTIONS="-H v7"
37277 file=$(TMPDIR=. mktemp fiXXXXXX)
37279 setfattr -n user.test -v test $file &> /dev/null
37280 if test "$?" != 0; then
37285 getfattr $file &> /dev/null
37286 if test "$?" != 0; then
37291 file=$(TMPDIR=. mktemp fiXXXXXX)
37292 setfattr -n user.test -v ahoj $file
37293 # check whether tar fails to store xattrs
37294 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37295 if test "$err" != "0"; then
37302 genfile --file dir/file
37304 setfattr -n user.=NAME%3D= -v value dir/file
37305 getfattr -d dir/file | grep -v '# ' > before
37307 # archive whole directory including binary xattrs
37308 tar --xattrs -cf archive.tar -C dir .
37310 tar --xattrs -xf archive.tar -C output
37311 getfattr -d output/file | grep -v '# ' > after
37314 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37315 at_status=$? at_failed=false
37317 at_fn_diff_devnull "$at_stderr" || at_failed=:
37318 at_fn_diff_devnull "$at_stdout" || at_failed=:
37319 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37320 $at_failed && at_fn_log_failure
37324 $as_echo "$at_srcdir/xattr05.at:31:
37327 TEST_TAR_FORMAT=oldgnu
37328 export TEST_TAR_FORMAT
37329 TAR_OPTIONS=\"-H oldgnu\"
37335 file=\$(TMPDIR=. mktemp fiXXXXXX)
37337 setfattr -n user.test -v test \$file &> /dev/null
37338 if test \"\$?\" != 0; then
37343 getfattr \$file &> /dev/null
37344 if test \"\$?\" != 0; then
37349 file=\$(TMPDIR=. mktemp fiXXXXXX)
37350 setfattr -n user.test -v ahoj \$file
37351 # check whether tar fails to store xattrs
37352 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37353 if test \"\$err\" != \"0\"; then
37360 genfile --file dir/file
37362 setfattr -n user.=NAME%3D= -v value dir/file
37363 getfattr -d dir/file | grep -v '# ' > before
37365 # archive whole directory including binary xattrs
37366 tar --xattrs -cf archive.tar -C dir .
37368 tar --xattrs -xf archive.tar -C output
37369 getfattr -d output/file | grep -v '# ' > after
37372 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37376 TEST_TAR_FORMAT=oldgnu
37377 export TEST_TAR_FORMAT
37378 TAR_OPTIONS="-H oldgnu"
37384 file=$(TMPDIR=. mktemp fiXXXXXX)
37386 setfattr -n user.test -v test $file &> /dev/null
37387 if test "$?" != 0; then
37392 getfattr $file &> /dev/null
37393 if test "$?" != 0; then
37398 file=$(TMPDIR=. mktemp fiXXXXXX)
37399 setfattr -n user.test -v ahoj $file
37400 # check whether tar fails to store xattrs
37401 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37402 if test "$err" != "0"; then
37409 genfile --file dir/file
37411 setfattr -n user.=NAME%3D= -v value dir/file
37412 getfattr -d dir/file | grep -v '# ' > before
37414 # archive whole directory including binary xattrs
37415 tar --xattrs -cf archive.tar -C dir .
37417 tar --xattrs -xf archive.tar -C output
37418 getfattr -d output/file | grep -v '# ' > after
37421 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37422 at_status=$? at_failed=false
37424 at_fn_diff_devnull "$at_stderr" || at_failed=:
37425 at_fn_diff_devnull "$at_stdout" || at_failed=:
37426 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37427 $at_failed && at_fn_log_failure
37431 $as_echo "$at_srcdir/xattr05.at:31:
37434 TEST_TAR_FORMAT=ustar
37435 export TEST_TAR_FORMAT
37436 TAR_OPTIONS=\"-H ustar\"
37442 file=\$(TMPDIR=. mktemp fiXXXXXX)
37444 setfattr -n user.test -v test \$file &> /dev/null
37445 if test \"\$?\" != 0; then
37450 getfattr \$file &> /dev/null
37451 if test \"\$?\" != 0; then
37456 file=\$(TMPDIR=. mktemp fiXXXXXX)
37457 setfattr -n user.test -v ahoj \$file
37458 # check whether tar fails to store xattrs
37459 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37460 if test \"\$err\" != \"0\"; then
37467 genfile --file dir/file
37469 setfattr -n user.=NAME%3D= -v value dir/file
37470 getfattr -d dir/file | grep -v '# ' > before
37472 # archive whole directory including binary xattrs
37473 tar --xattrs -cf archive.tar -C dir .
37475 tar --xattrs -xf archive.tar -C output
37476 getfattr -d output/file | grep -v '# ' > after
37479 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37483 TEST_TAR_FORMAT=ustar
37484 export TEST_TAR_FORMAT
37485 TAR_OPTIONS="-H ustar"
37491 file=$(TMPDIR=. mktemp fiXXXXXX)
37493 setfattr -n user.test -v test $file &> /dev/null
37494 if test "$?" != 0; then
37499 getfattr $file &> /dev/null
37500 if test "$?" != 0; then
37505 file=$(TMPDIR=. mktemp fiXXXXXX)
37506 setfattr -n user.test -v ahoj $file
37507 # check whether tar fails to store xattrs
37508 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37509 if test "$err" != "0"; then
37516 genfile --file dir/file
37518 setfattr -n user.=NAME%3D= -v value dir/file
37519 getfattr -d dir/file | grep -v '# ' > before
37521 # archive whole directory including binary xattrs
37522 tar --xattrs -cf archive.tar -C dir .
37524 tar --xattrs -xf archive.tar -C output
37525 getfattr -d output/file | grep -v '# ' > after
37528 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37529 at_status=$? at_failed=false
37531 at_fn_diff_devnull "$at_stderr" || at_failed=:
37532 at_fn_diff_devnull "$at_stdout" || at_failed=:
37533 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37534 $at_failed && at_fn_log_failure
37538 $as_echo "$at_srcdir/xattr05.at:31:
37541 TEST_TAR_FORMAT=posix
37542 export TEST_TAR_FORMAT
37543 TAR_OPTIONS=\"-H posix\"
37549 file=\$(TMPDIR=. mktemp fiXXXXXX)
37551 setfattr -n user.test -v test \$file &> /dev/null
37552 if test \"\$?\" != 0; then
37557 getfattr \$file &> /dev/null
37558 if test \"\$?\" != 0; then
37563 file=\$(TMPDIR=. mktemp fiXXXXXX)
37564 setfattr -n user.test -v ahoj \$file
37565 # check whether tar fails to store xattrs
37566 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37567 if test \"\$err\" != \"0\"; then
37574 genfile --file dir/file
37576 setfattr -n user.=NAME%3D= -v value dir/file
37577 getfattr -d dir/file | grep -v '# ' > before
37579 # archive whole directory including binary xattrs
37580 tar --xattrs -cf archive.tar -C dir .
37582 tar --xattrs -xf archive.tar -C output
37583 getfattr -d output/file | grep -v '# ' > after
37586 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37590 TEST_TAR_FORMAT=posix
37591 export TEST_TAR_FORMAT
37592 TAR_OPTIONS="-H posix"
37598 file=$(TMPDIR=. mktemp fiXXXXXX)
37600 setfattr -n user.test -v test $file &> /dev/null
37601 if test "$?" != 0; then
37606 getfattr $file &> /dev/null
37607 if test "$?" != 0; then
37612 file=$(TMPDIR=. mktemp fiXXXXXX)
37613 setfattr -n user.test -v ahoj $file
37614 # check whether tar fails to store xattrs
37615 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37616 if test "$err" != "0"; then
37623 genfile --file dir/file
37625 setfattr -n user.=NAME%3D= -v value dir/file
37626 getfattr -d dir/file | grep -v '# ' > before
37628 # archive whole directory including binary xattrs
37629 tar --xattrs -cf archive.tar -C dir .
37631 tar --xattrs -xf archive.tar -C output
37632 getfattr -d output/file | grep -v '# ' > after
37635 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37636 at_status=$? at_failed=false
37638 at_fn_diff_devnull "$at_stderr" || at_failed=:
37639 at_fn_diff_devnull "$at_stdout" || at_failed=:
37640 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37641 $at_failed && at_fn_log_failure
37645 $as_echo "$at_srcdir/xattr05.at:31:
37648 TEST_TAR_FORMAT=gnu
37649 export TEST_TAR_FORMAT
37650 TAR_OPTIONS=\"-H gnu\"
37656 file=\$(TMPDIR=. mktemp fiXXXXXX)
37658 setfattr -n user.test -v test \$file &> /dev/null
37659 if test \"\$?\" != 0; then
37664 getfattr \$file &> /dev/null
37665 if test \"\$?\" != 0; then
37670 file=\$(TMPDIR=. mktemp fiXXXXXX)
37671 setfattr -n user.test -v ahoj \$file
37672 # check whether tar fails to store xattrs
37673 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37674 if test \"\$err\" != \"0\"; then
37681 genfile --file dir/file
37683 setfattr -n user.=NAME%3D= -v value dir/file
37684 getfattr -d dir/file | grep -v '# ' > before
37686 # archive whole directory including binary xattrs
37687 tar --xattrs -cf archive.tar -C dir .
37689 tar --xattrs -xf archive.tar -C output
37690 getfattr -d output/file | grep -v '# ' > after
37693 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37697 TEST_TAR_FORMAT=gnu
37698 export TEST_TAR_FORMAT
37699 TAR_OPTIONS="-H gnu"
37705 file=$(TMPDIR=. mktemp fiXXXXXX)
37707 setfattr -n user.test -v test $file &> /dev/null
37708 if test "$?" != 0; then
37713 getfattr $file &> /dev/null
37714 if test "$?" != 0; then
37719 file=$(TMPDIR=. mktemp fiXXXXXX)
37720 setfattr -n user.test -v ahoj $file
37721 # check whether tar fails to store xattrs
37722 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37723 if test "$err" != "0"; then
37730 genfile --file dir/file
37732 setfattr -n user.=NAME%3D= -v value dir/file
37733 getfattr -d dir/file | grep -v '# ' > before
37735 # archive whole directory including binary xattrs
37736 tar --xattrs -cf archive.tar -C dir .
37738 tar --xattrs -xf archive.tar -C output
37739 getfattr -d output/file | grep -v '# ' > after
37742 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37743 at_status=$? at_failed=false
37745 at_fn_diff_devnull "$at_stderr" || at_failed=:
37746 at_fn_diff_devnull "$at_stdout" || at_failed=:
37747 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37748 $at_failed && at_fn_log_failure
37755 $at_times_p && times >"$at_times_file"
37756 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37757 read at_status <"$at_status_file"
37760 at_fn_group_banner 170 'acls01.at:25' \
37761 "acls: basic functionality" " " 25
37763 test -f $XFAILFILE && at_xfail=yes
37765 $as_echo "170. $at_setup_line: testing $at_desc ..."
37773 $as_echo "$at_srcdir/acls01.at:28:
37777 export TEST_TAR_FORMAT
37778 TAR_OPTIONS=\"-H v7\"
37783 file=\$(TMPDIR=. mktemp fiXXXXXX)
37785 setfattr -n user.test -v test \$file &> /dev/null
37786 if test \"\$?\" != 0; then
37791 getfattr \$file &> /dev/null
37792 if test \"\$?\" != 0; then
37799 file=\$(TMPDIR=. mktemp fiXXXXXX)
37801 setfacl -m u:\$UID:rwx \$file &> /dev/null
37802 if test \"\$?\" != 0; then
37807 getfacl \$file &> /dev/null
37808 if test \"\$?\" != 0; then
37814 file=\$(TMPDIR=. mktemp fiXXXXXX)
37815 setfacl -m u:\$UID:rwx \$file
37816 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37817 if test \"\$err\" != \"0\"; then
37823 genfile --file dir/file
37825 MYNAME=\$( id -un )
37827 setfacl -m u:\$MYNAME:--x dir/file
37828 setfacl -m u:\$MYNAME:--x dir
37830 getfattr -h -m. -d dir dir/file > before
37832 tar --acls -cf archive.tar dir
37835 tar --acls -xf archive.tar
37837 getfattr -h -m. -d dir dir/file > after
37842 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
37847 export TEST_TAR_FORMAT
37848 TAR_OPTIONS="-H v7"
37853 file=$(TMPDIR=. mktemp fiXXXXXX)
37855 setfattr -n user.test -v test $file &> /dev/null
37856 if test "$?" != 0; then
37861 getfattr $file &> /dev/null
37862 if test "$?" != 0; then
37869 file=$(TMPDIR=. mktemp fiXXXXXX)
37871 setfacl -m u:$UID:rwx $file &> /dev/null
37872 if test "$?" != 0; then
37877 getfacl $file &> /dev/null
37878 if test "$?" != 0; then
37884 file=$(TMPDIR=. mktemp fiXXXXXX)
37885 setfacl -m u:$UID:rwx $file
37886 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37887 if test "$err" != "0"; then
37893 genfile --file dir/file
37897 setfacl -m u:$MYNAME:--x dir/file
37898 setfacl -m u:$MYNAME:--x dir
37900 getfattr -h -m. -d dir dir/file > before
37902 tar --acls -cf archive.tar dir
37905 tar --acls -xf archive.tar
37907 getfattr -h -m. -d dir dir/file > after
37912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37913 at_status=$? at_failed=false
37915 at_fn_diff_devnull "$at_stderr" || at_failed=:
37916 at_fn_diff_devnull "$at_stdout" || at_failed=:
37917 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
37918 $at_failed && at_fn_log_failure
37922 $as_echo "$at_srcdir/acls01.at:28:
37925 TEST_TAR_FORMAT=oldgnu
37926 export TEST_TAR_FORMAT
37927 TAR_OPTIONS=\"-H oldgnu\"
37932 file=\$(TMPDIR=. mktemp fiXXXXXX)
37934 setfattr -n user.test -v test \$file &> /dev/null
37935 if test \"\$?\" != 0; then
37940 getfattr \$file &> /dev/null
37941 if test \"\$?\" != 0; then
37948 file=\$(TMPDIR=. mktemp fiXXXXXX)
37950 setfacl -m u:\$UID:rwx \$file &> /dev/null
37951 if test \"\$?\" != 0; then
37956 getfacl \$file &> /dev/null
37957 if test \"\$?\" != 0; then
37963 file=\$(TMPDIR=. mktemp fiXXXXXX)
37964 setfacl -m u:\$UID:rwx \$file
37965 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37966 if test \"\$err\" != \"0\"; then
37972 genfile --file dir/file
37974 MYNAME=\$( id -un )
37976 setfacl -m u:\$MYNAME:--x dir/file
37977 setfacl -m u:\$MYNAME:--x dir
37979 getfattr -h -m. -d dir dir/file > before
37981 tar --acls -cf archive.tar dir
37984 tar --acls -xf archive.tar
37986 getfattr -h -m. -d dir dir/file > after
37991 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
37995 TEST_TAR_FORMAT=oldgnu
37996 export TEST_TAR_FORMAT
37997 TAR_OPTIONS="-H oldgnu"
38002 file=$(TMPDIR=. mktemp fiXXXXXX)
38004 setfattr -n user.test -v test $file &> /dev/null
38005 if test "$?" != 0; then
38010 getfattr $file &> /dev/null
38011 if test "$?" != 0; then
38018 file=$(TMPDIR=. mktemp fiXXXXXX)
38020 setfacl -m u:$UID:rwx $file &> /dev/null
38021 if test "$?" != 0; then
38026 getfacl $file &> /dev/null
38027 if test "$?" != 0; then
38033 file=$(TMPDIR=. mktemp fiXXXXXX)
38034 setfacl -m u:$UID:rwx $file
38035 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38036 if test "$err" != "0"; then
38042 genfile --file dir/file
38046 setfacl -m u:$MYNAME:--x dir/file
38047 setfacl -m u:$MYNAME:--x dir
38049 getfattr -h -m. -d dir dir/file > before
38051 tar --acls -cf archive.tar dir
38054 tar --acls -xf archive.tar
38056 getfattr -h -m. -d dir dir/file > after
38061 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38062 at_status=$? at_failed=false
38064 at_fn_diff_devnull "$at_stderr" || at_failed=:
38065 at_fn_diff_devnull "$at_stdout" || at_failed=:
38066 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38067 $at_failed && at_fn_log_failure
38071 $as_echo "$at_srcdir/acls01.at:28:
38074 TEST_TAR_FORMAT=ustar
38075 export TEST_TAR_FORMAT
38076 TAR_OPTIONS=\"-H ustar\"
38081 file=\$(TMPDIR=. mktemp fiXXXXXX)
38083 setfattr -n user.test -v test \$file &> /dev/null
38084 if test \"\$?\" != 0; then
38089 getfattr \$file &> /dev/null
38090 if test \"\$?\" != 0; then
38097 file=\$(TMPDIR=. mktemp fiXXXXXX)
38099 setfacl -m u:\$UID:rwx \$file &> /dev/null
38100 if test \"\$?\" != 0; then
38105 getfacl \$file &> /dev/null
38106 if test \"\$?\" != 0; then
38112 file=\$(TMPDIR=. mktemp fiXXXXXX)
38113 setfacl -m u:\$UID:rwx \$file
38114 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38115 if test \"\$err\" != \"0\"; then
38121 genfile --file dir/file
38123 MYNAME=\$( id -un )
38125 setfacl -m u:\$MYNAME:--x dir/file
38126 setfacl -m u:\$MYNAME:--x dir
38128 getfattr -h -m. -d dir dir/file > before
38130 tar --acls -cf archive.tar dir
38133 tar --acls -xf archive.tar
38135 getfattr -h -m. -d dir dir/file > after
38140 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38144 TEST_TAR_FORMAT=ustar
38145 export TEST_TAR_FORMAT
38146 TAR_OPTIONS="-H ustar"
38151 file=$(TMPDIR=. mktemp fiXXXXXX)
38153 setfattr -n user.test -v test $file &> /dev/null
38154 if test "$?" != 0; then
38159 getfattr $file &> /dev/null
38160 if test "$?" != 0; then
38167 file=$(TMPDIR=. mktemp fiXXXXXX)
38169 setfacl -m u:$UID:rwx $file &> /dev/null
38170 if test "$?" != 0; then
38175 getfacl $file &> /dev/null
38176 if test "$?" != 0; then
38182 file=$(TMPDIR=. mktemp fiXXXXXX)
38183 setfacl -m u:$UID:rwx $file
38184 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38185 if test "$err" != "0"; then
38191 genfile --file dir/file
38195 setfacl -m u:$MYNAME:--x dir/file
38196 setfacl -m u:$MYNAME:--x dir
38198 getfattr -h -m. -d dir dir/file > before
38200 tar --acls -cf archive.tar dir
38203 tar --acls -xf archive.tar
38205 getfattr -h -m. -d dir dir/file > after
38210 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38211 at_status=$? at_failed=false
38213 at_fn_diff_devnull "$at_stderr" || at_failed=:
38214 at_fn_diff_devnull "$at_stdout" || at_failed=:
38215 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38216 $at_failed && at_fn_log_failure
38220 $as_echo "$at_srcdir/acls01.at:28:
38223 TEST_TAR_FORMAT=posix
38224 export TEST_TAR_FORMAT
38225 TAR_OPTIONS=\"-H posix\"
38230 file=\$(TMPDIR=. mktemp fiXXXXXX)
38232 setfattr -n user.test -v test \$file &> /dev/null
38233 if test \"\$?\" != 0; then
38238 getfattr \$file &> /dev/null
38239 if test \"\$?\" != 0; then
38246 file=\$(TMPDIR=. mktemp fiXXXXXX)
38248 setfacl -m u:\$UID:rwx \$file &> /dev/null
38249 if test \"\$?\" != 0; then
38254 getfacl \$file &> /dev/null
38255 if test \"\$?\" != 0; then
38261 file=\$(TMPDIR=. mktemp fiXXXXXX)
38262 setfacl -m u:\$UID:rwx \$file
38263 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38264 if test \"\$err\" != \"0\"; then
38270 genfile --file dir/file
38272 MYNAME=\$( id -un )
38274 setfacl -m u:\$MYNAME:--x dir/file
38275 setfacl -m u:\$MYNAME:--x dir
38277 getfattr -h -m. -d dir dir/file > before
38279 tar --acls -cf archive.tar dir
38282 tar --acls -xf archive.tar
38284 getfattr -h -m. -d dir dir/file > after
38289 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38293 TEST_TAR_FORMAT=posix
38294 export TEST_TAR_FORMAT
38295 TAR_OPTIONS="-H posix"
38300 file=$(TMPDIR=. mktemp fiXXXXXX)
38302 setfattr -n user.test -v test $file &> /dev/null
38303 if test "$?" != 0; then
38308 getfattr $file &> /dev/null
38309 if test "$?" != 0; then
38316 file=$(TMPDIR=. mktemp fiXXXXXX)
38318 setfacl -m u:$UID:rwx $file &> /dev/null
38319 if test "$?" != 0; then
38324 getfacl $file &> /dev/null
38325 if test "$?" != 0; then
38331 file=$(TMPDIR=. mktemp fiXXXXXX)
38332 setfacl -m u:$UID:rwx $file
38333 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38334 if test "$err" != "0"; then
38340 genfile --file dir/file
38344 setfacl -m u:$MYNAME:--x dir/file
38345 setfacl -m u:$MYNAME:--x dir
38347 getfattr -h -m. -d dir dir/file > before
38349 tar --acls -cf archive.tar dir
38352 tar --acls -xf archive.tar
38354 getfattr -h -m. -d dir dir/file > after
38359 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38360 at_status=$? at_failed=false
38362 at_fn_diff_devnull "$at_stderr" || at_failed=:
38363 at_fn_diff_devnull "$at_stdout" || at_failed=:
38364 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38365 $at_failed && at_fn_log_failure
38369 $as_echo "$at_srcdir/acls01.at:28:
38372 TEST_TAR_FORMAT=gnu
38373 export TEST_TAR_FORMAT
38374 TAR_OPTIONS=\"-H gnu\"
38379 file=\$(TMPDIR=. mktemp fiXXXXXX)
38381 setfattr -n user.test -v test \$file &> /dev/null
38382 if test \"\$?\" != 0; then
38387 getfattr \$file &> /dev/null
38388 if test \"\$?\" != 0; then
38395 file=\$(TMPDIR=. mktemp fiXXXXXX)
38397 setfacl -m u:\$UID:rwx \$file &> /dev/null
38398 if test \"\$?\" != 0; then
38403 getfacl \$file &> /dev/null
38404 if test \"\$?\" != 0; then
38410 file=\$(TMPDIR=. mktemp fiXXXXXX)
38411 setfacl -m u:\$UID:rwx \$file
38412 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38413 if test \"\$err\" != \"0\"; then
38419 genfile --file dir/file
38421 MYNAME=\$( id -un )
38423 setfacl -m u:\$MYNAME:--x dir/file
38424 setfacl -m u:\$MYNAME:--x dir
38426 getfattr -h -m. -d dir dir/file > before
38428 tar --acls -cf archive.tar dir
38431 tar --acls -xf archive.tar
38433 getfattr -h -m. -d dir dir/file > after
38438 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38442 TEST_TAR_FORMAT=gnu
38443 export TEST_TAR_FORMAT
38444 TAR_OPTIONS="-H gnu"
38449 file=$(TMPDIR=. mktemp fiXXXXXX)
38451 setfattr -n user.test -v test $file &> /dev/null
38452 if test "$?" != 0; then
38457 getfattr $file &> /dev/null
38458 if test "$?" != 0; then
38465 file=$(TMPDIR=. mktemp fiXXXXXX)
38467 setfacl -m u:$UID:rwx $file &> /dev/null
38468 if test "$?" != 0; then
38473 getfacl $file &> /dev/null
38474 if test "$?" != 0; then
38480 file=$(TMPDIR=. mktemp fiXXXXXX)
38481 setfacl -m u:$UID:rwx $file
38482 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38483 if test "$err" != "0"; then
38489 genfile --file dir/file
38493 setfacl -m u:$MYNAME:--x dir/file
38494 setfacl -m u:$MYNAME:--x dir
38496 getfattr -h -m. -d dir dir/file > before
38498 tar --acls -cf archive.tar dir
38501 tar --acls -xf archive.tar
38503 getfattr -h -m. -d dir dir/file > after
38508 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38509 at_status=$? at_failed=false
38511 at_fn_diff_devnull "$at_stderr" || at_failed=:
38512 at_fn_diff_devnull "$at_stdout" || at_failed=:
38513 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38514 $at_failed && at_fn_log_failure
38521 $at_times_p && times >"$at_times_file"
38522 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38523 read at_status <"$at_status_file"
38526 at_fn_group_banner 171 'acls02.at:25' \
38527 "acls: work with -C" " " 25
38529 test -f $XFAILFILE && at_xfail=yes
38531 $as_echo "171. $at_setup_line: testing $at_desc ..."
38539 $as_echo "$at_srcdir/acls02.at:28:
38543 export TEST_TAR_FORMAT
38544 TAR_OPTIONS=\"-H v7\"
38549 file=\$(TMPDIR=. mktemp fiXXXXXX)
38551 setfattr -n user.test -v test \$file &> /dev/null
38552 if test \"\$?\" != 0; then
38557 getfattr \$file &> /dev/null
38558 if test \"\$?\" != 0; then
38565 file=\$(TMPDIR=. mktemp fiXXXXXX)
38567 setfacl -m u:\$UID:rwx \$file &> /dev/null
38568 if test \"\$?\" != 0; then
38573 getfacl \$file &> /dev/null
38574 if test \"\$?\" != 0; then
38580 file=\$(TMPDIR=. mktemp fiXXXXXX)
38581 setfacl -m u:\$UID:rwx \$file
38582 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38583 if test \"\$err\" != \"0\"; then
38590 genfile --file dir/subdir/file
38592 MYNAME=\$( id -un )
38594 setfacl -m u:\$MYNAME:--x dir/subdir
38595 setfacl -m u:\$MYNAME:--x dir/subdir/file
38598 getfattr -h -m. -d subdir subdir/file > ../before
38601 tar --acls -cf archive.tar -C dir subdir
38605 tar --acls -xf archive.tar -C dir
38608 getfattr -h -m. -d subdir subdir/file > ../after
38614 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
38619 export TEST_TAR_FORMAT
38620 TAR_OPTIONS="-H v7"
38625 file=$(TMPDIR=. mktemp fiXXXXXX)
38627 setfattr -n user.test -v test $file &> /dev/null
38628 if test "$?" != 0; then
38633 getfattr $file &> /dev/null
38634 if test "$?" != 0; then
38641 file=$(TMPDIR=. mktemp fiXXXXXX)
38643 setfacl -m u:$UID:rwx $file &> /dev/null
38644 if test "$?" != 0; then
38649 getfacl $file &> /dev/null
38650 if test "$?" != 0; then
38656 file=$(TMPDIR=. mktemp fiXXXXXX)
38657 setfacl -m u:$UID:rwx $file
38658 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38659 if test "$err" != "0"; then
38666 genfile --file dir/subdir/file
38670 setfacl -m u:$MYNAME:--x dir/subdir
38671 setfacl -m u:$MYNAME:--x dir/subdir/file
38674 getfattr -h -m. -d subdir subdir/file > ../before
38677 tar --acls -cf archive.tar -C dir subdir
38681 tar --acls -xf archive.tar -C dir
38684 getfattr -h -m. -d subdir subdir/file > ../after
38690 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38691 at_status=$? at_failed=false
38693 at_fn_diff_devnull "$at_stderr" || at_failed=:
38694 at_fn_diff_devnull "$at_stdout" || at_failed=:
38695 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
38696 $at_failed && at_fn_log_failure
38700 $as_echo "$at_srcdir/acls02.at:28:
38703 TEST_TAR_FORMAT=oldgnu
38704 export TEST_TAR_FORMAT
38705 TAR_OPTIONS=\"-H oldgnu\"
38710 file=\$(TMPDIR=. mktemp fiXXXXXX)
38712 setfattr -n user.test -v test \$file &> /dev/null
38713 if test \"\$?\" != 0; then
38718 getfattr \$file &> /dev/null
38719 if test \"\$?\" != 0; then
38726 file=\$(TMPDIR=. mktemp fiXXXXXX)
38728 setfacl -m u:\$UID:rwx \$file &> /dev/null
38729 if test \"\$?\" != 0; then
38734 getfacl \$file &> /dev/null
38735 if test \"\$?\" != 0; then
38741 file=\$(TMPDIR=. mktemp fiXXXXXX)
38742 setfacl -m u:\$UID:rwx \$file
38743 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38744 if test \"\$err\" != \"0\"; then
38751 genfile --file dir/subdir/file
38753 MYNAME=\$( id -un )
38755 setfacl -m u:\$MYNAME:--x dir/subdir
38756 setfacl -m u:\$MYNAME:--x dir/subdir/file
38759 getfattr -h -m. -d subdir subdir/file > ../before
38762 tar --acls -cf archive.tar -C dir subdir
38766 tar --acls -xf archive.tar -C dir
38769 getfattr -h -m. -d subdir subdir/file > ../after
38775 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
38779 TEST_TAR_FORMAT=oldgnu
38780 export TEST_TAR_FORMAT
38781 TAR_OPTIONS="-H oldgnu"
38786 file=$(TMPDIR=. mktemp fiXXXXXX)
38788 setfattr -n user.test -v test $file &> /dev/null
38789 if test "$?" != 0; then
38794 getfattr $file &> /dev/null
38795 if test "$?" != 0; then
38802 file=$(TMPDIR=. mktemp fiXXXXXX)
38804 setfacl -m u:$UID:rwx $file &> /dev/null
38805 if test "$?" != 0; then
38810 getfacl $file &> /dev/null
38811 if test "$?" != 0; then
38817 file=$(TMPDIR=. mktemp fiXXXXXX)
38818 setfacl -m u:$UID:rwx $file
38819 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38820 if test "$err" != "0"; then
38827 genfile --file dir/subdir/file
38831 setfacl -m u:$MYNAME:--x dir/subdir
38832 setfacl -m u:$MYNAME:--x dir/subdir/file
38835 getfattr -h -m. -d subdir subdir/file > ../before
38838 tar --acls -cf archive.tar -C dir subdir
38842 tar --acls -xf archive.tar -C dir
38845 getfattr -h -m. -d subdir subdir/file > ../after
38851 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38852 at_status=$? at_failed=false
38854 at_fn_diff_devnull "$at_stderr" || at_failed=:
38855 at_fn_diff_devnull "$at_stdout" || at_failed=:
38856 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
38857 $at_failed && at_fn_log_failure
38861 $as_echo "$at_srcdir/acls02.at:28:
38864 TEST_TAR_FORMAT=ustar
38865 export TEST_TAR_FORMAT
38866 TAR_OPTIONS=\"-H ustar\"
38871 file=\$(TMPDIR=. mktemp fiXXXXXX)
38873 setfattr -n user.test -v test \$file &> /dev/null
38874 if test \"\$?\" != 0; then
38879 getfattr \$file &> /dev/null
38880 if test \"\$?\" != 0; then
38887 file=\$(TMPDIR=. mktemp fiXXXXXX)
38889 setfacl -m u:\$UID:rwx \$file &> /dev/null
38890 if test \"\$?\" != 0; then
38895 getfacl \$file &> /dev/null
38896 if test \"\$?\" != 0; then
38902 file=\$(TMPDIR=. mktemp fiXXXXXX)
38903 setfacl -m u:\$UID:rwx \$file
38904 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38905 if test \"\$err\" != \"0\"; then
38912 genfile --file dir/subdir/file
38914 MYNAME=\$( id -un )
38916 setfacl -m u:\$MYNAME:--x dir/subdir
38917 setfacl -m u:\$MYNAME:--x dir/subdir/file
38920 getfattr -h -m. -d subdir subdir/file > ../before
38923 tar --acls -cf archive.tar -C dir subdir
38927 tar --acls -xf archive.tar -C dir
38930 getfattr -h -m. -d subdir subdir/file > ../after
38936 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
38940 TEST_TAR_FORMAT=ustar
38941 export TEST_TAR_FORMAT
38942 TAR_OPTIONS="-H ustar"
38947 file=$(TMPDIR=. mktemp fiXXXXXX)
38949 setfattr -n user.test -v test $file &> /dev/null
38950 if test "$?" != 0; then
38955 getfattr $file &> /dev/null
38956 if test "$?" != 0; then
38963 file=$(TMPDIR=. mktemp fiXXXXXX)
38965 setfacl -m u:$UID:rwx $file &> /dev/null
38966 if test "$?" != 0; then
38971 getfacl $file &> /dev/null
38972 if test "$?" != 0; then
38978 file=$(TMPDIR=. mktemp fiXXXXXX)
38979 setfacl -m u:$UID:rwx $file
38980 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38981 if test "$err" != "0"; then
38988 genfile --file dir/subdir/file
38992 setfacl -m u:$MYNAME:--x dir/subdir
38993 setfacl -m u:$MYNAME:--x dir/subdir/file
38996 getfattr -h -m. -d subdir subdir/file > ../before
38999 tar --acls -cf archive.tar -C dir subdir
39003 tar --acls -xf archive.tar -C dir
39006 getfattr -h -m. -d subdir subdir/file > ../after
39012 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39013 at_status=$? at_failed=false
39015 at_fn_diff_devnull "$at_stderr" || at_failed=:
39016 at_fn_diff_devnull "$at_stdout" || at_failed=:
39017 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39018 $at_failed && at_fn_log_failure
39022 $as_echo "$at_srcdir/acls02.at:28:
39025 TEST_TAR_FORMAT=posix
39026 export TEST_TAR_FORMAT
39027 TAR_OPTIONS=\"-H posix\"
39032 file=\$(TMPDIR=. mktemp fiXXXXXX)
39034 setfattr -n user.test -v test \$file &> /dev/null
39035 if test \"\$?\" != 0; then
39040 getfattr \$file &> /dev/null
39041 if test \"\$?\" != 0; then
39048 file=\$(TMPDIR=. mktemp fiXXXXXX)
39050 setfacl -m u:\$UID:rwx \$file &> /dev/null
39051 if test \"\$?\" != 0; then
39056 getfacl \$file &> /dev/null
39057 if test \"\$?\" != 0; then
39063 file=\$(TMPDIR=. mktemp fiXXXXXX)
39064 setfacl -m u:\$UID:rwx \$file
39065 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39066 if test \"\$err\" != \"0\"; then
39073 genfile --file dir/subdir/file
39075 MYNAME=\$( id -un )
39077 setfacl -m u:\$MYNAME:--x dir/subdir
39078 setfacl -m u:\$MYNAME:--x dir/subdir/file
39081 getfattr -h -m. -d subdir subdir/file > ../before
39084 tar --acls -cf archive.tar -C dir subdir
39088 tar --acls -xf archive.tar -C dir
39091 getfattr -h -m. -d subdir subdir/file > ../after
39097 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39101 TEST_TAR_FORMAT=posix
39102 export TEST_TAR_FORMAT
39103 TAR_OPTIONS="-H posix"
39108 file=$(TMPDIR=. mktemp fiXXXXXX)
39110 setfattr -n user.test -v test $file &> /dev/null
39111 if test "$?" != 0; then
39116 getfattr $file &> /dev/null
39117 if test "$?" != 0; then
39124 file=$(TMPDIR=. mktemp fiXXXXXX)
39126 setfacl -m u:$UID:rwx $file &> /dev/null
39127 if test "$?" != 0; then
39132 getfacl $file &> /dev/null
39133 if test "$?" != 0; then
39139 file=$(TMPDIR=. mktemp fiXXXXXX)
39140 setfacl -m u:$UID:rwx $file
39141 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39142 if test "$err" != "0"; then
39149 genfile --file dir/subdir/file
39153 setfacl -m u:$MYNAME:--x dir/subdir
39154 setfacl -m u:$MYNAME:--x dir/subdir/file
39157 getfattr -h -m. -d subdir subdir/file > ../before
39160 tar --acls -cf archive.tar -C dir subdir
39164 tar --acls -xf archive.tar -C dir
39167 getfattr -h -m. -d subdir subdir/file > ../after
39173 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39174 at_status=$? at_failed=false
39176 at_fn_diff_devnull "$at_stderr" || at_failed=:
39177 at_fn_diff_devnull "$at_stdout" || at_failed=:
39178 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39179 $at_failed && at_fn_log_failure
39183 $as_echo "$at_srcdir/acls02.at:28:
39186 TEST_TAR_FORMAT=gnu
39187 export TEST_TAR_FORMAT
39188 TAR_OPTIONS=\"-H gnu\"
39193 file=\$(TMPDIR=. mktemp fiXXXXXX)
39195 setfattr -n user.test -v test \$file &> /dev/null
39196 if test \"\$?\" != 0; then
39201 getfattr \$file &> /dev/null
39202 if test \"\$?\" != 0; then
39209 file=\$(TMPDIR=. mktemp fiXXXXXX)
39211 setfacl -m u:\$UID:rwx \$file &> /dev/null
39212 if test \"\$?\" != 0; then
39217 getfacl \$file &> /dev/null
39218 if test \"\$?\" != 0; then
39224 file=\$(TMPDIR=. mktemp fiXXXXXX)
39225 setfacl -m u:\$UID:rwx \$file
39226 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39227 if test \"\$err\" != \"0\"; then
39234 genfile --file dir/subdir/file
39236 MYNAME=\$( id -un )
39238 setfacl -m u:\$MYNAME:--x dir/subdir
39239 setfacl -m u:\$MYNAME:--x dir/subdir/file
39242 getfattr -h -m. -d subdir subdir/file > ../before
39245 tar --acls -cf archive.tar -C dir subdir
39249 tar --acls -xf archive.tar -C dir
39252 getfattr -h -m. -d subdir subdir/file > ../after
39258 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39262 TEST_TAR_FORMAT=gnu
39263 export TEST_TAR_FORMAT
39264 TAR_OPTIONS="-H gnu"
39269 file=$(TMPDIR=. mktemp fiXXXXXX)
39271 setfattr -n user.test -v test $file &> /dev/null
39272 if test "$?" != 0; then
39277 getfattr $file &> /dev/null
39278 if test "$?" != 0; then
39285 file=$(TMPDIR=. mktemp fiXXXXXX)
39287 setfacl -m u:$UID:rwx $file &> /dev/null
39288 if test "$?" != 0; then
39293 getfacl $file &> /dev/null
39294 if test "$?" != 0; then
39300 file=$(TMPDIR=. mktemp fiXXXXXX)
39301 setfacl -m u:$UID:rwx $file
39302 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39303 if test "$err" != "0"; then
39310 genfile --file dir/subdir/file
39314 setfacl -m u:$MYNAME:--x dir/subdir
39315 setfacl -m u:$MYNAME:--x dir/subdir/file
39318 getfattr -h -m. -d subdir subdir/file > ../before
39321 tar --acls -cf archive.tar -C dir subdir
39325 tar --acls -xf archive.tar -C dir
39328 getfattr -h -m. -d subdir subdir/file > ../after
39334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39335 at_status=$? at_failed=false
39337 at_fn_diff_devnull "$at_stderr" || at_failed=:
39338 at_fn_diff_devnull "$at_stdout" || at_failed=:
39339 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39340 $at_failed && at_fn_log_failure
39347 $at_times_p && times >"$at_times_file"
39348 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39349 read at_status <"$at_status_file"
39352 at_fn_group_banner 172 'selnx01.at:25' \
39353 "selinux: basic store/restore" " " 25
39355 test -f $XFAILFILE && at_xfail=yes
39357 $as_echo "172. $at_setup_line: testing $at_desc ..."
39365 $as_echo "$at_srcdir/selnx01.at:28:
39369 export TEST_TAR_FORMAT
39370 TAR_OPTIONS=\"-H v7\"
39375 file=\$(TMPDIR=. mktemp fiXXXXXX)
39377 setfattr -n user.test -v test \$file &> /dev/null
39378 if test \"\$?\" != 0; then
39383 getfattr \$file &> /dev/null
39384 if test \"\$?\" != 0; then
39391 file=\$(TMPDIR=. mktemp fiXXXXXX)
39393 restorecon \$file &> /dev/null
39394 if test \"\$?\" != 0; then
39399 chcon -h --user=unconfined_u \$file &> /dev/null
39400 if test \"\$?\" != 0; then
39406 file=\$(TMPDIR=. mktemp fiXXXXXX)
39407 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39408 if test \"\$err\" != \"0\"; then
39414 genfile --file dir/file
39415 ln -s file dir/link
39417 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39420 chcon -h --user=system_u dir
39421 chcon -h --user=unconfined_u dir/file
39422 chcon -h --user=system_u dir/link
39424 # archive whole directory including selinux contexts
39425 tar --selinux -cf archive.tar dir
39427 # clear the directory
39430 # ================================================
39431 # check if selinux contexts are correctly restored
39433 tar --selinux -xf archive.tar
39435 # archive for later debugging
39436 cp archive.tar archive_origin.tar
39438 # check if selinux contexts were restored
39439 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
39440 grep -v -e '^#' -e ^\$ | cut -d: -f1
39442 # ===========================================================================
39443 # check if selinux contexts are not restored when --selinux option is missing
39445 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
39447 tar -xf archive.tar
39448 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
39450 diff with_selinux without_selinux > diff_with_without
39451 if test \"\$?\" -eq \"0\"; then
39452 echo \"selinux contexts probably restored while --selinux is off\"
39455 # =================================================================
39456 # check if selinux is not archived when --selinux option is missing
39458 tar -cf archive.tar dir
39460 # clear the directory
39463 # restore (with --selinux)
39464 tar --selinux -xf archive.tar dir
39466 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
39467 diff start final > final_diff
39468 if test \"\$?\" -ne \"0\"; then
39469 echo \"bad result\"
39473 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
39478 export TEST_TAR_FORMAT
39479 TAR_OPTIONS="-H v7"
39484 file=$(TMPDIR=. mktemp fiXXXXXX)
39486 setfattr -n user.test -v test $file &> /dev/null
39487 if test "$?" != 0; then
39492 getfattr $file &> /dev/null
39493 if test "$?" != 0; then
39500 file=$(TMPDIR=. mktemp fiXXXXXX)
39502 restorecon $file &> /dev/null
39503 if test "$?" != 0; then
39508 chcon -h --user=unconfined_u $file &> /dev/null
39509 if test "$?" != 0; then
39515 file=$(TMPDIR=. mktemp fiXXXXXX)
39516 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39517 if test "$err" != "0"; then
39523 genfile --file dir/file
39524 ln -s file dir/link
39526 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39529 chcon -h --user=system_u dir
39530 chcon -h --user=unconfined_u dir/file
39531 chcon -h --user=system_u dir/link
39533 # archive whole directory including selinux contexts
39534 tar --selinux -cf archive.tar dir
39536 # clear the directory
39539 # ================================================
39540 # check if selinux contexts are correctly restored
39542 tar --selinux -xf archive.tar
39544 # archive for later debugging
39545 cp archive.tar archive_origin.tar
39547 # check if selinux contexts were restored
39548 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
39549 grep -v -e '^#' -e ^$ | cut -d: -f1
39551 # ===========================================================================
39552 # check if selinux contexts are not restored when --selinux option is missing
39554 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
39556 tar -xf archive.tar
39557 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
39559 diff with_selinux without_selinux > diff_with_without
39560 if test "$?" -eq "0"; then
39561 echo "selinux contexts probably restored while --selinux is off"
39564 # =================================================================
39565 # check if selinux is not archived when --selinux option is missing
39567 tar -cf archive.tar dir
39569 # clear the directory
39572 # restore (with --selinux)
39573 tar --selinux -xf archive.tar dir
39575 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
39576 diff start final > final_diff
39577 if test "$?" -ne "0"; then
39582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39583 at_status=$? at_failed=false
39585 at_fn_diff_devnull "$at_stderr" || at_failed=:
39586 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
39587 security.selinux=\"unconfined_u
39588 security.selinux=\"system_u
39590 $at_diff - "$at_stdout" || at_failed=:
39591 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
39592 $at_failed && at_fn_log_failure
39596 $as_echo "$at_srcdir/selnx01.at:28:
39599 TEST_TAR_FORMAT=oldgnu
39600 export TEST_TAR_FORMAT
39601 TAR_OPTIONS=\"-H oldgnu\"
39606 file=\$(TMPDIR=. mktemp fiXXXXXX)
39608 setfattr -n user.test -v test \$file &> /dev/null
39609 if test \"\$?\" != 0; then
39614 getfattr \$file &> /dev/null
39615 if test \"\$?\" != 0; then
39622 file=\$(TMPDIR=. mktemp fiXXXXXX)
39624 restorecon \$file &> /dev/null
39625 if test \"\$?\" != 0; then
39630 chcon -h --user=unconfined_u \$file &> /dev/null
39631 if test \"\$?\" != 0; then
39637 file=\$(TMPDIR=. mktemp fiXXXXXX)
39638 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39639 if test \"\$err\" != \"0\"; then
39645 genfile --file dir/file
39646 ln -s file dir/link
39648 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39651 chcon -h --user=system_u dir
39652 chcon -h --user=unconfined_u dir/file
39653 chcon -h --user=system_u dir/link
39655 # archive whole directory including selinux contexts
39656 tar --selinux -cf archive.tar dir
39658 # clear the directory
39661 # ================================================
39662 # check if selinux contexts are correctly restored
39664 tar --selinux -xf archive.tar
39666 # archive for later debugging
39667 cp archive.tar archive_origin.tar
39669 # check if selinux contexts were restored
39670 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
39671 grep -v -e '^#' -e ^\$ | cut -d: -f1
39673 # ===========================================================================
39674 # check if selinux contexts are not restored when --selinux option is missing
39676 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
39678 tar -xf archive.tar
39679 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
39681 diff with_selinux without_selinux > diff_with_without
39682 if test \"\$?\" -eq \"0\"; then
39683 echo \"selinux contexts probably restored while --selinux is off\"
39686 # =================================================================
39687 # check if selinux is not archived when --selinux option is missing
39689 tar -cf archive.tar dir
39691 # clear the directory
39694 # restore (with --selinux)
39695 tar --selinux -xf archive.tar dir
39697 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
39698 diff start final > final_diff
39699 if test \"\$?\" -ne \"0\"; then
39700 echo \"bad result\"
39704 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
39708 TEST_TAR_FORMAT=oldgnu
39709 export TEST_TAR_FORMAT
39710 TAR_OPTIONS="-H oldgnu"
39715 file=$(TMPDIR=. mktemp fiXXXXXX)
39717 setfattr -n user.test -v test $file &> /dev/null
39718 if test "$?" != 0; then
39723 getfattr $file &> /dev/null
39724 if test "$?" != 0; then
39731 file=$(TMPDIR=. mktemp fiXXXXXX)
39733 restorecon $file &> /dev/null
39734 if test "$?" != 0; then
39739 chcon -h --user=unconfined_u $file &> /dev/null
39740 if test "$?" != 0; then
39746 file=$(TMPDIR=. mktemp fiXXXXXX)
39747 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39748 if test "$err" != "0"; then
39754 genfile --file dir/file
39755 ln -s file dir/link
39757 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39760 chcon -h --user=system_u dir
39761 chcon -h --user=unconfined_u dir/file
39762 chcon -h --user=system_u dir/link
39764 # archive whole directory including selinux contexts
39765 tar --selinux -cf archive.tar dir
39767 # clear the directory
39770 # ================================================
39771 # check if selinux contexts are correctly restored
39773 tar --selinux -xf archive.tar
39775 # archive for later debugging
39776 cp archive.tar archive_origin.tar
39778 # check if selinux contexts were restored
39779 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
39780 grep -v -e '^#' -e ^$ | cut -d: -f1
39782 # ===========================================================================
39783 # check if selinux contexts are not restored when --selinux option is missing
39785 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
39787 tar -xf archive.tar
39788 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
39790 diff with_selinux without_selinux > diff_with_without
39791 if test "$?" -eq "0"; then
39792 echo "selinux contexts probably restored while --selinux is off"
39795 # =================================================================
39796 # check if selinux is not archived when --selinux option is missing
39798 tar -cf archive.tar dir
39800 # clear the directory
39803 # restore (with --selinux)
39804 tar --selinux -xf archive.tar dir
39806 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
39807 diff start final > final_diff
39808 if test "$?" -ne "0"; then
39813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39814 at_status=$? at_failed=false
39816 at_fn_diff_devnull "$at_stderr" || at_failed=:
39817 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
39818 security.selinux=\"unconfined_u
39819 security.selinux=\"system_u
39821 $at_diff - "$at_stdout" || at_failed=:
39822 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
39823 $at_failed && at_fn_log_failure
39827 $as_echo "$at_srcdir/selnx01.at:28:
39830 TEST_TAR_FORMAT=ustar
39831 export TEST_TAR_FORMAT
39832 TAR_OPTIONS=\"-H ustar\"
39837 file=\$(TMPDIR=. mktemp fiXXXXXX)
39839 setfattr -n user.test -v test \$file &> /dev/null
39840 if test \"\$?\" != 0; then
39845 getfattr \$file &> /dev/null
39846 if test \"\$?\" != 0; then
39853 file=\$(TMPDIR=. mktemp fiXXXXXX)
39855 restorecon \$file &> /dev/null
39856 if test \"\$?\" != 0; then
39861 chcon -h --user=unconfined_u \$file &> /dev/null
39862 if test \"\$?\" != 0; then
39868 file=\$(TMPDIR=. mktemp fiXXXXXX)
39869 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39870 if test \"\$err\" != \"0\"; then
39876 genfile --file dir/file
39877 ln -s file dir/link
39879 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39882 chcon -h --user=system_u dir
39883 chcon -h --user=unconfined_u dir/file
39884 chcon -h --user=system_u dir/link
39886 # archive whole directory including selinux contexts
39887 tar --selinux -cf archive.tar dir
39889 # clear the directory
39892 # ================================================
39893 # check if selinux contexts are correctly restored
39895 tar --selinux -xf archive.tar
39897 # archive for later debugging
39898 cp archive.tar archive_origin.tar
39900 # check if selinux contexts were restored
39901 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
39902 grep -v -e '^#' -e ^\$ | cut -d: -f1
39904 # ===========================================================================
39905 # check if selinux contexts are not restored when --selinux option is missing
39907 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
39909 tar -xf archive.tar
39910 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
39912 diff with_selinux without_selinux > diff_with_without
39913 if test \"\$?\" -eq \"0\"; then
39914 echo \"selinux contexts probably restored while --selinux is off\"
39917 # =================================================================
39918 # check if selinux is not archived when --selinux option is missing
39920 tar -cf archive.tar dir
39922 # clear the directory
39925 # restore (with --selinux)
39926 tar --selinux -xf archive.tar dir
39928 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
39929 diff start final > final_diff
39930 if test \"\$?\" -ne \"0\"; then
39931 echo \"bad result\"
39935 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
39939 TEST_TAR_FORMAT=ustar
39940 export TEST_TAR_FORMAT
39941 TAR_OPTIONS="-H ustar"
39946 file=$(TMPDIR=. mktemp fiXXXXXX)
39948 setfattr -n user.test -v test $file &> /dev/null
39949 if test "$?" != 0; then
39954 getfattr $file &> /dev/null
39955 if test "$?" != 0; then
39962 file=$(TMPDIR=. mktemp fiXXXXXX)
39964 restorecon $file &> /dev/null
39965 if test "$?" != 0; then
39970 chcon -h --user=unconfined_u $file &> /dev/null
39971 if test "$?" != 0; then
39977 file=$(TMPDIR=. mktemp fiXXXXXX)
39978 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39979 if test "$err" != "0"; then
39985 genfile --file dir/file
39986 ln -s file dir/link
39988 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
39991 chcon -h --user=system_u dir
39992 chcon -h --user=unconfined_u dir/file
39993 chcon -h --user=system_u dir/link
39995 # archive whole directory including selinux contexts
39996 tar --selinux -cf archive.tar dir
39998 # clear the directory
40001 # ================================================
40002 # check if selinux contexts are correctly restored
40004 tar --selinux -xf archive.tar
40006 # archive for later debugging
40007 cp archive.tar archive_origin.tar
40009 # check if selinux contexts were restored
40010 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
40011 grep -v -e '^#' -e ^$ | cut -d: -f1
40013 # ===========================================================================
40014 # check if selinux contexts are not restored when --selinux option is missing
40016 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
40018 tar -xf archive.tar
40019 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
40021 diff with_selinux without_selinux > diff_with_without
40022 if test "$?" -eq "0"; then
40023 echo "selinux contexts probably restored while --selinux is off"
40026 # =================================================================
40027 # check if selinux is not archived when --selinux option is missing
40029 tar -cf archive.tar dir
40031 # clear the directory
40034 # restore (with --selinux)
40035 tar --selinux -xf archive.tar dir
40037 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
40038 diff start final > final_diff
40039 if test "$?" -ne "0"; then
40044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40045 at_status=$? at_failed=false
40047 at_fn_diff_devnull "$at_stderr" || at_failed=:
40048 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
40049 security.selinux=\"unconfined_u
40050 security.selinux=\"system_u
40052 $at_diff - "$at_stdout" || at_failed=:
40053 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
40054 $at_failed && at_fn_log_failure
40058 $as_echo "$at_srcdir/selnx01.at:28:
40061 TEST_TAR_FORMAT=posix
40062 export TEST_TAR_FORMAT
40063 TAR_OPTIONS=\"-H posix\"
40068 file=\$(TMPDIR=. mktemp fiXXXXXX)
40070 setfattr -n user.test -v test \$file &> /dev/null
40071 if test \"\$?\" != 0; then
40076 getfattr \$file &> /dev/null
40077 if test \"\$?\" != 0; then
40084 file=\$(TMPDIR=. mktemp fiXXXXXX)
40086 restorecon \$file &> /dev/null
40087 if test \"\$?\" != 0; then
40092 chcon -h --user=unconfined_u \$file &> /dev/null
40093 if test \"\$?\" != 0; then
40099 file=\$(TMPDIR=. mktemp fiXXXXXX)
40100 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40101 if test \"\$err\" != \"0\"; then
40107 genfile --file dir/file
40108 ln -s file dir/link
40110 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
40113 chcon -h --user=system_u dir
40114 chcon -h --user=unconfined_u dir/file
40115 chcon -h --user=system_u dir/link
40117 # archive whole directory including selinux contexts
40118 tar --selinux -cf archive.tar dir
40120 # clear the directory
40123 # ================================================
40124 # check if selinux contexts are correctly restored
40126 tar --selinux -xf archive.tar
40128 # archive for later debugging
40129 cp archive.tar archive_origin.tar
40131 # check if selinux contexts were restored
40132 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
40133 grep -v -e '^#' -e ^\$ | cut -d: -f1
40135 # ===========================================================================
40136 # check if selinux contexts are not restored when --selinux option is missing
40138 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
40140 tar -xf archive.tar
40141 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
40143 diff with_selinux without_selinux > diff_with_without
40144 if test \"\$?\" -eq \"0\"; then
40145 echo \"selinux contexts probably restored while --selinux is off\"
40148 # =================================================================
40149 # check if selinux is not archived when --selinux option is missing
40151 tar -cf archive.tar dir
40153 # clear the directory
40156 # restore (with --selinux)
40157 tar --selinux -xf archive.tar dir
40159 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
40160 diff start final > final_diff
40161 if test \"\$?\" -ne \"0\"; then
40162 echo \"bad result\"
40166 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
40170 TEST_TAR_FORMAT=posix
40171 export TEST_TAR_FORMAT
40172 TAR_OPTIONS="-H posix"
40177 file=$(TMPDIR=. mktemp fiXXXXXX)
40179 setfattr -n user.test -v test $file &> /dev/null
40180 if test "$?" != 0; then
40185 getfattr $file &> /dev/null
40186 if test "$?" != 0; then
40193 file=$(TMPDIR=. mktemp fiXXXXXX)
40195 restorecon $file &> /dev/null
40196 if test "$?" != 0; then
40201 chcon -h --user=unconfined_u $file &> /dev/null
40202 if test "$?" != 0; then
40208 file=$(TMPDIR=. mktemp fiXXXXXX)
40209 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40210 if test "$err" != "0"; then
40216 genfile --file dir/file
40217 ln -s file dir/link
40219 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
40222 chcon -h --user=system_u dir
40223 chcon -h --user=unconfined_u dir/file
40224 chcon -h --user=system_u dir/link
40226 # archive whole directory including selinux contexts
40227 tar --selinux -cf archive.tar dir
40229 # clear the directory
40232 # ================================================
40233 # check if selinux contexts are correctly restored
40235 tar --selinux -xf archive.tar
40237 # archive for later debugging
40238 cp archive.tar archive_origin.tar
40240 # check if selinux contexts were restored
40241 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
40242 grep -v -e '^#' -e ^$ | cut -d: -f1
40244 # ===========================================================================
40245 # check if selinux contexts are not restored when --selinux option is missing
40247 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
40249 tar -xf archive.tar
40250 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
40252 diff with_selinux without_selinux > diff_with_without
40253 if test "$?" -eq "0"; then
40254 echo "selinux contexts probably restored while --selinux is off"
40257 # =================================================================
40258 # check if selinux is not archived when --selinux option is missing
40260 tar -cf archive.tar dir
40262 # clear the directory
40265 # restore (with --selinux)
40266 tar --selinux -xf archive.tar dir
40268 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
40269 diff start final > final_diff
40270 if test "$?" -ne "0"; then
40275 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40276 at_status=$? at_failed=false
40278 at_fn_diff_devnull "$at_stderr" || at_failed=:
40279 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
40280 security.selinux=\"unconfined_u
40281 security.selinux=\"system_u
40283 $at_diff - "$at_stdout" || at_failed=:
40284 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
40285 $at_failed && at_fn_log_failure
40289 $as_echo "$at_srcdir/selnx01.at:28:
40292 TEST_TAR_FORMAT=gnu
40293 export TEST_TAR_FORMAT
40294 TAR_OPTIONS=\"-H gnu\"
40299 file=\$(TMPDIR=. mktemp fiXXXXXX)
40301 setfattr -n user.test -v test \$file &> /dev/null
40302 if test \"\$?\" != 0; then
40307 getfattr \$file &> /dev/null
40308 if test \"\$?\" != 0; then
40315 file=\$(TMPDIR=. mktemp fiXXXXXX)
40317 restorecon \$file &> /dev/null
40318 if test \"\$?\" != 0; then
40323 chcon -h --user=unconfined_u \$file &> /dev/null
40324 if test \"\$?\" != 0; then
40330 file=\$(TMPDIR=. mktemp fiXXXXXX)
40331 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40332 if test \"\$err\" != \"0\"; then
40338 genfile --file dir/file
40339 ln -s file dir/link
40341 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
40344 chcon -h --user=system_u dir
40345 chcon -h --user=unconfined_u dir/file
40346 chcon -h --user=system_u dir/link
40348 # archive whole directory including selinux contexts
40349 tar --selinux -cf archive.tar dir
40351 # clear the directory
40354 # ================================================
40355 # check if selinux contexts are correctly restored
40357 tar --selinux -xf archive.tar
40359 # archive for later debugging
40360 cp archive.tar archive_origin.tar
40362 # check if selinux contexts were restored
40363 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
40364 grep -v -e '^#' -e ^\$ | cut -d: -f1
40366 # ===========================================================================
40367 # check if selinux contexts are not restored when --selinux option is missing
40369 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
40371 tar -xf archive.tar
40372 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
40374 diff with_selinux without_selinux > diff_with_without
40375 if test \"\$?\" -eq \"0\"; then
40376 echo \"selinux contexts probably restored while --selinux is off\"
40379 # =================================================================
40380 # check if selinux is not archived when --selinux option is missing
40382 tar -cf archive.tar dir
40384 # clear the directory
40387 # restore (with --selinux)
40388 tar --selinux -xf archive.tar dir
40390 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
40391 diff start final > final_diff
40392 if test \"\$?\" -ne \"0\"; then
40393 echo \"bad result\"
40397 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
40401 TEST_TAR_FORMAT=gnu
40402 export TEST_TAR_FORMAT
40403 TAR_OPTIONS="-H gnu"
40408 file=$(TMPDIR=. mktemp fiXXXXXX)
40410 setfattr -n user.test -v test $file &> /dev/null
40411 if test "$?" != 0; then
40416 getfattr $file &> /dev/null
40417 if test "$?" != 0; then
40424 file=$(TMPDIR=. mktemp fiXXXXXX)
40426 restorecon $file &> /dev/null
40427 if test "$?" != 0; then
40432 chcon -h --user=unconfined_u $file &> /dev/null
40433 if test "$?" != 0; then
40439 file=$(TMPDIR=. mktemp fiXXXXXX)
40440 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40441 if test "$err" != "0"; then
40447 genfile --file dir/file
40448 ln -s file dir/link
40450 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
40453 chcon -h --user=system_u dir
40454 chcon -h --user=unconfined_u dir/file
40455 chcon -h --user=system_u dir/link
40457 # archive whole directory including selinux contexts
40458 tar --selinux -cf archive.tar dir
40460 # clear the directory
40463 # ================================================
40464 # check if selinux contexts are correctly restored
40466 tar --selinux -xf archive.tar
40468 # archive for later debugging
40469 cp archive.tar archive_origin.tar
40471 # check if selinux contexts were restored
40472 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
40473 grep -v -e '^#' -e ^$ | cut -d: -f1
40475 # ===========================================================================
40476 # check if selinux contexts are not restored when --selinux option is missing
40478 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
40480 tar -xf archive.tar
40481 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
40483 diff with_selinux without_selinux > diff_with_without
40484 if test "$?" -eq "0"; then
40485 echo "selinux contexts probably restored while --selinux is off"
40488 # =================================================================
40489 # check if selinux is not archived when --selinux option is missing
40491 tar -cf archive.tar dir
40493 # clear the directory
40496 # restore (with --selinux)
40497 tar --selinux -xf archive.tar dir
40499 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
40500 diff start final > final_diff
40501 if test "$?" -ne "0"; then
40506 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40507 at_status=$? at_failed=false
40509 at_fn_diff_devnull "$at_stderr" || at_failed=:
40510 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
40511 security.selinux=\"unconfined_u
40512 security.selinux=\"system_u
40514 $at_diff - "$at_stdout" || at_failed=:
40515 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
40516 $at_failed && at_fn_log_failure
40523 $at_times_p && times >"$at_times_file"
40524 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40525 read at_status <"$at_status_file"
40528 at_fn_group_banner 173 'selacl01.at:25' \
40529 "acls/selinux: special files & fifos" " " 25
40531 test -f $XFAILFILE && at_xfail=yes
40533 $as_echo "173. $at_setup_line: testing $at_desc ..."
40541 $as_echo "$at_srcdir/selacl01.at:28:
40545 export TEST_TAR_FORMAT
40546 TAR_OPTIONS=\"-H v7\"
40551 echo \"test\" > \$\$
40553 cat \$\$ > /dev/null 2>&1
40556 test \$result -eq 0 || exit 77
40559 file=\$(TMPDIR=. mktemp fiXXXXXX)
40561 setfattr -n user.test -v test \$file &> /dev/null
40562 if test \"\$?\" != 0; then
40567 getfattr \$file &> /dev/null
40568 if test \"\$?\" != 0; then
40575 file=\$(TMPDIR=. mktemp fiXXXXXX)
40577 restorecon \$file &> /dev/null
40578 if test \"\$?\" != 0; then
40583 chcon -h --user=unconfined_u \$file &> /dev/null
40584 if test \"\$?\" != 0; then
40590 file=\$(TMPDIR=. mktemp fiXXXXXX)
40591 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40592 if test \"\$err\" != \"0\"; then
40598 file=\$(TMPDIR=. mktemp fiXXXXXX)
40600 setfacl -m u:\$UID:rwx \$file &> /dev/null
40601 if test \"\$?\" != 0; then
40606 getfacl \$file &> /dev/null
40607 if test \"\$?\" != 0; then
40613 file=\$(TMPDIR=. mktemp fiXXXXXX)
40614 setfacl -m u:\$UID:rwx \$file
40615 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40616 if test \"\$err\" != \"0\"; then
40623 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
40624 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
40625 mknod dir/chartype c \$MAJOR \$MINOR
40629 chcon -h --user=system_u dir/fifo
40630 chcon -h --user=system_u dir/chartype
40631 setfacl -m u:\$UID:--- dir/fifo
40632 setfacl -m u:\$UID:rwx dir/chartype
40634 getfacl dir/fifo >> before
40635 getfattr -msecurity.selinux dir/chartype >> before
40637 tar --xattrs --selinux --acls -cf archive.tar dir
40641 tar --xattrs --selinux --acls -xf archive.tar
40643 getfacl dir/fifo >> after
40644 getfattr -msecurity.selinux dir/chartype >> after
40649 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
40654 export TEST_TAR_FORMAT
40655 TAR_OPTIONS="-H v7"
40662 cat $$ > /dev/null 2>&1
40665 test $result -eq 0 || exit 77
40668 file=$(TMPDIR=. mktemp fiXXXXXX)
40670 setfattr -n user.test -v test $file &> /dev/null
40671 if test "$?" != 0; then
40676 getfattr $file &> /dev/null
40677 if test "$?" != 0; then
40684 file=$(TMPDIR=. mktemp fiXXXXXX)
40686 restorecon $file &> /dev/null
40687 if test "$?" != 0; then
40692 chcon -h --user=unconfined_u $file &> /dev/null
40693 if test "$?" != 0; then
40699 file=$(TMPDIR=. mktemp fiXXXXXX)
40700 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40701 if test "$err" != "0"; then
40707 file=$(TMPDIR=. mktemp fiXXXXXX)
40709 setfacl -m u:$UID:rwx $file &> /dev/null
40710 if test "$?" != 0; then
40715 getfacl $file &> /dev/null
40716 if test "$?" != 0; then
40722 file=$(TMPDIR=. mktemp fiXXXXXX)
40723 setfacl -m u:$UID:rwx $file
40724 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40725 if test "$err" != "0"; then
40732 MAJOR=$( stat /dev/urandom --printf="%t" )
40733 MINOR=$( stat /dev/urandom --printf="%T" )
40734 mknod dir/chartype c $MAJOR $MINOR
40738 chcon -h --user=system_u dir/fifo
40739 chcon -h --user=system_u dir/chartype
40740 setfacl -m u:$UID:--- dir/fifo
40741 setfacl -m u:$UID:rwx dir/chartype
40743 getfacl dir/fifo >> before
40744 getfattr -msecurity.selinux dir/chartype >> before
40746 tar --xattrs --selinux --acls -cf archive.tar dir
40750 tar --xattrs --selinux --acls -xf archive.tar
40752 getfacl dir/fifo >> after
40753 getfattr -msecurity.selinux dir/chartype >> after
40758 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40759 at_status=$? at_failed=false
40761 at_fn_diff_devnull "$at_stderr" || at_failed=:
40762 echo >>"$at_stdout"; $as_echo "separator
40764 $at_diff - "$at_stdout" || at_failed=:
40765 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
40766 $at_failed && at_fn_log_failure
40770 $as_echo "$at_srcdir/selacl01.at:28:
40773 TEST_TAR_FORMAT=oldgnu
40774 export TEST_TAR_FORMAT
40775 TAR_OPTIONS=\"-H oldgnu\"
40780 echo \"test\" > \$\$
40782 cat \$\$ > /dev/null 2>&1
40785 test \$result -eq 0 || exit 77
40788 file=\$(TMPDIR=. mktemp fiXXXXXX)
40790 setfattr -n user.test -v test \$file &> /dev/null
40791 if test \"\$?\" != 0; then
40796 getfattr \$file &> /dev/null
40797 if test \"\$?\" != 0; then
40804 file=\$(TMPDIR=. mktemp fiXXXXXX)
40806 restorecon \$file &> /dev/null
40807 if test \"\$?\" != 0; then
40812 chcon -h --user=unconfined_u \$file &> /dev/null
40813 if test \"\$?\" != 0; then
40819 file=\$(TMPDIR=. mktemp fiXXXXXX)
40820 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40821 if test \"\$err\" != \"0\"; then
40827 file=\$(TMPDIR=. mktemp fiXXXXXX)
40829 setfacl -m u:\$UID:rwx \$file &> /dev/null
40830 if test \"\$?\" != 0; then
40835 getfacl \$file &> /dev/null
40836 if test \"\$?\" != 0; then
40842 file=\$(TMPDIR=. mktemp fiXXXXXX)
40843 setfacl -m u:\$UID:rwx \$file
40844 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40845 if test \"\$err\" != \"0\"; then
40852 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
40853 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
40854 mknod dir/chartype c \$MAJOR \$MINOR
40858 chcon -h --user=system_u dir/fifo
40859 chcon -h --user=system_u dir/chartype
40860 setfacl -m u:\$UID:--- dir/fifo
40861 setfacl -m u:\$UID:rwx dir/chartype
40863 getfacl dir/fifo >> before
40864 getfattr -msecurity.selinux dir/chartype >> before
40866 tar --xattrs --selinux --acls -cf archive.tar dir
40870 tar --xattrs --selinux --acls -xf archive.tar
40872 getfacl dir/fifo >> after
40873 getfattr -msecurity.selinux dir/chartype >> after
40878 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
40882 TEST_TAR_FORMAT=oldgnu
40883 export TEST_TAR_FORMAT
40884 TAR_OPTIONS="-H oldgnu"
40891 cat $$ > /dev/null 2>&1
40894 test $result -eq 0 || exit 77
40897 file=$(TMPDIR=. mktemp fiXXXXXX)
40899 setfattr -n user.test -v test $file &> /dev/null
40900 if test "$?" != 0; then
40905 getfattr $file &> /dev/null
40906 if test "$?" != 0; then
40913 file=$(TMPDIR=. mktemp fiXXXXXX)
40915 restorecon $file &> /dev/null
40916 if test "$?" != 0; then
40921 chcon -h --user=unconfined_u $file &> /dev/null
40922 if test "$?" != 0; then
40928 file=$(TMPDIR=. mktemp fiXXXXXX)
40929 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40930 if test "$err" != "0"; then
40936 file=$(TMPDIR=. mktemp fiXXXXXX)
40938 setfacl -m u:$UID:rwx $file &> /dev/null
40939 if test "$?" != 0; then
40944 getfacl $file &> /dev/null
40945 if test "$?" != 0; then
40951 file=$(TMPDIR=. mktemp fiXXXXXX)
40952 setfacl -m u:$UID:rwx $file
40953 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40954 if test "$err" != "0"; then
40961 MAJOR=$( stat /dev/urandom --printf="%t" )
40962 MINOR=$( stat /dev/urandom --printf="%T" )
40963 mknod dir/chartype c $MAJOR $MINOR
40967 chcon -h --user=system_u dir/fifo
40968 chcon -h --user=system_u dir/chartype
40969 setfacl -m u:$UID:--- dir/fifo
40970 setfacl -m u:$UID:rwx dir/chartype
40972 getfacl dir/fifo >> before
40973 getfattr -msecurity.selinux dir/chartype >> before
40975 tar --xattrs --selinux --acls -cf archive.tar dir
40979 tar --xattrs --selinux --acls -xf archive.tar
40981 getfacl dir/fifo >> after
40982 getfattr -msecurity.selinux dir/chartype >> after
40987 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40988 at_status=$? at_failed=false
40990 at_fn_diff_devnull "$at_stderr" || at_failed=:
40991 echo >>"$at_stdout"; $as_echo "separator
40993 $at_diff - "$at_stdout" || at_failed=:
40994 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
40995 $at_failed && at_fn_log_failure
40999 $as_echo "$at_srcdir/selacl01.at:28:
41002 TEST_TAR_FORMAT=ustar
41003 export TEST_TAR_FORMAT
41004 TAR_OPTIONS=\"-H ustar\"
41009 echo \"test\" > \$\$
41011 cat \$\$ > /dev/null 2>&1
41014 test \$result -eq 0 || exit 77
41017 file=\$(TMPDIR=. mktemp fiXXXXXX)
41019 setfattr -n user.test -v test \$file &> /dev/null
41020 if test \"\$?\" != 0; then
41025 getfattr \$file &> /dev/null
41026 if test \"\$?\" != 0; then
41033 file=\$(TMPDIR=. mktemp fiXXXXXX)
41035 restorecon \$file &> /dev/null
41036 if test \"\$?\" != 0; then
41041 chcon -h --user=unconfined_u \$file &> /dev/null
41042 if test \"\$?\" != 0; then
41048 file=\$(TMPDIR=. mktemp fiXXXXXX)
41049 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41050 if test \"\$err\" != \"0\"; then
41056 file=\$(TMPDIR=. mktemp fiXXXXXX)
41058 setfacl -m u:\$UID:rwx \$file &> /dev/null
41059 if test \"\$?\" != 0; then
41064 getfacl \$file &> /dev/null
41065 if test \"\$?\" != 0; then
41071 file=\$(TMPDIR=. mktemp fiXXXXXX)
41072 setfacl -m u:\$UID:rwx \$file
41073 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41074 if test \"\$err\" != \"0\"; then
41081 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
41082 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
41083 mknod dir/chartype c \$MAJOR \$MINOR
41087 chcon -h --user=system_u dir/fifo
41088 chcon -h --user=system_u dir/chartype
41089 setfacl -m u:\$UID:--- dir/fifo
41090 setfacl -m u:\$UID:rwx dir/chartype
41092 getfacl dir/fifo >> before
41093 getfattr -msecurity.selinux dir/chartype >> before
41095 tar --xattrs --selinux --acls -cf archive.tar dir
41099 tar --xattrs --selinux --acls -xf archive.tar
41101 getfacl dir/fifo >> after
41102 getfattr -msecurity.selinux dir/chartype >> after
41107 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
41111 TEST_TAR_FORMAT=ustar
41112 export TEST_TAR_FORMAT
41113 TAR_OPTIONS="-H ustar"
41120 cat $$ > /dev/null 2>&1
41123 test $result -eq 0 || exit 77
41126 file=$(TMPDIR=. mktemp fiXXXXXX)
41128 setfattr -n user.test -v test $file &> /dev/null
41129 if test "$?" != 0; then
41134 getfattr $file &> /dev/null
41135 if test "$?" != 0; then
41142 file=$(TMPDIR=. mktemp fiXXXXXX)
41144 restorecon $file &> /dev/null
41145 if test "$?" != 0; then
41150 chcon -h --user=unconfined_u $file &> /dev/null
41151 if test "$?" != 0; then
41157 file=$(TMPDIR=. mktemp fiXXXXXX)
41158 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41159 if test "$err" != "0"; then
41165 file=$(TMPDIR=. mktemp fiXXXXXX)
41167 setfacl -m u:$UID:rwx $file &> /dev/null
41168 if test "$?" != 0; then
41173 getfacl $file &> /dev/null
41174 if test "$?" != 0; then
41180 file=$(TMPDIR=. mktemp fiXXXXXX)
41181 setfacl -m u:$UID:rwx $file
41182 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41183 if test "$err" != "0"; then
41190 MAJOR=$( stat /dev/urandom --printf="%t" )
41191 MINOR=$( stat /dev/urandom --printf="%T" )
41192 mknod dir/chartype c $MAJOR $MINOR
41196 chcon -h --user=system_u dir/fifo
41197 chcon -h --user=system_u dir/chartype
41198 setfacl -m u:$UID:--- dir/fifo
41199 setfacl -m u:$UID:rwx dir/chartype
41201 getfacl dir/fifo >> before
41202 getfattr -msecurity.selinux dir/chartype >> before
41204 tar --xattrs --selinux --acls -cf archive.tar dir
41208 tar --xattrs --selinux --acls -xf archive.tar
41210 getfacl dir/fifo >> after
41211 getfattr -msecurity.selinux dir/chartype >> after
41216 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41217 at_status=$? at_failed=false
41219 at_fn_diff_devnull "$at_stderr" || at_failed=:
41220 echo >>"$at_stdout"; $as_echo "separator
41222 $at_diff - "$at_stdout" || at_failed=:
41223 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
41224 $at_failed && at_fn_log_failure
41228 $as_echo "$at_srcdir/selacl01.at:28:
41231 TEST_TAR_FORMAT=posix
41232 export TEST_TAR_FORMAT
41233 TAR_OPTIONS=\"-H posix\"
41238 echo \"test\" > \$\$
41240 cat \$\$ > /dev/null 2>&1
41243 test \$result -eq 0 || exit 77
41246 file=\$(TMPDIR=. mktemp fiXXXXXX)
41248 setfattr -n user.test -v test \$file &> /dev/null
41249 if test \"\$?\" != 0; then
41254 getfattr \$file &> /dev/null
41255 if test \"\$?\" != 0; then
41262 file=\$(TMPDIR=. mktemp fiXXXXXX)
41264 restorecon \$file &> /dev/null
41265 if test \"\$?\" != 0; then
41270 chcon -h --user=unconfined_u \$file &> /dev/null
41271 if test \"\$?\" != 0; then
41277 file=\$(TMPDIR=. mktemp fiXXXXXX)
41278 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41279 if test \"\$err\" != \"0\"; then
41285 file=\$(TMPDIR=. mktemp fiXXXXXX)
41287 setfacl -m u:\$UID:rwx \$file &> /dev/null
41288 if test \"\$?\" != 0; then
41293 getfacl \$file &> /dev/null
41294 if test \"\$?\" != 0; then
41300 file=\$(TMPDIR=. mktemp fiXXXXXX)
41301 setfacl -m u:\$UID:rwx \$file
41302 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41303 if test \"\$err\" != \"0\"; then
41310 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
41311 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
41312 mknod dir/chartype c \$MAJOR \$MINOR
41316 chcon -h --user=system_u dir/fifo
41317 chcon -h --user=system_u dir/chartype
41318 setfacl -m u:\$UID:--- dir/fifo
41319 setfacl -m u:\$UID:rwx dir/chartype
41321 getfacl dir/fifo >> before
41322 getfattr -msecurity.selinux dir/chartype >> before
41324 tar --xattrs --selinux --acls -cf archive.tar dir
41328 tar --xattrs --selinux --acls -xf archive.tar
41330 getfacl dir/fifo >> after
41331 getfattr -msecurity.selinux dir/chartype >> after
41336 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
41340 TEST_TAR_FORMAT=posix
41341 export TEST_TAR_FORMAT
41342 TAR_OPTIONS="-H posix"
41349 cat $$ > /dev/null 2>&1
41352 test $result -eq 0 || exit 77
41355 file=$(TMPDIR=. mktemp fiXXXXXX)
41357 setfattr -n user.test -v test $file &> /dev/null
41358 if test "$?" != 0; then
41363 getfattr $file &> /dev/null
41364 if test "$?" != 0; then
41371 file=$(TMPDIR=. mktemp fiXXXXXX)
41373 restorecon $file &> /dev/null
41374 if test "$?" != 0; then
41379 chcon -h --user=unconfined_u $file &> /dev/null
41380 if test "$?" != 0; then
41386 file=$(TMPDIR=. mktemp fiXXXXXX)
41387 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41388 if test "$err" != "0"; then
41394 file=$(TMPDIR=. mktemp fiXXXXXX)
41396 setfacl -m u:$UID:rwx $file &> /dev/null
41397 if test "$?" != 0; then
41402 getfacl $file &> /dev/null
41403 if test "$?" != 0; then
41409 file=$(TMPDIR=. mktemp fiXXXXXX)
41410 setfacl -m u:$UID:rwx $file
41411 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41412 if test "$err" != "0"; then
41419 MAJOR=$( stat /dev/urandom --printf="%t" )
41420 MINOR=$( stat /dev/urandom --printf="%T" )
41421 mknod dir/chartype c $MAJOR $MINOR
41425 chcon -h --user=system_u dir/fifo
41426 chcon -h --user=system_u dir/chartype
41427 setfacl -m u:$UID:--- dir/fifo
41428 setfacl -m u:$UID:rwx dir/chartype
41430 getfacl dir/fifo >> before
41431 getfattr -msecurity.selinux dir/chartype >> before
41433 tar --xattrs --selinux --acls -cf archive.tar dir
41437 tar --xattrs --selinux --acls -xf archive.tar
41439 getfacl dir/fifo >> after
41440 getfattr -msecurity.selinux dir/chartype >> after
41445 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41446 at_status=$? at_failed=false
41448 at_fn_diff_devnull "$at_stderr" || at_failed=:
41449 echo >>"$at_stdout"; $as_echo "separator
41451 $at_diff - "$at_stdout" || at_failed=:
41452 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
41453 $at_failed && at_fn_log_failure
41457 $as_echo "$at_srcdir/selacl01.at:28:
41460 TEST_TAR_FORMAT=gnu
41461 export TEST_TAR_FORMAT
41462 TAR_OPTIONS=\"-H gnu\"
41467 echo \"test\" > \$\$
41469 cat \$\$ > /dev/null 2>&1
41472 test \$result -eq 0 || exit 77
41475 file=\$(TMPDIR=. mktemp fiXXXXXX)
41477 setfattr -n user.test -v test \$file &> /dev/null
41478 if test \"\$?\" != 0; then
41483 getfattr \$file &> /dev/null
41484 if test \"\$?\" != 0; then
41491 file=\$(TMPDIR=. mktemp fiXXXXXX)
41493 restorecon \$file &> /dev/null
41494 if test \"\$?\" != 0; then
41499 chcon -h --user=unconfined_u \$file &> /dev/null
41500 if test \"\$?\" != 0; then
41506 file=\$(TMPDIR=. mktemp fiXXXXXX)
41507 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41508 if test \"\$err\" != \"0\"; then
41514 file=\$(TMPDIR=. mktemp fiXXXXXX)
41516 setfacl -m u:\$UID:rwx \$file &> /dev/null
41517 if test \"\$?\" != 0; then
41522 getfacl \$file &> /dev/null
41523 if test \"\$?\" != 0; then
41529 file=\$(TMPDIR=. mktemp fiXXXXXX)
41530 setfacl -m u:\$UID:rwx \$file
41531 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41532 if test \"\$err\" != \"0\"; then
41539 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
41540 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
41541 mknod dir/chartype c \$MAJOR \$MINOR
41545 chcon -h --user=system_u dir/fifo
41546 chcon -h --user=system_u dir/chartype
41547 setfacl -m u:\$UID:--- dir/fifo
41548 setfacl -m u:\$UID:rwx dir/chartype
41550 getfacl dir/fifo >> before
41551 getfattr -msecurity.selinux dir/chartype >> before
41553 tar --xattrs --selinux --acls -cf archive.tar dir
41557 tar --xattrs --selinux --acls -xf archive.tar
41559 getfacl dir/fifo >> after
41560 getfattr -msecurity.selinux dir/chartype >> after
41565 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
41569 TEST_TAR_FORMAT=gnu
41570 export TEST_TAR_FORMAT
41571 TAR_OPTIONS="-H gnu"
41578 cat $$ > /dev/null 2>&1
41581 test $result -eq 0 || exit 77
41584 file=$(TMPDIR=. mktemp fiXXXXXX)
41586 setfattr -n user.test -v test $file &> /dev/null
41587 if test "$?" != 0; then
41592 getfattr $file &> /dev/null
41593 if test "$?" != 0; then
41600 file=$(TMPDIR=. mktemp fiXXXXXX)
41602 restorecon $file &> /dev/null
41603 if test "$?" != 0; then
41608 chcon -h --user=unconfined_u $file &> /dev/null
41609 if test "$?" != 0; then
41615 file=$(TMPDIR=. mktemp fiXXXXXX)
41616 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41617 if test "$err" != "0"; then
41623 file=$(TMPDIR=. mktemp fiXXXXXX)
41625 setfacl -m u:$UID:rwx $file &> /dev/null
41626 if test "$?" != 0; then
41631 getfacl $file &> /dev/null
41632 if test "$?" != 0; then
41638 file=$(TMPDIR=. mktemp fiXXXXXX)
41639 setfacl -m u:$UID:rwx $file
41640 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41641 if test "$err" != "0"; then
41648 MAJOR=$( stat /dev/urandom --printf="%t" )
41649 MINOR=$( stat /dev/urandom --printf="%T" )
41650 mknod dir/chartype c $MAJOR $MINOR
41654 chcon -h --user=system_u dir/fifo
41655 chcon -h --user=system_u dir/chartype
41656 setfacl -m u:$UID:--- dir/fifo
41657 setfacl -m u:$UID:rwx dir/chartype
41659 getfacl dir/fifo >> before
41660 getfattr -msecurity.selinux dir/chartype >> before
41662 tar --xattrs --selinux --acls -cf archive.tar dir
41666 tar --xattrs --selinux --acls -xf archive.tar
41668 getfacl dir/fifo >> after
41669 getfattr -msecurity.selinux dir/chartype >> after
41674 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41675 at_status=$? at_failed=false
41677 at_fn_diff_devnull "$at_stderr" || at_failed=:
41678 echo >>"$at_stdout"; $as_echo "separator
41680 $at_diff - "$at_stdout" || at_failed=:
41681 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
41682 $at_failed && at_fn_log_failure
41689 $at_times_p && times >"$at_times_file"
41690 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
41691 read at_status <"$at_status_file"
41694 at_fn_group_banner 174 'capabs_raw01.at:25' \
41695 "capabilities: binary store/restore" " " 25
41697 test -f $XFAILFILE && at_xfail=yes
41699 $as_echo "174. $at_setup_line: testing $at_desc ..."
41707 $as_echo "$at_srcdir/capabs_raw01.at:28:
41711 export TEST_TAR_FORMAT
41712 TAR_OPTIONS=\"-H v7\"
41717 echo \"test\" > \$\$
41719 cat \$\$ > /dev/null 2>&1
41722 test \$result -eq 0 || exit 77
41726 file=\$(TMPDIR=. mktemp fiXXXXXX)
41728 setfattr -n user.test -v test \$file &> /dev/null
41729 if test \"\$?\" != 0; then
41734 getfattr \$file &> /dev/null
41735 if test \"\$?\" != 0; then
41740 file=\$(TMPDIR=. mktemp fiXXXXXX)
41741 setfattr -n user.test -v ahoj \$file
41742 # check whether tar fails to store xattrs
41743 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41744 if test \"\$err\" != \"0\"; then
41749 file=\$(TMPDIR=. mktemp fiXXXXXX)
41751 setcap \"= cap_chown=ei\" \$file &> /dev/null
41752 if test \"\$?\" != 0; then
41757 getcap \$file &> /dev/null
41758 if test \"\$?\" != 0; then
41766 genfile --file dir/file
41768 setcap \"= cap_chown=ei\" dir/file
41770 # archive whole directory including binary xattrs
41771 tar --xattrs -cf archive.tar dir
41773 # clear the directory
41776 # restore _all_ xattrs (not just the user.* domain)
41777 tar --xattrs --xattrs-include='*' -xf archive.tar
41781 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
41786 export TEST_TAR_FORMAT
41787 TAR_OPTIONS="-H v7"
41794 cat $$ > /dev/null 2>&1
41797 test $result -eq 0 || exit 77
41801 file=$(TMPDIR=. mktemp fiXXXXXX)
41803 setfattr -n user.test -v test $file &> /dev/null
41804 if test "$?" != 0; then
41809 getfattr $file &> /dev/null
41810 if test "$?" != 0; then
41815 file=$(TMPDIR=. mktemp fiXXXXXX)
41816 setfattr -n user.test -v ahoj $file
41817 # check whether tar fails to store xattrs
41818 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41819 if test "$err" != "0"; then
41824 file=$(TMPDIR=. mktemp fiXXXXXX)
41826 setcap "= cap_chown=ei" $file &> /dev/null
41827 if test "$?" != 0; then
41832 getcap $file &> /dev/null
41833 if test "$?" != 0; then
41841 genfile --file dir/file
41843 setcap "= cap_chown=ei" dir/file
41845 # archive whole directory including binary xattrs
41846 tar --xattrs -cf archive.tar dir
41848 # clear the directory
41851 # restore _all_ xattrs (not just the user.* domain)
41852 tar --xattrs --xattrs-include='*' -xf archive.tar
41856 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41857 at_status=$? at_failed=false
41859 at_fn_diff_devnull "$at_stderr" || at_failed=:
41860 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
41862 $at_diff - "$at_stdout" || at_failed=:
41863 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
41864 $at_failed && at_fn_log_failure
41868 $as_echo "$at_srcdir/capabs_raw01.at:28:
41871 TEST_TAR_FORMAT=oldgnu
41872 export TEST_TAR_FORMAT
41873 TAR_OPTIONS=\"-H oldgnu\"
41878 echo \"test\" > \$\$
41880 cat \$\$ > /dev/null 2>&1
41883 test \$result -eq 0 || exit 77
41887 file=\$(TMPDIR=. mktemp fiXXXXXX)
41889 setfattr -n user.test -v test \$file &> /dev/null
41890 if test \"\$?\" != 0; then
41895 getfattr \$file &> /dev/null
41896 if test \"\$?\" != 0; then
41901 file=\$(TMPDIR=. mktemp fiXXXXXX)
41902 setfattr -n user.test -v ahoj \$file
41903 # check whether tar fails to store xattrs
41904 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41905 if test \"\$err\" != \"0\"; then
41910 file=\$(TMPDIR=. mktemp fiXXXXXX)
41912 setcap \"= cap_chown=ei\" \$file &> /dev/null
41913 if test \"\$?\" != 0; then
41918 getcap \$file &> /dev/null
41919 if test \"\$?\" != 0; then
41927 genfile --file dir/file
41929 setcap \"= cap_chown=ei\" dir/file
41931 # archive whole directory including binary xattrs
41932 tar --xattrs -cf archive.tar dir
41934 # clear the directory
41937 # restore _all_ xattrs (not just the user.* domain)
41938 tar --xattrs --xattrs-include='*' -xf archive.tar
41942 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
41946 TEST_TAR_FORMAT=oldgnu
41947 export TEST_TAR_FORMAT
41948 TAR_OPTIONS="-H oldgnu"
41955 cat $$ > /dev/null 2>&1
41958 test $result -eq 0 || exit 77
41962 file=$(TMPDIR=. mktemp fiXXXXXX)
41964 setfattr -n user.test -v test $file &> /dev/null
41965 if test "$?" != 0; then
41970 getfattr $file &> /dev/null
41971 if test "$?" != 0; then
41976 file=$(TMPDIR=. mktemp fiXXXXXX)
41977 setfattr -n user.test -v ahoj $file
41978 # check whether tar fails to store xattrs
41979 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41980 if test "$err" != "0"; then
41985 file=$(TMPDIR=. mktemp fiXXXXXX)
41987 setcap "= cap_chown=ei" $file &> /dev/null
41988 if test "$?" != 0; then
41993 getcap $file &> /dev/null
41994 if test "$?" != 0; then
42002 genfile --file dir/file
42004 setcap "= cap_chown=ei" dir/file
42006 # archive whole directory including binary xattrs
42007 tar --xattrs -cf archive.tar dir
42009 # clear the directory
42012 # restore _all_ xattrs (not just the user.* domain)
42013 tar --xattrs --xattrs-include='*' -xf archive.tar
42017 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42018 at_status=$? at_failed=false
42020 at_fn_diff_devnull "$at_stderr" || at_failed=:
42021 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
42023 $at_diff - "$at_stdout" || at_failed=:
42024 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
42025 $at_failed && at_fn_log_failure
42029 $as_echo "$at_srcdir/capabs_raw01.at:28:
42032 TEST_TAR_FORMAT=ustar
42033 export TEST_TAR_FORMAT
42034 TAR_OPTIONS=\"-H ustar\"
42039 echo \"test\" > \$\$
42041 cat \$\$ > /dev/null 2>&1
42044 test \$result -eq 0 || exit 77
42048 file=\$(TMPDIR=. mktemp fiXXXXXX)
42050 setfattr -n user.test -v test \$file &> /dev/null
42051 if test \"\$?\" != 0; then
42056 getfattr \$file &> /dev/null
42057 if test \"\$?\" != 0; then
42062 file=\$(TMPDIR=. mktemp fiXXXXXX)
42063 setfattr -n user.test -v ahoj \$file
42064 # check whether tar fails to store xattrs
42065 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42066 if test \"\$err\" != \"0\"; then
42071 file=\$(TMPDIR=. mktemp fiXXXXXX)
42073 setcap \"= cap_chown=ei\" \$file &> /dev/null
42074 if test \"\$?\" != 0; then
42079 getcap \$file &> /dev/null
42080 if test \"\$?\" != 0; then
42088 genfile --file dir/file
42090 setcap \"= cap_chown=ei\" dir/file
42092 # archive whole directory including binary xattrs
42093 tar --xattrs -cf archive.tar dir
42095 # clear the directory
42098 # restore _all_ xattrs (not just the user.* domain)
42099 tar --xattrs --xattrs-include='*' -xf archive.tar
42103 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
42107 TEST_TAR_FORMAT=ustar
42108 export TEST_TAR_FORMAT
42109 TAR_OPTIONS="-H ustar"
42116 cat $$ > /dev/null 2>&1
42119 test $result -eq 0 || exit 77
42123 file=$(TMPDIR=. mktemp fiXXXXXX)
42125 setfattr -n user.test -v test $file &> /dev/null
42126 if test "$?" != 0; then
42131 getfattr $file &> /dev/null
42132 if test "$?" != 0; then
42137 file=$(TMPDIR=. mktemp fiXXXXXX)
42138 setfattr -n user.test -v ahoj $file
42139 # check whether tar fails to store xattrs
42140 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42141 if test "$err" != "0"; then
42146 file=$(TMPDIR=. mktemp fiXXXXXX)
42148 setcap "= cap_chown=ei" $file &> /dev/null
42149 if test "$?" != 0; then
42154 getcap $file &> /dev/null
42155 if test "$?" != 0; then
42163 genfile --file dir/file
42165 setcap "= cap_chown=ei" dir/file
42167 # archive whole directory including binary xattrs
42168 tar --xattrs -cf archive.tar dir
42170 # clear the directory
42173 # restore _all_ xattrs (not just the user.* domain)
42174 tar --xattrs --xattrs-include='*' -xf archive.tar
42178 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42179 at_status=$? at_failed=false
42181 at_fn_diff_devnull "$at_stderr" || at_failed=:
42182 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
42184 $at_diff - "$at_stdout" || at_failed=:
42185 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
42186 $at_failed && at_fn_log_failure
42190 $as_echo "$at_srcdir/capabs_raw01.at:28:
42193 TEST_TAR_FORMAT=posix
42194 export TEST_TAR_FORMAT
42195 TAR_OPTIONS=\"-H posix\"
42200 echo \"test\" > \$\$
42202 cat \$\$ > /dev/null 2>&1
42205 test \$result -eq 0 || exit 77
42209 file=\$(TMPDIR=. mktemp fiXXXXXX)
42211 setfattr -n user.test -v test \$file &> /dev/null
42212 if test \"\$?\" != 0; then
42217 getfattr \$file &> /dev/null
42218 if test \"\$?\" != 0; then
42223 file=\$(TMPDIR=. mktemp fiXXXXXX)
42224 setfattr -n user.test -v ahoj \$file
42225 # check whether tar fails to store xattrs
42226 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42227 if test \"\$err\" != \"0\"; then
42232 file=\$(TMPDIR=. mktemp fiXXXXXX)
42234 setcap \"= cap_chown=ei\" \$file &> /dev/null
42235 if test \"\$?\" != 0; then
42240 getcap \$file &> /dev/null
42241 if test \"\$?\" != 0; then
42249 genfile --file dir/file
42251 setcap \"= cap_chown=ei\" dir/file
42253 # archive whole directory including binary xattrs
42254 tar --xattrs -cf archive.tar dir
42256 # clear the directory
42259 # restore _all_ xattrs (not just the user.* domain)
42260 tar --xattrs --xattrs-include='*' -xf archive.tar
42264 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
42268 TEST_TAR_FORMAT=posix
42269 export TEST_TAR_FORMAT
42270 TAR_OPTIONS="-H posix"
42277 cat $$ > /dev/null 2>&1
42280 test $result -eq 0 || exit 77
42284 file=$(TMPDIR=. mktemp fiXXXXXX)
42286 setfattr -n user.test -v test $file &> /dev/null
42287 if test "$?" != 0; then
42292 getfattr $file &> /dev/null
42293 if test "$?" != 0; then
42298 file=$(TMPDIR=. mktemp fiXXXXXX)
42299 setfattr -n user.test -v ahoj $file
42300 # check whether tar fails to store xattrs
42301 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42302 if test "$err" != "0"; then
42307 file=$(TMPDIR=. mktemp fiXXXXXX)
42309 setcap "= cap_chown=ei" $file &> /dev/null
42310 if test "$?" != 0; then
42315 getcap $file &> /dev/null
42316 if test "$?" != 0; then
42324 genfile --file dir/file
42326 setcap "= cap_chown=ei" dir/file
42328 # archive whole directory including binary xattrs
42329 tar --xattrs -cf archive.tar dir
42331 # clear the directory
42334 # restore _all_ xattrs (not just the user.* domain)
42335 tar --xattrs --xattrs-include='*' -xf archive.tar
42339 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42340 at_status=$? at_failed=false
42342 at_fn_diff_devnull "$at_stderr" || at_failed=:
42343 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
42345 $at_diff - "$at_stdout" || at_failed=:
42346 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
42347 $at_failed && at_fn_log_failure
42351 $as_echo "$at_srcdir/capabs_raw01.at:28:
42354 TEST_TAR_FORMAT=gnu
42355 export TEST_TAR_FORMAT
42356 TAR_OPTIONS=\"-H gnu\"
42361 echo \"test\" > \$\$
42363 cat \$\$ > /dev/null 2>&1
42366 test \$result -eq 0 || exit 77
42370 file=\$(TMPDIR=. mktemp fiXXXXXX)
42372 setfattr -n user.test -v test \$file &> /dev/null
42373 if test \"\$?\" != 0; then
42378 getfattr \$file &> /dev/null
42379 if test \"\$?\" != 0; then
42384 file=\$(TMPDIR=. mktemp fiXXXXXX)
42385 setfattr -n user.test -v ahoj \$file
42386 # check whether tar fails to store xattrs
42387 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42388 if test \"\$err\" != \"0\"; then
42393 file=\$(TMPDIR=. mktemp fiXXXXXX)
42395 setcap \"= cap_chown=ei\" \$file &> /dev/null
42396 if test \"\$?\" != 0; then
42401 getcap \$file &> /dev/null
42402 if test \"\$?\" != 0; then
42410 genfile --file dir/file
42412 setcap \"= cap_chown=ei\" dir/file
42414 # archive whole directory including binary xattrs
42415 tar --xattrs -cf archive.tar dir
42417 # clear the directory
42420 # restore _all_ xattrs (not just the user.* domain)
42421 tar --xattrs --xattrs-include='*' -xf archive.tar
42425 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
42429 TEST_TAR_FORMAT=gnu
42430 export TEST_TAR_FORMAT
42431 TAR_OPTIONS="-H gnu"
42438 cat $$ > /dev/null 2>&1
42441 test $result -eq 0 || exit 77
42445 file=$(TMPDIR=. mktemp fiXXXXXX)
42447 setfattr -n user.test -v test $file &> /dev/null
42448 if test "$?" != 0; then
42453 getfattr $file &> /dev/null
42454 if test "$?" != 0; then
42459 file=$(TMPDIR=. mktemp fiXXXXXX)
42460 setfattr -n user.test -v ahoj $file
42461 # check whether tar fails to store xattrs
42462 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42463 if test "$err" != "0"; then
42468 file=$(TMPDIR=. mktemp fiXXXXXX)
42470 setcap "= cap_chown=ei" $file &> /dev/null
42471 if test "$?" != 0; then
42476 getcap $file &> /dev/null
42477 if test "$?" != 0; then
42485 genfile --file dir/file
42487 setcap "= cap_chown=ei" dir/file
42489 # archive whole directory including binary xattrs
42490 tar --xattrs -cf archive.tar dir
42492 # clear the directory
42495 # restore _all_ xattrs (not just the user.* domain)
42496 tar --xattrs --xattrs-include='*' -xf archive.tar
42500 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42501 at_status=$? at_failed=false
42503 at_fn_diff_devnull "$at_stderr" || at_failed=:
42504 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
42506 $at_diff - "$at_stdout" || at_failed=:
42507 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
42508 $at_failed && at_fn_log_failure
42515 $at_times_p && times >"$at_times_file"
42516 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42517 read at_status <"$at_status_file"
42520 at_fn_group_banner 175 'gtarfail.at:21' \
42524 $as_echo "175. $at_setup_line: testing $at_desc ..."
42532 $as_echo "$at_srcdir/gtarfail.at:26:
42534 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42535 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42538 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
42540 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail.at:26"
42543 test -z "$STAR_TESTSCRIPTS" && exit 77
42544 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42547 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
42549 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42550 at_status=$? at_failed=false
42552 at_fn_diff_devnull "$at_stderr" || at_failed=:
42553 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
42554 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
42555 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
42556 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
42557 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
42558 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
42560 $at_diff - "$at_stdout" || at_failed=:
42561 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
42562 $at_failed && at_fn_log_failure
42567 $at_times_p && times >"$at_times_file"
42568 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42569 read at_status <"$at_status_file"
42572 at_fn_group_banner 176 'gtarfail2.at:21' \
42576 $as_echo "176. $at_setup_line: testing $at_desc ..."
42584 $as_echo "$at_srcdir/gtarfail2.at:26:
42586 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42587 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42589 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
42591 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail2.at:26"
42594 test -z "$STAR_TESTSCRIPTS" && exit 77
42595 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42597 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
42599 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42600 at_status=$? at_failed=false
42602 at_fn_diff_devnull "$at_stderr" || at_failed=:
42603 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
42604 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
42605 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
42606 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
42607 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
42608 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
42609 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
42610 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
42611 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
42612 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
42614 $at_diff - "$at_stdout" || at_failed=:
42615 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
42616 $at_failed && at_fn_log_failure
42621 $at_times_p && times >"$at_times_file"
42622 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42623 read at_status <"$at_status_file"
42626 at_fn_group_banner 177 'multi-fail.at:21' \
42627 "multi-fail" " " 26
42630 $as_echo "177. $at_setup_line: testing $at_desc ..."
42638 $as_echo "$at_srcdir/multi-fail.at:26:
42640 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42641 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42644 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42645 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42648 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
42649 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
42651 at_fn_check_prepare_notrace 'an embedded newline' "multi-fail.at:26"
42654 test -z "$STAR_TESTSCRIPTS" && exit 77
42655 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42658 test -z "$STAR_TESTSCRIPTS" && exit 77
42659 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42662 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
42663 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
42665 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42666 at_status=$? at_failed=false
42668 at_fn_diff_devnull "$at_stderr" || at_failed=:
42669 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
42670 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
42671 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
42672 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
42673 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
42674 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
42675 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
42676 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
42677 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
42678 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
42679 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
42680 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
42681 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
42682 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
42683 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
42684 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
42685 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
42686 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
42687 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
42688 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
42689 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
42690 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
42691 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
42692 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
42693 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
42694 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
42695 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
42696 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
42697 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
42698 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
42699 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
42700 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
42701 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
42702 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
42703 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
42704 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
42705 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
42706 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
42707 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
42708 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
42709 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
42710 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
42711 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
42712 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
42713 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
42714 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
42715 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
42716 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
42717 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
42718 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
42719 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
42720 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
42722 $at_diff - "$at_stdout" || at_failed=:
42723 at_fn_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
42724 $at_failed && at_fn_log_failure
42729 $at_times_p && times >"$at_times_file"
42730 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42731 read at_status <"$at_status_file"
42734 at_fn_group_banner 178 'ustar-big-2g.at:21' \
42735 "ustar-big-2g" " " 26
42738 $as_echo "178. $at_setup_line: testing $at_desc ..."
42746 $as_echo "$at_srcdir/ustar-big-2g.at:26:
42748 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42751 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42752 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42755 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
42757 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-2g.at:26"
42760 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42763 test -z "$STAR_TESTSCRIPTS" && exit 77
42764 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42767 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
42769 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42770 at_status=$? at_failed=false
42772 echo stderr:; tee stderr <"$at_stderr"
42773 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
42774 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
42776 $at_diff - "$at_stdout" || at_failed=:
42777 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
42778 $at_failed && at_fn_log_failure
42783 cat >stderr.re <<'_ATEOF'
42784 tar: Record size = .*
42787 awk '{print NR " " $0}' stderr > $$.1
42788 awk '{print NR " " $0}' stderr.re | join - $$.1 |
42789 while read NUM RE LINE
42791 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
42796 $at_times_p && times >"$at_times_file"
42797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42798 read at_status <"$at_status_file"
42801 at_fn_group_banner 179 'ustar-big-8g.at:21' \
42802 "ustar-big-8g" " " 26
42805 $as_echo "179. $at_setup_line: testing $at_desc ..."
42813 $as_echo "$at_srcdir/ustar-big-8g.at:26:
42815 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42818 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42819 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42822 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
42824 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-8g.at:26"
42827 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42830 test -z "$STAR_TESTSCRIPTS" && exit 77
42831 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42834 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
42836 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42837 at_status=$? at_failed=false
42839 echo stderr:; tee stderr <"$at_stderr"
42840 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
42841 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
42843 $at_diff - "$at_stdout" || at_failed=:
42844 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
42845 $at_failed && at_fn_log_failure
42850 cat >stderr.re <<'_ATEOF'
42851 tar: Record size = .*
42854 awk '{print NR " " $0}' stderr > $$.1
42855 awk '{print NR " " $0}' stderr.re | join - $$.1 |
42856 while read NUM RE LINE
42858 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
42863 $at_times_p && times >"$at_times_file"
42864 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42865 read at_status <"$at_status_file"
42868 at_fn_group_banner 180 'pax-big-10g.at:21' \
42869 "pax-big-10g" " " 26
42872 $as_echo "180. $at_setup_line: testing $at_desc ..."
42880 $as_echo "$at_srcdir/pax-big-10g.at:26:
42882 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42885 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
42886 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
42889 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
42891 at_fn_check_prepare_notrace 'an embedded newline' "pax-big-10g.at:26"
42894 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
42897 test -z "$STAR_TESTSCRIPTS" && exit 77
42898 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
42901 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
42903 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42904 at_status=$? at_failed=false
42906 echo stderr:; tee stderr <"$at_stderr"
42907 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
42908 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
42910 $at_diff - "$at_stdout" || at_failed=:
42911 at_fn_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
42912 $at_failed && at_fn_log_failure
42917 cat >stderr.re <<'_ATEOF'
42918 tar: Record size = .*
42921 awk '{print NR " " $0}' stderr > $$.1
42922 awk '{print NR " " $0}' stderr.re | join - $$.1 |
42923 while read NUM RE LINE
42925 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
42930 $at_times_p && times >"$at_times_file"
42931 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42932 read at_status <"$at_status_file"