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:20;tar version;;
594 2;pipe.at:29;decompressing from stdin;pipe;
595 3;options.at:25;mixing options;options options00;
596 4;options02.at:27;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-recurse.at:27;files-from & recurse: toggle;recurse t-recurse files-from;
607 15;T-recurse.at:66;toggle --recursion (not) from -T;recurse t-recurse t-recurse2 files-from;
608 16;T-cd.at:21;-C in file lists;files-from t-cd;
609 17;T-empty.at:26;empty entries;files-from empty-line;
610 18;T-null.at:21;0-separated file without -0;files-from null t-null;
611 19;T-null2.at:17;--null enables verbatim reading;files-from null t-null2 t-verbatim;
612 20;T-zfile.at:26;empty file;files-from empty-file;
613 21;T-nonl.at:27;entries with missing newlines;files-from nonewline nonl t-nonl;
614 22;T-dir00.at:28;recursive extraction from --files-from;files-from extract t-dir t-dir00;
615 23;T-dir01.at:28;trailing slash in --files-from;files-from extract t-dir t-dir01;
616 24;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
617 25;verbose.at:26;tar cvf -;stdout verbose;
618 26;gzip.at:24;gzip;gzip;
619 27;recurse.at:21;recurse;recurse;
620 28;recurs02.at:30;recurse: toggle;recurse options recurse02;
621 29;shortrec.at:26;short records;shortrec;
622 30;numeric.at:18;--numeric-owner basic tests;options numeric numeric-owner;
623 31;same-order01.at:27;working -C with --same-order;same-order same-order01;
624 32;same-order02.at:26;multiple -C options;same-order same-order02;
625 33;append.at:22;append;append append00;
626 34;append01.at:29;appending files with long names;append append01;
627 35;append02.at:55;append vs. create;append append02 append-gnu;
628 36;append03.at:21;append with name transformation;append append03;
629 37;append04.at:29;append with verify;append append04 verify append-verify;
630 38;append05.at:32;append after changed blocking;append append05 blocking;
631 39;xform-h.at:30;transforming hard links on create;transform xform xform-h;
632 40;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
633 41;xform02.at:21;transforming escaped delimiters on create;transform xform delimiter;
634 42;exclude.at:23;exclude;exclude;
635 43;exclude01.at:19;exclude wildcards;exclude exclude01;
636 44;exclude02.at:19;exclude: anchoring;exclude exclude02;
637 45;exclude03.at:19;exclude: wildcards match slash;exclude exclude03;
638 46;exclude04.at:19;exclude: case insensitive;exclude exclude04;
639 47;exclude05.at:21;exclude: lots of excludes;exclude exclude05;
640 48;exclude06.at:26;exclude: long files in pax archives;exclude exclude06;
641 49;exclude07.at:19;exclude: --exclude-backups option;exclude exclude07;
642 50;exclude08.at:36;--exclude-tag option;exclude exclude-tag exclude08;
643 51;exclude09.at:37;--exclude-tag option and --listed-incremental;exclude exclude-tag listed incremental exclude09;
644 52;exclude10.at:38;--exclude-tag option in incremental pass;exclude exclude-tag listed incremental exclude10;
645 53;exclude11.at:36;--exclude-tag-under option;exclude exclude-tag exclude-tag-under exclude11;
646 54;exclude12.at:37;--exclude-tag-under and --listed-incremental;exclude exclude-tag exclude-tag-under listed incremental exclude12;
647 55;exclude13.at:39;--exclude-tag-under option in incremental pass;exclude exclude-tag exclude-tag-under listed incremental exclude13;
648 56;exclude14.at:36;--exclude-tag-all option;exclude exclude-tag exclude-tag-all exclude14;
649 57;exclude15.at:36;--exclude-tag-all and --listed-incremental;exclude exclude-tag exclude-tag-all listed incremental exclude15;
650 58;exclude16.at:38;--exclude-tag-all option in incremental pass;exclude exclude-tag exclude-tag-all listed incremental exclude16;
651 59;delete01.at:24;deleting a member after a big one;delete delete01;
652 60;delete02.at:24;deleting a member from stdin archive;delete delete02;
653 61;delete03.at:21;deleting members with long names;delete delete03;
654 62;delete04.at:24;deleting a large last member;delete delete04;
655 63;delete05.at:28;deleting non-existing member;delete delete05;
656 64;extrac01.at:24;extract over an existing directory;extract extract01;
657 65;extrac02.at:24;extracting symlinks over an existing file;extract extract02 symlink;
658 66;extrac03.at:23;extraction loops;extract extract03;
659 67;extrac04.at:24;extract + fnmatch;extract extract04 fnmatch;
660 68;extrac05.at:31;extracting selected members from pax;extract extract05;
661 69;extrac06.at:34;mode of extracted directories;extract extract06 directory mode;
662 70;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
663 71;extrac08.at:33;restoring mode on existing directory;extract extrac08;
664 72;extrac09.at:34;extracting even when . and .. are unreadable;extract extrac09;
665 73;extrac10.at:29;-C and delayed setting of metadata;extract extrac10;
666 74;extrac11.at:25;scarce file descriptors;extract extrac11;
667 75;extrac12.at:25;extract dot permissions;extract extrac12;
668 76;extrac13.at:26;extract over symlinks;extract extrac13;
669 77;extrac14.at:25;extract -C symlink;extract extrac14;
670 78;extrac15.at:25;extract parent mkdir failure;extract extrac15;
671 79;extrac16.at:26;extract empty directory with -C;extract extrac16;
672 80;extrac17.at:21;name matching/transformation ordering;extract extrac17;
673 81;extrac18.at:34;keep-old-files;extract extrac18 old-files keep-old-files;
674 82;extrac19.at:21;skip-old-files;extract extrac19 old-files skip-old-files;
675 83;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
676 84;label01.at:21;single-volume label;label label01;
677 85;label02.at:21;multi-volume label;label label02 multi-label multivolume multiv;
678 86;label03.at:27;test-label option;label label03 test-label;
679 87;label04.at:27;label with non-create option;label label04;
680 88;label05.at:24;label with non-create option;label label05;
681 89;incremental.at:23;incremental;incremental listed incr00;
682 90;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
683 91;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
684 92;listed01.at:27;--listed for individual files;listed incremental listed01;
685 93;listed02.at:29;working --listed;listed incremental listed02;
686 94;listed03.at:24;incremental dump when the parent directory is unreadable;listed incremental listed03;
687 95;listed04.at:26;--listed-incremental and --one-file-system;listed incremental listed04;
688 96;listed05.at:33;--listed-incremental and remounted directories;listed incremental listed05;
689 97;incr03.at:29;renamed files in incrementals;incremental incr03 rename;
690 98;incr04.at:30;proper icontents initialization;incremental incr04 icontents;
691 99;incr05.at:21;incremental dumps with -C;incremental incr05;
692 100;incr06.at:21;incremental dumps of nested directories;incremental incr06;
693 101;incr07.at:18;incremental restores with -C;incremental extract incr07;
694 102;incr08.at:38;filename normalization;incremental create incr08;
695 103;incr09.at:26;incremental with alternating -C;incremental create incr09;
696 104;incr10.at:18;concatenated incremental archives (deletes);incremental concat cat incr10;
697 105;incr11.at:25;concatenated incremental archives (renames);incremental concat cat incr11;
698 106;filerem01.at:36;file removed as we read it (ca. 22 seconds);create incremental listed filechange filerem filerem01;
699 107;filerem02.at:26;toplevel file removed (ca. 24 seconds);create incremental listed filechange filerem filerem02;
700 108;rename01.at:25;renamed dirs in incrementals;incremental rename rename01;
701 109;rename02.at:25;move between hierarchies;incremental rename rename02;
702 110;rename03.at:24;cyclic renames;incremental rename rename03 cyclic-rename;
703 111;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
704 112;rename05.at:24;renamed subdirectories;incremental rename05 rename;
705 113;chtype.at:27;changed file types in incrementals;incremental listed chtype;
706 114;ignfail.at:24;ignfail;ignfail;
707 115;link01.at:34;link count gt 2;hardlinks link01;
708 116;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
709 117;link03.at:24;working -l with --remove-files;hardlinks link03;
710 118;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
711 119;longv7.at:25;long names in V7 archives;longname longv7;
712 120;long01.at:28;long file names divisible by block size;longname long512;
713 121;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
714 122;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
715 123;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
716 124;old.at:23;old archives;old;
717 125;time01.at:20;time: tricky time stamps;time time01;
718 126;time02.at:20;time: clamping mtime;time time02;
719 127;multiv01.at:24;multivolume dumps from pipes;multivolume multiv multiv01;
720 128;multiv02.at:29;skipping a straddling member;multivolume multiv multiv02;
721 129;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
722 130;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental listed multiv04;
723 131;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
724 132;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
725 133;multiv07.at:28;volumes split at an extended header;multivolume multiv multiv07 xsplit;
726 134;multiv08.at:25;multivolume header creation;multivolume multiv multiv08;
727 135;multiv09.at:26;bad next volume;multivolume multiv multiv09;
728 136;owner.at:21;--owner and --group;owner;
729 137;map.at:21;--owner-map and --group-map;owner map;
730 138;sparse01.at:22;sparse files;sparse sparse01;
731 139;sparse02.at:22;extracting sparse file over a pipe;sparse sparse02;
732 140;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
733 141;sparse04.at:21;storing long sparse file names;sparse sparse04;
734 142;sparse05.at:21;listing sparse files bigger than 2^33 B;sparse sparse05;
735 143;sparse06.at:21;storing sparse file using seek method;sparse sparse06;
736 144;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
737 145;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
738 146;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
739 147;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
740 148;update.at:28;update unchanged directories;update update00;
741 149;update01.at:29;update directories;update update01;
742 150;update02.at:26;update changed files;update update02;
743 151;verify.at:25;verify;verify;
744 152;volume.at:24;volume;volume volcheck;
745 153;volsize.at:29;volume header size;volume volsize;
746 154;comprec.at:22;compressed format recognition;comprec;
747 155;shortfile.at:26;short input files;shortfile shortfile0;
748 156;shortupd.at:31;updating short archives;shortfile shortfile1 shortupd;
749 157;truncate.at:29;truncate;truncate filechange;
750 158;grow.at:24;grow;grow filechange;
751 159;sigpipe.at:21;sigpipe handling;sigpipe;
752 160;comperr.at:18;compressor program failure;compress comperr;
753 161;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
754 162;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
755 163;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
756 164;remfiles04a.at:25;remove-files with -C:rel in -c/non-incr. mode;create remove-files remfiles04 remfiles04a;
757 165;remfiles04b.at:33;remove-files with -C:rel in -c/incr. mode;create incremental remove-files remfiles04 remfiles04b;
758 166;remfiles04c.at:33;remove-files with -C:rel in -r mode;create append remove-files remfiles04 remfiles04c;
759 167;remfiles05a.at:34;remove-files with -C:rel,rel in -c/non-incr. mode;create remove-files remfiles05 remfiles05a;
760 168;remfiles05b.at:25;remove-files with -C:rel,rel in -c/incr. mode;create incremental remove-files remfiles05 remfiles05b;
761 169;remfiles05c.at:25;remove-files with -C:rel,rel in -r mode;create append remove-files remfiles05 remfiles05c;
762 170;remfiles06a.at:25;remove-files with -C:rel,abs in -c/non-incr. mode;create remove-files remfiles06 remfiles06a;
763 171;remfiles06b.at:25;remove-files with -C:rel,abs in -c/incr. mode;create incremental remove-files remfiles06 remfiles06b;
764 172;remfiles06c.at:25;remove-files with -C:rel,abs in -r mode;create append remove-files remfiles06 remfiles06c;
765 173;remfiles07a.at:25;remove-files with -C:abs,rel in -c/non-incr. mode;create remove-files remfiles07 remfiles07a;
766 174;remfiles07b.at:25;remove-files with -C:abs,rel in -c/incr. mode;create incremental remove-files remfiles07 remfiles07b;
767 175;remfiles07c.at:25;remove-files with -C:abs,rel in -r mode;create append remove-files remfiles07 remfiles07c;
768 176;remfiles08a.at:28;remove-files deleting two subdirs in -c/non-incr. mode;create remove-files remfiles08 remfiles08a;
769 177;remfiles08b.at:31;remove-files deleting two subdirs in -c/incr. mode;create incremental remove-files remfiles08 remfiles08b;
770 178;remfiles08c.at:28;remove-files deleting two subdirs in -r mode;create append remove-files remfiles08 remfiles08c;
771 179;remfiles09a.at:25;remove-files on full directory in -c/non-incr. mode;create remove-files remfiles09 remfiles09a;
772 180;remfiles09b.at:29;remove-files on full directory in -c/incr. mode;create incremental remove-files remfiles09 remfiles09b;
773 181;remfiles09c.at:25;remove-files on full directory in -r mode;create append remove-files remfiles09 remfiles09c;
774 182;remfiles10.at:20;remove-files;create remove-files remfiles10;
775 183;xattr01.at:25;xattrs: basic functionality;xattrs xattr01;
776 184;xattr02.at:25;xattrs: change directory with -C option;xattrs xattr02;
777 185;xattr03.at:25;xattrs: trusted.* attributes;xattrs xattr03;
778 186;xattr04.at:26;xattrs: s/open/openat/ regression;xattrs xattr04;
779 187;xattr05.at:28;xattrs: keywords with '=' and '%';xattrs xattr05;
780 188;acls01.at:25;acls: basic functionality;xattrs acls acls01;
781 189;acls02.at:25;acls: work with -C;xattrs acls acls02;
782 190;acls03.at:30;acls: default ACLs;xattrs acls acls03;
783 191;selnx01.at:25;selinux: basic store/restore;xattrs selinux selnx01;
784 192;selacl01.at:25;acls/selinux: special files & fifos;xattrs selinux acls selacls01;
785 193;capabs_raw01.at:25;capabilities: binary store/restore;xattrs capabilities capabs_raw01;
786 194;onetop01.at:21;tar --one-top-level;extract onetop onetop01;
787 195;onetop02.at:21;tar --one-top-level --show-transformed;extract onetop onetop02;
788 196;onetop03.at:21;tar --one-top-level --transform;extract onetop onetop03;
789 197;onetop04.at:21;tar --one-top-level --transform;extract onetop onetop04;
790 198;onetop05.at:21;tar --one-top-level restoring permissions;extract onetop onetop05;
791 199;gtarfail.at:22;gtarfail;star gtarfail;
792 200;gtarfail2.at:22;gtarfail2;star gtarfail2;
793 201;multi-fail.at:22;multi-fail;star multivolume multiv multi-fail;
794 202;ustar-big-2g.at:22;ustar-big-2g;star ustar-big-2g;
795 203;ustar-big-8g.at:22;ustar-big-8g;star ustar-big-8g;
796 204;pax-big-10g.at:22;pax-big-10g;star pax-big-10g;
798 # List of the all the test groups.
799 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
801 # at_fn_validate_ranges NAME...
802 # -----------------------------
803 # Validate and normalize the test group number contained in each variable
804 # NAME. Leading zeroes are treated as decimal.
805 at_fn_validate_ranges ()
809 eval at_value=\$$at_grp
810 if test $at_value -lt 1 || test $at_value -gt 204; then
811 $as_echo "invalid test group: $at_value" >&2
815 0*) # We want to treat leading 0 as decimal, like expr and test, but
816 # AS_VAR_ARITH treats it as octal if it uses $(( )).
817 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
818 # expr fork, but it is not worth the effort to determine if the
819 # shell supports XSI when the user can just avoid leading 0.
820 eval $at_grp='`expr $at_value + 0`' ;;
828 # If the previous option needs an argument, assign it.
829 if test -n "$at_prev"; then
830 at_option=$at_prev=$at_option
835 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
839 # Accept the important Cygnus configure options, so we can diagnose typos.
863 no | never | none) at_color=never ;;
864 auto | tty | if-tty) at_color=auto ;;
865 always | yes | force) at_color=always ;;
866 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
867 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
881 at_verbose=; at_quiet=:
887 at_check_filter_trace=at_fn_filter_trace
890 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
891 at_fn_validate_ranges at_option
892 as_fn_append at_groups "$at_option$as_nl"
896 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
897 at_range_start=`echo $at_option |tr -d X-`
898 at_fn_validate_ranges at_range_start
899 at_range=`$as_echo "$at_groups_all" | \
900 sed -ne '/^'$at_range_start'$/,$p'`
901 as_fn_append at_groups "$at_range$as_nl"
904 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
905 at_range_end=`echo $at_option |tr -d X-`
906 at_fn_validate_ranges at_range_end
907 at_range=`$as_echo "$at_groups_all" | \
908 sed -ne '1,/^'$at_range_end'$/p'`
909 as_fn_append at_groups "$at_range$as_nl"
912 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
913 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
914 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
915 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
916 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
917 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
918 at_range_start=`expr $at_option : '\(.*\)-'`
919 at_range_end=`expr $at_option : '.*-\(.*\)'`
920 if test $at_range_start -gt $at_range_end; then
922 at_range_end=$at_range_start
923 at_range_start=$at_tmp
925 at_fn_validate_ranges at_range_start at_range_end
926 at_range=`$as_echo "$at_groups_all" | \
927 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
928 as_fn_append at_groups "$at_range$as_nl"
931 # Directory selection.
938 if test x- = "x$at_dir" ; then
943 # Parallel execution.
947 --jobs=* | -j[0-9]* )
948 if test -n "$at_optarg"; then
951 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
953 case $at_jobs in *[!0-9]*)
954 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
955 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
964 at_groups_selected=$at_help_all
976 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
979 # It is on purpose that we match the test group titles too.
980 at_groups_selected=`$as_echo "$at_groups_selected" |
981 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
983 # Smash the keywords.
984 at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
985 as_fn_append at_groups "$at_groups_selected$as_nl"
992 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
993 # Reject names that are not valid shell variable names.
995 '' | [0-9]* | *[!_$as_cr_alnum]* )
996 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
998 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
999 # Export now, but save eval for later and for debug scripts.
1001 as_fn_append at_debug_args " $at_envvar='$at_value'"
1004 *) $as_echo "$as_me: invalid option: $at_option" >&2
1005 $as_echo "Try \`$0 --help' for more information." >&2
1011 # Verify our last option didn't require an argument
1012 if test -n "$at_prev"; then :
1013 as_fn_error $? "\`$at_prev' requires an argument"
1016 # The file containing the suite.
1017 at_suite_log=$at_dir/$as_me.log
1019 # Selected test groups.
1020 if test -z "$at_groups$at_recheck"; then
1021 at_groups=$at_groups_all
1023 if test -n "$at_recheck" && test -r "$at_suite_log"; then
1024 at_oldfails=`sed -n '
1025 /^Failed tests:$/,/^Skipped tests:$/{
1026 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1028 /^Unexpected passes:$/,/^## Detailed failed tests/{
1029 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1031 /^## Detailed failed tests/q
1033 as_fn_append at_groups "$at_oldfails$as_nl"
1035 # Sort the tests, removing duplicates.
1036 at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
1039 if test x"$at_color" = xalways \
1040 || { test x"$at_color" = xauto && test -t 1; }; then
1041 at_red=`printf '\033[0;31m'`
1042 at_grn=`printf '\033[0;32m'`
1043 at_lgn=`printf '\033[1;32m'`
1044 at_blu=`printf '\033[1;34m'`
1045 at_std=`printf '\033[m'`
1047 at_red= at_grn= at_lgn= at_blu= at_std=
1052 cat <<_ATEOF || at_write_fail=1
1053 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
1055 Run all the tests, or the selected TESTS, given by numeric ranges, and
1056 save a detailed log file. Upon failure, create debugging scripts.
1058 Do not change environment variables directly. Instead, set them via
1059 command line arguments. Set \`AUTOTEST_PATH' to select the executables
1060 to exercise. Each relative directory is expanded as build and source
1061 directories relative to the top level of this distribution.
1062 E.g., from within the build directory /tmp/foo-1.0, invoking this:
1064 $ $0 AUTOTEST_PATH=bin
1066 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1068 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1070 cat <<_ATEOF || at_write_fail=1
1073 -h, --help print the help message, then exit
1074 -V, --version print version number, then exit
1075 -c, --clean remove all the files this test suite might create and exit
1076 -l, --list describes all the tests, or the selected TESTS
1078 cat <<_ATEOF || at_write_fail=1
1082 change to directory DIR before starting
1083 --color[=never|auto|always]
1084 enable colored test results on terminal, or always
1086 Allow N jobs at once; infinite jobs with no arg (default 1)
1087 -k, --keywords=KEYWORDS
1088 select the tests matching all the comma-separated KEYWORDS
1089 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1090 --recheck select all tests that failed or passed unexpectedly last time
1091 -e, --errexit abort as soon as a test fails; implies --debug
1092 -v, --verbose force more detailed output
1093 default for debugging scripts
1094 -d, --debug inhibit clean up and top-level logging
1095 default for debugging scripts
1096 -x, --trace enable tests shell tracing
1098 cat <<_ATEOF || at_write_fail=1
1100 Report bugs to <bug-tar@gnu.org>.
1101 General help using GNU software: <http://www.gnu.org/gethelp/>.
1108 cat <<_ATEOF || at_write_fail=1
1109 GNU tar 1.29 test suite test groups:
1111 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1115 # Pass an empty line as separator between selected groups and help.
1116 $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
1117 awk 'NF == 1 && FS != ";" {
1123 if (selected[$ 1]) {
1124 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1130 n = split ($ 4, a, " ")
1131 for (i = 1; i <= n; i++) {
1132 l = length (a[i]) + 1
1133 if (i > 1 && len + l > lmax) {
1135 line = indent " " a[i]
1138 line = line " " a[i]
1146 }' || at_write_fail=1
1149 if $at_version_p; then
1150 $as_echo "$as_me (GNU tar 1.29)" &&
1151 cat <<\_ATEOF || at_write_fail=1
1153 Copyright (C) 2012 Free Software Foundation, Inc.
1154 This test suite is free software; the Free Software Foundation gives
1155 unlimited permission to copy, distribute and modify it.
1160 # Should we print banners? Yes if more than one test is run.
1161 case $at_groups in #(
1163 at_print_banners=: ;; #(
1164 * ) at_print_banners=false ;;
1166 # Text for banner N, set to a single space once printed.
1167 # Banner 1. testsuite.at:208
1168 # Category starts at test group 5.
1169 at_banner_text_1="Option compatibility"
1170 # Banner 2. testsuite.at:216
1171 # Category starts at test group 11.
1172 at_banner_text_2="The -T option"
1173 # Banner 3. testsuite.at:230
1174 # Category starts at test group 24.
1175 at_banner_text_3="Various options"
1176 # Banner 4. testsuite.at:239
1177 # Category starts at test group 31.
1178 at_banner_text_4="The --same-order option"
1179 # Banner 5. testsuite.at:243
1180 # Category starts at test group 33.
1181 at_banner_text_5="Append"
1182 # Banner 6. testsuite.at:251
1183 # Category starts at test group 39.
1184 at_banner_text_6="Transforms"
1185 # Banner 7. testsuite.at:256
1186 # Category starts at test group 42.
1187 at_banner_text_7="Exclude"
1188 # Banner 8. testsuite.at:275
1189 # Category starts at test group 59.
1190 at_banner_text_8="Deletions"
1191 # Banner 9. testsuite.at:282
1192 # Category starts at test group 64.
1193 at_banner_text_9="Extracting"
1194 # Banner 10. testsuite.at:304
1195 # Category starts at test group 84.
1196 at_banner_text_10="Volume label operations"
1197 # Banner 11. testsuite.at:311
1198 # Category starts at test group 89.
1199 at_banner_text_11="Incremental archives"
1200 # Banner 12. testsuite.at:330
1201 # Category starts at test group 106.
1202 at_banner_text_12="Files removed while archiving"
1203 # Banner 13. testsuite.at:334
1204 # Category starts at test group 108.
1205 at_banner_text_13="Renames"
1206 # Banner 14. testsuite.at:342
1207 # Category starts at test group 114.
1208 at_banner_text_14="Ignore failing reads"
1209 # Banner 15. testsuite.at:345
1210 # Category starts at test group 115.
1211 at_banner_text_15="Link handling"
1212 # Banner 16. testsuite.at:351
1213 # Category starts at test group 119.
1214 at_banner_text_16="Specific archive formats"
1215 # Banner 17. testsuite.at:362
1216 # Category starts at test group 127.
1217 at_banner_text_17="Multivolume archives"
1218 # Banner 18. testsuite.at:373
1219 # Category starts at test group 136.
1220 at_banner_text_18="Owner and Groups"
1221 # Banner 19. testsuite.at:377
1222 # Category starts at test group 138.
1223 at_banner_text_19="Sparse files"
1224 # Banner 20. testsuite.at:389
1225 # Category starts at test group 148.
1226 at_banner_text_20="Updates"
1227 # Banner 21. testsuite.at:394
1228 # Category starts at test group 151.
1229 at_banner_text_21="Verifying the archive"
1230 # Banner 22. testsuite.at:397
1231 # Category starts at test group 152.
1232 at_banner_text_22="Volume operations"
1233 # Banner 23. testsuite.at:401
1234 # Category starts at test group 154.
1235 at_banner_text_23=""
1236 # Banner 24. testsuite.at:411
1237 # Category starts at test group 161.
1238 at_banner_text_24="Removing files after archiving"
1239 # Banner 25. testsuite.at:435
1240 # Category starts at test group 183.
1241 at_banner_text_25="Extended attributes"
1242 # Banner 26. testsuite.at:451
1243 # Category starts at test group 194.
1244 at_banner_text_26="One top level"
1245 # Banner 27. testsuite.at:458
1246 # Category starts at test group 199.
1247 at_banner_text_27="Star tests"
1249 # Take any -C into account.
1250 if $at_change_dir ; then
1251 test x != "x$at_dir" && cd "$at_dir" \
1252 || as_fn_error $? "unable to change directory"
1256 # Load the config files for any default variable assignments.
1257 for at_file in atconfig atlocal
1259 test -r $at_file || continue
1260 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1263 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1264 : "${at_top_build_prefix=$at_top_builddir}"
1266 # Perform any assignments requested during argument parsing.
1267 eval "$at_debug_args"
1269 # atconfig delivers names relative to the directory the test suite is
1270 # in, but the groups themselves are run in testsuite-dir/group-dir.
1271 if test -n "$at_top_srcdir"; then
1273 for at_dir_var in srcdir top_srcdir top_build_prefix
1275 eval at_val=\$at_$at_dir_var
1277 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1278 *) at_prefix=../../ ;;
1280 eval "$at_dir_var=\$at_prefix\$at_val"
1284 ## -------------------- ##
1285 ## Directory structure. ##
1286 ## -------------------- ##
1288 # This is the set of directories and files used by this script
1289 # (non-literals are capitalized):
1291 # TESTSUITE - the testsuite
1292 # TESTSUITE.log - summarizes the complete testsuite run
1293 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1294 # + at-groups/ - during a run: status of all groups in run
1295 # | + NNN/ - during a run: meta-data about test group NNN
1296 # | | + check-line - location (source file and line) of current AT_CHECK
1297 # | | + status - exit status of current AT_CHECK
1298 # | | + stdout - stdout of current AT_CHECK
1299 # | | + stder1 - stderr, including trace
1300 # | | + stderr - stderr, with trace filtered out
1301 # | | + test-source - portion of testsuite that defines group
1302 # | | + times - timestamps for computing duration
1303 # | | + pass - created if group passed
1304 # | | + xpass - created if group xpassed
1305 # | | + fail - created if group failed
1306 # | | + xfail - created if group xfailed
1307 # | | + skip - created if group skipped
1308 # + at-stop - during a run: end the run if this file exists
1309 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1310 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1311 # | + TESTSUITE.log - summarizes the group results
1312 # | + ... - files created during the group
1314 # The directory the whole suite works in.
1315 # Should be absolute to let the user `cd' at will.
1316 at_suite_dir=$at_dir/$as_me.dir
1317 # The file containing the suite ($at_dir might have changed since earlier).
1318 at_suite_log=$at_dir/$as_me.log
1319 # The directory containing helper files per test group.
1320 at_helper_dir=$at_suite_dir/at-groups
1321 # Stop file: if it exists, do not start new jobs.
1322 at_stop_file=$at_suite_dir/at-stop
1323 # The fifo used for the job dispatcher.
1324 at_job_fifo=$at_suite_dir/at-job-fifo
1327 test -d "$at_suite_dir" &&
1328 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1329 rm -f -r "$at_suite_dir" "$at_suite_log"
1333 # Don't take risks: use only absolute directories in PATH.
1335 # For stand-alone test suites (ie. atconfig was not found),
1336 # AUTOTEST_PATH is relative to `.'.
1338 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1339 # of the package. Then expand it into build/src parts, since users
1340 # may create executables in both places.
1341 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1344 for as_dir in $AUTOTEST_PATH $PATH
1347 test -z "$as_dir" && as_dir=.
1348 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1351 as_fn_append at_path "$as_dir"
1354 if test -z "$at_top_build_prefix"; then
1355 # Stand-alone test suite.
1356 as_fn_append at_path "$as_dir"
1358 # Embedded test suite.
1359 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1360 as_fn_append at_path "$at_top_srcdir/$as_dir"
1368 # Now build and simplify PATH.
1370 # There might be directories that don't exist, but don't redirect
1371 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $at_path
1377 test -z "$as_dir" && as_dir=.
1378 test -d "$as_dir" || continue
1380 [\\/]* | ?:[\\/]* ) ;;
1381 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1383 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1384 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1385 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1386 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1394 # Setting up the FDs.
1398 # 5 is the log file. Not to be overwritten if `-d'.
1399 if $at_debug_p; then
1400 at_suite_log=/dev/null
1404 exec 5>>"$at_suite_log"
1407 $as_echo "## ------------------------ ##
1408 ## GNU tar 1.29 test suite. ##
1409 ## ------------------------ ##"
1411 $as_echo "## ------------------------ ##
1412 ## GNU tar 1.29 test suite. ##
1413 ## ------------------------ ##"
1416 $as_echo "$as_me: command line was:"
1417 $as_echo " \$ $0 $at_cli_args"
1420 # If ChangeLog exists, list a few lines in case it might help determining
1421 # the exact version.
1422 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1423 $as_echo "## ---------- ##
1427 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1437 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1438 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1439 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1440 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1441 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1444 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1446 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1447 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1448 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1449 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1450 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1451 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1452 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 $as_echo "PATH: $as_dir"
1468 # Contents of the config files.
1469 for at_file in atconfig atlocal
1471 test -r $at_file || continue
1472 $as_echo "$as_me: $at_file:"
1473 sed 's/^/| /' $at_file
1479 ## ------------------------- ##
1480 ## Autotest shell functions. ##
1481 ## ------------------------- ##
1483 # at_fn_banner NUMBER
1484 # -------------------
1485 # Output banner NUMBER, provided the testsuite is running multiple groups and
1486 # this particular banner has not yet been printed.
1489 $at_print_banners || return 0
1490 eval at_banner_text=\$at_banner_text_$1
1491 test "x$at_banner_text" = "x " && return 0
1492 eval "at_banner_text_$1=\" \""
1493 if test -z "$at_banner_text"; then
1496 $as_echo "$as_nl$at_banner_text$as_nl"
1500 # at_fn_check_prepare_notrace REASON LINE
1501 # ---------------------------------------
1502 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1503 # command; REASON is the reason for disabling tracing.
1504 at_fn_check_prepare_notrace ()
1506 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1507 $as_echo "$2" >"$at_check_line_file"
1508 at_check_trace=: at_check_filter=:
1509 : >"$at_stdout"; : >"$at_stderr"
1512 # at_fn_check_prepare_trace LINE
1513 # ------------------------------
1514 # Perform AT_CHECK preparations for the command at LINE for a traceable
1516 at_fn_check_prepare_trace ()
1518 $as_echo "$1" >"$at_check_line_file"
1519 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1520 : >"$at_stdout"; : >"$at_stderr"
1523 # at_fn_check_prepare_dynamic COMMAND LINE
1524 # ----------------------------------------
1525 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1526 # preparation function.
1527 at_fn_check_prepare_dynamic ()
1531 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1533 at_fn_check_prepare_trace "$2" ;;
1537 # at_fn_filter_trace
1538 # ------------------
1539 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1541 at_fn_filter_trace ()
1543 mv "$at_stderr" "$at_stder1"
1544 grep '^ *+' "$at_stder1" >&2
1545 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1548 # at_fn_log_failure FILE-LIST
1549 # ---------------------------
1550 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1551 # with a failure exit code.
1552 at_fn_log_failure ()
1555 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1556 echo 1 > "$at_status_file"
1560 # at_fn_check_skip EXIT-CODE LINE
1561 # -------------------------------
1562 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1563 # the test group subshell with that same exit code. Use LINE in any report
1564 # about test failure.
1568 99) echo 99 > "$at_status_file"; at_failed=:
1569 $as_echo "$2: hard failure"; exit 99;;
1570 77) echo 77 > "$at_status_file"; exit 77;;
1574 # at_fn_check_status EXPECTED EXIT-CODE LINE
1575 # ------------------------------------------
1576 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1577 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1578 # exit code; if it is anything else print an error message referring to LINE,
1579 # and fail the test.
1580 at_fn_check_status ()
1584 77) echo 77 > "$at_status_file"; exit 77;;
1585 99) echo 99 > "$at_status_file"; at_failed=:
1586 $as_echo "$3: hard failure"; exit 99;;
1587 *) $as_echo "$3: exit code was $2, expected $1"
1592 # at_fn_diff_devnull FILE
1593 # -----------------------
1594 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1596 at_fn_diff_devnull ()
1598 test -s "$1" || return 0
1599 $at_diff "$at_devnull" "$1"
1604 # Parse out test NUMBER from the tail of this file.
1607 eval at_sed=\$at_sed$1
1608 sed "$at_sed" "$at_myself" > "$at_test_source"
1611 # at_fn_create_debugging_script
1612 # -----------------------------
1613 # Create the debugging script $at_group_dir/run which will reproduce the
1614 # current test group.
1615 at_fn_create_debugging_script ()
1618 echo "#! /bin/sh" &&
1619 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1620 $as_echo "cd '$at_dir'" &&
1621 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1623 } >"$at_group_dir/run" &&
1624 chmod +x "$at_group_dir/run"
1627 ## -------------------------------- ##
1628 ## End of autotest shell functions. ##
1629 ## -------------------------------- ##
1631 $as_echo "## ---------------- ##
1632 ## Tested programs. ##
1633 ## ---------------- ##"
1637 # Report what programs are being tested.
1638 for at_program in : $at_tested
1640 test "$at_program" = : && continue
1642 [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 test -f "$as_dir/$at_program" && break
1653 at_program_=$as_dir/$at_program ;;
1655 if test -f "$at_program_"; then
1657 $as_echo "$at_srcdir/testsuite.at:197: $at_program_ --version"
1658 "$at_program_" --version </dev/null
1662 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1667 $as_echo "## ------------------ ##
1668 ## Running the tests. ##
1669 ## ------------------ ##"
1672 at_start_date=`date`
1673 at_start_time=`date +%s 2>/dev/null`
1674 $as_echo "$as_me: starting at: $at_start_date" >&5
1676 # Create the master directory if it doesn't already exist.
1677 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1678 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1680 # Can we diff with `/dev/null'? DU 5.0 refuses.
1681 if diff /dev/null /dev/null >/dev/null 2>&1; then
1682 at_devnull=/dev/null
1684 at_devnull=$at_suite_dir/devnull
1688 # Use `diff -u' when possible.
1689 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1696 # Get the last needed group.
1697 for at_group in : $at_groups; do :; done
1699 # Extract the start and end lines of each test group at the tail
1707 test = substr ($ 0, 10)
1708 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1709 if (test == "'"$at_group"'") exit
1710 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1711 . "$at_suite_dir/at-source-lines" ||
1712 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1713 rm -f "$at_suite_dir/at-source-lines"
1715 # Set number of jobs for `-j'; avoid more jobs than test groups.
1716 set X $at_groups; shift; at_max_jobs=$#
1717 if test $at_max_jobs -eq 0; then
1720 if test $at_jobs -ne 1 &&
1721 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1722 at_jobs=$at_max_jobs
1725 # If parallel mode, don't output banners, don't split summary lines.
1726 if test $at_jobs -ne 1; then
1727 at_print_banners=false
1731 # Set up helper dirs.
1732 rm -rf "$at_helper_dir" &&
1733 mkdir "$at_helper_dir" &&
1734 cd "$at_helper_dir" &&
1735 { test -z "$at_groups" || mkdir $at_groups; } ||
1736 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1738 # Functions for running a test group. We leave the actual
1739 # test group execution outside of a shell function in order
1740 # to avoid hitting zsh 4.x exit status bugs.
1742 # at_fn_group_prepare
1743 # -------------------
1744 # Prepare for running a test group.
1745 at_fn_group_prepare ()
1747 # The directory for additional per-group helper files.
1748 at_job_dir=$at_helper_dir/$at_group
1749 # The file containing the location of the last AT_CHECK.
1750 at_check_line_file=$at_job_dir/check-line
1751 # The file containing the exit status of the last command.
1752 at_status_file=$at_job_dir/status
1753 # The files containing the output of the tested commands.
1754 at_stdout=$at_job_dir/stdout
1755 at_stder1=$at_job_dir/stder1
1756 at_stderr=$at_job_dir/stderr
1757 # The file containing the code for a test group.
1758 at_test_source=$at_job_dir/test-source
1759 # The file containing dates.
1760 at_times_file=$at_job_dir/times
1762 # Be sure to come back to the top test directory.
1765 # Clearly separate the test groups when verbose.
1766 $at_first || $at_verbose echo
1768 at_group_normalized=$at_group
1771 case $at_group_normalized in #(
1772 '"$at_format"'*) break;;
1774 at_group_normalized=0$at_group_normalized
1778 # Create a fresh directory for the next test group, and enter.
1779 # If one already exists, the user may have invoked ./run from
1780 # within that directory; we remove the contents, but not the
1781 # directory itself, so that we aren't pulling the rug out from
1782 # under the shell's notion of the current directory.
1783 at_group_dir=$at_suite_dir/$at_group_normalized
1784 at_group_log=$at_group_dir/$as_me.log
1785 if test -d "$at_group_dir"; then
1786 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1787 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1790 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1791 # Be tolerant if the above `rm' was not able to remove the directory.
1792 as_dir="$at_group_dir"; as_fn_mkdir_p
1794 echo 0 > "$at_status_file"
1796 # In verbose mode, append to the log file *and* show on
1797 # the standard output; in quiet mode only write to the log.
1798 if test -z "$at_verbose"; then
1799 at_tee_pipe='tee -a "$at_group_log"'
1801 at_tee_pipe='cat >> "$at_group_log"'
1805 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1806 # -------------------------------------------------
1807 # Declare the test group ORDINAL, located at LINE with group description DESC,
1808 # and residing under BANNER. Use PAD to align the status column.
1809 at_fn_group_banner ()
1812 test -n "$5" && at_fn_banner $5
1815 [0-9]) at_desc_line=" $1: ";;
1816 [0-9][0-9]) at_desc_line=" $1: " ;;
1817 *) at_desc_line="$1: " ;;
1819 as_fn_append at_desc_line "$3$4"
1820 $at_quiet $as_echo_n "$at_desc_line"
1821 echo "# -*- compilation -*-" >> "$at_group_log"
1824 # at_fn_group_postprocess
1825 # -----------------------
1826 # Perform cleanup after running a test group.
1827 at_fn_group_postprocess ()
1829 # Be sure to come back to the suite directory, in particular
1830 # since below we might `rm' the group directory we are in currently.
1833 if test ! -f "$at_check_line_file"; then
1834 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1835 A failure happened in a test group before any test could be
1836 run. This means that test suite is improperly designed. Please
1837 report this failure to <bug-tar@gnu.org>.
1839 $as_echo "$at_setup_line" >"$at_check_line_file"
1842 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1843 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1844 case $at_xfail:$at_status in
1846 at_msg="UNEXPECTED PASS"
1848 at_errexit=$at_errexit_p
1858 at_msg='skipped ('`cat "$at_check_line_file"`')'
1864 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1866 at_errexit=$at_errexit_p
1870 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1876 echo "$at_res" > "$at_job_dir/$at_res"
1877 # In parallel mode, output the summary line only afterwards.
1878 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1879 $as_echo "$at_desc_line $at_color$at_msg$at_std"
1881 # Make sure there is a separator even with long titles.
1882 $as_echo " $at_color$at_msg$at_std"
1884 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1887 # $at_times_file is only available if the group succeeded.
1888 # We're not including the group log, so the success message
1889 # is written in the global log separately. But we also
1890 # write to the group log in case they're using -d.
1891 if test -f "$at_times_file"; then
1892 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1893 rm -f "$at_times_file"
1895 $as_echo "$at_log_msg" >> "$at_group_log"
1896 $as_echo "$at_log_msg" >&5
1898 # Cleanup the group directory, unless the user wants the files
1899 # or the success was unexpected.
1900 if $at_debug_p || test $at_res = xpass; then
1901 at_fn_create_debugging_script
1902 if test $at_res = xpass && $at_errexit; then
1903 echo stop > "$at_stop_file"
1906 if test -d "$at_group_dir"; then
1907 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1908 rm -fr "$at_group_dir"
1910 rm -f "$at_test_source"
1914 # Upon failure, include the log into the testsuite's global
1915 # log. The failure message is written in the group log. It
1916 # is later included in the global log.
1917 $as_echo "$at_log_msg" >> "$at_group_log"
1919 # Upon failure, keep the group directory for autopsy, and create
1920 # the debugging script. With -e, do not start any further tests.
1921 at_fn_create_debugging_script
1922 if $at_errexit; then
1923 echo stop > "$at_stop_file"
1935 if (set -m && set +m && set +b) >/dev/null 2>&1; then
1937 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1939 at_job_control_on=: at_job_control_off=: at_job_group=
1942 for at_signal in 1 2 15; do
1943 trap 'set +x; set +e
1945 at_signal='"$at_signal"'
1946 echo stop > "$at_stop_file"
1949 for at_pgid in `jobs -p 2>/dev/null`; do
1950 at_pgids="$at_pgids $at_job_group$at_pgid"
1952 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1954 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1957 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1959 test 0 -gt 2 && at_signame=$at_signal
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1961 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1962 as_fn_arith 128 + $at_signal && exit_status=$as_val
1963 as_fn_exit $exit_status' $at_signal
1966 rm -f "$at_stop_file"
1969 if test $at_jobs -ne 1 &&
1970 rm -f "$at_job_fifo" &&
1971 test -n "$at_job_group" &&
1972 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1974 # FIFO job dispatcher.
1977 for at_pid in `jobs -p`; do
1978 at_pids="$at_pids $at_job_group$at_pid"
1980 if test -n "$at_pids"; then
1982 test "${TMOUT+set}" = set && at_sig=STOP
1983 kill -$at_sig $at_pids 2>/dev/null
1986 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1989 # Turn jobs into a list of numbers, starting from 1.
1990 at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1994 for at_group in $at_groups; do
1995 $at_job_control_on 2>/dev/null
1997 # Start one test group.
2000 exec 7>"$at_job_fifo"
2004 trap 'set +x; set +e
2006 echo stop > "$at_stop_file"
2008 as_fn_exit 141' PIPE
2010 if cd "$at_group_dir" &&
2011 at_fn_test $at_group &&
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2015 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2018 at_fn_group_postprocess
2024 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
2026 shift # Consume one token.
2027 if test $# -gt 0; then :; else
2028 read at_token <&6 || break
2031 test -f "$at_stop_file" && break
2034 # Read back the remaining ($at_jobs - 1) tokens.
2037 if test $# -gt 0; then
2047 # Run serially, avoid forks and other potential surprises.
2048 for at_group in $at_groups; do
2050 if cd "$at_group_dir" &&
2051 at_fn_test $at_group &&
2052 . "$at_test_source"; then :; else
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2054 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2057 at_fn_group_postprocess
2058 test -f "$at_stop_file" && break
2063 # Wrap up the test suite with summary statistics.
2066 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2067 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2068 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2069 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2070 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2071 echo $f; done | sed '/?/d; s,/xpass,,'`
2072 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2073 echo $f; done | sed '/?/d; s,/fail,,'`
2075 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2076 shift; at_group_count=$#
2077 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2078 set X $at_xfail_list; shift; at_xfail_count=$#
2079 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2080 set X $at_skip_list; shift; at_skip_count=$#
2082 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2083 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2084 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2086 # Back to the top directory.
2088 rm -rf "$at_helper_dir"
2090 # Compute the duration of the suite.
2092 at_stop_time=`date +%s 2>/dev/null`
2093 $as_echo "$as_me: ending at: $at_stop_date" >&5
2094 case $at_start_time,$at_stop_time in
2096 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2097 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2098 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2099 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2100 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2101 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2102 $as_echo "$as_me: test suite duration: $at_duration" >&5
2107 $as_echo "## ------------- ##
2109 ## ------------- ##"
2113 $as_echo "## ------------- ##
2115 ## ------------- ##"
2119 if test $at_run_count = 1; then
2123 at_result="$at_run_count tests"
2126 if $at_errexit_p && test $at_unexpected_count != 0; then
2127 if test $at_xpass_count = 1; then
2128 at_result="$at_result $at_were run, one passed"
2130 at_result="$at_result $at_were run, one failed"
2132 at_result="$at_result unexpectedly and inhibited subsequent tests."
2135 # Don't you just love exponential explosion of the number of cases?
2137 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2139 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2140 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2142 # Some unexpected failures
2143 0:*:0) at_result="$at_result $at_were run,
2144 $at_fail_count failed unexpectedly." ;;
2146 # Some failures, both expected and unexpected
2147 0:*:1) at_result="$at_result $at_were run,
2148 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2149 0:*:*) at_result="$at_result $at_were run,
2150 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2152 # No unexpected failures, but some xpasses
2153 *:0:*) at_result="$at_result $at_were run,
2154 $at_xpass_count passed unexpectedly." ;;
2156 # No expected failures, but failures and xpasses
2157 *:1:0) at_result="$at_result $at_were run,
2158 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2159 *:*:0) at_result="$at_result $at_were run,
2160 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2163 *:*:1) at_result="$at_result $at_were run,
2164 $at_xpass_count passed unexpectedly,
2165 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2166 *:*:*) at_result="$at_result $at_were run,
2167 $at_xpass_count passed unexpectedly,
2168 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2171 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2172 at_result="All $at_result"
2176 # Now put skips in the mix.
2177 case $at_skip_count in
2179 1) at_result="$at_result
2180 1 test was skipped." ;;
2181 *) at_result="$at_result
2182 $at_skip_count tests were skipped." ;;
2185 if test $at_unexpected_count = 0; then
2186 echo "$at_color$at_result$at_std"
2187 echo "$at_result" >&5
2189 echo "${at_color}ERROR: $at_result$at_std" >&2
2190 echo "ERROR: $at_result" >&5
2193 $as_echo "## ------------------------ ##
2194 ## Summary of the failures. ##
2195 ## ------------------------ ##"
2197 # Summary of failed and skipped tests.
2198 if test $at_fail_count != 0; then
2199 echo "Failed tests:"
2200 $SHELL "$at_myself" $at_fail_list --list
2203 if test $at_skip_count != 0; then
2204 echo "Skipped tests:"
2205 $SHELL "$at_myself" $at_skip_list --list
2208 if test $at_xpass_count != 0; then
2209 echo "Unexpected passes:"
2210 $SHELL "$at_myself" $at_xpass_list --list
2213 if test $at_fail_count != 0; then
2214 $as_echo "## ---------------------- ##
2215 ## Detailed failed tests. ##
2216 ## ---------------------- ##"
2218 for at_group in $at_fail_list
2220 at_group_normalized=$at_group
2223 case $at_group_normalized in #(
2224 '"$at_format"'*) break;;
2226 at_group_normalized=0$at_group_normalized
2229 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2234 if test -n "$at_top_srcdir"; then
2235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2236 ## ${at_top_build_prefix}config.log ##
2238 sed 's/^/| /' ${at_top_build_prefix}config.log
2243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2244 ## $as_me.log was created. ##
2248 if $at_debug_p; then
2249 at_msg='per-test log files'
2251 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2253 $as_echo "Please send $at_msg and all information you think might help:
2255 To: <bug-tar@gnu.org>
2256 Subject: [GNU tar 1.29] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
2258 You may investigate any problem if you feel able to do so, in which
2259 case the test suite provides a good starting point. Its output may
2260 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2271 at_fn_group_banner 1 'version.at:20' \
2275 $as_echo "1. $at_setup_line: testing $at_desc ..."
2280 $as_echo "$at_srcdir/version.at:22: tar --version | sed 1q"
2281 at_fn_check_prepare_notrace 'a shell pipeline' "version.at:22"
2282 ( $at_check_trace; tar --version | sed 1q
2283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2284 at_status=$? at_failed=false
2286 at_fn_diff_devnull "$at_stderr" || at_failed=:
2287 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.29
2289 $at_diff - "$at_stdout" || at_failed=:
2290 at_fn_check_status 0 $at_status "$at_srcdir/version.at:22"
2291 if $at_failed; then :
2292 cat >$XFAILFILE <<'_EOT'
2294 ==============================================================
2295 WARNING: Not using the proper version, *all* checks dubious...
2296 ==============================================================
2302 $at_failed && at_fn_log_failure
2307 $at_times_p && times >"$at_times_file"
2308 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2309 read at_status <"$at_status_file"
2312 at_fn_group_banner 2 'pipe.at:29' \
2313 "decompressing from stdin" " "
2315 test -f $XFAILFILE && at_xfail=yes
2317 $as_echo "2. $at_setup_line: testing $at_desc ..."
2326 $as_echo "$at_srcdir/pipe.at:33:
2330 export TEST_TAR_FORMAT
2331 TAR_OPTIONS=\"-H v7\"
2336 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2340 genfile --length 10240 --pattern zeros --file directory/file1
2341 genfile --length 13 --file directory/file2
2342 tar cf archive directory
2344 cat archive | tar xfv - --warning=no-timestamp | sort
2346 cmp orig/file1 directory/file1
2348 cmp orig/file2 directory/file2)"
2349 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2354 export TEST_TAR_FORMAT
2360 test -z "`sort < /dev/null 2>&1`" || exit 77
2364 genfile --length 10240 --pattern zeros --file directory/file1
2365 genfile --length 13 --file directory/file2
2366 tar cf archive directory
2368 cat archive | tar xfv - --warning=no-timestamp | sort
2370 cmp orig/file1 directory/file1
2372 cmp orig/file2 directory/file2)
2373 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2374 at_status=$? at_failed=false
2376 at_fn_diff_devnull "$at_stderr" || at_failed=:
2377 echo >>"$at_stdout"; $as_echo "directory/
2383 $at_diff - "$at_stdout" || at_failed=:
2384 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2385 $at_failed && at_fn_log_failure
2389 $as_echo "$at_srcdir/pipe.at:33:
2392 TEST_TAR_FORMAT=oldgnu
2393 export TEST_TAR_FORMAT
2394 TAR_OPTIONS=\"-H oldgnu\"
2399 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2403 genfile --length 10240 --pattern zeros --file directory/file1
2404 genfile --length 13 --file directory/file2
2405 tar cf archive directory
2407 cat archive | tar xfv - --warning=no-timestamp | sort
2409 cmp orig/file1 directory/file1
2411 cmp orig/file2 directory/file2)"
2412 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2416 TEST_TAR_FORMAT=oldgnu
2417 export TEST_TAR_FORMAT
2418 TAR_OPTIONS="-H oldgnu"
2423 test -z "`sort < /dev/null 2>&1`" || exit 77
2427 genfile --length 10240 --pattern zeros --file directory/file1
2428 genfile --length 13 --file directory/file2
2429 tar cf archive directory
2431 cat archive | tar xfv - --warning=no-timestamp | sort
2433 cmp orig/file1 directory/file1
2435 cmp orig/file2 directory/file2)
2436 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2437 at_status=$? at_failed=false
2439 at_fn_diff_devnull "$at_stderr" || at_failed=:
2440 echo >>"$at_stdout"; $as_echo "directory/
2446 $at_diff - "$at_stdout" || at_failed=:
2447 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2448 $at_failed && at_fn_log_failure
2452 $as_echo "$at_srcdir/pipe.at:33:
2455 TEST_TAR_FORMAT=ustar
2456 export TEST_TAR_FORMAT
2457 TAR_OPTIONS=\"-H ustar\"
2462 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2466 genfile --length 10240 --pattern zeros --file directory/file1
2467 genfile --length 13 --file directory/file2
2468 tar cf archive directory
2470 cat archive | tar xfv - --warning=no-timestamp | sort
2472 cmp orig/file1 directory/file1
2474 cmp orig/file2 directory/file2)"
2475 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2479 TEST_TAR_FORMAT=ustar
2480 export TEST_TAR_FORMAT
2481 TAR_OPTIONS="-H ustar"
2486 test -z "`sort < /dev/null 2>&1`" || exit 77
2490 genfile --length 10240 --pattern zeros --file directory/file1
2491 genfile --length 13 --file directory/file2
2492 tar cf archive directory
2494 cat archive | tar xfv - --warning=no-timestamp | sort
2496 cmp orig/file1 directory/file1
2498 cmp orig/file2 directory/file2)
2499 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2500 at_status=$? at_failed=false
2502 at_fn_diff_devnull "$at_stderr" || at_failed=:
2503 echo >>"$at_stdout"; $as_echo "directory/
2509 $at_diff - "$at_stdout" || at_failed=:
2510 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2511 $at_failed && at_fn_log_failure
2515 $as_echo "$at_srcdir/pipe.at:33:
2518 TEST_TAR_FORMAT=posix
2519 export TEST_TAR_FORMAT
2520 TAR_OPTIONS=\"-H posix\"
2525 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2529 genfile --length 10240 --pattern zeros --file directory/file1
2530 genfile --length 13 --file directory/file2
2531 tar cf archive directory
2533 cat archive | tar xfv - --warning=no-timestamp | sort
2535 cmp orig/file1 directory/file1
2537 cmp orig/file2 directory/file2)"
2538 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2542 TEST_TAR_FORMAT=posix
2543 export TEST_TAR_FORMAT
2544 TAR_OPTIONS="-H posix"
2549 test -z "`sort < /dev/null 2>&1`" || exit 77
2553 genfile --length 10240 --pattern zeros --file directory/file1
2554 genfile --length 13 --file directory/file2
2555 tar cf archive directory
2557 cat archive | tar xfv - --warning=no-timestamp | sort
2559 cmp orig/file1 directory/file1
2561 cmp orig/file2 directory/file2)
2562 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2563 at_status=$? at_failed=false
2565 at_fn_diff_devnull "$at_stderr" || at_failed=:
2566 echo >>"$at_stdout"; $as_echo "directory/
2572 $at_diff - "$at_stdout" || at_failed=:
2573 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2574 $at_failed && at_fn_log_failure
2578 $as_echo "$at_srcdir/pipe.at:33:
2582 export TEST_TAR_FORMAT
2583 TAR_OPTIONS=\"-H gnu\"
2588 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2592 genfile --length 10240 --pattern zeros --file directory/file1
2593 genfile --length 13 --file directory/file2
2594 tar cf archive directory
2596 cat archive | tar xfv - --warning=no-timestamp | sort
2598 cmp orig/file1 directory/file1
2600 cmp orig/file2 directory/file2)"
2601 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2606 export TEST_TAR_FORMAT
2607 TAR_OPTIONS="-H gnu"
2612 test -z "`sort < /dev/null 2>&1`" || exit 77
2616 genfile --length 10240 --pattern zeros --file directory/file1
2617 genfile --length 13 --file directory/file2
2618 tar cf archive directory
2620 cat archive | tar xfv - --warning=no-timestamp | sort
2622 cmp orig/file1 directory/file1
2624 cmp orig/file2 directory/file2)
2625 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2626 at_status=$? at_failed=false
2628 at_fn_diff_devnull "$at_stderr" || at_failed=:
2629 echo >>"$at_stdout"; $as_echo "directory/
2635 $at_diff - "$at_stdout" || at_failed=:
2636 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2637 $at_failed && at_fn_log_failure
2644 $at_times_p && times >"$at_times_file"
2645 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2646 read at_status <"$at_status_file"
2649 at_fn_group_banner 3 'options.at:25' \
2650 "mixing options" " "
2653 $as_echo "3. $at_setup_line: testing $at_desc ..."
2659 $as_echo "$at_srcdir/options.at:28:
2661 TAR_OPTIONS=--numeric-owner tar chof archive file1
2664 at_fn_check_prepare_notrace 'an embedded newline' "options.at:28"
2667 TAR_OPTIONS=--numeric-owner tar chof archive file1
2670 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2671 at_status=$? at_failed=false
2673 at_fn_diff_devnull "$at_stderr" || at_failed=:
2674 echo >>"$at_stdout"; $as_echo "file1
2676 $at_diff - "$at_stdout" || at_failed=:
2677 at_fn_check_status 0 $at_status "$at_srcdir/options.at:28"
2678 $at_failed && at_fn_log_failure
2683 $at_times_p && times >"$at_times_file"
2684 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2685 read at_status <"$at_status_file"
2688 at_fn_group_banner 4 'options02.at:27' \
2689 "interspersed options" " "
2692 $as_echo "4. $at_setup_line: testing $at_desc ..."
2698 $as_echo "$at_srcdir/options02.at:30:
2700 tar c file1 -f archive
2703 at_fn_check_prepare_notrace 'an embedded newline' "options02.at:30"
2706 tar c file1 -f archive
2709 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2710 at_status=$? at_failed=false
2712 at_fn_diff_devnull "$at_stderr" || at_failed=:
2713 echo >>"$at_stdout"; $as_echo "file1
2715 $at_diff - "$at_stdout" || at_failed=:
2716 at_fn_check_status 0 $at_status "$at_srcdir/options02.at:30"
2717 $at_failed && at_fn_log_failure
2722 $at_times_p && times >"$at_times_file"
2723 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2724 read at_status <"$at_status_file"
2727 at_fn_group_banner 5 'opcomp01.at:21' \
2728 "occurrence compatibility" " " 1
2731 $as_echo "5. $at_setup_line: testing $at_desc ..."
2737 $as_echo "$at_srcdir/opcomp01.at:24:
2738 tar --occurrence=1 -cf test.tar .
2740 at_fn_check_prepare_notrace 'an embedded newline' "opcomp01.at:24"
2742 tar --occurrence=1 -cf test.tar .
2744 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2745 at_status=$? at_failed=false
2747 echo >>"$at_stderr"; $as_echo "tar: '--occurrence' cannot be used with '-c'
2748 Try 'tar --help' or 'tar --usage' for more information.
2750 $at_diff - "$at_stderr" || at_failed=:
2751 at_fn_diff_devnull "$at_stdout" || at_failed=:
2752 at_fn_check_status 2 $at_status "$at_srcdir/opcomp01.at:24"
2753 $at_failed && at_fn_log_failure
2758 $at_times_p && times >"$at_times_file"
2759 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2760 read at_status <"$at_status_file"
2763 at_fn_group_banner 6 'opcomp02.at:21' \
2764 "occurrence compatibility" " " 1
2767 $as_echo "6. $at_setup_line: testing $at_desc ..."
2773 $as_echo "$at_srcdir/opcomp02.at:24:
2774 tar --occurrence=1 -tf test.tar
2776 at_fn_check_prepare_notrace 'an embedded newline' "opcomp02.at:24"
2778 tar --occurrence=1 -tf test.tar
2780 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2781 at_status=$? at_failed=false
2783 echo >>"$at_stderr"; $as_echo "tar: --occurrence is meaningless without a file list
2784 Try 'tar --help' or 'tar --usage' for more information.
2786 $at_diff - "$at_stderr" || at_failed=:
2787 at_fn_diff_devnull "$at_stdout" || at_failed=:
2788 at_fn_check_status 2 $at_status "$at_srcdir/opcomp02.at:24"
2789 $at_failed && at_fn_log_failure
2794 $at_times_p && times >"$at_times_file"
2795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2796 read at_status <"$at_status_file"
2799 at_fn_group_banner 7 'opcomp03.at:21' \
2800 "--verify compatibility" " " 1
2803 $as_echo "7. $at_setup_line: testing $at_desc ..."
2809 $as_echo "$at_srcdir/opcomp03.at:24:
2812 at_fn_check_prepare_notrace 'an embedded newline' "opcomp03.at:24"
2816 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2817 at_status=$? at_failed=false
2819 echo >>"$at_stderr"; $as_echo "tar: '--verify' cannot be used with '-t'
2820 Try 'tar --help' or 'tar --usage' for more information.
2822 $at_diff - "$at_stderr" || at_failed=:
2823 at_fn_diff_devnull "$at_stdout" || at_failed=:
2824 at_fn_check_status 2 $at_status "$at_srcdir/opcomp03.at:24"
2825 $at_failed && at_fn_log_failure
2830 $at_times_p && times >"$at_times_file"
2831 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2832 read at_status <"$at_status_file"
2835 at_fn_group_banner 8 'opcomp04.at:21' \
2836 "compress option compatibility" " " 1
2839 $as_echo "8. $at_setup_line: testing $at_desc ..."
2845 $as_echo "$at_srcdir/opcomp04.at:24:
2847 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2850 tar czf test.tar file
2851 genfile --file newfile
2852 tar rzf test.tar newfile
2854 at_fn_check_prepare_notrace 'an embedded newline' "opcomp04.at:24"
2857 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2860 tar czf test.tar file
2861 genfile --file newfile
2862 tar rzf test.tar newfile
2864 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2865 at_status=$? at_failed=false
2867 echo >>"$at_stderr"; $as_echo "tar: Cannot update compressed archives
2868 Try 'tar --help' or 'tar --usage' for more information.
2870 $at_diff - "$at_stderr" || at_failed=:
2871 at_fn_diff_devnull "$at_stdout" || at_failed=:
2872 at_fn_check_status 2 $at_status "$at_srcdir/opcomp04.at:24"
2873 $at_failed && at_fn_log_failure
2878 $at_times_p && times >"$at_times_file"
2879 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2880 read at_status <"$at_status_file"
2883 at_fn_group_banner 9 'opcomp05.at:21' \
2884 "--pax-option compatibility" " " 1
2887 $as_echo "9. $at_setup_line: testing $at_desc ..."
2893 $as_echo "$at_srcdir/opcomp05.at:24:
2894 tar -Hgnu -cf test.tar --pax-option user:=root .
2896 at_fn_check_prepare_notrace 'an embedded newline' "opcomp05.at:24"
2898 tar -Hgnu -cf test.tar --pax-option user:=root .
2900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2901 at_status=$? at_failed=false
2903 echo >>"$at_stderr"; $as_echo "tar: --pax-option can be used only on POSIX archives
2904 Try 'tar --help' or 'tar --usage' for more information.
2906 $at_diff - "$at_stderr" || at_failed=:
2907 at_fn_diff_devnull "$at_stdout" || at_failed=:
2908 at_fn_check_status 2 $at_status "$at_srcdir/opcomp05.at:24"
2909 $at_failed && at_fn_log_failure
2914 $at_times_p && times >"$at_times_file"
2915 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2916 read at_status <"$at_status_file"
2919 at_fn_group_banner 10 'opcomp06.at:21' \
2920 "--pax-option compatibility" " " 1
2923 $as_echo "10. $at_setup_line: testing $at_desc ..."
2929 $as_echo "$at_srcdir/opcomp06.at:24:
2932 file=\$(TMPDIR=. mktemp fiXXXXXX)
2934 setfacl -m u:\$UID:rwx \$file &> /dev/null
2935 if test \"\$?\" != 0; then
2940 getfacl \$file &> /dev/null
2941 if test \"\$?\" != 0; then
2947 file=\$(TMPDIR=. mktemp fiXXXXXX)
2948 setfacl -m u:\$UID:rwx \$file
2949 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
2950 if test \"\$err\" != \"0\"; then
2955 tar -cf test.tar --acls -Hgnu file
2957 at_fn_check_prepare_notrace 'a $(...) command substitution' "opcomp06.at:24"
2961 file=$(TMPDIR=. mktemp fiXXXXXX)
2963 setfacl -m u:$UID:rwx $file &> /dev/null
2964 if test "$?" != 0; then
2969 getfacl $file &> /dev/null
2970 if test "$?" != 0; then
2976 file=$(TMPDIR=. mktemp fiXXXXXX)
2977 setfacl -m u:$UID:rwx $file
2978 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
2979 if test "$err" != "0"; then
2984 tar -cf test.tar --acls -Hgnu file
2986 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2987 at_status=$? at_failed=false
2989 echo >>"$at_stderr"; $as_echo "tar: --acls can be used only on POSIX archives
2990 Try 'tar --help' or 'tar --usage' for more information.
2992 $at_diff - "$at_stderr" || at_failed=:
2993 at_fn_diff_devnull "$at_stdout" || at_failed=:
2994 at_fn_check_status 2 $at_status "$at_srcdir/opcomp06.at:24"
2995 $at_failed && at_fn_log_failure
3000 $at_times_p && times >"$at_times_file"
3001 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3002 read at_status <"$at_status_file"
3005 at_fn_group_banner 11 'T-mult.at:21' \
3006 "multiple file lists" " " 2
3008 test -f $XFAILFILE && at_xfail=yes
3010 $as_echo "11. $at_setup_line: testing $at_desc ..."
3018 $as_echo "$at_srcdir/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_fn_check_prepare_notrace 'an embedded newline' "T-mult.at:24"
3048 TEST_TAR_FORMAT=ustar
3049 export TEST_TAR_FORMAT
3050 TAR_OPTIONS="-H ustar"
3068 tar cf archive -T F1 -T F2
3071 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3072 at_status=$? at_failed=false
3074 at_fn_diff_devnull "$at_stderr" || at_failed=:
3075 echo >>"$at_stdout"; $as_echo "file1
3080 $at_diff - "$at_stdout" || at_failed=:
3081 at_fn_check_status 0 $at_status "$at_srcdir/T-mult.at:24"
3082 $at_failed && at_fn_log_failure
3089 $at_times_p && times >"$at_times_file"
3090 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3091 read at_status <"$at_status_file"
3094 at_fn_group_banner 12 'T-nest.at:21' \
3095 "nested file lists" " " 2
3097 test -f $XFAILFILE && at_xfail=yes
3099 $as_echo "12. $at_setup_line: testing $at_desc ..."
3107 $as_echo "$at_srcdir/T-nest.at:24:
3110 TEST_TAR_FORMAT=ustar
3111 export TEST_TAR_FORMAT
3112 TAR_OPTIONS=\"-H ustar\"
3131 tar cf archive -T F1
3134 at_fn_check_prepare_notrace 'an embedded newline' "T-nest.at:24"
3138 TEST_TAR_FORMAT=ustar
3139 export TEST_TAR_FORMAT
3140 TAR_OPTIONS="-H ustar"
3159 tar cf archive -T F1
3162 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3163 at_status=$? at_failed=false
3165 at_fn_diff_devnull "$at_stderr" || at_failed=:
3166 echo >>"$at_stdout"; $as_echo "file1
3171 $at_diff - "$at_stdout" || at_failed=:
3172 at_fn_check_status 0 $at_status "$at_srcdir/T-nest.at:24"
3173 $at_failed && at_fn_log_failure
3180 $at_times_p && times >"$at_times_file"
3181 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3182 read at_status <"$at_status_file"
3185 at_fn_group_banner 13 'T-rec.at:21' \
3186 "recursive file lists" " " 2
3188 test -f $XFAILFILE && at_xfail=yes
3190 $as_echo "13. $at_setup_line: testing $at_desc ..."
3198 $as_echo "$at_srcdir/T-rec.at:24:
3201 TEST_TAR_FORMAT=ustar
3202 export TEST_TAR_FORMAT
3203 TAR_OPTIONS=\"-H ustar\"
3219 tar cf archive -T F1
3223 at_fn_check_prepare_notrace 'an embedded newline' "T-rec.at:24"
3227 TEST_TAR_FORMAT=ustar
3228 export TEST_TAR_FORMAT
3229 TAR_OPTIONS="-H ustar"
3245 tar cf archive -T F1
3249 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3250 at_status=$? at_failed=false
3252 echo >>"$at_stderr"; $as_echo "tar: F1: file list requested from F2 already read from command line
3253 tar: Exiting with failure status due to previous errors
3255 $at_diff - "$at_stderr" || at_failed=:
3256 echo >>"$at_stdout"; $as_echo "2
3260 $at_diff - "$at_stdout" || at_failed=:
3261 at_fn_check_status 0 $at_status "$at_srcdir/T-rec.at:24"
3262 $at_failed && at_fn_log_failure
3269 $at_times_p && times >"$at_times_file"
3270 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3271 read at_status <"$at_status_file"
3274 at_fn_group_banner 14 'T-recurse.at:27' \
3275 "files-from & recurse: toggle" " " 2
3277 test -f $XFAILFILE && at_xfail=yes
3279 $as_echo "14. $at_setup_line: testing $at_desc ..."
3287 $as_echo "$at_srcdir/T-recurse.at:30:
3291 export TEST_TAR_FORMAT
3292 TAR_OPTIONS=\"-H v7\"
3296 mkdir directory1 directory2
3297 touch directory1/file directory2/file
3318 tar cf \"\$a\" --files-from F1
3322 tar cf \"\$a\" --no-recursion -T F2A --recursion -T F2B
3325 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:30"
3330 export TEST_TAR_FORMAT
3335 mkdir directory1 directory2
3336 touch directory1/file directory2/file
3357 tar cf "$a" --files-from F1
3361 tar cf "$a" --no-recursion -T F2A --recursion -T F2B
3364 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3365 at_status=$? at_failed=false
3367 at_fn_diff_devnull "$at_stderr" || at_failed=:
3368 echo >>"$at_stdout"; $as_echo "directory1/
3375 $at_diff - "$at_stdout" || at_failed=:
3376 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:30"
3377 $at_failed && at_fn_log_failure
3381 $as_echo "$at_srcdir/T-recurse.at:30:
3384 TEST_TAR_FORMAT=oldgnu
3385 export TEST_TAR_FORMAT
3386 TAR_OPTIONS=\"-H oldgnu\"
3390 mkdir directory1 directory2
3391 touch directory1/file directory2/file
3412 tar cf \"\$a\" --files-from F1
3416 tar cf \"\$a\" --no-recursion -T F2A --recursion -T F2B
3419 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:30"
3423 TEST_TAR_FORMAT=oldgnu
3424 export TEST_TAR_FORMAT
3425 TAR_OPTIONS="-H oldgnu"
3429 mkdir directory1 directory2
3430 touch directory1/file directory2/file
3451 tar cf "$a" --files-from F1
3455 tar cf "$a" --no-recursion -T F2A --recursion -T F2B
3458 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3459 at_status=$? at_failed=false
3461 at_fn_diff_devnull "$at_stderr" || at_failed=:
3462 echo >>"$at_stdout"; $as_echo "directory1/
3469 $at_diff - "$at_stdout" || at_failed=:
3470 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:30"
3471 $at_failed && at_fn_log_failure
3475 $as_echo "$at_srcdir/T-recurse.at:30:
3478 TEST_TAR_FORMAT=ustar
3479 export TEST_TAR_FORMAT
3480 TAR_OPTIONS=\"-H ustar\"
3484 mkdir directory1 directory2
3485 touch directory1/file directory2/file
3506 tar cf \"\$a\" --files-from F1
3510 tar cf \"\$a\" --no-recursion -T F2A --recursion -T F2B
3513 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:30"
3517 TEST_TAR_FORMAT=ustar
3518 export TEST_TAR_FORMAT
3519 TAR_OPTIONS="-H ustar"
3523 mkdir directory1 directory2
3524 touch directory1/file directory2/file
3545 tar cf "$a" --files-from F1
3549 tar cf "$a" --no-recursion -T F2A --recursion -T F2B
3552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3553 at_status=$? at_failed=false
3555 at_fn_diff_devnull "$at_stderr" || at_failed=:
3556 echo >>"$at_stdout"; $as_echo "directory1/
3563 $at_diff - "$at_stdout" || at_failed=:
3564 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:30"
3565 $at_failed && at_fn_log_failure
3569 $as_echo "$at_srcdir/T-recurse.at:30:
3572 TEST_TAR_FORMAT=posix
3573 export TEST_TAR_FORMAT
3574 TAR_OPTIONS=\"-H posix\"
3578 mkdir directory1 directory2
3579 touch directory1/file directory2/file
3600 tar cf \"\$a\" --files-from F1
3604 tar cf \"\$a\" --no-recursion -T F2A --recursion -T F2B
3607 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:30"
3611 TEST_TAR_FORMAT=posix
3612 export TEST_TAR_FORMAT
3613 TAR_OPTIONS="-H posix"
3617 mkdir directory1 directory2
3618 touch directory1/file directory2/file
3639 tar cf "$a" --files-from F1
3643 tar cf "$a" --no-recursion -T F2A --recursion -T F2B
3646 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3647 at_status=$? at_failed=false
3649 at_fn_diff_devnull "$at_stderr" || at_failed=:
3650 echo >>"$at_stdout"; $as_echo "directory1/
3657 $at_diff - "$at_stdout" || at_failed=:
3658 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:30"
3659 $at_failed && at_fn_log_failure
3663 $as_echo "$at_srcdir/T-recurse.at:30:
3667 export TEST_TAR_FORMAT
3668 TAR_OPTIONS=\"-H gnu\"
3672 mkdir directory1 directory2
3673 touch directory1/file directory2/file
3694 tar cf \"\$a\" --files-from F1
3698 tar cf \"\$a\" --no-recursion -T F2A --recursion -T F2B
3701 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:30"
3706 export TEST_TAR_FORMAT
3707 TAR_OPTIONS="-H gnu"
3711 mkdir directory1 directory2
3712 touch directory1/file directory2/file
3733 tar cf "$a" --files-from F1
3737 tar cf "$a" --no-recursion -T F2A --recursion -T F2B
3740 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3741 at_status=$? at_failed=false
3743 at_fn_diff_devnull "$at_stderr" || at_failed=:
3744 echo >>"$at_stdout"; $as_echo "directory1/
3751 $at_diff - "$at_stdout" || at_failed=:
3752 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:30"
3753 $at_failed && at_fn_log_failure
3760 $at_times_p && times >"$at_times_file"
3761 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3762 read at_status <"$at_status_file"
3765 at_fn_group_banner 15 'T-recurse.at:66' \
3766 "toggle --recursion (not) from -T" " " 2
3768 test -f $XFAILFILE && at_xfail=yes
3770 $as_echo "15. $at_setup_line: testing $at_desc ..."
3778 $as_echo "$at_srcdir/T-recurse.at:69:
3782 export TEST_TAR_FORMAT
3783 TAR_OPTIONS=\"-H v7\"
3787 mkdir directory1 directory2
3788 touch directory1/file directory2/file
3801 tar cf archive -T F1 --recursion -T F2
3805 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:69"
3810 export TEST_TAR_FORMAT
3815 mkdir directory1 directory2
3816 touch directory1/file directory2/file
3829 tar cf archive -T F1 --recursion -T F2
3833 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3834 at_status=$? at_failed=false
3836 at_fn_diff_devnull "$at_stderr" || at_failed=:
3837 echo >>"$at_stdout"; $as_echo "directory1/
3841 $at_diff - "$at_stdout" || at_failed=:
3842 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:69"
3843 $at_failed && at_fn_log_failure
3847 $as_echo "$at_srcdir/T-recurse.at:69:
3850 TEST_TAR_FORMAT=oldgnu
3851 export TEST_TAR_FORMAT
3852 TAR_OPTIONS=\"-H oldgnu\"
3856 mkdir directory1 directory2
3857 touch directory1/file directory2/file
3870 tar cf archive -T F1 --recursion -T F2
3874 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:69"
3878 TEST_TAR_FORMAT=oldgnu
3879 export TEST_TAR_FORMAT
3880 TAR_OPTIONS="-H oldgnu"
3884 mkdir directory1 directory2
3885 touch directory1/file directory2/file
3898 tar cf archive -T F1 --recursion -T F2
3902 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3903 at_status=$? at_failed=false
3905 at_fn_diff_devnull "$at_stderr" || at_failed=:
3906 echo >>"$at_stdout"; $as_echo "directory1/
3910 $at_diff - "$at_stdout" || at_failed=:
3911 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:69"
3912 $at_failed && at_fn_log_failure
3916 $as_echo "$at_srcdir/T-recurse.at:69:
3919 TEST_TAR_FORMAT=ustar
3920 export TEST_TAR_FORMAT
3921 TAR_OPTIONS=\"-H ustar\"
3925 mkdir directory1 directory2
3926 touch directory1/file directory2/file
3939 tar cf archive -T F1 --recursion -T F2
3943 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:69"
3947 TEST_TAR_FORMAT=ustar
3948 export TEST_TAR_FORMAT
3949 TAR_OPTIONS="-H ustar"
3953 mkdir directory1 directory2
3954 touch directory1/file directory2/file
3967 tar cf archive -T F1 --recursion -T F2
3971 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3972 at_status=$? at_failed=false
3974 at_fn_diff_devnull "$at_stderr" || at_failed=:
3975 echo >>"$at_stdout"; $as_echo "directory1/
3979 $at_diff - "$at_stdout" || at_failed=:
3980 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:69"
3981 $at_failed && at_fn_log_failure
3985 $as_echo "$at_srcdir/T-recurse.at:69:
3988 TEST_TAR_FORMAT=posix
3989 export TEST_TAR_FORMAT
3990 TAR_OPTIONS=\"-H posix\"
3994 mkdir directory1 directory2
3995 touch directory1/file directory2/file
4008 tar cf archive -T F1 --recursion -T F2
4012 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:69"
4016 TEST_TAR_FORMAT=posix
4017 export TEST_TAR_FORMAT
4018 TAR_OPTIONS="-H posix"
4022 mkdir directory1 directory2
4023 touch directory1/file directory2/file
4036 tar cf archive -T F1 --recursion -T F2
4040 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4041 at_status=$? at_failed=false
4043 at_fn_diff_devnull "$at_stderr" || at_failed=:
4044 echo >>"$at_stdout"; $as_echo "directory1/
4048 $at_diff - "$at_stdout" || at_failed=:
4049 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:69"
4050 $at_failed && at_fn_log_failure
4054 $as_echo "$at_srcdir/T-recurse.at:69:
4058 export TEST_TAR_FORMAT
4059 TAR_OPTIONS=\"-H gnu\"
4063 mkdir directory1 directory2
4064 touch directory1/file directory2/file
4077 tar cf archive -T F1 --recursion -T F2
4081 at_fn_check_prepare_notrace 'an embedded newline' "T-recurse.at:69"
4086 export TEST_TAR_FORMAT
4087 TAR_OPTIONS="-H gnu"
4091 mkdir directory1 directory2
4092 touch directory1/file directory2/file
4105 tar cf archive -T F1 --recursion -T F2
4109 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4110 at_status=$? at_failed=false
4112 at_fn_diff_devnull "$at_stderr" || at_failed=:
4113 echo >>"$at_stdout"; $as_echo "directory1/
4117 $at_diff - "$at_stdout" || at_failed=:
4118 at_fn_check_status 0 $at_status "$at_srcdir/T-recurse.at:69"
4119 $at_failed && at_fn_log_failure
4126 $at_times_p && times >"$at_times_file"
4127 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4128 read at_status <"$at_status_file"
4131 at_fn_group_banner 16 'T-cd.at:21' \
4132 "-C in file lists" " " 2
4134 test -f $XFAILFILE && at_xfail=yes
4136 $as_echo "16. $at_setup_line: testing $at_desc ..."
4144 $as_echo "$at_srcdir/T-cd.at:24:
4147 TEST_TAR_FORMAT=ustar
4148 export TEST_TAR_FORMAT
4149 TAR_OPTIONS=\"-H ustar\"
4154 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4166 tar cf archive -T F1
4167 tar tf archive | sort
4169 at_fn_check_prepare_notrace 'a `...` command substitution' "T-cd.at:24"
4173 TEST_TAR_FORMAT=ustar
4174 export TEST_TAR_FORMAT
4175 TAR_OPTIONS="-H ustar"
4180 test -z "`sort < /dev/null 2>&1`" || exit 77
4192 tar cf archive -T F1
4193 tar tf archive | sort
4195 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4196 at_status=$? at_failed=false
4198 at_fn_diff_devnull "$at_stderr" || at_failed=:
4199 echo >>"$at_stdout"; $as_echo "./
4204 $at_diff - "$at_stdout" || at_failed=:
4205 at_fn_check_status 0 $at_status "$at_srcdir/T-cd.at:24"
4206 $at_failed && at_fn_log_failure
4213 $at_times_p && times >"$at_times_file"
4214 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4215 read at_status <"$at_status_file"
4218 at_fn_group_banner 17 'T-empty.at:26' \
4219 "empty entries" " " 2
4221 test -f $XFAILFILE && at_xfail=yes
4223 $as_echo "17. $at_setup_line: testing $at_desc ..."
4228 cat >file-list <<'_ATEOF'
4239 $as_echo "$at_srcdir/T-empty.at:36:
4242 TEST_TAR_FORMAT=ustar
4243 export TEST_TAR_FORMAT
4244 TAR_OPTIONS=\"-H ustar\"
4249 genfile --file jeden
4253 tar cfvT archive ../file-list
4255 at_fn_check_prepare_notrace 'an embedded newline' "T-empty.at:36"
4259 TEST_TAR_FORMAT=ustar
4260 export TEST_TAR_FORMAT
4261 TAR_OPTIONS="-H ustar"
4266 genfile --file jeden
4270 tar cfvT archive ../file-list
4272 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4273 at_status=$? at_failed=false
4275 at_fn_diff_devnull "$at_stderr" || at_failed=:
4276 echo >>"$at_stdout"; $as_echo "jeden
4280 $at_diff - "$at_stdout" || at_failed=:
4281 at_fn_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
4282 $at_failed && at_fn_log_failure
4286 # Testing one format is enough
4289 $at_times_p && times >"$at_times_file"
4290 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4291 read at_status <"$at_status_file"
4294 at_fn_group_banner 18 'T-null.at:21' \
4295 "0-separated file without -0" " " 2
4297 test -f $XFAILFILE && at_xfail=yes
4299 $as_echo "18. $at_setup_line: testing $at_desc ..."
4307 $as_echo "$at_srcdir/T-null.at:24:
4310 TEST_TAR_FORMAT=ustar
4311 export TEST_TAR_FORMAT
4312 TAR_OPTIONS=\"-H ustar\"
4317 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4323 cat temp | tr '\\n' '\\0' > file-list
4329 tar cfTv archive file-list
4331 at_fn_check_prepare_notrace 'a `...` command substitution' "T-null.at:24"
4335 TEST_TAR_FORMAT=ustar
4336 export TEST_TAR_FORMAT
4337 TAR_OPTIONS="-H ustar"
4342 test -z "`sort < /dev/null 2>&1`" || exit 77
4348 cat temp | tr '\n' '\0' > file-list
4354 tar cfTv archive file-list
4356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4357 at_status=$? at_failed=false
4359 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
4361 $at_diff - "$at_stderr" || at_failed=:
4362 echo >>"$at_stdout"; $as_echo "jeden
4366 $at_diff - "$at_stdout" || at_failed=:
4367 at_fn_check_status 0 $at_status "$at_srcdir/T-null.at:24"
4368 $at_failed && at_fn_log_failure
4372 # Testing one format is enough
4375 $at_times_p && times >"$at_times_file"
4376 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4377 read at_status <"$at_status_file"
4380 at_fn_group_banner 19 'T-null2.at:17' \
4381 "--null enables verbatim reading" " " 2
4383 test -f $XFAILFILE && at_xfail=yes
4385 $as_echo "19. $at_setup_line: testing $at_desc ..."
4390 # According to the docs, --null should read each line from the file
4391 # list verbatim. This feature was broken by commit 26538c9b (tar version
4397 $as_echo "$at_srcdir/T-null2.at:24:
4400 TEST_TAR_FORMAT=ustar
4401 export TEST_TAR_FORMAT
4402 TAR_OPTIONS=\"-H ustar\"
4406 cat >file-list <<'_ATEOF'
4417 cat file-list | tr '\\n' '\\0' | tar -c -f archive -v --null -T -
4419 at_fn_check_prepare_notrace 'an embedded newline' "T-null2.at:24"
4423 TEST_TAR_FORMAT=ustar
4424 export TEST_TAR_FORMAT
4425 TAR_OPTIONS="-H ustar"
4429 cat >file-list <<'_ATEOF'
4440 cat file-list | tr '\n' '\0' | tar -c -f archive -v --null -T -
4442 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4443 at_status=$? at_failed=false
4445 at_fn_diff_devnull "$at_stderr" || at_failed=:
4446 echo >>"$at_stdout"; $as_echo "a
4450 $at_diff - "$at_stdout" || at_failed=:
4451 at_fn_check_status 0 $at_status "$at_srcdir/T-null2.at:24"
4452 $at_failed && at_fn_log_failure
4456 # Testing one format is enough
4459 $at_times_p && times >"$at_times_file"
4460 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4461 read at_status <"$at_status_file"
4464 at_fn_group_banner 20 'T-zfile.at:26' \
4467 test -f $XFAILFILE && at_xfail=yes
4469 $as_echo "20. $at_setup_line: testing $at_desc ..."
4477 $as_echo "$at_srcdir/T-zfile.at:29:
4480 TEST_TAR_FORMAT=ustar
4481 export TEST_TAR_FORMAT
4482 TAR_OPTIONS=\"-H ustar\"
4486 genfile --length=0 --file empty
4489 cat >valid <<'_ATEOF'
4495 tar cf archive -T empty -T valid
4498 tar cf archive -T valid -T empty
4501 at_fn_check_prepare_notrace 'an embedded newline' "T-zfile.at:29"
4505 TEST_TAR_FORMAT=ustar
4506 export TEST_TAR_FORMAT
4507 TAR_OPTIONS="-H ustar"
4511 genfile --length=0 --file empty
4514 cat >valid <<'_ATEOF'
4520 tar cf archive -T empty -T valid
4523 tar cf archive -T valid -T empty
4526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4527 at_status=$? at_failed=false
4529 at_fn_diff_devnull "$at_stderr" || at_failed=:
4530 echo >>"$at_stdout"; $as_echo "a
4536 $at_diff - "$at_stdout" || at_failed=:
4537 at_fn_check_status 0 $at_status "$at_srcdir/T-zfile.at:29"
4538 $at_failed && at_fn_log_failure
4542 # Testing one format is enough
4545 $at_times_p && times >"$at_times_file"
4546 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4547 read at_status <"$at_status_file"
4550 at_fn_group_banner 21 'T-nonl.at:27' \
4551 "entries with missing newlines" " " 2
4553 test -f $XFAILFILE && at_xfail=yes
4555 $as_echo "21. $at_setup_line: testing $at_desc ..."
4563 $as_echo "$at_srcdir/T-nonl.at:30:
4566 TEST_TAR_FORMAT=ustar
4567 export TEST_TAR_FORMAT
4568 TAR_OPTIONS=\"-H ustar\"
4572 genfile --length=0 --file empty
4573 \$as_echo_n c > 1.nonl
4575 \$as_echo_n e >> 2.nonl
4577 cat >filelist <<'_ATEOF'
4583 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
4586 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
4589 at_fn_check_prepare_notrace 'an embedded newline' "T-nonl.at:30"
4593 TEST_TAR_FORMAT=ustar
4594 export TEST_TAR_FORMAT
4595 TAR_OPTIONS="-H ustar"
4599 genfile --length=0 --file empty
4600 $as_echo_n c > 1.nonl
4602 $as_echo_n e >> 2.nonl
4604 cat >filelist <<'_ATEOF'
4610 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
4613 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
4616 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4617 at_status=$? at_failed=false
4619 at_fn_diff_devnull "$at_stderr" || at_failed=:
4620 echo >>"$at_stdout"; $as_echo "c
4632 $at_diff - "$at_stdout" || at_failed=:
4633 at_fn_check_status 0 $at_status "$at_srcdir/T-nonl.at:30"
4634 $at_failed && at_fn_log_failure
4641 $at_times_p && times >"$at_times_file"
4642 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4643 read at_status <"$at_status_file"
4646 at_fn_group_banner 22 'T-dir00.at:28' \
4647 "recursive extraction from --files-from" " " 2
4649 test -f $XFAILFILE && at_xfail=yes
4651 $as_echo "22. $at_setup_line: testing $at_desc ..."
4658 $as_echo "$at_srcdir/T-dir00.at:30:
4662 export TEST_TAR_FORMAT
4663 TAR_OPTIONS=\"-H v7\"
4668 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4671 genfile -f dir/file1
4672 genfile -f dir/file2
4676 tar xfTv archive list | sort
4678 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir00.at:30"
4683 export TEST_TAR_FORMAT
4689 test -z "`sort < /dev/null 2>&1`" || exit 77
4692 genfile -f dir/file1
4693 genfile -f dir/file2
4697 tar xfTv archive list | sort
4699 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4700 at_status=$? at_failed=false
4702 at_fn_diff_devnull "$at_stderr" || at_failed=:
4703 echo >>"$at_stdout"; $as_echo "dir/
4707 $at_diff - "$at_stdout" || at_failed=:
4708 at_fn_check_status 0 $at_status "$at_srcdir/T-dir00.at:30"
4709 $at_failed && at_fn_log_failure
4713 $as_echo "$at_srcdir/T-dir00.at:30:
4716 TEST_TAR_FORMAT=oldgnu
4717 export TEST_TAR_FORMAT
4718 TAR_OPTIONS=\"-H oldgnu\"
4723 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4726 genfile -f dir/file1
4727 genfile -f dir/file2
4731 tar xfTv archive list | sort
4733 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir00.at:30"
4737 TEST_TAR_FORMAT=oldgnu
4738 export TEST_TAR_FORMAT
4739 TAR_OPTIONS="-H oldgnu"
4744 test -z "`sort < /dev/null 2>&1`" || exit 77
4747 genfile -f dir/file1
4748 genfile -f dir/file2
4752 tar xfTv archive list | sort
4754 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4755 at_status=$? at_failed=false
4757 at_fn_diff_devnull "$at_stderr" || at_failed=:
4758 echo >>"$at_stdout"; $as_echo "dir/
4762 $at_diff - "$at_stdout" || at_failed=:
4763 at_fn_check_status 0 $at_status "$at_srcdir/T-dir00.at:30"
4764 $at_failed && at_fn_log_failure
4768 $as_echo "$at_srcdir/T-dir00.at:30:
4771 TEST_TAR_FORMAT=ustar
4772 export TEST_TAR_FORMAT
4773 TAR_OPTIONS=\"-H ustar\"
4778 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4781 genfile -f dir/file1
4782 genfile -f dir/file2
4786 tar xfTv archive list | sort
4788 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir00.at:30"
4792 TEST_TAR_FORMAT=ustar
4793 export TEST_TAR_FORMAT
4794 TAR_OPTIONS="-H ustar"
4799 test -z "`sort < /dev/null 2>&1`" || exit 77
4802 genfile -f dir/file1
4803 genfile -f dir/file2
4807 tar xfTv archive list | sort
4809 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4810 at_status=$? at_failed=false
4812 at_fn_diff_devnull "$at_stderr" || at_failed=:
4813 echo >>"$at_stdout"; $as_echo "dir/
4817 $at_diff - "$at_stdout" || at_failed=:
4818 at_fn_check_status 0 $at_status "$at_srcdir/T-dir00.at:30"
4819 $at_failed && at_fn_log_failure
4823 $as_echo "$at_srcdir/T-dir00.at:30:
4826 TEST_TAR_FORMAT=posix
4827 export TEST_TAR_FORMAT
4828 TAR_OPTIONS=\"-H posix\"
4833 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4836 genfile -f dir/file1
4837 genfile -f dir/file2
4841 tar xfTv archive list | sort
4843 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir00.at:30"
4847 TEST_TAR_FORMAT=posix
4848 export TEST_TAR_FORMAT
4849 TAR_OPTIONS="-H posix"
4854 test -z "`sort < /dev/null 2>&1`" || exit 77
4857 genfile -f dir/file1
4858 genfile -f dir/file2
4862 tar xfTv archive list | sort
4864 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4865 at_status=$? at_failed=false
4867 at_fn_diff_devnull "$at_stderr" || at_failed=:
4868 echo >>"$at_stdout"; $as_echo "dir/
4872 $at_diff - "$at_stdout" || at_failed=:
4873 at_fn_check_status 0 $at_status "$at_srcdir/T-dir00.at:30"
4874 $at_failed && at_fn_log_failure
4878 $as_echo "$at_srcdir/T-dir00.at:30:
4882 export TEST_TAR_FORMAT
4883 TAR_OPTIONS=\"-H gnu\"
4888 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4891 genfile -f dir/file1
4892 genfile -f dir/file2
4896 tar xfTv archive list | sort
4898 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir00.at:30"
4903 export TEST_TAR_FORMAT
4904 TAR_OPTIONS="-H gnu"
4909 test -z "`sort < /dev/null 2>&1`" || exit 77
4912 genfile -f dir/file1
4913 genfile -f dir/file2
4917 tar xfTv archive list | sort
4919 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4920 at_status=$? at_failed=false
4922 at_fn_diff_devnull "$at_stderr" || at_failed=:
4923 echo >>"$at_stdout"; $as_echo "dir/
4927 $at_diff - "$at_stdout" || at_failed=:
4928 at_fn_check_status 0 $at_status "$at_srcdir/T-dir00.at:30"
4929 $at_failed && at_fn_log_failure
4935 $at_times_p && times >"$at_times_file"
4936 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4937 read at_status <"$at_status_file"
4940 at_fn_group_banner 23 'T-dir01.at:28' \
4941 "trailing slash in --files-from" " " 2
4943 test -f $XFAILFILE && at_xfail=yes
4945 $as_echo "23. $at_setup_line: testing $at_desc ..."
4952 $as_echo "$at_srcdir/T-dir01.at:30:
4956 export TEST_TAR_FORMAT
4957 TAR_OPTIONS=\"-H v7\"
4962 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
4965 genfile -f dir/file1
4966 genfile -f dir/file2
4970 tar xfTv archive list | sort
4972 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir01.at:30"
4977 export TEST_TAR_FORMAT
4983 test -z "`sort < /dev/null 2>&1`" || exit 77
4986 genfile -f dir/file1
4987 genfile -f dir/file2
4991 tar xfTv archive list | sort
4993 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4994 at_status=$? at_failed=false
4996 at_fn_diff_devnull "$at_stderr" || at_failed=:
4997 echo >>"$at_stdout"; $as_echo "dir/
5001 $at_diff - "$at_stdout" || at_failed=:
5002 at_fn_check_status 0 $at_status "$at_srcdir/T-dir01.at:30"
5003 $at_failed && at_fn_log_failure
5007 $as_echo "$at_srcdir/T-dir01.at:30:
5010 TEST_TAR_FORMAT=oldgnu
5011 export TEST_TAR_FORMAT
5012 TAR_OPTIONS=\"-H oldgnu\"
5017 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5020 genfile -f dir/file1
5021 genfile -f dir/file2
5025 tar xfTv archive list | sort
5027 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir01.at:30"
5031 TEST_TAR_FORMAT=oldgnu
5032 export TEST_TAR_FORMAT
5033 TAR_OPTIONS="-H oldgnu"
5038 test -z "`sort < /dev/null 2>&1`" || exit 77
5041 genfile -f dir/file1
5042 genfile -f dir/file2
5046 tar xfTv archive list | sort
5048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5049 at_status=$? at_failed=false
5051 at_fn_diff_devnull "$at_stderr" || at_failed=:
5052 echo >>"$at_stdout"; $as_echo "dir/
5056 $at_diff - "$at_stdout" || at_failed=:
5057 at_fn_check_status 0 $at_status "$at_srcdir/T-dir01.at:30"
5058 $at_failed && at_fn_log_failure
5062 $as_echo "$at_srcdir/T-dir01.at:30:
5065 TEST_TAR_FORMAT=ustar
5066 export TEST_TAR_FORMAT
5067 TAR_OPTIONS=\"-H ustar\"
5072 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5075 genfile -f dir/file1
5076 genfile -f dir/file2
5080 tar xfTv archive list | sort
5082 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir01.at:30"
5086 TEST_TAR_FORMAT=ustar
5087 export TEST_TAR_FORMAT
5088 TAR_OPTIONS="-H ustar"
5093 test -z "`sort < /dev/null 2>&1`" || exit 77
5096 genfile -f dir/file1
5097 genfile -f dir/file2
5101 tar xfTv archive list | sort
5103 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5104 at_status=$? at_failed=false
5106 at_fn_diff_devnull "$at_stderr" || at_failed=:
5107 echo >>"$at_stdout"; $as_echo "dir/
5111 $at_diff - "$at_stdout" || at_failed=:
5112 at_fn_check_status 0 $at_status "$at_srcdir/T-dir01.at:30"
5113 $at_failed && at_fn_log_failure
5117 $as_echo "$at_srcdir/T-dir01.at:30:
5120 TEST_TAR_FORMAT=posix
5121 export TEST_TAR_FORMAT
5122 TAR_OPTIONS=\"-H posix\"
5127 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5130 genfile -f dir/file1
5131 genfile -f dir/file2
5135 tar xfTv archive list | sort
5137 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir01.at:30"
5141 TEST_TAR_FORMAT=posix
5142 export TEST_TAR_FORMAT
5143 TAR_OPTIONS="-H posix"
5148 test -z "`sort < /dev/null 2>&1`" || exit 77
5151 genfile -f dir/file1
5152 genfile -f dir/file2
5156 tar xfTv archive list | sort
5158 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5159 at_status=$? at_failed=false
5161 at_fn_diff_devnull "$at_stderr" || at_failed=:
5162 echo >>"$at_stdout"; $as_echo "dir/
5166 $at_diff - "$at_stdout" || at_failed=:
5167 at_fn_check_status 0 $at_status "$at_srcdir/T-dir01.at:30"
5168 $at_failed && at_fn_log_failure
5172 $as_echo "$at_srcdir/T-dir01.at:30:
5176 export TEST_TAR_FORMAT
5177 TAR_OPTIONS=\"-H gnu\"
5182 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5185 genfile -f dir/file1
5186 genfile -f dir/file2
5190 tar xfTv archive list | sort
5192 at_fn_check_prepare_notrace 'a `...` command substitution' "T-dir01.at:30"
5197 export TEST_TAR_FORMAT
5198 TAR_OPTIONS="-H gnu"
5203 test -z "`sort < /dev/null 2>&1`" || exit 77
5206 genfile -f dir/file1
5207 genfile -f dir/file2
5211 tar xfTv archive list | sort
5213 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5214 at_status=$? at_failed=false
5216 at_fn_diff_devnull "$at_stderr" || at_failed=:
5217 echo >>"$at_stdout"; $as_echo "dir/
5221 $at_diff - "$at_stdout" || at_failed=:
5222 at_fn_check_status 0 $at_status "$at_srcdir/T-dir01.at:30"
5223 $at_failed && at_fn_log_failure
5229 $at_times_p && times >"$at_times_file"
5230 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5231 read at_status <"$at_status_file"
5234 at_fn_group_banner 24 'indexfile.at:26' \
5235 "tar --index-file=FILE --file=-" " " 3
5237 test -f $XFAILFILE && at_xfail=yes
5239 $as_echo "24. $at_setup_line: testing $at_desc ..."
5247 $as_echo "$at_srcdir/indexfile.at:29:
5251 export TEST_TAR_FORMAT
5252 TAR_OPTIONS=\"-H v7\"
5258 genfile --file=directory/a --length=1035
5260 echo \"Creating the archive\"
5261 tar -c -v -f - --index-file=idx directory > archive
5263 echo \"Testing the archive\"
5266 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
5271 export TEST_TAR_FORMAT
5278 genfile --file=directory/a --length=1035
5280 echo "Creating the archive"
5281 tar -c -v -f - --index-file=idx directory > archive
5283 echo "Testing the archive"
5286 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5287 at_status=$? at_failed=false
5289 at_fn_diff_devnull "$at_stderr" || at_failed=:
5290 echo >>"$at_stdout"; $as_echo "Creating the archive
5295 $at_diff - "$at_stdout" || at_failed=:
5296 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
5297 $at_failed && at_fn_log_failure
5301 $as_echo "$at_srcdir/indexfile.at:29:
5304 TEST_TAR_FORMAT=oldgnu
5305 export TEST_TAR_FORMAT
5306 TAR_OPTIONS=\"-H oldgnu\"
5312 genfile --file=directory/a --length=1035
5314 echo \"Creating the archive\"
5315 tar -c -v -f - --index-file=idx directory > archive
5317 echo \"Testing the archive\"
5320 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
5324 TEST_TAR_FORMAT=oldgnu
5325 export TEST_TAR_FORMAT
5326 TAR_OPTIONS="-H oldgnu"
5332 genfile --file=directory/a --length=1035
5334 echo "Creating the archive"
5335 tar -c -v -f - --index-file=idx directory > archive
5337 echo "Testing the archive"
5340 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5341 at_status=$? at_failed=false
5343 at_fn_diff_devnull "$at_stderr" || at_failed=:
5344 echo >>"$at_stdout"; $as_echo "Creating the archive
5349 $at_diff - "$at_stdout" || at_failed=:
5350 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
5351 $at_failed && at_fn_log_failure
5355 $as_echo "$at_srcdir/indexfile.at:29:
5358 TEST_TAR_FORMAT=ustar
5359 export TEST_TAR_FORMAT
5360 TAR_OPTIONS=\"-H ustar\"
5366 genfile --file=directory/a --length=1035
5368 echo \"Creating the archive\"
5369 tar -c -v -f - --index-file=idx directory > archive
5371 echo \"Testing the archive\"
5374 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
5378 TEST_TAR_FORMAT=ustar
5379 export TEST_TAR_FORMAT
5380 TAR_OPTIONS="-H ustar"
5386 genfile --file=directory/a --length=1035
5388 echo "Creating the archive"
5389 tar -c -v -f - --index-file=idx directory > archive
5391 echo "Testing the archive"
5394 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5395 at_status=$? at_failed=false
5397 at_fn_diff_devnull "$at_stderr" || at_failed=:
5398 echo >>"$at_stdout"; $as_echo "Creating the archive
5403 $at_diff - "$at_stdout" || at_failed=:
5404 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
5405 $at_failed && at_fn_log_failure
5409 $as_echo "$at_srcdir/indexfile.at:29:
5412 TEST_TAR_FORMAT=posix
5413 export TEST_TAR_FORMAT
5414 TAR_OPTIONS=\"-H posix\"
5420 genfile --file=directory/a --length=1035
5422 echo \"Creating the archive\"
5423 tar -c -v -f - --index-file=idx directory > archive
5425 echo \"Testing the archive\"
5428 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
5432 TEST_TAR_FORMAT=posix
5433 export TEST_TAR_FORMAT
5434 TAR_OPTIONS="-H posix"
5440 genfile --file=directory/a --length=1035
5442 echo "Creating the archive"
5443 tar -c -v -f - --index-file=idx directory > archive
5445 echo "Testing the archive"
5448 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5449 at_status=$? at_failed=false
5451 at_fn_diff_devnull "$at_stderr" || at_failed=:
5452 echo >>"$at_stdout"; $as_echo "Creating the archive
5457 $at_diff - "$at_stdout" || at_failed=:
5458 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
5459 $at_failed && at_fn_log_failure
5463 $as_echo "$at_srcdir/indexfile.at:29:
5467 export TEST_TAR_FORMAT
5468 TAR_OPTIONS=\"-H gnu\"
5474 genfile --file=directory/a --length=1035
5476 echo \"Creating the archive\"
5477 tar -c -v -f - --index-file=idx directory > archive
5479 echo \"Testing the archive\"
5482 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
5487 export TEST_TAR_FORMAT
5488 TAR_OPTIONS="-H gnu"
5494 genfile --file=directory/a --length=1035
5496 echo "Creating the archive"
5497 tar -c -v -f - --index-file=idx directory > archive
5499 echo "Testing the archive"
5502 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5503 at_status=$? at_failed=false
5505 at_fn_diff_devnull "$at_stderr" || at_failed=:
5506 echo >>"$at_stdout"; $as_echo "Creating the archive
5511 $at_diff - "$at_stdout" || at_failed=:
5512 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
5513 $at_failed && at_fn_log_failure
5520 $at_times_p && times >"$at_times_file"
5521 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5522 read at_status <"$at_status_file"
5525 at_fn_group_banner 25 'verbose.at:26' \
5528 test -f $XFAILFILE && at_xfail=yes
5530 $as_echo "25. $at_setup_line: testing $at_desc ..."
5538 $as_echo "$at_srcdir/verbose.at:29:
5542 export TEST_TAR_FORMAT
5543 TAR_OPTIONS=\"-H v7\"
5547 genfile --file file --length 10240
5548 echo Creating the archive
5549 tar cvf - file > archive
5550 echo Testing the archive
5553 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
5558 export TEST_TAR_FORMAT
5563 genfile --file file --length 10240
5564 echo Creating the archive
5565 tar cvf - file > archive
5566 echo Testing the archive
5569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5570 at_status=$? at_failed=false
5572 echo >>"$at_stderr"; $as_echo "file
5574 $at_diff - "$at_stderr" || at_failed=:
5575 echo >>"$at_stdout"; $as_echo "Creating the archive
5579 $at_diff - "$at_stdout" || at_failed=:
5580 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
5581 $at_failed && at_fn_log_failure
5585 $as_echo "$at_srcdir/verbose.at:29:
5588 TEST_TAR_FORMAT=oldgnu
5589 export TEST_TAR_FORMAT
5590 TAR_OPTIONS=\"-H oldgnu\"
5594 genfile --file file --length 10240
5595 echo Creating the archive
5596 tar cvf - file > archive
5597 echo Testing the archive
5600 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
5604 TEST_TAR_FORMAT=oldgnu
5605 export TEST_TAR_FORMAT
5606 TAR_OPTIONS="-H oldgnu"
5610 genfile --file file --length 10240
5611 echo Creating the archive
5612 tar cvf - file > archive
5613 echo Testing the archive
5616 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5617 at_status=$? at_failed=false
5619 echo >>"$at_stderr"; $as_echo "file
5621 $at_diff - "$at_stderr" || at_failed=:
5622 echo >>"$at_stdout"; $as_echo "Creating the archive
5626 $at_diff - "$at_stdout" || at_failed=:
5627 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
5628 $at_failed && at_fn_log_failure
5632 $as_echo "$at_srcdir/verbose.at:29:
5635 TEST_TAR_FORMAT=ustar
5636 export TEST_TAR_FORMAT
5637 TAR_OPTIONS=\"-H ustar\"
5641 genfile --file file --length 10240
5642 echo Creating the archive
5643 tar cvf - file > archive
5644 echo Testing the archive
5647 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
5651 TEST_TAR_FORMAT=ustar
5652 export TEST_TAR_FORMAT
5653 TAR_OPTIONS="-H ustar"
5657 genfile --file file --length 10240
5658 echo Creating the archive
5659 tar cvf - file > archive
5660 echo Testing the archive
5663 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5664 at_status=$? at_failed=false
5666 echo >>"$at_stderr"; $as_echo "file
5668 $at_diff - "$at_stderr" || at_failed=:
5669 echo >>"$at_stdout"; $as_echo "Creating the archive
5673 $at_diff - "$at_stdout" || at_failed=:
5674 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
5675 $at_failed && at_fn_log_failure
5679 $as_echo "$at_srcdir/verbose.at:29:
5682 TEST_TAR_FORMAT=posix
5683 export TEST_TAR_FORMAT
5684 TAR_OPTIONS=\"-H posix\"
5688 genfile --file file --length 10240
5689 echo Creating the archive
5690 tar cvf - file > archive
5691 echo Testing the archive
5694 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
5698 TEST_TAR_FORMAT=posix
5699 export TEST_TAR_FORMAT
5700 TAR_OPTIONS="-H posix"
5704 genfile --file file --length 10240
5705 echo Creating the archive
5706 tar cvf - file > archive
5707 echo Testing the archive
5710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5711 at_status=$? at_failed=false
5713 echo >>"$at_stderr"; $as_echo "file
5715 $at_diff - "$at_stderr" || at_failed=:
5716 echo >>"$at_stdout"; $as_echo "Creating the archive
5720 $at_diff - "$at_stdout" || at_failed=:
5721 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
5722 $at_failed && at_fn_log_failure
5726 $as_echo "$at_srcdir/verbose.at:29:
5730 export TEST_TAR_FORMAT
5731 TAR_OPTIONS=\"-H gnu\"
5735 genfile --file file --length 10240
5736 echo Creating the archive
5737 tar cvf - file > archive
5738 echo Testing the archive
5741 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
5746 export TEST_TAR_FORMAT
5747 TAR_OPTIONS="-H gnu"
5751 genfile --file file --length 10240
5752 echo Creating the archive
5753 tar cvf - file > archive
5754 echo Testing the archive
5757 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5758 at_status=$? at_failed=false
5760 echo >>"$at_stderr"; $as_echo "file
5762 $at_diff - "$at_stderr" || at_failed=:
5763 echo >>"$at_stdout"; $as_echo "Creating the archive
5767 $at_diff - "$at_stdout" || at_failed=:
5768 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
5769 $at_failed && at_fn_log_failure
5776 $at_times_p && times >"$at_times_file"
5777 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5778 read at_status <"$at_status_file"
5781 at_fn_group_banner 26 'gzip.at:24' \
5785 $as_echo "26. $at_setup_line: testing $at_desc ..."
5793 $as_echo "$at_srcdir/gzip.at:29:
5795 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
5797 tar xfvz /dev/null 2>err
5799 sed -n '/^tar:/p' err >&2
5802 at_fn_check_prepare_notrace 'an embedded newline' "gzip.at:29"
5805 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
5807 tar xfvz /dev/null 2>err
5809 sed -n '/^tar:/p' err >&2
5812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5813 at_status=$? at_failed=false
5815 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
5816 tar: Error is not recoverable: exiting now
5818 $at_diff - "$at_stderr" || at_failed=:
5819 at_fn_diff_devnull "$at_stdout" || at_failed=:
5820 at_fn_check_status 2 $at_status "$at_srcdir/gzip.at:29"
5821 $at_failed && at_fn_log_failure
5826 $at_times_p && times >"$at_times_file"
5827 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5828 read at_status <"$at_status_file"
5831 at_fn_group_banner 27 'recurse.at:21' \
5834 test -f $XFAILFILE && at_xfail=yes
5836 $as_echo "27. $at_setup_line: testing $at_desc ..."
5844 $as_echo "$at_srcdir/recurse.at:24:
5848 export TEST_TAR_FORMAT
5849 TAR_OPTIONS=\"-H v7\"
5854 touch directory/file
5855 tar --create --file archive --no-recursion directory || exit 1
5858 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
5863 export TEST_TAR_FORMAT
5869 touch directory/file
5870 tar --create --file archive --no-recursion directory || exit 1
5873 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5874 at_status=$? at_failed=false
5876 at_fn_diff_devnull "$at_stderr" || at_failed=:
5877 echo >>"$at_stdout"; $as_echo "directory/
5879 $at_diff - "$at_stdout" || at_failed=:
5880 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
5881 $at_failed && at_fn_log_failure
5885 $as_echo "$at_srcdir/recurse.at:24:
5888 TEST_TAR_FORMAT=oldgnu
5889 export TEST_TAR_FORMAT
5890 TAR_OPTIONS=\"-H oldgnu\"
5895 touch directory/file
5896 tar --create --file archive --no-recursion directory || exit 1
5899 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
5903 TEST_TAR_FORMAT=oldgnu
5904 export TEST_TAR_FORMAT
5905 TAR_OPTIONS="-H oldgnu"
5910 touch directory/file
5911 tar --create --file archive --no-recursion directory || exit 1
5914 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5915 at_status=$? at_failed=false
5917 at_fn_diff_devnull "$at_stderr" || at_failed=:
5918 echo >>"$at_stdout"; $as_echo "directory/
5920 $at_diff - "$at_stdout" || at_failed=:
5921 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
5922 $at_failed && at_fn_log_failure
5926 $as_echo "$at_srcdir/recurse.at:24:
5929 TEST_TAR_FORMAT=ustar
5930 export TEST_TAR_FORMAT
5931 TAR_OPTIONS=\"-H ustar\"
5936 touch directory/file
5937 tar --create --file archive --no-recursion directory || exit 1
5940 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
5944 TEST_TAR_FORMAT=ustar
5945 export TEST_TAR_FORMAT
5946 TAR_OPTIONS="-H ustar"
5951 touch directory/file
5952 tar --create --file archive --no-recursion directory || exit 1
5955 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5956 at_status=$? at_failed=false
5958 at_fn_diff_devnull "$at_stderr" || at_failed=:
5959 echo >>"$at_stdout"; $as_echo "directory/
5961 $at_diff - "$at_stdout" || at_failed=:
5962 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
5963 $at_failed && at_fn_log_failure
5967 $as_echo "$at_srcdir/recurse.at:24:
5970 TEST_TAR_FORMAT=posix
5971 export TEST_TAR_FORMAT
5972 TAR_OPTIONS=\"-H posix\"
5977 touch directory/file
5978 tar --create --file archive --no-recursion directory || exit 1
5981 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
5985 TEST_TAR_FORMAT=posix
5986 export TEST_TAR_FORMAT
5987 TAR_OPTIONS="-H posix"
5992 touch directory/file
5993 tar --create --file archive --no-recursion directory || exit 1
5996 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5997 at_status=$? at_failed=false
5999 at_fn_diff_devnull "$at_stderr" || at_failed=:
6000 echo >>"$at_stdout"; $as_echo "directory/
6002 $at_diff - "$at_stdout" || at_failed=:
6003 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
6004 $at_failed && at_fn_log_failure
6008 $as_echo "$at_srcdir/recurse.at:24:
6012 export TEST_TAR_FORMAT
6013 TAR_OPTIONS=\"-H gnu\"
6018 touch directory/file
6019 tar --create --file archive --no-recursion directory || exit 1
6022 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
6027 export TEST_TAR_FORMAT
6028 TAR_OPTIONS="-H gnu"
6033 touch directory/file
6034 tar --create --file archive --no-recursion directory || exit 1
6037 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6038 at_status=$? at_failed=false
6040 at_fn_diff_devnull "$at_stderr" || at_failed=:
6041 echo >>"$at_stdout"; $as_echo "directory/
6043 $at_diff - "$at_stdout" || at_failed=:
6044 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
6045 $at_failed && at_fn_log_failure
6052 $at_times_p && times >"$at_times_file"
6053 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6054 read at_status <"$at_status_file"
6057 at_fn_group_banner 28 'recurs02.at:30' \
6058 "recurse: toggle" " " 3
6060 test -f $XFAILFILE && at_xfail=yes
6062 $as_echo "28. $at_setup_line: testing $at_desc ..."
6070 $as_echo "$at_srcdir/recurs02.at:33:
6074 export TEST_TAR_FORMAT
6075 TAR_OPTIONS=\"-H v7\"
6079 mkdir directory1 directory2
6080 touch directory1/file directory2/file
6081 tar --create --file archive \\
6082 --no-recursion directory1 \\
6083 --recursion directory2 || exit 1
6085 tar cf archive directory1 directory2
6087 --no-recursion directory1 \\
6088 --recursion directory2 || exit 1
6090 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
6095 export TEST_TAR_FORMAT
6100 mkdir directory1 directory2
6101 touch directory1/file directory2/file
6102 tar --create --file archive \
6103 --no-recursion directory1 \
6104 --recursion directory2 || exit 1
6106 tar cf archive directory1 directory2
6108 --no-recursion directory1 \
6109 --recursion directory2 || exit 1
6111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6112 at_status=$? at_failed=false
6114 at_fn_diff_devnull "$at_stderr" || at_failed=:
6115 echo >>"$at_stdout"; $as_echo "directory1/
6122 $at_diff - "$at_stdout" || at_failed=:
6123 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
6124 $at_failed && at_fn_log_failure
6128 $as_echo "$at_srcdir/recurs02.at:33:
6131 TEST_TAR_FORMAT=oldgnu
6132 export TEST_TAR_FORMAT
6133 TAR_OPTIONS=\"-H oldgnu\"
6137 mkdir directory1 directory2
6138 touch directory1/file directory2/file
6139 tar --create --file archive \\
6140 --no-recursion directory1 \\
6141 --recursion directory2 || exit 1
6143 tar cf archive directory1 directory2
6145 --no-recursion directory1 \\
6146 --recursion directory2 || exit 1
6148 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
6152 TEST_TAR_FORMAT=oldgnu
6153 export TEST_TAR_FORMAT
6154 TAR_OPTIONS="-H oldgnu"
6158 mkdir directory1 directory2
6159 touch directory1/file directory2/file
6160 tar --create --file archive \
6161 --no-recursion directory1 \
6162 --recursion directory2 || exit 1
6164 tar cf archive directory1 directory2
6166 --no-recursion directory1 \
6167 --recursion directory2 || exit 1
6169 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6170 at_status=$? at_failed=false
6172 at_fn_diff_devnull "$at_stderr" || at_failed=:
6173 echo >>"$at_stdout"; $as_echo "directory1/
6180 $at_diff - "$at_stdout" || at_failed=:
6181 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
6182 $at_failed && at_fn_log_failure
6186 $as_echo "$at_srcdir/recurs02.at:33:
6189 TEST_TAR_FORMAT=ustar
6190 export TEST_TAR_FORMAT
6191 TAR_OPTIONS=\"-H ustar\"
6195 mkdir directory1 directory2
6196 touch directory1/file directory2/file
6197 tar --create --file archive \\
6198 --no-recursion directory1 \\
6199 --recursion directory2 || exit 1
6201 tar cf archive directory1 directory2
6203 --no-recursion directory1 \\
6204 --recursion directory2 || exit 1
6206 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
6210 TEST_TAR_FORMAT=ustar
6211 export TEST_TAR_FORMAT
6212 TAR_OPTIONS="-H ustar"
6216 mkdir directory1 directory2
6217 touch directory1/file directory2/file
6218 tar --create --file archive \
6219 --no-recursion directory1 \
6220 --recursion directory2 || exit 1
6222 tar cf archive directory1 directory2
6224 --no-recursion directory1 \
6225 --recursion directory2 || exit 1
6227 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6228 at_status=$? at_failed=false
6230 at_fn_diff_devnull "$at_stderr" || at_failed=:
6231 echo >>"$at_stdout"; $as_echo "directory1/
6238 $at_diff - "$at_stdout" || at_failed=:
6239 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
6240 $at_failed && at_fn_log_failure
6244 $as_echo "$at_srcdir/recurs02.at:33:
6247 TEST_TAR_FORMAT=posix
6248 export TEST_TAR_FORMAT
6249 TAR_OPTIONS=\"-H posix\"
6253 mkdir directory1 directory2
6254 touch directory1/file directory2/file
6255 tar --create --file archive \\
6256 --no-recursion directory1 \\
6257 --recursion directory2 || exit 1
6259 tar cf archive directory1 directory2
6261 --no-recursion directory1 \\
6262 --recursion directory2 || exit 1
6264 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
6268 TEST_TAR_FORMAT=posix
6269 export TEST_TAR_FORMAT
6270 TAR_OPTIONS="-H posix"
6274 mkdir directory1 directory2
6275 touch directory1/file directory2/file
6276 tar --create --file archive \
6277 --no-recursion directory1 \
6278 --recursion directory2 || exit 1
6280 tar cf archive directory1 directory2
6282 --no-recursion directory1 \
6283 --recursion directory2 || exit 1
6285 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6286 at_status=$? at_failed=false
6288 at_fn_diff_devnull "$at_stderr" || at_failed=:
6289 echo >>"$at_stdout"; $as_echo "directory1/
6296 $at_diff - "$at_stdout" || at_failed=:
6297 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
6298 $at_failed && at_fn_log_failure
6302 $as_echo "$at_srcdir/recurs02.at:33:
6306 export TEST_TAR_FORMAT
6307 TAR_OPTIONS=\"-H gnu\"
6311 mkdir directory1 directory2
6312 touch directory1/file directory2/file
6313 tar --create --file archive \\
6314 --no-recursion directory1 \\
6315 --recursion directory2 || exit 1
6317 tar cf archive directory1 directory2
6319 --no-recursion directory1 \\
6320 --recursion directory2 || exit 1
6322 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
6327 export TEST_TAR_FORMAT
6328 TAR_OPTIONS="-H gnu"
6332 mkdir directory1 directory2
6333 touch directory1/file directory2/file
6334 tar --create --file archive \
6335 --no-recursion directory1 \
6336 --recursion directory2 || exit 1
6338 tar cf archive directory1 directory2
6340 --no-recursion directory1 \
6341 --recursion directory2 || exit 1
6343 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6344 at_status=$? at_failed=false
6346 at_fn_diff_devnull "$at_stderr" || at_failed=:
6347 echo >>"$at_stdout"; $as_echo "directory1/
6354 $at_diff - "$at_stdout" || at_failed=:
6355 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
6356 $at_failed && at_fn_log_failure
6363 $at_times_p && times >"$at_times_file"
6364 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6365 read at_status <"$at_status_file"
6368 at_fn_group_banner 29 'shortrec.at:26' \
6369 "short records" " " 3
6371 test -f $XFAILFILE && at_xfail=yes
6373 $as_echo "29. $at_setup_line: testing $at_desc ..."
6381 $as_echo "$at_srcdir/shortrec.at:29:
6385 export TEST_TAR_FORMAT
6386 TAR_OPTIONS=\"-H v7\"
6391 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6392 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6393 tar -c -b 1 -f archive directory
6394 tar -t -f archive > /dev/null
6395 tar -t -f - < archive > /dev/null
6399 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:29"
6404 export TEST_TAR_FORMAT
6410 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6411 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6412 tar -c -b 1 -f archive directory
6413 tar -t -f archive > /dev/null
6414 tar -t -f - < archive > /dev/null
6418 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6419 at_status=$? at_failed=false
6421 at_fn_diff_devnull "$at_stderr" || at_failed=:
6422 at_fn_diff_devnull "$at_stdout" || at_failed=:
6423 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:29"
6424 $at_failed && at_fn_log_failure
6428 $as_echo "$at_srcdir/shortrec.at:29:
6431 TEST_TAR_FORMAT=oldgnu
6432 export TEST_TAR_FORMAT
6433 TAR_OPTIONS=\"-H oldgnu\"
6438 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6439 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6440 tar -c -b 1 -f archive directory
6441 tar -t -f archive > /dev/null
6442 tar -t -f - < archive > /dev/null
6446 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:29"
6450 TEST_TAR_FORMAT=oldgnu
6451 export TEST_TAR_FORMAT
6452 TAR_OPTIONS="-H oldgnu"
6457 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6458 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6459 tar -c -b 1 -f archive directory
6460 tar -t -f archive > /dev/null
6461 tar -t -f - < archive > /dev/null
6465 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6466 at_status=$? at_failed=false
6468 at_fn_diff_devnull "$at_stderr" || at_failed=:
6469 at_fn_diff_devnull "$at_stdout" || at_failed=:
6470 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:29"
6471 $at_failed && at_fn_log_failure
6475 $as_echo "$at_srcdir/shortrec.at:29:
6478 TEST_TAR_FORMAT=ustar
6479 export TEST_TAR_FORMAT
6480 TAR_OPTIONS=\"-H ustar\"
6485 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6486 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6487 tar -c -b 1 -f archive directory
6488 tar -t -f archive > /dev/null
6489 tar -t -f - < archive > /dev/null
6493 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:29"
6497 TEST_TAR_FORMAT=ustar
6498 export TEST_TAR_FORMAT
6499 TAR_OPTIONS="-H ustar"
6504 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6505 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6506 tar -c -b 1 -f archive directory
6507 tar -t -f archive > /dev/null
6508 tar -t -f - < archive > /dev/null
6512 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6513 at_status=$? at_failed=false
6515 at_fn_diff_devnull "$at_stderr" || at_failed=:
6516 at_fn_diff_devnull "$at_stdout" || at_failed=:
6517 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:29"
6518 $at_failed && at_fn_log_failure
6522 $as_echo "$at_srcdir/shortrec.at:29:
6525 TEST_TAR_FORMAT=posix
6526 export TEST_TAR_FORMAT
6527 TAR_OPTIONS=\"-H posix\"
6532 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6533 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6534 tar -c -b 1 -f archive directory
6535 tar -t -f archive > /dev/null
6536 tar -t -f - < archive > /dev/null
6540 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:29"
6544 TEST_TAR_FORMAT=posix
6545 export TEST_TAR_FORMAT
6546 TAR_OPTIONS="-H posix"
6551 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6552 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6553 tar -c -b 1 -f archive directory
6554 tar -t -f archive > /dev/null
6555 tar -t -f - < archive > /dev/null
6559 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6560 at_status=$? at_failed=false
6562 at_fn_diff_devnull "$at_stderr" || at_failed=:
6563 at_fn_diff_devnull "$at_stdout" || at_failed=:
6564 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:29"
6565 $at_failed && at_fn_log_failure
6569 $as_echo "$at_srcdir/shortrec.at:29:
6573 export TEST_TAR_FORMAT
6574 TAR_OPTIONS=\"-H gnu\"
6579 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6580 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6581 tar -c -b 1 -f archive directory
6582 tar -t -f archive > /dev/null
6583 tar -t -f - < archive > /dev/null
6587 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:29"
6592 export TEST_TAR_FORMAT
6593 TAR_OPTIONS="-H gnu"
6598 (cd directory && touch a b c d e f g h i j k l m n o p q r)
6599 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
6600 tar -c -b 1 -f archive directory
6601 tar -t -f archive > /dev/null
6602 tar -t -f - < archive > /dev/null
6606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6607 at_status=$? at_failed=false
6609 at_fn_diff_devnull "$at_stderr" || at_failed=:
6610 at_fn_diff_devnull "$at_stdout" || at_failed=:
6611 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:29"
6612 $at_failed && at_fn_log_failure
6619 $at_times_p && times >"$at_times_file"
6620 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6621 read at_status <"$at_status_file"
6624 at_fn_group_banner 30 'numeric.at:18' \
6625 "--numeric-owner basic tests" " " 3
6627 test -f $XFAILFILE && at_xfail=yes
6629 $as_echo "30. $at_setup_line: testing $at_desc ..."
6639 $as_echo "$at_srcdir/numeric.at:29:
6642 TEST_TAR_FORMAT=posix
6643 export TEST_TAR_FORMAT
6644 TAR_OPTIONS=\"-H posix\"
6649 genfile --file dir/file
6651 MYUID=\$(id -u) || exit 77
6652 MYGID=\$(id -g) || exit 77
6653 MYUSR=\$(id -un) || exit 77
6654 MYGRP=\$(id -gn) || exit 77
6658 tar --create -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6659 tar --create -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6663 tar --list -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6664 tar --list -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6668 tar --diff -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6669 tar --diff -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6673 tar --extract -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6674 tar --extract -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6677 at_fn_check_prepare_notrace 'a $(...) command substitution' "numeric.at:29"
6681 TEST_TAR_FORMAT=posix
6682 export TEST_TAR_FORMAT
6683 TAR_OPTIONS="-H posix"
6688 genfile --file dir/file
6690 MYUID=$(id -u) || exit 77
6691 MYGID=$(id -g) || exit 77
6692 MYUSR=$(id -un) || exit 77
6693 MYGRP=$(id -gn) || exit 77
6697 tar --create -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6698 tar --create -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6702 tar --list -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6703 tar --list -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6707 tar --diff -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6708 tar --diff -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6712 tar --extract -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6713 tar --extract -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6716 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6717 at_status=$? at_failed=false
6719 echo >>"$at_stderr"; $as_echo "--create
6724 $at_diff - "$at_stderr" || at_failed=:
6725 echo >>"$at_stdout"; $as_echo "--create
6746 $at_diff - "$at_stdout" || at_failed=:
6747 at_fn_check_status 0 $at_status "$at_srcdir/numeric.at:29"
6748 $at_failed && at_fn_log_failure
6752 $as_echo "$at_srcdir/numeric.at:29:
6756 export TEST_TAR_FORMAT
6757 TAR_OPTIONS=\"-H gnu\"
6762 genfile --file dir/file
6764 MYUID=\$(id -u) || exit 77
6765 MYGID=\$(id -g) || exit 77
6766 MYUSR=\$(id -un) || exit 77
6767 MYGRP=\$(id -gn) || exit 77
6771 tar --create -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6772 tar --create -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6776 tar --list -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6777 tar --list -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6781 tar --diff -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6782 tar --diff -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6786 tar --extract -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6787 tar --extract -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6790 at_fn_check_prepare_notrace 'a $(...) command substitution' "numeric.at:29"
6795 export TEST_TAR_FORMAT
6796 TAR_OPTIONS="-H gnu"
6801 genfile --file dir/file
6803 MYUID=$(id -u) || exit 77
6804 MYGID=$(id -g) || exit 77
6805 MYUSR=$(id -un) || exit 77
6806 MYGRP=$(id -gn) || exit 77
6810 tar --create -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6811 tar --create -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6815 tar --list -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6816 tar --list -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6820 tar --diff -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6821 tar --diff -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6825 tar --extract -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6826 tar --extract -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6829 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6830 at_status=$? at_failed=false
6832 echo >>"$at_stderr"; $as_echo "--create
6837 $at_diff - "$at_stderr" || at_failed=:
6838 echo >>"$at_stdout"; $as_echo "--create
6859 $at_diff - "$at_stdout" || at_failed=:
6860 at_fn_check_status 0 $at_status "$at_srcdir/numeric.at:29"
6861 $at_failed && at_fn_log_failure
6865 $as_echo "$at_srcdir/numeric.at:29:
6868 TEST_TAR_FORMAT=ustar
6869 export TEST_TAR_FORMAT
6870 TAR_OPTIONS=\"-H ustar\"
6875 genfile --file dir/file
6877 MYUID=\$(id -u) || exit 77
6878 MYGID=\$(id -g) || exit 77
6879 MYUSR=\$(id -un) || exit 77
6880 MYGRP=\$(id -gn) || exit 77
6884 tar --create -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6885 tar --create -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6889 tar --list -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6890 tar --list -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6894 tar --diff -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6895 tar --diff -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6899 tar --extract -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6900 tar --extract -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
6903 at_fn_check_prepare_notrace 'a $(...) command substitution' "numeric.at:29"
6907 TEST_TAR_FORMAT=ustar
6908 export TEST_TAR_FORMAT
6909 TAR_OPTIONS="-H ustar"
6914 genfile --file dir/file
6916 MYUID=$(id -u) || exit 77
6917 MYGID=$(id -g) || exit 77
6918 MYUSR=$(id -un) || exit 77
6919 MYGRP=$(id -gn) || exit 77
6923 tar --create -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6924 tar --create -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6928 tar --list -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6929 tar --list -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6933 tar --diff -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6934 tar --diff -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6938 tar --extract -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
6939 tar --extract -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
6942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6943 at_status=$? at_failed=false
6945 echo >>"$at_stderr"; $as_echo "--create
6950 $at_diff - "$at_stderr" || at_failed=:
6951 echo >>"$at_stdout"; $as_echo "--create
6972 $at_diff - "$at_stdout" || at_failed=:
6973 at_fn_check_status 0 $at_status "$at_srcdir/numeric.at:29"
6974 $at_failed && at_fn_log_failure
6978 $as_echo "$at_srcdir/numeric.at:29:
6981 TEST_TAR_FORMAT=oldgnu
6982 export TEST_TAR_FORMAT
6983 TAR_OPTIONS=\"-H oldgnu\"
6988 genfile --file dir/file
6990 MYUID=\$(id -u) || exit 77
6991 MYGID=\$(id -g) || exit 77
6992 MYUSR=\$(id -un) || exit 77
6993 MYGRP=\$(id -gn) || exit 77
6997 tar --create -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
6998 tar --create -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
7002 tar --list -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
7003 tar --list -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
7007 tar --diff -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
7008 tar --diff -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
7012 tar --extract -vvf a dir --numeric-owner | awk '$2==\"'\"\$MYUID/\$MYGID\"'\" {print \"OK\"; next} {print}'
7013 tar --extract -vvf a dir | awk '$2==\"'\"\$MYUSR/\$MYGRP\"'\" {print \"OK\"; next} {print}'
7016 at_fn_check_prepare_notrace 'a $(...) command substitution' "numeric.at:29"
7020 TEST_TAR_FORMAT=oldgnu
7021 export TEST_TAR_FORMAT
7022 TAR_OPTIONS="-H oldgnu"
7027 genfile --file dir/file
7029 MYUID=$(id -u) || exit 77
7030 MYGID=$(id -g) || exit 77
7031 MYUSR=$(id -un) || exit 77
7032 MYGRP=$(id -gn) || exit 77
7036 tar --create -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
7037 tar --create -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
7041 tar --list -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
7042 tar --list -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
7046 tar --diff -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
7047 tar --diff -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
7051 tar --extract -vvf a dir --numeric-owner | awk '$2=="'"$MYUID/$MYGID"'" {print "OK"; next} {print}'
7052 tar --extract -vvf a dir | awk '$2=="'"$MYUSR/$MYGRP"'" {print "OK"; next} {print}'
7055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7056 at_status=$? at_failed=false
7058 echo >>"$at_stderr"; $as_echo "--create
7063 $at_diff - "$at_stderr" || at_failed=:
7064 echo >>"$at_stdout"; $as_echo "--create
7085 $at_diff - "$at_stdout" || at_failed=:
7086 at_fn_check_status 0 $at_status "$at_srcdir/numeric.at:29"
7087 $at_failed && at_fn_log_failure
7094 $at_times_p && times >"$at_times_file"
7095 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7096 read at_status <"$at_status_file"
7099 at_fn_group_banner 31 'same-order01.at:27' \
7100 "working -C with --same-order" " " 4
7102 test -f $XFAILFILE && at_xfail=yes
7104 $as_echo "31. $at_setup_line: testing $at_desc ..."
7112 $as_echo "$at_srcdir/same-order01.at:30:
7116 export TEST_TAR_FORMAT
7117 TAR_OPTIONS=\"-H v7\"
7122 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7125 genfile -l 1024 -f file1
7126 genfile -l 1024 -f file2
7127 tar cf archive file1 file2
7130 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7134 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:30"
7139 export TEST_TAR_FORMAT
7145 test -z "`sort < /dev/null 2>&1`" || exit 77
7148 genfile -l 1024 -f file1
7149 genfile -l 1024 -f file2
7150 tar cf archive file1 file2
7153 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7157 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7158 at_status=$? at_failed=false
7160 at_fn_diff_devnull "$at_stderr" || at_failed=:
7161 echo >>"$at_stdout"; $as_echo "file1
7164 $at_diff - "$at_stdout" || at_failed=:
7165 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:30"
7166 $at_failed && at_fn_log_failure
7170 $as_echo "$at_srcdir/same-order01.at:30:
7173 TEST_TAR_FORMAT=oldgnu
7174 export TEST_TAR_FORMAT
7175 TAR_OPTIONS=\"-H oldgnu\"
7180 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7183 genfile -l 1024 -f file1
7184 genfile -l 1024 -f file2
7185 tar cf archive file1 file2
7188 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7192 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:30"
7196 TEST_TAR_FORMAT=oldgnu
7197 export TEST_TAR_FORMAT
7198 TAR_OPTIONS="-H oldgnu"
7203 test -z "`sort < /dev/null 2>&1`" || exit 77
7206 genfile -l 1024 -f file1
7207 genfile -l 1024 -f file2
7208 tar cf archive file1 file2
7211 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7215 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7216 at_status=$? at_failed=false
7218 at_fn_diff_devnull "$at_stderr" || at_failed=:
7219 echo >>"$at_stdout"; $as_echo "file1
7222 $at_diff - "$at_stdout" || at_failed=:
7223 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:30"
7224 $at_failed && at_fn_log_failure
7228 $as_echo "$at_srcdir/same-order01.at:30:
7231 TEST_TAR_FORMAT=ustar
7232 export TEST_TAR_FORMAT
7233 TAR_OPTIONS=\"-H ustar\"
7238 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7241 genfile -l 1024 -f file1
7242 genfile -l 1024 -f file2
7243 tar cf archive file1 file2
7246 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7250 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:30"
7254 TEST_TAR_FORMAT=ustar
7255 export TEST_TAR_FORMAT
7256 TAR_OPTIONS="-H ustar"
7261 test -z "`sort < /dev/null 2>&1`" || exit 77
7264 genfile -l 1024 -f file1
7265 genfile -l 1024 -f file2
7266 tar cf archive file1 file2
7269 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7273 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7274 at_status=$? at_failed=false
7276 at_fn_diff_devnull "$at_stderr" || at_failed=:
7277 echo >>"$at_stdout"; $as_echo "file1
7280 $at_diff - "$at_stdout" || at_failed=:
7281 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:30"
7282 $at_failed && at_fn_log_failure
7286 $as_echo "$at_srcdir/same-order01.at:30:
7289 TEST_TAR_FORMAT=posix
7290 export TEST_TAR_FORMAT
7291 TAR_OPTIONS=\"-H posix\"
7296 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7299 genfile -l 1024 -f file1
7300 genfile -l 1024 -f file2
7301 tar cf archive file1 file2
7304 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7308 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:30"
7312 TEST_TAR_FORMAT=posix
7313 export TEST_TAR_FORMAT
7314 TAR_OPTIONS="-H posix"
7319 test -z "`sort < /dev/null 2>&1`" || exit 77
7322 genfile -l 1024 -f file1
7323 genfile -l 1024 -f file2
7324 tar cf archive file1 file2
7327 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7331 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7332 at_status=$? at_failed=false
7334 at_fn_diff_devnull "$at_stderr" || at_failed=:
7335 echo >>"$at_stdout"; $as_echo "file1
7338 $at_diff - "$at_stdout" || at_failed=:
7339 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:30"
7340 $at_failed && at_fn_log_failure
7344 $as_echo "$at_srcdir/same-order01.at:30:
7348 export TEST_TAR_FORMAT
7349 TAR_OPTIONS=\"-H gnu\"
7354 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7357 genfile -l 1024 -f file1
7358 genfile -l 1024 -f file2
7359 tar cf archive file1 file2
7362 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7366 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:30"
7371 export TEST_TAR_FORMAT
7372 TAR_OPTIONS="-H gnu"
7377 test -z "`sort < /dev/null 2>&1`" || exit 77
7380 genfile -l 1024 -f file1
7381 genfile -l 1024 -f file2
7382 tar cf archive file1 file2
7385 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
7389 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7390 at_status=$? at_failed=false
7392 at_fn_diff_devnull "$at_stderr" || at_failed=:
7393 echo >>"$at_stdout"; $as_echo "file1
7396 $at_diff - "$at_stdout" || at_failed=:
7397 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:30"
7398 $at_failed && at_fn_log_failure
7405 $at_times_p && times >"$at_times_file"
7406 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7407 read at_status <"$at_status_file"
7410 at_fn_group_banner 32 'same-order02.at:26' \
7411 "multiple -C options" " " 4
7413 test -f $XFAILFILE && at_xfail=yes
7415 $as_echo "32. $at_setup_line: testing $at_desc ..."
7423 $as_echo "$at_srcdir/same-order02.at:29:
7427 export TEST_TAR_FORMAT
7428 TAR_OPTIONS=\"-H v7\"
7432 genfile -l 1024 -f file1
7433 genfile -l 1024 -f file2
7434 tar cf archive file1 file2
7440 tar -xf archive --same-order --warning=no-timestamp \\
7441 -C \$HERE/en file1 \\
7442 -C \$HERE/to file2 || exit 1
7448 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:29"
7453 export TEST_TAR_FORMAT
7458 genfile -l 1024 -f file1
7459 genfile -l 1024 -f file2
7460 tar cf archive file1 file2
7466 tar -xf archive --same-order --warning=no-timestamp \
7468 -C $HERE/to file2 || exit 1
7474 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7475 at_status=$? at_failed=false
7477 at_fn_diff_devnull "$at_stderr" || at_failed=:
7478 echo >>"$at_stdout"; $as_echo "file1
7482 $at_diff - "$at_stdout" || at_failed=:
7483 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:29"
7484 $at_failed && at_fn_log_failure
7488 $as_echo "$at_srcdir/same-order02.at:29:
7491 TEST_TAR_FORMAT=oldgnu
7492 export TEST_TAR_FORMAT
7493 TAR_OPTIONS=\"-H oldgnu\"
7497 genfile -l 1024 -f file1
7498 genfile -l 1024 -f file2
7499 tar cf archive file1 file2
7505 tar -xf archive --same-order --warning=no-timestamp \\
7506 -C \$HERE/en file1 \\
7507 -C \$HERE/to file2 || exit 1
7513 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:29"
7517 TEST_TAR_FORMAT=oldgnu
7518 export TEST_TAR_FORMAT
7519 TAR_OPTIONS="-H oldgnu"
7523 genfile -l 1024 -f file1
7524 genfile -l 1024 -f file2
7525 tar cf archive file1 file2
7531 tar -xf archive --same-order --warning=no-timestamp \
7533 -C $HERE/to file2 || exit 1
7539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7540 at_status=$? at_failed=false
7542 at_fn_diff_devnull "$at_stderr" || at_failed=:
7543 echo >>"$at_stdout"; $as_echo "file1
7547 $at_diff - "$at_stdout" || at_failed=:
7548 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:29"
7549 $at_failed && at_fn_log_failure
7553 $as_echo "$at_srcdir/same-order02.at:29:
7556 TEST_TAR_FORMAT=ustar
7557 export TEST_TAR_FORMAT
7558 TAR_OPTIONS=\"-H ustar\"
7562 genfile -l 1024 -f file1
7563 genfile -l 1024 -f file2
7564 tar cf archive file1 file2
7570 tar -xf archive --same-order --warning=no-timestamp \\
7571 -C \$HERE/en file1 \\
7572 -C \$HERE/to file2 || exit 1
7578 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:29"
7582 TEST_TAR_FORMAT=ustar
7583 export TEST_TAR_FORMAT
7584 TAR_OPTIONS="-H ustar"
7588 genfile -l 1024 -f file1
7589 genfile -l 1024 -f file2
7590 tar cf archive file1 file2
7596 tar -xf archive --same-order --warning=no-timestamp \
7598 -C $HERE/to file2 || exit 1
7604 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7605 at_status=$? at_failed=false
7607 at_fn_diff_devnull "$at_stderr" || at_failed=:
7608 echo >>"$at_stdout"; $as_echo "file1
7612 $at_diff - "$at_stdout" || at_failed=:
7613 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:29"
7614 $at_failed && at_fn_log_failure
7618 $as_echo "$at_srcdir/same-order02.at:29:
7621 TEST_TAR_FORMAT=posix
7622 export TEST_TAR_FORMAT
7623 TAR_OPTIONS=\"-H posix\"
7627 genfile -l 1024 -f file1
7628 genfile -l 1024 -f file2
7629 tar cf archive file1 file2
7635 tar -xf archive --same-order --warning=no-timestamp \\
7636 -C \$HERE/en file1 \\
7637 -C \$HERE/to file2 || exit 1
7643 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:29"
7647 TEST_TAR_FORMAT=posix
7648 export TEST_TAR_FORMAT
7649 TAR_OPTIONS="-H posix"
7653 genfile -l 1024 -f file1
7654 genfile -l 1024 -f file2
7655 tar cf archive file1 file2
7661 tar -xf archive --same-order --warning=no-timestamp \
7663 -C $HERE/to file2 || exit 1
7669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7670 at_status=$? at_failed=false
7672 at_fn_diff_devnull "$at_stderr" || at_failed=:
7673 echo >>"$at_stdout"; $as_echo "file1
7677 $at_diff - "$at_stdout" || at_failed=:
7678 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:29"
7679 $at_failed && at_fn_log_failure
7683 $as_echo "$at_srcdir/same-order02.at:29:
7687 export TEST_TAR_FORMAT
7688 TAR_OPTIONS=\"-H gnu\"
7692 genfile -l 1024 -f file1
7693 genfile -l 1024 -f file2
7694 tar cf archive file1 file2
7700 tar -xf archive --same-order --warning=no-timestamp \\
7701 -C \$HERE/en file1 \\
7702 -C \$HERE/to file2 || exit 1
7708 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:29"
7713 export TEST_TAR_FORMAT
7714 TAR_OPTIONS="-H gnu"
7718 genfile -l 1024 -f file1
7719 genfile -l 1024 -f file2
7720 tar cf archive file1 file2
7726 tar -xf archive --same-order --warning=no-timestamp \
7728 -C $HERE/to file2 || exit 1
7734 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7735 at_status=$? at_failed=false
7737 at_fn_diff_devnull "$at_stderr" || at_failed=:
7738 echo >>"$at_stdout"; $as_echo "file1
7742 $at_diff - "$at_stdout" || at_failed=:
7743 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:29"
7744 $at_failed && at_fn_log_failure
7751 $at_times_p && times >"$at_times_file"
7752 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7753 read at_status <"$at_status_file"
7756 at_fn_group_banner 33 'append.at:22' \
7759 test -f $XFAILFILE && at_xfail=yes
7761 $as_echo "33. $at_setup_line: testing $at_desc ..."
7769 $as_echo "$at_srcdir/append.at:25:
7773 export TEST_TAR_FORMAT
7774 TAR_OPTIONS=\"-H v7\"
7779 tar cf archive file1
7780 tar rf archive file2
7782 at_fn_check_prepare_notrace 'an embedded newline' "append.at:25"
7787 export TEST_TAR_FORMAT
7793 tar cf archive file1
7794 tar rf archive file2
7796 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7797 at_status=$? at_failed=false
7799 at_fn_diff_devnull "$at_stderr" || at_failed=:
7800 echo >>"$at_stdout"; $as_echo "file1
7803 $at_diff - "$at_stdout" || at_failed=:
7804 at_fn_check_status 0 $at_status "$at_srcdir/append.at:25"
7805 $at_failed && at_fn_log_failure
7809 $as_echo "$at_srcdir/append.at:25:
7812 TEST_TAR_FORMAT=oldgnu
7813 export TEST_TAR_FORMAT
7814 TAR_OPTIONS=\"-H oldgnu\"
7819 tar cf archive file1
7820 tar rf archive file2
7822 at_fn_check_prepare_notrace 'an embedded newline' "append.at:25"
7826 TEST_TAR_FORMAT=oldgnu
7827 export TEST_TAR_FORMAT
7828 TAR_OPTIONS="-H oldgnu"
7833 tar cf archive file1
7834 tar rf archive file2
7836 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7837 at_status=$? at_failed=false
7839 at_fn_diff_devnull "$at_stderr" || at_failed=:
7840 echo >>"$at_stdout"; $as_echo "file1
7843 $at_diff - "$at_stdout" || at_failed=:
7844 at_fn_check_status 0 $at_status "$at_srcdir/append.at:25"
7845 $at_failed && at_fn_log_failure
7849 $as_echo "$at_srcdir/append.at:25:
7852 TEST_TAR_FORMAT=ustar
7853 export TEST_TAR_FORMAT
7854 TAR_OPTIONS=\"-H ustar\"
7859 tar cf archive file1
7860 tar rf archive file2
7862 at_fn_check_prepare_notrace 'an embedded newline' "append.at:25"
7866 TEST_TAR_FORMAT=ustar
7867 export TEST_TAR_FORMAT
7868 TAR_OPTIONS="-H ustar"
7873 tar cf archive file1
7874 tar rf archive file2
7876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7877 at_status=$? at_failed=false
7879 at_fn_diff_devnull "$at_stderr" || at_failed=:
7880 echo >>"$at_stdout"; $as_echo "file1
7883 $at_diff - "$at_stdout" || at_failed=:
7884 at_fn_check_status 0 $at_status "$at_srcdir/append.at:25"
7885 $at_failed && at_fn_log_failure
7889 $as_echo "$at_srcdir/append.at:25:
7892 TEST_TAR_FORMAT=posix
7893 export TEST_TAR_FORMAT
7894 TAR_OPTIONS=\"-H posix\"
7899 tar cf archive file1
7900 tar rf archive file2
7902 at_fn_check_prepare_notrace 'an embedded newline' "append.at:25"
7906 TEST_TAR_FORMAT=posix
7907 export TEST_TAR_FORMAT
7908 TAR_OPTIONS="-H posix"
7913 tar cf archive file1
7914 tar rf archive file2
7916 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7917 at_status=$? at_failed=false
7919 at_fn_diff_devnull "$at_stderr" || at_failed=:
7920 echo >>"$at_stdout"; $as_echo "file1
7923 $at_diff - "$at_stdout" || at_failed=:
7924 at_fn_check_status 0 $at_status "$at_srcdir/append.at:25"
7925 $at_failed && at_fn_log_failure
7929 $as_echo "$at_srcdir/append.at:25:
7933 export TEST_TAR_FORMAT
7934 TAR_OPTIONS=\"-H gnu\"
7939 tar cf archive file1
7940 tar rf archive file2
7942 at_fn_check_prepare_notrace 'an embedded newline' "append.at:25"
7947 export TEST_TAR_FORMAT
7948 TAR_OPTIONS="-H gnu"
7953 tar cf archive file1
7954 tar rf archive file2
7956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7957 at_status=$? at_failed=false
7959 at_fn_diff_devnull "$at_stderr" || at_failed=:
7960 echo >>"$at_stdout"; $as_echo "file1
7963 $at_diff - "$at_stdout" || at_failed=:
7964 at_fn_check_status 0 $at_status "$at_srcdir/append.at:25"
7965 $at_failed && at_fn_log_failure
7972 $at_times_p && times >"$at_times_file"
7973 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7974 read at_status <"$at_status_file"
7977 at_fn_group_banner 34 'append01.at:29' \
7978 "appending files with long names" " " 5
7980 test -f $XFAILFILE && at_xfail=yes
7982 $as_echo "34. $at_setup_line: testing $at_desc ..."
7992 $as_echo "$at_srcdir/append01.at:34:
7995 TEST_TAR_FORMAT=oldgnu
7996 export TEST_TAR_FORMAT
7997 TAR_OPTIONS=\"-H oldgnu\"
8001 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
8002 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
8003 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
8004 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
8007 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
8011 TEST_TAR_FORMAT=oldgnu
8012 export TEST_TAR_FORMAT
8013 TAR_OPTIONS="-H oldgnu"
8017 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
8018 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
8019 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
8020 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
8023 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8024 at_status=$? at_failed=false
8026 at_fn_diff_devnull "$at_stderr" || at_failed=:
8027 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
8028 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
8030 $at_diff - "$at_stdout" || at_failed=:
8031 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
8032 $at_failed && at_fn_log_failure
8036 $as_echo "$at_srcdir/append01.at:34:
8039 TEST_TAR_FORMAT=ustar
8040 export TEST_TAR_FORMAT
8041 TAR_OPTIONS=\"-H ustar\"
8045 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
8046 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
8047 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
8048 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
8051 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
8055 TEST_TAR_FORMAT=ustar
8056 export TEST_TAR_FORMAT
8057 TAR_OPTIONS="-H ustar"
8061 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
8062 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
8063 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
8064 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
8067 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8068 at_status=$? at_failed=false
8070 at_fn_diff_devnull "$at_stderr" || at_failed=:
8071 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
8072 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
8074 $at_diff - "$at_stdout" || at_failed=:
8075 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
8076 $at_failed && at_fn_log_failure
8080 $as_echo "$at_srcdir/append01.at:34:
8083 TEST_TAR_FORMAT=posix
8084 export TEST_TAR_FORMAT
8085 TAR_OPTIONS=\"-H posix\"
8089 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
8090 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
8091 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
8092 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
8095 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
8099 TEST_TAR_FORMAT=posix
8100 export TEST_TAR_FORMAT
8101 TAR_OPTIONS="-H posix"
8105 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
8106 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
8107 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
8108 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
8111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8112 at_status=$? at_failed=false
8114 at_fn_diff_devnull "$at_stderr" || at_failed=:
8115 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
8116 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
8118 $at_diff - "$at_stdout" || at_failed=:
8119 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
8120 $at_failed && at_fn_log_failure
8124 $as_echo "$at_srcdir/append01.at:34:
8128 export TEST_TAR_FORMAT
8129 TAR_OPTIONS=\"-H gnu\"
8133 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
8134 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
8135 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
8136 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
8139 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
8144 export TEST_TAR_FORMAT
8145 TAR_OPTIONS="-H gnu"
8149 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
8150 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
8151 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
8152 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
8155 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8156 at_status=$? at_failed=false
8158 at_fn_diff_devnull "$at_stderr" || at_failed=:
8159 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
8160 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
8162 $at_diff - "$at_stdout" || at_failed=:
8163 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
8164 $at_failed && at_fn_log_failure
8172 $at_times_p && times >"$at_times_file"
8173 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8174 read at_status <"$at_status_file"
8177 at_fn_group_banner 35 'append02.at:55' \
8178 "append vs. create" " " 5
8180 test -f $XFAILFILE && at_xfail=yes
8182 $as_echo "35. $at_setup_line: testing $at_desc ..."
8190 $as_echo "$at_srcdir/append02.at:58:
8194 export TEST_TAR_FORMAT
8195 TAR_OPTIONS=\"-H v7\"
8199 genfile --file file1
8200 genfile --file file2
8202 # Make sure file timestamps in the archive will not differ
8203 MTIME=\"--mtime=@0\"
8205 # For PAX archives, we need to make sure extended header names are
8206 # reproducible and that their contents won't change with time
8207 if test \$TEST_TAR_FORMAT = posix; then
8208 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
8211 echo Creating archive.1
8212 tar \$MTIME -cf archive.1 file1 file2
8214 echo Creating archive.2
8215 tar \$MTIME -cf archive.2 -T /dev/null
8216 tar \$MTIME -rf archive.2 file1
8217 tar \$MTIME -rf archive.2 file2
8219 echo Comparing archives
8220 cmp archive.1 archive.2
8222 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:58"
8227 export TEST_TAR_FORMAT
8232 genfile --file file1
8233 genfile --file file2
8235 # Make sure file timestamps in the archive will not differ
8238 # For PAX archives, we need to make sure extended header names are
8239 # reproducible and that their contents won't change with time
8240 if test $TEST_TAR_FORMAT = posix; then
8241 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
8244 echo Creating archive.1
8245 tar $MTIME -cf archive.1 file1 file2
8247 echo Creating archive.2
8248 tar $MTIME -cf archive.2 -T /dev/null
8249 tar $MTIME -rf archive.2 file1
8250 tar $MTIME -rf archive.2 file2
8252 echo Comparing archives
8253 cmp archive.1 archive.2
8255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8256 at_status=$? at_failed=false
8258 at_fn_diff_devnull "$at_stderr" || at_failed=:
8259 echo >>"$at_stdout"; $as_echo "Creating archive.1
8263 $at_diff - "$at_stdout" || at_failed=:
8264 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:58"
8265 $at_failed && at_fn_log_failure
8269 $as_echo "$at_srcdir/append02.at:58:
8272 TEST_TAR_FORMAT=oldgnu
8273 export TEST_TAR_FORMAT
8274 TAR_OPTIONS=\"-H oldgnu\"
8278 genfile --file file1
8279 genfile --file file2
8281 # Make sure file timestamps in the archive will not differ
8282 MTIME=\"--mtime=@0\"
8284 # For PAX archives, we need to make sure extended header names are
8285 # reproducible and that their contents won't change with time
8286 if test \$TEST_TAR_FORMAT = posix; then
8287 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
8290 echo Creating archive.1
8291 tar \$MTIME -cf archive.1 file1 file2
8293 echo Creating archive.2
8294 tar \$MTIME -cf archive.2 -T /dev/null
8295 tar \$MTIME -rf archive.2 file1
8296 tar \$MTIME -rf archive.2 file2
8298 echo Comparing archives
8299 cmp archive.1 archive.2
8301 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:58"
8305 TEST_TAR_FORMAT=oldgnu
8306 export TEST_TAR_FORMAT
8307 TAR_OPTIONS="-H oldgnu"
8311 genfile --file file1
8312 genfile --file file2
8314 # Make sure file timestamps in the archive will not differ
8317 # For PAX archives, we need to make sure extended header names are
8318 # reproducible and that their contents won't change with time
8319 if test $TEST_TAR_FORMAT = posix; then
8320 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
8323 echo Creating archive.1
8324 tar $MTIME -cf archive.1 file1 file2
8326 echo Creating archive.2
8327 tar $MTIME -cf archive.2 -T /dev/null
8328 tar $MTIME -rf archive.2 file1
8329 tar $MTIME -rf archive.2 file2
8331 echo Comparing archives
8332 cmp archive.1 archive.2
8334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8335 at_status=$? at_failed=false
8337 at_fn_diff_devnull "$at_stderr" || at_failed=:
8338 echo >>"$at_stdout"; $as_echo "Creating archive.1
8342 $at_diff - "$at_stdout" || at_failed=:
8343 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:58"
8344 $at_failed && at_fn_log_failure
8348 $as_echo "$at_srcdir/append02.at:58:
8351 TEST_TAR_FORMAT=ustar
8352 export TEST_TAR_FORMAT
8353 TAR_OPTIONS=\"-H ustar\"
8357 genfile --file file1
8358 genfile --file file2
8360 # Make sure file timestamps in the archive will not differ
8361 MTIME=\"--mtime=@0\"
8363 # For PAX archives, we need to make sure extended header names are
8364 # reproducible and that their contents won't change with time
8365 if test \$TEST_TAR_FORMAT = posix; then
8366 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
8369 echo Creating archive.1
8370 tar \$MTIME -cf archive.1 file1 file2
8372 echo Creating archive.2
8373 tar \$MTIME -cf archive.2 -T /dev/null
8374 tar \$MTIME -rf archive.2 file1
8375 tar \$MTIME -rf archive.2 file2
8377 echo Comparing archives
8378 cmp archive.1 archive.2
8380 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:58"
8384 TEST_TAR_FORMAT=ustar
8385 export TEST_TAR_FORMAT
8386 TAR_OPTIONS="-H ustar"
8390 genfile --file file1
8391 genfile --file file2
8393 # Make sure file timestamps in the archive will not differ
8396 # For PAX archives, we need to make sure extended header names are
8397 # reproducible and that their contents won't change with time
8398 if test $TEST_TAR_FORMAT = posix; then
8399 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
8402 echo Creating archive.1
8403 tar $MTIME -cf archive.1 file1 file2
8405 echo Creating archive.2
8406 tar $MTIME -cf archive.2 -T /dev/null
8407 tar $MTIME -rf archive.2 file1
8408 tar $MTIME -rf archive.2 file2
8410 echo Comparing archives
8411 cmp archive.1 archive.2
8413 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8414 at_status=$? at_failed=false
8416 at_fn_diff_devnull "$at_stderr" || at_failed=:
8417 echo >>"$at_stdout"; $as_echo "Creating archive.1
8421 $at_diff - "$at_stdout" || at_failed=:
8422 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:58"
8423 $at_failed && at_fn_log_failure
8427 $as_echo "$at_srcdir/append02.at:58:
8430 TEST_TAR_FORMAT=posix
8431 export TEST_TAR_FORMAT
8432 TAR_OPTIONS=\"-H posix\"
8436 genfile --file file1
8437 genfile --file file2
8439 # Make sure file timestamps in the archive will not differ
8440 MTIME=\"--mtime=@0\"
8442 # For PAX archives, we need to make sure extended header names are
8443 # reproducible and that their contents won't change with time
8444 if test \$TEST_TAR_FORMAT = posix; then
8445 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
8448 echo Creating archive.1
8449 tar \$MTIME -cf archive.1 file1 file2
8451 echo Creating archive.2
8452 tar \$MTIME -cf archive.2 -T /dev/null
8453 tar \$MTIME -rf archive.2 file1
8454 tar \$MTIME -rf archive.2 file2
8456 echo Comparing archives
8457 cmp archive.1 archive.2
8459 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:58"
8463 TEST_TAR_FORMAT=posix
8464 export TEST_TAR_FORMAT
8465 TAR_OPTIONS="-H posix"
8469 genfile --file file1
8470 genfile --file file2
8472 # Make sure file timestamps in the archive will not differ
8475 # For PAX archives, we need to make sure extended header names are
8476 # reproducible and that their contents won't change with time
8477 if test $TEST_TAR_FORMAT = posix; then
8478 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
8481 echo Creating archive.1
8482 tar $MTIME -cf archive.1 file1 file2
8484 echo Creating archive.2
8485 tar $MTIME -cf archive.2 -T /dev/null
8486 tar $MTIME -rf archive.2 file1
8487 tar $MTIME -rf archive.2 file2
8489 echo Comparing archives
8490 cmp archive.1 archive.2
8492 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8493 at_status=$? at_failed=false
8495 at_fn_diff_devnull "$at_stderr" || at_failed=:
8496 echo >>"$at_stdout"; $as_echo "Creating archive.1
8500 $at_diff - "$at_stdout" || at_failed=:
8501 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:58"
8502 $at_failed && at_fn_log_failure
8506 $as_echo "$at_srcdir/append02.at:58:
8510 export TEST_TAR_FORMAT
8511 TAR_OPTIONS=\"-H gnu\"
8515 genfile --file file1
8516 genfile --file file2
8518 # Make sure file timestamps in the archive will not differ
8519 MTIME=\"--mtime=@0\"
8521 # For PAX archives, we need to make sure extended header names are
8522 # reproducible and that their contents won't change with time
8523 if test \$TEST_TAR_FORMAT = posix; then
8524 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
8527 echo Creating archive.1
8528 tar \$MTIME -cf archive.1 file1 file2
8530 echo Creating archive.2
8531 tar \$MTIME -cf archive.2 -T /dev/null
8532 tar \$MTIME -rf archive.2 file1
8533 tar \$MTIME -rf archive.2 file2
8535 echo Comparing archives
8536 cmp archive.1 archive.2
8538 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:58"
8543 export TEST_TAR_FORMAT
8544 TAR_OPTIONS="-H gnu"
8548 genfile --file file1
8549 genfile --file file2
8551 # Make sure file timestamps in the archive will not differ
8554 # For PAX archives, we need to make sure extended header names are
8555 # reproducible and that their contents won't change with time
8556 if test $TEST_TAR_FORMAT = posix; then
8557 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
8560 echo Creating archive.1
8561 tar $MTIME -cf archive.1 file1 file2
8563 echo Creating archive.2
8564 tar $MTIME -cf archive.2 -T /dev/null
8565 tar $MTIME -rf archive.2 file1
8566 tar $MTIME -rf archive.2 file2
8568 echo Comparing archives
8569 cmp archive.1 archive.2
8571 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8572 at_status=$? at_failed=false
8574 at_fn_diff_devnull "$at_stderr" || at_failed=:
8575 echo >>"$at_stdout"; $as_echo "Creating archive.1
8579 $at_diff - "$at_stdout" || at_failed=:
8580 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:58"
8581 $at_failed && at_fn_log_failure
8588 $at_times_p && times >"$at_times_file"
8589 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8590 read at_status <"$at_status_file"
8593 at_fn_group_banner 36 'append03.at:21' \
8594 "append with name transformation" " " 5
8596 test -f $XFAILFILE && at_xfail=yes
8598 $as_echo "36. $at_setup_line: testing $at_desc ..."
8603 # Description: Make sure filenames are transformed during append.
8608 $as_echo "$at_srcdir/append03.at:26:
8612 export TEST_TAR_FORMAT
8613 TAR_OPTIONS=\"-H v7\"
8617 genfile --file file.1
8618 genfile --file file.2
8620 tar -c -f archive --transform 's/file/plik/' file.*
8622 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8626 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
8631 export TEST_TAR_FORMAT
8636 genfile --file file.1
8637 genfile --file file.2
8639 tar -c -f archive --transform 's/file/plik/' file.*
8641 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8645 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8646 at_status=$? at_failed=false
8648 at_fn_diff_devnull "$at_stderr" || at_failed=:
8649 echo >>"$at_stdout"; $as_echo "Appending
8656 $at_diff - "$at_stdout" || at_failed=:
8657 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
8658 $at_failed && at_fn_log_failure
8662 $as_echo "$at_srcdir/append03.at:26:
8665 TEST_TAR_FORMAT=oldgnu
8666 export TEST_TAR_FORMAT
8667 TAR_OPTIONS=\"-H oldgnu\"
8671 genfile --file file.1
8672 genfile --file file.2
8674 tar -c -f archive --transform 's/file/plik/' file.*
8676 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8680 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
8684 TEST_TAR_FORMAT=oldgnu
8685 export TEST_TAR_FORMAT
8686 TAR_OPTIONS="-H oldgnu"
8690 genfile --file file.1
8691 genfile --file file.2
8693 tar -c -f archive --transform 's/file/plik/' file.*
8695 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8699 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8700 at_status=$? at_failed=false
8702 at_fn_diff_devnull "$at_stderr" || at_failed=:
8703 echo >>"$at_stdout"; $as_echo "Appending
8710 $at_diff - "$at_stdout" || at_failed=:
8711 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
8712 $at_failed && at_fn_log_failure
8716 $as_echo "$at_srcdir/append03.at:26:
8719 TEST_TAR_FORMAT=ustar
8720 export TEST_TAR_FORMAT
8721 TAR_OPTIONS=\"-H ustar\"
8725 genfile --file file.1
8726 genfile --file file.2
8728 tar -c -f archive --transform 's/file/plik/' file.*
8730 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8734 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
8738 TEST_TAR_FORMAT=ustar
8739 export TEST_TAR_FORMAT
8740 TAR_OPTIONS="-H ustar"
8744 genfile --file file.1
8745 genfile --file file.2
8747 tar -c -f archive --transform 's/file/plik/' file.*
8749 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8753 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8754 at_status=$? at_failed=false
8756 at_fn_diff_devnull "$at_stderr" || at_failed=:
8757 echo >>"$at_stdout"; $as_echo "Appending
8764 $at_diff - "$at_stdout" || at_failed=:
8765 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
8766 $at_failed && at_fn_log_failure
8770 $as_echo "$at_srcdir/append03.at:26:
8773 TEST_TAR_FORMAT=posix
8774 export TEST_TAR_FORMAT
8775 TAR_OPTIONS=\"-H posix\"
8779 genfile --file file.1
8780 genfile --file file.2
8782 tar -c -f archive --transform 's/file/plik/' file.*
8784 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8788 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
8792 TEST_TAR_FORMAT=posix
8793 export TEST_TAR_FORMAT
8794 TAR_OPTIONS="-H posix"
8798 genfile --file file.1
8799 genfile --file file.2
8801 tar -c -f archive --transform 's/file/plik/' file.*
8803 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8807 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8808 at_status=$? at_failed=false
8810 at_fn_diff_devnull "$at_stderr" || at_failed=:
8811 echo >>"$at_stdout"; $as_echo "Appending
8818 $at_diff - "$at_stdout" || at_failed=:
8819 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
8820 $at_failed && at_fn_log_failure
8824 $as_echo "$at_srcdir/append03.at:26:
8828 export TEST_TAR_FORMAT
8829 TAR_OPTIONS=\"-H gnu\"
8833 genfile --file file.1
8834 genfile --file file.2
8836 tar -c -f archive --transform 's/file/plik/' file.*
8838 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8842 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
8847 export TEST_TAR_FORMAT
8848 TAR_OPTIONS="-H gnu"
8852 genfile --file file.1
8853 genfile --file file.2
8855 tar -c -f archive --transform 's/file/plik/' file.*
8857 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
8861 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8862 at_status=$? at_failed=false
8864 at_fn_diff_devnull "$at_stderr" || at_failed=:
8865 echo >>"$at_stdout"; $as_echo "Appending
8872 $at_diff - "$at_stdout" || at_failed=:
8873 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
8874 $at_failed && at_fn_log_failure
8881 $at_times_p && times >"$at_times_file"
8882 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8883 read at_status <"$at_status_file"
8886 at_fn_group_banner 37 'append04.at:29' \
8887 "append with verify" " " 5
8889 test -f $XFAILFILE && at_xfail=yes
8891 $as_echo "37. $at_setup_line: testing $at_desc ..."
8899 $as_echo "$at_srcdir/append04.at:32:
8903 export TEST_TAR_FORMAT
8904 TAR_OPTIONS=\"-H v7\"
8908 # Create two empty files:
8911 # Create an archive:
8912 tar cpfW archive.tar file1 file2
8914 # Verify created archive by listing its content:
8917 # Create another empty file:
8920 # Append it to the already created archive:
8921 tar rpfW archive.tar file3
8923 # Verify content of the new archive:
8926 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
8931 export TEST_TAR_FORMAT
8936 # Create two empty files:
8939 # Create an archive:
8940 tar cpfW archive.tar file1 file2
8942 # Verify created archive by listing its content:
8945 # Create another empty file:
8948 # Append it to the already created archive:
8949 tar rpfW archive.tar file3
8951 # Verify content of the new archive:
8954 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8955 at_status=$? at_failed=false
8957 at_fn_diff_devnull "$at_stderr" || at_failed=:
8958 echo >>"$at_stdout"; $as_echo "file1
8965 $at_diff - "$at_stdout" || at_failed=:
8966 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
8967 $at_failed && at_fn_log_failure
8971 $as_echo "$at_srcdir/append04.at:32:
8974 TEST_TAR_FORMAT=oldgnu
8975 export TEST_TAR_FORMAT
8976 TAR_OPTIONS=\"-H oldgnu\"
8980 # Create two empty files:
8983 # Create an archive:
8984 tar cpfW archive.tar file1 file2
8986 # Verify created archive by listing its content:
8989 # Create another empty file:
8992 # Append it to the already created archive:
8993 tar rpfW archive.tar file3
8995 # Verify content of the new archive:
8998 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
9002 TEST_TAR_FORMAT=oldgnu
9003 export TEST_TAR_FORMAT
9004 TAR_OPTIONS="-H oldgnu"
9008 # Create two empty files:
9011 # Create an archive:
9012 tar cpfW archive.tar file1 file2
9014 # Verify created archive by listing its content:
9017 # Create another empty file:
9020 # Append it to the already created archive:
9021 tar rpfW archive.tar file3
9023 # Verify content of the new archive:
9026 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9027 at_status=$? at_failed=false
9029 at_fn_diff_devnull "$at_stderr" || at_failed=:
9030 echo >>"$at_stdout"; $as_echo "file1
9037 $at_diff - "$at_stdout" || at_failed=:
9038 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
9039 $at_failed && at_fn_log_failure
9043 $as_echo "$at_srcdir/append04.at:32:
9046 TEST_TAR_FORMAT=ustar
9047 export TEST_TAR_FORMAT
9048 TAR_OPTIONS=\"-H ustar\"
9052 # Create two empty files:
9055 # Create an archive:
9056 tar cpfW archive.tar file1 file2
9058 # Verify created archive by listing its content:
9061 # Create another empty file:
9064 # Append it to the already created archive:
9065 tar rpfW archive.tar file3
9067 # Verify content of the new archive:
9070 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
9074 TEST_TAR_FORMAT=ustar
9075 export TEST_TAR_FORMAT
9076 TAR_OPTIONS="-H ustar"
9080 # Create two empty files:
9083 # Create an archive:
9084 tar cpfW archive.tar file1 file2
9086 # Verify created archive by listing its content:
9089 # Create another empty file:
9092 # Append it to the already created archive:
9093 tar rpfW archive.tar file3
9095 # Verify content of the new archive:
9098 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9099 at_status=$? at_failed=false
9101 at_fn_diff_devnull "$at_stderr" || at_failed=:
9102 echo >>"$at_stdout"; $as_echo "file1
9109 $at_diff - "$at_stdout" || at_failed=:
9110 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
9111 $at_failed && at_fn_log_failure
9115 $as_echo "$at_srcdir/append04.at:32:
9118 TEST_TAR_FORMAT=posix
9119 export TEST_TAR_FORMAT
9120 TAR_OPTIONS=\"-H posix\"
9124 # Create two empty files:
9127 # Create an archive:
9128 tar cpfW archive.tar file1 file2
9130 # Verify created archive by listing its content:
9133 # Create another empty file:
9136 # Append it to the already created archive:
9137 tar rpfW archive.tar file3
9139 # Verify content of the new archive:
9142 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
9146 TEST_TAR_FORMAT=posix
9147 export TEST_TAR_FORMAT
9148 TAR_OPTIONS="-H posix"
9152 # Create two empty files:
9155 # Create an archive:
9156 tar cpfW archive.tar file1 file2
9158 # Verify created archive by listing its content:
9161 # Create another empty file:
9164 # Append it to the already created archive:
9165 tar rpfW archive.tar file3
9167 # Verify content of the new archive:
9170 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9171 at_status=$? at_failed=false
9173 at_fn_diff_devnull "$at_stderr" || at_failed=:
9174 echo >>"$at_stdout"; $as_echo "file1
9181 $at_diff - "$at_stdout" || at_failed=:
9182 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
9183 $at_failed && at_fn_log_failure
9187 $as_echo "$at_srcdir/append04.at:32:
9191 export TEST_TAR_FORMAT
9192 TAR_OPTIONS=\"-H gnu\"
9196 # Create two empty files:
9199 # Create an archive:
9200 tar cpfW archive.tar file1 file2
9202 # Verify created archive by listing its content:
9205 # Create another empty file:
9208 # Append it to the already created archive:
9209 tar rpfW archive.tar file3
9211 # Verify content of the new archive:
9214 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
9219 export TEST_TAR_FORMAT
9220 TAR_OPTIONS="-H gnu"
9224 # Create two empty files:
9227 # Create an archive:
9228 tar cpfW archive.tar file1 file2
9230 # Verify created archive by listing its content:
9233 # Create another empty file:
9236 # Append it to the already created archive:
9237 tar rpfW archive.tar file3
9239 # Verify content of the new archive:
9242 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9243 at_status=$? at_failed=false
9245 at_fn_diff_devnull "$at_stderr" || at_failed=:
9246 echo >>"$at_stdout"; $as_echo "file1
9253 $at_diff - "$at_stdout" || at_failed=:
9254 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
9255 $at_failed && at_fn_log_failure
9262 $at_times_p && times >"$at_times_file"
9263 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9264 read at_status <"$at_status_file"
9267 at_fn_group_banner 38 'append05.at:32' \
9268 "append after changed blocking" " " 5
9270 test -f $XFAILFILE && at_xfail=yes
9272 $as_echo "38. $at_setup_line: testing $at_desc ..."
9280 $as_echo "$at_srcdir/append05.at:35:
9284 export TEST_TAR_FORMAT
9285 TAR_OPTIONS=\"-H v7\"
9289 for f in a b c d e f g h i
9294 decho 'creating archive'
9295 tar -cf archive -b1 a b c
9299 decho 'adding d e f'
9300 tar -vrf archive -b3 d e f
9304 decho 'adding g h i'
9305 tar -vrf archive -b5 g h i
9307 decho 'resulting archive'
9310 at_fn_check_prepare_notrace 'an embedded newline' "append05.at:35"
9315 export TEST_TAR_FORMAT
9320 for f in a b c d e f g h i
9325 decho 'creating archive'
9326 tar -cf archive -b1 a b c
9330 decho 'adding d e f'
9331 tar -vrf archive -b3 d e f
9335 decho 'adding g h i'
9336 tar -vrf archive -b5 g h i
9338 decho 'resulting archive'
9341 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9342 at_status=$? at_failed=false
9344 echo >>"$at_stderr"; $as_echo "creating archive
9349 $at_diff - "$at_stderr" || at_failed=:
9350 echo >>"$at_stdout"; $as_echo "creating archive
9380 $at_diff - "$at_stdout" || at_failed=:
9381 at_fn_check_status 0 $at_status "$at_srcdir/append05.at:35"
9382 $at_failed && at_fn_log_failure
9386 $as_echo "$at_srcdir/append05.at:35:
9389 TEST_TAR_FORMAT=oldgnu
9390 export TEST_TAR_FORMAT
9391 TAR_OPTIONS=\"-H oldgnu\"
9395 for f in a b c d e f g h i
9400 decho 'creating archive'
9401 tar -cf archive -b1 a b c
9405 decho 'adding d e f'
9406 tar -vrf archive -b3 d e f
9410 decho 'adding g h i'
9411 tar -vrf archive -b5 g h i
9413 decho 'resulting archive'
9416 at_fn_check_prepare_notrace 'an embedded newline' "append05.at:35"
9420 TEST_TAR_FORMAT=oldgnu
9421 export TEST_TAR_FORMAT
9422 TAR_OPTIONS="-H oldgnu"
9426 for f in a b c d e f g h i
9431 decho 'creating archive'
9432 tar -cf archive -b1 a b c
9436 decho 'adding d e f'
9437 tar -vrf archive -b3 d e f
9441 decho 'adding g h i'
9442 tar -vrf archive -b5 g h i
9444 decho 'resulting archive'
9447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9448 at_status=$? at_failed=false
9450 echo >>"$at_stderr"; $as_echo "creating archive
9455 $at_diff - "$at_stderr" || at_failed=:
9456 echo >>"$at_stdout"; $as_echo "creating archive
9486 $at_diff - "$at_stdout" || at_failed=:
9487 at_fn_check_status 0 $at_status "$at_srcdir/append05.at:35"
9488 $at_failed && at_fn_log_failure
9492 $as_echo "$at_srcdir/append05.at:35:
9495 TEST_TAR_FORMAT=ustar
9496 export TEST_TAR_FORMAT
9497 TAR_OPTIONS=\"-H ustar\"
9501 for f in a b c d e f g h i
9506 decho 'creating archive'
9507 tar -cf archive -b1 a b c
9511 decho 'adding d e f'
9512 tar -vrf archive -b3 d e f
9516 decho 'adding g h i'
9517 tar -vrf archive -b5 g h i
9519 decho 'resulting archive'
9522 at_fn_check_prepare_notrace 'an embedded newline' "append05.at:35"
9526 TEST_TAR_FORMAT=ustar
9527 export TEST_TAR_FORMAT
9528 TAR_OPTIONS="-H ustar"
9532 for f in a b c d e f g h i
9537 decho 'creating archive'
9538 tar -cf archive -b1 a b c
9542 decho 'adding d e f'
9543 tar -vrf archive -b3 d e f
9547 decho 'adding g h i'
9548 tar -vrf archive -b5 g h i
9550 decho 'resulting archive'
9553 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9554 at_status=$? at_failed=false
9556 echo >>"$at_stderr"; $as_echo "creating archive
9561 $at_diff - "$at_stderr" || at_failed=:
9562 echo >>"$at_stdout"; $as_echo "creating archive
9592 $at_diff - "$at_stdout" || at_failed=:
9593 at_fn_check_status 0 $at_status "$at_srcdir/append05.at:35"
9594 $at_failed && at_fn_log_failure
9598 $as_echo "$at_srcdir/append05.at:35:
9601 TEST_TAR_FORMAT=posix
9602 export TEST_TAR_FORMAT
9603 TAR_OPTIONS=\"-H posix\"
9607 for f in a b c d e f g h i
9612 decho 'creating archive'
9613 tar -cf archive -b1 a b c
9617 decho 'adding d e f'
9618 tar -vrf archive -b3 d e f
9622 decho 'adding g h i'
9623 tar -vrf archive -b5 g h i
9625 decho 'resulting archive'
9628 at_fn_check_prepare_notrace 'an embedded newline' "append05.at:35"
9632 TEST_TAR_FORMAT=posix
9633 export TEST_TAR_FORMAT
9634 TAR_OPTIONS="-H posix"
9638 for f in a b c d e f g h i
9643 decho 'creating archive'
9644 tar -cf archive -b1 a b c
9648 decho 'adding d e f'
9649 tar -vrf archive -b3 d e f
9653 decho 'adding g h i'
9654 tar -vrf archive -b5 g h i
9656 decho 'resulting archive'
9659 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9660 at_status=$? at_failed=false
9662 echo >>"$at_stderr"; $as_echo "creating archive
9667 $at_diff - "$at_stderr" || at_failed=:
9668 echo >>"$at_stdout"; $as_echo "creating archive
9698 $at_diff - "$at_stdout" || at_failed=:
9699 at_fn_check_status 0 $at_status "$at_srcdir/append05.at:35"
9700 $at_failed && at_fn_log_failure
9704 $as_echo "$at_srcdir/append05.at:35:
9708 export TEST_TAR_FORMAT
9709 TAR_OPTIONS=\"-H gnu\"
9713 for f in a b c d e f g h i
9718 decho 'creating archive'
9719 tar -cf archive -b1 a b c
9723 decho 'adding d e f'
9724 tar -vrf archive -b3 d e f
9728 decho 'adding g h i'
9729 tar -vrf archive -b5 g h i
9731 decho 'resulting archive'
9734 at_fn_check_prepare_notrace 'an embedded newline' "append05.at:35"
9739 export TEST_TAR_FORMAT
9740 TAR_OPTIONS="-H gnu"
9744 for f in a b c d e f g h i
9749 decho 'creating archive'
9750 tar -cf archive -b1 a b c
9754 decho 'adding d e f'
9755 tar -vrf archive -b3 d e f
9759 decho 'adding g h i'
9760 tar -vrf archive -b5 g h i
9762 decho 'resulting archive'
9765 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9766 at_status=$? at_failed=false
9768 echo >>"$at_stderr"; $as_echo "creating archive
9773 $at_diff - "$at_stderr" || at_failed=:
9774 echo >>"$at_stdout"; $as_echo "creating archive
9804 $at_diff - "$at_stdout" || at_failed=:
9805 at_fn_check_status 0 $at_status "$at_srcdir/append05.at:35"
9806 $at_failed && at_fn_log_failure
9813 $at_times_p && times >"$at_times_file"
9814 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9815 read at_status <"$at_status_file"
9818 at_fn_group_banner 39 'xform-h.at:30' \
9819 "transforming hard links on create" " " 6
9821 test -f $XFAILFILE && at_xfail=yes
9823 $as_echo "39. $at_setup_line: testing $at_desc ..."
9833 $as_echo "$at_srcdir/xform-h.at:39:
9837 export TEST_TAR_FORMAT
9838 TAR_OPTIONS=\"-H v7\"
9843 echo \"hello\" > basedir/test
9844 ln basedir/test basedir/test_link
9847 echo \"Default transform scope\"
9848 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
9849 tar tvf archive | sed -n 's/.*test_link link to //p'
9852 echo \"Transforming hard links\"
9853 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
9854 tar tvf archive | sed -n 's/.*test_link link to //p'
9857 echo \"Not transforming hard links\"
9858 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
9859 tar tvf archive | sed -n 's/.*test_link link to //p'
9862 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
9867 export TEST_TAR_FORMAT
9873 echo "hello" > basedir/test
9874 ln basedir/test basedir/test_link
9877 echo "Default transform scope"
9878 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
9879 tar tvf archive | sed -n 's/.*test_link link to //p'
9882 echo "Transforming hard links"
9883 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
9884 tar tvf archive | sed -n 's/.*test_link link to //p'
9887 echo "Not transforming hard links"
9888 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
9889 tar tvf archive | sed -n 's/.*test_link link to //p'
9892 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9893 at_status=$? at_failed=false
9895 at_fn_diff_devnull "$at_stderr" || at_failed=:
9896 echo >>"$at_stdout"; $as_echo "Default transform scope
9898 Transforming hard links
9900 Not transforming hard links
9903 $at_diff - "$at_stdout" || at_failed=:
9904 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
9905 $at_failed && at_fn_log_failure
9909 $as_echo "$at_srcdir/xform-h.at:39:
9912 TEST_TAR_FORMAT=oldgnu
9913 export TEST_TAR_FORMAT
9914 TAR_OPTIONS=\"-H oldgnu\"
9919 echo \"hello\" > basedir/test
9920 ln basedir/test basedir/test_link
9923 echo \"Default transform scope\"
9924 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
9925 tar tvf archive | sed -n 's/.*test_link link to //p'
9928 echo \"Transforming hard links\"
9929 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
9930 tar tvf archive | sed -n 's/.*test_link link to //p'
9933 echo \"Not transforming hard links\"
9934 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
9935 tar tvf archive | sed -n 's/.*test_link link to //p'
9938 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
9942 TEST_TAR_FORMAT=oldgnu
9943 export TEST_TAR_FORMAT
9944 TAR_OPTIONS="-H oldgnu"
9949 echo "hello" > basedir/test
9950 ln basedir/test basedir/test_link
9953 echo "Default transform scope"
9954 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
9955 tar tvf archive | sed -n 's/.*test_link link to //p'
9958 echo "Transforming hard links"
9959 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
9960 tar tvf archive | sed -n 's/.*test_link link to //p'
9963 echo "Not transforming hard links"
9964 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
9965 tar tvf archive | sed -n 's/.*test_link link to //p'
9968 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9969 at_status=$? at_failed=false
9971 at_fn_diff_devnull "$at_stderr" || at_failed=:
9972 echo >>"$at_stdout"; $as_echo "Default transform scope
9974 Transforming hard links
9976 Not transforming hard links
9979 $at_diff - "$at_stdout" || at_failed=:
9980 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
9981 $at_failed && at_fn_log_failure
9985 $as_echo "$at_srcdir/xform-h.at:39:
9988 TEST_TAR_FORMAT=ustar
9989 export TEST_TAR_FORMAT
9990 TAR_OPTIONS=\"-H ustar\"
9995 echo \"hello\" > basedir/test
9996 ln basedir/test basedir/test_link
9999 echo \"Default transform scope\"
10000 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
10001 tar tvf archive | sed -n 's/.*test_link link to //p'
10004 echo \"Transforming hard links\"
10005 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
10006 tar tvf archive | sed -n 's/.*test_link link to //p'
10009 echo \"Not transforming hard links\"
10010 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
10011 tar tvf archive | sed -n 's/.*test_link link to //p'
10014 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
10018 TEST_TAR_FORMAT=ustar
10019 export TEST_TAR_FORMAT
10020 TAR_OPTIONS="-H ustar"
10025 echo "hello" > basedir/test
10026 ln basedir/test basedir/test_link
10029 echo "Default transform scope"
10030 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
10031 tar tvf archive | sed -n 's/.*test_link link to //p'
10034 echo "Transforming hard links"
10035 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
10036 tar tvf archive | sed -n 's/.*test_link link to //p'
10039 echo "Not transforming hard links"
10040 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
10041 tar tvf archive | sed -n 's/.*test_link link to //p'
10044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10045 at_status=$? at_failed=false
10047 at_fn_diff_devnull "$at_stderr" || at_failed=:
10048 echo >>"$at_stdout"; $as_echo "Default transform scope
10050 Transforming hard links
10052 Not transforming hard links
10055 $at_diff - "$at_stdout" || at_failed=:
10056 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
10057 $at_failed && at_fn_log_failure
10061 $as_echo "$at_srcdir/xform-h.at:39:
10064 TEST_TAR_FORMAT=posix
10065 export TEST_TAR_FORMAT
10066 TAR_OPTIONS=\"-H posix\"
10071 echo \"hello\" > basedir/test
10072 ln basedir/test basedir/test_link
10075 echo \"Default transform scope\"
10076 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
10077 tar tvf archive | sed -n 's/.*test_link link to //p'
10080 echo \"Transforming hard links\"
10081 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
10082 tar tvf archive | sed -n 's/.*test_link link to //p'
10085 echo \"Not transforming hard links\"
10086 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
10087 tar tvf archive | sed -n 's/.*test_link link to //p'
10090 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
10094 TEST_TAR_FORMAT=posix
10095 export TEST_TAR_FORMAT
10096 TAR_OPTIONS="-H posix"
10101 echo "hello" > basedir/test
10102 ln basedir/test basedir/test_link
10105 echo "Default transform scope"
10106 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
10107 tar tvf archive | sed -n 's/.*test_link link to //p'
10110 echo "Transforming hard links"
10111 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
10112 tar tvf archive | sed -n 's/.*test_link link to //p'
10115 echo "Not transforming hard links"
10116 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
10117 tar tvf archive | sed -n 's/.*test_link link to //p'
10120 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10121 at_status=$? at_failed=false
10123 at_fn_diff_devnull "$at_stderr" || at_failed=:
10124 echo >>"$at_stdout"; $as_echo "Default transform scope
10126 Transforming hard links
10128 Not transforming hard links
10131 $at_diff - "$at_stdout" || at_failed=:
10132 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
10133 $at_failed && at_fn_log_failure
10137 $as_echo "$at_srcdir/xform-h.at:39:
10140 TEST_TAR_FORMAT=gnu
10141 export TEST_TAR_FORMAT
10142 TAR_OPTIONS=\"-H gnu\"
10147 echo \"hello\" > basedir/test
10148 ln basedir/test basedir/test_link
10151 echo \"Default transform scope\"
10152 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
10153 tar tvf archive | sed -n 's/.*test_link link to //p'
10156 echo \"Transforming hard links\"
10157 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
10158 tar tvf archive | sed -n 's/.*test_link link to //p'
10161 echo \"Not transforming hard links\"
10162 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
10163 tar tvf archive | sed -n 's/.*test_link link to //p'
10166 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
10170 TEST_TAR_FORMAT=gnu
10171 export TEST_TAR_FORMAT
10172 TAR_OPTIONS="-H gnu"
10177 echo "hello" > basedir/test
10178 ln basedir/test basedir/test_link
10181 echo "Default transform scope"
10182 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
10183 tar tvf archive | sed -n 's/.*test_link link to //p'
10186 echo "Transforming hard links"
10187 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
10188 tar tvf archive | sed -n 's/.*test_link link to //p'
10191 echo "Not transforming hard links"
10192 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
10193 tar tvf archive | sed -n 's/.*test_link link to //p'
10196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10197 at_status=$? at_failed=false
10199 at_fn_diff_devnull "$at_stderr" || at_failed=:
10200 echo >>"$at_stdout"; $as_echo "Default transform scope
10202 Transforming hard links
10204 Not transforming hard links
10207 $at_diff - "$at_stdout" || at_failed=:
10208 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
10209 $at_failed && at_fn_log_failure
10218 $at_times_p && times >"$at_times_file"
10219 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10220 read at_status <"$at_status_file"
10223 at_fn_group_banner 40 'xform01.at:26' \
10224 "transformations and GNU volume labels" " " 6
10226 test -f $XFAILFILE && at_xfail=yes
10228 $as_echo "40. $at_setup_line: testing $at_desc ..."
10236 $as_echo "$at_srcdir/xform01.at:29:
10239 TEST_TAR_FORMAT=gnu
10240 export TEST_TAR_FORMAT
10241 TAR_OPTIONS=\"-H gnu\"
10245 genfile --file file
10246 tar -cf archive.tar -V /label/ file
10249 at_fn_check_prepare_notrace 'an embedded newline' "xform01.at:29"
10253 TEST_TAR_FORMAT=gnu
10254 export TEST_TAR_FORMAT
10255 TAR_OPTIONS="-H gnu"
10259 genfile --file file
10260 tar -cf archive.tar -V /label/ file
10263 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10264 at_status=$? at_failed=false
10266 at_fn_diff_devnull "$at_stderr" || at_failed=:
10267 echo >>"$at_stdout"; $as_echo "/label/
10270 $at_diff - "$at_stdout" || at_failed=:
10271 at_fn_check_status 0 $at_status "$at_srcdir/xform01.at:29"
10272 $at_failed && at_fn_log_failure
10279 $at_times_p && times >"$at_times_file"
10280 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10281 read at_status <"$at_status_file"
10284 at_fn_group_banner 41 'xform02.at:21' \
10285 "transforming escaped delimiters on create" " " 6
10287 test -f $XFAILFILE && at_xfail=yes
10289 $as_echo "41. $at_setup_line: testing $at_desc ..."
10297 $as_echo "$at_srcdir/xform02.at:24:
10301 export TEST_TAR_FORMAT
10302 TAR_OPTIONS=\"-H v7\"
10306 genfile --file file
10307 tar cvf /dev/null file \\
10308 --transform='s/file/other\\/name/' \\
10309 --show-transformed-name
10311 at_fn_check_prepare_notrace 'an embedded newline' "xform02.at:24"
10316 export TEST_TAR_FORMAT
10317 TAR_OPTIONS="-H v7"
10321 genfile --file file
10322 tar cvf /dev/null file \
10323 --transform='s/file/other\/name/' \
10324 --show-transformed-name
10326 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10327 at_status=$? at_failed=false
10329 at_fn_diff_devnull "$at_stderr" || at_failed=:
10330 echo >>"$at_stdout"; $as_echo "other/name
10332 $at_diff - "$at_stdout" || at_failed=:
10333 at_fn_check_status 0 $at_status "$at_srcdir/xform02.at:24"
10334 $at_failed && at_fn_log_failure
10338 $as_echo "$at_srcdir/xform02.at:24:
10341 TEST_TAR_FORMAT=oldgnu
10342 export TEST_TAR_FORMAT
10343 TAR_OPTIONS=\"-H oldgnu\"
10347 genfile --file file
10348 tar cvf /dev/null file \\
10349 --transform='s/file/other\\/name/' \\
10350 --show-transformed-name
10352 at_fn_check_prepare_notrace 'an embedded newline' "xform02.at:24"
10356 TEST_TAR_FORMAT=oldgnu
10357 export TEST_TAR_FORMAT
10358 TAR_OPTIONS="-H oldgnu"
10362 genfile --file file
10363 tar cvf /dev/null file \
10364 --transform='s/file/other\/name/' \
10365 --show-transformed-name
10367 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10368 at_status=$? at_failed=false
10370 at_fn_diff_devnull "$at_stderr" || at_failed=:
10371 echo >>"$at_stdout"; $as_echo "other/name
10373 $at_diff - "$at_stdout" || at_failed=:
10374 at_fn_check_status 0 $at_status "$at_srcdir/xform02.at:24"
10375 $at_failed && at_fn_log_failure
10379 $as_echo "$at_srcdir/xform02.at:24:
10382 TEST_TAR_FORMAT=ustar
10383 export TEST_TAR_FORMAT
10384 TAR_OPTIONS=\"-H ustar\"
10388 genfile --file file
10389 tar cvf /dev/null file \\
10390 --transform='s/file/other\\/name/' \\
10391 --show-transformed-name
10393 at_fn_check_prepare_notrace 'an embedded newline' "xform02.at:24"
10397 TEST_TAR_FORMAT=ustar
10398 export TEST_TAR_FORMAT
10399 TAR_OPTIONS="-H ustar"
10403 genfile --file file
10404 tar cvf /dev/null file \
10405 --transform='s/file/other\/name/' \
10406 --show-transformed-name
10408 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10409 at_status=$? at_failed=false
10411 at_fn_diff_devnull "$at_stderr" || at_failed=:
10412 echo >>"$at_stdout"; $as_echo "other/name
10414 $at_diff - "$at_stdout" || at_failed=:
10415 at_fn_check_status 0 $at_status "$at_srcdir/xform02.at:24"
10416 $at_failed && at_fn_log_failure
10420 $as_echo "$at_srcdir/xform02.at:24:
10423 TEST_TAR_FORMAT=posix
10424 export TEST_TAR_FORMAT
10425 TAR_OPTIONS=\"-H posix\"
10429 genfile --file file
10430 tar cvf /dev/null file \\
10431 --transform='s/file/other\\/name/' \\
10432 --show-transformed-name
10434 at_fn_check_prepare_notrace 'an embedded newline' "xform02.at:24"
10438 TEST_TAR_FORMAT=posix
10439 export TEST_TAR_FORMAT
10440 TAR_OPTIONS="-H posix"
10444 genfile --file file
10445 tar cvf /dev/null file \
10446 --transform='s/file/other\/name/' \
10447 --show-transformed-name
10449 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10450 at_status=$? at_failed=false
10452 at_fn_diff_devnull "$at_stderr" || at_failed=:
10453 echo >>"$at_stdout"; $as_echo "other/name
10455 $at_diff - "$at_stdout" || at_failed=:
10456 at_fn_check_status 0 $at_status "$at_srcdir/xform02.at:24"
10457 $at_failed && at_fn_log_failure
10461 $as_echo "$at_srcdir/xform02.at:24:
10464 TEST_TAR_FORMAT=gnu
10465 export TEST_TAR_FORMAT
10466 TAR_OPTIONS=\"-H gnu\"
10470 genfile --file file
10471 tar cvf /dev/null file \\
10472 --transform='s/file/other\\/name/' \\
10473 --show-transformed-name
10475 at_fn_check_prepare_notrace 'an embedded newline' "xform02.at:24"
10479 TEST_TAR_FORMAT=gnu
10480 export TEST_TAR_FORMAT
10481 TAR_OPTIONS="-H gnu"
10485 genfile --file file
10486 tar cvf /dev/null file \
10487 --transform='s/file/other\/name/' \
10488 --show-transformed-name
10490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10491 at_status=$? at_failed=false
10493 at_fn_diff_devnull "$at_stderr" || at_failed=:
10494 echo >>"$at_stdout"; $as_echo "other/name
10496 $at_diff - "$at_stdout" || at_failed=:
10497 at_fn_check_status 0 $at_status "$at_srcdir/xform02.at:24"
10498 $at_failed && at_fn_log_failure
10505 $at_times_p && times >"$at_times_file"
10506 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10507 read at_status <"$at_status_file"
10510 at_fn_group_banner 42 'exclude.at:23' \
10513 test -f $XFAILFILE && at_xfail=yes
10515 $as_echo "42. $at_setup_line: testing $at_desc ..."
10523 $as_echo "$at_srcdir/exclude.at:26:
10526 TEST_TAR_FORMAT=ustar
10527 export TEST_TAR_FORMAT
10528 TAR_OPTIONS=\"-H ustar\"
10533 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10537 echo blues > dir/blues
10538 echo jazz > dir/jazz
10540 echo tagfile > dir/folk/tagfile
10541 echo sanjuan > dir/folk/sanjuan
10543 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
10544 echo \"test\" > dir/rock/file
10546 for option in exclude-caches exclude-caches-under exclude-caches-all
10548 echo OPTION \$option
10549 tar -cf archive.tar --\$option -v dir 2>err | sort
10552 tar tf archive.tar | sort
10555 for option in exclude-tag exclude-tag-under exclude-tag-all
10557 echo OPTION \$option
10558 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
10561 tar tf archive.tar | sort
10564 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude.at:26"
10568 TEST_TAR_FORMAT=ustar
10569 export TEST_TAR_FORMAT
10570 TAR_OPTIONS="-H ustar"
10575 test -z "`sort < /dev/null 2>&1`" || exit 77
10579 echo blues > dir/blues
10580 echo jazz > dir/jazz
10582 echo tagfile > dir/folk/tagfile
10583 echo sanjuan > dir/folk/sanjuan
10585 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
10586 echo "test" > dir/rock/file
10588 for option in exclude-caches exclude-caches-under exclude-caches-all
10590 echo OPTION $option
10591 tar -cf archive.tar --$option -v dir 2>err | sort
10594 tar tf archive.tar | sort
10597 for option in exclude-tag exclude-tag-under exclude-tag-all
10599 echo OPTION $option
10600 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
10603 tar tf archive.tar | sort
10606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10607 at_status=$? at_failed=false
10609 at_fn_diff_devnull "$at_stderr" || at_failed=:
10610 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
10618 dir/rock/CACHEDIR.TAG
10619 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
10628 dir/rock/CACHEDIR.TAG
10629 OPTION exclude-caches-under
10637 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
10646 OPTION exclude-caches-all
10653 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
10668 dir/rock/CACHEDIR.TAG
10670 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
10678 dir/rock/CACHEDIR.TAG
10680 OPTION exclude-tag-under
10686 dir/rock/CACHEDIR.TAG
10688 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
10695 dir/rock/CACHEDIR.TAG
10697 OPTION exclude-tag-all
10702 dir/rock/CACHEDIR.TAG
10704 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
10710 dir/rock/CACHEDIR.TAG
10713 $at_diff - "$at_stdout" || at_failed=:
10714 at_fn_check_status 0 $at_status "$at_srcdir/exclude.at:26"
10715 $at_failed && at_fn_log_failure
10722 $at_times_p && times >"$at_times_file"
10723 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10724 read at_status <"$at_status_file"
10727 at_fn_group_banner 43 'exclude01.at:19' \
10728 "exclude wildcards" " " 7
10730 test -f $XFAILFILE && at_xfail=yes
10732 $as_echo "43. $at_setup_line: testing $at_desc ..."
10740 $as_echo "$at_srcdir/exclude01.at:22:
10744 export TEST_TAR_FORMAT
10745 TAR_OPTIONS=\"-H v7\"
10750 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10754 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
10755 touch testdir/dir1/file1
10756 touch testdir/dir1/\\*
10757 touch testdir/dir2/file2
10758 touch testdir/dir2/\\*
10759 touch testdir/dir3/file3
10760 touch testdir/dir3/\\*
10762 tar cf archive --exclude=testdir/dir1/\\* \\
10764 --exclude=testdir/dir2/\\* \\
10766 --exclude=testdir/dir3/\\* \\
10768 tar tf archive | sort
10771 tar cf archive testdir
10772 tar t \"testdir/dir1/*\" -f archive | sort
10775 tar cf archive testdir/dir1
10776 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
10779 tar cf archive testdir
10780 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
10784 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
10789 export TEST_TAR_FORMAT
10790 TAR_OPTIONS="-H v7"
10795 test -z "`sort < /dev/null 2>&1`" || exit 77
10799 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
10800 touch testdir/dir1/file1
10801 touch testdir/dir1/\*
10802 touch testdir/dir2/file2
10803 touch testdir/dir2/\*
10804 touch testdir/dir3/file3
10805 touch testdir/dir3/\*
10807 tar cf archive --exclude=testdir/dir1/\* \
10809 --exclude=testdir/dir2/\* \
10811 --exclude=testdir/dir3/\* \
10813 tar tf archive | sort
10816 tar cf archive testdir
10817 tar t "testdir/dir1/*" -f archive | sort
10820 tar cf archive testdir/dir1
10821 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
10824 tar cf archive testdir
10825 tar t --wildcards "testdir/dir1/*" -f archive | sort
10829 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10830 at_status=$? at_failed=false
10832 at_fn_diff_devnull "$at_stderr" || at_failed=:
10833 echo >>"$at_stdout"; $as_echo "testdir/
10846 $at_diff - "$at_stdout" || at_failed=:
10847 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
10848 $at_failed && at_fn_log_failure
10852 $as_echo "$at_srcdir/exclude01.at:22:
10855 TEST_TAR_FORMAT=oldgnu
10856 export TEST_TAR_FORMAT
10857 TAR_OPTIONS=\"-H oldgnu\"
10862 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10866 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
10867 touch testdir/dir1/file1
10868 touch testdir/dir1/\\*
10869 touch testdir/dir2/file2
10870 touch testdir/dir2/\\*
10871 touch testdir/dir3/file3
10872 touch testdir/dir3/\\*
10874 tar cf archive --exclude=testdir/dir1/\\* \\
10876 --exclude=testdir/dir2/\\* \\
10878 --exclude=testdir/dir3/\\* \\
10880 tar tf archive | sort
10883 tar cf archive testdir
10884 tar t \"testdir/dir1/*\" -f archive | sort
10887 tar cf archive testdir/dir1
10888 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
10891 tar cf archive testdir
10892 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
10896 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
10900 TEST_TAR_FORMAT=oldgnu
10901 export TEST_TAR_FORMAT
10902 TAR_OPTIONS="-H oldgnu"
10907 test -z "`sort < /dev/null 2>&1`" || exit 77
10911 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
10912 touch testdir/dir1/file1
10913 touch testdir/dir1/\*
10914 touch testdir/dir2/file2
10915 touch testdir/dir2/\*
10916 touch testdir/dir3/file3
10917 touch testdir/dir3/\*
10919 tar cf archive --exclude=testdir/dir1/\* \
10921 --exclude=testdir/dir2/\* \
10923 --exclude=testdir/dir3/\* \
10925 tar tf archive | sort
10928 tar cf archive testdir
10929 tar t "testdir/dir1/*" -f archive | sort
10932 tar cf archive testdir/dir1
10933 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
10936 tar cf archive testdir
10937 tar t --wildcards "testdir/dir1/*" -f archive | sort
10941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10942 at_status=$? at_failed=false
10944 at_fn_diff_devnull "$at_stderr" || at_failed=:
10945 echo >>"$at_stdout"; $as_echo "testdir/
10958 $at_diff - "$at_stdout" || at_failed=:
10959 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
10960 $at_failed && at_fn_log_failure
10964 $as_echo "$at_srcdir/exclude01.at:22:
10967 TEST_TAR_FORMAT=ustar
10968 export TEST_TAR_FORMAT
10969 TAR_OPTIONS=\"-H ustar\"
10974 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10978 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
10979 touch testdir/dir1/file1
10980 touch testdir/dir1/\\*
10981 touch testdir/dir2/file2
10982 touch testdir/dir2/\\*
10983 touch testdir/dir3/file3
10984 touch testdir/dir3/\\*
10986 tar cf archive --exclude=testdir/dir1/\\* \\
10988 --exclude=testdir/dir2/\\* \\
10990 --exclude=testdir/dir3/\\* \\
10992 tar tf archive | sort
10995 tar cf archive testdir
10996 tar t \"testdir/dir1/*\" -f archive | sort
10999 tar cf archive testdir/dir1
11000 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
11003 tar cf archive testdir
11004 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
11008 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
11012 TEST_TAR_FORMAT=ustar
11013 export TEST_TAR_FORMAT
11014 TAR_OPTIONS="-H ustar"
11019 test -z "`sort < /dev/null 2>&1`" || exit 77
11023 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11024 touch testdir/dir1/file1
11025 touch testdir/dir1/\*
11026 touch testdir/dir2/file2
11027 touch testdir/dir2/\*
11028 touch testdir/dir3/file3
11029 touch testdir/dir3/\*
11031 tar cf archive --exclude=testdir/dir1/\* \
11033 --exclude=testdir/dir2/\* \
11035 --exclude=testdir/dir3/\* \
11037 tar tf archive | sort
11040 tar cf archive testdir
11041 tar t "testdir/dir1/*" -f archive | sort
11044 tar cf archive testdir/dir1
11045 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
11048 tar cf archive testdir
11049 tar t --wildcards "testdir/dir1/*" -f archive | sort
11053 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11054 at_status=$? at_failed=false
11056 at_fn_diff_devnull "$at_stderr" || at_failed=:
11057 echo >>"$at_stdout"; $as_echo "testdir/
11070 $at_diff - "$at_stdout" || at_failed=:
11071 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
11072 $at_failed && at_fn_log_failure
11076 $as_echo "$at_srcdir/exclude01.at:22:
11079 TEST_TAR_FORMAT=posix
11080 export TEST_TAR_FORMAT
11081 TAR_OPTIONS=\"-H posix\"
11086 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11090 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11091 touch testdir/dir1/file1
11092 touch testdir/dir1/\\*
11093 touch testdir/dir2/file2
11094 touch testdir/dir2/\\*
11095 touch testdir/dir3/file3
11096 touch testdir/dir3/\\*
11098 tar cf archive --exclude=testdir/dir1/\\* \\
11100 --exclude=testdir/dir2/\\* \\
11102 --exclude=testdir/dir3/\\* \\
11104 tar tf archive | sort
11107 tar cf archive testdir
11108 tar t \"testdir/dir1/*\" -f archive | sort
11111 tar cf archive testdir/dir1
11112 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
11115 tar cf archive testdir
11116 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
11120 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
11124 TEST_TAR_FORMAT=posix
11125 export TEST_TAR_FORMAT
11126 TAR_OPTIONS="-H posix"
11131 test -z "`sort < /dev/null 2>&1`" || exit 77
11135 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11136 touch testdir/dir1/file1
11137 touch testdir/dir1/\*
11138 touch testdir/dir2/file2
11139 touch testdir/dir2/\*
11140 touch testdir/dir3/file3
11141 touch testdir/dir3/\*
11143 tar cf archive --exclude=testdir/dir1/\* \
11145 --exclude=testdir/dir2/\* \
11147 --exclude=testdir/dir3/\* \
11149 tar tf archive | sort
11152 tar cf archive testdir
11153 tar t "testdir/dir1/*" -f archive | sort
11156 tar cf archive testdir/dir1
11157 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
11160 tar cf archive testdir
11161 tar t --wildcards "testdir/dir1/*" -f archive | sort
11165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11166 at_status=$? at_failed=false
11168 at_fn_diff_devnull "$at_stderr" || at_failed=:
11169 echo >>"$at_stdout"; $as_echo "testdir/
11182 $at_diff - "$at_stdout" || at_failed=:
11183 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
11184 $at_failed && at_fn_log_failure
11188 $as_echo "$at_srcdir/exclude01.at:22:
11191 TEST_TAR_FORMAT=gnu
11192 export TEST_TAR_FORMAT
11193 TAR_OPTIONS=\"-H gnu\"
11198 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11202 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11203 touch testdir/dir1/file1
11204 touch testdir/dir1/\\*
11205 touch testdir/dir2/file2
11206 touch testdir/dir2/\\*
11207 touch testdir/dir3/file3
11208 touch testdir/dir3/\\*
11210 tar cf archive --exclude=testdir/dir1/\\* \\
11212 --exclude=testdir/dir2/\\* \\
11214 --exclude=testdir/dir3/\\* \\
11216 tar tf archive | sort
11219 tar cf archive testdir
11220 tar t \"testdir/dir1/*\" -f archive | sort
11223 tar cf archive testdir/dir1
11224 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
11227 tar cf archive testdir
11228 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
11232 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
11236 TEST_TAR_FORMAT=gnu
11237 export TEST_TAR_FORMAT
11238 TAR_OPTIONS="-H gnu"
11243 test -z "`sort < /dev/null 2>&1`" || exit 77
11247 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11248 touch testdir/dir1/file1
11249 touch testdir/dir1/\*
11250 touch testdir/dir2/file2
11251 touch testdir/dir2/\*
11252 touch testdir/dir3/file3
11253 touch testdir/dir3/\*
11255 tar cf archive --exclude=testdir/dir1/\* \
11257 --exclude=testdir/dir2/\* \
11259 --exclude=testdir/dir3/\* \
11261 tar tf archive | sort
11264 tar cf archive testdir
11265 tar t "testdir/dir1/*" -f archive | sort
11268 tar cf archive testdir/dir1
11269 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
11272 tar cf archive testdir
11273 tar t --wildcards "testdir/dir1/*" -f archive | sort
11277 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11278 at_status=$? at_failed=false
11280 at_fn_diff_devnull "$at_stderr" || at_failed=:
11281 echo >>"$at_stdout"; $as_echo "testdir/
11294 $at_diff - "$at_stdout" || at_failed=:
11295 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
11296 $at_failed && at_fn_log_failure
11303 $at_times_p && times >"$at_times_file"
11304 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11305 read at_status <"$at_status_file"
11308 at_fn_group_banner 44 'exclude02.at:19' \
11309 "exclude: anchoring" " " 7
11311 test -f $XFAILFILE && at_xfail=yes
11313 $as_echo "44. $at_setup_line: testing $at_desc ..."
11321 $as_echo "$at_srcdir/exclude02.at:22:
11325 export TEST_TAR_FORMAT
11326 TAR_OPTIONS=\"-H v7\"
11331 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11337 touch testdir/file1.txt
11338 touch testdir/file2
11340 tar cf archive --exclude=\"file1.txt\" \\
11342 tar tf archive | sort
11345 tar cf archive --no-anchored \\
11346 --exclude=\"file1.txt\" \\
11348 tar tf archive | sort
11351 tar cf archive --anchored \\
11352 --exclude=\"file1.txt\" \\
11354 tar tf archive | sort
11357 tar cf archive testdir file1.txt
11358 tar t \"file1.txt\" -f archive | sort
11361 tar t --no-anchored \"file1.txt\" -f archive | sort
11364 tar t --anchored \"file1.txt\" -f archive | sort
11366 rm -rf testdir file1.txt
11369 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
11374 export TEST_TAR_FORMAT
11375 TAR_OPTIONS="-H v7"
11380 test -z "`sort < /dev/null 2>&1`" || exit 77
11386 touch testdir/file1.txt
11387 touch testdir/file2
11389 tar cf archive --exclude="file1.txt" \
11391 tar tf archive | sort
11394 tar cf archive --no-anchored \
11395 --exclude="file1.txt" \
11397 tar tf archive | sort
11400 tar cf archive --anchored \
11401 --exclude="file1.txt" \
11403 tar tf archive | sort
11406 tar cf archive testdir file1.txt
11407 tar t "file1.txt" -f archive | sort
11410 tar t --no-anchored "file1.txt" -f archive | sort
11413 tar t --anchored "file1.txt" -f archive | sort
11415 rm -rf testdir file1.txt
11418 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11419 at_status=$? at_failed=false
11421 at_fn_diff_devnull "$at_stderr" || at_failed=:
11422 echo >>"$at_stdout"; $as_echo "testdir/
11439 $at_diff - "$at_stdout" || at_failed=:
11440 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
11441 $at_failed && at_fn_log_failure
11445 $as_echo "$at_srcdir/exclude02.at:22:
11448 TEST_TAR_FORMAT=oldgnu
11449 export TEST_TAR_FORMAT
11450 TAR_OPTIONS=\"-H oldgnu\"
11455 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11461 touch testdir/file1.txt
11462 touch testdir/file2
11464 tar cf archive --exclude=\"file1.txt\" \\
11466 tar tf archive | sort
11469 tar cf archive --no-anchored \\
11470 --exclude=\"file1.txt\" \\
11472 tar tf archive | sort
11475 tar cf archive --anchored \\
11476 --exclude=\"file1.txt\" \\
11478 tar tf archive | sort
11481 tar cf archive testdir file1.txt
11482 tar t \"file1.txt\" -f archive | sort
11485 tar t --no-anchored \"file1.txt\" -f archive | sort
11488 tar t --anchored \"file1.txt\" -f archive | sort
11490 rm -rf testdir file1.txt
11493 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
11497 TEST_TAR_FORMAT=oldgnu
11498 export TEST_TAR_FORMAT
11499 TAR_OPTIONS="-H oldgnu"
11504 test -z "`sort < /dev/null 2>&1`" || exit 77
11510 touch testdir/file1.txt
11511 touch testdir/file2
11513 tar cf archive --exclude="file1.txt" \
11515 tar tf archive | sort
11518 tar cf archive --no-anchored \
11519 --exclude="file1.txt" \
11521 tar tf archive | sort
11524 tar cf archive --anchored \
11525 --exclude="file1.txt" \
11527 tar tf archive | sort
11530 tar cf archive testdir file1.txt
11531 tar t "file1.txt" -f archive | sort
11534 tar t --no-anchored "file1.txt" -f archive | sort
11537 tar t --anchored "file1.txt" -f archive | sort
11539 rm -rf testdir file1.txt
11542 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11543 at_status=$? at_failed=false
11545 at_fn_diff_devnull "$at_stderr" || at_failed=:
11546 echo >>"$at_stdout"; $as_echo "testdir/
11563 $at_diff - "$at_stdout" || at_failed=:
11564 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
11565 $at_failed && at_fn_log_failure
11569 $as_echo "$at_srcdir/exclude02.at:22:
11572 TEST_TAR_FORMAT=ustar
11573 export TEST_TAR_FORMAT
11574 TAR_OPTIONS=\"-H ustar\"
11579 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11585 touch testdir/file1.txt
11586 touch testdir/file2
11588 tar cf archive --exclude=\"file1.txt\" \\
11590 tar tf archive | sort
11593 tar cf archive --no-anchored \\
11594 --exclude=\"file1.txt\" \\
11596 tar tf archive | sort
11599 tar cf archive --anchored \\
11600 --exclude=\"file1.txt\" \\
11602 tar tf archive | sort
11605 tar cf archive testdir file1.txt
11606 tar t \"file1.txt\" -f archive | sort
11609 tar t --no-anchored \"file1.txt\" -f archive | sort
11612 tar t --anchored \"file1.txt\" -f archive | sort
11614 rm -rf testdir file1.txt
11617 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
11621 TEST_TAR_FORMAT=ustar
11622 export TEST_TAR_FORMAT
11623 TAR_OPTIONS="-H ustar"
11628 test -z "`sort < /dev/null 2>&1`" || exit 77
11634 touch testdir/file1.txt
11635 touch testdir/file2
11637 tar cf archive --exclude="file1.txt" \
11639 tar tf archive | sort
11642 tar cf archive --no-anchored \
11643 --exclude="file1.txt" \
11645 tar tf archive | sort
11648 tar cf archive --anchored \
11649 --exclude="file1.txt" \
11651 tar tf archive | sort
11654 tar cf archive testdir file1.txt
11655 tar t "file1.txt" -f archive | sort
11658 tar t --no-anchored "file1.txt" -f archive | sort
11661 tar t --anchored "file1.txt" -f archive | sort
11663 rm -rf testdir file1.txt
11666 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11667 at_status=$? at_failed=false
11669 at_fn_diff_devnull "$at_stderr" || at_failed=:
11670 echo >>"$at_stdout"; $as_echo "testdir/
11687 $at_diff - "$at_stdout" || at_failed=:
11688 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
11689 $at_failed && at_fn_log_failure
11693 $as_echo "$at_srcdir/exclude02.at:22:
11696 TEST_TAR_FORMAT=posix
11697 export TEST_TAR_FORMAT
11698 TAR_OPTIONS=\"-H posix\"
11703 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11709 touch testdir/file1.txt
11710 touch testdir/file2
11712 tar cf archive --exclude=\"file1.txt\" \\
11714 tar tf archive | sort
11717 tar cf archive --no-anchored \\
11718 --exclude=\"file1.txt\" \\
11720 tar tf archive | sort
11723 tar cf archive --anchored \\
11724 --exclude=\"file1.txt\" \\
11726 tar tf archive | sort
11729 tar cf archive testdir file1.txt
11730 tar t \"file1.txt\" -f archive | sort
11733 tar t --no-anchored \"file1.txt\" -f archive | sort
11736 tar t --anchored \"file1.txt\" -f archive | sort
11738 rm -rf testdir file1.txt
11741 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
11745 TEST_TAR_FORMAT=posix
11746 export TEST_TAR_FORMAT
11747 TAR_OPTIONS="-H posix"
11752 test -z "`sort < /dev/null 2>&1`" || exit 77
11758 touch testdir/file1.txt
11759 touch testdir/file2
11761 tar cf archive --exclude="file1.txt" \
11763 tar tf archive | sort
11766 tar cf archive --no-anchored \
11767 --exclude="file1.txt" \
11769 tar tf archive | sort
11772 tar cf archive --anchored \
11773 --exclude="file1.txt" \
11775 tar tf archive | sort
11778 tar cf archive testdir file1.txt
11779 tar t "file1.txt" -f archive | sort
11782 tar t --no-anchored "file1.txt" -f archive | sort
11785 tar t --anchored "file1.txt" -f archive | sort
11787 rm -rf testdir file1.txt
11790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11791 at_status=$? at_failed=false
11793 at_fn_diff_devnull "$at_stderr" || at_failed=:
11794 echo >>"$at_stdout"; $as_echo "testdir/
11811 $at_diff - "$at_stdout" || at_failed=:
11812 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
11813 $at_failed && at_fn_log_failure
11817 $as_echo "$at_srcdir/exclude02.at:22:
11820 TEST_TAR_FORMAT=gnu
11821 export TEST_TAR_FORMAT
11822 TAR_OPTIONS=\"-H gnu\"
11827 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11833 touch testdir/file1.txt
11834 touch testdir/file2
11836 tar cf archive --exclude=\"file1.txt\" \\
11838 tar tf archive | sort
11841 tar cf archive --no-anchored \\
11842 --exclude=\"file1.txt\" \\
11844 tar tf archive | sort
11847 tar cf archive --anchored \\
11848 --exclude=\"file1.txt\" \\
11850 tar tf archive | sort
11853 tar cf archive testdir file1.txt
11854 tar t \"file1.txt\" -f archive | sort
11857 tar t --no-anchored \"file1.txt\" -f archive | sort
11860 tar t --anchored \"file1.txt\" -f archive | sort
11862 rm -rf testdir file1.txt
11865 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
11869 TEST_TAR_FORMAT=gnu
11870 export TEST_TAR_FORMAT
11871 TAR_OPTIONS="-H gnu"
11876 test -z "`sort < /dev/null 2>&1`" || exit 77
11882 touch testdir/file1.txt
11883 touch testdir/file2
11885 tar cf archive --exclude="file1.txt" \
11887 tar tf archive | sort
11890 tar cf archive --no-anchored \
11891 --exclude="file1.txt" \
11893 tar tf archive | sort
11896 tar cf archive --anchored \
11897 --exclude="file1.txt" \
11899 tar tf archive | sort
11902 tar cf archive testdir file1.txt
11903 tar t "file1.txt" -f archive | sort
11906 tar t --no-anchored "file1.txt" -f archive | sort
11909 tar t --anchored "file1.txt" -f archive | sort
11911 rm -rf testdir file1.txt
11914 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11915 at_status=$? at_failed=false
11917 at_fn_diff_devnull "$at_stderr" || at_failed=:
11918 echo >>"$at_stdout"; $as_echo "testdir/
11935 $at_diff - "$at_stdout" || at_failed=:
11936 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
11937 $at_failed && at_fn_log_failure
11944 $at_times_p && times >"$at_times_file"
11945 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11946 read at_status <"$at_status_file"
11949 at_fn_group_banner 45 'exclude03.at:19' \
11950 "exclude: wildcards match slash" " " 7
11952 test -f $XFAILFILE && at_xfail=yes
11954 $as_echo "45. $at_setup_line: testing $at_desc ..."
11962 $as_echo "$at_srcdir/exclude03.at:22:
11966 export TEST_TAR_FORMAT
11967 TAR_OPTIONS=\"-H v7\"
11972 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11976 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
11977 touch testdir/\\*f\\*1
11978 touch testdir/dir1/file1
11979 touch testdir/dir1/\\*
11980 touch testdir/dir2/file2
11981 touch testdir/dir2/\\*
11982 touch testdir/dir3/file3
11983 touch testdir/dir3/\\*
11985 tar cf archive --exclude='testdir*f*1' \\
11986 --no-wildcards-match-slash \\
11987 --exclude='testdir*f*2' \\
11988 --wildcards-match-slash \\
11989 --exclude='testdir*f*3' \\
11991 tar tf archive | sort
11994 tar cf archive testdir
11995 tar t --wildcards 'testdir/*f*1' -f archive | sort
11998 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12001 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12006 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
12011 export TEST_TAR_FORMAT
12012 TAR_OPTIONS="-H v7"
12017 test -z "`sort < /dev/null 2>&1`" || exit 77
12021 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12022 touch testdir/\*f\*1
12023 touch testdir/dir1/file1
12024 touch testdir/dir1/\*
12025 touch testdir/dir2/file2
12026 touch testdir/dir2/\*
12027 touch testdir/dir3/file3
12028 touch testdir/dir3/\*
12030 tar cf archive --exclude='testdir*f*1' \
12031 --no-wildcards-match-slash \
12032 --exclude='testdir*f*2' \
12033 --wildcards-match-slash \
12034 --exclude='testdir*f*3' \
12036 tar tf archive | sort
12039 tar cf archive testdir
12040 tar t --wildcards 'testdir/*f*1' -f archive | sort
12043 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12046 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12051 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12052 at_status=$? at_failed=false
12054 at_fn_diff_devnull "$at_stderr" || at_failed=:
12055 echo >>"$at_stdout"; $as_echo "testdir/
12072 $at_diff - "$at_stdout" || at_failed=:
12073 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
12074 $at_failed && at_fn_log_failure
12078 $as_echo "$at_srcdir/exclude03.at:22:
12081 TEST_TAR_FORMAT=oldgnu
12082 export TEST_TAR_FORMAT
12083 TAR_OPTIONS=\"-H oldgnu\"
12088 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12092 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12093 touch testdir/\\*f\\*1
12094 touch testdir/dir1/file1
12095 touch testdir/dir1/\\*
12096 touch testdir/dir2/file2
12097 touch testdir/dir2/\\*
12098 touch testdir/dir3/file3
12099 touch testdir/dir3/\\*
12101 tar cf archive --exclude='testdir*f*1' \\
12102 --no-wildcards-match-slash \\
12103 --exclude='testdir*f*2' \\
12104 --wildcards-match-slash \\
12105 --exclude='testdir*f*3' \\
12107 tar tf archive | sort
12110 tar cf archive testdir
12111 tar t --wildcards 'testdir/*f*1' -f archive | sort
12114 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12117 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12122 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
12126 TEST_TAR_FORMAT=oldgnu
12127 export TEST_TAR_FORMAT
12128 TAR_OPTIONS="-H oldgnu"
12133 test -z "`sort < /dev/null 2>&1`" || exit 77
12137 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12138 touch testdir/\*f\*1
12139 touch testdir/dir1/file1
12140 touch testdir/dir1/\*
12141 touch testdir/dir2/file2
12142 touch testdir/dir2/\*
12143 touch testdir/dir3/file3
12144 touch testdir/dir3/\*
12146 tar cf archive --exclude='testdir*f*1' \
12147 --no-wildcards-match-slash \
12148 --exclude='testdir*f*2' \
12149 --wildcards-match-slash \
12150 --exclude='testdir*f*3' \
12152 tar tf archive | sort
12155 tar cf archive testdir
12156 tar t --wildcards 'testdir/*f*1' -f archive | sort
12159 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12162 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12167 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12168 at_status=$? at_failed=false
12170 at_fn_diff_devnull "$at_stderr" || at_failed=:
12171 echo >>"$at_stdout"; $as_echo "testdir/
12188 $at_diff - "$at_stdout" || at_failed=:
12189 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
12190 $at_failed && at_fn_log_failure
12194 $as_echo "$at_srcdir/exclude03.at:22:
12197 TEST_TAR_FORMAT=ustar
12198 export TEST_TAR_FORMAT
12199 TAR_OPTIONS=\"-H ustar\"
12204 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12208 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12209 touch testdir/\\*f\\*1
12210 touch testdir/dir1/file1
12211 touch testdir/dir1/\\*
12212 touch testdir/dir2/file2
12213 touch testdir/dir2/\\*
12214 touch testdir/dir3/file3
12215 touch testdir/dir3/\\*
12217 tar cf archive --exclude='testdir*f*1' \\
12218 --no-wildcards-match-slash \\
12219 --exclude='testdir*f*2' \\
12220 --wildcards-match-slash \\
12221 --exclude='testdir*f*3' \\
12223 tar tf archive | sort
12226 tar cf archive testdir
12227 tar t --wildcards 'testdir/*f*1' -f archive | sort
12230 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12233 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12238 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
12242 TEST_TAR_FORMAT=ustar
12243 export TEST_TAR_FORMAT
12244 TAR_OPTIONS="-H ustar"
12249 test -z "`sort < /dev/null 2>&1`" || exit 77
12253 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12254 touch testdir/\*f\*1
12255 touch testdir/dir1/file1
12256 touch testdir/dir1/\*
12257 touch testdir/dir2/file2
12258 touch testdir/dir2/\*
12259 touch testdir/dir3/file3
12260 touch testdir/dir3/\*
12262 tar cf archive --exclude='testdir*f*1' \
12263 --no-wildcards-match-slash \
12264 --exclude='testdir*f*2' \
12265 --wildcards-match-slash \
12266 --exclude='testdir*f*3' \
12268 tar tf archive | sort
12271 tar cf archive testdir
12272 tar t --wildcards 'testdir/*f*1' -f archive | sort
12275 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12278 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12284 at_status=$? at_failed=false
12286 at_fn_diff_devnull "$at_stderr" || at_failed=:
12287 echo >>"$at_stdout"; $as_echo "testdir/
12304 $at_diff - "$at_stdout" || at_failed=:
12305 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
12306 $at_failed && at_fn_log_failure
12310 $as_echo "$at_srcdir/exclude03.at:22:
12313 TEST_TAR_FORMAT=posix
12314 export TEST_TAR_FORMAT
12315 TAR_OPTIONS=\"-H posix\"
12320 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12324 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12325 touch testdir/\\*f\\*1
12326 touch testdir/dir1/file1
12327 touch testdir/dir1/\\*
12328 touch testdir/dir2/file2
12329 touch testdir/dir2/\\*
12330 touch testdir/dir3/file3
12331 touch testdir/dir3/\\*
12333 tar cf archive --exclude='testdir*f*1' \\
12334 --no-wildcards-match-slash \\
12335 --exclude='testdir*f*2' \\
12336 --wildcards-match-slash \\
12337 --exclude='testdir*f*3' \\
12339 tar tf archive | sort
12342 tar cf archive testdir
12343 tar t --wildcards 'testdir/*f*1' -f archive | sort
12346 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12349 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12354 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
12358 TEST_TAR_FORMAT=posix
12359 export TEST_TAR_FORMAT
12360 TAR_OPTIONS="-H posix"
12365 test -z "`sort < /dev/null 2>&1`" || exit 77
12369 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12370 touch testdir/\*f\*1
12371 touch testdir/dir1/file1
12372 touch testdir/dir1/\*
12373 touch testdir/dir2/file2
12374 touch testdir/dir2/\*
12375 touch testdir/dir3/file3
12376 touch testdir/dir3/\*
12378 tar cf archive --exclude='testdir*f*1' \
12379 --no-wildcards-match-slash \
12380 --exclude='testdir*f*2' \
12381 --wildcards-match-slash \
12382 --exclude='testdir*f*3' \
12384 tar tf archive | sort
12387 tar cf archive testdir
12388 tar t --wildcards 'testdir/*f*1' -f archive | sort
12391 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12394 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12400 at_status=$? at_failed=false
12402 at_fn_diff_devnull "$at_stderr" || at_failed=:
12403 echo >>"$at_stdout"; $as_echo "testdir/
12420 $at_diff - "$at_stdout" || at_failed=:
12421 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
12422 $at_failed && at_fn_log_failure
12426 $as_echo "$at_srcdir/exclude03.at:22:
12429 TEST_TAR_FORMAT=gnu
12430 export TEST_TAR_FORMAT
12431 TAR_OPTIONS=\"-H gnu\"
12436 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12440 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12441 touch testdir/\\*f\\*1
12442 touch testdir/dir1/file1
12443 touch testdir/dir1/\\*
12444 touch testdir/dir2/file2
12445 touch testdir/dir2/\\*
12446 touch testdir/dir3/file3
12447 touch testdir/dir3/\\*
12449 tar cf archive --exclude='testdir*f*1' \\
12450 --no-wildcards-match-slash \\
12451 --exclude='testdir*f*2' \\
12452 --wildcards-match-slash \\
12453 --exclude='testdir*f*3' \\
12455 tar tf archive | sort
12458 tar cf archive testdir
12459 tar t --wildcards 'testdir/*f*1' -f archive | sort
12462 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12465 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12470 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
12474 TEST_TAR_FORMAT=gnu
12475 export TEST_TAR_FORMAT
12476 TAR_OPTIONS="-H gnu"
12481 test -z "`sort < /dev/null 2>&1`" || exit 77
12485 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
12486 touch testdir/\*f\*1
12487 touch testdir/dir1/file1
12488 touch testdir/dir1/\*
12489 touch testdir/dir2/file2
12490 touch testdir/dir2/\*
12491 touch testdir/dir3/file3
12492 touch testdir/dir3/\*
12494 tar cf archive --exclude='testdir*f*1' \
12495 --no-wildcards-match-slash \
12496 --exclude='testdir*f*2' \
12497 --wildcards-match-slash \
12498 --exclude='testdir*f*3' \
12500 tar tf archive | sort
12503 tar cf archive testdir
12504 tar t --wildcards 'testdir/*f*1' -f archive | sort
12507 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
12510 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
12515 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12516 at_status=$? at_failed=false
12518 at_fn_diff_devnull "$at_stderr" || at_failed=:
12519 echo >>"$at_stdout"; $as_echo "testdir/
12536 $at_diff - "$at_stdout" || at_failed=:
12537 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
12538 $at_failed && at_fn_log_failure
12545 $at_times_p && times >"$at_times_file"
12546 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12547 read at_status <"$at_status_file"
12550 at_fn_group_banner 46 'exclude04.at:19' \
12551 "exclude: case insensitive" " " 7
12553 test -f $XFAILFILE && at_xfail=yes
12555 $as_echo "46. $at_setup_line: testing $at_desc ..."
12563 $as_echo "$at_srcdir/exclude04.at:22:
12567 export TEST_TAR_FORMAT
12568 TAR_OPTIONS=\"-H v7\"
12573 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12577 mkdir -p testdir/dir
12578 touch testdir/file1
12579 touch testdir/file2
12580 touch testdir/file3
12581 touch testdir/file4
12582 touch testdir/dir/File1
12583 touch testdir/dir/File2
12584 touch testdir/dir/File3
12585 touch testdir/dir/File4
12587 tar cf archive --exclude=FILE2 \\
12591 --no-ignore-case \\
12595 tar tf archive | sort
12598 tar cf archive testdir
12599 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12602 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12605 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12610 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
12615 export TEST_TAR_FORMAT
12616 TAR_OPTIONS="-H v7"
12621 test -z "`sort < /dev/null 2>&1`" || exit 77
12625 mkdir -p testdir/dir
12626 touch testdir/file1
12627 touch testdir/file2
12628 touch testdir/file3
12629 touch testdir/file4
12630 touch testdir/dir/File1
12631 touch testdir/dir/File2
12632 touch testdir/dir/File3
12633 touch testdir/dir/File4
12635 tar cf archive --exclude=FILE2 \
12643 tar tf archive | sort
12646 tar cf archive testdir
12647 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12650 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12653 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12658 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12659 at_status=$? at_failed=false
12661 at_fn_diff_devnull "$at_stderr" || at_failed=:
12662 echo >>"$at_stdout"; $as_echo "testdir/
12676 $at_diff - "$at_stdout" || at_failed=:
12677 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
12678 $at_failed && at_fn_log_failure
12682 $as_echo "$at_srcdir/exclude04.at:22:
12685 TEST_TAR_FORMAT=oldgnu
12686 export TEST_TAR_FORMAT
12687 TAR_OPTIONS=\"-H oldgnu\"
12692 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12696 mkdir -p testdir/dir
12697 touch testdir/file1
12698 touch testdir/file2
12699 touch testdir/file3
12700 touch testdir/file4
12701 touch testdir/dir/File1
12702 touch testdir/dir/File2
12703 touch testdir/dir/File3
12704 touch testdir/dir/File4
12706 tar cf archive --exclude=FILE2 \\
12710 --no-ignore-case \\
12714 tar tf archive | sort
12717 tar cf archive testdir
12718 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12721 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12724 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12729 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
12733 TEST_TAR_FORMAT=oldgnu
12734 export TEST_TAR_FORMAT
12735 TAR_OPTIONS="-H oldgnu"
12740 test -z "`sort < /dev/null 2>&1`" || exit 77
12744 mkdir -p testdir/dir
12745 touch testdir/file1
12746 touch testdir/file2
12747 touch testdir/file3
12748 touch testdir/file4
12749 touch testdir/dir/File1
12750 touch testdir/dir/File2
12751 touch testdir/dir/File3
12752 touch testdir/dir/File4
12754 tar cf archive --exclude=FILE2 \
12762 tar tf archive | sort
12765 tar cf archive testdir
12766 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12769 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12772 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12778 at_status=$? at_failed=false
12780 at_fn_diff_devnull "$at_stderr" || at_failed=:
12781 echo >>"$at_stdout"; $as_echo "testdir/
12795 $at_diff - "$at_stdout" || at_failed=:
12796 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
12797 $at_failed && at_fn_log_failure
12801 $as_echo "$at_srcdir/exclude04.at:22:
12804 TEST_TAR_FORMAT=ustar
12805 export TEST_TAR_FORMAT
12806 TAR_OPTIONS=\"-H ustar\"
12811 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12815 mkdir -p testdir/dir
12816 touch testdir/file1
12817 touch testdir/file2
12818 touch testdir/file3
12819 touch testdir/file4
12820 touch testdir/dir/File1
12821 touch testdir/dir/File2
12822 touch testdir/dir/File3
12823 touch testdir/dir/File4
12825 tar cf archive --exclude=FILE2 \\
12829 --no-ignore-case \\
12833 tar tf archive | sort
12836 tar cf archive testdir
12837 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12840 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12843 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12848 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
12852 TEST_TAR_FORMAT=ustar
12853 export TEST_TAR_FORMAT
12854 TAR_OPTIONS="-H ustar"
12859 test -z "`sort < /dev/null 2>&1`" || exit 77
12863 mkdir -p testdir/dir
12864 touch testdir/file1
12865 touch testdir/file2
12866 touch testdir/file3
12867 touch testdir/file4
12868 touch testdir/dir/File1
12869 touch testdir/dir/File2
12870 touch testdir/dir/File3
12871 touch testdir/dir/File4
12873 tar cf archive --exclude=FILE2 \
12881 tar tf archive | sort
12884 tar cf archive testdir
12885 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12888 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12891 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12896 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12897 at_status=$? at_failed=false
12899 at_fn_diff_devnull "$at_stderr" || at_failed=:
12900 echo >>"$at_stdout"; $as_echo "testdir/
12914 $at_diff - "$at_stdout" || at_failed=:
12915 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
12916 $at_failed && at_fn_log_failure
12920 $as_echo "$at_srcdir/exclude04.at:22:
12923 TEST_TAR_FORMAT=posix
12924 export TEST_TAR_FORMAT
12925 TAR_OPTIONS=\"-H posix\"
12930 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12934 mkdir -p testdir/dir
12935 touch testdir/file1
12936 touch testdir/file2
12937 touch testdir/file3
12938 touch testdir/file4
12939 touch testdir/dir/File1
12940 touch testdir/dir/File2
12941 touch testdir/dir/File3
12942 touch testdir/dir/File4
12944 tar cf archive --exclude=FILE2 \\
12948 --no-ignore-case \\
12952 tar tf archive | sort
12955 tar cf archive testdir
12956 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
12959 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
12962 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
12967 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
12971 TEST_TAR_FORMAT=posix
12972 export TEST_TAR_FORMAT
12973 TAR_OPTIONS="-H posix"
12978 test -z "`sort < /dev/null 2>&1`" || exit 77
12982 mkdir -p testdir/dir
12983 touch testdir/file1
12984 touch testdir/file2
12985 touch testdir/file3
12986 touch testdir/file4
12987 touch testdir/dir/File1
12988 touch testdir/dir/File2
12989 touch testdir/dir/File3
12990 touch testdir/dir/File4
12992 tar cf archive --exclude=FILE2 \
13000 tar tf archive | sort
13003 tar cf archive testdir
13004 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
13007 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
13010 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
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 "testdir/
13033 $at_diff - "$at_stdout" || at_failed=:
13034 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
13035 $at_failed && at_fn_log_failure
13039 $as_echo "$at_srcdir/exclude04.at:22:
13042 TEST_TAR_FORMAT=gnu
13043 export TEST_TAR_FORMAT
13044 TAR_OPTIONS=\"-H gnu\"
13049 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13053 mkdir -p testdir/dir
13054 touch testdir/file1
13055 touch testdir/file2
13056 touch testdir/file3
13057 touch testdir/file4
13058 touch testdir/dir/File1
13059 touch testdir/dir/File2
13060 touch testdir/dir/File3
13061 touch testdir/dir/File4
13063 tar cf archive --exclude=FILE2 \\
13067 --no-ignore-case \\
13071 tar tf archive | sort
13074 tar cf archive testdir
13075 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
13078 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
13081 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
13086 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
13090 TEST_TAR_FORMAT=gnu
13091 export TEST_TAR_FORMAT
13092 TAR_OPTIONS="-H gnu"
13097 test -z "`sort < /dev/null 2>&1`" || exit 77
13101 mkdir -p testdir/dir
13102 touch testdir/file1
13103 touch testdir/file2
13104 touch testdir/file3
13105 touch testdir/file4
13106 touch testdir/dir/File1
13107 touch testdir/dir/File2
13108 touch testdir/dir/File3
13109 touch testdir/dir/File4
13111 tar cf archive --exclude=FILE2 \
13119 tar tf archive | sort
13122 tar cf archive testdir
13123 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
13126 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
13129 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
13134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13135 at_status=$? at_failed=false
13137 at_fn_diff_devnull "$at_stderr" || at_failed=:
13138 echo >>"$at_stdout"; $as_echo "testdir/
13152 $at_diff - "$at_stdout" || at_failed=:
13153 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
13154 $at_failed && at_fn_log_failure
13161 $at_times_p && times >"$at_times_file"
13162 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13163 read at_status <"$at_status_file"
13166 at_fn_group_banner 47 'exclude05.at:21' \
13167 "exclude: lots of excludes" " " 7
13169 test -f $XFAILFILE && at_xfail=yes
13171 $as_echo "47. $at_setup_line: testing $at_desc ..."
13179 $as_echo "$at_srcdir/exclude05.at:24:
13183 export TEST_TAR_FORMAT
13184 TAR_OPTIONS=\"-H v7\"
13189 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13192 rm -rf testdir exclfile
13194 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
13197 genfile --file \$name
13200 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
13202 tar cf archive --anchored --exclude-from=exclfile \\
13204 tar tf archive | sort
13207 tar cf archive --exclude-from=exclfile \\
13209 tar tf archive | sort
13211 rm -rf testdir exclfile
13214 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
13219 export TEST_TAR_FORMAT
13220 TAR_OPTIONS="-H v7"
13225 test -z "`sort < /dev/null 2>&1`" || exit 77
13228 rm -rf testdir exclfile
13230 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
13233 genfile --file $name
13236 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
13238 tar cf archive --anchored --exclude-from=exclfile \
13240 tar tf archive | sort
13243 tar cf archive --exclude-from=exclfile \
13245 tar tf archive | sort
13247 rm -rf testdir exclfile
13250 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13251 at_status=$? at_failed=false
13253 at_fn_diff_devnull "$at_stderr" || at_failed=:
13254 echo >>"$at_stdout"; $as_echo "testdir/
13264 $at_diff - "$at_stdout" || at_failed=:
13265 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
13266 $at_failed && at_fn_log_failure
13270 $as_echo "$at_srcdir/exclude05.at:24:
13273 TEST_TAR_FORMAT=oldgnu
13274 export TEST_TAR_FORMAT
13275 TAR_OPTIONS=\"-H oldgnu\"
13280 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13283 rm -rf testdir exclfile
13285 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
13288 genfile --file \$name
13291 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
13293 tar cf archive --anchored --exclude-from=exclfile \\
13295 tar tf archive | sort
13298 tar cf archive --exclude-from=exclfile \\
13300 tar tf archive | sort
13302 rm -rf testdir exclfile
13305 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
13309 TEST_TAR_FORMAT=oldgnu
13310 export TEST_TAR_FORMAT
13311 TAR_OPTIONS="-H oldgnu"
13316 test -z "`sort < /dev/null 2>&1`" || exit 77
13319 rm -rf testdir exclfile
13321 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
13324 genfile --file $name
13327 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
13329 tar cf archive --anchored --exclude-from=exclfile \
13331 tar tf archive | sort
13334 tar cf archive --exclude-from=exclfile \
13336 tar tf archive | sort
13338 rm -rf testdir exclfile
13341 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13342 at_status=$? at_failed=false
13344 at_fn_diff_devnull "$at_stderr" || at_failed=:
13345 echo >>"$at_stdout"; $as_echo "testdir/
13355 $at_diff - "$at_stdout" || at_failed=:
13356 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
13357 $at_failed && at_fn_log_failure
13361 $as_echo "$at_srcdir/exclude05.at:24:
13364 TEST_TAR_FORMAT=ustar
13365 export TEST_TAR_FORMAT
13366 TAR_OPTIONS=\"-H ustar\"
13371 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13374 rm -rf testdir exclfile
13376 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
13379 genfile --file \$name
13382 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
13384 tar cf archive --anchored --exclude-from=exclfile \\
13386 tar tf archive | sort
13389 tar cf archive --exclude-from=exclfile \\
13391 tar tf archive | sort
13393 rm -rf testdir exclfile
13396 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
13400 TEST_TAR_FORMAT=ustar
13401 export TEST_TAR_FORMAT
13402 TAR_OPTIONS="-H ustar"
13407 test -z "`sort < /dev/null 2>&1`" || exit 77
13410 rm -rf testdir exclfile
13412 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
13415 genfile --file $name
13418 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
13420 tar cf archive --anchored --exclude-from=exclfile \
13422 tar tf archive | sort
13425 tar cf archive --exclude-from=exclfile \
13427 tar tf archive | sort
13429 rm -rf testdir exclfile
13432 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13433 at_status=$? at_failed=false
13435 at_fn_diff_devnull "$at_stderr" || at_failed=:
13436 echo >>"$at_stdout"; $as_echo "testdir/
13446 $at_diff - "$at_stdout" || at_failed=:
13447 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
13448 $at_failed && at_fn_log_failure
13452 $as_echo "$at_srcdir/exclude05.at:24:
13455 TEST_TAR_FORMAT=posix
13456 export TEST_TAR_FORMAT
13457 TAR_OPTIONS=\"-H posix\"
13462 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13465 rm -rf testdir exclfile
13467 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
13470 genfile --file \$name
13473 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
13475 tar cf archive --anchored --exclude-from=exclfile \\
13477 tar tf archive | sort
13480 tar cf archive --exclude-from=exclfile \\
13482 tar tf archive | sort
13484 rm -rf testdir exclfile
13487 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
13491 TEST_TAR_FORMAT=posix
13492 export TEST_TAR_FORMAT
13493 TAR_OPTIONS="-H posix"
13498 test -z "`sort < /dev/null 2>&1`" || exit 77
13501 rm -rf testdir exclfile
13503 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
13506 genfile --file $name
13509 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
13511 tar cf archive --anchored --exclude-from=exclfile \
13513 tar tf archive | sort
13516 tar cf archive --exclude-from=exclfile \
13518 tar tf archive | sort
13520 rm -rf testdir exclfile
13523 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13524 at_status=$? at_failed=false
13526 at_fn_diff_devnull "$at_stderr" || at_failed=:
13527 echo >>"$at_stdout"; $as_echo "testdir/
13537 $at_diff - "$at_stdout" || at_failed=:
13538 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
13539 $at_failed && at_fn_log_failure
13543 $as_echo "$at_srcdir/exclude05.at:24:
13546 TEST_TAR_FORMAT=gnu
13547 export TEST_TAR_FORMAT
13548 TAR_OPTIONS=\"-H gnu\"
13553 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
13556 rm -rf testdir exclfile
13558 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
13561 genfile --file \$name
13564 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
13566 tar cf archive --anchored --exclude-from=exclfile \\
13568 tar tf archive | sort
13571 tar cf archive --exclude-from=exclfile \\
13573 tar tf archive | sort
13575 rm -rf testdir exclfile
13578 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
13582 TEST_TAR_FORMAT=gnu
13583 export TEST_TAR_FORMAT
13584 TAR_OPTIONS="-H gnu"
13589 test -z "`sort < /dev/null 2>&1`" || exit 77
13592 rm -rf testdir exclfile
13594 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
13597 genfile --file $name
13600 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
13602 tar cf archive --anchored --exclude-from=exclfile \
13604 tar tf archive | sort
13607 tar cf archive --exclude-from=exclfile \
13609 tar tf archive | sort
13611 rm -rf testdir exclfile
13614 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13615 at_status=$? at_failed=false
13617 at_fn_diff_devnull "$at_stderr" || at_failed=:
13618 echo >>"$at_stdout"; $as_echo "testdir/
13628 $at_diff - "$at_stdout" || at_failed=:
13629 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
13630 $at_failed && at_fn_log_failure
13637 $at_times_p && times >"$at_times_file"
13638 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13639 read at_status <"$at_status_file"
13642 at_fn_group_banner 48 'exclude06.at:26' \
13643 "exclude: long files in pax archives" " " 7
13645 test -f $XFAILFILE && at_xfail=yes
13647 $as_echo "48. $at_setup_line: testing $at_desc ..."
13657 $as_echo "$at_srcdir/exclude06.at:31:
13660 TEST_TAR_FORMAT=pax
13661 export TEST_TAR_FORMAT
13662 TAR_OPTIONS=\"-H pax\"
13667 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
13668 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
13669 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
13671 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
13673 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
13676 at_fn_check_prepare_notrace 'an embedded newline' "exclude06.at:31"
13680 TEST_TAR_FORMAT=pax
13681 export TEST_TAR_FORMAT
13682 TAR_OPTIONS="-H pax"
13687 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
13688 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
13689 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
13691 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
13693 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
13696 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13697 at_status=$? at_failed=false
13699 at_fn_diff_devnull "$at_stderr" || at_failed=:
13700 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
13702 $at_diff - "$at_stdout" || at_failed=:
13703 at_fn_check_status 0 $at_status "$at_srcdir/exclude06.at:31"
13704 $at_failed && at_fn_log_failure
13712 $at_times_p && times >"$at_times_file"
13713 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13714 read at_status <"$at_status_file"
13717 at_fn_group_banner 49 'exclude07.at:19' \
13718 "exclude: --exclude-backups option" " " 7
13720 test -f $XFAILFILE && at_xfail=yes
13722 $as_echo "49. $at_setup_line: testing $at_desc ..."
13730 $as_echo "$at_srcdir/exclude07.at:22:
13734 export TEST_TAR_FORMAT
13735 TAR_OPTIONS=\"-H v7\"
13740 genfile --file dir/file
13741 genfile --file dir/file~
13742 genfile --file \"dir/.#file\"
13743 genfile --file \"dir/#file#\"
13745 tar -v -c -f archive --exclude-backups dir
13747 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
13752 export TEST_TAR_FORMAT
13753 TAR_OPTIONS="-H v7"
13758 genfile --file dir/file
13759 genfile --file dir/file~
13760 genfile --file "dir/.#file"
13761 genfile --file "dir/#file#"
13763 tar -v -c -f archive --exclude-backups dir
13765 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13766 at_status=$? at_failed=false
13768 at_fn_diff_devnull "$at_stderr" || at_failed=:
13769 echo >>"$at_stdout"; $as_echo "dir/
13772 $at_diff - "$at_stdout" || at_failed=:
13773 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
13774 $at_failed && at_fn_log_failure
13778 $as_echo "$at_srcdir/exclude07.at:22:
13781 TEST_TAR_FORMAT=oldgnu
13782 export TEST_TAR_FORMAT
13783 TAR_OPTIONS=\"-H oldgnu\"
13788 genfile --file dir/file
13789 genfile --file dir/file~
13790 genfile --file \"dir/.#file\"
13791 genfile --file \"dir/#file#\"
13793 tar -v -c -f archive --exclude-backups dir
13795 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
13799 TEST_TAR_FORMAT=oldgnu
13800 export TEST_TAR_FORMAT
13801 TAR_OPTIONS="-H oldgnu"
13806 genfile --file dir/file
13807 genfile --file dir/file~
13808 genfile --file "dir/.#file"
13809 genfile --file "dir/#file#"
13811 tar -v -c -f archive --exclude-backups dir
13813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13814 at_status=$? at_failed=false
13816 at_fn_diff_devnull "$at_stderr" || at_failed=:
13817 echo >>"$at_stdout"; $as_echo "dir/
13820 $at_diff - "$at_stdout" || at_failed=:
13821 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
13822 $at_failed && at_fn_log_failure
13826 $as_echo "$at_srcdir/exclude07.at:22:
13829 TEST_TAR_FORMAT=ustar
13830 export TEST_TAR_FORMAT
13831 TAR_OPTIONS=\"-H ustar\"
13836 genfile --file dir/file
13837 genfile --file dir/file~
13838 genfile --file \"dir/.#file\"
13839 genfile --file \"dir/#file#\"
13841 tar -v -c -f archive --exclude-backups dir
13843 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
13847 TEST_TAR_FORMAT=ustar
13848 export TEST_TAR_FORMAT
13849 TAR_OPTIONS="-H ustar"
13854 genfile --file dir/file
13855 genfile --file dir/file~
13856 genfile --file "dir/.#file"
13857 genfile --file "dir/#file#"
13859 tar -v -c -f archive --exclude-backups dir
13861 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13862 at_status=$? at_failed=false
13864 at_fn_diff_devnull "$at_stderr" || at_failed=:
13865 echo >>"$at_stdout"; $as_echo "dir/
13868 $at_diff - "$at_stdout" || at_failed=:
13869 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
13870 $at_failed && at_fn_log_failure
13874 $as_echo "$at_srcdir/exclude07.at:22:
13877 TEST_TAR_FORMAT=posix
13878 export TEST_TAR_FORMAT
13879 TAR_OPTIONS=\"-H posix\"
13884 genfile --file dir/file
13885 genfile --file dir/file~
13886 genfile --file \"dir/.#file\"
13887 genfile --file \"dir/#file#\"
13889 tar -v -c -f archive --exclude-backups dir
13891 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
13895 TEST_TAR_FORMAT=posix
13896 export TEST_TAR_FORMAT
13897 TAR_OPTIONS="-H posix"
13902 genfile --file dir/file
13903 genfile --file dir/file~
13904 genfile --file "dir/.#file"
13905 genfile --file "dir/#file#"
13907 tar -v -c -f archive --exclude-backups dir
13909 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13910 at_status=$? at_failed=false
13912 at_fn_diff_devnull "$at_stderr" || at_failed=:
13913 echo >>"$at_stdout"; $as_echo "dir/
13916 $at_diff - "$at_stdout" || at_failed=:
13917 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
13918 $at_failed && at_fn_log_failure
13922 $as_echo "$at_srcdir/exclude07.at:22:
13925 TEST_TAR_FORMAT=gnu
13926 export TEST_TAR_FORMAT
13927 TAR_OPTIONS=\"-H gnu\"
13932 genfile --file dir/file
13933 genfile --file dir/file~
13934 genfile --file \"dir/.#file\"
13935 genfile --file \"dir/#file#\"
13937 tar -v -c -f archive --exclude-backups dir
13939 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
13943 TEST_TAR_FORMAT=gnu
13944 export TEST_TAR_FORMAT
13945 TAR_OPTIONS="-H gnu"
13950 genfile --file dir/file
13951 genfile --file dir/file~
13952 genfile --file "dir/.#file"
13953 genfile --file "dir/#file#"
13955 tar -v -c -f archive --exclude-backups dir
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 "dir/
13964 $at_diff - "$at_stdout" || at_failed=:
13965 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
13966 $at_failed && at_fn_log_failure
13973 $at_times_p && times >"$at_times_file"
13974 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13975 read at_status <"$at_status_file"
13978 at_fn_group_banner 50 'exclude08.at:36' \
13979 "--exclude-tag option" " " 7
13981 test -f $XFAILFILE && at_xfail=yes
13983 $as_echo "50. $at_setup_line: testing $at_desc ..."
13991 $as_echo "$at_srcdir/exclude08.at:39:
13995 export TEST_TAR_FORMAT
13996 TAR_OPTIONS=\"-H v7\"
14001 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14004 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14006 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
14011 export TEST_TAR_FORMAT
14012 TAR_OPTIONS="-H v7"
14017 test -z "`sort < /dev/null 2>&1`" || exit 77
14020 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14022 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14023 at_status=$? at_failed=false
14025 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14027 $at_diff - "$at_stderr" || at_failed=:
14028 echo >>"$at_stdout"; $as_echo "etest/
14030 etest/subdir/excludeme
14031 etest/top-level-file
14033 $at_diff - "$at_stdout" || at_failed=:
14034 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
14035 $at_failed && at_fn_log_failure
14039 $as_echo "$at_srcdir/exclude08.at:39:
14042 TEST_TAR_FORMAT=oldgnu
14043 export TEST_TAR_FORMAT
14044 TAR_OPTIONS=\"-H oldgnu\"
14049 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14052 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14054 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
14058 TEST_TAR_FORMAT=oldgnu
14059 export TEST_TAR_FORMAT
14060 TAR_OPTIONS="-H oldgnu"
14065 test -z "`sort < /dev/null 2>&1`" || exit 77
14068 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14070 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14071 at_status=$? at_failed=false
14073 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14075 $at_diff - "$at_stderr" || at_failed=:
14076 echo >>"$at_stdout"; $as_echo "etest/
14078 etest/subdir/excludeme
14079 etest/top-level-file
14081 $at_diff - "$at_stdout" || at_failed=:
14082 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
14083 $at_failed && at_fn_log_failure
14087 $as_echo "$at_srcdir/exclude08.at:39:
14090 TEST_TAR_FORMAT=ustar
14091 export TEST_TAR_FORMAT
14092 TAR_OPTIONS=\"-H ustar\"
14097 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14100 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14102 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
14106 TEST_TAR_FORMAT=ustar
14107 export TEST_TAR_FORMAT
14108 TAR_OPTIONS="-H ustar"
14113 test -z "`sort < /dev/null 2>&1`" || exit 77
14116 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14119 at_status=$? at_failed=false
14121 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14123 $at_diff - "$at_stderr" || at_failed=:
14124 echo >>"$at_stdout"; $as_echo "etest/
14126 etest/subdir/excludeme
14127 etest/top-level-file
14129 $at_diff - "$at_stdout" || at_failed=:
14130 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
14131 $at_failed && at_fn_log_failure
14135 $as_echo "$at_srcdir/exclude08.at:39:
14138 TEST_TAR_FORMAT=posix
14139 export TEST_TAR_FORMAT
14140 TAR_OPTIONS=\"-H posix\"
14145 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14148 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14150 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
14154 TEST_TAR_FORMAT=posix
14155 export TEST_TAR_FORMAT
14156 TAR_OPTIONS="-H posix"
14161 test -z "`sort < /dev/null 2>&1`" || exit 77
14164 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14166 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14167 at_status=$? at_failed=false
14169 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14171 $at_diff - "$at_stderr" || at_failed=:
14172 echo >>"$at_stdout"; $as_echo "etest/
14174 etest/subdir/excludeme
14175 etest/top-level-file
14177 $at_diff - "$at_stdout" || at_failed=:
14178 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
14179 $at_failed && at_fn_log_failure
14183 $as_echo "$at_srcdir/exclude08.at:39:
14186 TEST_TAR_FORMAT=gnu
14187 export TEST_TAR_FORMAT
14188 TAR_OPTIONS=\"-H gnu\"
14193 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14196 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14198 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
14202 TEST_TAR_FORMAT=gnu
14203 export TEST_TAR_FORMAT
14204 TAR_OPTIONS="-H gnu"
14209 test -z "`sort < /dev/null 2>&1`" || exit 77
14212 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
14214 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14215 at_status=$? at_failed=false
14217 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14219 $at_diff - "$at_stderr" || at_failed=:
14220 echo >>"$at_stdout"; $as_echo "etest/
14222 etest/subdir/excludeme
14223 etest/top-level-file
14225 $at_diff - "$at_stdout" || at_failed=:
14226 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
14227 $at_failed && at_fn_log_failure
14234 $at_times_p && times >"$at_times_file"
14235 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14236 read at_status <"$at_status_file"
14239 at_fn_group_banner 51 'exclude09.at:37' \
14240 "--exclude-tag option and --listed-incremental" " " 7
14242 test -f $XFAILFILE && at_xfail=yes
14244 $as_echo "51. $at_setup_line: testing $at_desc ..."
14252 $as_echo "$at_srcdir/exclude09.at:40:
14255 TEST_TAR_FORMAT=gnu
14256 export TEST_TAR_FORMAT
14257 TAR_OPTIONS=\"-H gnu\"
14262 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14265 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
14267 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude09.at:40"
14271 TEST_TAR_FORMAT=gnu
14272 export TEST_TAR_FORMAT
14273 TAR_OPTIONS="-H gnu"
14278 test -z "`sort < /dev/null 2>&1`" || exit 77
14281 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
14283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14284 at_status=$? at_failed=false
14286 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
14287 tar: etest/subdir: Directory is new
14288 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
14290 $at_diff - "$at_stderr" || at_failed=:
14291 echo >>"$at_stdout"; $as_echo "etest/
14293 etest/subdir/excludeme
14294 etest/top-level-file
14296 $at_diff - "$at_stdout" || at_failed=:
14297 at_fn_check_status 0 $at_status "$at_srcdir/exclude09.at:40"
14298 $at_failed && at_fn_log_failure
14305 $at_times_p && times >"$at_times_file"
14306 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14307 read at_status <"$at_status_file"
14310 at_fn_group_banner 52 'exclude10.at:38' \
14311 "--exclude-tag option in incremental pass" " " 7
14313 test -f $XFAILFILE && at_xfail=yes
14315 $as_echo "52. $at_setup_line: testing $at_desc ..."
14323 $as_echo "$at_srcdir/exclude10.at:41:
14326 TEST_TAR_FORMAT=gnu
14327 export TEST_TAR_FORMAT
14328 TAR_OPTIONS=\"-H gnu\"
14333 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14336 rm etest/subdir/excludeme
14337 decho \"# Level 0\"
14338 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
14339 touch etest/subdir/excludeme
14340 touch etest/subdir/otherfile
14342 decho \"# Level 1\"
14344 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
14346 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude10.at:41"
14350 TEST_TAR_FORMAT=gnu
14351 export TEST_TAR_FORMAT
14352 TAR_OPTIONS="-H gnu"
14357 test -z "`sort < /dev/null 2>&1`" || exit 77
14360 rm etest/subdir/excludeme
14362 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
14363 touch etest/subdir/excludeme
14364 touch etest/subdir/otherfile
14368 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
14370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14371 at_status=$? at_failed=false
14373 echo >>"$at_stderr"; $as_echo "# Level 0
14374 tar: etest: Directory is new
14375 tar: etest/subdir: Directory is new
14377 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
14379 $at_diff - "$at_stderr" || at_failed=:
14380 echo >>"$at_stdout"; $as_echo "# Level 0
14383 etest/subdir/subdir-file
14384 etest/top-level-file
14388 etest/subdir/excludeme
14390 $at_diff - "$at_stdout" || at_failed=:
14391 at_fn_check_status 0 $at_status "$at_srcdir/exclude10.at:41"
14392 $at_failed && at_fn_log_failure
14399 $at_times_p && times >"$at_times_file"
14400 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14401 read at_status <"$at_status_file"
14404 at_fn_group_banner 53 'exclude11.at:36' \
14405 "--exclude-tag-under option" " " 7
14407 test -f $XFAILFILE && at_xfail=yes
14409 $as_echo "53. $at_setup_line: testing $at_desc ..."
14417 $as_echo "$at_srcdir/exclude11.at:39:
14421 export TEST_TAR_FORMAT
14422 TAR_OPTIONS=\"-H v7\"
14427 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14430 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14432 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
14437 export TEST_TAR_FORMAT
14438 TAR_OPTIONS="-H v7"
14443 test -z "`sort < /dev/null 2>&1`" || exit 77
14446 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14448 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14449 at_status=$? at_failed=false
14451 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14453 $at_diff - "$at_stderr" || at_failed=:
14454 echo >>"$at_stdout"; $as_echo "etest/
14456 etest/top-level-file
14458 $at_diff - "$at_stdout" || at_failed=:
14459 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
14460 $at_failed && at_fn_log_failure
14464 $as_echo "$at_srcdir/exclude11.at:39:
14467 TEST_TAR_FORMAT=oldgnu
14468 export TEST_TAR_FORMAT
14469 TAR_OPTIONS=\"-H oldgnu\"
14474 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14477 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14479 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
14483 TEST_TAR_FORMAT=oldgnu
14484 export TEST_TAR_FORMAT
14485 TAR_OPTIONS="-H oldgnu"
14490 test -z "`sort < /dev/null 2>&1`" || exit 77
14493 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14495 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14496 at_status=$? at_failed=false
14498 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14500 $at_diff - "$at_stderr" || at_failed=:
14501 echo >>"$at_stdout"; $as_echo "etest/
14503 etest/top-level-file
14505 $at_diff - "$at_stdout" || at_failed=:
14506 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
14507 $at_failed && at_fn_log_failure
14511 $as_echo "$at_srcdir/exclude11.at:39:
14514 TEST_TAR_FORMAT=ustar
14515 export TEST_TAR_FORMAT
14516 TAR_OPTIONS=\"-H ustar\"
14521 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14524 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14526 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
14530 TEST_TAR_FORMAT=ustar
14531 export TEST_TAR_FORMAT
14532 TAR_OPTIONS="-H ustar"
14537 test -z "`sort < /dev/null 2>&1`" || exit 77
14540 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14542 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14543 at_status=$? at_failed=false
14545 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14547 $at_diff - "$at_stderr" || at_failed=:
14548 echo >>"$at_stdout"; $as_echo "etest/
14550 etest/top-level-file
14552 $at_diff - "$at_stdout" || at_failed=:
14553 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
14554 $at_failed && at_fn_log_failure
14558 $as_echo "$at_srcdir/exclude11.at:39:
14561 TEST_TAR_FORMAT=posix
14562 export TEST_TAR_FORMAT
14563 TAR_OPTIONS=\"-H posix\"
14568 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14571 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14573 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
14577 TEST_TAR_FORMAT=posix
14578 export TEST_TAR_FORMAT
14579 TAR_OPTIONS="-H posix"
14584 test -z "`sort < /dev/null 2>&1`" || exit 77
14587 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14589 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14590 at_status=$? at_failed=false
14592 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14594 $at_diff - "$at_stderr" || at_failed=:
14595 echo >>"$at_stdout"; $as_echo "etest/
14597 etest/top-level-file
14599 $at_diff - "$at_stdout" || at_failed=:
14600 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
14601 $at_failed && at_fn_log_failure
14605 $as_echo "$at_srcdir/exclude11.at:39:
14608 TEST_TAR_FORMAT=gnu
14609 export TEST_TAR_FORMAT
14610 TAR_OPTIONS=\"-H gnu\"
14615 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14618 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14620 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
14624 TEST_TAR_FORMAT=gnu
14625 export TEST_TAR_FORMAT
14626 TAR_OPTIONS="-H gnu"
14631 test -z "`sort < /dev/null 2>&1`" || exit 77
14634 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
14636 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14637 at_status=$? at_failed=false
14639 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
14641 $at_diff - "$at_stderr" || at_failed=:
14642 echo >>"$at_stdout"; $as_echo "etest/
14644 etest/top-level-file
14646 $at_diff - "$at_stdout" || at_failed=:
14647 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
14648 $at_failed && at_fn_log_failure
14655 $at_times_p && times >"$at_times_file"
14656 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14657 read at_status <"$at_status_file"
14660 at_fn_group_banner 54 'exclude12.at:37' \
14661 "--exclude-tag-under and --listed-incremental" " " 7
14663 test -f $XFAILFILE && at_xfail=yes
14665 $as_echo "54. $at_setup_line: testing $at_desc ..."
14673 $as_echo "$at_srcdir/exclude12.at:40:
14676 TEST_TAR_FORMAT=gnu
14677 export TEST_TAR_FORMAT
14678 TAR_OPTIONS=\"-H gnu\"
14683 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14686 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
14688 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude12.at:40"
14692 TEST_TAR_FORMAT=gnu
14693 export TEST_TAR_FORMAT
14694 TAR_OPTIONS="-H gnu"
14699 test -z "`sort < /dev/null 2>&1`" || exit 77
14702 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
14704 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14705 at_status=$? at_failed=false
14707 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
14708 tar: etest/subdir: Directory is new
14709 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
14711 $at_diff - "$at_stderr" || at_failed=:
14712 echo >>"$at_stdout"; $as_echo "etest/
14714 etest/top-level-file
14716 $at_diff - "$at_stdout" || at_failed=:
14717 at_fn_check_status 0 $at_status "$at_srcdir/exclude12.at:40"
14718 $at_failed && at_fn_log_failure
14725 $at_times_p && times >"$at_times_file"
14726 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14727 read at_status <"$at_status_file"
14730 at_fn_group_banner 55 'exclude13.at:39' \
14731 "--exclude-tag-under option in incremental pass" " " 7
14733 test -f $XFAILFILE && at_xfail=yes
14735 $as_echo "55. $at_setup_line: testing $at_desc ..."
14743 $as_echo "$at_srcdir/exclude13.at:42:
14746 TEST_TAR_FORMAT=gnu
14747 export TEST_TAR_FORMAT
14748 TAR_OPTIONS=\"-H gnu\"
14753 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14756 rm etest/subdir/excludeme
14757 decho \"# Level 0\"
14758 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
14759 touch etest/subdir/excludeme
14760 touch etest/subdir/otherfile
14762 decho \"# Level 1\"
14764 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
14766 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude13.at:42"
14770 TEST_TAR_FORMAT=gnu
14771 export TEST_TAR_FORMAT
14772 TAR_OPTIONS="-H gnu"
14777 test -z "`sort < /dev/null 2>&1`" || exit 77
14780 rm etest/subdir/excludeme
14782 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
14783 touch etest/subdir/excludeme
14784 touch etest/subdir/otherfile
14788 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
14790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14791 at_status=$? at_failed=false
14793 echo >>"$at_stderr"; $as_echo "# Level 0
14794 tar: etest: Directory is new
14795 tar: etest/subdir: Directory is new
14797 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
14799 $at_diff - "$at_stderr" || at_failed=:
14800 echo >>"$at_stdout"; $as_echo "# Level 0
14803 etest/subdir/subdir-file
14804 etest/top-level-file
14809 $at_diff - "$at_stdout" || at_failed=:
14810 at_fn_check_status 0 $at_status "$at_srcdir/exclude13.at:42"
14811 $at_failed && at_fn_log_failure
14818 $at_times_p && times >"$at_times_file"
14819 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14820 read at_status <"$at_status_file"
14823 at_fn_group_banner 56 'exclude14.at:36' \
14824 "--exclude-tag-all option" " " 7
14826 test -f $XFAILFILE && at_xfail=yes
14828 $as_echo "56. $at_setup_line: testing $at_desc ..."
14836 $as_echo "$at_srcdir/exclude14.at:39:
14840 export TEST_TAR_FORMAT
14841 TAR_OPTIONS=\"-H v7\"
14846 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14849 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14851 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
14856 export TEST_TAR_FORMAT
14857 TAR_OPTIONS="-H v7"
14862 test -z "`sort < /dev/null 2>&1`" || exit 77
14865 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14867 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14868 at_status=$? at_failed=false
14870 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
14872 $at_diff - "$at_stderr" || at_failed=:
14873 echo >>"$at_stdout"; $as_echo "etest/
14874 etest/top-level-file
14876 $at_diff - "$at_stdout" || at_failed=:
14877 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
14878 $at_failed && at_fn_log_failure
14882 $as_echo "$at_srcdir/exclude14.at:39:
14885 TEST_TAR_FORMAT=oldgnu
14886 export TEST_TAR_FORMAT
14887 TAR_OPTIONS=\"-H oldgnu\"
14892 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14895 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14897 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
14901 TEST_TAR_FORMAT=oldgnu
14902 export TEST_TAR_FORMAT
14903 TAR_OPTIONS="-H oldgnu"
14908 test -z "`sort < /dev/null 2>&1`" || exit 77
14911 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14913 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14914 at_status=$? at_failed=false
14916 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
14918 $at_diff - "$at_stderr" || at_failed=:
14919 echo >>"$at_stdout"; $as_echo "etest/
14920 etest/top-level-file
14922 $at_diff - "$at_stdout" || at_failed=:
14923 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
14924 $at_failed && at_fn_log_failure
14928 $as_echo "$at_srcdir/exclude14.at:39:
14931 TEST_TAR_FORMAT=ustar
14932 export TEST_TAR_FORMAT
14933 TAR_OPTIONS=\"-H ustar\"
14938 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14941 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14943 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
14947 TEST_TAR_FORMAT=ustar
14948 export TEST_TAR_FORMAT
14949 TAR_OPTIONS="-H ustar"
14954 test -z "`sort < /dev/null 2>&1`" || exit 77
14957 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14959 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14960 at_status=$? at_failed=false
14962 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
14964 $at_diff - "$at_stderr" || at_failed=:
14965 echo >>"$at_stdout"; $as_echo "etest/
14966 etest/top-level-file
14968 $at_diff - "$at_stdout" || at_failed=:
14969 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
14970 $at_failed && at_fn_log_failure
14974 $as_echo "$at_srcdir/exclude14.at:39:
14977 TEST_TAR_FORMAT=posix
14978 export TEST_TAR_FORMAT
14979 TAR_OPTIONS=\"-H posix\"
14984 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14987 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
14989 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
14993 TEST_TAR_FORMAT=posix
14994 export TEST_TAR_FORMAT
14995 TAR_OPTIONS="-H posix"
15000 test -z "`sort < /dev/null 2>&1`" || exit 77
15003 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
15005 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15006 at_status=$? at_failed=false
15008 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
15010 $at_diff - "$at_stderr" || at_failed=:
15011 echo >>"$at_stdout"; $as_echo "etest/
15012 etest/top-level-file
15014 $at_diff - "$at_stdout" || at_failed=:
15015 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
15016 $at_failed && at_fn_log_failure
15020 $as_echo "$at_srcdir/exclude14.at:39:
15023 TEST_TAR_FORMAT=gnu
15024 export TEST_TAR_FORMAT
15025 TAR_OPTIONS=\"-H gnu\"
15030 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
15033 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
15035 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
15039 TEST_TAR_FORMAT=gnu
15040 export TEST_TAR_FORMAT
15041 TAR_OPTIONS="-H gnu"
15046 test -z "`sort < /dev/null 2>&1`" || exit 77
15049 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
15051 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15052 at_status=$? at_failed=false
15054 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
15056 $at_diff - "$at_stderr" || at_failed=:
15057 echo >>"$at_stdout"; $as_echo "etest/
15058 etest/top-level-file
15060 $at_diff - "$at_stdout" || at_failed=:
15061 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
15062 $at_failed && at_fn_log_failure
15069 $at_times_p && times >"$at_times_file"
15070 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15071 read at_status <"$at_status_file"
15074 at_fn_group_banner 57 'exclude15.at:36' \
15075 "--exclude-tag-all and --listed-incremental" " " 7
15077 test -f $XFAILFILE && at_xfail=yes
15079 $as_echo "57. $at_setup_line: testing $at_desc ..."
15087 $as_echo "$at_srcdir/exclude15.at:39:
15090 TEST_TAR_FORMAT=gnu
15091 export TEST_TAR_FORMAT
15092 TAR_OPTIONS=\"-H gnu\"
15097 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
15100 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
15102 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude15.at:39"
15106 TEST_TAR_FORMAT=gnu
15107 export TEST_TAR_FORMAT
15108 TAR_OPTIONS="-H gnu"
15113 test -z "`sort < /dev/null 2>&1`" || exit 77
15116 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
15118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15119 at_status=$? at_failed=false
15121 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
15122 tar: etest/subdir: Directory is new
15123 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
15125 $at_diff - "$at_stderr" || at_failed=:
15126 echo >>"$at_stdout"; $as_echo "etest/
15127 etest/top-level-file
15129 $at_diff - "$at_stdout" || at_failed=:
15130 at_fn_check_status 0 $at_status "$at_srcdir/exclude15.at:39"
15131 $at_failed && at_fn_log_failure
15138 $at_times_p && times >"$at_times_file"
15139 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15140 read at_status <"$at_status_file"
15143 at_fn_group_banner 58 'exclude16.at:38' \
15144 "--exclude-tag-all option in incremental pass" " " 7
15146 test -f $XFAILFILE && at_xfail=yes
15148 $as_echo "58. $at_setup_line: testing $at_desc ..."
15156 $as_echo "$at_srcdir/exclude16.at:41:
15159 TEST_TAR_FORMAT=gnu
15160 export TEST_TAR_FORMAT
15161 TAR_OPTIONS=\"-H gnu\"
15166 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
15169 rm etest/subdir/excludeme
15170 decho \"# Level 0\"
15171 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
15172 touch etest/subdir/excludeme
15173 touch etest/subdir/otherfile
15175 decho \"# Level 1\"
15177 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
15179 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude16.at:41"
15183 TEST_TAR_FORMAT=gnu
15184 export TEST_TAR_FORMAT
15185 TAR_OPTIONS="-H gnu"
15190 test -z "`sort < /dev/null 2>&1`" || exit 77
15193 rm etest/subdir/excludeme
15195 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
15196 touch etest/subdir/excludeme
15197 touch etest/subdir/otherfile
15201 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
15203 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15204 at_status=$? at_failed=false
15206 echo >>"$at_stderr"; $as_echo "# Level 0
15207 tar: etest: Directory is new
15208 tar: etest/subdir: Directory is new
15210 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
15212 $at_diff - "$at_stderr" || at_failed=:
15213 echo >>"$at_stdout"; $as_echo "# Level 0
15216 etest/subdir/subdir-file
15217 etest/top-level-file
15221 $at_diff - "$at_stdout" || at_failed=:
15222 at_fn_check_status 0 $at_status "$at_srcdir/exclude16.at:41"
15223 $at_failed && at_fn_log_failure
15230 $at_times_p && times >"$at_times_file"
15231 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15232 read at_status <"$at_status_file"
15235 at_fn_group_banner 59 'delete01.at:24' \
15236 "deleting a member after a big one" " " 8
15238 test -f $XFAILFILE && at_xfail=yes
15240 $as_echo "59. $at_setup_line: testing $at_desc ..."
15248 $as_echo "$at_srcdir/delete01.at:27:
15252 export TEST_TAR_FORMAT
15253 TAR_OPTIONS=\"-H v7\"
15257 genfile -l 50000 --file file1
15258 genfile -l 1024 --file file2
15259 tar cf archive file1 file2
15260 tar f archive --delete file2
15262 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:27"
15267 export TEST_TAR_FORMAT
15268 TAR_OPTIONS="-H v7"
15272 genfile -l 50000 --file file1
15273 genfile -l 1024 --file file2
15274 tar cf archive file1 file2
15275 tar f archive --delete file2
15277 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15278 at_status=$? at_failed=false
15280 at_fn_diff_devnull "$at_stderr" || at_failed=:
15281 echo >>"$at_stdout"; $as_echo "file1
15283 $at_diff - "$at_stdout" || at_failed=:
15284 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:27"
15285 $at_failed && at_fn_log_failure
15289 $as_echo "$at_srcdir/delete01.at:27:
15292 TEST_TAR_FORMAT=oldgnu
15293 export TEST_TAR_FORMAT
15294 TAR_OPTIONS=\"-H oldgnu\"
15298 genfile -l 50000 --file file1
15299 genfile -l 1024 --file file2
15300 tar cf archive file1 file2
15301 tar f archive --delete file2
15303 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:27"
15307 TEST_TAR_FORMAT=oldgnu
15308 export TEST_TAR_FORMAT
15309 TAR_OPTIONS="-H oldgnu"
15313 genfile -l 50000 --file file1
15314 genfile -l 1024 --file file2
15315 tar cf archive file1 file2
15316 tar f archive --delete file2
15318 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15319 at_status=$? at_failed=false
15321 at_fn_diff_devnull "$at_stderr" || at_failed=:
15322 echo >>"$at_stdout"; $as_echo "file1
15324 $at_diff - "$at_stdout" || at_failed=:
15325 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:27"
15326 $at_failed && at_fn_log_failure
15330 $as_echo "$at_srcdir/delete01.at:27:
15333 TEST_TAR_FORMAT=ustar
15334 export TEST_TAR_FORMAT
15335 TAR_OPTIONS=\"-H ustar\"
15339 genfile -l 50000 --file file1
15340 genfile -l 1024 --file file2
15341 tar cf archive file1 file2
15342 tar f archive --delete file2
15344 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:27"
15348 TEST_TAR_FORMAT=ustar
15349 export TEST_TAR_FORMAT
15350 TAR_OPTIONS="-H ustar"
15354 genfile -l 50000 --file file1
15355 genfile -l 1024 --file file2
15356 tar cf archive file1 file2
15357 tar f archive --delete file2
15359 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15360 at_status=$? at_failed=false
15362 at_fn_diff_devnull "$at_stderr" || at_failed=:
15363 echo >>"$at_stdout"; $as_echo "file1
15365 $at_diff - "$at_stdout" || at_failed=:
15366 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:27"
15367 $at_failed && at_fn_log_failure
15371 $as_echo "$at_srcdir/delete01.at:27:
15374 TEST_TAR_FORMAT=posix
15375 export TEST_TAR_FORMAT
15376 TAR_OPTIONS=\"-H posix\"
15380 genfile -l 50000 --file file1
15381 genfile -l 1024 --file file2
15382 tar cf archive file1 file2
15383 tar f archive --delete file2
15385 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:27"
15389 TEST_TAR_FORMAT=posix
15390 export TEST_TAR_FORMAT
15391 TAR_OPTIONS="-H posix"
15395 genfile -l 50000 --file file1
15396 genfile -l 1024 --file file2
15397 tar cf archive file1 file2
15398 tar f archive --delete file2
15400 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15401 at_status=$? at_failed=false
15403 at_fn_diff_devnull "$at_stderr" || at_failed=:
15404 echo >>"$at_stdout"; $as_echo "file1
15406 $at_diff - "$at_stdout" || at_failed=:
15407 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:27"
15408 $at_failed && at_fn_log_failure
15412 $as_echo "$at_srcdir/delete01.at:27:
15415 TEST_TAR_FORMAT=gnu
15416 export TEST_TAR_FORMAT
15417 TAR_OPTIONS=\"-H gnu\"
15421 genfile -l 50000 --file file1
15422 genfile -l 1024 --file file2
15423 tar cf archive file1 file2
15424 tar f archive --delete file2
15426 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:27"
15430 TEST_TAR_FORMAT=gnu
15431 export TEST_TAR_FORMAT
15432 TAR_OPTIONS="-H gnu"
15436 genfile -l 50000 --file file1
15437 genfile -l 1024 --file file2
15438 tar cf archive file1 file2
15439 tar f archive --delete file2
15441 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15442 at_status=$? at_failed=false
15444 at_fn_diff_devnull "$at_stderr" || at_failed=:
15445 echo >>"$at_stdout"; $as_echo "file1
15447 $at_diff - "$at_stdout" || at_failed=:
15448 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:27"
15449 $at_failed && at_fn_log_failure
15456 $at_times_p && times >"$at_times_file"
15457 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15458 read at_status <"$at_status_file"
15461 at_fn_group_banner 60 'delete02.at:24' \
15462 "deleting a member from stdin archive" " " 8
15464 test -f $XFAILFILE && at_xfail=yes
15466 $as_echo "60. $at_setup_line: testing $at_desc ..."
15474 $as_echo "$at_srcdir/delete02.at:27:
15478 export TEST_TAR_FORMAT
15479 TAR_OPTIONS=\"-H v7\"
15483 genfile -l 3073 -p zeros --file 1
15486 tar cf archive 1 2 3
15488 cat archive | tar f - --delete 2 > archive2
15491 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:27"
15496 export TEST_TAR_FORMAT
15497 TAR_OPTIONS="-H v7"
15501 genfile -l 3073 -p zeros --file 1
15504 tar cf archive 1 2 3
15506 cat archive | tar f - --delete 2 > archive2
15509 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15510 at_status=$? at_failed=false
15512 at_fn_diff_devnull "$at_stderr" || at_failed=:
15513 echo >>"$at_stdout"; $as_echo "1
15520 $at_diff - "$at_stdout" || at_failed=:
15521 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:27"
15522 $at_failed && at_fn_log_failure
15526 $as_echo "$at_srcdir/delete02.at:27:
15529 TEST_TAR_FORMAT=oldgnu
15530 export TEST_TAR_FORMAT
15531 TAR_OPTIONS=\"-H oldgnu\"
15535 genfile -l 3073 -p zeros --file 1
15538 tar cf archive 1 2 3
15540 cat archive | tar f - --delete 2 > archive2
15543 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:27"
15547 TEST_TAR_FORMAT=oldgnu
15548 export TEST_TAR_FORMAT
15549 TAR_OPTIONS="-H oldgnu"
15553 genfile -l 3073 -p zeros --file 1
15556 tar cf archive 1 2 3
15558 cat archive | tar f - --delete 2 > archive2
15561 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15562 at_status=$? at_failed=false
15564 at_fn_diff_devnull "$at_stderr" || at_failed=:
15565 echo >>"$at_stdout"; $as_echo "1
15572 $at_diff - "$at_stdout" || at_failed=:
15573 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:27"
15574 $at_failed && at_fn_log_failure
15578 $as_echo "$at_srcdir/delete02.at:27:
15581 TEST_TAR_FORMAT=ustar
15582 export TEST_TAR_FORMAT
15583 TAR_OPTIONS=\"-H ustar\"
15587 genfile -l 3073 -p zeros --file 1
15590 tar cf archive 1 2 3
15592 cat archive | tar f - --delete 2 > archive2
15595 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:27"
15599 TEST_TAR_FORMAT=ustar
15600 export TEST_TAR_FORMAT
15601 TAR_OPTIONS="-H ustar"
15605 genfile -l 3073 -p zeros --file 1
15608 tar cf archive 1 2 3
15610 cat archive | tar f - --delete 2 > archive2
15613 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15614 at_status=$? at_failed=false
15616 at_fn_diff_devnull "$at_stderr" || at_failed=:
15617 echo >>"$at_stdout"; $as_echo "1
15624 $at_diff - "$at_stdout" || at_failed=:
15625 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:27"
15626 $at_failed && at_fn_log_failure
15630 $as_echo "$at_srcdir/delete02.at:27:
15633 TEST_TAR_FORMAT=posix
15634 export TEST_TAR_FORMAT
15635 TAR_OPTIONS=\"-H posix\"
15639 genfile -l 3073 -p zeros --file 1
15642 tar cf archive 1 2 3
15644 cat archive | tar f - --delete 2 > archive2
15647 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:27"
15651 TEST_TAR_FORMAT=posix
15652 export TEST_TAR_FORMAT
15653 TAR_OPTIONS="-H posix"
15657 genfile -l 3073 -p zeros --file 1
15660 tar cf archive 1 2 3
15662 cat archive | tar f - --delete 2 > archive2
15665 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15666 at_status=$? at_failed=false
15668 at_fn_diff_devnull "$at_stderr" || at_failed=:
15669 echo >>"$at_stdout"; $as_echo "1
15676 $at_diff - "$at_stdout" || at_failed=:
15677 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:27"
15678 $at_failed && at_fn_log_failure
15682 $as_echo "$at_srcdir/delete02.at:27:
15685 TEST_TAR_FORMAT=gnu
15686 export TEST_TAR_FORMAT
15687 TAR_OPTIONS=\"-H gnu\"
15691 genfile -l 3073 -p zeros --file 1
15694 tar cf archive 1 2 3
15696 cat archive | tar f - --delete 2 > archive2
15699 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:27"
15703 TEST_TAR_FORMAT=gnu
15704 export TEST_TAR_FORMAT
15705 TAR_OPTIONS="-H gnu"
15709 genfile -l 3073 -p zeros --file 1
15712 tar cf archive 1 2 3
15714 cat archive | tar f - --delete 2 > archive2
15717 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15718 at_status=$? at_failed=false
15720 at_fn_diff_devnull "$at_stderr" || at_failed=:
15721 echo >>"$at_stdout"; $as_echo "1
15728 $at_diff - "$at_stdout" || at_failed=:
15729 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:27"
15730 $at_failed && at_fn_log_failure
15737 $at_times_p && times >"$at_times_file"
15738 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15739 read at_status <"$at_status_file"
15742 at_fn_group_banner 61 'delete03.at:21' \
15743 "deleting members with long names" " " 8
15745 test -f $XFAILFILE && at_xfail=yes
15747 $as_echo "61. $at_setup_line: testing $at_desc ..."
15757 $as_echo "$at_srcdir/delete03.at:26:
15760 TEST_TAR_FORMAT=gnu
15761 export TEST_TAR_FORMAT
15762 TAR_OPTIONS=\"-H gnu\"
15767 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
15769 for i in 1 2 3 4 5 6 7 8 9
15770 do touch \$prefix\$i
15772 tar -cf archive ./\$prefix* &&
15773 tar --delete -f archive ./\${prefix}5 &&
15776 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
15780 TEST_TAR_FORMAT=gnu
15781 export TEST_TAR_FORMAT
15782 TAR_OPTIONS="-H gnu"
15787 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
15789 for i in 1 2 3 4 5 6 7 8 9
15792 tar -cf archive ./$prefix* &&
15793 tar --delete -f archive ./${prefix}5 &&
15796 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15797 at_status=$? at_failed=false
15799 at_fn_diff_devnull "$at_stderr" || at_failed=:
15800 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
15801 ./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
15802 ./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
15803 ./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
15804 ./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
15805 ./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
15806 ./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
15807 ./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
15809 $at_diff - "$at_stdout" || at_failed=:
15810 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
15811 $at_failed && at_fn_log_failure
15815 $as_echo "$at_srcdir/delete03.at:26:
15818 TEST_TAR_FORMAT=oldgnu
15819 export TEST_TAR_FORMAT
15820 TAR_OPTIONS=\"-H oldgnu\"
15825 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
15827 for i in 1 2 3 4 5 6 7 8 9
15828 do touch \$prefix\$i
15830 tar -cf archive ./\$prefix* &&
15831 tar --delete -f archive ./\${prefix}5 &&
15834 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
15838 TEST_TAR_FORMAT=oldgnu
15839 export TEST_TAR_FORMAT
15840 TAR_OPTIONS="-H oldgnu"
15845 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
15847 for i in 1 2 3 4 5 6 7 8 9
15850 tar -cf archive ./$prefix* &&
15851 tar --delete -f archive ./${prefix}5 &&
15854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15855 at_status=$? at_failed=false
15857 at_fn_diff_devnull "$at_stderr" || at_failed=:
15858 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
15859 ./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
15860 ./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
15861 ./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
15862 ./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
15863 ./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
15864 ./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
15865 ./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
15867 $at_diff - "$at_stdout" || at_failed=:
15868 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
15869 $at_failed && at_fn_log_failure
15873 $as_echo "$at_srcdir/delete03.at:26:
15876 TEST_TAR_FORMAT=posix
15877 export TEST_TAR_FORMAT
15878 TAR_OPTIONS=\"-H posix\"
15883 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
15885 for i in 1 2 3 4 5 6 7 8 9
15886 do touch \$prefix\$i
15888 tar -cf archive ./\$prefix* &&
15889 tar --delete -f archive ./\${prefix}5 &&
15892 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
15896 TEST_TAR_FORMAT=posix
15897 export TEST_TAR_FORMAT
15898 TAR_OPTIONS="-H posix"
15903 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
15905 for i in 1 2 3 4 5 6 7 8 9
15908 tar -cf archive ./$prefix* &&
15909 tar --delete -f archive ./${prefix}5 &&
15912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15913 at_status=$? at_failed=false
15915 at_fn_diff_devnull "$at_stderr" || at_failed=:
15916 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
15917 ./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
15918 ./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
15919 ./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
15920 ./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
15921 ./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
15922 ./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
15923 ./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
15925 $at_diff - "$at_stdout" || at_failed=:
15926 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
15927 $at_failed && at_fn_log_failure
15935 $at_times_p && times >"$at_times_file"
15936 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15937 read at_status <"$at_status_file"
15940 at_fn_group_banner 62 'delete04.at:24' \
15941 "deleting a large last member" " " 8
15943 test -f $XFAILFILE && at_xfail=yes
15945 $as_echo "62. $at_setup_line: testing $at_desc ..."
15953 $as_echo "$at_srcdir/delete04.at:27:
15957 export TEST_TAR_FORMAT
15958 TAR_OPTIONS=\"-H v7\"
15962 genfile -l 3 -f file1
15963 genfile -l 5 -f file2
15964 genfile -l 3 -f file3
15965 genfile -l 6 -f file4
15966 genfile -l 24 -f file5
15967 genfile -l 13 -f file6
15968 genfile -l 1385 -f file7
15969 genfile -l 30 -f file8
15970 genfile -l 10 -f file9
15971 genfile -l 256000 -f file10
15972 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
15973 tar f archive --delete file10
15976 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:27"
15981 export TEST_TAR_FORMAT
15982 TAR_OPTIONS="-H v7"
15986 genfile -l 3 -f file1
15987 genfile -l 5 -f file2
15988 genfile -l 3 -f file3
15989 genfile -l 6 -f file4
15990 genfile -l 24 -f file5
15991 genfile -l 13 -f file6
15992 genfile -l 1385 -f file7
15993 genfile -l 30 -f file8
15994 genfile -l 10 -f file9
15995 genfile -l 256000 -f file10
15996 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
15997 tar f archive --delete file10
16000 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16001 at_status=$? at_failed=false
16003 at_fn_diff_devnull "$at_stderr" || at_failed=:
16004 echo >>"$at_stdout"; $as_echo "file1
16014 $at_diff - "$at_stdout" || at_failed=:
16015 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:27"
16016 $at_failed && at_fn_log_failure
16020 $as_echo "$at_srcdir/delete04.at:27:
16023 TEST_TAR_FORMAT=oldgnu
16024 export TEST_TAR_FORMAT
16025 TAR_OPTIONS=\"-H oldgnu\"
16029 genfile -l 3 -f file1
16030 genfile -l 5 -f file2
16031 genfile -l 3 -f file3
16032 genfile -l 6 -f file4
16033 genfile -l 24 -f file5
16034 genfile -l 13 -f file6
16035 genfile -l 1385 -f file7
16036 genfile -l 30 -f file8
16037 genfile -l 10 -f file9
16038 genfile -l 256000 -f file10
16039 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16040 tar f archive --delete file10
16043 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:27"
16047 TEST_TAR_FORMAT=oldgnu
16048 export TEST_TAR_FORMAT
16049 TAR_OPTIONS="-H oldgnu"
16053 genfile -l 3 -f file1
16054 genfile -l 5 -f file2
16055 genfile -l 3 -f file3
16056 genfile -l 6 -f file4
16057 genfile -l 24 -f file5
16058 genfile -l 13 -f file6
16059 genfile -l 1385 -f file7
16060 genfile -l 30 -f file8
16061 genfile -l 10 -f file9
16062 genfile -l 256000 -f file10
16063 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16064 tar f archive --delete file10
16067 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16068 at_status=$? at_failed=false
16070 at_fn_diff_devnull "$at_stderr" || at_failed=:
16071 echo >>"$at_stdout"; $as_echo "file1
16081 $at_diff - "$at_stdout" || at_failed=:
16082 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:27"
16083 $at_failed && at_fn_log_failure
16087 $as_echo "$at_srcdir/delete04.at:27:
16090 TEST_TAR_FORMAT=ustar
16091 export TEST_TAR_FORMAT
16092 TAR_OPTIONS=\"-H ustar\"
16096 genfile -l 3 -f file1
16097 genfile -l 5 -f file2
16098 genfile -l 3 -f file3
16099 genfile -l 6 -f file4
16100 genfile -l 24 -f file5
16101 genfile -l 13 -f file6
16102 genfile -l 1385 -f file7
16103 genfile -l 30 -f file8
16104 genfile -l 10 -f file9
16105 genfile -l 256000 -f file10
16106 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16107 tar f archive --delete file10
16110 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:27"
16114 TEST_TAR_FORMAT=ustar
16115 export TEST_TAR_FORMAT
16116 TAR_OPTIONS="-H ustar"
16120 genfile -l 3 -f file1
16121 genfile -l 5 -f file2
16122 genfile -l 3 -f file3
16123 genfile -l 6 -f file4
16124 genfile -l 24 -f file5
16125 genfile -l 13 -f file6
16126 genfile -l 1385 -f file7
16127 genfile -l 30 -f file8
16128 genfile -l 10 -f file9
16129 genfile -l 256000 -f file10
16130 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16131 tar f archive --delete file10
16134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16135 at_status=$? at_failed=false
16137 at_fn_diff_devnull "$at_stderr" || at_failed=:
16138 echo >>"$at_stdout"; $as_echo "file1
16148 $at_diff - "$at_stdout" || at_failed=:
16149 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:27"
16150 $at_failed && at_fn_log_failure
16154 $as_echo "$at_srcdir/delete04.at:27:
16157 TEST_TAR_FORMAT=posix
16158 export TEST_TAR_FORMAT
16159 TAR_OPTIONS=\"-H posix\"
16163 genfile -l 3 -f file1
16164 genfile -l 5 -f file2
16165 genfile -l 3 -f file3
16166 genfile -l 6 -f file4
16167 genfile -l 24 -f file5
16168 genfile -l 13 -f file6
16169 genfile -l 1385 -f file7
16170 genfile -l 30 -f file8
16171 genfile -l 10 -f file9
16172 genfile -l 256000 -f file10
16173 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16174 tar f archive --delete file10
16177 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:27"
16181 TEST_TAR_FORMAT=posix
16182 export TEST_TAR_FORMAT
16183 TAR_OPTIONS="-H posix"
16187 genfile -l 3 -f file1
16188 genfile -l 5 -f file2
16189 genfile -l 3 -f file3
16190 genfile -l 6 -f file4
16191 genfile -l 24 -f file5
16192 genfile -l 13 -f file6
16193 genfile -l 1385 -f file7
16194 genfile -l 30 -f file8
16195 genfile -l 10 -f file9
16196 genfile -l 256000 -f file10
16197 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16198 tar f archive --delete file10
16201 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16202 at_status=$? at_failed=false
16204 at_fn_diff_devnull "$at_stderr" || at_failed=:
16205 echo >>"$at_stdout"; $as_echo "file1
16215 $at_diff - "$at_stdout" || at_failed=:
16216 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:27"
16217 $at_failed && at_fn_log_failure
16221 $as_echo "$at_srcdir/delete04.at:27:
16224 TEST_TAR_FORMAT=gnu
16225 export TEST_TAR_FORMAT
16226 TAR_OPTIONS=\"-H gnu\"
16230 genfile -l 3 -f file1
16231 genfile -l 5 -f file2
16232 genfile -l 3 -f file3
16233 genfile -l 6 -f file4
16234 genfile -l 24 -f file5
16235 genfile -l 13 -f file6
16236 genfile -l 1385 -f file7
16237 genfile -l 30 -f file8
16238 genfile -l 10 -f file9
16239 genfile -l 256000 -f file10
16240 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16241 tar f archive --delete file10
16244 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:27"
16248 TEST_TAR_FORMAT=gnu
16249 export TEST_TAR_FORMAT
16250 TAR_OPTIONS="-H gnu"
16254 genfile -l 3 -f file1
16255 genfile -l 5 -f file2
16256 genfile -l 3 -f file3
16257 genfile -l 6 -f file4
16258 genfile -l 24 -f file5
16259 genfile -l 13 -f file6
16260 genfile -l 1385 -f file7
16261 genfile -l 30 -f file8
16262 genfile -l 10 -f file9
16263 genfile -l 256000 -f file10
16264 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
16265 tar f archive --delete file10
16268 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16269 at_status=$? at_failed=false
16271 at_fn_diff_devnull "$at_stderr" || at_failed=:
16272 echo >>"$at_stdout"; $as_echo "file1
16282 $at_diff - "$at_stdout" || at_failed=:
16283 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:27"
16284 $at_failed && at_fn_log_failure
16291 $at_times_p && times >"$at_times_file"
16292 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16293 read at_status <"$at_status_file"
16296 at_fn_group_banner 63 'delete05.at:28' \
16297 "deleting non-existing member" " " 8
16299 test -f $XFAILFILE && at_xfail=yes
16301 $as_echo "63. $at_setup_line: testing $at_desc ..."
16309 $as_echo "$at_srcdir/delete05.at:31:
16313 export TEST_TAR_FORMAT
16314 TAR_OPTIONS=\"-H v7\"
16318 genfile -l 1024 -f en
16319 genfile -l 1024 -f to
16321 tar cf archive en to
16322 # Make sure we don't use bogus blocking factor.
16323 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16324 tar --file archive --blocking-factor=20 --delete tre
16327 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:31"
16332 export TEST_TAR_FORMAT
16333 TAR_OPTIONS="-H v7"
16337 genfile -l 1024 -f en
16338 genfile -l 1024 -f to
16340 tar cf archive en to
16341 # Make sure we don't use bogus blocking factor.
16342 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16343 tar --file archive --blocking-factor=20 --delete tre
16346 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16347 at_status=$? at_failed=false
16349 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
16350 tar: Exiting with failure status due to previous errors
16352 $at_diff - "$at_stderr" || at_failed=:
16353 echo >>"$at_stdout"; $as_echo "en
16356 $at_diff - "$at_stdout" || at_failed=:
16357 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:31"
16358 $at_failed && at_fn_log_failure
16362 $as_echo "$at_srcdir/delete05.at:31:
16365 TEST_TAR_FORMAT=oldgnu
16366 export TEST_TAR_FORMAT
16367 TAR_OPTIONS=\"-H oldgnu\"
16371 genfile -l 1024 -f en
16372 genfile -l 1024 -f to
16374 tar cf archive en to
16375 # Make sure we don't use bogus blocking factor.
16376 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16377 tar --file archive --blocking-factor=20 --delete tre
16380 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:31"
16384 TEST_TAR_FORMAT=oldgnu
16385 export TEST_TAR_FORMAT
16386 TAR_OPTIONS="-H oldgnu"
16390 genfile -l 1024 -f en
16391 genfile -l 1024 -f to
16393 tar cf archive en to
16394 # Make sure we don't use bogus blocking factor.
16395 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16396 tar --file archive --blocking-factor=20 --delete tre
16399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16400 at_status=$? at_failed=false
16402 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
16403 tar: Exiting with failure status due to previous errors
16405 $at_diff - "$at_stderr" || at_failed=:
16406 echo >>"$at_stdout"; $as_echo "en
16409 $at_diff - "$at_stdout" || at_failed=:
16410 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:31"
16411 $at_failed && at_fn_log_failure
16415 $as_echo "$at_srcdir/delete05.at:31:
16418 TEST_TAR_FORMAT=ustar
16419 export TEST_TAR_FORMAT
16420 TAR_OPTIONS=\"-H ustar\"
16424 genfile -l 1024 -f en
16425 genfile -l 1024 -f to
16427 tar cf archive en to
16428 # Make sure we don't use bogus blocking factor.
16429 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16430 tar --file archive --blocking-factor=20 --delete tre
16433 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:31"
16437 TEST_TAR_FORMAT=ustar
16438 export TEST_TAR_FORMAT
16439 TAR_OPTIONS="-H ustar"
16443 genfile -l 1024 -f en
16444 genfile -l 1024 -f to
16446 tar cf archive en to
16447 # Make sure we don't use bogus blocking factor.
16448 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16449 tar --file archive --blocking-factor=20 --delete tre
16452 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16453 at_status=$? at_failed=false
16455 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
16456 tar: Exiting with failure status due to previous errors
16458 $at_diff - "$at_stderr" || at_failed=:
16459 echo >>"$at_stdout"; $as_echo "en
16462 $at_diff - "$at_stdout" || at_failed=:
16463 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:31"
16464 $at_failed && at_fn_log_failure
16468 $as_echo "$at_srcdir/delete05.at:31:
16471 TEST_TAR_FORMAT=posix
16472 export TEST_TAR_FORMAT
16473 TAR_OPTIONS=\"-H posix\"
16477 genfile -l 1024 -f en
16478 genfile -l 1024 -f to
16480 tar cf archive en to
16481 # Make sure we don't use bogus blocking factor.
16482 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16483 tar --file archive --blocking-factor=20 --delete tre
16486 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:31"
16490 TEST_TAR_FORMAT=posix
16491 export TEST_TAR_FORMAT
16492 TAR_OPTIONS="-H posix"
16496 genfile -l 1024 -f en
16497 genfile -l 1024 -f to
16499 tar cf archive en to
16500 # Make sure we don't use bogus blocking factor.
16501 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16502 tar --file archive --blocking-factor=20 --delete tre
16505 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16506 at_status=$? at_failed=false
16508 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
16509 tar: Exiting with failure status due to previous errors
16511 $at_diff - "$at_stderr" || at_failed=:
16512 echo >>"$at_stdout"; $as_echo "en
16515 $at_diff - "$at_stdout" || at_failed=:
16516 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:31"
16517 $at_failed && at_fn_log_failure
16521 $as_echo "$at_srcdir/delete05.at:31:
16524 TEST_TAR_FORMAT=gnu
16525 export TEST_TAR_FORMAT
16526 TAR_OPTIONS=\"-H gnu\"
16530 genfile -l 1024 -f en
16531 genfile -l 1024 -f to
16533 tar cf archive en to
16534 # Make sure we don't use bogus blocking factor.
16535 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16536 tar --file archive --blocking-factor=20 --delete tre
16539 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:31"
16543 TEST_TAR_FORMAT=gnu
16544 export TEST_TAR_FORMAT
16545 TAR_OPTIONS="-H gnu"
16549 genfile -l 1024 -f en
16550 genfile -l 1024 -f to
16552 tar cf archive en to
16553 # Make sure we don't use bogus blocking factor.
16554 # GNU tar up to and including 1.14.91 produced an empty archive this way:
16555 tar --file archive --blocking-factor=20 --delete tre
16558 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16559 at_status=$? at_failed=false
16561 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
16562 tar: Exiting with failure status due to previous errors
16564 $at_diff - "$at_stderr" || at_failed=:
16565 echo >>"$at_stdout"; $as_echo "en
16568 $at_diff - "$at_stdout" || at_failed=:
16569 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:31"
16570 $at_failed && at_fn_log_failure
16577 $at_times_p && times >"$at_times_file"
16578 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16579 read at_status <"$at_status_file"
16582 at_fn_group_banner 64 'extrac01.at:24' \
16583 "extract over an existing directory" " " 9
16585 test -f $XFAILFILE && at_xfail=yes
16587 $as_echo "64. $at_setup_line: testing $at_desc ..."
16595 $as_echo "$at_srcdir/extrac01.at:27:
16599 export TEST_TAR_FORMAT
16600 TAR_OPTIONS=\"-H v7\"
16605 touch directory/file
16606 tar cf archive directory || exit 1
16607 tar xf archive --warning=no-timestamp || exit 1
16609 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:27"
16614 export TEST_TAR_FORMAT
16615 TAR_OPTIONS="-H v7"
16620 touch directory/file
16621 tar cf archive directory || exit 1
16622 tar xf archive --warning=no-timestamp || exit 1
16624 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16625 at_status=$? at_failed=false
16627 at_fn_diff_devnull "$at_stderr" || at_failed=:
16628 at_fn_diff_devnull "$at_stdout" || at_failed=:
16629 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:27"
16630 $at_failed && at_fn_log_failure
16634 $as_echo "$at_srcdir/extrac01.at:27:
16637 TEST_TAR_FORMAT=oldgnu
16638 export TEST_TAR_FORMAT
16639 TAR_OPTIONS=\"-H oldgnu\"
16644 touch directory/file
16645 tar cf archive directory || exit 1
16646 tar xf archive --warning=no-timestamp || exit 1
16648 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:27"
16652 TEST_TAR_FORMAT=oldgnu
16653 export TEST_TAR_FORMAT
16654 TAR_OPTIONS="-H oldgnu"
16659 touch directory/file
16660 tar cf archive directory || exit 1
16661 tar xf archive --warning=no-timestamp || exit 1
16663 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16664 at_status=$? at_failed=false
16666 at_fn_diff_devnull "$at_stderr" || at_failed=:
16667 at_fn_diff_devnull "$at_stdout" || at_failed=:
16668 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:27"
16669 $at_failed && at_fn_log_failure
16673 $as_echo "$at_srcdir/extrac01.at:27:
16676 TEST_TAR_FORMAT=ustar
16677 export TEST_TAR_FORMAT
16678 TAR_OPTIONS=\"-H ustar\"
16683 touch directory/file
16684 tar cf archive directory || exit 1
16685 tar xf archive --warning=no-timestamp || exit 1
16687 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:27"
16691 TEST_TAR_FORMAT=ustar
16692 export TEST_TAR_FORMAT
16693 TAR_OPTIONS="-H ustar"
16698 touch directory/file
16699 tar cf archive directory || exit 1
16700 tar xf archive --warning=no-timestamp || exit 1
16702 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16703 at_status=$? at_failed=false
16705 at_fn_diff_devnull "$at_stderr" || at_failed=:
16706 at_fn_diff_devnull "$at_stdout" || at_failed=:
16707 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:27"
16708 $at_failed && at_fn_log_failure
16712 $as_echo "$at_srcdir/extrac01.at:27:
16715 TEST_TAR_FORMAT=posix
16716 export TEST_TAR_FORMAT
16717 TAR_OPTIONS=\"-H posix\"
16722 touch directory/file
16723 tar cf archive directory || exit 1
16724 tar xf archive --warning=no-timestamp || exit 1
16726 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:27"
16730 TEST_TAR_FORMAT=posix
16731 export TEST_TAR_FORMAT
16732 TAR_OPTIONS="-H posix"
16737 touch directory/file
16738 tar cf archive directory || exit 1
16739 tar xf archive --warning=no-timestamp || exit 1
16741 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16742 at_status=$? at_failed=false
16744 at_fn_diff_devnull "$at_stderr" || at_failed=:
16745 at_fn_diff_devnull "$at_stdout" || at_failed=:
16746 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:27"
16747 $at_failed && at_fn_log_failure
16751 $as_echo "$at_srcdir/extrac01.at:27:
16754 TEST_TAR_FORMAT=gnu
16755 export TEST_TAR_FORMAT
16756 TAR_OPTIONS=\"-H gnu\"
16761 touch directory/file
16762 tar cf archive directory || exit 1
16763 tar xf archive --warning=no-timestamp || exit 1
16765 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:27"
16769 TEST_TAR_FORMAT=gnu
16770 export TEST_TAR_FORMAT
16771 TAR_OPTIONS="-H gnu"
16776 touch directory/file
16777 tar cf archive directory || exit 1
16778 tar xf archive --warning=no-timestamp || exit 1
16780 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16781 at_status=$? at_failed=false
16783 at_fn_diff_devnull "$at_stderr" || at_failed=:
16784 at_fn_diff_devnull "$at_stdout" || at_failed=:
16785 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:27"
16786 $at_failed && at_fn_log_failure
16793 $at_times_p && times >"$at_times_file"
16794 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16795 read at_status <"$at_status_file"
16798 at_fn_group_banner 65 'extrac02.at:24' \
16799 "extracting symlinks over an existing file" " " 9
16801 test -f $XFAILFILE && at_xfail=yes
16803 $as_echo "65. $at_setup_line: testing $at_desc ..."
16808 # FIXME: Skip if symlinks are not supported on the system
16813 $as_echo "$at_srcdir/extrac02.at:29:
16817 export TEST_TAR_FORMAT
16818 TAR_OPTIONS=\"-H v7\"
16823 ln -s file link 2> /dev/null || ln file link
16824 tar cf archive link
16829 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:29"
16834 export TEST_TAR_FORMAT
16835 TAR_OPTIONS="-H v7"
16840 ln -s file link 2> /dev/null || ln file link
16841 tar cf archive link
16846 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16847 at_status=$? at_failed=false
16849 at_fn_diff_devnull "$at_stderr" || at_failed=:
16850 at_fn_diff_devnull "$at_stdout" || at_failed=:
16851 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:29"
16852 $at_failed && at_fn_log_failure
16856 $as_echo "$at_srcdir/extrac02.at:29:
16859 TEST_TAR_FORMAT=oldgnu
16860 export TEST_TAR_FORMAT
16861 TAR_OPTIONS=\"-H oldgnu\"
16866 ln -s file link 2> /dev/null || ln file link
16867 tar cf archive link
16872 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:29"
16876 TEST_TAR_FORMAT=oldgnu
16877 export TEST_TAR_FORMAT
16878 TAR_OPTIONS="-H oldgnu"
16883 ln -s file link 2> /dev/null || ln file link
16884 tar cf archive link
16889 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16890 at_status=$? at_failed=false
16892 at_fn_diff_devnull "$at_stderr" || at_failed=:
16893 at_fn_diff_devnull "$at_stdout" || at_failed=:
16894 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:29"
16895 $at_failed && at_fn_log_failure
16899 $as_echo "$at_srcdir/extrac02.at:29:
16902 TEST_TAR_FORMAT=ustar
16903 export TEST_TAR_FORMAT
16904 TAR_OPTIONS=\"-H ustar\"
16909 ln -s file link 2> /dev/null || ln file link
16910 tar cf archive link
16915 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:29"
16919 TEST_TAR_FORMAT=ustar
16920 export TEST_TAR_FORMAT
16921 TAR_OPTIONS="-H ustar"
16926 ln -s file link 2> /dev/null || ln file link
16927 tar cf archive link
16932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16933 at_status=$? at_failed=false
16935 at_fn_diff_devnull "$at_stderr" || at_failed=:
16936 at_fn_diff_devnull "$at_stdout" || at_failed=:
16937 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:29"
16938 $at_failed && at_fn_log_failure
16942 $as_echo "$at_srcdir/extrac02.at:29:
16945 TEST_TAR_FORMAT=posix
16946 export TEST_TAR_FORMAT
16947 TAR_OPTIONS=\"-H posix\"
16952 ln -s file link 2> /dev/null || ln file link
16953 tar cf archive link
16958 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:29"
16962 TEST_TAR_FORMAT=posix
16963 export TEST_TAR_FORMAT
16964 TAR_OPTIONS="-H posix"
16969 ln -s file link 2> /dev/null || ln file link
16970 tar cf archive link
16975 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16976 at_status=$? at_failed=false
16978 at_fn_diff_devnull "$at_stderr" || at_failed=:
16979 at_fn_diff_devnull "$at_stdout" || at_failed=:
16980 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:29"
16981 $at_failed && at_fn_log_failure
16985 $as_echo "$at_srcdir/extrac02.at:29:
16988 TEST_TAR_FORMAT=gnu
16989 export TEST_TAR_FORMAT
16990 TAR_OPTIONS=\"-H gnu\"
16995 ln -s file link 2> /dev/null || ln file link
16996 tar cf archive link
17001 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:29"
17005 TEST_TAR_FORMAT=gnu
17006 export TEST_TAR_FORMAT
17007 TAR_OPTIONS="-H gnu"
17012 ln -s file link 2> /dev/null || ln file link
17013 tar cf archive link
17018 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17019 at_status=$? at_failed=false
17021 at_fn_diff_devnull "$at_stderr" || at_failed=:
17022 at_fn_diff_devnull "$at_stdout" || at_failed=:
17023 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:29"
17024 $at_failed && at_fn_log_failure
17031 $at_times_p && times >"$at_times_file"
17032 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17033 read at_status <"$at_status_file"
17036 at_fn_group_banner 66 'extrac03.at:23' \
17037 "extraction loops" " " 9
17039 test -f $XFAILFILE && at_xfail=yes
17041 $as_echo "66. $at_setup_line: testing $at_desc ..."
17049 $as_echo "$at_srcdir/extrac03.at:26:
17053 export TEST_TAR_FORMAT
17054 TAR_OPTIONS=\"-H v7\"
17059 tar -cPvf archive directory/../directory
17061 tar -xPvf archive --warning=no-timestamp)"
17062 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
17067 export TEST_TAR_FORMAT
17068 TAR_OPTIONS="-H v7"
17073 tar -cPvf archive directory/../directory
17075 tar -xPvf archive --warning=no-timestamp)
17076 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17077 at_status=$? at_failed=false
17079 at_fn_diff_devnull "$at_stderr" || at_failed=:
17080 echo >>"$at_stdout"; $as_echo "directory/../directory/
17082 directory/../directory/
17084 $at_diff - "$at_stdout" || at_failed=:
17085 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
17086 $at_failed && at_fn_log_failure
17090 $as_echo "$at_srcdir/extrac03.at:26:
17093 TEST_TAR_FORMAT=oldgnu
17094 export TEST_TAR_FORMAT
17095 TAR_OPTIONS=\"-H oldgnu\"
17100 tar -cPvf archive directory/../directory
17102 tar -xPvf archive --warning=no-timestamp)"
17103 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
17107 TEST_TAR_FORMAT=oldgnu
17108 export TEST_TAR_FORMAT
17109 TAR_OPTIONS="-H oldgnu"
17114 tar -cPvf archive directory/../directory
17116 tar -xPvf archive --warning=no-timestamp)
17117 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17118 at_status=$? at_failed=false
17120 at_fn_diff_devnull "$at_stderr" || at_failed=:
17121 echo >>"$at_stdout"; $as_echo "directory/../directory/
17123 directory/../directory/
17125 $at_diff - "$at_stdout" || at_failed=:
17126 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
17127 $at_failed && at_fn_log_failure
17131 $as_echo "$at_srcdir/extrac03.at:26:
17134 TEST_TAR_FORMAT=ustar
17135 export TEST_TAR_FORMAT
17136 TAR_OPTIONS=\"-H ustar\"
17141 tar -cPvf archive directory/../directory
17143 tar -xPvf archive --warning=no-timestamp)"
17144 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
17148 TEST_TAR_FORMAT=ustar
17149 export TEST_TAR_FORMAT
17150 TAR_OPTIONS="-H ustar"
17155 tar -cPvf archive directory/../directory
17157 tar -xPvf archive --warning=no-timestamp)
17158 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17159 at_status=$? at_failed=false
17161 at_fn_diff_devnull "$at_stderr" || at_failed=:
17162 echo >>"$at_stdout"; $as_echo "directory/../directory/
17164 directory/../directory/
17166 $at_diff - "$at_stdout" || at_failed=:
17167 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
17168 $at_failed && at_fn_log_failure
17172 $as_echo "$at_srcdir/extrac03.at:26:
17175 TEST_TAR_FORMAT=posix
17176 export TEST_TAR_FORMAT
17177 TAR_OPTIONS=\"-H posix\"
17182 tar -cPvf archive directory/../directory
17184 tar -xPvf archive --warning=no-timestamp)"
17185 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
17189 TEST_TAR_FORMAT=posix
17190 export TEST_TAR_FORMAT
17191 TAR_OPTIONS="-H posix"
17196 tar -cPvf archive directory/../directory
17198 tar -xPvf archive --warning=no-timestamp)
17199 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17200 at_status=$? at_failed=false
17202 at_fn_diff_devnull "$at_stderr" || at_failed=:
17203 echo >>"$at_stdout"; $as_echo "directory/../directory/
17205 directory/../directory/
17207 $at_diff - "$at_stdout" || at_failed=:
17208 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
17209 $at_failed && at_fn_log_failure
17213 $as_echo "$at_srcdir/extrac03.at:26:
17216 TEST_TAR_FORMAT=gnu
17217 export TEST_TAR_FORMAT
17218 TAR_OPTIONS=\"-H gnu\"
17223 tar -cPvf archive directory/../directory
17225 tar -xPvf archive --warning=no-timestamp)"
17226 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
17230 TEST_TAR_FORMAT=gnu
17231 export TEST_TAR_FORMAT
17232 TAR_OPTIONS="-H gnu"
17237 tar -cPvf archive directory/../directory
17239 tar -xPvf archive --warning=no-timestamp)
17240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17241 at_status=$? at_failed=false
17243 at_fn_diff_devnull "$at_stderr" || at_failed=:
17244 echo >>"$at_stdout"; $as_echo "directory/../directory/
17246 directory/../directory/
17248 $at_diff - "$at_stdout" || at_failed=:
17249 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
17250 $at_failed && at_fn_log_failure
17257 $at_times_p && times >"$at_times_file"
17258 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17259 read at_status <"$at_status_file"
17262 at_fn_group_banner 67 'extrac04.at:24' \
17263 "extract + fnmatch" " " 9
17265 test -f $XFAILFILE && at_xfail=yes
17267 $as_echo "67. $at_setup_line: testing $at_desc ..."
17275 $as_echo "$at_srcdir/extrac04.at:27:
17279 export TEST_TAR_FORMAT
17280 TAR_OPTIONS=\"-H v7\"
17285 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
17289 mkdir directory/subdirectory
17290 touch directory/file1
17291 touch directory/file2
17292 touch directory/subdirectory/file1
17293 touch directory/subdirectory/file2
17294 tar -cf archive ./file1 directory
17296 --exclude='./*1' \\
17297 --exclude='d*/*1' \\
17298 --exclude='d*/s*/*2' | sort
17300 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:27"
17305 export TEST_TAR_FORMAT
17306 TAR_OPTIONS="-H v7"
17311 test -z "`sort < /dev/null 2>&1`" || exit 77
17315 mkdir directory/subdirectory
17316 touch directory/file1
17317 touch directory/file2
17318 touch directory/subdirectory/file1
17319 touch directory/subdirectory/file2
17320 tar -cf archive ./file1 directory
17323 --exclude='d*/*1' \
17324 --exclude='d*/s*/*2' | sort
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 "directory/
17332 directory/subdirectory/
17334 $at_diff - "$at_stdout" || at_failed=:
17335 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:27"
17336 $at_failed && at_fn_log_failure
17340 $as_echo "$at_srcdir/extrac04.at:27:
17343 TEST_TAR_FORMAT=oldgnu
17344 export TEST_TAR_FORMAT
17345 TAR_OPTIONS=\"-H oldgnu\"
17350 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
17354 mkdir directory/subdirectory
17355 touch directory/file1
17356 touch directory/file2
17357 touch directory/subdirectory/file1
17358 touch directory/subdirectory/file2
17359 tar -cf archive ./file1 directory
17361 --exclude='./*1' \\
17362 --exclude='d*/*1' \\
17363 --exclude='d*/s*/*2' | sort
17365 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:27"
17369 TEST_TAR_FORMAT=oldgnu
17370 export TEST_TAR_FORMAT
17371 TAR_OPTIONS="-H oldgnu"
17376 test -z "`sort < /dev/null 2>&1`" || exit 77
17380 mkdir directory/subdirectory
17381 touch directory/file1
17382 touch directory/file2
17383 touch directory/subdirectory/file1
17384 touch directory/subdirectory/file2
17385 tar -cf archive ./file1 directory
17388 --exclude='d*/*1' \
17389 --exclude='d*/s*/*2' | sort
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 "directory/
17397 directory/subdirectory/
17399 $at_diff - "$at_stdout" || at_failed=:
17400 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:27"
17401 $at_failed && at_fn_log_failure
17405 $as_echo "$at_srcdir/extrac04.at:27:
17408 TEST_TAR_FORMAT=ustar
17409 export TEST_TAR_FORMAT
17410 TAR_OPTIONS=\"-H ustar\"
17415 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
17419 mkdir directory/subdirectory
17420 touch directory/file1
17421 touch directory/file2
17422 touch directory/subdirectory/file1
17423 touch directory/subdirectory/file2
17424 tar -cf archive ./file1 directory
17426 --exclude='./*1' \\
17427 --exclude='d*/*1' \\
17428 --exclude='d*/s*/*2' | sort
17430 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:27"
17434 TEST_TAR_FORMAT=ustar
17435 export TEST_TAR_FORMAT
17436 TAR_OPTIONS="-H ustar"
17441 test -z "`sort < /dev/null 2>&1`" || exit 77
17445 mkdir directory/subdirectory
17446 touch directory/file1
17447 touch directory/file2
17448 touch directory/subdirectory/file1
17449 touch directory/subdirectory/file2
17450 tar -cf archive ./file1 directory
17453 --exclude='d*/*1' \
17454 --exclude='d*/s*/*2' | sort
17456 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17457 at_status=$? at_failed=false
17459 at_fn_diff_devnull "$at_stderr" || at_failed=:
17460 echo >>"$at_stdout"; $as_echo "directory/
17462 directory/subdirectory/
17464 $at_diff - "$at_stdout" || at_failed=:
17465 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:27"
17466 $at_failed && at_fn_log_failure
17470 $as_echo "$at_srcdir/extrac04.at:27:
17473 TEST_TAR_FORMAT=posix
17474 export TEST_TAR_FORMAT
17475 TAR_OPTIONS=\"-H posix\"
17480 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
17484 mkdir directory/subdirectory
17485 touch directory/file1
17486 touch directory/file2
17487 touch directory/subdirectory/file1
17488 touch directory/subdirectory/file2
17489 tar -cf archive ./file1 directory
17491 --exclude='./*1' \\
17492 --exclude='d*/*1' \\
17493 --exclude='d*/s*/*2' | sort
17495 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:27"
17499 TEST_TAR_FORMAT=posix
17500 export TEST_TAR_FORMAT
17501 TAR_OPTIONS="-H posix"
17506 test -z "`sort < /dev/null 2>&1`" || exit 77
17510 mkdir directory/subdirectory
17511 touch directory/file1
17512 touch directory/file2
17513 touch directory/subdirectory/file1
17514 touch directory/subdirectory/file2
17515 tar -cf archive ./file1 directory
17518 --exclude='d*/*1' \
17519 --exclude='d*/s*/*2' | sort
17521 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17522 at_status=$? at_failed=false
17524 at_fn_diff_devnull "$at_stderr" || at_failed=:
17525 echo >>"$at_stdout"; $as_echo "directory/
17527 directory/subdirectory/
17529 $at_diff - "$at_stdout" || at_failed=:
17530 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:27"
17531 $at_failed && at_fn_log_failure
17535 $as_echo "$at_srcdir/extrac04.at:27:
17538 TEST_TAR_FORMAT=gnu
17539 export TEST_TAR_FORMAT
17540 TAR_OPTIONS=\"-H gnu\"
17545 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
17549 mkdir directory/subdirectory
17550 touch directory/file1
17551 touch directory/file2
17552 touch directory/subdirectory/file1
17553 touch directory/subdirectory/file2
17554 tar -cf archive ./file1 directory
17556 --exclude='./*1' \\
17557 --exclude='d*/*1' \\
17558 --exclude='d*/s*/*2' | sort
17560 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:27"
17564 TEST_TAR_FORMAT=gnu
17565 export TEST_TAR_FORMAT
17566 TAR_OPTIONS="-H gnu"
17571 test -z "`sort < /dev/null 2>&1`" || exit 77
17575 mkdir directory/subdirectory
17576 touch directory/file1
17577 touch directory/file2
17578 touch directory/subdirectory/file1
17579 touch directory/subdirectory/file2
17580 tar -cf archive ./file1 directory
17583 --exclude='d*/*1' \
17584 --exclude='d*/s*/*2' | sort
17586 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17587 at_status=$? at_failed=false
17589 at_fn_diff_devnull "$at_stderr" || at_failed=:
17590 echo >>"$at_stdout"; $as_echo "directory/
17592 directory/subdirectory/
17594 $at_diff - "$at_stdout" || at_failed=:
17595 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:27"
17596 $at_failed && at_fn_log_failure
17603 $at_times_p && times >"$at_times_file"
17604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17605 read at_status <"$at_status_file"
17608 at_fn_group_banner 68 'extrac05.at:31' \
17609 "extracting selected members from pax" " " 9
17611 test -f $XFAILFILE && at_xfail=yes
17613 $as_echo "68. $at_setup_line: testing $at_desc ..."
17618 cat >list <<'_ATEOF'
17627 $as_echo "$at_srcdir/extrac05.at:39:
17630 TEST_TAR_FORMAT=posix
17631 export TEST_TAR_FORMAT
17632 TAR_OPTIONS=\"-H posix\"
17636 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
17637 genfile --length 118 --file jeden
17638 genfile --length 223 --file dwa
17639 genfile --length 517 --file trzy
17640 genfile --length 110 --file cztery
17642 tar cf archive jeden dwa trzy cztery || exit 1
17647 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
17651 at_fn_check_prepare_notrace 'an embedded newline' "extrac05.at:39"
17655 TEST_TAR_FORMAT=posix
17656 export TEST_TAR_FORMAT
17657 TAR_OPTIONS="-H posix"
17661 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
17662 genfile --length 118 --file jeden
17663 genfile --length 223 --file dwa
17664 genfile --length 517 --file trzy
17665 genfile --length 110 --file cztery
17667 tar cf archive jeden dwa trzy cztery || exit 1
17672 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
17676 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17677 at_status=$? at_failed=false
17679 at_fn_diff_devnull "$at_stderr" || at_failed=:
17680 echo >>"$at_stdout"; $as_echo "jeden
17683 $at_diff - "$at_stdout" || at_failed=:
17684 at_fn_check_status 0 $at_status "$at_srcdir/extrac05.at:39"
17685 $at_failed && at_fn_log_failure
17692 $at_times_p && times >"$at_times_file"
17693 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17694 read at_status <"$at_status_file"
17697 at_fn_group_banner 69 'extrac06.at:34' \
17698 "mode of extracted directories" " " 9
17700 test -f $XFAILFILE && at_xfail=yes
17702 $as_echo "69. $at_setup_line: testing $at_desc ..."
17710 $as_echo "$at_srcdir/extrac06.at:37:
17714 export TEST_TAR_FORMAT
17715 TAR_OPTIONS=\"-H v7\"
17723 # Make sure user's umask is honored, even if we are superuser
17724 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
17726 # Create a directory
17728 chmod 777 directory
17729 genfile --stat=mode:777 directory
17732 tar cf arc directory
17734 # Change its permissions ...
17735 chmod 755 directory
17736 genfile --stat=mode:777 directory
17738 # ... and attempt to restore it twice
17739 tar xf arc directory --warning=no-timestamp
17740 genfile --stat=mode:777 directory
17742 tar xf arc directory --warning=no-timestamp
17743 genfile --stat=mode:777 directory
17745 # After both restores, the directory mode should be 755
17747 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
17752 export TEST_TAR_FORMAT
17753 TAR_OPTIONS="-H v7"
17761 # Make sure user's umask is honored, even if we are superuser
17762 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
17764 # Create a directory
17766 chmod 777 directory
17767 genfile --stat=mode:777 directory
17770 tar cf arc directory
17772 # Change its permissions ...
17773 chmod 755 directory
17774 genfile --stat=mode:777 directory
17776 # ... and attempt to restore it twice
17777 tar xf arc directory --warning=no-timestamp
17778 genfile --stat=mode:777 directory
17780 tar xf arc directory --warning=no-timestamp
17781 genfile --stat=mode:777 directory
17783 # After both restores, the directory mode should be 755
17785 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17786 at_status=$? at_failed=false
17788 at_fn_diff_devnull "$at_stderr" || at_failed=:
17789 echo >>"$at_stdout"; $as_echo "777
17794 $at_diff - "$at_stdout" || at_failed=:
17795 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
17796 $at_failed && at_fn_log_failure
17800 $as_echo "$at_srcdir/extrac06.at:37:
17803 TEST_TAR_FORMAT=oldgnu
17804 export TEST_TAR_FORMAT
17805 TAR_OPTIONS=\"-H oldgnu\"
17813 # Make sure user's umask is honored, even if we are superuser
17814 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
17816 # Create a directory
17818 chmod 777 directory
17819 genfile --stat=mode:777 directory
17822 tar cf arc directory
17824 # Change its permissions ...
17825 chmod 755 directory
17826 genfile --stat=mode:777 directory
17828 # ... and attempt to restore it twice
17829 tar xf arc directory --warning=no-timestamp
17830 genfile --stat=mode:777 directory
17832 tar xf arc directory --warning=no-timestamp
17833 genfile --stat=mode:777 directory
17835 # After both restores, the directory mode should be 755
17837 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
17841 TEST_TAR_FORMAT=oldgnu
17842 export TEST_TAR_FORMAT
17843 TAR_OPTIONS="-H oldgnu"
17851 # Make sure user's umask is honored, even if we are superuser
17852 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
17854 # Create a directory
17856 chmod 777 directory
17857 genfile --stat=mode:777 directory
17860 tar cf arc directory
17862 # Change its permissions ...
17863 chmod 755 directory
17864 genfile --stat=mode:777 directory
17866 # ... and attempt to restore it twice
17867 tar xf arc directory --warning=no-timestamp
17868 genfile --stat=mode:777 directory
17870 tar xf arc directory --warning=no-timestamp
17871 genfile --stat=mode:777 directory
17873 # After both restores, the directory mode should be 755
17875 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17876 at_status=$? at_failed=false
17878 at_fn_diff_devnull "$at_stderr" || at_failed=:
17879 echo >>"$at_stdout"; $as_echo "777
17884 $at_diff - "$at_stdout" || at_failed=:
17885 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
17886 $at_failed && at_fn_log_failure
17890 $as_echo "$at_srcdir/extrac06.at:37:
17893 TEST_TAR_FORMAT=ustar
17894 export TEST_TAR_FORMAT
17895 TAR_OPTIONS=\"-H ustar\"
17903 # Make sure user's umask is honored, even if we are superuser
17904 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
17906 # Create a directory
17908 chmod 777 directory
17909 genfile --stat=mode:777 directory
17912 tar cf arc directory
17914 # Change its permissions ...
17915 chmod 755 directory
17916 genfile --stat=mode:777 directory
17918 # ... and attempt to restore it twice
17919 tar xf arc directory --warning=no-timestamp
17920 genfile --stat=mode:777 directory
17922 tar xf arc directory --warning=no-timestamp
17923 genfile --stat=mode:777 directory
17925 # After both restores, the directory mode should be 755
17927 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
17931 TEST_TAR_FORMAT=ustar
17932 export TEST_TAR_FORMAT
17933 TAR_OPTIONS="-H ustar"
17941 # Make sure user's umask is honored, even if we are superuser
17942 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
17944 # Create a directory
17946 chmod 777 directory
17947 genfile --stat=mode:777 directory
17950 tar cf arc directory
17952 # Change its permissions ...
17953 chmod 755 directory
17954 genfile --stat=mode:777 directory
17956 # ... and attempt to restore it twice
17957 tar xf arc directory --warning=no-timestamp
17958 genfile --stat=mode:777 directory
17960 tar xf arc directory --warning=no-timestamp
17961 genfile --stat=mode:777 directory
17963 # After both restores, the directory mode should be 755
17965 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17966 at_status=$? at_failed=false
17968 at_fn_diff_devnull "$at_stderr" || at_failed=:
17969 echo >>"$at_stdout"; $as_echo "777
17974 $at_diff - "$at_stdout" || at_failed=:
17975 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
17976 $at_failed && at_fn_log_failure
17980 $as_echo "$at_srcdir/extrac06.at:37:
17983 TEST_TAR_FORMAT=posix
17984 export TEST_TAR_FORMAT
17985 TAR_OPTIONS=\"-H posix\"
17993 # Make sure user's umask is honored, even if we are superuser
17994 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
17996 # Create a directory
17998 chmod 777 directory
17999 genfile --stat=mode:777 directory
18002 tar cf arc directory
18004 # Change its permissions ...
18005 chmod 755 directory
18006 genfile --stat=mode:777 directory
18008 # ... and attempt to restore it twice
18009 tar xf arc directory --warning=no-timestamp
18010 genfile --stat=mode:777 directory
18012 tar xf arc directory --warning=no-timestamp
18013 genfile --stat=mode:777 directory
18015 # After both restores, the directory mode should be 755
18017 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
18021 TEST_TAR_FORMAT=posix
18022 export TEST_TAR_FORMAT
18023 TAR_OPTIONS="-H posix"
18031 # Make sure user's umask is honored, even if we are superuser
18032 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
18034 # Create a directory
18036 chmod 777 directory
18037 genfile --stat=mode:777 directory
18040 tar cf arc directory
18042 # Change its permissions ...
18043 chmod 755 directory
18044 genfile --stat=mode:777 directory
18046 # ... and attempt to restore it twice
18047 tar xf arc directory --warning=no-timestamp
18048 genfile --stat=mode:777 directory
18050 tar xf arc directory --warning=no-timestamp
18051 genfile --stat=mode:777 directory
18053 # After both restores, the directory mode should be 755
18055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18056 at_status=$? at_failed=false
18058 at_fn_diff_devnull "$at_stderr" || at_failed=:
18059 echo >>"$at_stdout"; $as_echo "777
18064 $at_diff - "$at_stdout" || at_failed=:
18065 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
18066 $at_failed && at_fn_log_failure
18070 $as_echo "$at_srcdir/extrac06.at:37:
18073 TEST_TAR_FORMAT=gnu
18074 export TEST_TAR_FORMAT
18075 TAR_OPTIONS=\"-H gnu\"
18083 # Make sure user's umask is honored, even if we are superuser
18084 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
18086 # Create a directory
18088 chmod 777 directory
18089 genfile --stat=mode:777 directory
18092 tar cf arc directory
18094 # Change its permissions ...
18095 chmod 755 directory
18096 genfile --stat=mode:777 directory
18098 # ... and attempt to restore it twice
18099 tar xf arc directory --warning=no-timestamp
18100 genfile --stat=mode:777 directory
18102 tar xf arc directory --warning=no-timestamp
18103 genfile --stat=mode:777 directory
18105 # After both restores, the directory mode should be 755
18107 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
18111 TEST_TAR_FORMAT=gnu
18112 export TEST_TAR_FORMAT
18113 TAR_OPTIONS="-H gnu"
18121 # Make sure user's umask is honored, even if we are superuser
18122 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
18124 # Create a directory
18126 chmod 777 directory
18127 genfile --stat=mode:777 directory
18130 tar cf arc directory
18132 # Change its permissions ...
18133 chmod 755 directory
18134 genfile --stat=mode:777 directory
18136 # ... and attempt to restore it twice
18137 tar xf arc directory --warning=no-timestamp
18138 genfile --stat=mode:777 directory
18140 tar xf arc directory --warning=no-timestamp
18141 genfile --stat=mode:777 directory
18143 # After both restores, the directory mode should be 755
18145 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18146 at_status=$? at_failed=false
18148 at_fn_diff_devnull "$at_stderr" || at_failed=:
18149 echo >>"$at_stdout"; $as_echo "777
18154 $at_diff - "$at_stdout" || at_failed=:
18155 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
18156 $at_failed && at_fn_log_failure
18163 $at_times_p && times >"$at_times_file"
18164 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18165 read at_status <"$at_status_file"
18168 at_fn_group_banner 70 'extrac07.at:27' \
18169 "extracting symlinks to a read-only dir" " " 9
18171 test -f $XFAILFILE && at_xfail=yes
18173 $as_echo "70. $at_setup_line: testing $at_desc ..."
18181 $as_echo "$at_srcdir/extrac07.at:30:
18184 TEST_TAR_FORMAT=ustar
18185 export TEST_TAR_FORMAT
18186 TAR_OPTIONS=\"-H ustar\"
18191 echo \"test\" > \$\$
18193 cat \$\$ > /dev/null 2>&1
18196 test \$result -eq 0 && exit 77
18199 echo Prepare the directory
18207 echo Create the archive
18208 tar cf archive dir || exit 1
18214 tar -C out -xvf archive
18216 at_fn_check_prepare_notrace 'an embedded newline' "extrac07.at:30"
18220 TEST_TAR_FORMAT=ustar
18221 export TEST_TAR_FORMAT
18222 TAR_OPTIONS="-H ustar"
18229 cat $$ > /dev/null 2>&1
18232 test $result -eq 0 && exit 77
18235 echo Prepare the directory
18243 echo Create the archive
18244 tar cf archive dir || exit 1
18250 tar -C out -xvf archive
18252 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18253 at_status=$? at_failed=false
18255 at_fn_diff_devnull "$at_stderr" || at_failed=:
18256 echo >>"$at_stdout"; $as_echo "Prepare the directory
18262 $at_diff - "$at_stdout" || at_failed=:
18263 at_fn_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
18264 $at_failed && at_fn_log_failure
18268 # Testing one format is enough
18271 $at_times_p && times >"$at_times_file"
18272 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18273 read at_status <"$at_status_file"
18276 at_fn_group_banner 71 'extrac08.at:33' \
18277 "restoring mode on existing directory" " " 9
18279 test -f $XFAILFILE && at_xfail=yes
18281 $as_echo "71. $at_setup_line: testing $at_desc ..."
18289 $as_echo "$at_srcdir/extrac08.at:36:
18293 export TEST_TAR_FORMAT
18294 TAR_OPTIONS=\"-H v7\"
18301 echo bla > dir/file
18302 tar cf test.tar dir
18304 tar xfv test.tar --warning=no-timestamp
18305 genfile --stat=mode.777 dir
18307 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
18312 export TEST_TAR_FORMAT
18313 TAR_OPTIONS="-H v7"
18320 echo bla > dir/file
18321 tar cf test.tar dir
18323 tar xfv test.tar --warning=no-timestamp
18324 genfile --stat=mode.777 dir
18326 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18327 at_status=$? at_failed=false
18329 at_fn_diff_devnull "$at_stderr" || at_failed=:
18330 echo >>"$at_stdout"; $as_echo "dir/
18334 $at_diff - "$at_stdout" || at_failed=:
18335 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
18336 $at_failed && at_fn_log_failure
18340 $as_echo "$at_srcdir/extrac08.at:36:
18343 TEST_TAR_FORMAT=oldgnu
18344 export TEST_TAR_FORMAT
18345 TAR_OPTIONS=\"-H oldgnu\"
18352 echo bla > dir/file
18353 tar cf test.tar dir
18355 tar xfv test.tar --warning=no-timestamp
18356 genfile --stat=mode.777 dir
18358 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
18362 TEST_TAR_FORMAT=oldgnu
18363 export TEST_TAR_FORMAT
18364 TAR_OPTIONS="-H oldgnu"
18371 echo bla > dir/file
18372 tar cf test.tar dir
18374 tar xfv test.tar --warning=no-timestamp
18375 genfile --stat=mode.777 dir
18377 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18378 at_status=$? at_failed=false
18380 at_fn_diff_devnull "$at_stderr" || at_failed=:
18381 echo >>"$at_stdout"; $as_echo "dir/
18385 $at_diff - "$at_stdout" || at_failed=:
18386 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
18387 $at_failed && at_fn_log_failure
18391 $as_echo "$at_srcdir/extrac08.at:36:
18394 TEST_TAR_FORMAT=ustar
18395 export TEST_TAR_FORMAT
18396 TAR_OPTIONS=\"-H ustar\"
18403 echo bla > dir/file
18404 tar cf test.tar dir
18406 tar xfv test.tar --warning=no-timestamp
18407 genfile --stat=mode.777 dir
18409 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
18413 TEST_TAR_FORMAT=ustar
18414 export TEST_TAR_FORMAT
18415 TAR_OPTIONS="-H ustar"
18422 echo bla > dir/file
18423 tar cf test.tar dir
18425 tar xfv test.tar --warning=no-timestamp
18426 genfile --stat=mode.777 dir
18428 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18429 at_status=$? at_failed=false
18431 at_fn_diff_devnull "$at_stderr" || at_failed=:
18432 echo >>"$at_stdout"; $as_echo "dir/
18436 $at_diff - "$at_stdout" || at_failed=:
18437 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
18438 $at_failed && at_fn_log_failure
18442 $as_echo "$at_srcdir/extrac08.at:36:
18445 TEST_TAR_FORMAT=posix
18446 export TEST_TAR_FORMAT
18447 TAR_OPTIONS=\"-H posix\"
18454 echo bla > dir/file
18455 tar cf test.tar dir
18457 tar xfv test.tar --warning=no-timestamp
18458 genfile --stat=mode.777 dir
18460 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
18464 TEST_TAR_FORMAT=posix
18465 export TEST_TAR_FORMAT
18466 TAR_OPTIONS="-H posix"
18473 echo bla > dir/file
18474 tar cf test.tar dir
18476 tar xfv test.tar --warning=no-timestamp
18477 genfile --stat=mode.777 dir
18479 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18480 at_status=$? at_failed=false
18482 at_fn_diff_devnull "$at_stderr" || at_failed=:
18483 echo >>"$at_stdout"; $as_echo "dir/
18487 $at_diff - "$at_stdout" || at_failed=:
18488 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
18489 $at_failed && at_fn_log_failure
18493 $as_echo "$at_srcdir/extrac08.at:36:
18496 TEST_TAR_FORMAT=gnu
18497 export TEST_TAR_FORMAT
18498 TAR_OPTIONS=\"-H gnu\"
18505 echo bla > dir/file
18506 tar cf test.tar dir
18508 tar xfv test.tar --warning=no-timestamp
18509 genfile --stat=mode.777 dir
18511 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
18515 TEST_TAR_FORMAT=gnu
18516 export TEST_TAR_FORMAT
18517 TAR_OPTIONS="-H gnu"
18524 echo bla > dir/file
18525 tar cf test.tar dir
18527 tar xfv test.tar --warning=no-timestamp
18528 genfile --stat=mode.777 dir
18530 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18531 at_status=$? at_failed=false
18533 at_fn_diff_devnull "$at_stderr" || at_failed=:
18534 echo >>"$at_stdout"; $as_echo "dir/
18538 $at_diff - "$at_stdout" || at_failed=:
18539 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
18540 $at_failed && at_fn_log_failure
18547 $at_times_p && times >"$at_times_file"
18548 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18549 read at_status <"$at_status_file"
18552 at_fn_group_banner 72 'extrac09.at:34' \
18553 "extracting even when . and .. are unreadable" " " 9
18555 test -f $XFAILFILE && at_xfail=yes
18557 $as_echo "72. $at_setup_line: testing $at_desc ..."
18565 $as_echo "$at_srcdir/extrac09.at:37:
18568 TEST_TAR_FORMAT=gnu
18569 export TEST_TAR_FORMAT
18570 TAR_OPTIONS=\"-H gnu\"
18575 echo \"test\" > \$\$
18577 cat \$\$ > /dev/null 2>&1
18580 test \$result -eq 0 && exit 77
18585 mkdir dir/sub/extract
18586 genfile --file dir/sub/f
18589 tar -cf archive.tar f
18592 tar -xvf archive.tar -C extract f
18595 cmp f extract/f || status=\$?
18598 at_fn_check_prepare_notrace 'an embedded newline' "extrac09.at:37"
18602 TEST_TAR_FORMAT=gnu
18603 export TEST_TAR_FORMAT
18604 TAR_OPTIONS="-H gnu"
18611 cat $$ > /dev/null 2>&1
18614 test $result -eq 0 && exit 77
18619 mkdir dir/sub/extract
18620 genfile --file dir/sub/f
18623 tar -cf archive.tar f
18626 tar -xvf archive.tar -C extract f
18629 cmp f extract/f || status=$?
18632 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18633 at_status=$? at_failed=false
18635 at_fn_diff_devnull "$at_stderr" || at_failed=:
18636 echo >>"$at_stdout"; $as_echo "f
18638 $at_diff - "$at_stdout" || at_failed=:
18639 at_fn_check_status 0 $at_status "$at_srcdir/extrac09.at:37"
18640 $at_failed && at_fn_log_failure
18647 $at_times_p && times >"$at_times_file"
18648 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18649 read at_status <"$at_status_file"
18652 at_fn_group_banner 73 'extrac10.at:29' \
18653 "-C and delayed setting of metadata" " " 9
18655 test -f $XFAILFILE && at_xfail=yes
18657 $as_echo "73. $at_setup_line: testing $at_desc ..."
18665 $as_echo "$at_srcdir/extrac10.at:32:
18668 TEST_TAR_FORMAT=gnu
18669 export TEST_TAR_FORMAT
18670 TAR_OPTIONS=\"-H gnu\"
18678 tar -cf archive.tar d e &&
18679 tar -xf archive.tar -C x d -C y e &&
18683 at_fn_check_prepare_notrace 'an embedded newline' "extrac10.at:32"
18687 TEST_TAR_FORMAT=gnu
18688 export TEST_TAR_FORMAT
18689 TAR_OPTIONS="-H gnu"
18697 tar -cf archive.tar d e &&
18698 tar -xf archive.tar -C x d -C y e &&
18702 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18703 at_status=$? at_failed=false
18705 at_fn_diff_devnull "$at_stderr" || at_failed=:
18706 at_fn_diff_devnull "$at_stdout" || at_failed=:
18707 at_fn_check_status 0 $at_status "$at_srcdir/extrac10.at:32"
18708 $at_failed && at_fn_log_failure
18715 $at_times_p && times >"$at_times_file"
18716 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18717 read at_status <"$at_status_file"
18720 at_fn_group_banner 74 'extrac11.at:25' \
18721 "scarce file descriptors" " " 9
18723 test -f $XFAILFILE && at_xfail=yes
18725 $as_echo "74. $at_setup_line: testing $at_desc ..."
18733 $as_echo "$at_srcdir/extrac11.at:28:
18736 TEST_TAR_FORMAT=gnu
18737 export TEST_TAR_FORMAT
18738 TAR_OPTIONS=\"-H gnu\"
18752 a/b/c/d/e/f/g/h/i/j
18753 a/b/c/d/e/f/g/h/i/j/k
18756 mkdir \$dirs dest1 dest2 dest3 || exit
18757 for dir in \$dirs; do
18758 for file in X Y Z; do
18759 echo \$file >\$dir/\$file || exit
18760 files=\"\$files \$file\"
18764 # Check that \"ulimit\" itself works. Close file descriptors before
18765 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
18766 # where they squirrel away dups of file descriptors into FD 10 and up
18767 # before closing the originals.
18768 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18770 tar -cf archive1.tar a &&
18771 tar -xf archive1.tar -C dest1 a
18774 ) >/dev/null 2>&1 ||
18777 # Another test that \"ulimit\" itself works:
18778 # tar should fail when completely starved of file descriptors.
18779 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18781 tar -cf archive2.tar a &&
18782 tar -xf archive2.tar -C dest2 a
18785 ) >/dev/null 2>&1 &&
18788 # Tar should work when there are few, but enough, file descriptors.
18789 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18791 tar -cf archive3.tar a &&
18792 tar -xf archive3.tar -C dest3 a
18794 diff -r a dest3/a >/dev/null 2>&1
18795 ) || { diff -r a dest3/a; exit 1; }
18797 at_fn_check_prepare_notrace 'an embedded newline' "extrac11.at:28"
18801 TEST_TAR_FORMAT=gnu
18802 export TEST_TAR_FORMAT
18803 TAR_OPTIONS="-H gnu"
18817 a/b/c/d/e/f/g/h/i/j
18818 a/b/c/d/e/f/g/h/i/j/k
18821 mkdir $dirs dest1 dest2 dest3 || exit
18822 for dir in $dirs; do
18823 for file in X Y Z; do
18824 echo $file >$dir/$file || exit
18825 files="$files $file"
18829 # Check that "ulimit" itself works. Close file descriptors before
18830 # invoking ulimit, to work around a bug (or a "feature") in some shells,
18831 # where they squirrel away dups of file descriptors into FD 10 and up
18832 # before closing the originals.
18833 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18835 tar -cf archive1.tar a &&
18836 tar -xf archive1.tar -C dest1 a
18839 ) >/dev/null 2>&1 ||
18842 # Another test that "ulimit" itself works:
18843 # tar should fail when completely starved of file descriptors.
18844 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18846 tar -cf archive2.tar a &&
18847 tar -xf archive2.tar -C dest2 a
18850 ) >/dev/null 2>&1 &&
18853 # Tar should work when there are few, but enough, file descriptors.
18854 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
18856 tar -cf archive3.tar a &&
18857 tar -xf archive3.tar -C dest3 a
18859 diff -r a dest3/a >/dev/null 2>&1
18860 ) || { diff -r a dest3/a; exit 1; }
18862 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18863 at_status=$? at_failed=false
18865 at_fn_diff_devnull "$at_stderr" || at_failed=:
18866 at_fn_diff_devnull "$at_stdout" || at_failed=:
18867 at_fn_check_status 0 $at_status "$at_srcdir/extrac11.at:28"
18868 $at_failed && at_fn_log_failure
18875 $at_times_p && times >"$at_times_file"
18876 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18877 read at_status <"$at_status_file"
18880 at_fn_group_banner 75 'extrac12.at:25' \
18881 "extract dot permissions" " " 9
18883 test -f $XFAILFILE && at_xfail=yes
18885 $as_echo "75. $at_setup_line: testing $at_desc ..."
18893 $as_echo "$at_srcdir/extrac12.at:28:
18896 TEST_TAR_FORMAT=gnu
18897 export TEST_TAR_FORMAT
18898 TAR_OPTIONS=\"-H gnu\"
18903 echo file1 >src/file1
18904 echo file2 >src/file2
18907 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
18908 tar -xf archive.tar -C dst &&
18909 cmp src/file1 dst/file1 &&
18910 cmp src/file2 dst/file2
18912 at_fn_check_prepare_notrace 'an embedded newline' "extrac12.at:28"
18916 TEST_TAR_FORMAT=gnu
18917 export TEST_TAR_FORMAT
18918 TAR_OPTIONS="-H gnu"
18923 echo file1 >src/file1
18924 echo file2 >src/file2
18927 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
18928 tar -xf archive.tar -C dst &&
18929 cmp src/file1 dst/file1 &&
18930 cmp src/file2 dst/file2
18932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18933 at_status=$? at_failed=false
18935 at_fn_diff_devnull "$at_stderr" || at_failed=:
18936 at_fn_diff_devnull "$at_stdout" || at_failed=:
18937 at_fn_check_status 0 $at_status "$at_srcdir/extrac12.at:28"
18938 $at_failed && at_fn_log_failure
18945 $at_times_p && times >"$at_times_file"
18946 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18947 read at_status <"$at_status_file"
18950 at_fn_group_banner 76 'extrac13.at:26' \
18951 "extract over symlinks" " " 9
18953 test -f $XFAILFILE && at_xfail=yes
18955 $as_echo "76. $at_setup_line: testing $at_desc ..."
18963 $as_echo "$at_srcdir/extrac13.at:29:
18966 TEST_TAR_FORMAT=gnu
18967 export TEST_TAR_FORMAT
18968 TAR_OPTIONS=\"-H gnu\"
18972 mkdir src dst1 dst2 dst3
18973 echo file1 >src/file1
18974 ln -s target1 dst1/file1
18975 echo target1 >dst1/target1
18976 echo target1 >target1
18978 tar -cf archive.tar -C src . &&
18979 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
18980 diff src/file1 dst1/file1 &&
18981 diff target1 dst1/target1
18983 ln -s target1 dst2/file1
18984 echo target1 >dst2/target1
18985 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
18986 diff src/file1 dst2/file1 &&
18987 diff target1 dst2/target1
18989 ln -s target1 dst3/file1
18990 echo target1 >dst3/target1
18991 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
18992 diff src/file1 dst3/file1 &&
18993 diff src/file1 dst3/target1
18995 at_fn_check_prepare_notrace 'an embedded newline' "extrac13.at:29"
18999 TEST_TAR_FORMAT=gnu
19000 export TEST_TAR_FORMAT
19001 TAR_OPTIONS="-H gnu"
19005 mkdir src dst1 dst2 dst3
19006 echo file1 >src/file1
19007 ln -s target1 dst1/file1
19008 echo target1 >dst1/target1
19009 echo target1 >target1
19011 tar -cf archive.tar -C src . &&
19012 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
19013 diff src/file1 dst1/file1 &&
19014 diff target1 dst1/target1
19016 ln -s target1 dst2/file1
19017 echo target1 >dst2/target1
19018 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
19019 diff src/file1 dst2/file1 &&
19020 diff target1 dst2/target1
19022 ln -s target1 dst3/file1
19023 echo target1 >dst3/target1
19024 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
19025 diff src/file1 dst3/file1 &&
19026 diff src/file1 dst3/target1
19028 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19029 at_status=$? at_failed=false
19031 at_fn_diff_devnull "$at_stderr" || at_failed=:
19032 at_fn_diff_devnull "$at_stdout" || at_failed=:
19033 at_fn_check_status 0 $at_status "$at_srcdir/extrac13.at:29"
19034 $at_failed && at_fn_log_failure
19041 $at_times_p && times >"$at_times_file"
19042 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19043 read at_status <"$at_status_file"
19046 at_fn_group_banner 77 'extrac14.at:25' \
19047 "extract -C symlink" " " 9
19049 test -f $XFAILFILE && at_xfail=yes
19051 $as_echo "77. $at_setup_line: testing $at_desc ..."
19059 $as_echo "$at_srcdir/extrac14.at:28:
19062 TEST_TAR_FORMAT=gnu
19063 export TEST_TAR_FORMAT
19064 TAR_OPTIONS=\"-H gnu\"
19071 tar -cf archive.tar foo &&
19072 tar -xf archive.tar -C symlink --warning=no-timestamp &&
19075 at_fn_check_prepare_notrace 'an embedded newline' "extrac14.at:28"
19079 TEST_TAR_FORMAT=gnu
19080 export TEST_TAR_FORMAT
19081 TAR_OPTIONS="-H gnu"
19088 tar -cf archive.tar foo &&
19089 tar -xf archive.tar -C symlink --warning=no-timestamp &&
19092 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19093 at_status=$? at_failed=false
19095 at_fn_diff_devnull "$at_stderr" || at_failed=:
19096 at_fn_diff_devnull "$at_stdout" || at_failed=:
19097 at_fn_check_status 0 $at_status "$at_srcdir/extrac14.at:28"
19098 $at_failed && at_fn_log_failure
19105 $at_times_p && times >"$at_times_file"
19106 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19107 read at_status <"$at_status_file"
19110 at_fn_group_banner 78 'extrac15.at:25' \
19111 "extract parent mkdir failure" " " 9
19113 test -f $XFAILFILE && at_xfail=yes
19115 $as_echo "78. $at_setup_line: testing $at_desc ..."
19123 $as_echo "$at_srcdir/extrac15.at:28:
19126 TEST_TAR_FORMAT=gnu
19127 export TEST_TAR_FORMAT
19128 TAR_OPTIONS=\"-H gnu\"
19133 echo \"test\" > \$\$
19135 cat \$\$ > /dev/null 2>&1
19138 test \$result -eq 0 && exit 77
19141 mkdir src src/a src/a/b dest dest/a
19145 tar -cf archive.tar -C src a/b/c &&
19146 if tar -xf archive.tar -C dest a/b/c
19151 at_fn_check_prepare_notrace 'an embedded newline' "extrac15.at:28"
19155 TEST_TAR_FORMAT=gnu
19156 export TEST_TAR_FORMAT
19157 TAR_OPTIONS="-H gnu"
19164 cat $$ > /dev/null 2>&1
19167 test $result -eq 0 && exit 77
19170 mkdir src src/a src/a/b dest dest/a
19174 tar -cf archive.tar -C src a/b/c &&
19175 if tar -xf archive.tar -C dest a/b/c
19180 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19181 at_status=$? at_failed=false
19183 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
19184 tar: a/b/c: Cannot open: No such file or directory
19185 tar: Exiting with failure status due to previous errors
19187 $at_diff - "$at_stderr" || at_failed=:
19188 at_fn_diff_devnull "$at_stdout" || at_failed=:
19189 at_fn_check_status 0 $at_status "$at_srcdir/extrac15.at:28"
19190 $at_failed && at_fn_log_failure
19197 $at_times_p && times >"$at_times_file"
19198 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19199 read at_status <"$at_status_file"
19202 at_fn_group_banner 79 'extrac16.at:26' \
19203 "extract empty directory with -C" " " 9
19205 test -f $XFAILFILE && at_xfail=yes
19207 $as_echo "79. $at_setup_line: testing $at_desc ..."
19215 $as_echo "$at_srcdir/extrac16.at:29:
19218 TEST_TAR_FORMAT=gnu
19219 export TEST_TAR_FORMAT
19220 TAR_OPTIONS=\"-H gnu\"
19224 mkdir src src/a src/a/b dest
19227 tar -cf archive.tar -C src a &&
19228 tar -xf archive.tar -C dest
19230 at_fn_check_prepare_notrace 'an embedded newline' "extrac16.at:29"
19234 TEST_TAR_FORMAT=gnu
19235 export TEST_TAR_FORMAT
19236 TAR_OPTIONS="-H gnu"
19240 mkdir src src/a src/a/b dest
19243 tar -cf archive.tar -C src a &&
19244 tar -xf archive.tar -C dest
19246 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19247 at_status=$? at_failed=false
19249 at_fn_diff_devnull "$at_stderr" || at_failed=:
19250 at_fn_diff_devnull "$at_stdout" || at_failed=:
19251 at_fn_check_status 0 $at_status "$at_srcdir/extrac16.at:29"
19252 $at_failed && at_fn_log_failure
19259 $at_times_p && times >"$at_times_file"
19260 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19261 read at_status <"$at_status_file"
19264 at_fn_group_banner 80 'extrac17.at:21' \
19265 "name matching/transformation ordering" " " 9
19267 test -f $XFAILFILE && at_xfail=yes
19269 $as_echo "80. $at_setup_line: testing $at_desc ..."
19274 # Description: Tar 1.24 changed the ordering of name matching and
19275 # name transformation so that the former saw already transformed
19276 # file names (see commit 9c194c99 and exclude06.at). This reverted
19277 # ordering made it impossible to match file names in certain cases.
19278 # In particular, the testcase below would not extract anything.
19280 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
19281 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
19282 # http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
19287 $as_echo "$at_srcdir/extrac17.at:34:
19291 export TEST_TAR_FORMAT
19292 TAR_OPTIONS=\"-H v7\"
19296 mkdir dir dir/subdir1 dir/subdir2 out
19297 genfile --file dir/subdir1/file1
19298 genfile --file dir/subdir2/file2
19302 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
19305 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
19310 export TEST_TAR_FORMAT
19311 TAR_OPTIONS="-H v7"
19315 mkdir dir dir/subdir1 dir/subdir2 out
19316 genfile --file dir/subdir1/file1
19317 genfile --file dir/subdir2/file2
19321 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
19324 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19325 at_status=$? at_failed=false
19327 at_fn_diff_devnull "$at_stderr" || at_failed=:
19328 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
19330 $at_diff - "$at_stdout" || at_failed=:
19331 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
19332 $at_failed && at_fn_log_failure
19336 $as_echo "$at_srcdir/extrac17.at:34:
19339 TEST_TAR_FORMAT=oldgnu
19340 export TEST_TAR_FORMAT
19341 TAR_OPTIONS=\"-H oldgnu\"
19345 mkdir dir dir/subdir1 dir/subdir2 out
19346 genfile --file dir/subdir1/file1
19347 genfile --file dir/subdir2/file2
19351 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
19354 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
19358 TEST_TAR_FORMAT=oldgnu
19359 export TEST_TAR_FORMAT
19360 TAR_OPTIONS="-H oldgnu"
19364 mkdir dir dir/subdir1 dir/subdir2 out
19365 genfile --file dir/subdir1/file1
19366 genfile --file dir/subdir2/file2
19370 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
19373 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19374 at_status=$? at_failed=false
19376 at_fn_diff_devnull "$at_stderr" || at_failed=:
19377 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
19379 $at_diff - "$at_stdout" || at_failed=:
19380 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
19381 $at_failed && at_fn_log_failure
19385 $as_echo "$at_srcdir/extrac17.at:34:
19388 TEST_TAR_FORMAT=ustar
19389 export TEST_TAR_FORMAT
19390 TAR_OPTIONS=\"-H ustar\"
19394 mkdir dir dir/subdir1 dir/subdir2 out
19395 genfile --file dir/subdir1/file1
19396 genfile --file dir/subdir2/file2
19400 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
19403 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
19407 TEST_TAR_FORMAT=ustar
19408 export TEST_TAR_FORMAT
19409 TAR_OPTIONS="-H ustar"
19413 mkdir dir dir/subdir1 dir/subdir2 out
19414 genfile --file dir/subdir1/file1
19415 genfile --file dir/subdir2/file2
19419 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
19422 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19423 at_status=$? at_failed=false
19425 at_fn_diff_devnull "$at_stderr" || at_failed=:
19426 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
19428 $at_diff - "$at_stdout" || at_failed=:
19429 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
19430 $at_failed && at_fn_log_failure
19434 $as_echo "$at_srcdir/extrac17.at:34:
19437 TEST_TAR_FORMAT=posix
19438 export TEST_TAR_FORMAT
19439 TAR_OPTIONS=\"-H posix\"
19443 mkdir dir dir/subdir1 dir/subdir2 out
19444 genfile --file dir/subdir1/file1
19445 genfile --file dir/subdir2/file2
19449 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
19452 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
19456 TEST_TAR_FORMAT=posix
19457 export TEST_TAR_FORMAT
19458 TAR_OPTIONS="-H posix"
19462 mkdir dir dir/subdir1 dir/subdir2 out
19463 genfile --file dir/subdir1/file1
19464 genfile --file dir/subdir2/file2
19468 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
19471 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19472 at_status=$? at_failed=false
19474 at_fn_diff_devnull "$at_stderr" || at_failed=:
19475 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
19477 $at_diff - "$at_stdout" || at_failed=:
19478 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
19479 $at_failed && at_fn_log_failure
19483 $as_echo "$at_srcdir/extrac17.at:34:
19486 TEST_TAR_FORMAT=gnu
19487 export TEST_TAR_FORMAT
19488 TAR_OPTIONS=\"-H gnu\"
19492 mkdir dir dir/subdir1 dir/subdir2 out
19493 genfile --file dir/subdir1/file1
19494 genfile --file dir/subdir2/file2
19498 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
19501 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
19505 TEST_TAR_FORMAT=gnu
19506 export TEST_TAR_FORMAT
19507 TAR_OPTIONS="-H gnu"
19511 mkdir dir dir/subdir1 dir/subdir2 out
19512 genfile --file dir/subdir1/file1
19513 genfile --file dir/subdir2/file2
19517 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
19520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19521 at_status=$? at_failed=false
19523 at_fn_diff_devnull "$at_stderr" || at_failed=:
19524 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
19526 $at_diff - "$at_stdout" || at_failed=:
19527 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
19528 $at_failed && at_fn_log_failure
19535 $at_times_p && times >"$at_times_file"
19536 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19537 read at_status <"$at_status_file"
19540 at_fn_group_banner 81 'extrac18.at:34' \
19541 "keep-old-files" " " 9
19543 test -f $XFAILFILE && at_xfail=yes
19545 $as_echo "81. $at_setup_line: testing $at_desc ..."
19553 $as_echo "$at_srcdir/extrac18.at:37:
19557 export TEST_TAR_FORMAT
19558 TAR_OPTIONS=\"-H v7\"
19564 echo 'Old file a' > a
19565 echo 'Old file b' > b
19567 tar cf ../archive .
19572 tar -x -k -f ../archive
19577 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
19582 export TEST_TAR_FORMAT
19583 TAR_OPTIONS="-H v7"
19589 echo 'Old file a' > a
19590 echo 'Old file b' > b
19592 tar cf ../archive .
19597 tar -x -k -f ../archive
19602 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19603 at_status=$? at_failed=false
19605 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
19606 tar: Exiting with failure status due to previous errors
19608 $at_diff - "$at_stderr" || at_failed=:
19609 echo >>"$at_stdout"; $as_echo "status=2
19612 $at_diff - "$at_stdout" || at_failed=:
19613 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
19614 $at_failed && at_fn_log_failure
19618 $as_echo "$at_srcdir/extrac18.at:37:
19621 TEST_TAR_FORMAT=oldgnu
19622 export TEST_TAR_FORMAT
19623 TAR_OPTIONS=\"-H oldgnu\"
19629 echo 'Old file a' > a
19630 echo 'Old file b' > b
19632 tar cf ../archive .
19637 tar -x -k -f ../archive
19642 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
19646 TEST_TAR_FORMAT=oldgnu
19647 export TEST_TAR_FORMAT
19648 TAR_OPTIONS="-H oldgnu"
19654 echo 'Old file a' > a
19655 echo 'Old file b' > b
19657 tar cf ../archive .
19662 tar -x -k -f ../archive
19667 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19668 at_status=$? at_failed=false
19670 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
19671 tar: Exiting with failure status due to previous errors
19673 $at_diff - "$at_stderr" || at_failed=:
19674 echo >>"$at_stdout"; $as_echo "status=2
19677 $at_diff - "$at_stdout" || at_failed=:
19678 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
19679 $at_failed && at_fn_log_failure
19683 $as_echo "$at_srcdir/extrac18.at:37:
19686 TEST_TAR_FORMAT=ustar
19687 export TEST_TAR_FORMAT
19688 TAR_OPTIONS=\"-H ustar\"
19694 echo 'Old file a' > a
19695 echo 'Old file b' > b
19697 tar cf ../archive .
19702 tar -x -k -f ../archive
19707 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
19711 TEST_TAR_FORMAT=ustar
19712 export TEST_TAR_FORMAT
19713 TAR_OPTIONS="-H ustar"
19719 echo 'Old file a' > a
19720 echo 'Old file b' > b
19722 tar cf ../archive .
19727 tar -x -k -f ../archive
19732 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19733 at_status=$? at_failed=false
19735 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
19736 tar: Exiting with failure status due to previous errors
19738 $at_diff - "$at_stderr" || at_failed=:
19739 echo >>"$at_stdout"; $as_echo "status=2
19742 $at_diff - "$at_stdout" || at_failed=:
19743 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
19744 $at_failed && at_fn_log_failure
19748 $as_echo "$at_srcdir/extrac18.at:37:
19751 TEST_TAR_FORMAT=posix
19752 export TEST_TAR_FORMAT
19753 TAR_OPTIONS=\"-H posix\"
19759 echo 'Old file a' > a
19760 echo 'Old file b' > b
19762 tar cf ../archive .
19767 tar -x -k -f ../archive
19772 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
19776 TEST_TAR_FORMAT=posix
19777 export TEST_TAR_FORMAT
19778 TAR_OPTIONS="-H posix"
19784 echo 'Old file a' > a
19785 echo 'Old file b' > b
19787 tar cf ../archive .
19792 tar -x -k -f ../archive
19797 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19798 at_status=$? at_failed=false
19800 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
19801 tar: Exiting with failure status due to previous errors
19803 $at_diff - "$at_stderr" || at_failed=:
19804 echo >>"$at_stdout"; $as_echo "status=2
19807 $at_diff - "$at_stdout" || at_failed=:
19808 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
19809 $at_failed && at_fn_log_failure
19813 $as_echo "$at_srcdir/extrac18.at:37:
19816 TEST_TAR_FORMAT=gnu
19817 export TEST_TAR_FORMAT
19818 TAR_OPTIONS=\"-H gnu\"
19824 echo 'Old file a' > a
19825 echo 'Old file b' > b
19827 tar cf ../archive .
19832 tar -x -k -f ../archive
19837 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
19841 TEST_TAR_FORMAT=gnu
19842 export TEST_TAR_FORMAT
19843 TAR_OPTIONS="-H gnu"
19849 echo 'Old file a' > a
19850 echo 'Old file b' > b
19852 tar cf ../archive .
19857 tar -x -k -f ../archive
19862 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19863 at_status=$? at_failed=false
19865 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
19866 tar: Exiting with failure status due to previous errors
19868 $at_diff - "$at_stderr" || at_failed=:
19869 echo >>"$at_stdout"; $as_echo "status=2
19872 $at_diff - "$at_stdout" || at_failed=:
19873 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
19874 $at_failed && at_fn_log_failure
19881 $at_times_p && times >"$at_times_file"
19882 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19883 read at_status <"$at_status_file"
19886 at_fn_group_banner 82 'extrac19.at:21' \
19887 "skip-old-files" " " 9
19889 test -f $XFAILFILE && at_xfail=yes
19891 $as_echo "82. $at_setup_line: testing $at_desc ..."
19899 $as_echo "$at_srcdir/extrac19.at:24:
19903 export TEST_TAR_FORMAT
19904 TAR_OPTIONS=\"-H v7\"
19910 echo 'Old file a' > a
19911 echo 'Old file b' > b
19913 tar cf ../archive .
19918 tar -x --skip-old-files -f ../archive
19923 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
19928 export TEST_TAR_FORMAT
19929 TAR_OPTIONS="-H v7"
19935 echo 'Old file a' > a
19936 echo 'Old file b' > b
19938 tar cf ../archive .
19943 tar -x --skip-old-files -f ../archive
19948 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19949 at_status=$? at_failed=false
19951 at_fn_diff_devnull "$at_stderr" || at_failed=:
19952 echo >>"$at_stdout"; $as_echo "status=0
19955 $at_diff - "$at_stdout" || at_failed=:
19956 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
19957 $at_failed && at_fn_log_failure
19961 $as_echo "$at_srcdir/extrac19.at:24:
19964 TEST_TAR_FORMAT=oldgnu
19965 export TEST_TAR_FORMAT
19966 TAR_OPTIONS=\"-H oldgnu\"
19972 echo 'Old file a' > a
19973 echo 'Old file b' > b
19975 tar cf ../archive .
19980 tar -x --skip-old-files -f ../archive
19985 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
19989 TEST_TAR_FORMAT=oldgnu
19990 export TEST_TAR_FORMAT
19991 TAR_OPTIONS="-H oldgnu"
19997 echo 'Old file a' > a
19998 echo 'Old file b' > b
20000 tar cf ../archive .
20005 tar -x --skip-old-files -f ../archive
20010 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20011 at_status=$? at_failed=false
20013 at_fn_diff_devnull "$at_stderr" || at_failed=:
20014 echo >>"$at_stdout"; $as_echo "status=0
20017 $at_diff - "$at_stdout" || at_failed=:
20018 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
20019 $at_failed && at_fn_log_failure
20023 $as_echo "$at_srcdir/extrac19.at:24:
20026 TEST_TAR_FORMAT=ustar
20027 export TEST_TAR_FORMAT
20028 TAR_OPTIONS=\"-H ustar\"
20034 echo 'Old file a' > a
20035 echo 'Old file b' > b
20037 tar cf ../archive .
20042 tar -x --skip-old-files -f ../archive
20047 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
20051 TEST_TAR_FORMAT=ustar
20052 export TEST_TAR_FORMAT
20053 TAR_OPTIONS="-H ustar"
20059 echo 'Old file a' > a
20060 echo 'Old file b' > b
20062 tar cf ../archive .
20067 tar -x --skip-old-files -f ../archive
20072 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20073 at_status=$? at_failed=false
20075 at_fn_diff_devnull "$at_stderr" || at_failed=:
20076 echo >>"$at_stdout"; $as_echo "status=0
20079 $at_diff - "$at_stdout" || at_failed=:
20080 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
20081 $at_failed && at_fn_log_failure
20085 $as_echo "$at_srcdir/extrac19.at:24:
20088 TEST_TAR_FORMAT=posix
20089 export TEST_TAR_FORMAT
20090 TAR_OPTIONS=\"-H posix\"
20096 echo 'Old file a' > a
20097 echo 'Old file b' > b
20099 tar cf ../archive .
20104 tar -x --skip-old-files -f ../archive
20109 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
20113 TEST_TAR_FORMAT=posix
20114 export TEST_TAR_FORMAT
20115 TAR_OPTIONS="-H posix"
20121 echo 'Old file a' > a
20122 echo 'Old file b' > b
20124 tar cf ../archive .
20129 tar -x --skip-old-files -f ../archive
20134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20135 at_status=$? at_failed=false
20137 at_fn_diff_devnull "$at_stderr" || at_failed=:
20138 echo >>"$at_stdout"; $as_echo "status=0
20141 $at_diff - "$at_stdout" || at_failed=:
20142 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
20143 $at_failed && at_fn_log_failure
20147 $as_echo "$at_srcdir/extrac19.at:24:
20150 TEST_TAR_FORMAT=gnu
20151 export TEST_TAR_FORMAT
20152 TAR_OPTIONS=\"-H gnu\"
20158 echo 'Old file a' > a
20159 echo 'Old file b' > b
20161 tar cf ../archive .
20166 tar -x --skip-old-files -f ../archive
20171 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
20175 TEST_TAR_FORMAT=gnu
20176 export TEST_TAR_FORMAT
20177 TAR_OPTIONS="-H gnu"
20183 echo 'Old file a' > a
20184 echo 'Old file b' > b
20186 tar cf ../archive .
20191 tar -x --skip-old-files -f ../archive
20196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20197 at_status=$? at_failed=false
20199 at_fn_diff_devnull "$at_stderr" || at_failed=:
20200 echo >>"$at_stdout"; $as_echo "status=0
20203 $at_diff - "$at_stdout" || at_failed=:
20204 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
20205 $at_failed && at_fn_log_failure
20212 $at_times_p && times >"$at_times_file"
20213 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20214 read at_status <"$at_status_file"
20217 at_fn_group_banner 83 'backup01.at:33' \
20218 "extracting existing dir with --backup" " " 9
20220 test -f $XFAILFILE && at_xfail=yes
20222 $as_echo "83. $at_setup_line: testing $at_desc ..."
20230 $as_echo "$at_srcdir/backup01.at:36:
20234 export TEST_TAR_FORMAT
20235 TAR_OPTIONS=\"-H v7\"
20239 unset VERSION_CONTROL
20241 echo bla > dir1/file1
20242 tar cf test.tar dir1 dir2
20243 tar xfv test.tar --backup --warning=no-timestamp
20245 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
20250 export TEST_TAR_FORMAT
20251 TAR_OPTIONS="-H v7"
20255 unset VERSION_CONTROL
20257 echo bla > dir1/file1
20258 tar cf test.tar dir1 dir2
20259 tar xfv test.tar --backup --warning=no-timestamp
20261 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20262 at_status=$? at_failed=false
20264 at_fn_diff_devnull "$at_stderr" || at_failed=:
20265 echo >>"$at_stdout"; $as_echo "dir1/
20267 Renaming 'dir1/file1' to 'dir1/file1~'
20270 $at_diff - "$at_stdout" || at_failed=:
20271 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
20272 $at_failed && at_fn_log_failure
20276 $as_echo "$at_srcdir/backup01.at:36:
20279 TEST_TAR_FORMAT=oldgnu
20280 export TEST_TAR_FORMAT
20281 TAR_OPTIONS=\"-H oldgnu\"
20285 unset VERSION_CONTROL
20287 echo bla > dir1/file1
20288 tar cf test.tar dir1 dir2
20289 tar xfv test.tar --backup --warning=no-timestamp
20291 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
20295 TEST_TAR_FORMAT=oldgnu
20296 export TEST_TAR_FORMAT
20297 TAR_OPTIONS="-H oldgnu"
20301 unset VERSION_CONTROL
20303 echo bla > dir1/file1
20304 tar cf test.tar dir1 dir2
20305 tar xfv test.tar --backup --warning=no-timestamp
20307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20308 at_status=$? at_failed=false
20310 at_fn_diff_devnull "$at_stderr" || at_failed=:
20311 echo >>"$at_stdout"; $as_echo "dir1/
20313 Renaming 'dir1/file1' to 'dir1/file1~'
20316 $at_diff - "$at_stdout" || at_failed=:
20317 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
20318 $at_failed && at_fn_log_failure
20322 $as_echo "$at_srcdir/backup01.at:36:
20325 TEST_TAR_FORMAT=ustar
20326 export TEST_TAR_FORMAT
20327 TAR_OPTIONS=\"-H ustar\"
20331 unset VERSION_CONTROL
20333 echo bla > dir1/file1
20334 tar cf test.tar dir1 dir2
20335 tar xfv test.tar --backup --warning=no-timestamp
20337 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
20341 TEST_TAR_FORMAT=ustar
20342 export TEST_TAR_FORMAT
20343 TAR_OPTIONS="-H ustar"
20347 unset VERSION_CONTROL
20349 echo bla > dir1/file1
20350 tar cf test.tar dir1 dir2
20351 tar xfv test.tar --backup --warning=no-timestamp
20353 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20354 at_status=$? at_failed=false
20356 at_fn_diff_devnull "$at_stderr" || at_failed=:
20357 echo >>"$at_stdout"; $as_echo "dir1/
20359 Renaming 'dir1/file1' to 'dir1/file1~'
20362 $at_diff - "$at_stdout" || at_failed=:
20363 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
20364 $at_failed && at_fn_log_failure
20368 $as_echo "$at_srcdir/backup01.at:36:
20371 TEST_TAR_FORMAT=posix
20372 export TEST_TAR_FORMAT
20373 TAR_OPTIONS=\"-H posix\"
20377 unset VERSION_CONTROL
20379 echo bla > dir1/file1
20380 tar cf test.tar dir1 dir2
20381 tar xfv test.tar --backup --warning=no-timestamp
20383 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
20387 TEST_TAR_FORMAT=posix
20388 export TEST_TAR_FORMAT
20389 TAR_OPTIONS="-H posix"
20393 unset VERSION_CONTROL
20395 echo bla > dir1/file1
20396 tar cf test.tar dir1 dir2
20397 tar xfv test.tar --backup --warning=no-timestamp
20399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20400 at_status=$? at_failed=false
20402 at_fn_diff_devnull "$at_stderr" || at_failed=:
20403 echo >>"$at_stdout"; $as_echo "dir1/
20405 Renaming 'dir1/file1' to 'dir1/file1~'
20408 $at_diff - "$at_stdout" || at_failed=:
20409 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
20410 $at_failed && at_fn_log_failure
20414 $as_echo "$at_srcdir/backup01.at:36:
20417 TEST_TAR_FORMAT=gnu
20418 export TEST_TAR_FORMAT
20419 TAR_OPTIONS=\"-H gnu\"
20423 unset VERSION_CONTROL
20425 echo bla > dir1/file1
20426 tar cf test.tar dir1 dir2
20427 tar xfv test.tar --backup --warning=no-timestamp
20429 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
20433 TEST_TAR_FORMAT=gnu
20434 export TEST_TAR_FORMAT
20435 TAR_OPTIONS="-H gnu"
20439 unset VERSION_CONTROL
20441 echo bla > dir1/file1
20442 tar cf test.tar dir1 dir2
20443 tar xfv test.tar --backup --warning=no-timestamp
20445 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20446 at_status=$? at_failed=false
20448 at_fn_diff_devnull "$at_stderr" || at_failed=:
20449 echo >>"$at_stdout"; $as_echo "dir1/
20451 Renaming 'dir1/file1' to 'dir1/file1~'
20454 $at_diff - "$at_stdout" || at_failed=:
20455 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
20456 $at_failed && at_fn_log_failure
20463 $at_times_p && times >"$at_times_file"
20464 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20465 read at_status <"$at_status_file"
20468 at_fn_group_banner 84 'label01.at:21' \
20469 "single-volume label" " " 10
20471 test -f $XFAILFILE && at_xfail=yes
20473 $as_echo "84. $at_setup_line: testing $at_desc ..."
20481 $as_echo "$at_srcdir/label01.at:24:
20484 TEST_TAR_FORMAT=gnu
20485 export TEST_TAR_FORMAT
20486 TAR_OPTIONS=\"-H gnu\"
20492 tar -cf archive --label=Test foo bar
20495 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
20499 TEST_TAR_FORMAT=gnu
20500 export TEST_TAR_FORMAT
20501 TAR_OPTIONS="-H gnu"
20507 tar -cf archive --label=Test foo bar
20510 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20511 at_status=$? at_failed=false
20513 at_fn_diff_devnull "$at_stderr" || at_failed=:
20514 echo >>"$at_stdout"; $as_echo "Test
20518 $at_diff - "$at_stdout" || at_failed=:
20519 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
20520 $at_failed && at_fn_log_failure
20524 $as_echo "$at_srcdir/label01.at:24:
20527 TEST_TAR_FORMAT=oldgnu
20528 export TEST_TAR_FORMAT
20529 TAR_OPTIONS=\"-H oldgnu\"
20535 tar -cf archive --label=Test foo bar
20538 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
20542 TEST_TAR_FORMAT=oldgnu
20543 export TEST_TAR_FORMAT
20544 TAR_OPTIONS="-H oldgnu"
20550 tar -cf archive --label=Test foo bar
20553 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20554 at_status=$? at_failed=false
20556 at_fn_diff_devnull "$at_stderr" || at_failed=:
20557 echo >>"$at_stdout"; $as_echo "Test
20561 $at_diff - "$at_stdout" || at_failed=:
20562 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
20563 $at_failed && at_fn_log_failure
20567 $as_echo "$at_srcdir/label01.at:24:
20570 TEST_TAR_FORMAT=posix
20571 export TEST_TAR_FORMAT
20572 TAR_OPTIONS=\"-H posix\"
20578 tar -cf archive --label=Test foo bar
20581 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
20585 TEST_TAR_FORMAT=posix
20586 export TEST_TAR_FORMAT
20587 TAR_OPTIONS="-H posix"
20593 tar -cf archive --label=Test foo bar
20596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20597 at_status=$? at_failed=false
20599 at_fn_diff_devnull "$at_stderr" || at_failed=:
20600 echo >>"$at_stdout"; $as_echo "Test
20604 $at_diff - "$at_stdout" || at_failed=:
20605 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
20606 $at_failed && at_fn_log_failure
20613 $at_times_p && times >"$at_times_file"
20614 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20615 read at_status <"$at_status_file"
20618 at_fn_group_banner 85 'label02.at:21' \
20619 "multi-volume label" " " 10
20621 test -f $XFAILFILE && at_xfail=yes
20623 $as_echo "85. $at_setup_line: testing $at_desc ..."
20631 $as_echo "$at_srcdir/label02.at:24:
20634 TEST_TAR_FORMAT=gnu
20635 export TEST_TAR_FORMAT
20636 TAR_OPTIONS=\"-H gnu\"
20641 genfile --length 0 --file foo
20642 genfile --length 12288 --file bar
20643 genfile --length 12288 --file baz
20644 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20645 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20647 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
20651 TEST_TAR_FORMAT=gnu
20652 export TEST_TAR_FORMAT
20653 TAR_OPTIONS="-H gnu"
20658 genfile --length 0 --file foo
20659 genfile --length 12288 --file bar
20660 genfile --length 12288 --file baz
20661 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20662 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20664 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20665 at_status=$? at_failed=false
20667 at_fn_diff_devnull "$at_stderr" || at_failed=:
20668 echo >>"$at_stdout"; $as_echo "Test Volume 1
20673 $at_diff - "$at_stdout" || at_failed=:
20674 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
20675 $at_failed && at_fn_log_failure
20679 $as_echo "$at_srcdir/label02.at:24:
20682 TEST_TAR_FORMAT=oldgnu
20683 export TEST_TAR_FORMAT
20684 TAR_OPTIONS=\"-H oldgnu\"
20689 genfile --length 0 --file foo
20690 genfile --length 12288 --file bar
20691 genfile --length 12288 --file baz
20692 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20693 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20695 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
20699 TEST_TAR_FORMAT=oldgnu
20700 export TEST_TAR_FORMAT
20701 TAR_OPTIONS="-H oldgnu"
20706 genfile --length 0 --file foo
20707 genfile --length 12288 --file bar
20708 genfile --length 12288 --file baz
20709 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20710 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20712 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20713 at_status=$? at_failed=false
20715 at_fn_diff_devnull "$at_stderr" || at_failed=:
20716 echo >>"$at_stdout"; $as_echo "Test Volume 1
20721 $at_diff - "$at_stdout" || at_failed=:
20722 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
20723 $at_failed && at_fn_log_failure
20727 $as_echo "$at_srcdir/label02.at:24:
20730 TEST_TAR_FORMAT=posix
20731 export TEST_TAR_FORMAT
20732 TAR_OPTIONS=\"-H posix\"
20737 genfile --length 0 --file foo
20738 genfile --length 12288 --file bar
20739 genfile --length 12288 --file baz
20740 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20741 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20743 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
20747 TEST_TAR_FORMAT=posix
20748 export TEST_TAR_FORMAT
20749 TAR_OPTIONS="-H posix"
20754 genfile --length 0 --file foo
20755 genfile --length 12288 --file bar
20756 genfile --length 12288 --file baz
20757 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
20758 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
20760 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20761 at_status=$? at_failed=false
20763 at_fn_diff_devnull "$at_stderr" || at_failed=:
20764 echo >>"$at_stdout"; $as_echo "Test Volume 1
20769 $at_diff - "$at_stdout" || at_failed=:
20770 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
20771 $at_failed && at_fn_log_failure
20778 $at_times_p && times >"$at_times_file"
20779 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20780 read at_status <"$at_status_file"
20783 at_fn_group_banner 86 'label03.at:27' \
20784 "test-label option" " " 10
20786 test -f $XFAILFILE && at_xfail=yes
20788 $as_echo "86. $at_setup_line: testing $at_desc ..."
20796 $as_echo "$at_srcdir/label03.at:30:
20799 TEST_TAR_FORMAT=gnu
20800 export TEST_TAR_FORMAT
20801 TAR_OPTIONS=\"-H gnu\"
20806 genfile --file file
20807 tar -c --label='iamalabel' --file iamanarchive file
20808 tar -c --file unlabeled.tar file
20809 decho \"# Display label\"
20810 tar --test-label --file=iamanarchive; echo \$?
20811 decho \"# Display label: unlabeled\"
20812 tar --test-label --file=unlabeled.tar; echo \$?
20813 decho \"# Test label: success\"
20814 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
20815 decho \"# Test label: failure\"
20816 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
20817 decho \"# Test label: unlabeled\"
20818 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
20819 decho \"# Test label, verbose: success\"
20820 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
20821 decho \"# Test label, verbose: failure\"
20822 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
20823 decho \"# Test label: multiple arguments\"
20824 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
20825 decho \"# Test label: wildcards\"
20826 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
20828 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
20832 TEST_TAR_FORMAT=gnu
20833 export TEST_TAR_FORMAT
20834 TAR_OPTIONS="-H gnu"
20839 genfile --file file
20840 tar -c --label='iamalabel' --file iamanarchive file
20841 tar -c --file unlabeled.tar file
20842 decho "# Display label"
20843 tar --test-label --file=iamanarchive; echo $?
20844 decho "# Display label: unlabeled"
20845 tar --test-label --file=unlabeled.tar; echo $?
20846 decho "# Test label: success"
20847 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
20848 decho "# Test label: failure"
20849 tar --test-label --file=iamanarchive 'amalabel'; echo $?
20850 decho "# Test label: unlabeled"
20851 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
20852 decho "# Test label, verbose: success"
20853 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
20854 decho "# Test label, verbose: failure"
20855 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
20856 decho "# Test label: multiple arguments"
20857 tar --test-label --file=iamanarchive a iamalabel b; echo $?
20858 decho "# Test label: wildcards"
20859 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
20861 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20862 at_status=$? at_failed=false
20864 echo >>"$at_stderr"; $as_echo "# Display label
20865 # Display label: unlabeled
20866 # Test label: success
20867 # Test label: failure
20868 # Test label: unlabeled
20869 # Test label, verbose: success
20870 # Test label, verbose: failure
20871 tar: Archive label mismatch
20872 # Test label: multiple arguments
20873 # Test label: wildcards
20875 $at_diff - "$at_stderr" || at_failed=:
20876 echo >>"$at_stdout"; $as_echo "# Display label
20879 # Display label: unlabeled
20881 # Test label: success
20883 # Test label: failure
20885 # Test label: unlabeled
20887 # Test label, verbose: success
20890 # Test label, verbose: failure
20893 # Test label: multiple arguments
20895 # Test label: wildcards
20898 $at_diff - "$at_stdout" || at_failed=:
20899 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
20900 $at_failed && at_fn_log_failure
20904 $as_echo "$at_srcdir/label03.at:30:
20907 TEST_TAR_FORMAT=oldgnu
20908 export TEST_TAR_FORMAT
20909 TAR_OPTIONS=\"-H oldgnu\"
20914 genfile --file file
20915 tar -c --label='iamalabel' --file iamanarchive file
20916 tar -c --file unlabeled.tar file
20917 decho \"# Display label\"
20918 tar --test-label --file=iamanarchive; echo \$?
20919 decho \"# Display label: unlabeled\"
20920 tar --test-label --file=unlabeled.tar; echo \$?
20921 decho \"# Test label: success\"
20922 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
20923 decho \"# Test label: failure\"
20924 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
20925 decho \"# Test label: unlabeled\"
20926 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
20927 decho \"# Test label, verbose: success\"
20928 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
20929 decho \"# Test label, verbose: failure\"
20930 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
20931 decho \"# Test label: multiple arguments\"
20932 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
20933 decho \"# Test label: wildcards\"
20934 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
20936 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
20940 TEST_TAR_FORMAT=oldgnu
20941 export TEST_TAR_FORMAT
20942 TAR_OPTIONS="-H oldgnu"
20947 genfile --file file
20948 tar -c --label='iamalabel' --file iamanarchive file
20949 tar -c --file unlabeled.tar file
20950 decho "# Display label"
20951 tar --test-label --file=iamanarchive; echo $?
20952 decho "# Display label: unlabeled"
20953 tar --test-label --file=unlabeled.tar; echo $?
20954 decho "# Test label: success"
20955 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
20956 decho "# Test label: failure"
20957 tar --test-label --file=iamanarchive 'amalabel'; echo $?
20958 decho "# Test label: unlabeled"
20959 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
20960 decho "# Test label, verbose: success"
20961 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
20962 decho "# Test label, verbose: failure"
20963 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
20964 decho "# Test label: multiple arguments"
20965 tar --test-label --file=iamanarchive a iamalabel b; echo $?
20966 decho "# Test label: wildcards"
20967 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
20969 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20970 at_status=$? at_failed=false
20972 echo >>"$at_stderr"; $as_echo "# Display label
20973 # Display label: unlabeled
20974 # Test label: success
20975 # Test label: failure
20976 # Test label: unlabeled
20977 # Test label, verbose: success
20978 # Test label, verbose: failure
20979 tar: Archive label mismatch
20980 # Test label: multiple arguments
20981 # Test label: wildcards
20983 $at_diff - "$at_stderr" || at_failed=:
20984 echo >>"$at_stdout"; $as_echo "# Display label
20987 # Display label: unlabeled
20989 # Test label: success
20991 # Test label: failure
20993 # Test label: unlabeled
20995 # Test label, verbose: success
20998 # Test label, verbose: failure
21001 # Test label: multiple arguments
21003 # Test label: wildcards
21006 $at_diff - "$at_stdout" || at_failed=:
21007 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
21008 $at_failed && at_fn_log_failure
21012 $as_echo "$at_srcdir/label03.at:30:
21015 TEST_TAR_FORMAT=posix
21016 export TEST_TAR_FORMAT
21017 TAR_OPTIONS=\"-H posix\"
21022 genfile --file file
21023 tar -c --label='iamalabel' --file iamanarchive file
21024 tar -c --file unlabeled.tar file
21025 decho \"# Display label\"
21026 tar --test-label --file=iamanarchive; echo \$?
21027 decho \"# Display label: unlabeled\"
21028 tar --test-label --file=unlabeled.tar; echo \$?
21029 decho \"# Test label: success\"
21030 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
21031 decho \"# Test label: failure\"
21032 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
21033 decho \"# Test label: unlabeled\"
21034 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
21035 decho \"# Test label, verbose: success\"
21036 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
21037 decho \"# Test label, verbose: failure\"
21038 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
21039 decho \"# Test label: multiple arguments\"
21040 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
21041 decho \"# Test label: wildcards\"
21042 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
21044 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
21048 TEST_TAR_FORMAT=posix
21049 export TEST_TAR_FORMAT
21050 TAR_OPTIONS="-H posix"
21055 genfile --file file
21056 tar -c --label='iamalabel' --file iamanarchive file
21057 tar -c --file unlabeled.tar file
21058 decho "# Display label"
21059 tar --test-label --file=iamanarchive; echo $?
21060 decho "# Display label: unlabeled"
21061 tar --test-label --file=unlabeled.tar; echo $?
21062 decho "# Test label: success"
21063 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
21064 decho "# Test label: failure"
21065 tar --test-label --file=iamanarchive 'amalabel'; echo $?
21066 decho "# Test label: unlabeled"
21067 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
21068 decho "# Test label, verbose: success"
21069 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
21070 decho "# Test label, verbose: failure"
21071 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
21072 decho "# Test label: multiple arguments"
21073 tar --test-label --file=iamanarchive a iamalabel b; echo $?
21074 decho "# Test label: wildcards"
21075 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
21077 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21078 at_status=$? at_failed=false
21080 echo >>"$at_stderr"; $as_echo "# Display label
21081 # Display label: unlabeled
21082 # Test label: success
21083 # Test label: failure
21084 # Test label: unlabeled
21085 # Test label, verbose: success
21086 # Test label, verbose: failure
21087 tar: Archive label mismatch
21088 # Test label: multiple arguments
21089 # Test label: wildcards
21091 $at_diff - "$at_stderr" || at_failed=:
21092 echo >>"$at_stdout"; $as_echo "# Display label
21095 # Display label: unlabeled
21097 # Test label: success
21099 # Test label: failure
21101 # Test label: unlabeled
21103 # Test label, verbose: success
21106 # Test label, verbose: failure
21109 # Test label: multiple arguments
21111 # Test label: wildcards
21114 $at_diff - "$at_stdout" || at_failed=:
21115 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
21116 $at_failed && at_fn_log_failure
21123 $at_times_p && times >"$at_times_file"
21124 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21125 read at_status <"$at_status_file"
21128 at_fn_group_banner 87 'label04.at:27' \
21129 "label with non-create option" " " 10
21131 test -f $XFAILFILE && at_xfail=yes
21133 $as_echo "87. $at_setup_line: testing $at_desc ..."
21141 $as_echo "$at_srcdir/label04.at:30:
21144 TEST_TAR_FORMAT=gnu
21145 export TEST_TAR_FORMAT
21146 TAR_OPTIONS=\"-H gnu\"
21151 genfile --file file
21152 decho \"# Create volume\"
21153 tar -c -f archive --label='New volume' file
21154 decho \"# Update: wrong label\"
21155 tar -rf archive --label='My volume' file; echo \$?
21156 decho \"# Update: right label\"
21157 tar -rf archive --label='New volume' file
21159 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
21163 TEST_TAR_FORMAT=gnu
21164 export TEST_TAR_FORMAT
21165 TAR_OPTIONS="-H gnu"
21170 genfile --file file
21171 decho "# Create volume"
21172 tar -c -f archive --label='New volume' file
21173 decho "# Update: wrong label"
21174 tar -rf archive --label='My volume' file; echo $?
21175 decho "# Update: right label"
21176 tar -rf archive --label='New volume' file
21178 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21179 at_status=$? at_failed=false
21181 echo >>"$at_stderr"; $as_echo "# Create volume
21182 # Update: wrong label
21183 tar: Volume 'New volume' does not match 'My volume'
21184 tar: Error is not recoverable: exiting now
21185 # Update: right label
21187 $at_diff - "$at_stderr" || at_failed=:
21188 echo >>"$at_stdout"; $as_echo "# Create volume
21189 # Update: wrong label
21191 # Update: right label
21193 $at_diff - "$at_stdout" || at_failed=:
21194 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
21195 $at_failed && at_fn_log_failure
21199 $as_echo "$at_srcdir/label04.at:30:
21202 TEST_TAR_FORMAT=oldgnu
21203 export TEST_TAR_FORMAT
21204 TAR_OPTIONS=\"-H oldgnu\"
21209 genfile --file file
21210 decho \"# Create volume\"
21211 tar -c -f archive --label='New volume' file
21212 decho \"# Update: wrong label\"
21213 tar -rf archive --label='My volume' file; echo \$?
21214 decho \"# Update: right label\"
21215 tar -rf archive --label='New volume' file
21217 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
21221 TEST_TAR_FORMAT=oldgnu
21222 export TEST_TAR_FORMAT
21223 TAR_OPTIONS="-H oldgnu"
21228 genfile --file file
21229 decho "# Create volume"
21230 tar -c -f archive --label='New volume' file
21231 decho "# Update: wrong label"
21232 tar -rf archive --label='My volume' file; echo $?
21233 decho "# Update: right label"
21234 tar -rf archive --label='New volume' file
21236 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21237 at_status=$? at_failed=false
21239 echo >>"$at_stderr"; $as_echo "# Create volume
21240 # Update: wrong label
21241 tar: Volume 'New volume' does not match 'My volume'
21242 tar: Error is not recoverable: exiting now
21243 # Update: right label
21245 $at_diff - "$at_stderr" || at_failed=:
21246 echo >>"$at_stdout"; $as_echo "# Create volume
21247 # Update: wrong label
21249 # Update: right label
21251 $at_diff - "$at_stdout" || at_failed=:
21252 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
21253 $at_failed && at_fn_log_failure
21257 $as_echo "$at_srcdir/label04.at:30:
21260 TEST_TAR_FORMAT=posix
21261 export TEST_TAR_FORMAT
21262 TAR_OPTIONS=\"-H posix\"
21267 genfile --file file
21268 decho \"# Create volume\"
21269 tar -c -f archive --label='New volume' file
21270 decho \"# Update: wrong label\"
21271 tar -rf archive --label='My volume' file; echo \$?
21272 decho \"# Update: right label\"
21273 tar -rf archive --label='New volume' file
21275 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
21279 TEST_TAR_FORMAT=posix
21280 export TEST_TAR_FORMAT
21281 TAR_OPTIONS="-H posix"
21286 genfile --file file
21287 decho "# Create volume"
21288 tar -c -f archive --label='New volume' file
21289 decho "# Update: wrong label"
21290 tar -rf archive --label='My volume' file; echo $?
21291 decho "# Update: right label"
21292 tar -rf archive --label='New volume' file
21294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21295 at_status=$? at_failed=false
21297 echo >>"$at_stderr"; $as_echo "# Create volume
21298 # Update: wrong label
21299 tar: Volume 'New volume' does not match 'My volume'
21300 tar: Error is not recoverable: exiting now
21301 # Update: right label
21303 $at_diff - "$at_stderr" || at_failed=:
21304 echo >>"$at_stdout"; $as_echo "# Create volume
21305 # Update: wrong label
21307 # Update: right label
21309 $at_diff - "$at_stdout" || at_failed=:
21310 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
21311 $at_failed && at_fn_log_failure
21318 $at_times_p && times >"$at_times_file"
21319 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21320 read at_status <"$at_status_file"
21323 at_fn_group_banner 88 'label05.at:24' \
21324 "label with non-create option" " " 10
21326 test -f $XFAILFILE && at_xfail=yes
21328 $as_echo "88. $at_setup_line: testing $at_desc ..."
21336 $as_echo "$at_srcdir/label05.at:27:
21339 TEST_TAR_FORMAT=gnu
21340 export TEST_TAR_FORMAT
21341 TAR_OPTIONS=\"-H gnu\"
21346 genfile --file file
21347 decho \"# Create volume\"
21348 tar -c -f archive file
21349 decho \"# Update: wrong label\"
21350 tar -rf archive --label='My volume' file; echo \$?
21351 decho \"# Update: right label\"
21352 tar -rf archive file
21354 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
21358 TEST_TAR_FORMAT=gnu
21359 export TEST_TAR_FORMAT
21360 TAR_OPTIONS="-H gnu"
21365 genfile --file file
21366 decho "# Create volume"
21367 tar -c -f archive file
21368 decho "# Update: wrong label"
21369 tar -rf archive --label='My volume' file; echo $?
21370 decho "# Update: right label"
21371 tar -rf archive file
21373 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21374 at_status=$? at_failed=false
21376 echo >>"$at_stderr"; $as_echo "# Create volume
21377 # Update: wrong label
21378 tar: Archive not labeled to match 'My volume'
21379 tar: Error is not recoverable: exiting now
21380 # Update: right label
21382 $at_diff - "$at_stderr" || at_failed=:
21383 echo >>"$at_stdout"; $as_echo "# Create volume
21384 # Update: wrong label
21386 # Update: right label
21388 $at_diff - "$at_stdout" || at_failed=:
21389 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
21390 $at_failed && at_fn_log_failure
21394 $as_echo "$at_srcdir/label05.at:27:
21397 TEST_TAR_FORMAT=oldgnu
21398 export TEST_TAR_FORMAT
21399 TAR_OPTIONS=\"-H oldgnu\"
21404 genfile --file file
21405 decho \"# Create volume\"
21406 tar -c -f archive file
21407 decho \"# Update: wrong label\"
21408 tar -rf archive --label='My volume' file; echo \$?
21409 decho \"# Update: right label\"
21410 tar -rf archive file
21412 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
21416 TEST_TAR_FORMAT=oldgnu
21417 export TEST_TAR_FORMAT
21418 TAR_OPTIONS="-H oldgnu"
21423 genfile --file file
21424 decho "# Create volume"
21425 tar -c -f archive file
21426 decho "# Update: wrong label"
21427 tar -rf archive --label='My volume' file; echo $?
21428 decho "# Update: right label"
21429 tar -rf archive file
21431 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21432 at_status=$? at_failed=false
21434 echo >>"$at_stderr"; $as_echo "# Create volume
21435 # Update: wrong label
21436 tar: Archive not labeled to match 'My volume'
21437 tar: Error is not recoverable: exiting now
21438 # Update: right label
21440 $at_diff - "$at_stderr" || at_failed=:
21441 echo >>"$at_stdout"; $as_echo "# Create volume
21442 # Update: wrong label
21444 # Update: right label
21446 $at_diff - "$at_stdout" || at_failed=:
21447 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
21448 $at_failed && at_fn_log_failure
21452 $as_echo "$at_srcdir/label05.at:27:
21455 TEST_TAR_FORMAT=posix
21456 export TEST_TAR_FORMAT
21457 TAR_OPTIONS=\"-H posix\"
21462 genfile --file file
21463 decho \"# Create volume\"
21464 tar -c -f archive file
21465 decho \"# Update: wrong label\"
21466 tar -rf archive --label='My volume' file; echo \$?
21467 decho \"# Update: right label\"
21468 tar -rf archive file
21470 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
21474 TEST_TAR_FORMAT=posix
21475 export TEST_TAR_FORMAT
21476 TAR_OPTIONS="-H posix"
21481 genfile --file file
21482 decho "# Create volume"
21483 tar -c -f archive file
21484 decho "# Update: wrong label"
21485 tar -rf archive --label='My volume' file; echo $?
21486 decho "# Update: right label"
21487 tar -rf archive file
21489 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21490 at_status=$? at_failed=false
21492 echo >>"$at_stderr"; $as_echo "# Create volume
21493 # Update: wrong label
21494 tar: Archive not labeled to match 'My volume'
21495 tar: Error is not recoverable: exiting now
21496 # Update: right label
21498 $at_diff - "$at_stderr" || at_failed=:
21499 echo >>"$at_stdout"; $as_echo "# Create volume
21500 # Update: wrong label
21502 # Update: right label
21504 $at_diff - "$at_stdout" || at_failed=:
21505 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
21506 $at_failed && at_fn_log_failure
21513 $at_times_p && times >"$at_times_file"
21514 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21515 read at_status <"$at_status_file"
21518 at_fn_group_banner 89 'incremental.at:23' \
21519 "incremental" " " 11
21521 test -f $XFAILFILE && at_xfail=yes
21523 $as_echo "89. $at_setup_line: testing $at_desc ..."
21531 $as_echo "$at_srcdir/incremental.at:26:
21534 TEST_TAR_FORMAT=gnu
21535 export TEST_TAR_FORMAT
21536 TAR_OPTIONS=\"-H gnu\"
21543 echo x >structure/file
21545 # On Nextstep (and perhaps other 4.3BSD systems),
21546 # a newly created file's ctime isn't updated
21547 # until the next sync or stat operation on the file.
21548 ls -l structure/file >/dev/null
21550 # If the time of an initial backup and the creation time of a file contained
21551 # in that backup are the same, the file will be backed up again when an
21552 # incremental backup is done, because the incremental backup backs up
21553 # files created \"on or after\" the initial backup time. Without the sleep
21554 # command, behaviour of tar becomes variable, depending whether the system
21555 # clock ticked over to the next second between creating the file and
21559 tar cf archive --listed=list structure
21560 tar cfv archive --listed=list structure
21562 # ReiserFS often offsets the timestamps of newly created files
21563 # 1 second to the past. Try to compensate for it, until a better
21564 # solution is found.
21566 echo y >structure/file
21567 tar cfv archive --listed=list structure
21569 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
21573 TEST_TAR_FORMAT=gnu
21574 export TEST_TAR_FORMAT
21575 TAR_OPTIONS="-H gnu"
21582 echo x >structure/file
21584 # On Nextstep (and perhaps other 4.3BSD systems),
21585 # a newly created file's ctime isn't updated
21586 # until the next sync or stat operation on the file.
21587 ls -l structure/file >/dev/null
21589 # If the time of an initial backup and the creation time of a file contained
21590 # in that backup are the same, the file will be backed up again when an
21591 # incremental backup is done, because the incremental backup backs up
21592 # files created "on or after" the initial backup time. Without the sleep
21593 # command, behaviour of tar becomes variable, depending whether the system
21594 # clock ticked over to the next second between creating the file and
21598 tar cf archive --listed=list structure
21599 tar cfv archive --listed=list structure
21601 # ReiserFS often offsets the timestamps of newly created files
21602 # 1 second to the past. Try to compensate for it, until a better
21603 # solution is found.
21605 echo y >structure/file
21606 tar cfv archive --listed=list structure
21608 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21609 at_status=$? at_failed=false
21611 at_fn_diff_devnull "$at_stderr" || at_failed=:
21612 echo >>"$at_stdout"; $as_echo "structure/
21617 $at_diff - "$at_stdout" || at_failed=:
21618 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
21619 $at_failed && at_fn_log_failure
21623 $as_echo "$at_srcdir/incremental.at:26:
21626 TEST_TAR_FORMAT=oldgnu
21627 export TEST_TAR_FORMAT
21628 TAR_OPTIONS=\"-H oldgnu\"
21635 echo x >structure/file
21637 # On Nextstep (and perhaps other 4.3BSD systems),
21638 # a newly created file's ctime isn't updated
21639 # until the next sync or stat operation on the file.
21640 ls -l structure/file >/dev/null
21642 # If the time of an initial backup and the creation time of a file contained
21643 # in that backup are the same, the file will be backed up again when an
21644 # incremental backup is done, because the incremental backup backs up
21645 # files created \"on or after\" the initial backup time. Without the sleep
21646 # command, behaviour of tar becomes variable, depending whether the system
21647 # clock ticked over to the next second between creating the file and
21651 tar cf archive --listed=list structure
21652 tar cfv archive --listed=list structure
21654 # ReiserFS often offsets the timestamps of newly created files
21655 # 1 second to the past. Try to compensate for it, until a better
21656 # solution is found.
21658 echo y >structure/file
21659 tar cfv archive --listed=list structure
21661 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
21665 TEST_TAR_FORMAT=oldgnu
21666 export TEST_TAR_FORMAT
21667 TAR_OPTIONS="-H oldgnu"
21674 echo x >structure/file
21676 # On Nextstep (and perhaps other 4.3BSD systems),
21677 # a newly created file's ctime isn't updated
21678 # until the next sync or stat operation on the file.
21679 ls -l structure/file >/dev/null
21681 # If the time of an initial backup and the creation time of a file contained
21682 # in that backup are the same, the file will be backed up again when an
21683 # incremental backup is done, because the incremental backup backs up
21684 # files created "on or after" the initial backup time. Without the sleep
21685 # command, behaviour of tar becomes variable, depending whether the system
21686 # clock ticked over to the next second between creating the file and
21690 tar cf archive --listed=list structure
21691 tar cfv archive --listed=list structure
21693 # ReiserFS often offsets the timestamps of newly created files
21694 # 1 second to the past. Try to compensate for it, until a better
21695 # solution is found.
21697 echo y >structure/file
21698 tar cfv archive --listed=list structure
21700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21701 at_status=$? at_failed=false
21703 at_fn_diff_devnull "$at_stderr" || at_failed=:
21704 echo >>"$at_stdout"; $as_echo "structure/
21709 $at_diff - "$at_stdout" || at_failed=:
21710 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
21711 $at_failed && at_fn_log_failure
21715 $as_echo "$at_srcdir/incremental.at:26:
21718 TEST_TAR_FORMAT=posix
21719 export TEST_TAR_FORMAT
21720 TAR_OPTIONS=\"-H posix\"
21727 echo x >structure/file
21729 # On Nextstep (and perhaps other 4.3BSD systems),
21730 # a newly created file's ctime isn't updated
21731 # until the next sync or stat operation on the file.
21732 ls -l structure/file >/dev/null
21734 # If the time of an initial backup and the creation time of a file contained
21735 # in that backup are the same, the file will be backed up again when an
21736 # incremental backup is done, because the incremental backup backs up
21737 # files created \"on or after\" the initial backup time. Without the sleep
21738 # command, behaviour of tar becomes variable, depending whether the system
21739 # clock ticked over to the next second between creating the file and
21743 tar cf archive --listed=list structure
21744 tar cfv archive --listed=list structure
21746 # ReiserFS often offsets the timestamps of newly created files
21747 # 1 second to the past. Try to compensate for it, until a better
21748 # solution is found.
21750 echo y >structure/file
21751 tar cfv archive --listed=list structure
21753 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
21757 TEST_TAR_FORMAT=posix
21758 export TEST_TAR_FORMAT
21759 TAR_OPTIONS="-H posix"
21766 echo x >structure/file
21768 # On Nextstep (and perhaps other 4.3BSD systems),
21769 # a newly created file's ctime isn't updated
21770 # until the next sync or stat operation on the file.
21771 ls -l structure/file >/dev/null
21773 # If the time of an initial backup and the creation time of a file contained
21774 # in that backup are the same, the file will be backed up again when an
21775 # incremental backup is done, because the incremental backup backs up
21776 # files created "on or after" the initial backup time. Without the sleep
21777 # command, behaviour of tar becomes variable, depending whether the system
21778 # clock ticked over to the next second between creating the file and
21782 tar cf archive --listed=list structure
21783 tar cfv archive --listed=list structure
21785 # ReiserFS often offsets the timestamps of newly created files
21786 # 1 second to the past. Try to compensate for it, until a better
21787 # solution is found.
21789 echo y >structure/file
21790 tar cfv archive --listed=list structure
21792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21793 at_status=$? at_failed=false
21795 at_fn_diff_devnull "$at_stderr" || at_failed=:
21796 echo >>"$at_stdout"; $as_echo "structure/
21801 $at_diff - "$at_stdout" || at_failed=:
21802 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
21803 $at_failed && at_fn_log_failure
21810 $at_times_p && times >"$at_times_file"
21811 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21812 read at_status <"$at_status_file"
21815 at_fn_group_banner 90 'incr01.at:27' \
21816 "restore broken symlinks from incremental" " " 11
21818 test -f $XFAILFILE && at_xfail=yes
21820 $as_echo "90. $at_setup_line: testing $at_desc ..."
21828 $as_echo "$at_srcdir/incr01.at:30:
21831 TEST_TAR_FORMAT=gnu
21832 export TEST_TAR_FORMAT
21833 TAR_OPTIONS=\"-H gnu\"
21840 \$as_ln_s foo directory/bar
21842 tar -cf archive.0 -g db directory
21844 tar -cf archive.1 -g db directory
21848 tar xvfg archive.0 /dev/null --warning=no-timestamp
21850 tar xvfg archive.1 /dev/null --warning=no-timestamp
21852 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
21856 TEST_TAR_FORMAT=gnu
21857 export TEST_TAR_FORMAT
21858 TAR_OPTIONS="-H gnu"
21865 $as_ln_s foo directory/bar
21867 tar -cf archive.0 -g db directory
21869 tar -cf archive.1 -g db directory
21873 tar xvfg archive.0 /dev/null --warning=no-timestamp
21875 tar xvfg archive.1 /dev/null --warning=no-timestamp
21877 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21878 at_status=$? at_failed=false
21880 at_fn_diff_devnull "$at_stderr" || at_failed=:
21881 echo >>"$at_stdout"; $as_echo "directory/
21885 tar: Deleting 'directory/bar'
21887 $at_diff - "$at_stdout" || at_failed=:
21888 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
21889 $at_failed && at_fn_log_failure
21893 $as_echo "$at_srcdir/incr01.at:30:
21896 TEST_TAR_FORMAT=oldgnu
21897 export TEST_TAR_FORMAT
21898 TAR_OPTIONS=\"-H oldgnu\"
21905 \$as_ln_s foo directory/bar
21907 tar -cf archive.0 -g db directory
21909 tar -cf archive.1 -g db directory
21913 tar xvfg archive.0 /dev/null --warning=no-timestamp
21915 tar xvfg archive.1 /dev/null --warning=no-timestamp
21917 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
21921 TEST_TAR_FORMAT=oldgnu
21922 export TEST_TAR_FORMAT
21923 TAR_OPTIONS="-H oldgnu"
21930 $as_ln_s foo directory/bar
21932 tar -cf archive.0 -g db directory
21934 tar -cf archive.1 -g db directory
21938 tar xvfg archive.0 /dev/null --warning=no-timestamp
21940 tar xvfg archive.1 /dev/null --warning=no-timestamp
21942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21943 at_status=$? at_failed=false
21945 at_fn_diff_devnull "$at_stderr" || at_failed=:
21946 echo >>"$at_stdout"; $as_echo "directory/
21950 tar: Deleting 'directory/bar'
21952 $at_diff - "$at_stdout" || at_failed=:
21953 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
21954 $at_failed && at_fn_log_failure
21958 $as_echo "$at_srcdir/incr01.at:30:
21961 TEST_TAR_FORMAT=posix
21962 export TEST_TAR_FORMAT
21963 TAR_OPTIONS=\"-H posix\"
21970 \$as_ln_s foo directory/bar
21972 tar -cf archive.0 -g db directory
21974 tar -cf archive.1 -g db directory
21978 tar xvfg archive.0 /dev/null --warning=no-timestamp
21980 tar xvfg archive.1 /dev/null --warning=no-timestamp
21982 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
21986 TEST_TAR_FORMAT=posix
21987 export TEST_TAR_FORMAT
21988 TAR_OPTIONS="-H posix"
21995 $as_ln_s foo directory/bar
21997 tar -cf archive.0 -g db directory
21999 tar -cf archive.1 -g db directory
22003 tar xvfg archive.0 /dev/null --warning=no-timestamp
22005 tar xvfg archive.1 /dev/null --warning=no-timestamp
22007 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22008 at_status=$? at_failed=false
22010 at_fn_diff_devnull "$at_stderr" || at_failed=:
22011 echo >>"$at_stdout"; $as_echo "directory/
22015 tar: Deleting 'directory/bar'
22017 $at_diff - "$at_stdout" || at_failed=:
22018 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
22019 $at_failed && at_fn_log_failure
22026 $at_times_p && times >"$at_times_file"
22027 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22028 read at_status <"$at_status_file"
22031 at_fn_group_banner 91 'incr02.at:32' \
22032 "restoring timestamps from incremental" " " 11
22034 test -f $XFAILFILE && at_xfail=yes
22036 $as_echo "91. $at_setup_line: testing $at_desc ..."
22044 $as_echo "$at_srcdir/incr02.at:35:
22047 TEST_TAR_FORMAT=gnu
22048 export TEST_TAR_FORMAT
22049 TAR_OPTIONS=\"-H gnu\"
22054 # Create directory structure
22058 genfile --length 10 --file dir/subdir1/file
22060 # Save mtime for later comparison
22061 genfile --stat=mtime dir/subdir1 > ts
22063 # Create an archive. Using incremental mode makes sure the
22064 # archive will have a directory-first member ordering,
22069 # dir/subdir1/foofile
22071 # When restoring from this directory structure, 'dir/subdir2/' used to
22072 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22073 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22074 # latter clobbered the directory timestamp.
22076 tar -cf archive -g db dir
22078 # Move away the directory
22081 # Wait enough time for timestamps to differ in case of failure.
22084 # Restore the directory
22085 tar -xf archive dir
22087 # Check the timestamp
22088 genfile --stat=mtime dir/subdir1 | diff ts -
22090 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
22094 TEST_TAR_FORMAT=gnu
22095 export TEST_TAR_FORMAT
22096 TAR_OPTIONS="-H gnu"
22101 # Create directory structure
22105 genfile --length 10 --file dir/subdir1/file
22107 # Save mtime for later comparison
22108 genfile --stat=mtime dir/subdir1 > ts
22110 # Create an archive. Using incremental mode makes sure the
22111 # archive will have a directory-first member ordering,
22116 # dir/subdir1/foofile
22118 # When restoring from this directory structure, 'dir/subdir2/' used to
22119 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22120 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22121 # latter clobbered the directory timestamp.
22123 tar -cf archive -g db dir
22125 # Move away the directory
22128 # Wait enough time for timestamps to differ in case of failure.
22131 # Restore the directory
22132 tar -xf archive dir
22134 # Check the timestamp
22135 genfile --stat=mtime dir/subdir1 | diff ts -
22137 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22138 at_status=$? at_failed=false
22140 at_fn_diff_devnull "$at_stderr" || at_failed=:
22141 at_fn_diff_devnull "$at_stdout" || at_failed=:
22142 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
22143 $at_failed && at_fn_log_failure
22147 $as_echo "$at_srcdir/incr02.at:35:
22150 TEST_TAR_FORMAT=oldgnu
22151 export TEST_TAR_FORMAT
22152 TAR_OPTIONS=\"-H oldgnu\"
22157 # Create directory structure
22161 genfile --length 10 --file dir/subdir1/file
22163 # Save mtime for later comparison
22164 genfile --stat=mtime dir/subdir1 > ts
22166 # Create an archive. Using incremental mode makes sure the
22167 # archive will have a directory-first member ordering,
22172 # dir/subdir1/foofile
22174 # When restoring from this directory structure, 'dir/subdir2/' used to
22175 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22176 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22177 # latter clobbered the directory timestamp.
22179 tar -cf archive -g db dir
22181 # Move away the directory
22184 # Wait enough time for timestamps to differ in case of failure.
22187 # Restore the directory
22188 tar -xf archive dir
22190 # Check the timestamp
22191 genfile --stat=mtime dir/subdir1 | diff ts -
22193 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
22197 TEST_TAR_FORMAT=oldgnu
22198 export TEST_TAR_FORMAT
22199 TAR_OPTIONS="-H oldgnu"
22204 # Create directory structure
22208 genfile --length 10 --file dir/subdir1/file
22210 # Save mtime for later comparison
22211 genfile --stat=mtime dir/subdir1 > ts
22213 # Create an archive. Using incremental mode makes sure the
22214 # archive will have a directory-first member ordering,
22219 # dir/subdir1/foofile
22221 # When restoring from this directory structure, 'dir/subdir2/' used to
22222 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22223 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22224 # latter clobbered the directory timestamp.
22226 tar -cf archive -g db dir
22228 # Move away the directory
22231 # Wait enough time for timestamps to differ in case of failure.
22234 # Restore the directory
22235 tar -xf archive dir
22237 # Check the timestamp
22238 genfile --stat=mtime dir/subdir1 | diff ts -
22240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22241 at_status=$? at_failed=false
22243 at_fn_diff_devnull "$at_stderr" || at_failed=:
22244 at_fn_diff_devnull "$at_stdout" || at_failed=:
22245 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
22246 $at_failed && at_fn_log_failure
22250 $as_echo "$at_srcdir/incr02.at:35:
22253 TEST_TAR_FORMAT=posix
22254 export TEST_TAR_FORMAT
22255 TAR_OPTIONS=\"-H posix\"
22260 # Create directory structure
22264 genfile --length 10 --file dir/subdir1/file
22266 # Save mtime for later comparison
22267 genfile --stat=mtime dir/subdir1 > ts
22269 # Create an archive. Using incremental mode makes sure the
22270 # archive will have a directory-first member ordering,
22275 # dir/subdir1/foofile
22277 # When restoring from this directory structure, 'dir/subdir2/' used to
22278 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22279 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22280 # latter clobbered the directory timestamp.
22282 tar -cf archive -g db dir
22284 # Move away the directory
22287 # Wait enough time for timestamps to differ in case of failure.
22290 # Restore the directory
22291 tar -xf archive dir
22293 # Check the timestamp
22294 genfile --stat=mtime dir/subdir1 | diff ts -
22296 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
22300 TEST_TAR_FORMAT=posix
22301 export TEST_TAR_FORMAT
22302 TAR_OPTIONS="-H posix"
22307 # Create directory structure
22311 genfile --length 10 --file dir/subdir1/file
22313 # Save mtime for later comparison
22314 genfile --stat=mtime dir/subdir1 > ts
22316 # Create an archive. Using incremental mode makes sure the
22317 # archive will have a directory-first member ordering,
22322 # dir/subdir1/foofile
22324 # When restoring from this directory structure, 'dir/subdir2/' used to
22325 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
22326 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
22327 # latter clobbered the directory timestamp.
22329 tar -cf archive -g db dir
22331 # Move away the directory
22334 # Wait enough time for timestamps to differ in case of failure.
22337 # Restore the directory
22338 tar -xf archive dir
22340 # Check the timestamp
22341 genfile --stat=mtime dir/subdir1 | diff ts -
22343 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22344 at_status=$? at_failed=false
22346 at_fn_diff_devnull "$at_stderr" || at_failed=:
22347 at_fn_diff_devnull "$at_stdout" || at_failed=:
22348 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
22349 $at_failed && at_fn_log_failure
22356 $at_times_p && times >"$at_times_file"
22357 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22358 read at_status <"$at_status_file"
22361 at_fn_group_banner 92 'listed01.at:27' \
22362 "--listed for individual files" " " 11
22364 test -f $XFAILFILE && at_xfail=yes
22366 $as_echo "92. $at_setup_line: testing $at_desc ..."
22374 $as_echo "$at_srcdir/listed01.at:30:
22377 TEST_TAR_FORMAT=gnu
22378 export TEST_TAR_FORMAT
22379 TAR_OPTIONS=\"-H gnu\"
22386 genfile --length 10240 --pattern zeros --file directory/file1
22387 # Let the things settle
22391 --file=archive.1 \\
22392 --listed-incremental=listing \\
22395 tar tf archive.1 || exit 1
22399 genfile --length 10240 --pattern zeros --file directory/file2
22402 cp listing listing.old
22404 --file=archive.2 \\
22405 --listed-incremental=listing \\
22406 directory/file* || exit 1
22408 tar tf archive.2 || exit 1
22410 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:30"
22414 TEST_TAR_FORMAT=gnu
22415 export TEST_TAR_FORMAT
22416 TAR_OPTIONS="-H gnu"
22423 genfile --length 10240 --pattern zeros --file directory/file1
22424 # Let the things settle
22429 --listed-incremental=listing \
22432 tar tf archive.1 || exit 1
22436 genfile --length 10240 --pattern zeros --file directory/file2
22439 cp listing listing.old
22442 --listed-incremental=listing \
22443 directory/file* || exit 1
22445 tar tf archive.2 || exit 1
22447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22448 at_status=$? at_failed=false
22450 at_fn_diff_devnull "$at_stderr" || at_failed=:
22451 echo >>"$at_stdout"; $as_echo "directory/file1
22455 $at_diff - "$at_stdout" || at_failed=:
22456 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:30"
22457 $at_failed && at_fn_log_failure
22461 $as_echo "$at_srcdir/listed01.at:30:
22464 TEST_TAR_FORMAT=oldgnu
22465 export TEST_TAR_FORMAT
22466 TAR_OPTIONS=\"-H oldgnu\"
22473 genfile --length 10240 --pattern zeros --file directory/file1
22474 # Let the things settle
22478 --file=archive.1 \\
22479 --listed-incremental=listing \\
22482 tar tf archive.1 || exit 1
22486 genfile --length 10240 --pattern zeros --file directory/file2
22489 cp listing listing.old
22491 --file=archive.2 \\
22492 --listed-incremental=listing \\
22493 directory/file* || exit 1
22495 tar tf archive.2 || exit 1
22497 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:30"
22501 TEST_TAR_FORMAT=oldgnu
22502 export TEST_TAR_FORMAT
22503 TAR_OPTIONS="-H oldgnu"
22510 genfile --length 10240 --pattern zeros --file directory/file1
22511 # Let the things settle
22516 --listed-incremental=listing \
22519 tar tf archive.1 || exit 1
22523 genfile --length 10240 --pattern zeros --file directory/file2
22526 cp listing listing.old
22529 --listed-incremental=listing \
22530 directory/file* || exit 1
22532 tar tf archive.2 || exit 1
22534 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22535 at_status=$? at_failed=false
22537 at_fn_diff_devnull "$at_stderr" || at_failed=:
22538 echo >>"$at_stdout"; $as_echo "directory/file1
22542 $at_diff - "$at_stdout" || at_failed=:
22543 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:30"
22544 $at_failed && at_fn_log_failure
22551 $at_times_p && times >"$at_times_file"
22552 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22553 read at_status <"$at_status_file"
22556 at_fn_group_banner 93 'listed02.at:29' \
22557 "working --listed" " " 11
22559 test -f $XFAILFILE && at_xfail=yes
22561 $as_echo "93. $at_setup_line: testing $at_desc ..."
22569 $as_echo "$at_srcdir/listed02.at:32:
22572 TEST_TAR_FORMAT=gnu
22573 export TEST_TAR_FORMAT
22574 TAR_OPTIONS=\"-H gnu\"
22580 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22582 echo Create directories
22591 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
22593 echo File \$file > \$file
22598 echo Creating main archive
22599 echo >&2 \"Creating main archive\"
22600 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
22602 # The above prints two lines to stderr announcing the new directories c0 and c1.
22603 # Ensure that they appear in this script's stderr in sorted order.
22604 sort err 1>&2; rm -f err
22607 echo Modifying filesystem
22614 echo Directory contents
22615 find tart -print | sort 2>/dev/null
22618 echo Creating incremental archive
22619 echo >&2 \"Creating incremental archive\"
22620 cp -p tart.incr1 tart.incr2
22621 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
22626 echo Extracting main archive
22627 echo >&2 \"Extracting main archive\"
22628 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
22629 echo Extracting incremental archive
22630 # This command should produce three messages about deletion
22631 # of the existing files, that may appear in any order. Piping
22632 # to sort makes sure we don't depend on any particular ordering.
22633 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
22636 find tart -print | sort 2>/dev/null
22638 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:32"
22642 TEST_TAR_FORMAT=gnu
22643 export TEST_TAR_FORMAT
22644 TAR_OPTIONS="-H gnu"
22650 test -z "`sort < /dev/null 2>&1`" || exit 77
22652 echo Create directories
22661 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
22663 echo File $file > $file
22668 echo Creating main archive
22669 echo >&2 "Creating main archive"
22670 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
22672 # The above prints two lines to stderr announcing the new directories c0 and c1.
22673 # Ensure that they appear in this script's stderr in sorted order.
22674 sort err 1>&2; rm -f err
22677 echo Modifying filesystem
22684 echo Directory contents
22685 find tart -print | sort 2>/dev/null
22688 echo Creating incremental archive
22689 echo >&2 "Creating incremental archive"
22690 cp -p tart.incr1 tart.incr2
22691 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
22696 echo Extracting main archive
22697 echo >&2 "Extracting main archive"
22698 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
22699 echo Extracting incremental archive
22700 # This command should produce three messages about deletion
22701 # of the existing files, that may appear in any order. Piping
22702 # to sort makes sure we don't depend on any particular ordering.
22703 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
22706 find tart -print | sort 2>/dev/null
22708 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22709 at_status=$? at_failed=false
22711 echo >>"$at_stderr"; $as_echo "Creating main archive
22712 tar: tart/c0: Directory is new
22713 tar: tart/c1: Directory is new
22714 tar: tart: Directory is new
22715 Creating incremental archive
22716 tar: tart/c2: Directory has been renamed from 'tart/c1'
22717 Extracting main archive
22719 $at_diff - "$at_stderr" || at_failed=:
22720 echo >>"$at_stdout"; $as_echo "Create directories
22721 Creating main archive
22731 Modifying filesystem
22742 Creating incremental archive
22748 Extracting main archive
22758 Extracting incremental archive
22759 tar: Deleting 'tart/a1'
22760 tar: Deleting 'tart/b1'
22777 $at_diff - "$at_stdout" || at_failed=:
22778 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:32"
22779 $at_failed && at_fn_log_failure
22783 $as_echo "$at_srcdir/listed02.at:32:
22786 TEST_TAR_FORMAT=oldgnu
22787 export TEST_TAR_FORMAT
22788 TAR_OPTIONS=\"-H oldgnu\"
22794 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22796 echo Create directories
22805 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
22807 echo File \$file > \$file
22812 echo Creating main archive
22813 echo >&2 \"Creating main archive\"
22814 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
22816 # The above prints two lines to stderr announcing the new directories c0 and c1.
22817 # Ensure that they appear in this script's stderr in sorted order.
22818 sort err 1>&2; rm -f err
22821 echo Modifying filesystem
22828 echo Directory contents
22829 find tart -print | sort 2>/dev/null
22832 echo Creating incremental archive
22833 echo >&2 \"Creating incremental archive\"
22834 cp -p tart.incr1 tart.incr2
22835 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
22840 echo Extracting main archive
22841 echo >&2 \"Extracting main archive\"
22842 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
22843 echo Extracting incremental archive
22844 # This command should produce three messages about deletion
22845 # of the existing files, that may appear in any order. Piping
22846 # to sort makes sure we don't depend on any particular ordering.
22847 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
22850 find tart -print | sort 2>/dev/null
22852 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:32"
22856 TEST_TAR_FORMAT=oldgnu
22857 export TEST_TAR_FORMAT
22858 TAR_OPTIONS="-H oldgnu"
22864 test -z "`sort < /dev/null 2>&1`" || exit 77
22866 echo Create directories
22875 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
22877 echo File $file > $file
22882 echo Creating main archive
22883 echo >&2 "Creating main archive"
22884 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
22886 # The above prints two lines to stderr announcing the new directories c0 and c1.
22887 # Ensure that they appear in this script's stderr in sorted order.
22888 sort err 1>&2; rm -f err
22891 echo Modifying filesystem
22898 echo Directory contents
22899 find tart -print | sort 2>/dev/null
22902 echo Creating incremental archive
22903 echo >&2 "Creating incremental archive"
22904 cp -p tart.incr1 tart.incr2
22905 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
22910 echo Extracting main archive
22911 echo >&2 "Extracting main archive"
22912 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
22913 echo Extracting incremental archive
22914 # This command should produce three messages about deletion
22915 # of the existing files, that may appear in any order. Piping
22916 # to sort makes sure we don't depend on any particular ordering.
22917 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
22920 find tart -print | sort 2>/dev/null
22922 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22923 at_status=$? at_failed=false
22925 echo >>"$at_stderr"; $as_echo "Creating main archive
22926 tar: tart/c0: Directory is new
22927 tar: tart/c1: Directory is new
22928 tar: tart: Directory is new
22929 Creating incremental archive
22930 tar: tart/c2: Directory has been renamed from 'tart/c1'
22931 Extracting main archive
22933 $at_diff - "$at_stderr" || at_failed=:
22934 echo >>"$at_stdout"; $as_echo "Create directories
22935 Creating main archive
22945 Modifying filesystem
22956 Creating incremental archive
22962 Extracting main archive
22972 Extracting incremental archive
22973 tar: Deleting 'tart/a1'
22974 tar: Deleting 'tart/b1'
22991 $at_diff - "$at_stdout" || at_failed=:
22992 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:32"
22993 $at_failed && at_fn_log_failure
23000 $at_times_p && times >"$at_times_file"
23001 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23002 read at_status <"$at_status_file"
23005 at_fn_group_banner 94 'listed03.at:24' \
23006 "incremental dump when the parent directory is unreadable" "" 11
23008 test -f $XFAILFILE && at_xfail=yes
23010 $as_echo "94. $at_setup_line: testing $at_desc ..."
23018 $as_echo "$at_srcdir/listed03.at:27:
23021 TEST_TAR_FORMAT=gnu
23022 export TEST_TAR_FORMAT
23023 TAR_OPTIONS=\"-H gnu\"
23029 echo \"test\" > \$\$
23031 cat \$\$ > /dev/null 2>&1
23034 test \$result -eq 0 && exit 77
23040 genfile --file dir/sub/a/file
23044 tar -c -f archive.tar --listed-incremental=db.1 -v a 2>err
23047 if test \$status -eq 2; then
23048 grep '^tar: \\.: Cannot getcwd' err >/dev/null 2>&1 && exit 77
23053 at_fn_check_prepare_notrace 'an embedded newline' "listed03.at:27"
23057 TEST_TAR_FORMAT=gnu
23058 export TEST_TAR_FORMAT
23059 TAR_OPTIONS="-H gnu"
23067 cat $$ > /dev/null 2>&1
23070 test $result -eq 0 && exit 77
23076 genfile --file dir/sub/a/file
23080 tar -c -f archive.tar --listed-incremental=db.1 -v a 2>err
23083 if test $status -eq 2; then
23084 grep '^tar: \.: Cannot getcwd' err >/dev/null 2>&1 && exit 77
23089 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23090 at_status=$? at_failed=false
23092 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
23094 $at_diff - "$at_stderr" || at_failed=:
23095 echo >>"$at_stdout"; $as_echo "a/
23098 $at_diff - "$at_stdout" || at_failed=:
23099 at_fn_check_status 0 $at_status "$at_srcdir/listed03.at:27"
23100 $at_failed && at_fn_log_failure
23107 $at_times_p && times >"$at_times_file"
23108 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23109 read at_status <"$at_status_file"
23112 at_fn_group_banner 95 'listed04.at:26' \
23113 "--listed-incremental and --one-file-system" " " 11
23115 test -f $XFAILFILE && at_xfail=yes
23117 $as_echo "95. $at_setup_line: testing $at_desc ..."
23125 $as_echo "$at_srcdir/listed04.at:29:
23128 TEST_TAR_FORMAT=gnu
23129 export TEST_TAR_FORMAT
23130 TAR_OPTIONS=\"-H gnu\"
23139 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
23140 tar -tf archive.tar || exit
23142 at_fn_check_prepare_notrace 'an embedded newline' "listed04.at:29"
23146 TEST_TAR_FORMAT=gnu
23147 export TEST_TAR_FORMAT
23148 TAR_OPTIONS="-H gnu"
23157 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
23158 tar -tf archive.tar || exit
23160 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23161 at_status=$? at_failed=false
23163 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
23165 $at_diff - "$at_stderr" || at_failed=:
23166 echo >>"$at_stdout"; $as_echo "dir/
23173 $at_diff - "$at_stdout" || at_failed=:
23174 at_fn_check_status 0 $at_status "$at_srcdir/listed04.at:29"
23175 $at_failed && at_fn_log_failure
23182 $at_times_p && times >"$at_times_file"
23183 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23184 read at_status <"$at_status_file"
23187 at_fn_group_banner 96 'listed05.at:33' \
23188 "--listed-incremental and remounted directories" " " 11
23190 test -f $XFAILFILE && at_xfail=yes
23192 $as_echo "96. $at_setup_line: testing $at_desc ..."
23200 $as_echo "$at_srcdir/listed05.at:36:
23203 TEST_TAR_FORMAT=gnu
23204 export TEST_TAR_FORMAT
23205 TAR_OPTIONS=\"-H gnu\"
23211 echo \"test\" > \$\$
23213 cat \$\$ > /dev/null 2>&1
23216 test \$result -eq 0 || exit 77
23218 options=\"-C tartest --create --one-file-system --verbose\"
23219 rm -rf archive-01.snar archive-01.tar tartest subdir
23221 # Create initial structure
23223 echo \"hi\" > tartest/top-level-file
23224 mkdir tartest/subdir
23225 echo \"hi\" > tartest/subdir/subdir-file
23228 tar \$options --file archive-0.tar --listed-incremental=archive-0.snar .
23231 mv tartest/subdir .
23232 mkdir tartest/subdir
23233 mount -t ramfs none tartest/subdir || exit 77
23234 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
23237 cp archive-0.snar archive-1.snar
23238 tar \$options --file archive-1.tar --listed-incremental=archive-1.snar .
23240 umount tartest/subdir
23242 at_fn_check_prepare_notrace 'an embedded newline' "listed05.at:36"
23246 TEST_TAR_FORMAT=gnu
23247 export TEST_TAR_FORMAT
23248 TAR_OPTIONS="-H gnu"
23256 cat $$ > /dev/null 2>&1
23259 test $result -eq 0 || exit 77
23261 options="-C tartest --create --one-file-system --verbose"
23262 rm -rf archive-01.snar archive-01.tar tartest subdir
23264 # Create initial structure
23266 echo "hi" > tartest/top-level-file
23267 mkdir tartest/subdir
23268 echo "hi" > tartest/subdir/subdir-file
23271 tar $options --file archive-0.tar --listed-incremental=archive-0.snar .
23274 mv tartest/subdir .
23275 mkdir tartest/subdir
23276 mount -t ramfs none tartest/subdir || exit 77
23277 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
23280 cp archive-0.snar archive-1.snar
23281 tar $options --file archive-1.tar --listed-incremental=archive-1.snar .
23283 umount tartest/subdir
23285 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23286 at_status=$? at_failed=false
23288 echo >>"$at_stderr"; $as_echo "tar: .: Directory is new
23289 tar: ./subdir: Directory is new
23290 tar: ./subdir: directory is on a different filesystem; not dumped
23292 $at_diff - "$at_stderr" || at_failed=:
23293 echo >>"$at_stdout"; $as_echo "# Level 0
23297 ./subdir/subdir-file
23303 $at_diff - "$at_stdout" || at_failed=:
23304 at_fn_check_status 0 $at_status "$at_srcdir/listed05.at:36"
23305 $at_failed && at_fn_log_failure
23312 $at_times_p && times >"$at_times_file"
23313 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23314 read at_status <"$at_status_file"
23317 at_fn_group_banner 97 'incr03.at:29' \
23318 "renamed files in incrementals" " " 11
23320 test -f $XFAILFILE && at_xfail=yes
23322 $as_echo "97. $at_setup_line: testing $at_desc ..."
23330 $as_echo "$at_srcdir/incr03.at:32:
23333 TEST_TAR_FORMAT=gnu
23334 export TEST_TAR_FORMAT
23335 TAR_OPTIONS=\"-H gnu\"
23341 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23344 genfile --file=directory/x
23345 genfile --file=directory/y
23349 tar -cf archive.1 -g db directory
23351 mv directory/x directory/z
23353 tar -cf archive.2 -g db directory
23357 echo Listing of archive.1
23358 tar -tf archive.1 | sort
23359 echo Listing of archive.2
23360 tar -tf archive.2 | sort
23362 echo Directory after first restore
23363 tar -xf archive.1 -g db --warning=no-timestamp
23364 find directory | sort
23366 echo Directory after second restore
23367 tar -xf archive.2 -g db --warning=no-timestamp
23368 find directory | sort
23370 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:32"
23374 TEST_TAR_FORMAT=gnu
23375 export TEST_TAR_FORMAT
23376 TAR_OPTIONS="-H gnu"
23382 test -z "`sort < /dev/null 2>&1`" || exit 77
23385 genfile --file=directory/x
23386 genfile --file=directory/y
23390 tar -cf archive.1 -g db directory
23392 mv directory/x directory/z
23394 tar -cf archive.2 -g db directory
23398 echo Listing of archive.1
23399 tar -tf archive.1 | sort
23400 echo Listing of archive.2
23401 tar -tf archive.2 | sort
23403 echo Directory after first restore
23404 tar -xf archive.1 -g db --warning=no-timestamp
23405 find directory | sort
23407 echo Directory after second restore
23408 tar -xf archive.2 -g db --warning=no-timestamp
23409 find directory | sort
23411 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23412 at_status=$? at_failed=false
23414 at_fn_diff_devnull "$at_stderr" || at_failed=:
23415 echo >>"$at_stdout"; $as_echo "Listing of archive.1
23419 Listing of archive.2
23422 Directory after first restore
23426 Directory after second restore
23431 $at_diff - "$at_stdout" || at_failed=:
23432 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:32"
23433 $at_failed && at_fn_log_failure
23437 $as_echo "$at_srcdir/incr03.at:32:
23440 TEST_TAR_FORMAT=oldgnu
23441 export TEST_TAR_FORMAT
23442 TAR_OPTIONS=\"-H oldgnu\"
23448 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23451 genfile --file=directory/x
23452 genfile --file=directory/y
23456 tar -cf archive.1 -g db directory
23458 mv directory/x directory/z
23460 tar -cf archive.2 -g db directory
23464 echo Listing of archive.1
23465 tar -tf archive.1 | sort
23466 echo Listing of archive.2
23467 tar -tf archive.2 | sort
23469 echo Directory after first restore
23470 tar -xf archive.1 -g db --warning=no-timestamp
23471 find directory | sort
23473 echo Directory after second restore
23474 tar -xf archive.2 -g db --warning=no-timestamp
23475 find directory | sort
23477 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:32"
23481 TEST_TAR_FORMAT=oldgnu
23482 export TEST_TAR_FORMAT
23483 TAR_OPTIONS="-H oldgnu"
23489 test -z "`sort < /dev/null 2>&1`" || exit 77
23492 genfile --file=directory/x
23493 genfile --file=directory/y
23497 tar -cf archive.1 -g db directory
23499 mv directory/x directory/z
23501 tar -cf archive.2 -g db directory
23505 echo Listing of archive.1
23506 tar -tf archive.1 | sort
23507 echo Listing of archive.2
23508 tar -tf archive.2 | sort
23510 echo Directory after first restore
23511 tar -xf archive.1 -g db --warning=no-timestamp
23512 find directory | sort
23514 echo Directory after second restore
23515 tar -xf archive.2 -g db --warning=no-timestamp
23516 find directory | sort
23518 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23519 at_status=$? at_failed=false
23521 at_fn_diff_devnull "$at_stderr" || at_failed=:
23522 echo >>"$at_stdout"; $as_echo "Listing of archive.1
23526 Listing of archive.2
23529 Directory after first restore
23533 Directory after second restore
23538 $at_diff - "$at_stdout" || at_failed=:
23539 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:32"
23540 $at_failed && at_fn_log_failure
23544 $as_echo "$at_srcdir/incr03.at:32:
23547 TEST_TAR_FORMAT=posix
23548 export TEST_TAR_FORMAT
23549 TAR_OPTIONS=\"-H posix\"
23555 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23558 genfile --file=directory/x
23559 genfile --file=directory/y
23563 tar -cf archive.1 -g db directory
23565 mv directory/x directory/z
23567 tar -cf archive.2 -g db directory
23571 echo Listing of archive.1
23572 tar -tf archive.1 | sort
23573 echo Listing of archive.2
23574 tar -tf archive.2 | sort
23576 echo Directory after first restore
23577 tar -xf archive.1 -g db --warning=no-timestamp
23578 find directory | sort
23580 echo Directory after second restore
23581 tar -xf archive.2 -g db --warning=no-timestamp
23582 find directory | sort
23584 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:32"
23588 TEST_TAR_FORMAT=posix
23589 export TEST_TAR_FORMAT
23590 TAR_OPTIONS="-H posix"
23596 test -z "`sort < /dev/null 2>&1`" || exit 77
23599 genfile --file=directory/x
23600 genfile --file=directory/y
23604 tar -cf archive.1 -g db directory
23606 mv directory/x directory/z
23608 tar -cf archive.2 -g db directory
23612 echo Listing of archive.1
23613 tar -tf archive.1 | sort
23614 echo Listing of archive.2
23615 tar -tf archive.2 | sort
23617 echo Directory after first restore
23618 tar -xf archive.1 -g db --warning=no-timestamp
23619 find directory | sort
23621 echo Directory after second restore
23622 tar -xf archive.2 -g db --warning=no-timestamp
23623 find directory | sort
23625 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23626 at_status=$? at_failed=false
23628 at_fn_diff_devnull "$at_stderr" || at_failed=:
23629 echo >>"$at_stdout"; $as_echo "Listing of archive.1
23633 Listing of archive.2
23636 Directory after first restore
23640 Directory after second restore
23645 $at_diff - "$at_stdout" || at_failed=:
23646 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:32"
23647 $at_failed && at_fn_log_failure
23654 $at_times_p && times >"$at_times_file"
23655 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23656 read at_status <"$at_status_file"
23659 at_fn_group_banner 98 'incr04.at:30' \
23660 "proper icontents initialization" " " 11
23662 test -f $XFAILFILE && at_xfail=yes
23664 $as_echo "98. $at_setup_line: testing $at_desc ..."
23674 $as_echo "$at_srcdir/incr04.at:35:
23677 TEST_TAR_FORMAT=gnu
23678 export TEST_TAR_FORMAT
23679 TAR_OPTIONS=\"-H gnu\"
23685 install-sh -d a/b >/dev/null || exit 77
23687 for (i=1;i<=142;i++)
23688 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
23689 }' < /dev/null | genfile --files-from -
23693 echo \"Initial dump\"
23694 tar cvf a0.tar -g a.sna a
23696 echo \"Incremental dump\"
23697 tar cvf a1.tar -g a.sna a
23699 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:35"
23703 TEST_TAR_FORMAT=gnu
23704 export TEST_TAR_FORMAT
23705 TAR_OPTIONS="-H gnu"
23711 install-sh -d a/b >/dev/null || exit 77
23713 for (i=1;i<=142;i++)
23714 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
23715 }' < /dev/null | genfile --files-from -
23719 echo "Initial dump"
23720 tar cvf a0.tar -g a.sna a
23722 echo "Incremental dump"
23723 tar cvf a1.tar -g a.sna a
23725 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23726 at_status=$? at_failed=false
23728 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
23729 tar: a/b: Directory is new
23730 tar: a/c: Directory has been renamed from 'a/b'
23732 $at_diff - "$at_stderr" || at_failed=:
23733 echo >>"$at_stdout"; $as_echo "Initial dump
23736 a/b/one_31_chars_long_file_name_001
23737 a/b/one_31_chars_long_file_name_002
23738 a/b/one_31_chars_long_file_name_003
23739 a/b/one_31_chars_long_file_name_004
23740 a/b/one_31_chars_long_file_name_005
23741 a/b/one_31_chars_long_file_name_006
23742 a/b/one_31_chars_long_file_name_007
23743 a/b/one_31_chars_long_file_name_008
23744 a/b/one_31_chars_long_file_name_009
23745 a/b/one_31_chars_long_file_name_010
23746 a/b/one_31_chars_long_file_name_011
23747 a/b/one_31_chars_long_file_name_012
23748 a/b/one_31_chars_long_file_name_013
23749 a/b/one_31_chars_long_file_name_014
23750 a/b/one_31_chars_long_file_name_015
23751 a/b/one_31_chars_long_file_name_016
23752 a/b/one_31_chars_long_file_name_017
23753 a/b/one_31_chars_long_file_name_018
23754 a/b/one_31_chars_long_file_name_019
23755 a/b/one_31_chars_long_file_name_020
23756 a/b/one_31_chars_long_file_name_021
23757 a/b/one_31_chars_long_file_name_022
23758 a/b/one_31_chars_long_file_name_023
23759 a/b/one_31_chars_long_file_name_024
23760 a/b/one_31_chars_long_file_name_025
23761 a/b/one_31_chars_long_file_name_026
23762 a/b/one_31_chars_long_file_name_027
23763 a/b/one_31_chars_long_file_name_028
23764 a/b/one_31_chars_long_file_name_029
23765 a/b/one_31_chars_long_file_name_030
23766 a/b/one_31_chars_long_file_name_031
23767 a/b/one_31_chars_long_file_name_032
23768 a/b/one_31_chars_long_file_name_033
23769 a/b/one_31_chars_long_file_name_034
23770 a/b/one_31_chars_long_file_name_035
23771 a/b/one_31_chars_long_file_name_036
23772 a/b/one_31_chars_long_file_name_037
23773 a/b/one_31_chars_long_file_name_038
23774 a/b/one_31_chars_long_file_name_039
23775 a/b/one_31_chars_long_file_name_040
23776 a/b/one_31_chars_long_file_name_041
23777 a/b/one_31_chars_long_file_name_042
23778 a/b/one_31_chars_long_file_name_043
23779 a/b/one_31_chars_long_file_name_044
23780 a/b/one_31_chars_long_file_name_045
23781 a/b/one_31_chars_long_file_name_046
23782 a/b/one_31_chars_long_file_name_047
23783 a/b/one_31_chars_long_file_name_048
23784 a/b/one_31_chars_long_file_name_049
23785 a/b/one_31_chars_long_file_name_050
23786 a/b/one_31_chars_long_file_name_051
23787 a/b/one_31_chars_long_file_name_052
23788 a/b/one_31_chars_long_file_name_053
23789 a/b/one_31_chars_long_file_name_054
23790 a/b/one_31_chars_long_file_name_055
23791 a/b/one_31_chars_long_file_name_056
23792 a/b/one_31_chars_long_file_name_057
23793 a/b/one_31_chars_long_file_name_058
23794 a/b/one_31_chars_long_file_name_059
23795 a/b/one_31_chars_long_file_name_060
23796 a/b/one_31_chars_long_file_name_061
23797 a/b/one_31_chars_long_file_name_062
23798 a/b/one_31_chars_long_file_name_063
23799 a/b/one_31_chars_long_file_name_064
23800 a/b/one_31_chars_long_file_name_065
23801 a/b/one_31_chars_long_file_name_066
23802 a/b/one_31_chars_long_file_name_067
23803 a/b/one_31_chars_long_file_name_068
23804 a/b/one_31_chars_long_file_name_069
23805 a/b/one_31_chars_long_file_name_070
23806 a/b/one_31_chars_long_file_name_071
23807 a/b/one_31_chars_long_file_name_072
23808 a/b/one_31_chars_long_file_name_073
23809 a/b/one_31_chars_long_file_name_074
23810 a/b/one_31_chars_long_file_name_075
23811 a/b/one_31_chars_long_file_name_076
23812 a/b/one_31_chars_long_file_name_077
23813 a/b/one_31_chars_long_file_name_078
23814 a/b/one_31_chars_long_file_name_079
23815 a/b/one_31_chars_long_file_name_080
23816 a/b/one_31_chars_long_file_name_081
23817 a/b/one_31_chars_long_file_name_082
23818 a/b/one_31_chars_long_file_name_083
23819 a/b/one_31_chars_long_file_name_084
23820 a/b/one_31_chars_long_file_name_085
23821 a/b/one_31_chars_long_file_name_086
23822 a/b/one_31_chars_long_file_name_087
23823 a/b/one_31_chars_long_file_name_088
23824 a/b/one_31_chars_long_file_name_089
23825 a/b/one_31_chars_long_file_name_090
23826 a/b/one_31_chars_long_file_name_091
23827 a/b/one_31_chars_long_file_name_092
23828 a/b/one_31_chars_long_file_name_093
23829 a/b/one_31_chars_long_file_name_094
23830 a/b/one_31_chars_long_file_name_095
23831 a/b/one_31_chars_long_file_name_096
23832 a/b/one_31_chars_long_file_name_097
23833 a/b/one_31_chars_long_file_name_098
23834 a/b/one_31_chars_long_file_name_099
23835 a/b/one_31_chars_long_file_name_100
23836 a/b/one_31_chars_long_file_name_101
23837 a/b/one_31_chars_long_file_name_102
23838 a/b/one_31_chars_long_file_name_103
23839 a/b/one_31_chars_long_file_name_104
23840 a/b/one_31_chars_long_file_name_105
23841 a/b/one_31_chars_long_file_name_106
23842 a/b/one_31_chars_long_file_name_107
23843 a/b/one_31_chars_long_file_name_108
23844 a/b/one_31_chars_long_file_name_109
23845 a/b/one_31_chars_long_file_name_110
23846 a/b/one_31_chars_long_file_name_111
23847 a/b/one_31_chars_long_file_name_112
23848 a/b/one_31_chars_long_file_name_113
23849 a/b/one_31_chars_long_file_name_114
23850 a/b/one_31_chars_long_file_name_115
23851 a/b/one_31_chars_long_file_name_116
23852 a/b/one_31_chars_long_file_name_117
23853 a/b/one_31_chars_long_file_name_118
23854 a/b/one_31_chars_long_file_name_119
23855 a/b/one_31_chars_long_file_name_120
23856 a/b/one_31_chars_long_file_name_121
23857 a/b/one_31_chars_long_file_name_122
23858 a/b/one_31_chars_long_file_name_123
23859 a/b/one_31_chars_long_file_name_124
23860 a/b/one_31_chars_long_file_name_125
23861 a/b/one_31_chars_long_file_name_126
23862 a/b/one_31_chars_long_file_name_127
23863 a/b/one_31_chars_long_file_name_128
23864 a/b/one_31_chars_long_file_name_129
23865 a/b/one_31_chars_long_file_name_130
23866 a/b/one_31_chars_long_file_name_131
23867 a/b/one_31_chars_long_file_name_132
23868 a/b/one_31_chars_long_file_name_133
23869 a/b/one_31_chars_long_file_name_134
23870 a/b/one_31_chars_long_file_name_135
23871 a/b/one_31_chars_long_file_name_136
23872 a/b/one_31_chars_long_file_name_137
23873 a/b/one_31_chars_long_file_name_138
23874 a/b/one_31_chars_long_file_name_139
23875 a/b/one_31_chars_long_file_name_140
23876 a/b/one_31_chars_long_file_name_141
23877 a/b/one_31_chars_long_file_name_142
23882 $at_diff - "$at_stdout" || at_failed=:
23883 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:35"
23884 $at_failed && at_fn_log_failure
23888 $as_echo "$at_srcdir/incr04.at:35:
23891 TEST_TAR_FORMAT=oldgnu
23892 export TEST_TAR_FORMAT
23893 TAR_OPTIONS=\"-H oldgnu\"
23899 install-sh -d a/b >/dev/null || exit 77
23901 for (i=1;i<=142;i++)
23902 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
23903 }' < /dev/null | genfile --files-from -
23907 echo \"Initial dump\"
23908 tar cvf a0.tar -g a.sna a
23910 echo \"Incremental dump\"
23911 tar cvf a1.tar -g a.sna a
23913 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:35"
23917 TEST_TAR_FORMAT=oldgnu
23918 export TEST_TAR_FORMAT
23919 TAR_OPTIONS="-H oldgnu"
23925 install-sh -d a/b >/dev/null || exit 77
23927 for (i=1;i<=142;i++)
23928 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
23929 }' < /dev/null | genfile --files-from -
23933 echo "Initial dump"
23934 tar cvf a0.tar -g a.sna a
23936 echo "Incremental dump"
23937 tar cvf a1.tar -g a.sna a
23939 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23940 at_status=$? at_failed=false
23942 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
23943 tar: a/b: Directory is new
23944 tar: a/c: Directory has been renamed from 'a/b'
23946 $at_diff - "$at_stderr" || at_failed=:
23947 echo >>"$at_stdout"; $as_echo "Initial dump
23950 a/b/one_31_chars_long_file_name_001
23951 a/b/one_31_chars_long_file_name_002
23952 a/b/one_31_chars_long_file_name_003
23953 a/b/one_31_chars_long_file_name_004
23954 a/b/one_31_chars_long_file_name_005
23955 a/b/one_31_chars_long_file_name_006
23956 a/b/one_31_chars_long_file_name_007
23957 a/b/one_31_chars_long_file_name_008
23958 a/b/one_31_chars_long_file_name_009
23959 a/b/one_31_chars_long_file_name_010
23960 a/b/one_31_chars_long_file_name_011
23961 a/b/one_31_chars_long_file_name_012
23962 a/b/one_31_chars_long_file_name_013
23963 a/b/one_31_chars_long_file_name_014
23964 a/b/one_31_chars_long_file_name_015
23965 a/b/one_31_chars_long_file_name_016
23966 a/b/one_31_chars_long_file_name_017
23967 a/b/one_31_chars_long_file_name_018
23968 a/b/one_31_chars_long_file_name_019
23969 a/b/one_31_chars_long_file_name_020
23970 a/b/one_31_chars_long_file_name_021
23971 a/b/one_31_chars_long_file_name_022
23972 a/b/one_31_chars_long_file_name_023
23973 a/b/one_31_chars_long_file_name_024
23974 a/b/one_31_chars_long_file_name_025
23975 a/b/one_31_chars_long_file_name_026
23976 a/b/one_31_chars_long_file_name_027
23977 a/b/one_31_chars_long_file_name_028
23978 a/b/one_31_chars_long_file_name_029
23979 a/b/one_31_chars_long_file_name_030
23980 a/b/one_31_chars_long_file_name_031
23981 a/b/one_31_chars_long_file_name_032
23982 a/b/one_31_chars_long_file_name_033
23983 a/b/one_31_chars_long_file_name_034
23984 a/b/one_31_chars_long_file_name_035
23985 a/b/one_31_chars_long_file_name_036
23986 a/b/one_31_chars_long_file_name_037
23987 a/b/one_31_chars_long_file_name_038
23988 a/b/one_31_chars_long_file_name_039
23989 a/b/one_31_chars_long_file_name_040
23990 a/b/one_31_chars_long_file_name_041
23991 a/b/one_31_chars_long_file_name_042
23992 a/b/one_31_chars_long_file_name_043
23993 a/b/one_31_chars_long_file_name_044
23994 a/b/one_31_chars_long_file_name_045
23995 a/b/one_31_chars_long_file_name_046
23996 a/b/one_31_chars_long_file_name_047
23997 a/b/one_31_chars_long_file_name_048
23998 a/b/one_31_chars_long_file_name_049
23999 a/b/one_31_chars_long_file_name_050
24000 a/b/one_31_chars_long_file_name_051
24001 a/b/one_31_chars_long_file_name_052
24002 a/b/one_31_chars_long_file_name_053
24003 a/b/one_31_chars_long_file_name_054
24004 a/b/one_31_chars_long_file_name_055
24005 a/b/one_31_chars_long_file_name_056
24006 a/b/one_31_chars_long_file_name_057
24007 a/b/one_31_chars_long_file_name_058
24008 a/b/one_31_chars_long_file_name_059
24009 a/b/one_31_chars_long_file_name_060
24010 a/b/one_31_chars_long_file_name_061
24011 a/b/one_31_chars_long_file_name_062
24012 a/b/one_31_chars_long_file_name_063
24013 a/b/one_31_chars_long_file_name_064
24014 a/b/one_31_chars_long_file_name_065
24015 a/b/one_31_chars_long_file_name_066
24016 a/b/one_31_chars_long_file_name_067
24017 a/b/one_31_chars_long_file_name_068
24018 a/b/one_31_chars_long_file_name_069
24019 a/b/one_31_chars_long_file_name_070
24020 a/b/one_31_chars_long_file_name_071
24021 a/b/one_31_chars_long_file_name_072
24022 a/b/one_31_chars_long_file_name_073
24023 a/b/one_31_chars_long_file_name_074
24024 a/b/one_31_chars_long_file_name_075
24025 a/b/one_31_chars_long_file_name_076
24026 a/b/one_31_chars_long_file_name_077
24027 a/b/one_31_chars_long_file_name_078
24028 a/b/one_31_chars_long_file_name_079
24029 a/b/one_31_chars_long_file_name_080
24030 a/b/one_31_chars_long_file_name_081
24031 a/b/one_31_chars_long_file_name_082
24032 a/b/one_31_chars_long_file_name_083
24033 a/b/one_31_chars_long_file_name_084
24034 a/b/one_31_chars_long_file_name_085
24035 a/b/one_31_chars_long_file_name_086
24036 a/b/one_31_chars_long_file_name_087
24037 a/b/one_31_chars_long_file_name_088
24038 a/b/one_31_chars_long_file_name_089
24039 a/b/one_31_chars_long_file_name_090
24040 a/b/one_31_chars_long_file_name_091
24041 a/b/one_31_chars_long_file_name_092
24042 a/b/one_31_chars_long_file_name_093
24043 a/b/one_31_chars_long_file_name_094
24044 a/b/one_31_chars_long_file_name_095
24045 a/b/one_31_chars_long_file_name_096
24046 a/b/one_31_chars_long_file_name_097
24047 a/b/one_31_chars_long_file_name_098
24048 a/b/one_31_chars_long_file_name_099
24049 a/b/one_31_chars_long_file_name_100
24050 a/b/one_31_chars_long_file_name_101
24051 a/b/one_31_chars_long_file_name_102
24052 a/b/one_31_chars_long_file_name_103
24053 a/b/one_31_chars_long_file_name_104
24054 a/b/one_31_chars_long_file_name_105
24055 a/b/one_31_chars_long_file_name_106
24056 a/b/one_31_chars_long_file_name_107
24057 a/b/one_31_chars_long_file_name_108
24058 a/b/one_31_chars_long_file_name_109
24059 a/b/one_31_chars_long_file_name_110
24060 a/b/one_31_chars_long_file_name_111
24061 a/b/one_31_chars_long_file_name_112
24062 a/b/one_31_chars_long_file_name_113
24063 a/b/one_31_chars_long_file_name_114
24064 a/b/one_31_chars_long_file_name_115
24065 a/b/one_31_chars_long_file_name_116
24066 a/b/one_31_chars_long_file_name_117
24067 a/b/one_31_chars_long_file_name_118
24068 a/b/one_31_chars_long_file_name_119
24069 a/b/one_31_chars_long_file_name_120
24070 a/b/one_31_chars_long_file_name_121
24071 a/b/one_31_chars_long_file_name_122
24072 a/b/one_31_chars_long_file_name_123
24073 a/b/one_31_chars_long_file_name_124
24074 a/b/one_31_chars_long_file_name_125
24075 a/b/one_31_chars_long_file_name_126
24076 a/b/one_31_chars_long_file_name_127
24077 a/b/one_31_chars_long_file_name_128
24078 a/b/one_31_chars_long_file_name_129
24079 a/b/one_31_chars_long_file_name_130
24080 a/b/one_31_chars_long_file_name_131
24081 a/b/one_31_chars_long_file_name_132
24082 a/b/one_31_chars_long_file_name_133
24083 a/b/one_31_chars_long_file_name_134
24084 a/b/one_31_chars_long_file_name_135
24085 a/b/one_31_chars_long_file_name_136
24086 a/b/one_31_chars_long_file_name_137
24087 a/b/one_31_chars_long_file_name_138
24088 a/b/one_31_chars_long_file_name_139
24089 a/b/one_31_chars_long_file_name_140
24090 a/b/one_31_chars_long_file_name_141
24091 a/b/one_31_chars_long_file_name_142
24096 $at_diff - "$at_stdout" || at_failed=:
24097 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:35"
24098 $at_failed && at_fn_log_failure
24102 $as_echo "$at_srcdir/incr04.at:35:
24105 TEST_TAR_FORMAT=posix
24106 export TEST_TAR_FORMAT
24107 TAR_OPTIONS=\"-H posix\"
24113 install-sh -d a/b >/dev/null || exit 77
24115 for (i=1;i<=142;i++)
24116 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
24117 }' < /dev/null | genfile --files-from -
24121 echo \"Initial dump\"
24122 tar cvf a0.tar -g a.sna a
24124 echo \"Incremental dump\"
24125 tar cvf a1.tar -g a.sna a
24127 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:35"
24131 TEST_TAR_FORMAT=posix
24132 export TEST_TAR_FORMAT
24133 TAR_OPTIONS="-H posix"
24139 install-sh -d a/b >/dev/null || exit 77
24141 for (i=1;i<=142;i++)
24142 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
24143 }' < /dev/null | genfile --files-from -
24147 echo "Initial dump"
24148 tar cvf a0.tar -g a.sna a
24150 echo "Incremental dump"
24151 tar cvf a1.tar -g a.sna a
24153 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24154 at_status=$? at_failed=false
24156 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
24157 tar: a/b: Directory is new
24158 tar: a/c: Directory has been renamed from 'a/b'
24160 $at_diff - "$at_stderr" || at_failed=:
24161 echo >>"$at_stdout"; $as_echo "Initial dump
24164 a/b/one_31_chars_long_file_name_001
24165 a/b/one_31_chars_long_file_name_002
24166 a/b/one_31_chars_long_file_name_003
24167 a/b/one_31_chars_long_file_name_004
24168 a/b/one_31_chars_long_file_name_005
24169 a/b/one_31_chars_long_file_name_006
24170 a/b/one_31_chars_long_file_name_007
24171 a/b/one_31_chars_long_file_name_008
24172 a/b/one_31_chars_long_file_name_009
24173 a/b/one_31_chars_long_file_name_010
24174 a/b/one_31_chars_long_file_name_011
24175 a/b/one_31_chars_long_file_name_012
24176 a/b/one_31_chars_long_file_name_013
24177 a/b/one_31_chars_long_file_name_014
24178 a/b/one_31_chars_long_file_name_015
24179 a/b/one_31_chars_long_file_name_016
24180 a/b/one_31_chars_long_file_name_017
24181 a/b/one_31_chars_long_file_name_018
24182 a/b/one_31_chars_long_file_name_019
24183 a/b/one_31_chars_long_file_name_020
24184 a/b/one_31_chars_long_file_name_021
24185 a/b/one_31_chars_long_file_name_022
24186 a/b/one_31_chars_long_file_name_023
24187 a/b/one_31_chars_long_file_name_024
24188 a/b/one_31_chars_long_file_name_025
24189 a/b/one_31_chars_long_file_name_026
24190 a/b/one_31_chars_long_file_name_027
24191 a/b/one_31_chars_long_file_name_028
24192 a/b/one_31_chars_long_file_name_029
24193 a/b/one_31_chars_long_file_name_030
24194 a/b/one_31_chars_long_file_name_031
24195 a/b/one_31_chars_long_file_name_032
24196 a/b/one_31_chars_long_file_name_033
24197 a/b/one_31_chars_long_file_name_034
24198 a/b/one_31_chars_long_file_name_035
24199 a/b/one_31_chars_long_file_name_036
24200 a/b/one_31_chars_long_file_name_037
24201 a/b/one_31_chars_long_file_name_038
24202 a/b/one_31_chars_long_file_name_039
24203 a/b/one_31_chars_long_file_name_040
24204 a/b/one_31_chars_long_file_name_041
24205 a/b/one_31_chars_long_file_name_042
24206 a/b/one_31_chars_long_file_name_043
24207 a/b/one_31_chars_long_file_name_044
24208 a/b/one_31_chars_long_file_name_045
24209 a/b/one_31_chars_long_file_name_046
24210 a/b/one_31_chars_long_file_name_047
24211 a/b/one_31_chars_long_file_name_048
24212 a/b/one_31_chars_long_file_name_049
24213 a/b/one_31_chars_long_file_name_050
24214 a/b/one_31_chars_long_file_name_051
24215 a/b/one_31_chars_long_file_name_052
24216 a/b/one_31_chars_long_file_name_053
24217 a/b/one_31_chars_long_file_name_054
24218 a/b/one_31_chars_long_file_name_055
24219 a/b/one_31_chars_long_file_name_056
24220 a/b/one_31_chars_long_file_name_057
24221 a/b/one_31_chars_long_file_name_058
24222 a/b/one_31_chars_long_file_name_059
24223 a/b/one_31_chars_long_file_name_060
24224 a/b/one_31_chars_long_file_name_061
24225 a/b/one_31_chars_long_file_name_062
24226 a/b/one_31_chars_long_file_name_063
24227 a/b/one_31_chars_long_file_name_064
24228 a/b/one_31_chars_long_file_name_065
24229 a/b/one_31_chars_long_file_name_066
24230 a/b/one_31_chars_long_file_name_067
24231 a/b/one_31_chars_long_file_name_068
24232 a/b/one_31_chars_long_file_name_069
24233 a/b/one_31_chars_long_file_name_070
24234 a/b/one_31_chars_long_file_name_071
24235 a/b/one_31_chars_long_file_name_072
24236 a/b/one_31_chars_long_file_name_073
24237 a/b/one_31_chars_long_file_name_074
24238 a/b/one_31_chars_long_file_name_075
24239 a/b/one_31_chars_long_file_name_076
24240 a/b/one_31_chars_long_file_name_077
24241 a/b/one_31_chars_long_file_name_078
24242 a/b/one_31_chars_long_file_name_079
24243 a/b/one_31_chars_long_file_name_080
24244 a/b/one_31_chars_long_file_name_081
24245 a/b/one_31_chars_long_file_name_082
24246 a/b/one_31_chars_long_file_name_083
24247 a/b/one_31_chars_long_file_name_084
24248 a/b/one_31_chars_long_file_name_085
24249 a/b/one_31_chars_long_file_name_086
24250 a/b/one_31_chars_long_file_name_087
24251 a/b/one_31_chars_long_file_name_088
24252 a/b/one_31_chars_long_file_name_089
24253 a/b/one_31_chars_long_file_name_090
24254 a/b/one_31_chars_long_file_name_091
24255 a/b/one_31_chars_long_file_name_092
24256 a/b/one_31_chars_long_file_name_093
24257 a/b/one_31_chars_long_file_name_094
24258 a/b/one_31_chars_long_file_name_095
24259 a/b/one_31_chars_long_file_name_096
24260 a/b/one_31_chars_long_file_name_097
24261 a/b/one_31_chars_long_file_name_098
24262 a/b/one_31_chars_long_file_name_099
24263 a/b/one_31_chars_long_file_name_100
24264 a/b/one_31_chars_long_file_name_101
24265 a/b/one_31_chars_long_file_name_102
24266 a/b/one_31_chars_long_file_name_103
24267 a/b/one_31_chars_long_file_name_104
24268 a/b/one_31_chars_long_file_name_105
24269 a/b/one_31_chars_long_file_name_106
24270 a/b/one_31_chars_long_file_name_107
24271 a/b/one_31_chars_long_file_name_108
24272 a/b/one_31_chars_long_file_name_109
24273 a/b/one_31_chars_long_file_name_110
24274 a/b/one_31_chars_long_file_name_111
24275 a/b/one_31_chars_long_file_name_112
24276 a/b/one_31_chars_long_file_name_113
24277 a/b/one_31_chars_long_file_name_114
24278 a/b/one_31_chars_long_file_name_115
24279 a/b/one_31_chars_long_file_name_116
24280 a/b/one_31_chars_long_file_name_117
24281 a/b/one_31_chars_long_file_name_118
24282 a/b/one_31_chars_long_file_name_119
24283 a/b/one_31_chars_long_file_name_120
24284 a/b/one_31_chars_long_file_name_121
24285 a/b/one_31_chars_long_file_name_122
24286 a/b/one_31_chars_long_file_name_123
24287 a/b/one_31_chars_long_file_name_124
24288 a/b/one_31_chars_long_file_name_125
24289 a/b/one_31_chars_long_file_name_126
24290 a/b/one_31_chars_long_file_name_127
24291 a/b/one_31_chars_long_file_name_128
24292 a/b/one_31_chars_long_file_name_129
24293 a/b/one_31_chars_long_file_name_130
24294 a/b/one_31_chars_long_file_name_131
24295 a/b/one_31_chars_long_file_name_132
24296 a/b/one_31_chars_long_file_name_133
24297 a/b/one_31_chars_long_file_name_134
24298 a/b/one_31_chars_long_file_name_135
24299 a/b/one_31_chars_long_file_name_136
24300 a/b/one_31_chars_long_file_name_137
24301 a/b/one_31_chars_long_file_name_138
24302 a/b/one_31_chars_long_file_name_139
24303 a/b/one_31_chars_long_file_name_140
24304 a/b/one_31_chars_long_file_name_141
24305 a/b/one_31_chars_long_file_name_142
24310 $at_diff - "$at_stdout" || at_failed=:
24311 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:35"
24312 $at_failed && at_fn_log_failure
24320 $at_times_p && times >"$at_times_file"
24321 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24322 read at_status <"$at_status_file"
24325 at_fn_group_banner 99 'incr05.at:21' \
24326 "incremental dumps with -C" " " 11
24328 test -f $XFAILFILE && at_xfail=yes
24330 $as_echo "99. $at_setup_line: testing $at_desc ..."
24338 $as_echo "$at_srcdir/incr05.at:24:
24341 TEST_TAR_FORMAT=gnu
24342 export TEST_TAR_FORMAT
24343 TAR_OPTIONS=\"-H gnu\"
24350 genfile --file dir/file1
24351 genfile --file dir/sub/file2
24354 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24356 genfile --file dir/file3
24358 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24360 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
24364 TEST_TAR_FORMAT=gnu
24365 export TEST_TAR_FORMAT
24366 TAR_OPTIONS="-H gnu"
24373 genfile --file dir/file1
24374 genfile --file dir/sub/file2
24377 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24379 genfile --file dir/file3
24381 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24384 at_status=$? at_failed=false
24386 at_fn_diff_devnull "$at_stderr" || at_failed=:
24387 echo >>"$at_stdout"; $as_echo "Level 0
24397 $at_diff - "$at_stdout" || at_failed=:
24398 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
24399 $at_failed && at_fn_log_failure
24403 $as_echo "$at_srcdir/incr05.at:24:
24406 TEST_TAR_FORMAT=oldgnu
24407 export TEST_TAR_FORMAT
24408 TAR_OPTIONS=\"-H oldgnu\"
24415 genfile --file dir/file1
24416 genfile --file dir/sub/file2
24419 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24421 genfile --file dir/file3
24423 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24425 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
24429 TEST_TAR_FORMAT=oldgnu
24430 export TEST_TAR_FORMAT
24431 TAR_OPTIONS="-H oldgnu"
24438 genfile --file dir/file1
24439 genfile --file dir/sub/file2
24442 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24444 genfile --file dir/file3
24446 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24448 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24449 at_status=$? at_failed=false
24451 at_fn_diff_devnull "$at_stderr" || at_failed=:
24452 echo >>"$at_stdout"; $as_echo "Level 0
24462 $at_diff - "$at_stdout" || at_failed=:
24463 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
24464 $at_failed && at_fn_log_failure
24468 $as_echo "$at_srcdir/incr05.at:24:
24471 TEST_TAR_FORMAT=posix
24472 export TEST_TAR_FORMAT
24473 TAR_OPTIONS=\"-H posix\"
24480 genfile --file dir/file1
24481 genfile --file dir/sub/file2
24484 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24486 genfile --file dir/file3
24488 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24490 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
24494 TEST_TAR_FORMAT=posix
24495 export TEST_TAR_FORMAT
24496 TAR_OPTIONS="-H posix"
24503 genfile --file dir/file1
24504 genfile --file dir/sub/file2
24507 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24509 genfile --file dir/file3
24511 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
24513 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24514 at_status=$? at_failed=false
24516 at_fn_diff_devnull "$at_stderr" || at_failed=:
24517 echo >>"$at_stdout"; $as_echo "Level 0
24527 $at_diff - "$at_stdout" || at_failed=:
24528 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
24529 $at_failed && at_fn_log_failure
24536 $at_times_p && times >"$at_times_file"
24537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24538 read at_status <"$at_status_file"
24541 at_fn_group_banner 100 'incr06.at:21' \
24542 "incremental dumps of nested directories" " " 11
24544 test -f $XFAILFILE && at_xfail=yes
24546 $as_echo "100. $at_setup_line: testing $at_desc ..."
24554 $as_echo "$at_srcdir/incr06.at:24:
24557 TEST_TAR_FORMAT=gnu
24558 export TEST_TAR_FORMAT
24559 TAR_OPTIONS=\"-H gnu\"
24568 genfile --file dir/file1
24569 genfile --file dir/sub/file2
24570 genfile --file dir/sub/a/file3
24573 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24575 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24578 genfile --file dir/sub/b/file4
24581 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24583 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24585 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
24589 TEST_TAR_FORMAT=gnu
24590 export TEST_TAR_FORMAT
24591 TAR_OPTIONS="-H gnu"
24600 genfile --file dir/file1
24601 genfile --file dir/sub/file2
24602 genfile --file dir/sub/a/file3
24605 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24607 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24610 genfile --file dir/sub/b/file4
24613 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24615 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24617 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24618 at_status=$? at_failed=false
24620 at_fn_diff_devnull "$at_stderr" || at_failed=:
24621 echo >>"$at_stdout"; $as_echo "Level 0 . sub
24652 $at_diff - "$at_stdout" || at_failed=:
24653 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
24654 $at_failed && at_fn_log_failure
24658 $as_echo "$at_srcdir/incr06.at:24:
24661 TEST_TAR_FORMAT=oldgnu
24662 export TEST_TAR_FORMAT
24663 TAR_OPTIONS=\"-H oldgnu\"
24672 genfile --file dir/file1
24673 genfile --file dir/sub/file2
24674 genfile --file dir/sub/a/file3
24677 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24679 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24682 genfile --file dir/sub/b/file4
24685 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24687 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24689 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
24693 TEST_TAR_FORMAT=oldgnu
24694 export TEST_TAR_FORMAT
24695 TAR_OPTIONS="-H oldgnu"
24704 genfile --file dir/file1
24705 genfile --file dir/sub/file2
24706 genfile --file dir/sub/a/file3
24709 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24711 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24714 genfile --file dir/sub/b/file4
24717 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24719 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24721 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24722 at_status=$? at_failed=false
24724 at_fn_diff_devnull "$at_stderr" || at_failed=:
24725 echo >>"$at_stdout"; $as_echo "Level 0 . sub
24756 $at_diff - "$at_stdout" || at_failed=:
24757 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
24758 $at_failed && at_fn_log_failure
24762 $as_echo "$at_srcdir/incr06.at:24:
24765 TEST_TAR_FORMAT=posix
24766 export TEST_TAR_FORMAT
24767 TAR_OPTIONS=\"-H posix\"
24776 genfile --file dir/file1
24777 genfile --file dir/sub/file2
24778 genfile --file dir/sub/a/file3
24781 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24783 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24786 genfile --file dir/sub/b/file4
24789 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24791 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24793 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
24797 TEST_TAR_FORMAT=posix
24798 export TEST_TAR_FORMAT
24799 TAR_OPTIONS="-H posix"
24808 genfile --file dir/file1
24809 genfile --file dir/sub/file2
24810 genfile --file dir/sub/a/file3
24813 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24815 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24818 genfile --file dir/sub/b/file4
24821 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
24823 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
24825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24826 at_status=$? at_failed=false
24828 at_fn_diff_devnull "$at_stderr" || at_failed=:
24829 echo >>"$at_stdout"; $as_echo "Level 0 . sub
24860 $at_diff - "$at_stdout" || at_failed=:
24861 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
24862 $at_failed && at_fn_log_failure
24869 $at_times_p && times >"$at_times_file"
24870 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24871 read at_status <"$at_status_file"
24874 at_fn_group_banner 101 'incr07.at:18' \
24875 "incremental restores with -C" " " 11
24877 test -f $XFAILFILE && at_xfail=yes
24879 $as_echo "101. $at_setup_line: testing $at_desc ..."
24884 # Tar 1.26 had problems extracting from incremental restores when given
24885 # the -C option. The code in incremen.c:try_purge_directory and
24886 # misc.c:remove_any_file was using savedir(), which ignored eventual changes
24887 # in the current working directory and caused the malfunctioning.
24889 # The problem was reported by Piotr Rotter on 2013-03-22.
24891 # This testcase is based on scripts provided by Piotr Rotter and Nathan
24892 # Stratton Treadway.
24894 # References: <514C8F56.90900@active24.pl>,
24895 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00036.html,
24896 # <20130326181922.GZ3732@shire.ontko.com>,
24897 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00042.html,
24898 # <20130327051828.GA3732@shire.ontko.com>,
24899 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00043.html,
24900 # <20130327054957.GB3732@shire.ontko.com>,
24901 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00044.html
24906 $as_echo "$at_srcdir/incr07.at:40:
24909 TEST_TAR_FORMAT=gnu
24910 export TEST_TAR_FORMAT
24911 TAR_OPTIONS=\"-H gnu\"
24921 tar -g test.snar -vcf test.0.tar dirA
24925 tar -g test.snar -vcf test.1.tar dirA
24929 tar -g test.snar -vcf test.2.tar dirA
24935 tar -g test.snar -vxf test.0.tar -C ext/
24937 tar -g test.snar -vxf test.1.tar -C ext/
24940 tar -g test.snar -vxf test.2.tar -C ext/
24942 mkdir ext/dirA/dirB
24943 touch ext/dirA/dirB/file
24946 tar -g test.snar -vxf test.2.tar -C ext/
24949 test -d dirA && echo >&2 \"toplevel dirA exists\"
24952 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
24956 TEST_TAR_FORMAT=gnu
24957 export TEST_TAR_FORMAT
24958 TAR_OPTIONS="-H gnu"
24968 tar -g test.snar -vcf test.0.tar dirA
24972 tar -g test.snar -vcf test.1.tar dirA
24976 tar -g test.snar -vcf test.2.tar dirA
24982 tar -g test.snar -vxf test.0.tar -C ext/
24984 tar -g test.snar -vxf test.1.tar -C ext/
24987 tar -g test.snar -vxf test.2.tar -C ext/
24989 mkdir ext/dirA/dirB
24990 touch ext/dirA/dirB/file
24993 tar -g test.snar -vxf test.2.tar -C ext/
24996 test -d dirA && echo >&2 "toplevel dirA exists"
24999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25000 at_status=$? at_failed=false
25002 echo >>"$at_stderr"; $as_echo "C0
25003 tar: dirA: Directory is new
25011 $at_diff - "$at_stderr" || at_failed=:
25012 echo >>"$at_stdout"; $as_echo "C0
25030 tar: Deleting 'dirA/a'
25033 tar: Deleting 'dirA/dirB'
25036 $at_diff - "$at_stdout" || at_failed=:
25037 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
25038 $at_failed && at_fn_log_failure
25042 $as_echo "$at_srcdir/incr07.at:40:
25045 TEST_TAR_FORMAT=oldgnu
25046 export TEST_TAR_FORMAT
25047 TAR_OPTIONS=\"-H oldgnu\"
25057 tar -g test.snar -vcf test.0.tar dirA
25061 tar -g test.snar -vcf test.1.tar dirA
25065 tar -g test.snar -vcf test.2.tar dirA
25071 tar -g test.snar -vxf test.0.tar -C ext/
25073 tar -g test.snar -vxf test.1.tar -C ext/
25076 tar -g test.snar -vxf test.2.tar -C ext/
25078 mkdir ext/dirA/dirB
25079 touch ext/dirA/dirB/file
25082 tar -g test.snar -vxf test.2.tar -C ext/
25085 test -d dirA && echo >&2 \"toplevel dirA exists\"
25088 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
25092 TEST_TAR_FORMAT=oldgnu
25093 export TEST_TAR_FORMAT
25094 TAR_OPTIONS="-H oldgnu"
25104 tar -g test.snar -vcf test.0.tar dirA
25108 tar -g test.snar -vcf test.1.tar dirA
25112 tar -g test.snar -vcf test.2.tar dirA
25118 tar -g test.snar -vxf test.0.tar -C ext/
25120 tar -g test.snar -vxf test.1.tar -C ext/
25123 tar -g test.snar -vxf test.2.tar -C ext/
25125 mkdir ext/dirA/dirB
25126 touch ext/dirA/dirB/file
25129 tar -g test.snar -vxf test.2.tar -C ext/
25132 test -d dirA && echo >&2 "toplevel dirA exists"
25135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25136 at_status=$? at_failed=false
25138 echo >>"$at_stderr"; $as_echo "C0
25139 tar: dirA: Directory is new
25147 $at_diff - "$at_stderr" || at_failed=:
25148 echo >>"$at_stdout"; $as_echo "C0
25166 tar: Deleting 'dirA/a'
25169 tar: Deleting 'dirA/dirB'
25172 $at_diff - "$at_stdout" || at_failed=:
25173 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
25174 $at_failed && at_fn_log_failure
25178 $as_echo "$at_srcdir/incr07.at:40:
25181 TEST_TAR_FORMAT=posix
25182 export TEST_TAR_FORMAT
25183 TAR_OPTIONS=\"-H posix\"
25193 tar -g test.snar -vcf test.0.tar dirA
25197 tar -g test.snar -vcf test.1.tar dirA
25201 tar -g test.snar -vcf test.2.tar dirA
25207 tar -g test.snar -vxf test.0.tar -C ext/
25209 tar -g test.snar -vxf test.1.tar -C ext/
25212 tar -g test.snar -vxf test.2.tar -C ext/
25214 mkdir ext/dirA/dirB
25215 touch ext/dirA/dirB/file
25218 tar -g test.snar -vxf test.2.tar -C ext/
25221 test -d dirA && echo >&2 \"toplevel dirA exists\"
25224 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
25228 TEST_TAR_FORMAT=posix
25229 export TEST_TAR_FORMAT
25230 TAR_OPTIONS="-H posix"
25240 tar -g test.snar -vcf test.0.tar dirA
25244 tar -g test.snar -vcf test.1.tar dirA
25248 tar -g test.snar -vcf test.2.tar dirA
25254 tar -g test.snar -vxf test.0.tar -C ext/
25256 tar -g test.snar -vxf test.1.tar -C ext/
25259 tar -g test.snar -vxf test.2.tar -C ext/
25261 mkdir ext/dirA/dirB
25262 touch ext/dirA/dirB/file
25265 tar -g test.snar -vxf test.2.tar -C ext/
25268 test -d dirA && echo >&2 "toplevel dirA exists"
25271 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25272 at_status=$? at_failed=false
25274 echo >>"$at_stderr"; $as_echo "C0
25275 tar: dirA: Directory is new
25283 $at_diff - "$at_stderr" || at_failed=:
25284 echo >>"$at_stdout"; $as_echo "C0
25302 tar: Deleting 'dirA/a'
25305 tar: Deleting 'dirA/dirB'
25308 $at_diff - "$at_stdout" || at_failed=:
25309 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
25310 $at_failed && at_fn_log_failure
25317 $at_times_p && times >"$at_times_file"
25318 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25319 read at_status <"$at_status_file"
25322 at_fn_group_banner 102 'incr08.at:38' \
25323 "filename normalization" " " 11
25325 test -f $XFAILFILE && at_xfail=yes
25327 $as_echo "102. $at_setup_line: testing $at_desc ..."
25335 $as_echo "$at_srcdir/incr08.at:41:
25338 TEST_TAR_FORMAT=gnu
25339 export TEST_TAR_FORMAT
25340 TAR_OPTIONS=\"-H gnu\"
25346 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25352 mkdir foo/subdir/dir1
25360 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . \$DIR 2>../err |\\
25361 sed \"s|\$DIR|ABSPATH|\"
25362 sed \"s|\$DIR|ABSPATH|\" ../err >&2
25364 at_fn_check_prepare_notrace 'a `...` command substitution' "incr08.at:41"
25368 TEST_TAR_FORMAT=gnu
25369 export TEST_TAR_FORMAT
25370 TAR_OPTIONS="-H gnu"
25376 test -z "`sort < /dev/null 2>&1`" || exit 77
25382 mkdir foo/subdir/dir1
25390 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . $DIR 2>../err |\
25391 sed "s|$DIR|ABSPATH|"
25392 sed "s|$DIR|ABSPATH|" ../err >&2
25394 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25395 at_status=$? at_failed=false
25397 echo >>"$at_stderr"; $as_echo "A
25399 tar: .: Directory is new
25400 tar: ./subdir: Directory is new
25401 tar: ./subdir/dir1: Directory is new
25402 tar: ABSPATH: Directory is new
25403 tar: ABSPATH/subdir: Directory is new
25404 tar: ABSPATH/subdir/dir2: Directory is new
25405 tar: Removing leading \`/' from member names
25407 $at_diff - "$at_stderr" || at_failed=:
25408 echo >>"$at_stdout"; $as_echo "A
25421 ABSPATH/subdir/dir2/
25423 $at_diff - "$at_stdout" || at_failed=:
25424 at_fn_check_status 0 $at_status "$at_srcdir/incr08.at:41"
25425 $at_failed && at_fn_log_failure
25432 $at_times_p && times >"$at_times_file"
25433 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25434 read at_status <"$at_status_file"
25437 at_fn_group_banner 103 'incr09.at:26' \
25438 "incremental with alternating -C" " " 11
25440 test -f $XFAILFILE && at_xfail=yes
25442 $as_echo "103. $at_setup_line: testing $at_desc ..."
25450 $as_echo "$at_srcdir/incr09.at:29:
25453 TEST_TAR_FORMAT=gnu
25454 export TEST_TAR_FORMAT
25455 TAR_OPTIONS=\"-H gnu\"
25461 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25463 mkdir foo bar middle
25464 echo foo/foo_file > foo/foo_file
25465 echo bar/bar_file > bar/bar_file
25466 echo middle/file > middle/middle_file
25468 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` middle -C bar .
25473 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` toplevel_file -C bar .
25475 at_fn_check_prepare_notrace 'a `...` command substitution' "incr09.at:29"
25479 TEST_TAR_FORMAT=gnu
25480 export TEST_TAR_FORMAT
25481 TAR_OPTIONS="-H gnu"
25487 test -z "`sort < /dev/null 2>&1`" || exit 77
25489 mkdir foo bar middle
25490 echo foo/foo_file > foo/foo_file
25491 echo bar/bar_file > bar/bar_file
25492 echo middle/file > middle/middle_file
25494 tar -cvf foo.tar --incremental -C foo . -C `pwd` middle -C bar .
25499 tar -cvf foo.tar --incremental -C foo . -C `pwd` toplevel_file -C bar .
25501 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25502 at_status=$? at_failed=false
25504 echo >>"$at_stderr"; $as_echo "A
25505 tar: .: Directory is new
25506 tar: middle: Directory is new
25507 tar: .: Directory is new
25509 tar: .: Directory is new
25510 tar: .: Directory is new
25512 $at_diff - "$at_stderr" || at_failed=:
25513 echo >>"$at_stdout"; $as_echo "A
25527 $at_diff - "$at_stdout" || at_failed=:
25528 at_fn_check_status 0 $at_status "$at_srcdir/incr09.at:29"
25529 $at_failed && at_fn_log_failure
25536 $at_times_p && times >"$at_times_file"
25537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25538 read at_status <"$at_status_file"
25541 at_fn_group_banner 104 'incr10.at:18' \
25542 "concatenated incremental archives (deletes)" " " 11
25544 test -f $XFAILFILE && at_xfail=yes
25546 $as_echo "104. $at_setup_line: testing $at_desc ..."
25551 # Description: Extraction from concatenated incremental archives
25552 # produced spurious error messages when trying to set file ownership
25553 # and permissions on deleted directories.
25554 # Reported by: Alex Efros <powerman@powerman.name>
25555 # References: <20150411224008.GO24600@home.power>
25556 # http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00003.html
25561 $as_echo "$at_srcdir/incr10.at:28:
25564 TEST_TAR_FORMAT=gnu
25565 export TEST_TAR_FORMAT
25566 TAR_OPTIONS=\"-H gnu\"
25574 tar -cvf 1.tar -g snap -C in .
25577 tar -cvf 2.tar -g snap -C in .
25580 tar -A 2.tar -f full.tar -g /dev/null
25583 tar -xvf full.tar -g /dev/null -C out
25585 at_fn_check_prepare_notrace 'an embedded newline' "incr10.at:28"
25589 TEST_TAR_FORMAT=gnu
25590 export TEST_TAR_FORMAT
25591 TAR_OPTIONS="-H gnu"
25599 tar -cvf 1.tar -g snap -C in .
25602 tar -cvf 2.tar -g snap -C in .
25605 tar -A 2.tar -f full.tar -g /dev/null
25608 tar -xvf full.tar -g /dev/null -C out
25610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25611 at_status=$? at_failed=false
25613 echo >>"$at_stderr"; $as_echo "Level 0
25614 tar: .: Directory is new
25615 tar: ./dir: Directory is new
25620 $at_diff - "$at_stderr" || at_failed=:
25621 echo >>"$at_stdout"; $as_echo "Level 0
25631 tar: Deleting './dir'
25633 $at_diff - "$at_stdout" || at_failed=:
25634 at_fn_check_status 0 $at_status "$at_srcdir/incr10.at:28"
25635 $at_failed && at_fn_log_failure
25642 $at_times_p && times >"$at_times_file"
25643 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25644 read at_status <"$at_status_file"
25647 at_fn_group_banner 105 'incr11.at:25' \
25648 "concatenated incremental archives (renames)" " " 11
25650 test -f $XFAILFILE && at_xfail=yes
25652 $as_echo "105. $at_setup_line: testing $at_desc ..."
25660 $as_echo "$at_srcdir/incr11.at:28:
25663 TEST_TAR_FORMAT=gnu
25664 export TEST_TAR_FORMAT
25665 TAR_OPTIONS=\"-H gnu\"
25671 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25674 install-sh -d data/dir >/dev/null && genfile --file data/dir/file || exit 77
25676 tar -cvf full.tar -g snap -C data .
25678 mv data/dir data/dir2
25679 tar -cvf incr.tar -g snap -C data .
25681 cp full.tar full2.tar
25682 tar -A -f full2.tar incr.tar
25685 tar -xvf full2.tar -g /dev/null -C out
25689 at_fn_check_prepare_notrace 'a `...` command substitution' "incr11.at:28"
25693 TEST_TAR_FORMAT=gnu
25694 export TEST_TAR_FORMAT
25695 TAR_OPTIONS="-H gnu"
25701 test -z "`sort < /dev/null 2>&1`" || exit 77
25704 install-sh -d data/dir >/dev/null && genfile --file data/dir/file || exit 77
25706 tar -cvf full.tar -g snap -C data .
25708 mv data/dir data/dir2
25709 tar -cvf incr.tar -g snap -C data .
25711 cp full.tar full2.tar
25712 tar -A -f full2.tar incr.tar
25715 tar -xvf full2.tar -g /dev/null -C out
25719 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25720 at_status=$? at_failed=false
25722 echo >>"$at_stderr"; $as_echo "Level 0
25723 tar: .: Directory is new
25724 tar: ./dir: Directory is new
25726 tar: ./dir2: Directory has been renamed from './dir'
25731 $at_diff - "$at_stderr" || at_failed=:
25732 echo >>"$at_stdout"; $as_echo "Level 0
25751 $at_diff - "$at_stdout" || at_failed=:
25752 at_fn_check_status 0 $at_status "$at_srcdir/incr11.at:28"
25753 $at_failed && at_fn_log_failure
25760 $at_times_p && times >"$at_times_file"
25761 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25762 read at_status <"$at_status_file"
25765 at_fn_group_banner 106 'filerem01.at:36' \
25766 "file removed as we read it (ca. 22 seconds)" " " 12
25768 test -f $XFAILFILE && at_xfail=yes
25770 $as_echo "106. $at_setup_line: testing $at_desc ..."
25778 $as_echo "$at_srcdir/filerem01.at:39:
25781 TEST_TAR_FORMAT=gnu
25782 export TEST_TAR_FORMAT
25783 TAR_OPTIONS=\"-H gnu\"
25789 genfile --file dir/file1
25790 genfile --file dir/sub/file2
25792 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
25793 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
25794 --checkpoint-action='echo' -c -f archive.tar \\
25795 --listed-incremental db -v dir >/dev/null
25797 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
25801 TEST_TAR_FORMAT=gnu
25802 export TEST_TAR_FORMAT
25803 TAR_OPTIONS="-H gnu"
25809 genfile --file dir/file1
25810 genfile --file dir/sub/file2
25812 genfile --run --checkpoint=3 --unlink dir/file1 -- \
25813 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
25814 --checkpoint-action='echo' -c -f archive.tar \
25815 --listed-incremental db -v dir >/dev/null
25817 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25818 at_status=$? at_failed=false
25820 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
25821 tar: dir/sub: Directory is new
25822 tar: dir/file1: File removed before we read it
25824 $at_diff - "$at_stderr" || at_failed=:
25825 echo stdout:; cat "$at_stdout"
25826 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
25827 $at_failed && at_fn_log_failure
25831 $as_echo "$at_srcdir/filerem01.at:39:
25834 TEST_TAR_FORMAT=posix
25835 export TEST_TAR_FORMAT
25836 TAR_OPTIONS=\"-H posix\"
25842 genfile --file dir/file1
25843 genfile --file dir/sub/file2
25845 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
25846 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
25847 --checkpoint-action='echo' -c -f archive.tar \\
25848 --listed-incremental db -v dir >/dev/null
25850 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
25854 TEST_TAR_FORMAT=posix
25855 export TEST_TAR_FORMAT
25856 TAR_OPTIONS="-H posix"
25862 genfile --file dir/file1
25863 genfile --file dir/sub/file2
25865 genfile --run --checkpoint=3 --unlink dir/file1 -- \
25866 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
25867 --checkpoint-action='echo' -c -f archive.tar \
25868 --listed-incremental db -v dir >/dev/null
25870 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25871 at_status=$? at_failed=false
25873 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
25874 tar: dir/sub: Directory is new
25875 tar: dir/file1: File removed before we read it
25877 $at_diff - "$at_stderr" || at_failed=:
25878 echo stdout:; cat "$at_stdout"
25879 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
25880 $at_failed && at_fn_log_failure
25886 # Timing information:
25888 # For -Hgnu the above command line takes about 8 seconds to execute and
25891 # tar: dir: Directory is new
25892 # tar: dir/sub: Directory is new
25894 # tar: Write checkpoint 1
25895 # tar: Write checkpoint 2
25897 # tar: Write checkpoint 3
25898 # tar: Write checkpoint 4
25900 # tar: Write checkpoint 5
25902 # tar: Write checkpoint 6
25903 # tar: Write checkpoint 7
25904 # tar: Write checkpoint 8
25906 # For -Hposix the above command line takes about 14 seconds to execute and
25909 # ./tar: dir: Directory is new
25910 # ./tar: dir/sub: Directory is new
25912 # ./tar: Write checkpoint 1
25913 # ./tar: Write checkpoint 2
25914 # ./tar: Write checkpoint 3
25916 # ./tar: Write checkpoint 4
25917 # ./tar: Write checkpoint 5
25918 # ./tar: Write checkpoint 6
25920 # ./tar: Write checkpoint 7
25921 # ./tar: Write checkpoint 8
25922 # ./tar: Write checkpoint 9
25924 # ./tar: Write checkpoint 10
25925 # ./tar: Write checkpoint 11
25926 # ./tar: Write checkpoint 12
25927 # ./tar: Write checkpoint 13
25928 # ./tar: Write checkpoint 14
25932 $at_times_p && times >"$at_times_file"
25933 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25934 read at_status <"$at_status_file"
25937 at_fn_group_banner 107 'filerem02.at:26' \
25938 "toplevel file removed (ca. 24 seconds)" " " 12
25940 test -f $XFAILFILE && at_xfail=yes
25942 $as_echo "107. $at_setup_line: testing $at_desc ..."
25950 $as_echo "$at_srcdir/filerem02.at:29:
25953 TEST_TAR_FORMAT=gnu
25954 export TEST_TAR_FORMAT
25955 TAR_OPTIONS=\"-H gnu\"
25961 genfile --file dir/file1
25962 genfile --file dir/sub/file2
25964 genfile --file dir2/file1
25966 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
25967 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
25968 --checkpoint-action='echo' -c -f archive.tar \\
25969 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
25971 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
25975 TEST_TAR_FORMAT=gnu
25976 export TEST_TAR_FORMAT
25977 TAR_OPTIONS="-H gnu"
25983 genfile --file dir/file1
25984 genfile --file dir/sub/file2
25986 genfile --file dir2/file1
25988 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
25989 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
25990 --checkpoint-action='echo' -c -f archive.tar \
25991 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
25993 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25994 at_status=$? at_failed=false
25996 echo stderr:; cat "$at_stderr"
25997 echo stdout:; cat "$at_stdout"
25998 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
25999 $at_failed && at_fn_log_failure
26003 $as_echo "$at_srcdir/filerem02.at:29:
26006 TEST_TAR_FORMAT=posix
26007 export TEST_TAR_FORMAT
26008 TAR_OPTIONS=\"-H posix\"
26014 genfile --file dir/file1
26015 genfile --file dir/sub/file2
26017 genfile --file dir2/file1
26019 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
26020 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
26021 --checkpoint-action='echo' -c -f archive.tar \\
26022 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
26024 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
26028 TEST_TAR_FORMAT=posix
26029 export TEST_TAR_FORMAT
26030 TAR_OPTIONS="-H posix"
26036 genfile --file dir/file1
26037 genfile --file dir/sub/file2
26039 genfile --file dir2/file1
26041 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
26042 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
26043 --checkpoint-action='echo' -c -f archive.tar \
26044 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
26046 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26047 at_status=$? at_failed=false
26049 echo stderr:; cat "$at_stderr"
26050 echo stdout:; cat "$at_stdout"
26051 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
26052 $at_failed && at_fn_log_failure
26058 # Ignore stdout and stderr because their contents depend on
26059 # the file system implementation.
26061 # Timing information: see filerem01.at
26064 $at_times_p && times >"$at_times_file"
26065 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26066 read at_status <"$at_status_file"
26069 at_fn_group_banner 108 'rename01.at:25' \
26070 "renamed dirs in incrementals" " " 13
26072 test -f $XFAILFILE && at_xfail=yes
26074 $as_echo "108. $at_setup_line: testing $at_desc ..."
26082 $as_echo "$at_srcdir/rename01.at:28:
26085 TEST_TAR_FORMAT=gnu
26086 export TEST_TAR_FORMAT
26087 TAR_OPTIONS=\"-H gnu\"
26092 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26096 genfile --file foo/file1
26097 genfile --file foo/file2
26099 genfile --file foo/bar/file
26101 echo \"Creating base archive\"
26102 tar -g incr -cf arch.1 -v foo
26106 echo \"Creating incremental archive\"
26107 tar -g incr -cf arch.2 -v foo
26111 tar xfg arch.1 /dev/null
26113 echo \"Begin directory listing 1\"
26115 echo \"End directory listing 1\"
26117 tar xfg arch.2 /dev/null
26118 echo Begin directory listing 2
26120 echo End directory listing 2
26122 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:28"
26126 TEST_TAR_FORMAT=gnu
26127 export TEST_TAR_FORMAT
26128 TAR_OPTIONS="-H gnu"
26133 test -z "`sort < /dev/null 2>&1`" || exit 77
26137 genfile --file foo/file1
26138 genfile --file foo/file2
26140 genfile --file foo/bar/file
26142 echo "Creating base archive"
26143 tar -g incr -cf arch.1 -v foo
26147 echo "Creating incremental archive"
26148 tar -g incr -cf arch.2 -v foo
26152 tar xfg arch.1 /dev/null
26154 echo "Begin directory listing 1"
26156 echo "End directory listing 1"
26158 tar xfg arch.2 /dev/null
26159 echo Begin directory listing 2
26161 echo End directory listing 2
26163 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26164 at_status=$? at_failed=false
26166 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26167 tar: foo/bar: Directory is new
26168 tar: foo/baz: Directory has been renamed from 'foo/bar'
26170 $at_diff - "$at_stderr" || at_failed=:
26171 echo >>"$at_stdout"; $as_echo "Creating base archive
26177 Creating incremental archive
26180 Begin directory listing 1
26186 End directory listing 1
26187 Begin directory listing 2
26193 End directory listing 2
26195 $at_diff - "$at_stdout" || at_failed=:
26196 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:28"
26197 $at_failed && at_fn_log_failure
26201 $as_echo "$at_srcdir/rename01.at:28:
26204 TEST_TAR_FORMAT=oldgnu
26205 export TEST_TAR_FORMAT
26206 TAR_OPTIONS=\"-H oldgnu\"
26211 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26215 genfile --file foo/file1
26216 genfile --file foo/file2
26218 genfile --file foo/bar/file
26220 echo \"Creating base archive\"
26221 tar -g incr -cf arch.1 -v foo
26225 echo \"Creating incremental archive\"
26226 tar -g incr -cf arch.2 -v foo
26230 tar xfg arch.1 /dev/null
26232 echo \"Begin directory listing 1\"
26234 echo \"End directory listing 1\"
26236 tar xfg arch.2 /dev/null
26237 echo Begin directory listing 2
26239 echo End directory listing 2
26241 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:28"
26245 TEST_TAR_FORMAT=oldgnu
26246 export TEST_TAR_FORMAT
26247 TAR_OPTIONS="-H oldgnu"
26252 test -z "`sort < /dev/null 2>&1`" || exit 77
26256 genfile --file foo/file1
26257 genfile --file foo/file2
26259 genfile --file foo/bar/file
26261 echo "Creating base archive"
26262 tar -g incr -cf arch.1 -v foo
26266 echo "Creating incremental archive"
26267 tar -g incr -cf arch.2 -v foo
26271 tar xfg arch.1 /dev/null
26273 echo "Begin directory listing 1"
26275 echo "End directory listing 1"
26277 tar xfg arch.2 /dev/null
26278 echo Begin directory listing 2
26280 echo End directory listing 2
26282 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26283 at_status=$? at_failed=false
26285 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26286 tar: foo/bar: Directory is new
26287 tar: foo/baz: Directory has been renamed from 'foo/bar'
26289 $at_diff - "$at_stderr" || at_failed=:
26290 echo >>"$at_stdout"; $as_echo "Creating base archive
26296 Creating incremental archive
26299 Begin directory listing 1
26305 End directory listing 1
26306 Begin directory listing 2
26312 End directory listing 2
26314 $at_diff - "$at_stdout" || at_failed=:
26315 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:28"
26316 $at_failed && at_fn_log_failure
26320 $as_echo "$at_srcdir/rename01.at:28:
26323 TEST_TAR_FORMAT=posix
26324 export TEST_TAR_FORMAT
26325 TAR_OPTIONS=\"-H posix\"
26330 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26334 genfile --file foo/file1
26335 genfile --file foo/file2
26337 genfile --file foo/bar/file
26339 echo \"Creating base archive\"
26340 tar -g incr -cf arch.1 -v foo
26344 echo \"Creating incremental archive\"
26345 tar -g incr -cf arch.2 -v foo
26349 tar xfg arch.1 /dev/null
26351 echo \"Begin directory listing 1\"
26353 echo \"End directory listing 1\"
26355 tar xfg arch.2 /dev/null
26356 echo Begin directory listing 2
26358 echo End directory listing 2
26360 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:28"
26364 TEST_TAR_FORMAT=posix
26365 export TEST_TAR_FORMAT
26366 TAR_OPTIONS="-H posix"
26371 test -z "`sort < /dev/null 2>&1`" || exit 77
26375 genfile --file foo/file1
26376 genfile --file foo/file2
26378 genfile --file foo/bar/file
26380 echo "Creating base archive"
26381 tar -g incr -cf arch.1 -v foo
26385 echo "Creating incremental archive"
26386 tar -g incr -cf arch.2 -v foo
26390 tar xfg arch.1 /dev/null
26392 echo "Begin directory listing 1"
26394 echo "End directory listing 1"
26396 tar xfg arch.2 /dev/null
26397 echo Begin directory listing 2
26399 echo End directory listing 2
26401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26402 at_status=$? at_failed=false
26404 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26405 tar: foo/bar: Directory is new
26406 tar: foo/baz: Directory has been renamed from 'foo/bar'
26408 $at_diff - "$at_stderr" || at_failed=:
26409 echo >>"$at_stdout"; $as_echo "Creating base archive
26415 Creating incremental archive
26418 Begin directory listing 1
26424 End directory listing 1
26425 Begin directory listing 2
26431 End directory listing 2
26433 $at_diff - "$at_stdout" || at_failed=:
26434 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:28"
26435 $at_failed && at_fn_log_failure
26442 $at_times_p && times >"$at_times_file"
26443 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26444 read at_status <"$at_status_file"
26447 at_fn_group_banner 109 'rename02.at:25' \
26448 "move between hierarchies" " " 13
26450 test -f $XFAILFILE && at_xfail=yes
26452 $as_echo "109. $at_setup_line: testing $at_desc ..."
26460 $as_echo "$at_srcdir/rename02.at:28:
26463 TEST_TAR_FORMAT=gnu
26464 export TEST_TAR_FORMAT
26465 TAR_OPTIONS=\"-H gnu\"
26470 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26473 genfile --file foo/file1
26474 genfile --file foo/file2
26476 genfile --file foo/bar/file.r
26478 genfile --file foo/bar/baz/file.z
26482 echo \"Creating base archive\"
26483 tar -g incr -cf arch.1 -v foo
26487 echo \"Creating incremental archive\"
26488 tar -g incr -cf arch.2 -v foo
26492 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26495 echo \"Begin directory listing 1\"
26497 echo \"End directory listing 1\"
26499 tar xfgv arch.2 /dev/null --warning=no-timestamp
26500 echo Begin directory listing 2
26502 echo End directory listing 2
26504 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:28"
26508 TEST_TAR_FORMAT=gnu
26509 export TEST_TAR_FORMAT
26510 TAR_OPTIONS="-H gnu"
26515 test -z "`sort < /dev/null 2>&1`" || exit 77
26518 genfile --file foo/file1
26519 genfile --file foo/file2
26521 genfile --file foo/bar/file.r
26523 genfile --file foo/bar/baz/file.z
26527 echo "Creating base archive"
26528 tar -g incr -cf arch.1 -v foo
26532 echo "Creating incremental archive"
26533 tar -g incr -cf arch.2 -v foo
26537 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26540 echo "Begin directory listing 1"
26542 echo "End directory listing 1"
26544 tar xfgv arch.2 /dev/null --warning=no-timestamp
26545 echo Begin directory listing 2
26547 echo End directory listing 2
26549 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26550 at_status=$? at_failed=false
26552 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26553 tar: foo/bar: Directory is new
26554 tar: foo/bar/baz: Directory is new
26555 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
26557 $at_diff - "$at_stderr" || at_failed=:
26558 echo >>"$at_stdout"; $as_echo "Creating base archive
26566 Creating incremental archive
26570 Begin directory listing 1
26578 End directory listing 1
26582 Begin directory listing 2
26590 End directory listing 2
26592 $at_diff - "$at_stdout" || at_failed=:
26593 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:28"
26594 $at_failed && at_fn_log_failure
26598 $as_echo "$at_srcdir/rename02.at:28:
26601 TEST_TAR_FORMAT=oldgnu
26602 export TEST_TAR_FORMAT
26603 TAR_OPTIONS=\"-H oldgnu\"
26608 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26611 genfile --file foo/file1
26612 genfile --file foo/file2
26614 genfile --file foo/bar/file.r
26616 genfile --file foo/bar/baz/file.z
26620 echo \"Creating base archive\"
26621 tar -g incr -cf arch.1 -v foo
26625 echo \"Creating incremental archive\"
26626 tar -g incr -cf arch.2 -v foo
26630 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26633 echo \"Begin directory listing 1\"
26635 echo \"End directory listing 1\"
26637 tar xfgv arch.2 /dev/null --warning=no-timestamp
26638 echo Begin directory listing 2
26640 echo End directory listing 2
26642 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:28"
26646 TEST_TAR_FORMAT=oldgnu
26647 export TEST_TAR_FORMAT
26648 TAR_OPTIONS="-H oldgnu"
26653 test -z "`sort < /dev/null 2>&1`" || exit 77
26656 genfile --file foo/file1
26657 genfile --file foo/file2
26659 genfile --file foo/bar/file.r
26661 genfile --file foo/bar/baz/file.z
26665 echo "Creating base archive"
26666 tar -g incr -cf arch.1 -v foo
26670 echo "Creating incremental archive"
26671 tar -g incr -cf arch.2 -v foo
26675 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26678 echo "Begin directory listing 1"
26680 echo "End directory listing 1"
26682 tar xfgv arch.2 /dev/null --warning=no-timestamp
26683 echo Begin directory listing 2
26685 echo End directory listing 2
26687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26688 at_status=$? at_failed=false
26690 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26691 tar: foo/bar: Directory is new
26692 tar: foo/bar/baz: Directory is new
26693 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
26695 $at_diff - "$at_stderr" || at_failed=:
26696 echo >>"$at_stdout"; $as_echo "Creating base archive
26704 Creating incremental archive
26708 Begin directory listing 1
26716 End directory listing 1
26720 Begin directory listing 2
26728 End directory listing 2
26730 $at_diff - "$at_stdout" || at_failed=:
26731 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:28"
26732 $at_failed && at_fn_log_failure
26736 $as_echo "$at_srcdir/rename02.at:28:
26739 TEST_TAR_FORMAT=posix
26740 export TEST_TAR_FORMAT
26741 TAR_OPTIONS=\"-H posix\"
26746 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26749 genfile --file foo/file1
26750 genfile --file foo/file2
26752 genfile --file foo/bar/file.r
26754 genfile --file foo/bar/baz/file.z
26758 echo \"Creating base archive\"
26759 tar -g incr -cf arch.1 -v foo
26763 echo \"Creating incremental archive\"
26764 tar -g incr -cf arch.2 -v foo
26768 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26771 echo \"Begin directory listing 1\"
26773 echo \"End directory listing 1\"
26775 tar xfgv arch.2 /dev/null --warning=no-timestamp
26776 echo Begin directory listing 2
26778 echo End directory listing 2
26780 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:28"
26784 TEST_TAR_FORMAT=posix
26785 export TEST_TAR_FORMAT
26786 TAR_OPTIONS="-H posix"
26791 test -z "`sort < /dev/null 2>&1`" || exit 77
26794 genfile --file foo/file1
26795 genfile --file foo/file2
26797 genfile --file foo/bar/file.r
26799 genfile --file foo/bar/baz/file.z
26803 echo "Creating base archive"
26804 tar -g incr -cf arch.1 -v foo
26808 echo "Creating incremental archive"
26809 tar -g incr -cf arch.2 -v foo
26813 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
26816 echo "Begin directory listing 1"
26818 echo "End directory listing 1"
26820 tar xfgv arch.2 /dev/null --warning=no-timestamp
26821 echo Begin directory listing 2
26823 echo End directory listing 2
26825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26826 at_status=$? at_failed=false
26828 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
26829 tar: foo/bar: Directory is new
26830 tar: foo/bar/baz: Directory is new
26831 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
26833 $at_diff - "$at_stderr" || at_failed=:
26834 echo >>"$at_stdout"; $as_echo "Creating base archive
26842 Creating incremental archive
26846 Begin directory listing 1
26854 End directory listing 1
26858 Begin directory listing 2
26866 End directory listing 2
26868 $at_diff - "$at_stdout" || at_failed=:
26869 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:28"
26870 $at_failed && at_fn_log_failure
26877 $at_times_p && times >"$at_times_file"
26878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26879 read at_status <"$at_status_file"
26882 at_fn_group_banner 110 'rename03.at:24' \
26883 "cyclic renames" " " 13
26885 test -f $XFAILFILE && at_xfail=yes
26887 $as_echo "110. $at_setup_line: testing $at_desc ..."
26895 $as_echo "$at_srcdir/rename03.at:27:
26898 TEST_TAR_FORMAT=gnu
26899 export TEST_TAR_FORMAT
26900 TAR_OPTIONS=\"-H gnu\"
26905 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
26909 genfile --file foo/file1
26910 genfile --file foo/file2
26913 genfile --file foo/a/filea
26916 genfile --file foo/b/fileb
26919 genfile --file foo/c/filec
26923 echo \"First dump\"
26924 echo \"First dump\">&2
26925 tar -g incr -cf arch.1 -v foo 2>tmperr
26928 # Shuffle directories:
26935 echo \"Second dump\"
26936 echo \"Second dump\" >&2
26937 tar -g incr -cf arch.2 -v foo 2>tmperr
26940 tar xfg arch.1 /dev/null --warning=no-timestamp
26942 echo \"Begin directory listing 1\"
26944 echo \"End directory listing 1\"
26946 tar xfgv arch.2 /dev/null --warning=no-timestamp
26947 echo Begin directory listing 2
26949 echo End directory listing 2
26951 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:27"
26955 TEST_TAR_FORMAT=gnu
26956 export TEST_TAR_FORMAT
26957 TAR_OPTIONS="-H gnu"
26962 test -z "`sort < /dev/null 2>&1`" || exit 77
26966 genfile --file foo/file1
26967 genfile --file foo/file2
26970 genfile --file foo/a/filea
26973 genfile --file foo/b/fileb
26976 genfile --file foo/c/filec
26981 echo "First dump">&2
26982 tar -g incr -cf arch.1 -v foo 2>tmperr
26985 # Shuffle directories:
26993 echo "Second dump" >&2
26994 tar -g incr -cf arch.2 -v foo 2>tmperr
26997 tar xfg arch.1 /dev/null --warning=no-timestamp
26999 echo "Begin directory listing 1"
27001 echo "End directory listing 1"
27003 tar xfgv arch.2 /dev/null --warning=no-timestamp
27004 echo Begin directory listing 2
27006 echo End directory listing 2
27008 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27009 at_status=$? at_failed=false
27011 echo >>"$at_stderr"; $as_echo "First dump
27012 tar: foo/a: Directory is new
27013 tar: foo/b: Directory is new
27014 tar: foo/c: Directory is new
27015 tar: foo: Directory is new
27017 tar: foo/a: Directory has been renamed from 'foo/c'
27018 tar: foo/b: Directory has been renamed from 'foo/a'
27019 tar: foo/c: Directory has been renamed from 'foo/b'
27021 $at_diff - "$at_stderr" || at_failed=:
27022 echo >>"$at_stdout"; $as_echo "First dump
27037 Begin directory listing 1
27047 End directory listing 1
27052 Begin directory listing 2
27062 End directory listing 2
27064 $at_diff - "$at_stdout" || at_failed=:
27065 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:27"
27066 $at_failed && at_fn_log_failure
27070 $as_echo "$at_srcdir/rename03.at:27:
27073 TEST_TAR_FORMAT=oldgnu
27074 export TEST_TAR_FORMAT
27075 TAR_OPTIONS=\"-H oldgnu\"
27080 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27084 genfile --file foo/file1
27085 genfile --file foo/file2
27088 genfile --file foo/a/filea
27091 genfile --file foo/b/fileb
27094 genfile --file foo/c/filec
27098 echo \"First dump\"
27099 echo \"First dump\">&2
27100 tar -g incr -cf arch.1 -v foo 2>tmperr
27103 # Shuffle directories:
27110 echo \"Second dump\"
27111 echo \"Second dump\" >&2
27112 tar -g incr -cf arch.2 -v foo 2>tmperr
27115 tar xfg arch.1 /dev/null --warning=no-timestamp
27117 echo \"Begin directory listing 1\"
27119 echo \"End directory listing 1\"
27121 tar xfgv arch.2 /dev/null --warning=no-timestamp
27122 echo Begin directory listing 2
27124 echo End directory listing 2
27126 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:27"
27130 TEST_TAR_FORMAT=oldgnu
27131 export TEST_TAR_FORMAT
27132 TAR_OPTIONS="-H oldgnu"
27137 test -z "`sort < /dev/null 2>&1`" || exit 77
27141 genfile --file foo/file1
27142 genfile --file foo/file2
27145 genfile --file foo/a/filea
27148 genfile --file foo/b/fileb
27151 genfile --file foo/c/filec
27156 echo "First dump">&2
27157 tar -g incr -cf arch.1 -v foo 2>tmperr
27160 # Shuffle directories:
27168 echo "Second dump" >&2
27169 tar -g incr -cf arch.2 -v foo 2>tmperr
27172 tar xfg arch.1 /dev/null --warning=no-timestamp
27174 echo "Begin directory listing 1"
27176 echo "End directory listing 1"
27178 tar xfgv arch.2 /dev/null --warning=no-timestamp
27179 echo Begin directory listing 2
27181 echo End directory listing 2
27183 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27184 at_status=$? at_failed=false
27186 echo >>"$at_stderr"; $as_echo "First dump
27187 tar: foo/a: Directory is new
27188 tar: foo/b: Directory is new
27189 tar: foo/c: Directory is new
27190 tar: foo: Directory is new
27192 tar: foo/a: Directory has been renamed from 'foo/c'
27193 tar: foo/b: Directory has been renamed from 'foo/a'
27194 tar: foo/c: Directory has been renamed from 'foo/b'
27196 $at_diff - "$at_stderr" || at_failed=:
27197 echo >>"$at_stdout"; $as_echo "First dump
27212 Begin directory listing 1
27222 End directory listing 1
27227 Begin directory listing 2
27237 End directory listing 2
27239 $at_diff - "$at_stdout" || at_failed=:
27240 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:27"
27241 $at_failed && at_fn_log_failure
27245 $as_echo "$at_srcdir/rename03.at:27:
27248 TEST_TAR_FORMAT=posix
27249 export TEST_TAR_FORMAT
27250 TAR_OPTIONS=\"-H posix\"
27255 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27259 genfile --file foo/file1
27260 genfile --file foo/file2
27263 genfile --file foo/a/filea
27266 genfile --file foo/b/fileb
27269 genfile --file foo/c/filec
27273 echo \"First dump\"
27274 echo \"First dump\">&2
27275 tar -g incr -cf arch.1 -v foo 2>tmperr
27278 # Shuffle directories:
27285 echo \"Second dump\"
27286 echo \"Second dump\" >&2
27287 tar -g incr -cf arch.2 -v foo 2>tmperr
27290 tar xfg arch.1 /dev/null --warning=no-timestamp
27292 echo \"Begin directory listing 1\"
27294 echo \"End directory listing 1\"
27296 tar xfgv arch.2 /dev/null --warning=no-timestamp
27297 echo Begin directory listing 2
27299 echo End directory listing 2
27301 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:27"
27305 TEST_TAR_FORMAT=posix
27306 export TEST_TAR_FORMAT
27307 TAR_OPTIONS="-H posix"
27312 test -z "`sort < /dev/null 2>&1`" || exit 77
27316 genfile --file foo/file1
27317 genfile --file foo/file2
27320 genfile --file foo/a/filea
27323 genfile --file foo/b/fileb
27326 genfile --file foo/c/filec
27331 echo "First dump">&2
27332 tar -g incr -cf arch.1 -v foo 2>tmperr
27335 # Shuffle directories:
27343 echo "Second dump" >&2
27344 tar -g incr -cf arch.2 -v foo 2>tmperr
27347 tar xfg arch.1 /dev/null --warning=no-timestamp
27349 echo "Begin directory listing 1"
27351 echo "End directory listing 1"
27353 tar xfgv arch.2 /dev/null --warning=no-timestamp
27354 echo Begin directory listing 2
27356 echo End directory listing 2
27358 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27359 at_status=$? at_failed=false
27361 echo >>"$at_stderr"; $as_echo "First dump
27362 tar: foo/a: Directory is new
27363 tar: foo/b: Directory is new
27364 tar: foo/c: Directory is new
27365 tar: foo: Directory is new
27367 tar: foo/a: Directory has been renamed from 'foo/c'
27368 tar: foo/b: Directory has been renamed from 'foo/a'
27369 tar: foo/c: Directory has been renamed from 'foo/b'
27371 $at_diff - "$at_stderr" || at_failed=:
27372 echo >>"$at_stdout"; $as_echo "First dump
27387 Begin directory listing 1
27397 End directory listing 1
27402 Begin directory listing 2
27412 End directory listing 2
27414 $at_diff - "$at_stdout" || at_failed=:
27415 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:27"
27416 $at_failed && at_fn_log_failure
27423 $at_times_p && times >"$at_times_file"
27424 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27425 read at_status <"$at_status_file"
27428 at_fn_group_banner 111 'rename04.at:27' \
27429 "renamed directory containing subdirectories" " " 13
27431 test -f $XFAILFILE && at_xfail=yes
27433 $as_echo "111. $at_setup_line: testing $at_desc ..."
27441 $as_echo "$at_srcdir/rename04.at:30:
27444 TEST_TAR_FORMAT=gnu
27445 export TEST_TAR_FORMAT
27446 TAR_OPTIONS=\"-H gnu\"
27451 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27454 decho Creating directory structure
27456 mkdir directory/subdir
27457 genfile --file=directory/file
27459 decho Creating initial archive
27460 tar -cf archive.1 -g db.1 directory
27465 decho Creating incremental archive
27467 tar -cf archive.2 -g db.2 dir
27471 decho First restore
27472 tar -xf archive.1 -g db.1
27473 find directory | sort
27475 decho Second restore
27476 tar -xf archive.2 -g db.2
27479 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
27483 TEST_TAR_FORMAT=gnu
27484 export TEST_TAR_FORMAT
27485 TAR_OPTIONS="-H gnu"
27490 test -z "`sort < /dev/null 2>&1`" || exit 77
27493 decho Creating directory structure
27495 mkdir directory/subdir
27496 genfile --file=directory/file
27498 decho Creating initial archive
27499 tar -cf archive.1 -g db.1 directory
27504 decho Creating incremental archive
27506 tar -cf archive.2 -g db.2 dir
27510 decho First restore
27511 tar -xf archive.1 -g db.1
27512 find directory | sort
27514 decho Second restore
27515 tar -xf archive.2 -g db.2
27518 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27519 at_status=$? at_failed=false
27521 echo >>"$at_stderr"; $as_echo "Creating directory structure
27522 Creating initial archive
27524 Creating incremental archive
27528 $at_diff - "$at_stderr" || at_failed=:
27529 echo >>"$at_stdout"; $as_echo "Creating directory structure
27530 Creating initial archive
27532 Creating incremental archive
27541 $at_diff - "$at_stdout" || at_failed=:
27542 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
27543 $at_failed && at_fn_log_failure
27547 $as_echo "$at_srcdir/rename04.at:30:
27550 TEST_TAR_FORMAT=oldgnu
27551 export TEST_TAR_FORMAT
27552 TAR_OPTIONS=\"-H oldgnu\"
27557 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27560 decho Creating directory structure
27562 mkdir directory/subdir
27563 genfile --file=directory/file
27565 decho Creating initial archive
27566 tar -cf archive.1 -g db.1 directory
27571 decho Creating incremental archive
27573 tar -cf archive.2 -g db.2 dir
27577 decho First restore
27578 tar -xf archive.1 -g db.1
27579 find directory | sort
27581 decho Second restore
27582 tar -xf archive.2 -g db.2
27585 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
27589 TEST_TAR_FORMAT=oldgnu
27590 export TEST_TAR_FORMAT
27591 TAR_OPTIONS="-H oldgnu"
27596 test -z "`sort < /dev/null 2>&1`" || exit 77
27599 decho Creating directory structure
27601 mkdir directory/subdir
27602 genfile --file=directory/file
27604 decho Creating initial archive
27605 tar -cf archive.1 -g db.1 directory
27610 decho Creating incremental archive
27612 tar -cf archive.2 -g db.2 dir
27616 decho First restore
27617 tar -xf archive.1 -g db.1
27618 find directory | sort
27620 decho Second restore
27621 tar -xf archive.2 -g db.2
27624 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27625 at_status=$? at_failed=false
27627 echo >>"$at_stderr"; $as_echo "Creating directory structure
27628 Creating initial archive
27630 Creating incremental archive
27634 $at_diff - "$at_stderr" || at_failed=:
27635 echo >>"$at_stdout"; $as_echo "Creating directory structure
27636 Creating initial archive
27638 Creating incremental archive
27647 $at_diff - "$at_stdout" || at_failed=:
27648 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
27649 $at_failed && at_fn_log_failure
27653 $as_echo "$at_srcdir/rename04.at:30:
27656 TEST_TAR_FORMAT=posix
27657 export TEST_TAR_FORMAT
27658 TAR_OPTIONS=\"-H posix\"
27663 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27666 decho Creating directory structure
27668 mkdir directory/subdir
27669 genfile --file=directory/file
27671 decho Creating initial archive
27672 tar -cf archive.1 -g db.1 directory
27677 decho Creating incremental archive
27679 tar -cf archive.2 -g db.2 dir
27683 decho First restore
27684 tar -xf archive.1 -g db.1
27685 find directory | sort
27687 decho Second restore
27688 tar -xf archive.2 -g db.2
27691 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
27695 TEST_TAR_FORMAT=posix
27696 export TEST_TAR_FORMAT
27697 TAR_OPTIONS="-H posix"
27702 test -z "`sort < /dev/null 2>&1`" || exit 77
27705 decho Creating directory structure
27707 mkdir directory/subdir
27708 genfile --file=directory/file
27710 decho Creating initial archive
27711 tar -cf archive.1 -g db.1 directory
27716 decho Creating incremental archive
27718 tar -cf archive.2 -g db.2 dir
27722 decho First restore
27723 tar -xf archive.1 -g db.1
27724 find directory | sort
27726 decho Second restore
27727 tar -xf archive.2 -g db.2
27730 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27731 at_status=$? at_failed=false
27733 echo >>"$at_stderr"; $as_echo "Creating directory structure
27734 Creating initial archive
27736 Creating incremental archive
27740 $at_diff - "$at_stderr" || at_failed=:
27741 echo >>"$at_stdout"; $as_echo "Creating directory structure
27742 Creating initial archive
27744 Creating incremental archive
27753 $at_diff - "$at_stdout" || at_failed=:
27754 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
27755 $at_failed && at_fn_log_failure
27762 $at_times_p && times >"$at_times_file"
27763 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27764 read at_status <"$at_status_file"
27767 at_fn_group_banner 112 'rename05.at:24' \
27768 "renamed subdirectories" " " 13
27770 test -f $XFAILFILE && at_xfail=yes
27772 $as_echo "112. $at_setup_line: testing $at_desc ..."
27780 $as_echo "$at_srcdir/rename05.at:27:
27783 TEST_TAR_FORMAT=gnu
27784 export TEST_TAR_FORMAT
27785 TAR_OPTIONS=\"-H gnu\"
27790 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27793 decho Creating directory structure
27795 mkdir directory/subdir
27796 genfile --file=directory/file
27798 decho Creating initial archive
27799 tar -cf archive.1 -g db.1 directory
27802 mv directory/subdir directory/subdir.0
27805 decho Creating incremental archive
27807 tar -cf archive.2 -g db.2 dir
27811 decho First restore
27812 tar -xf archive.1 -g db.1 --warning=no-timestamp
27813 find directory | sort
27815 decho Second restore
27816 tar -xf archive.2 -g db.2 --warning=no-timestamp
27819 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
27823 TEST_TAR_FORMAT=gnu
27824 export TEST_TAR_FORMAT
27825 TAR_OPTIONS="-H gnu"
27830 test -z "`sort < /dev/null 2>&1`" || exit 77
27833 decho Creating directory structure
27835 mkdir directory/subdir
27836 genfile --file=directory/file
27838 decho Creating initial archive
27839 tar -cf archive.1 -g db.1 directory
27842 mv directory/subdir directory/subdir.0
27845 decho Creating incremental archive
27847 tar -cf archive.2 -g db.2 dir
27851 decho First restore
27852 tar -xf archive.1 -g db.1 --warning=no-timestamp
27853 find directory | sort
27855 decho Second restore
27856 tar -xf archive.2 -g db.2 --warning=no-timestamp
27859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27860 at_status=$? at_failed=false
27862 echo >>"$at_stderr"; $as_echo "Creating directory structure
27863 Creating initial archive
27865 Creating incremental archive
27869 $at_diff - "$at_stderr" || at_failed=:
27870 echo >>"$at_stdout"; $as_echo "Creating directory structure
27871 Creating initial archive
27873 Creating incremental archive
27882 $at_diff - "$at_stdout" || at_failed=:
27883 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
27884 $at_failed && at_fn_log_failure
27888 $as_echo "$at_srcdir/rename05.at:27:
27891 TEST_TAR_FORMAT=oldgnu
27892 export TEST_TAR_FORMAT
27893 TAR_OPTIONS=\"-H oldgnu\"
27898 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
27901 decho Creating directory structure
27903 mkdir directory/subdir
27904 genfile --file=directory/file
27906 decho Creating initial archive
27907 tar -cf archive.1 -g db.1 directory
27910 mv directory/subdir directory/subdir.0
27913 decho Creating incremental archive
27915 tar -cf archive.2 -g db.2 dir
27919 decho First restore
27920 tar -xf archive.1 -g db.1 --warning=no-timestamp
27921 find directory | sort
27923 decho Second restore
27924 tar -xf archive.2 -g db.2 --warning=no-timestamp
27927 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
27931 TEST_TAR_FORMAT=oldgnu
27932 export TEST_TAR_FORMAT
27933 TAR_OPTIONS="-H oldgnu"
27938 test -z "`sort < /dev/null 2>&1`" || exit 77
27941 decho Creating directory structure
27943 mkdir directory/subdir
27944 genfile --file=directory/file
27946 decho Creating initial archive
27947 tar -cf archive.1 -g db.1 directory
27950 mv directory/subdir directory/subdir.0
27953 decho Creating incremental archive
27955 tar -cf archive.2 -g db.2 dir
27959 decho First restore
27960 tar -xf archive.1 -g db.1 --warning=no-timestamp
27961 find directory | sort
27963 decho Second restore
27964 tar -xf archive.2 -g db.2 --warning=no-timestamp
27967 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27968 at_status=$? at_failed=false
27970 echo >>"$at_stderr"; $as_echo "Creating directory structure
27971 Creating initial archive
27973 Creating incremental archive
27977 $at_diff - "$at_stderr" || at_failed=:
27978 echo >>"$at_stdout"; $as_echo "Creating directory structure
27979 Creating initial archive
27981 Creating incremental archive
27990 $at_diff - "$at_stdout" || at_failed=:
27991 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
27992 $at_failed && at_fn_log_failure
27996 $as_echo "$at_srcdir/rename05.at:27:
27999 TEST_TAR_FORMAT=posix
28000 export TEST_TAR_FORMAT
28001 TAR_OPTIONS=\"-H posix\"
28006 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
28009 decho Creating directory structure
28011 mkdir directory/subdir
28012 genfile --file=directory/file
28014 decho Creating initial archive
28015 tar -cf archive.1 -g db.1 directory
28018 mv directory/subdir directory/subdir.0
28021 decho Creating incremental archive
28023 tar -cf archive.2 -g db.2 dir
28027 decho First restore
28028 tar -xf archive.1 -g db.1 --warning=no-timestamp
28029 find directory | sort
28031 decho Second restore
28032 tar -xf archive.2 -g db.2 --warning=no-timestamp
28035 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
28039 TEST_TAR_FORMAT=posix
28040 export TEST_TAR_FORMAT
28041 TAR_OPTIONS="-H posix"
28046 test -z "`sort < /dev/null 2>&1`" || exit 77
28049 decho Creating directory structure
28051 mkdir directory/subdir
28052 genfile --file=directory/file
28054 decho Creating initial archive
28055 tar -cf archive.1 -g db.1 directory
28058 mv directory/subdir directory/subdir.0
28061 decho Creating incremental archive
28063 tar -cf archive.2 -g db.2 dir
28067 decho First restore
28068 tar -xf archive.1 -g db.1 --warning=no-timestamp
28069 find directory | sort
28071 decho Second restore
28072 tar -xf archive.2 -g db.2 --warning=no-timestamp
28075 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28076 at_status=$? at_failed=false
28078 echo >>"$at_stderr"; $as_echo "Creating directory structure
28079 Creating initial archive
28081 Creating incremental archive
28085 $at_diff - "$at_stderr" || at_failed=:
28086 echo >>"$at_stdout"; $as_echo "Creating directory structure
28087 Creating initial archive
28089 Creating incremental archive
28098 $at_diff - "$at_stdout" || at_failed=:
28099 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
28100 $at_failed && at_fn_log_failure
28107 $at_times_p && times >"$at_times_file"
28108 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28109 read at_status <"$at_status_file"
28112 at_fn_group_banner 113 'chtype.at:27' \
28113 "changed file types in incrementals" " " 13
28115 test -f $XFAILFILE && at_xfail=yes
28117 $as_echo "113. $at_setup_line: testing $at_desc ..."
28125 $as_echo "$at_srcdir/chtype.at:30:
28128 TEST_TAR_FORMAT=gnu
28129 export TEST_TAR_FORMAT
28130 TAR_OPTIONS=\"-H gnu\"
28135 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
28138 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28140 genfile --file directory/a/a
28143 tar --create --file=archive.1 --listed-incremental=db.1 directory
28147 # Remove directory b and create a file with this name.
28148 # Previous versions were not able to restore over this file.
28150 genfile --file directory/b
28151 genfile --file directory/a/b
28154 tar --create --file=archive.2 --listed-incremental=db.2 directory
28159 echo Restore archive.1
28160 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28161 echo Restore archive.2
28162 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28163 find directory | sort
28165 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
28169 TEST_TAR_FORMAT=gnu
28170 export TEST_TAR_FORMAT
28171 TAR_OPTIONS="-H gnu"
28176 test -z "`sort < /dev/null 2>&1`" || exit 77
28179 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28181 genfile --file directory/a/a
28184 tar --create --file=archive.1 --listed-incremental=db.1 directory
28188 # Remove directory b and create a file with this name.
28189 # Previous versions were not able to restore over this file.
28191 genfile --file directory/b
28192 genfile --file directory/a/b
28195 tar --create --file=archive.2 --listed-incremental=db.2 directory
28200 echo Restore archive.1
28201 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28202 echo Restore archive.2
28203 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28204 find directory | sort
28206 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28207 at_status=$? at_failed=false
28209 at_fn_diff_devnull "$at_stderr" || at_failed=:
28210 echo >>"$at_stdout"; $as_echo "First backup
28220 $at_diff - "$at_stdout" || at_failed=:
28221 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
28222 $at_failed && at_fn_log_failure
28226 $as_echo "$at_srcdir/chtype.at:30:
28229 TEST_TAR_FORMAT=oldgnu
28230 export TEST_TAR_FORMAT
28231 TAR_OPTIONS=\"-H oldgnu\"
28236 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
28239 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28241 genfile --file directory/a/a
28244 tar --create --file=archive.1 --listed-incremental=db.1 directory
28248 # Remove directory b and create a file with this name.
28249 # Previous versions were not able to restore over this file.
28251 genfile --file directory/b
28252 genfile --file directory/a/b
28255 tar --create --file=archive.2 --listed-incremental=db.2 directory
28260 echo Restore archive.1
28261 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28262 echo Restore archive.2
28263 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28264 find directory | sort
28266 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
28270 TEST_TAR_FORMAT=oldgnu
28271 export TEST_TAR_FORMAT
28272 TAR_OPTIONS="-H oldgnu"
28277 test -z "`sort < /dev/null 2>&1`" || exit 77
28280 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28282 genfile --file directory/a/a
28285 tar --create --file=archive.1 --listed-incremental=db.1 directory
28289 # Remove directory b and create a file with this name.
28290 # Previous versions were not able to restore over this file.
28292 genfile --file directory/b
28293 genfile --file directory/a/b
28296 tar --create --file=archive.2 --listed-incremental=db.2 directory
28301 echo Restore archive.1
28302 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28303 echo Restore archive.2
28304 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28305 find directory | sort
28307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28308 at_status=$? at_failed=false
28310 at_fn_diff_devnull "$at_stderr" || at_failed=:
28311 echo >>"$at_stdout"; $as_echo "First backup
28321 $at_diff - "$at_stdout" || at_failed=:
28322 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
28323 $at_failed && at_fn_log_failure
28327 $as_echo "$at_srcdir/chtype.at:30:
28330 TEST_TAR_FORMAT=posix
28331 export TEST_TAR_FORMAT
28332 TAR_OPTIONS=\"-H posix\"
28337 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
28340 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28342 genfile --file directory/a/a
28345 tar --create --file=archive.1 --listed-incremental=db.1 directory
28349 # Remove directory b and create a file with this name.
28350 # Previous versions were not able to restore over this file.
28352 genfile --file directory/b
28353 genfile --file directory/a/b
28356 tar --create --file=archive.2 --listed-incremental=db.2 directory
28361 echo Restore archive.1
28362 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28363 echo Restore archive.2
28364 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28365 find directory | sort
28367 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
28371 TEST_TAR_FORMAT=posix
28372 export TEST_TAR_FORMAT
28373 TAR_OPTIONS="-H posix"
28378 test -z "`sort < /dev/null 2>&1`" || exit 77
28381 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
28383 genfile --file directory/a/a
28386 tar --create --file=archive.1 --listed-incremental=db.1 directory
28390 # Remove directory b and create a file with this name.
28391 # Previous versions were not able to restore over this file.
28393 genfile --file directory/b
28394 genfile --file directory/a/b
28397 tar --create --file=archive.2 --listed-incremental=db.2 directory
28402 echo Restore archive.1
28403 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
28404 echo Restore archive.2
28405 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
28406 find directory | sort
28408 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28409 at_status=$? at_failed=false
28411 at_fn_diff_devnull "$at_stderr" || at_failed=:
28412 echo >>"$at_stdout"; $as_echo "First backup
28422 $at_diff - "$at_stdout" || at_failed=:
28423 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
28424 $at_failed && at_fn_log_failure
28431 $at_times_p && times >"$at_times_file"
28432 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28433 read at_status <"$at_status_file"
28436 at_fn_group_banner 114 'ignfail.at:24' \
28439 test -f $XFAILFILE && at_xfail=yes
28441 $as_echo "114. $at_setup_line: testing $at_desc ..."
28449 $as_echo "$at_srcdir/ignfail.at:27:
28453 export TEST_TAR_FORMAT
28454 TAR_OPTIONS=\"-H v7\"
28458 # The test is meaningless for super-user.
28460 echo \"test\" > \$\$
28462 cat \$\$ > /dev/null 2>&1
28465 test \$result -eq 0 && exit 77
28470 touch directory/file
28474 tar cf archive file
28477 test \$status = 2 || exit 1
28481 tar cf archive --ignore-failed-read file || exit 1
28484 test \$status = 0 || exit 1
28487 chmod 000 directory
28488 tar cf archive directory
28490 chmod 700 directory
28491 test \$status = 2 || exit 1
28494 chmod 000 directory
28495 tar cf archive --ignore-failed-read directory || exit 1
28497 chmod 700 directory
28500 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:27"
28505 export TEST_TAR_FORMAT
28506 TAR_OPTIONS="-H v7"
28510 # The test is meaningless for super-user.
28514 cat $$ > /dev/null 2>&1
28517 test $result -eq 0 && exit 77
28522 touch directory/file
28526 tar cf archive file
28529 test $status = 2 || exit 1
28533 tar cf archive --ignore-failed-read file || exit 1
28536 test $status = 0 || exit 1
28539 chmod 000 directory
28540 tar cf archive directory
28542 chmod 700 directory
28543 test $status = 2 || exit 1
28546 chmod 000 directory
28547 tar cf archive --ignore-failed-read directory || exit 1
28549 chmod 700 directory
28552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28553 at_status=$? at_failed=false
28555 echo >>"$at_stderr"; $as_echo "-----
28556 tar: file: Cannot open: Permission denied
28557 tar: Exiting with failure status due to previous errors
28559 tar: file: Warning: Cannot open: Permission denied
28561 tar: directory: Cannot open: Permission denied
28562 tar: Exiting with failure status due to previous errors
28564 tar: directory: Warning: Cannot open: Permission denied
28566 $at_diff - "$at_stderr" || at_failed=:
28567 at_fn_diff_devnull "$at_stdout" || at_failed=:
28568 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:27"
28569 $at_failed && at_fn_log_failure
28573 $as_echo "$at_srcdir/ignfail.at:27:
28576 TEST_TAR_FORMAT=oldgnu
28577 export TEST_TAR_FORMAT
28578 TAR_OPTIONS=\"-H oldgnu\"
28582 # The test is meaningless for super-user.
28584 echo \"test\" > \$\$
28586 cat \$\$ > /dev/null 2>&1
28589 test \$result -eq 0 && exit 77
28594 touch directory/file
28598 tar cf archive file
28601 test \$status = 2 || exit 1
28605 tar cf archive --ignore-failed-read file || exit 1
28608 test \$status = 0 || exit 1
28611 chmod 000 directory
28612 tar cf archive directory
28614 chmod 700 directory
28615 test \$status = 2 || exit 1
28618 chmod 000 directory
28619 tar cf archive --ignore-failed-read directory || exit 1
28621 chmod 700 directory
28624 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:27"
28628 TEST_TAR_FORMAT=oldgnu
28629 export TEST_TAR_FORMAT
28630 TAR_OPTIONS="-H oldgnu"
28634 # The test is meaningless for super-user.
28638 cat $$ > /dev/null 2>&1
28641 test $result -eq 0 && exit 77
28646 touch directory/file
28650 tar cf archive file
28653 test $status = 2 || exit 1
28657 tar cf archive --ignore-failed-read file || exit 1
28660 test $status = 0 || exit 1
28663 chmod 000 directory
28664 tar cf archive directory
28666 chmod 700 directory
28667 test $status = 2 || exit 1
28670 chmod 000 directory
28671 tar cf archive --ignore-failed-read directory || exit 1
28673 chmod 700 directory
28676 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28677 at_status=$? at_failed=false
28679 echo >>"$at_stderr"; $as_echo "-----
28680 tar: file: Cannot open: Permission denied
28681 tar: Exiting with failure status due to previous errors
28683 tar: file: Warning: Cannot open: Permission denied
28685 tar: directory: Cannot open: Permission denied
28686 tar: Exiting with failure status due to previous errors
28688 tar: directory: Warning: Cannot open: Permission denied
28690 $at_diff - "$at_stderr" || at_failed=:
28691 at_fn_diff_devnull "$at_stdout" || at_failed=:
28692 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:27"
28693 $at_failed && at_fn_log_failure
28697 $as_echo "$at_srcdir/ignfail.at:27:
28700 TEST_TAR_FORMAT=ustar
28701 export TEST_TAR_FORMAT
28702 TAR_OPTIONS=\"-H ustar\"
28706 # The test is meaningless for super-user.
28708 echo \"test\" > \$\$
28710 cat \$\$ > /dev/null 2>&1
28713 test \$result -eq 0 && exit 77
28718 touch directory/file
28722 tar cf archive file
28725 test \$status = 2 || exit 1
28729 tar cf archive --ignore-failed-read file || exit 1
28732 test \$status = 0 || exit 1
28735 chmod 000 directory
28736 tar cf archive directory
28738 chmod 700 directory
28739 test \$status = 2 || exit 1
28742 chmod 000 directory
28743 tar cf archive --ignore-failed-read directory || exit 1
28745 chmod 700 directory
28748 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:27"
28752 TEST_TAR_FORMAT=ustar
28753 export TEST_TAR_FORMAT
28754 TAR_OPTIONS="-H ustar"
28758 # The test is meaningless for super-user.
28762 cat $$ > /dev/null 2>&1
28765 test $result -eq 0 && exit 77
28770 touch directory/file
28774 tar cf archive file
28777 test $status = 2 || exit 1
28781 tar cf archive --ignore-failed-read file || exit 1
28784 test $status = 0 || exit 1
28787 chmod 000 directory
28788 tar cf archive directory
28790 chmod 700 directory
28791 test $status = 2 || exit 1
28794 chmod 000 directory
28795 tar cf archive --ignore-failed-read directory || exit 1
28797 chmod 700 directory
28800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28801 at_status=$? at_failed=false
28803 echo >>"$at_stderr"; $as_echo "-----
28804 tar: file: Cannot open: Permission denied
28805 tar: Exiting with failure status due to previous errors
28807 tar: file: Warning: Cannot open: Permission denied
28809 tar: directory: Cannot open: Permission denied
28810 tar: Exiting with failure status due to previous errors
28812 tar: directory: Warning: Cannot open: Permission denied
28814 $at_diff - "$at_stderr" || at_failed=:
28815 at_fn_diff_devnull "$at_stdout" || at_failed=:
28816 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:27"
28817 $at_failed && at_fn_log_failure
28821 $as_echo "$at_srcdir/ignfail.at:27:
28824 TEST_TAR_FORMAT=posix
28825 export TEST_TAR_FORMAT
28826 TAR_OPTIONS=\"-H posix\"
28830 # The test is meaningless for super-user.
28832 echo \"test\" > \$\$
28834 cat \$\$ > /dev/null 2>&1
28837 test \$result -eq 0 && exit 77
28842 touch directory/file
28846 tar cf archive file
28849 test \$status = 2 || exit 1
28853 tar cf archive --ignore-failed-read file || exit 1
28856 test \$status = 0 || exit 1
28859 chmod 000 directory
28860 tar cf archive directory
28862 chmod 700 directory
28863 test \$status = 2 || exit 1
28866 chmod 000 directory
28867 tar cf archive --ignore-failed-read directory || exit 1
28869 chmod 700 directory
28872 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:27"
28876 TEST_TAR_FORMAT=posix
28877 export TEST_TAR_FORMAT
28878 TAR_OPTIONS="-H posix"
28882 # The test is meaningless for super-user.
28886 cat $$ > /dev/null 2>&1
28889 test $result -eq 0 && exit 77
28894 touch directory/file
28898 tar cf archive file
28901 test $status = 2 || exit 1
28905 tar cf archive --ignore-failed-read file || exit 1
28908 test $status = 0 || exit 1
28911 chmod 000 directory
28912 tar cf archive directory
28914 chmod 700 directory
28915 test $status = 2 || exit 1
28918 chmod 000 directory
28919 tar cf archive --ignore-failed-read directory || exit 1
28921 chmod 700 directory
28924 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28925 at_status=$? at_failed=false
28927 echo >>"$at_stderr"; $as_echo "-----
28928 tar: file: Cannot open: Permission denied
28929 tar: Exiting with failure status due to previous errors
28931 tar: file: Warning: Cannot open: Permission denied
28933 tar: directory: Cannot open: Permission denied
28934 tar: Exiting with failure status due to previous errors
28936 tar: directory: Warning: Cannot open: Permission denied
28938 $at_diff - "$at_stderr" || at_failed=:
28939 at_fn_diff_devnull "$at_stdout" || at_failed=:
28940 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:27"
28941 $at_failed && at_fn_log_failure
28945 $as_echo "$at_srcdir/ignfail.at:27:
28948 TEST_TAR_FORMAT=gnu
28949 export TEST_TAR_FORMAT
28950 TAR_OPTIONS=\"-H gnu\"
28954 # The test is meaningless for super-user.
28956 echo \"test\" > \$\$
28958 cat \$\$ > /dev/null 2>&1
28961 test \$result -eq 0 && exit 77
28966 touch directory/file
28970 tar cf archive file
28973 test \$status = 2 || exit 1
28977 tar cf archive --ignore-failed-read file || exit 1
28980 test \$status = 0 || exit 1
28983 chmod 000 directory
28984 tar cf archive directory
28986 chmod 700 directory
28987 test \$status = 2 || exit 1
28990 chmod 000 directory
28991 tar cf archive --ignore-failed-read directory || exit 1
28993 chmod 700 directory
28996 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:27"
29000 TEST_TAR_FORMAT=gnu
29001 export TEST_TAR_FORMAT
29002 TAR_OPTIONS="-H gnu"
29006 # The test is meaningless for super-user.
29010 cat $$ > /dev/null 2>&1
29013 test $result -eq 0 && exit 77
29018 touch directory/file
29022 tar cf archive file
29025 test $status = 2 || exit 1
29029 tar cf archive --ignore-failed-read file || exit 1
29032 test $status = 0 || exit 1
29035 chmod 000 directory
29036 tar cf archive directory
29038 chmod 700 directory
29039 test $status = 2 || exit 1
29042 chmod 000 directory
29043 tar cf archive --ignore-failed-read directory || exit 1
29045 chmod 700 directory
29048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29049 at_status=$? at_failed=false
29051 echo >>"$at_stderr"; $as_echo "-----
29052 tar: file: Cannot open: Permission denied
29053 tar: Exiting with failure status due to previous errors
29055 tar: file: Warning: Cannot open: Permission denied
29057 tar: directory: Cannot open: Permission denied
29058 tar: Exiting with failure status due to previous errors
29060 tar: directory: Warning: Cannot open: Permission denied
29062 $at_diff - "$at_stderr" || at_failed=:
29063 at_fn_diff_devnull "$at_stdout" || at_failed=:
29064 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:27"
29065 $at_failed && at_fn_log_failure
29072 $at_times_p && times >"$at_times_file"
29073 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29074 read at_status <"$at_status_file"
29077 at_fn_group_banner 115 'link01.at:34' \
29078 "link count gt 2" " " 15
29080 test -f $XFAILFILE && at_xfail=yes
29082 $as_echo "115. $at_setup_line: testing $at_desc ..."
29090 $as_echo "$at_srcdir/link01.at:37:
29094 export TEST_TAR_FORMAT
29095 TAR_OPTIONS=\"-H v7\"
29100 mkdir directory/test1
29101 mkdir directory/test2
29103 echo TEST > directory/test1/test.txt
29104 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29106 tar cf archive directory/test1/test.txt directory/test1/test.txt
29109 tar xf archive --warning=no-timestamp
29113 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:37"
29118 export TEST_TAR_FORMAT
29119 TAR_OPTIONS="-H v7"
29124 mkdir directory/test1
29125 mkdir directory/test2
29127 echo TEST > directory/test1/test.txt
29128 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29130 tar cf archive directory/test1/test.txt directory/test1/test.txt
29133 tar xf archive --warning=no-timestamp
29137 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29138 at_status=$? at_failed=false
29140 at_fn_diff_devnull "$at_stderr" || at_failed=:
29141 echo >>"$at_stdout"; $as_echo "test.txt
29143 $at_diff - "$at_stdout" || at_failed=:
29144 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:37"
29145 $at_failed && at_fn_log_failure
29149 $as_echo "$at_srcdir/link01.at:37:
29152 TEST_TAR_FORMAT=oldgnu
29153 export TEST_TAR_FORMAT
29154 TAR_OPTIONS=\"-H oldgnu\"
29159 mkdir directory/test1
29160 mkdir directory/test2
29162 echo TEST > directory/test1/test.txt
29163 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29165 tar cf archive directory/test1/test.txt directory/test1/test.txt
29168 tar xf archive --warning=no-timestamp
29172 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:37"
29176 TEST_TAR_FORMAT=oldgnu
29177 export TEST_TAR_FORMAT
29178 TAR_OPTIONS="-H oldgnu"
29183 mkdir directory/test1
29184 mkdir directory/test2
29186 echo TEST > directory/test1/test.txt
29187 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29189 tar cf archive directory/test1/test.txt directory/test1/test.txt
29192 tar xf archive --warning=no-timestamp
29196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29197 at_status=$? at_failed=false
29199 at_fn_diff_devnull "$at_stderr" || at_failed=:
29200 echo >>"$at_stdout"; $as_echo "test.txt
29202 $at_diff - "$at_stdout" || at_failed=:
29203 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:37"
29204 $at_failed && at_fn_log_failure
29208 $as_echo "$at_srcdir/link01.at:37:
29211 TEST_TAR_FORMAT=ustar
29212 export TEST_TAR_FORMAT
29213 TAR_OPTIONS=\"-H ustar\"
29218 mkdir directory/test1
29219 mkdir directory/test2
29221 echo TEST > directory/test1/test.txt
29222 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29224 tar cf archive directory/test1/test.txt directory/test1/test.txt
29227 tar xf archive --warning=no-timestamp
29231 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:37"
29235 TEST_TAR_FORMAT=ustar
29236 export TEST_TAR_FORMAT
29237 TAR_OPTIONS="-H ustar"
29242 mkdir directory/test1
29243 mkdir directory/test2
29245 echo TEST > directory/test1/test.txt
29246 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29248 tar cf archive directory/test1/test.txt directory/test1/test.txt
29251 tar xf archive --warning=no-timestamp
29255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29256 at_status=$? at_failed=false
29258 at_fn_diff_devnull "$at_stderr" || at_failed=:
29259 echo >>"$at_stdout"; $as_echo "test.txt
29261 $at_diff - "$at_stdout" || at_failed=:
29262 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:37"
29263 $at_failed && at_fn_log_failure
29267 $as_echo "$at_srcdir/link01.at:37:
29270 TEST_TAR_FORMAT=posix
29271 export TEST_TAR_FORMAT
29272 TAR_OPTIONS=\"-H posix\"
29277 mkdir directory/test1
29278 mkdir directory/test2
29280 echo TEST > directory/test1/test.txt
29281 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29283 tar cf archive directory/test1/test.txt directory/test1/test.txt
29286 tar xf archive --warning=no-timestamp
29290 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:37"
29294 TEST_TAR_FORMAT=posix
29295 export TEST_TAR_FORMAT
29296 TAR_OPTIONS="-H posix"
29301 mkdir directory/test1
29302 mkdir directory/test2
29304 echo TEST > directory/test1/test.txt
29305 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29307 tar cf archive directory/test1/test.txt directory/test1/test.txt
29310 tar xf archive --warning=no-timestamp
29314 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29315 at_status=$? at_failed=false
29317 at_fn_diff_devnull "$at_stderr" || at_failed=:
29318 echo >>"$at_stdout"; $as_echo "test.txt
29320 $at_diff - "$at_stdout" || at_failed=:
29321 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:37"
29322 $at_failed && at_fn_log_failure
29326 $as_echo "$at_srcdir/link01.at:37:
29329 TEST_TAR_FORMAT=gnu
29330 export TEST_TAR_FORMAT
29331 TAR_OPTIONS=\"-H gnu\"
29336 mkdir directory/test1
29337 mkdir directory/test2
29339 echo TEST > directory/test1/test.txt
29340 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29342 tar cf archive directory/test1/test.txt directory/test1/test.txt
29345 tar xf archive --warning=no-timestamp
29349 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:37"
29353 TEST_TAR_FORMAT=gnu
29354 export TEST_TAR_FORMAT
29355 TAR_OPTIONS="-H gnu"
29360 mkdir directory/test1
29361 mkdir directory/test2
29363 echo TEST > directory/test1/test.txt
29364 ln directory/test1/test.txt directory/test2/test.txt || exit 77
29366 tar cf archive directory/test1/test.txt directory/test1/test.txt
29369 tar xf archive --warning=no-timestamp
29373 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29374 at_status=$? at_failed=false
29376 at_fn_diff_devnull "$at_stderr" || at_failed=:
29377 echo >>"$at_stdout"; $as_echo "test.txt
29379 $at_diff - "$at_stdout" || at_failed=:
29380 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:37"
29381 $at_failed && at_fn_log_failure
29388 $at_times_p && times >"$at_times_file"
29389 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29390 read at_status <"$at_status_file"
29393 at_fn_group_banner 116 'link02.at:32' \
29394 "preserve hard links with --remove-files" " " 15
29396 test -f $XFAILFILE && at_xfail=yes
29398 $as_echo "116. $at_setup_line: testing $at_desc ..."
29406 $as_echo "$at_srcdir/link02.at:35:
29410 export TEST_TAR_FORMAT
29411 TAR_OPTIONS=\"-H v7\"
29415 genfile -l 64 -f file1
29419 tar -c -f archive --remove-files file1 file2 file3 file4
29420 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29422 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
29427 export TEST_TAR_FORMAT
29428 TAR_OPTIONS="-H v7"
29432 genfile -l 64 -f file1
29436 tar -c -f archive --remove-files file1 file2 file3 file4
29437 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29440 at_status=$? at_failed=false
29442 at_fn_diff_devnull "$at_stderr" || at_failed=:
29443 echo >>"$at_stdout"; $as_echo "file1
29447 $at_diff - "$at_stdout" || at_failed=:
29448 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
29449 $at_failed && at_fn_log_failure
29453 $as_echo "$at_srcdir/link02.at:35:
29456 TEST_TAR_FORMAT=oldgnu
29457 export TEST_TAR_FORMAT
29458 TAR_OPTIONS=\"-H oldgnu\"
29462 genfile -l 64 -f file1
29466 tar -c -f archive --remove-files file1 file2 file3 file4
29467 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29469 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
29473 TEST_TAR_FORMAT=oldgnu
29474 export TEST_TAR_FORMAT
29475 TAR_OPTIONS="-H oldgnu"
29479 genfile -l 64 -f file1
29483 tar -c -f archive --remove-files file1 file2 file3 file4
29484 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29486 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29487 at_status=$? at_failed=false
29489 at_fn_diff_devnull "$at_stderr" || at_failed=:
29490 echo >>"$at_stdout"; $as_echo "file1
29494 $at_diff - "$at_stdout" || at_failed=:
29495 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
29496 $at_failed && at_fn_log_failure
29500 $as_echo "$at_srcdir/link02.at:35:
29503 TEST_TAR_FORMAT=ustar
29504 export TEST_TAR_FORMAT
29505 TAR_OPTIONS=\"-H ustar\"
29509 genfile -l 64 -f file1
29513 tar -c -f archive --remove-files file1 file2 file3 file4
29514 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29516 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
29520 TEST_TAR_FORMAT=ustar
29521 export TEST_TAR_FORMAT
29522 TAR_OPTIONS="-H ustar"
29526 genfile -l 64 -f file1
29530 tar -c -f archive --remove-files file1 file2 file3 file4
29531 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29533 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29534 at_status=$? at_failed=false
29536 at_fn_diff_devnull "$at_stderr" || at_failed=:
29537 echo >>"$at_stdout"; $as_echo "file1
29541 $at_diff - "$at_stdout" || at_failed=:
29542 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
29543 $at_failed && at_fn_log_failure
29547 $as_echo "$at_srcdir/link02.at:35:
29550 TEST_TAR_FORMAT=posix
29551 export TEST_TAR_FORMAT
29552 TAR_OPTIONS=\"-H posix\"
29556 genfile -l 64 -f file1
29560 tar -c -f archive --remove-files file1 file2 file3 file4
29561 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29563 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
29567 TEST_TAR_FORMAT=posix
29568 export TEST_TAR_FORMAT
29569 TAR_OPTIONS="-H posix"
29573 genfile -l 64 -f file1
29577 tar -c -f archive --remove-files file1 file2 file3 file4
29578 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29580 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29581 at_status=$? at_failed=false
29583 at_fn_diff_devnull "$at_stderr" || at_failed=:
29584 echo >>"$at_stdout"; $as_echo "file1
29588 $at_diff - "$at_stdout" || at_failed=:
29589 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
29590 $at_failed && at_fn_log_failure
29594 $as_echo "$at_srcdir/link02.at:35:
29597 TEST_TAR_FORMAT=gnu
29598 export TEST_TAR_FORMAT
29599 TAR_OPTIONS=\"-H gnu\"
29603 genfile -l 64 -f file1
29607 tar -c -f archive --remove-files file1 file2 file3 file4
29608 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29610 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
29614 TEST_TAR_FORMAT=gnu
29615 export TEST_TAR_FORMAT
29616 TAR_OPTIONS="-H gnu"
29620 genfile -l 64 -f file1
29624 tar -c -f archive --remove-files file1 file2 file3 file4
29625 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
29627 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29628 at_status=$? at_failed=false
29630 at_fn_diff_devnull "$at_stderr" || at_failed=:
29631 echo >>"$at_stdout"; $as_echo "file1
29635 $at_diff - "$at_stdout" || at_failed=:
29636 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
29637 $at_failed && at_fn_log_failure
29644 $at_times_p && times >"$at_times_file"
29645 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29646 read at_status <"$at_status_file"
29649 at_fn_group_banner 117 'link03.at:24' \
29650 "working -l with --remove-files" " " 15
29652 test -f $XFAILFILE && at_xfail=yes
29654 $as_echo "117. $at_setup_line: testing $at_desc ..."
29664 $as_echo "$at_srcdir/link03.at:34:
29668 export TEST_TAR_FORMAT
29669 TAR_OPTIONS=\"-H v7\"
29674 genfile -l 64 -f file1
29680 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29682 genfile -l 64 -f file1
29688 tar -c -f archive.2 -l --remove-files file1 file2 file3
29689 echo testing archive.2
29690 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29692 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
29697 export TEST_TAR_FORMAT
29698 TAR_OPTIONS="-H v7"
29703 genfile -l 64 -f file1
29709 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29711 genfile -l 64 -f file1
29717 tar -c -f archive.2 -l --remove-files file1 file2 file3
29718 echo testing archive.2
29719 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29721 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29722 at_status=$? at_failed=false
29724 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
29726 $at_diff - "$at_stderr" || at_failed=:
29727 echo >>"$at_stdout"; $as_echo "archive.1
29733 $at_diff - "$at_stdout" || at_failed=:
29734 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
29735 $at_failed && at_fn_log_failure
29739 $as_echo "$at_srcdir/link03.at:34:
29742 TEST_TAR_FORMAT=oldgnu
29743 export TEST_TAR_FORMAT
29744 TAR_OPTIONS=\"-H oldgnu\"
29749 genfile -l 64 -f file1
29755 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29757 genfile -l 64 -f file1
29763 tar -c -f archive.2 -l --remove-files file1 file2 file3
29764 echo testing archive.2
29765 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29767 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
29771 TEST_TAR_FORMAT=oldgnu
29772 export TEST_TAR_FORMAT
29773 TAR_OPTIONS="-H oldgnu"
29778 genfile -l 64 -f file1
29784 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29786 genfile -l 64 -f file1
29792 tar -c -f archive.2 -l --remove-files file1 file2 file3
29793 echo testing archive.2
29794 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29796 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29797 at_status=$? at_failed=false
29799 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
29801 $at_diff - "$at_stderr" || at_failed=:
29802 echo >>"$at_stdout"; $as_echo "archive.1
29808 $at_diff - "$at_stdout" || at_failed=:
29809 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
29810 $at_failed && at_fn_log_failure
29814 $as_echo "$at_srcdir/link03.at:34:
29817 TEST_TAR_FORMAT=ustar
29818 export TEST_TAR_FORMAT
29819 TAR_OPTIONS=\"-H ustar\"
29824 genfile -l 64 -f file1
29830 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29832 genfile -l 64 -f file1
29838 tar -c -f archive.2 -l --remove-files file1 file2 file3
29839 echo testing archive.2
29840 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29842 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
29846 TEST_TAR_FORMAT=ustar
29847 export TEST_TAR_FORMAT
29848 TAR_OPTIONS="-H ustar"
29853 genfile -l 64 -f file1
29859 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29861 genfile -l 64 -f file1
29867 tar -c -f archive.2 -l --remove-files file1 file2 file3
29868 echo testing archive.2
29869 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29871 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29872 at_status=$? at_failed=false
29874 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
29876 $at_diff - "$at_stderr" || at_failed=:
29877 echo >>"$at_stdout"; $as_echo "archive.1
29883 $at_diff - "$at_stdout" || at_failed=:
29884 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
29885 $at_failed && at_fn_log_failure
29889 $as_echo "$at_srcdir/link03.at:34:
29892 TEST_TAR_FORMAT=posix
29893 export TEST_TAR_FORMAT
29894 TAR_OPTIONS=\"-H posix\"
29899 genfile -l 64 -f file1
29905 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29907 genfile -l 64 -f file1
29913 tar -c -f archive.2 -l --remove-files file1 file2 file3
29914 echo testing archive.2
29915 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29917 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
29921 TEST_TAR_FORMAT=posix
29922 export TEST_TAR_FORMAT
29923 TAR_OPTIONS="-H posix"
29928 genfile -l 64 -f file1
29934 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29936 genfile -l 64 -f file1
29942 tar -c -f archive.2 -l --remove-files file1 file2 file3
29943 echo testing archive.2
29944 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29946 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29947 at_status=$? at_failed=false
29949 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
29951 $at_diff - "$at_stderr" || at_failed=:
29952 echo >>"$at_stdout"; $as_echo "archive.1
29958 $at_diff - "$at_stdout" || at_failed=:
29959 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
29960 $at_failed && at_fn_log_failure
29964 $as_echo "$at_srcdir/link03.at:34:
29967 TEST_TAR_FORMAT=gnu
29968 export TEST_TAR_FORMAT
29969 TAR_OPTIONS=\"-H gnu\"
29974 genfile -l 64 -f file1
29980 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
29982 genfile -l 64 -f file1
29988 tar -c -f archive.2 -l --remove-files file1 file2 file3
29989 echo testing archive.2
29990 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
29992 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
29996 TEST_TAR_FORMAT=gnu
29997 export TEST_TAR_FORMAT
29998 TAR_OPTIONS="-H gnu"
30003 genfile -l 64 -f file1
30009 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
30011 genfile -l 64 -f file1
30017 tar -c -f archive.2 -l --remove-files file1 file2 file3
30018 echo testing archive.2
30019 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
30021 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30022 at_status=$? at_failed=false
30024 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
30026 $at_diff - "$at_stderr" || at_failed=:
30027 echo >>"$at_stdout"; $as_echo "archive.1
30033 $at_diff - "$at_stdout" || at_failed=:
30034 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
30035 $at_failed && at_fn_log_failure
30043 $at_times_p && times >"$at_times_file"
30044 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30045 read at_status <"$at_status_file"
30048 at_fn_group_banner 118 'link04.at:29' \
30049 "link count is 1 but multiple occurrences" " " 15
30051 test -f $XFAILFILE && at_xfail=yes
30053 $as_echo "118. $at_setup_line: testing $at_desc ..."
30061 $as_echo "$at_srcdir/link04.at:32:
30065 export TEST_TAR_FORMAT
30066 TAR_OPTIONS=\"-H v7\"
30071 echo TEST > dir/file
30072 ln -s file dir/symlink || exit 77
30074 tar cf archive dir dir
30075 tar tvf archive | sed '
30076 s,.*[0-9] dir/,dir/,
30081 tar cfl archive dir dir
30085 tar chf archive dir
30086 tar tvf archive | sed '
30087 s,.*[0-9] dir/,dir/,
30092 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
30097 export TEST_TAR_FORMAT
30098 TAR_OPTIONS="-H v7"
30103 echo TEST > dir/file
30104 ln -s file dir/symlink || exit 77
30106 tar cf archive dir dir
30107 tar tvf archive | sed '
30108 s,.*[0-9] dir/,dir/,
30113 tar cfl archive dir dir
30117 tar chf archive dir
30118 tar tvf archive | sed '
30119 s,.*[0-9] dir/,dir/,
30124 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30125 at_status=$? at_failed=false
30127 at_fn_diff_devnull "$at_stderr" || at_failed=:
30128 echo >>"$at_stdout"; $as_echo "dir/
30131 dir/file link to dir/file
30132 dir/symlink -> file
30133 dir/symlink link to dir/symlink
30138 dir/FOO link to dir/FOO
30140 $at_diff - "$at_stdout" || at_failed=:
30141 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
30142 $at_failed && at_fn_log_failure
30146 $as_echo "$at_srcdir/link04.at:32:
30149 TEST_TAR_FORMAT=oldgnu
30150 export TEST_TAR_FORMAT
30151 TAR_OPTIONS=\"-H oldgnu\"
30156 echo TEST > dir/file
30157 ln -s file dir/symlink || exit 77
30159 tar cf archive dir dir
30160 tar tvf archive | sed '
30161 s,.*[0-9] dir/,dir/,
30166 tar cfl archive dir dir
30170 tar chf archive dir
30171 tar tvf archive | sed '
30172 s,.*[0-9] dir/,dir/,
30177 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
30181 TEST_TAR_FORMAT=oldgnu
30182 export TEST_TAR_FORMAT
30183 TAR_OPTIONS="-H oldgnu"
30188 echo TEST > dir/file
30189 ln -s file dir/symlink || exit 77
30191 tar cf archive dir dir
30192 tar tvf archive | sed '
30193 s,.*[0-9] dir/,dir/,
30198 tar cfl archive dir dir
30202 tar chf archive dir
30203 tar tvf archive | sed '
30204 s,.*[0-9] dir/,dir/,
30209 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30210 at_status=$? at_failed=false
30212 at_fn_diff_devnull "$at_stderr" || at_failed=:
30213 echo >>"$at_stdout"; $as_echo "dir/
30216 dir/file link to dir/file
30217 dir/symlink -> file
30218 dir/symlink link to dir/symlink
30223 dir/FOO link to dir/FOO
30225 $at_diff - "$at_stdout" || at_failed=:
30226 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
30227 $at_failed && at_fn_log_failure
30231 $as_echo "$at_srcdir/link04.at:32:
30234 TEST_TAR_FORMAT=ustar
30235 export TEST_TAR_FORMAT
30236 TAR_OPTIONS=\"-H ustar\"
30241 echo TEST > dir/file
30242 ln -s file dir/symlink || exit 77
30244 tar cf archive dir dir
30245 tar tvf archive | sed '
30246 s,.*[0-9] dir/,dir/,
30251 tar cfl archive dir dir
30255 tar chf archive dir
30256 tar tvf archive | sed '
30257 s,.*[0-9] dir/,dir/,
30262 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
30266 TEST_TAR_FORMAT=ustar
30267 export TEST_TAR_FORMAT
30268 TAR_OPTIONS="-H ustar"
30273 echo TEST > dir/file
30274 ln -s file dir/symlink || exit 77
30276 tar cf archive dir dir
30277 tar tvf archive | sed '
30278 s,.*[0-9] dir/,dir/,
30283 tar cfl archive dir dir
30287 tar chf archive dir
30288 tar tvf archive | sed '
30289 s,.*[0-9] dir/,dir/,
30294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30295 at_status=$? at_failed=false
30297 at_fn_diff_devnull "$at_stderr" || at_failed=:
30298 echo >>"$at_stdout"; $as_echo "dir/
30301 dir/file link to dir/file
30302 dir/symlink -> file
30303 dir/symlink link to dir/symlink
30308 dir/FOO link to dir/FOO
30310 $at_diff - "$at_stdout" || at_failed=:
30311 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
30312 $at_failed && at_fn_log_failure
30316 $as_echo "$at_srcdir/link04.at:32:
30319 TEST_TAR_FORMAT=posix
30320 export TEST_TAR_FORMAT
30321 TAR_OPTIONS=\"-H posix\"
30326 echo TEST > dir/file
30327 ln -s file dir/symlink || exit 77
30329 tar cf archive dir dir
30330 tar tvf archive | sed '
30331 s,.*[0-9] dir/,dir/,
30336 tar cfl archive dir dir
30340 tar chf archive dir
30341 tar tvf archive | sed '
30342 s,.*[0-9] dir/,dir/,
30347 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
30351 TEST_TAR_FORMAT=posix
30352 export TEST_TAR_FORMAT
30353 TAR_OPTIONS="-H posix"
30358 echo TEST > dir/file
30359 ln -s file dir/symlink || exit 77
30361 tar cf archive dir dir
30362 tar tvf archive | sed '
30363 s,.*[0-9] dir/,dir/,
30368 tar cfl archive dir dir
30372 tar chf archive dir
30373 tar tvf archive | sed '
30374 s,.*[0-9] dir/,dir/,
30379 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30380 at_status=$? at_failed=false
30382 at_fn_diff_devnull "$at_stderr" || at_failed=:
30383 echo >>"$at_stdout"; $as_echo "dir/
30386 dir/file link to dir/file
30387 dir/symlink -> file
30388 dir/symlink link to dir/symlink
30393 dir/FOO link to dir/FOO
30395 $at_diff - "$at_stdout" || at_failed=:
30396 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
30397 $at_failed && at_fn_log_failure
30401 $as_echo "$at_srcdir/link04.at:32:
30404 TEST_TAR_FORMAT=gnu
30405 export TEST_TAR_FORMAT
30406 TAR_OPTIONS=\"-H gnu\"
30411 echo TEST > dir/file
30412 ln -s file dir/symlink || exit 77
30414 tar cf archive dir dir
30415 tar tvf archive | sed '
30416 s,.*[0-9] dir/,dir/,
30421 tar cfl archive dir dir
30425 tar chf archive dir
30426 tar tvf archive | sed '
30427 s,.*[0-9] dir/,dir/,
30432 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
30436 TEST_TAR_FORMAT=gnu
30437 export TEST_TAR_FORMAT
30438 TAR_OPTIONS="-H gnu"
30443 echo TEST > dir/file
30444 ln -s file dir/symlink || exit 77
30446 tar cf archive dir dir
30447 tar tvf archive | sed '
30448 s,.*[0-9] dir/,dir/,
30453 tar cfl archive dir dir
30457 tar chf archive dir
30458 tar tvf archive | sed '
30459 s,.*[0-9] dir/,dir/,
30464 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30465 at_status=$? at_failed=false
30467 at_fn_diff_devnull "$at_stderr" || at_failed=:
30468 echo >>"$at_stdout"; $as_echo "dir/
30471 dir/file link to dir/file
30472 dir/symlink -> file
30473 dir/symlink link to dir/symlink
30478 dir/FOO link to dir/FOO
30480 $at_diff - "$at_stdout" || at_failed=:
30481 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
30482 $at_failed && at_fn_log_failure
30489 $at_times_p && times >"$at_times_file"
30490 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30491 read at_status <"$at_status_file"
30494 at_fn_group_banner 119 'longv7.at:25' \
30495 "long names in V7 archives" " " 16
30497 test -f $XFAILFILE && at_xfail=yes
30499 $as_echo "119. $at_setup_line: testing $at_desc ..."
30510 $as_echo "$at_srcdir/longv7.at:31:
30514 export TEST_TAR_FORMAT
30515 TAR_OPTIONS=\"-H v7\"
30519 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
30520 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
30522 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
30526 at_fn_check_prepare_notrace 'an embedded newline' "longv7.at:31"
30531 export TEST_TAR_FORMAT
30532 TAR_OPTIONS="-H v7"
30536 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
30537 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
30539 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
30543 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30544 at_status=$? at_failed=false
30546 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
30547 tar: Exiting with failure status due to previous errors
30549 $at_diff - "$at_stderr" || at_failed=:
30550 echo >>"$at_stdout"; $as_echo "separator
30551 this_is_a_very_long_name_for_a_directory_which_causes_problems/
30553 $at_diff - "$at_stdout" || at_failed=:
30554 at_fn_check_status 0 $at_status "$at_srcdir/longv7.at:31"
30555 $at_failed && at_fn_log_failure
30564 $at_times_p && times >"$at_times_file"
30565 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30566 read at_status <"$at_status_file"
30569 at_fn_group_banner 120 'long01.at:28' \
30570 "long file names divisible by block size" " " 16
30572 test -f $XFAILFILE && at_xfail=yes
30574 $as_echo "120. $at_setup_line: testing $at_desc ..."
30586 $as_echo "$at_srcdir/long01.at:36:
30589 TEST_TAR_FORMAT=gnu
30590 export TEST_TAR_FORMAT
30591 TAR_OPTIONS=\"-H gnu\"
30596 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
30597 echo test > endfile
30599 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
30601 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
30605 TEST_TAR_FORMAT=gnu
30606 export TEST_TAR_FORMAT
30607 TAR_OPTIONS="-H gnu"
30612 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
30613 echo test > endfile
30615 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
30617 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30618 at_status=$? at_failed=false
30620 at_fn_diff_devnull "$at_stderr" || at_failed=:
30621 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
30624 $at_diff - "$at_stdout" || at_failed=:
30625 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
30626 $at_failed && at_fn_log_failure
30630 $as_echo "$at_srcdir/long01.at:36:
30633 TEST_TAR_FORMAT=oldgnu
30634 export TEST_TAR_FORMAT
30635 TAR_OPTIONS=\"-H oldgnu\"
30640 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
30641 echo test > endfile
30643 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
30645 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
30649 TEST_TAR_FORMAT=oldgnu
30650 export TEST_TAR_FORMAT
30651 TAR_OPTIONS="-H oldgnu"
30656 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
30657 echo test > endfile
30659 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
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 "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
30668 $at_diff - "$at_stdout" || at_failed=:
30669 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
30670 $at_failed && at_fn_log_failure
30679 $at_times_p && times >"$at_times_file"
30680 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30681 read at_status <"$at_status_file"
30684 at_fn_group_banner 121 'lustar01.at:21' \
30685 "ustar: unsplittable file name" " " 16
30687 test -f $XFAILFILE && at_xfail=yes
30689 $as_echo "121. $at_setup_line: testing $at_desc ..."
30699 $as_echo "$at_srcdir/lustar01.at:27:
30702 TEST_TAR_FORMAT=ustar
30703 export TEST_TAR_FORMAT
30704 TAR_OPTIONS=\"-H ustar\"
30708 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
30709 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
30711 at_fn_check_prepare_notrace 'an embedded newline' "lustar01.at:27"
30715 TEST_TAR_FORMAT=ustar
30716 export TEST_TAR_FORMAT
30717 TAR_OPTIONS="-H ustar"
30721 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
30722 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
30724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30725 at_status=$? at_failed=false
30727 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
30728 tar: Exiting with failure status due to previous errors
30730 $at_diff - "$at_stderr" || at_failed=:
30731 at_fn_diff_devnull "$at_stdout" || at_failed=:
30732 at_fn_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
30733 $at_failed && at_fn_log_failure
30741 $at_times_p && times >"$at_times_file"
30742 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30743 read at_status <"$at_status_file"
30746 at_fn_group_banner 122 'lustar02.at:21' \
30747 "ustar: unsplittable path name" " " 16
30749 test -f $XFAILFILE && at_xfail=yes
30751 $as_echo "122. $at_setup_line: testing $at_desc ..."
30765 $as_echo "$at_srcdir/lustar02.at:32:
30768 TEST_TAR_FORMAT=ustar
30769 export TEST_TAR_FORMAT
30770 TAR_OPTIONS=\"-H ustar\"
30775 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
30776 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
30778 at_fn_check_prepare_notrace 'an embedded newline' "lustar02.at:32"
30782 TEST_TAR_FORMAT=ustar
30783 export TEST_TAR_FORMAT
30784 TAR_OPTIONS="-H ustar"
30789 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
30790 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
30792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30793 at_status=$? at_failed=false
30795 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
30796 tar: Exiting with failure status due to previous errors
30798 $at_diff - "$at_stderr" || at_failed=:
30799 at_fn_diff_devnull "$at_stdout" || at_failed=:
30800 at_fn_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
30801 $at_failed && at_fn_log_failure
30812 $at_times_p && times >"$at_times_file"
30813 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30814 read at_status <"$at_status_file"
30817 at_fn_group_banner 123 'lustar03.at:21' \
30818 "ustar: splitting long names" " " 16
30820 test -f $XFAILFILE && at_xfail=yes
30822 $as_echo "123. $at_setup_line: testing $at_desc ..."
30834 $as_echo "$at_srcdir/lustar03.at:29:
30837 TEST_TAR_FORMAT=ustar
30838 export TEST_TAR_FORMAT
30839 TAR_OPTIONS=\"-H ustar\"
30844 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
30845 echo \"Create archive\"
30846 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
30847 echo \"List archive\"
30849 at_fn_check_prepare_notrace 'an embedded newline' "lustar03.at:29"
30853 TEST_TAR_FORMAT=ustar
30854 export TEST_TAR_FORMAT
30855 TAR_OPTIONS="-H ustar"
30860 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
30861 echo "Create archive"
30862 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
30863 echo "List archive"
30865 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30866 at_status=$? at_failed=false
30868 at_fn_diff_devnull "$at_stderr" || at_failed=:
30869 echo >>"$at_stdout"; $as_echo "Create archive
30871 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/
30872 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
30874 $at_diff - "$at_stdout" || at_failed=:
30875 at_fn_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
30876 $at_failed && at_fn_log_failure
30885 $at_times_p && times >"$at_times_file"
30886 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30887 read at_status <"$at_status_file"
30890 at_fn_group_banner 124 'old.at:23' \
30891 "old archives" " " 16
30894 $as_echo "124. $at_setup_line: testing $at_desc ..."
30901 $as_echo "$at_srcdir/old.at:27:
30903 tar cfvo archive directory || exit 1
30906 at_fn_check_prepare_notrace 'an embedded newline' "old.at:27"
30909 tar cfvo archive directory || exit 1
30912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30913 at_status=$? at_failed=false
30915 at_fn_diff_devnull "$at_stderr" || at_failed=:
30916 echo >>"$at_stdout"; $as_echo "directory/
30919 $at_diff - "$at_stdout" || at_failed=:
30920 at_fn_check_status 0 $at_status "$at_srcdir/old.at:27"
30921 $at_failed && at_fn_log_failure
30926 $at_times_p && times >"$at_times_file"
30927 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30928 read at_status <"$at_status_file"
30931 at_fn_group_banner 125 'time01.at:20' \
30932 "time: tricky time stamps" " " 16
30934 test -f $XFAILFILE && at_xfail=yes
30936 $as_echo "125. $at_setup_line: testing $at_desc ..."
30944 $as_echo "$at_srcdir/time01.at:23:
30947 TEST_TAR_FORMAT=pax
30948 export TEST_TAR_FORMAT
30949 TAR_OPTIONS=\"-H pax\"
30956 # Test files with time stamps that are near common sources of error,
30957 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
30958 # Use GNU-style @ notation for very large time stamps, since they
30959 # typically don't render into years correctly due to int overflow.
30961 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \\
30962 0000-01-01T00:00:00 0000-01-01T00:00:01 \\
30963 0000-01-02T00:00:00 \\
30964 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \\
30965 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \\
30966 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \\
30967 1901-12-14T20:45:51 \\
30968 1969-12-31T23:59:58 1969-12-31T23:59:59 \\
30969 1970-01-01T00:00:00 1970-01-01T00:00:01 \\
30970 2038-01-18T03:14:07 \\
30971 2038-01-19T03:14:07 2038-01-19T03:14:08 \\
30972 2106-02-07T06:28:15 2106-02-07T06:28:16 \\
30973 2242-03-16T12:56:31 2242-03-16T12:56:32 \\
30974 9999-12-31T23:59:58 9999-12-31T23:59:59 \\
30975 @9223372036854775807 @9223372036854775808
30977 # Skip a time stamp \$s if it's out of range for this platform,
30978 # of if it uses a notation that this platform does not recognize.
30979 touch -d \$s dir/f\$s >/dev/null 2>&1 || continue
30981 # Likewise for \$s.1. If \$s is the most negative time stamp and
30982 # time stamps are signed, then \$s.1 is out of range.
30983 touch -d \$s.1 dir/f\$s.\$ns >/dev/null 2>&1 || continue
30985 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \\
30986 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
30988 touch -d \$s.\$frac dir/f\$s.\$frac
30992 tar -c -f archive.tar dir
30993 tar -d -f archive.tar dir
30995 at_fn_check_prepare_notrace 'an embedded newline' "time01.at:23"
30999 TEST_TAR_FORMAT=pax
31000 export TEST_TAR_FORMAT
31001 TAR_OPTIONS="-H pax"
31008 # Test files with time stamps that are near common sources of error,
31009 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
31010 # Use GNU-style @ notation for very large time stamps, since they
31011 # typically don't render into years correctly due to int overflow.
31013 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \
31014 0000-01-01T00:00:00 0000-01-01T00:00:01 \
31015 0000-01-02T00:00:00 \
31016 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \
31017 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \
31018 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \
31019 1901-12-14T20:45:51 \
31020 1969-12-31T23:59:58 1969-12-31T23:59:59 \
31021 1970-01-01T00:00:00 1970-01-01T00:00:01 \
31022 2038-01-18T03:14:07 \
31023 2038-01-19T03:14:07 2038-01-19T03:14:08 \
31024 2106-02-07T06:28:15 2106-02-07T06:28:16 \
31025 2242-03-16T12:56:31 2242-03-16T12:56:32 \
31026 9999-12-31T23:59:58 9999-12-31T23:59:59 \
31027 @9223372036854775807 @9223372036854775808
31029 # Skip a time stamp $s if it's out of range for this platform,
31030 # of if it uses a notation that this platform does not recognize.
31031 touch -d $s dir/f$s >/dev/null 2>&1 || continue
31033 # Likewise for $s.1. If $s is the most negative time stamp and
31034 # time stamps are signed, then $s.1 is out of range.
31035 touch -d $s.1 dir/f$s.$ns >/dev/null 2>&1 || continue
31037 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \
31038 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
31040 touch -d $s.$frac dir/f$s.$frac
31044 tar -c -f archive.tar dir
31045 tar -d -f archive.tar dir
31047 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31048 at_status=$? at_failed=false
31050 at_fn_diff_devnull "$at_stderr" || at_failed=:
31051 at_fn_diff_devnull "$at_stdout" || at_failed=:
31052 at_fn_check_status 0 $at_status "$at_srcdir/time01.at:23"
31053 $at_failed && at_fn_log_failure
31060 $at_times_p && times >"$at_times_file"
31061 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31062 read at_status <"$at_status_file"
31065 at_fn_group_banner 126 'time02.at:20' \
31066 "time: clamping mtime" " " 16
31068 test -f $XFAILFILE && at_xfail=yes
31070 $as_echo "126. $at_setup_line: testing $at_desc ..."
31078 $as_echo "$at_srcdir/time02.at:23:
31081 TEST_TAR_FORMAT=pax
31082 export TEST_TAR_FORMAT
31083 TAR_OPTIONS=\"-H pax\"
31088 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31093 touch -d 2015-12-01T00:00:00 dir/a >/dev/null 2>&1 || exit 77
31094 touch -d 2016-01-01T00:00:00 dir/b >/dev/null 2>&1 || exit 77
31095 touch -d 2016-02-01T00:00:00 dir/c >/dev/null 2>&1 || exit 77
31096 touch -d 2038-01-01T00:00:00 dir/d >/dev/null 2>&1 || exit 77
31098 tar -c --mtime 2016-01-15T00:00:00 --clamp-mtime -f archive.tar dir
31099 tar -d -f archive.tar dir|sort
31101 at_fn_check_prepare_notrace 'a `...` command substitution' "time02.at:23"
31105 TEST_TAR_FORMAT=pax
31106 export TEST_TAR_FORMAT
31107 TAR_OPTIONS="-H pax"
31112 test -z "`sort < /dev/null 2>&1`" || exit 77
31117 touch -d 2015-12-01T00:00:00 dir/a >/dev/null 2>&1 || exit 77
31118 touch -d 2016-01-01T00:00:00 dir/b >/dev/null 2>&1 || exit 77
31119 touch -d 2016-02-01T00:00:00 dir/c >/dev/null 2>&1 || exit 77
31120 touch -d 2038-01-01T00:00:00 dir/d >/dev/null 2>&1 || exit 77
31122 tar -c --mtime 2016-01-15T00:00:00 --clamp-mtime -f archive.tar dir
31123 tar -d -f archive.tar dir|sort
31125 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31126 at_status=$? at_failed=false
31128 at_fn_diff_devnull "$at_stderr" || at_failed=:
31129 echo >>"$at_stdout"; $as_echo "dir/c: Mod time differs
31130 dir/d: Mod time differs
31132 $at_diff - "$at_stdout" || at_failed=:
31133 at_fn_check_status 0 $at_status "$at_srcdir/time02.at:23"
31134 $at_failed && at_fn_log_failure
31141 $at_times_p && times >"$at_times_file"
31142 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31143 read at_status <"$at_status_file"
31146 at_fn_group_banner 127 'multiv01.at:24' \
31147 "multivolume dumps from pipes" " " 17
31149 test -f $XFAILFILE && at_xfail=yes
31151 $as_echo "127. $at_setup_line: testing $at_desc ..."
31156 # Fixme: should be configurable
31157 # TRUSS=truss -o /tmp/tr
31163 $as_echo "$at_srcdir/multiv01.at:31:
31166 TEST_TAR_FORMAT=gnu
31167 export TEST_TAR_FORMAT
31168 TAR_OPTIONS=\"-H gnu\"
31173 genfile --length 7168 --file file1
31175 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
31176 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
31177 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31178 for count in 2 3 4 5 6 7 8 ; do
31179 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31183 if test \$TEST_TAR_FORMAT = pax; then
31189 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
31190 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31192 mkdir extract-dir-pipe
31193 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31194 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
31195 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
31196 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
31198 cmp file1 extract-dir-pipe/file1
31199 cmp file2 extract-dir-pipe/file2
31201 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
31205 TEST_TAR_FORMAT=gnu
31206 export TEST_TAR_FORMAT
31207 TAR_OPTIONS="-H gnu"
31212 genfile --length 7168 --file file1
31214 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
31215 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
31216 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31217 for count in 2 3 4 5 6 7 8 ; do
31218 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31222 if test $TEST_TAR_FORMAT = pax; then
31228 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
31229 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31231 mkdir extract-dir-pipe
31232 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31233 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
31234 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
31235 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
31237 cmp file1 extract-dir-pipe/file1
31238 cmp file2 extract-dir-pipe/file2
31240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31241 at_status=$? at_failed=false
31243 at_fn_diff_devnull "$at_stderr" || at_failed=:
31244 at_fn_diff_devnull "$at_stdout" || at_failed=:
31245 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
31246 $at_failed && at_fn_log_failure
31250 $as_echo "$at_srcdir/multiv01.at:31:
31253 TEST_TAR_FORMAT=oldgnu
31254 export TEST_TAR_FORMAT
31255 TAR_OPTIONS=\"-H oldgnu\"
31260 genfile --length 7168 --file file1
31262 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
31263 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
31264 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31265 for count in 2 3 4 5 6 7 8 ; do
31266 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31270 if test \$TEST_TAR_FORMAT = pax; then
31276 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
31277 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31279 mkdir extract-dir-pipe
31280 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31281 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
31282 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
31283 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
31285 cmp file1 extract-dir-pipe/file1
31286 cmp file2 extract-dir-pipe/file2
31288 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
31292 TEST_TAR_FORMAT=oldgnu
31293 export TEST_TAR_FORMAT
31294 TAR_OPTIONS="-H oldgnu"
31299 genfile --length 7168 --file file1
31301 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
31302 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
31303 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31304 for count in 2 3 4 5 6 7 8 ; do
31305 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31309 if test $TEST_TAR_FORMAT = pax; then
31315 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
31316 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31318 mkdir extract-dir-pipe
31319 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31320 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
31321 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
31322 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
31324 cmp file1 extract-dir-pipe/file1
31325 cmp file2 extract-dir-pipe/file2
31327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31328 at_status=$? at_failed=false
31330 at_fn_diff_devnull "$at_stderr" || at_failed=:
31331 at_fn_diff_devnull "$at_stdout" || at_failed=:
31332 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
31333 $at_failed && at_fn_log_failure
31337 $as_echo "$at_srcdir/multiv01.at:31:
31340 TEST_TAR_FORMAT=pax
31341 export TEST_TAR_FORMAT
31342 TAR_OPTIONS=\"-H pax\"
31347 genfile --length 7168 --file file1
31349 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
31350 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
31351 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31352 for count in 2 3 4 5 6 7 8 ; do
31353 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
31357 if test \$TEST_TAR_FORMAT = pax; then
31363 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
31364 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31366 mkdir extract-dir-pipe
31367 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31368 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
31369 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
31370 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
31372 cmp file1 extract-dir-pipe/file1
31373 cmp file2 extract-dir-pipe/file2
31375 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
31379 TEST_TAR_FORMAT=pax
31380 export TEST_TAR_FORMAT
31381 TAR_OPTIONS="-H pax"
31386 genfile --length 7168 --file file1
31388 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
31389 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
31390 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31391 for count in 2 3 4 5 6 7 8 ; do
31392 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
31396 if test $TEST_TAR_FORMAT = pax; then
31402 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
31403 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
31405 mkdir extract-dir-pipe
31406 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
31407 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
31408 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
31409 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
31411 cmp file1 extract-dir-pipe/file1
31412 cmp file2 extract-dir-pipe/file2
31414 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31415 at_status=$? at_failed=false
31417 at_fn_diff_devnull "$at_stderr" || at_failed=:
31418 at_fn_diff_devnull "$at_stdout" || at_failed=:
31419 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
31420 $at_failed && at_fn_log_failure
31427 $at_times_p && times >"$at_times_file"
31428 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31429 read at_status <"$at_status_file"
31432 at_fn_group_banner 128 'multiv02.at:29' \
31433 "skipping a straddling member" " " 17
31435 test -f $XFAILFILE && at_xfail=yes
31437 $as_echo "128. $at_setup_line: testing $at_desc ..."
31445 $as_echo "$at_srcdir/multiv02.at:32:
31448 TEST_TAR_FORMAT=gnu
31449 export TEST_TAR_FORMAT
31450 TAR_OPTIONS=\"-H gnu\"
31454 genfile --length 10240 --file en
31455 genfile --length 20000 --file to
31456 genfile --length 20000 --file tre
31457 genfile --length 10240 --file fire
31461 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31463 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
31465 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:32"
31469 TEST_TAR_FORMAT=gnu
31470 export TEST_TAR_FORMAT
31471 TAR_OPTIONS="-H gnu"
31475 genfile --length 10240 --file en
31476 genfile --length 20000 --file to
31477 genfile --length 20000 --file tre
31478 genfile --length 10240 --file fire
31482 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31484 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
31486 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31487 at_status=$? at_failed=false
31489 at_fn_diff_devnull "$at_stderr" || at_failed=:
31490 echo >>"$at_stdout"; $as_echo "separator
31493 $at_diff - "$at_stdout" || at_failed=:
31494 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:32"
31495 $at_failed && at_fn_log_failure
31499 $as_echo "$at_srcdir/multiv02.at:32:
31502 TEST_TAR_FORMAT=oldgnu
31503 export TEST_TAR_FORMAT
31504 TAR_OPTIONS=\"-H oldgnu\"
31508 genfile --length 10240 --file en
31509 genfile --length 20000 --file to
31510 genfile --length 20000 --file tre
31511 genfile --length 10240 --file fire
31515 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31517 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
31519 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:32"
31523 TEST_TAR_FORMAT=oldgnu
31524 export TEST_TAR_FORMAT
31525 TAR_OPTIONS="-H oldgnu"
31529 genfile --length 10240 --file en
31530 genfile --length 20000 --file to
31531 genfile --length 20000 --file tre
31532 genfile --length 10240 --file fire
31536 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31538 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
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 "separator
31547 $at_diff - "$at_stdout" || at_failed=:
31548 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:32"
31549 $at_failed && at_fn_log_failure
31553 $as_echo "$at_srcdir/multiv02.at:32:
31556 TEST_TAR_FORMAT=pax
31557 export TEST_TAR_FORMAT
31558 TAR_OPTIONS=\"-H pax\"
31562 genfile --length 10240 --file en
31563 genfile --length 20000 --file to
31564 genfile --length 20000 --file tre
31565 genfile --length 10240 --file fire
31569 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31571 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
31573 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:32"
31577 TEST_TAR_FORMAT=pax
31578 export TEST_TAR_FORMAT
31579 TAR_OPTIONS="-H pax"
31583 genfile --length 10240 --file en
31584 genfile --length 20000 --file to
31585 genfile --length 20000 --file tre
31586 genfile --length 10240 --file fire
31590 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
31592 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
31594 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31595 at_status=$? at_failed=false
31597 at_fn_diff_devnull "$at_stderr" || at_failed=:
31598 echo >>"$at_stdout"; $as_echo "separator
31601 $at_diff - "$at_stdout" || at_failed=:
31602 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:32"
31603 $at_failed && at_fn_log_failure
31610 $at_times_p && times >"$at_times_file"
31611 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31612 read at_status <"$at_status_file"
31615 at_fn_group_banner 129 'multiv03.at:30' \
31616 "MV archive & long filenames" " " 17
31618 test -f $XFAILFILE && at_xfail=yes
31620 $as_echo "129. $at_setup_line: testing $at_desc ..."
31628 $as_echo "$at_srcdir/multiv03.at:33:
31631 TEST_TAR_FORMAT=gnu
31632 export TEST_TAR_FORMAT
31633 TAR_OPTIONS=\"-H gnu\"
31637 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
31638 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
31640 cat > ../experr <<EOF
31641 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
31642 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
31645 cat > ../expout <<EOF
31651 genfile --length 15360 --file \$AFILE
31655 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
31656 tar -tM -f arch.1 -f arch.2 || exit 1
31660 genfile --length 15360 --file \$BFILE
31661 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
31665 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
31668 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
31672 TEST_TAR_FORMAT=gnu
31673 export TEST_TAR_FORMAT
31674 TAR_OPTIONS="-H gnu"
31678 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
31679 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
31681 cat > ../experr <<EOF
31682 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
31683 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
31686 cat > ../expout <<EOF
31692 genfile --length 15360 --file $AFILE
31696 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
31697 tar -tM -f arch.1 -f arch.2 || exit 1
31701 genfile --length 15360 --file $BFILE
31702 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
31706 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
31709 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31710 at_status=$? at_failed=false
31712 $at_diff experr "$at_stderr" || at_failed=:
31713 $at_diff expout "$at_stdout" || at_failed=:
31714 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
31715 $at_failed && at_fn_log_failure
31719 $as_echo "$at_srcdir/multiv03.at:33:
31722 TEST_TAR_FORMAT=oldgnu
31723 export TEST_TAR_FORMAT
31724 TAR_OPTIONS=\"-H oldgnu\"
31728 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
31729 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
31731 cat > ../experr <<EOF
31732 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
31733 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
31736 cat > ../expout <<EOF
31742 genfile --length 15360 --file \$AFILE
31746 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
31747 tar -tM -f arch.1 -f arch.2 || exit 1
31751 genfile --length 15360 --file \$BFILE
31752 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
31756 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
31759 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
31763 TEST_TAR_FORMAT=oldgnu
31764 export TEST_TAR_FORMAT
31765 TAR_OPTIONS="-H oldgnu"
31769 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
31770 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
31772 cat > ../experr <<EOF
31773 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
31774 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
31777 cat > ../expout <<EOF
31783 genfile --length 15360 --file $AFILE
31787 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
31788 tar -tM -f arch.1 -f arch.2 || exit 1
31792 genfile --length 15360 --file $BFILE
31793 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
31797 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
31800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31801 at_status=$? at_failed=false
31803 $at_diff experr "$at_stderr" || at_failed=:
31804 $at_diff expout "$at_stdout" || at_failed=:
31805 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
31806 $at_failed && at_fn_log_failure
31813 $at_times_p && times >"$at_times_file"
31814 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31815 read at_status <"$at_status_file"
31818 at_fn_group_banner 130 'multiv04.at:36' \
31819 "split directory members in a MV archive" " " 17
31821 test -f $XFAILFILE && at_xfail=yes
31823 $as_echo "130. $at_setup_line: testing $at_desc ..."
31831 $as_echo "$at_srcdir/multiv04.at:39:
31834 TEST_TAR_FORMAT=gnu
31835 export TEST_TAR_FORMAT
31836 TAR_OPTIONS=\"-H gnu\"
31842 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
31848 tar --listed-incremental=list -c -f archive.a directory
31852 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31856 tar -MRt -f arc.1 -f arc.2)"
31857 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
31861 TEST_TAR_FORMAT=gnu
31862 export TEST_TAR_FORMAT
31863 TAR_OPTIONS="-H gnu"
31869 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
31875 tar --listed-incremental=list -c -f archive.a directory
31879 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31883 tar -MRt -f arc.1 -f arc.2)
31884 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31885 at_status=$? at_failed=false
31887 at_fn_diff_devnull "$at_stderr" || at_failed=:
31888 echo >>"$at_stdout"; $as_echo "directory/
31890 block 0: directory/
31891 block 35: ** Block of NULs **
31893 $at_diff - "$at_stdout" || at_failed=:
31894 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
31895 $at_failed && at_fn_log_failure
31899 $as_echo "$at_srcdir/multiv04.at:39:
31902 TEST_TAR_FORMAT=oldgnu
31903 export TEST_TAR_FORMAT
31904 TAR_OPTIONS=\"-H oldgnu\"
31910 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
31916 tar --listed-incremental=list -c -f archive.a directory
31920 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31924 tar -MRt -f arc.1 -f arc.2)"
31925 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
31929 TEST_TAR_FORMAT=oldgnu
31930 export TEST_TAR_FORMAT
31931 TAR_OPTIONS="-H oldgnu"
31937 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
31943 tar --listed-incremental=list -c -f archive.a directory
31947 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31951 tar -MRt -f arc.1 -f arc.2)
31952 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31953 at_status=$? at_failed=false
31955 at_fn_diff_devnull "$at_stderr" || at_failed=:
31956 echo >>"$at_stdout"; $as_echo "directory/
31958 block 0: directory/
31959 block 35: ** Block of NULs **
31961 $at_diff - "$at_stdout" || at_failed=:
31962 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
31963 $at_failed && at_fn_log_failure
31970 $at_times_p && times >"$at_times_file"
31971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31972 read at_status <"$at_status_file"
31975 at_fn_group_banner 131 'multiv05.at:26' \
31976 "Restoring after an out of sync volume" " " 17
31978 test -f $XFAILFILE && at_xfail=yes
31980 $as_echo "131. $at_setup_line: testing $at_desc ..."
31989 $as_echo "$at_srcdir/multiv05.at:30:
31992 TEST_TAR_FORMAT=gnu
31993 export TEST_TAR_FORMAT
31994 TAR_OPTIONS=\"-H gnu\"
32000 genfile --length 250k --file jeden
32001 genfile --length 250k --file dwa
32002 genfile --length 250k --file trzy
32003 genfile --length 250k --file cztery
32004 genfile --length 250k --file piec
32005 genfile --length 250k --file szesc
32008 echo Creating archive
32009 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
32012 mv jeden dwa trzy cztery piec szesc bak
32013 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
32015 cmp bak/jeden jeden || exit 1
32017 cmp bak/dwa dwa || exit 1
32019 cmp bak/trzy trzy || exit 1
32020 echo Diffing cztery
32021 cmp bak/cztery cztery || exit 1
32023 cmp bak/piec piec || exit 1
32025 cmp bak/szesc szesc || exit 1
32027 at_fn_check_prepare_notrace 'an embedded newline' "multiv05.at:30"
32031 TEST_TAR_FORMAT=gnu
32032 export TEST_TAR_FORMAT
32033 TAR_OPTIONS="-H gnu"
32039 genfile --length 250k --file jeden
32040 genfile --length 250k --file dwa
32041 genfile --length 250k --file trzy
32042 genfile --length 250k --file cztery
32043 genfile --length 250k --file piec
32044 genfile --length 250k --file szesc
32047 echo Creating archive
32048 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
32051 mv jeden dwa trzy cztery piec szesc bak
32052 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
32054 cmp bak/jeden jeden || exit 1
32056 cmp bak/dwa dwa || exit 1
32058 cmp bak/trzy trzy || exit 1
32059 echo Diffing cztery
32060 cmp bak/cztery cztery || exit 1
32062 cmp bak/piec piec || exit 1
32064 cmp bak/szesc szesc || exit 1
32066 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32067 at_status=$? at_failed=false
32069 echo >>"$at_stderr"; $as_echo "tar: 'trzy' is not continued on this volume
32071 $at_diff - "$at_stderr" || at_failed=:
32072 echo >>"$at_stdout"; $as_echo "Creating archive
32087 $at_diff - "$at_stdout" || at_failed=:
32088 at_fn_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
32089 $at_failed && at_fn_log_failure
32097 $at_times_p && times >"$at_times_file"
32098 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32099 read at_status <"$at_status_file"
32102 at_fn_group_banner 132 'multiv06.at:27' \
32103 "Multivolumes with L=record_size" " " 17
32105 test -f $XFAILFILE && at_xfail=yes
32107 $as_echo "132. $at_setup_line: testing $at_desc ..."
32115 $as_echo "$at_srcdir/multiv06.at:30:
32118 TEST_TAR_FORMAT=gnu
32119 export TEST_TAR_FORMAT
32120 TAR_OPTIONS=\"-H gnu\"
32125 decho Creating file
32126 genfile --length 20139 --file file
32127 decho Creating archive
32128 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
32129 decho Testing archive
32130 tar -t -M -farc.1 -farc.2 -farc.3)"
32131 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
32135 TEST_TAR_FORMAT=gnu
32136 export TEST_TAR_FORMAT
32137 TAR_OPTIONS="-H gnu"
32142 decho Creating file
32143 genfile --length 20139 --file file
32144 decho Creating archive
32145 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
32146 decho Testing archive
32147 tar -t -M -farc.1 -farc.2 -farc.3)
32148 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32149 at_status=$? at_failed=false
32151 echo >>"$at_stderr"; $as_echo "Creating file
32155 $at_diff - "$at_stderr" || at_failed=:
32156 echo >>"$at_stdout"; $as_echo "Creating file
32161 $at_diff - "$at_stdout" || at_failed=:
32162 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
32163 $at_failed && at_fn_log_failure
32167 $as_echo "$at_srcdir/multiv06.at:30:
32170 TEST_TAR_FORMAT=pax
32171 export TEST_TAR_FORMAT
32172 TAR_OPTIONS=\"-H pax\"
32177 decho Creating file
32178 genfile --length 20139 --file file
32179 decho Creating archive
32180 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
32181 decho Testing archive
32182 tar -t -M -farc.1 -farc.2 -farc.3)"
32183 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
32187 TEST_TAR_FORMAT=pax
32188 export TEST_TAR_FORMAT
32189 TAR_OPTIONS="-H pax"
32194 decho Creating file
32195 genfile --length 20139 --file file
32196 decho Creating archive
32197 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
32198 decho Testing archive
32199 tar -t -M -farc.1 -farc.2 -farc.3)
32200 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32201 at_status=$? at_failed=false
32203 echo >>"$at_stderr"; $as_echo "Creating file
32207 $at_diff - "$at_stderr" || at_failed=:
32208 echo >>"$at_stdout"; $as_echo "Creating file
32213 $at_diff - "$at_stdout" || at_failed=:
32214 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
32215 $at_failed && at_fn_log_failure
32222 $at_times_p && times >"$at_times_file"
32223 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32224 read at_status <"$at_status_file"
32227 at_fn_group_banner 133 'multiv07.at:28' \
32228 "volumes split at an extended header" " " 17
32230 test -f $XFAILFILE && at_xfail=yes
32232 $as_echo "133. $at_setup_line: testing $at_desc ..."
32238 $as_echo "$at_srcdir/multiv07.at:31:
32241 test -z \"\$TEST_DATA_DIR\" && exit 77
32242 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
32244 test -z \"\$TEST_DATA_DIR\" && exit 77
32245 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
32250 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
32252 at_fn_check_prepare_notrace 'an embedded newline' "multiv07.at:31"
32256 test -z "$TEST_DATA_DIR" && exit 77
32257 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32259 test -z "$TEST_DATA_DIR" && exit 77
32260 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32265 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
32267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32268 at_status=$? at_failed=false
32270 at_fn_diff_devnull "$at_stderr" || at_failed=:
32271 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
32275 $at_diff - "$at_stdout" || at_failed=:
32276 at_fn_check_status 0 $at_status "$at_srcdir/multiv07.at:31"
32277 $at_failed && at_fn_log_failure
32282 $at_times_p && times >"$at_times_file"
32283 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32284 read at_status <"$at_status_file"
32287 at_fn_group_banner 134 'multiv08.at:25' \
32288 "multivolume header creation" " " 17
32290 test -f $XFAILFILE && at_xfail=yes
32292 $as_echo "134. $at_setup_line: testing $at_desc ..."
32300 $as_echo "$at_srcdir/multiv08.at:28:
32303 TEST_TAR_FORMAT=gnu
32304 export TEST_TAR_FORMAT
32305 TAR_OPTIONS=\"-H gnu\"
32309 genfile --length 9472 --file a
32310 genfile --length 9984 --file b
32312 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
32314 tar -tMR -f A.tar -f B.tar -f C.tar
32316 at_fn_check_prepare_notrace 'an embedded newline' "multiv08.at:28"
32320 TEST_TAR_FORMAT=gnu
32321 export TEST_TAR_FORMAT
32322 TAR_OPTIONS="-H gnu"
32326 genfile --length 9472 --file a
32327 genfile --length 9984 --file b
32329 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
32331 tar -tMR -f A.tar -f B.tar -f C.tar
32333 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32334 at_status=$? at_failed=false
32336 echo >>"$at_stderr"; $as_echo "Creating
32339 $at_diff - "$at_stderr" || at_failed=:
32340 echo >>"$at_stdout"; $as_echo "Creating
32344 block 43: ** Block of NULs **
32346 $at_diff - "$at_stdout" || at_failed=:
32347 at_fn_check_status 0 $at_status "$at_srcdir/multiv08.at:28"
32348 $at_failed && at_fn_log_failure
32355 $at_times_p && times >"$at_times_file"
32356 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32357 read at_status <"$at_status_file"
32360 at_fn_group_banner 135 'multiv09.at:26' \
32361 "bad next volume" " " 17
32363 test -f $XFAILFILE && at_xfail=yes
32365 $as_echo "135. $at_setup_line: testing $at_desc ..."
32370 # filename of length 100 characters
32376 $as_echo "$at_srcdir/multiv09.at:33:
32380 export TEST_TAR_FORMAT
32381 TAR_OPTIONS=\"-H v7\"
32385 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32386 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit \$?
32388 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32393 at_fn_check_prepare_notrace 'an embedded newline' "multiv09.at:33"
32398 export TEST_TAR_FORMAT
32399 TAR_OPTIONS="-H v7"
32403 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32404 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit $?
32406 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32411 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32412 at_status=$? at_failed=false
32414 at_fn_diff_devnull "$at_stderr" || at_failed=:
32415 echo >>"$at_stdout"; $as_echo "created
32417 $at_diff - "$at_stdout" || at_failed=:
32418 at_fn_check_status 2 $at_status "$at_srcdir/multiv09.at:33"
32419 $at_failed && at_fn_log_failure
32423 $as_echo "$at_srcdir/multiv09.at:33:
32426 TEST_TAR_FORMAT=oldgnu
32427 export TEST_TAR_FORMAT
32428 TAR_OPTIONS=\"-H oldgnu\"
32432 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32433 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit \$?
32435 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32440 at_fn_check_prepare_notrace 'an embedded newline' "multiv09.at:33"
32444 TEST_TAR_FORMAT=oldgnu
32445 export TEST_TAR_FORMAT
32446 TAR_OPTIONS="-H oldgnu"
32450 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32451 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit $?
32453 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32458 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32459 at_status=$? at_failed=false
32461 at_fn_diff_devnull "$at_stderr" || at_failed=:
32462 echo >>"$at_stdout"; $as_echo "created
32464 $at_diff - "$at_stdout" || at_failed=:
32465 at_fn_check_status 2 $at_status "$at_srcdir/multiv09.at:33"
32466 $at_failed && at_fn_log_failure
32470 $as_echo "$at_srcdir/multiv09.at:33:
32473 TEST_TAR_FORMAT=ustar
32474 export TEST_TAR_FORMAT
32475 TAR_OPTIONS=\"-H ustar\"
32479 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32480 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit \$?
32482 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32487 at_fn_check_prepare_notrace 'an embedded newline' "multiv09.at:33"
32491 TEST_TAR_FORMAT=ustar
32492 export TEST_TAR_FORMAT
32493 TAR_OPTIONS="-H ustar"
32497 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32498 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit $?
32500 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32505 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32506 at_status=$? at_failed=false
32508 at_fn_diff_devnull "$at_stderr" || at_failed=:
32509 echo >>"$at_stdout"; $as_echo "created
32511 $at_diff - "$at_stdout" || at_failed=:
32512 at_fn_check_status 2 $at_status "$at_srcdir/multiv09.at:33"
32513 $at_failed && at_fn_log_failure
32517 $as_echo "$at_srcdir/multiv09.at:33:
32520 TEST_TAR_FORMAT=posix
32521 export TEST_TAR_FORMAT
32522 TAR_OPTIONS=\"-H posix\"
32526 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32527 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit \$?
32529 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32534 at_fn_check_prepare_notrace 'an embedded newline' "multiv09.at:33"
32538 TEST_TAR_FORMAT=posix
32539 export TEST_TAR_FORMAT
32540 TAR_OPTIONS="-H posix"
32544 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32545 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit $?
32547 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32553 at_status=$? at_failed=false
32555 at_fn_diff_devnull "$at_stderr" || at_failed=:
32556 echo >>"$at_stdout"; $as_echo "created
32558 $at_diff - "$at_stdout" || at_failed=:
32559 at_fn_check_status 2 $at_status "$at_srcdir/multiv09.at:33"
32560 $at_failed && at_fn_log_failure
32564 $as_echo "$at_srcdir/multiv09.at:33:
32567 TEST_TAR_FORMAT=gnu
32568 export TEST_TAR_FORMAT
32569 TAR_OPTIONS=\"-H gnu\"
32573 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32574 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit \$?
32576 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32581 at_fn_check_prepare_notrace 'an embedded newline' "multiv09.at:33"
32585 TEST_TAR_FORMAT=gnu
32586 export TEST_TAR_FORMAT
32587 TAR_OPTIONS="-H gnu"
32591 genfile --length 2000000 --file aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
32592 tar --format=gnu -cM --tape-length 1M -f A.tar -f B.tar aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || exit $?
32594 tar --format=gnu -xM -f A.tar 2>/dev/null <<EOF
32599 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32600 at_status=$? at_failed=false
32602 at_fn_diff_devnull "$at_stderr" || at_failed=:
32603 echo >>"$at_stdout"; $as_echo "created
32605 $at_diff - "$at_stdout" || at_failed=:
32606 at_fn_check_status 2 $at_status "$at_srcdir/multiv09.at:33"
32607 $at_failed && at_fn_log_failure
32614 $at_times_p && times >"$at_times_file"
32615 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32616 read at_status <"$at_status_file"
32619 at_fn_group_banner 136 'owner.at:21' \
32620 "--owner and --group" " " 18
32622 test -f $XFAILFILE && at_xfail=yes
32624 $as_echo "136. $at_setup_line: testing $at_desc ..."
32632 $as_echo "$at_srcdir/owner.at:24:
32635 TEST_TAR_FORMAT=gnu
32636 export TEST_TAR_FORMAT
32637 TAR_OPTIONS=\"-H gnu\"
32645 tar --owner=\"Joe the Plumber:1234\" \\
32646 --group=\"Plumber's Union:5678\" \\
32648 --mode='u=rw,go=r' \\
32652 tar --numeric-owner -tvf arc
32654 at_fn_check_prepare_notrace 'an embedded newline' "owner.at:24"
32658 TEST_TAR_FORMAT=gnu
32659 export TEST_TAR_FORMAT
32660 TAR_OPTIONS="-H gnu"
32668 tar --owner="Joe the Plumber:1234" \
32669 --group="Plumber's Union:5678" \
32671 --mode='u=rw,go=r' \
32675 tar --numeric-owner -tvf arc
32677 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32678 at_status=$? at_failed=false
32680 at_fn_diff_devnull "$at_stderr" || at_failed=:
32681 echo >>"$at_stdout"; $as_echo "-rw-r--r-- Joe the Plumber/Plumber's Union 0 1970-01-01 00:00 a
32682 -rw-r--r-- 1234/5678 0 1970-01-01 00:00 a
32684 $at_diff - "$at_stdout" || at_failed=:
32685 at_fn_check_status 0 $at_status "$at_srcdir/owner.at:24"
32686 $at_failed && at_fn_log_failure
32693 $at_times_p && times >"$at_times_file"
32694 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32695 read at_status <"$at_status_file"
32698 at_fn_group_banner 137 'map.at:21' \
32699 "--owner-map and --group-map" " " 18
32701 test -f $XFAILFILE && at_xfail=yes
32703 $as_echo "137. $at_setup_line: testing $at_desc ..."
32711 $as_echo "$at_srcdir/map.at:24:
32714 TEST_TAR_FORMAT=gnu
32715 export TEST_TAR_FORMAT
32716 TAR_OPTIONS=\"-H gnu\"
32723 set -- \`genfile --stat=uid,gid a\`
32724 cat > uid.map <<EOT
32726 +\$1 \"Joe the Plumber:1234\"
32729 cat > gid.map <<EOT
32730 +\$2 \"Plumber's Union:5678\"
32733 tar --owner-map=uid.map\\
32734 --group-map=gid.map\\
32735 --owner=\"Fallback Owner:4321\" \\
32736 --group=\"Fallback Group:8765\" \\
32738 --mode='u=rw,go=r' \\
32742 tar --numeric-owner -tvf 1.tar
32747 tar --owner-map=uid.map\\
32748 --group-map=gid.map\\
32749 --owner=\"Fallback Owner:4321\" \\
32750 --group=\"Fallback Group:8765\" \\
32752 --mode='u=rw,go=r' \\
32756 tar --numeric-owner -tvf 2.tar
32758 at_fn_check_prepare_notrace 'a `...` command substitution' "map.at:24"
32762 TEST_TAR_FORMAT=gnu
32763 export TEST_TAR_FORMAT
32764 TAR_OPTIONS="-H gnu"
32771 set -- `genfile --stat=uid,gid a`
32772 cat > uid.map <<EOT
32774 +$1 "Joe the Plumber:1234"
32777 cat > gid.map <<EOT
32778 +$2 "Plumber's Union:5678"
32781 tar --owner-map=uid.map\
32782 --group-map=gid.map\
32783 --owner="Fallback Owner:4321" \
32784 --group="Fallback Group:8765" \
32786 --mode='u=rw,go=r' \
32790 tar --numeric-owner -tvf 1.tar
32795 tar --owner-map=uid.map\
32796 --group-map=gid.map\
32797 --owner="Fallback Owner:4321" \
32798 --group="Fallback Group:8765" \
32800 --mode='u=rw,go=r' \
32804 tar --numeric-owner -tvf 2.tar
32806 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32807 at_status=$? at_failed=false
32809 at_fn_diff_devnull "$at_stderr" || at_failed=:
32810 echo >>"$at_stdout"; $as_echo "-rw-r--r-- Joe the Plumber/Plumber's Union 0 1970-01-01 00:00 a
32811 -rw-r--r-- 1234/5678 0 1970-01-01 00:00 a
32812 -rw-r--r-- Fallback Owner/Fallback Group 0 1970-01-01 00:00 a
32813 -rw-r--r-- 4321/8765 0 1970-01-01 00:00 a
32815 $at_diff - "$at_stdout" || at_failed=:
32816 at_fn_check_status 0 $at_status "$at_srcdir/map.at:24"
32817 $at_failed && at_fn_log_failure
32824 $at_times_p && times >"$at_times_file"
32825 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32826 read at_status <"$at_status_file"
32829 at_fn_group_banner 138 'sparse01.at:22' \
32830 "sparse files" " " 19
32832 test -f $XFAILFILE && at_xfail=yes
32834 $as_echo "138. $at_setup_line: testing $at_desc ..."
32842 $as_echo "$at_srcdir/sparse01.at:25:
32845 TEST_TAR_FORMAT=posix
32846 export TEST_TAR_FORMAT
32847 TAR_OPTIONS=\"-H posix\"
32851 genfile --length 1000 -f begin
32852 genfile --length 1000 -f end
32853 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32854 tar -c -f archive --sparse begin sparsefile end || exit 1
32860 tar Cxf directory archive --warning=no-timestamp
32861 genfile --stat=name,size sparsefile
32862 cmp sparsefile directory/sparsefile
32864 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:25"
32868 TEST_TAR_FORMAT=posix
32869 export TEST_TAR_FORMAT
32870 TAR_OPTIONS="-H posix"
32874 genfile --length 1000 -f begin
32875 genfile --length 1000 -f end
32876 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32877 tar -c -f archive --sparse begin sparsefile end || exit 1
32883 tar Cxf directory archive --warning=no-timestamp
32884 genfile --stat=name,size sparsefile
32885 cmp sparsefile directory/sparsefile
32887 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32888 at_status=$? at_failed=false
32890 at_fn_diff_devnull "$at_stderr" || at_failed=:
32891 echo stdout:; tee stdout <"$at_stdout"
32892 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:25"
32893 $at_failed && at_fn_log_failure
32897 $as_echo "$at_srcdir/sparse01.at:25:
32900 TEST_TAR_FORMAT=gnu
32901 export TEST_TAR_FORMAT
32902 TAR_OPTIONS=\"-H gnu\"
32906 genfile --length 1000 -f begin
32907 genfile --length 1000 -f end
32908 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32909 tar -c -f archive --sparse begin sparsefile end || exit 1
32915 tar Cxf directory archive --warning=no-timestamp
32916 genfile --stat=name,size sparsefile
32917 cmp sparsefile directory/sparsefile
32919 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:25"
32923 TEST_TAR_FORMAT=gnu
32924 export TEST_TAR_FORMAT
32925 TAR_OPTIONS="-H gnu"
32929 genfile --length 1000 -f begin
32930 genfile --length 1000 -f end
32931 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32932 tar -c -f archive --sparse begin sparsefile end || exit 1
32938 tar Cxf directory archive --warning=no-timestamp
32939 genfile --stat=name,size sparsefile
32940 cmp sparsefile directory/sparsefile
32942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32943 at_status=$? at_failed=false
32945 at_fn_diff_devnull "$at_stderr" || at_failed=:
32946 echo stdout:; tee stdout <"$at_stdout"
32947 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:25"
32948 $at_failed && at_fn_log_failure
32952 $as_echo "$at_srcdir/sparse01.at:25:
32955 TEST_TAR_FORMAT=oldgnu
32956 export TEST_TAR_FORMAT
32957 TAR_OPTIONS=\"-H oldgnu\"
32961 genfile --length 1000 -f begin
32962 genfile --length 1000 -f end
32963 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32964 tar -c -f archive --sparse begin sparsefile end || exit 1
32970 tar Cxf directory archive --warning=no-timestamp
32971 genfile --stat=name,size sparsefile
32972 cmp sparsefile directory/sparsefile
32974 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:25"
32978 TEST_TAR_FORMAT=oldgnu
32979 export TEST_TAR_FORMAT
32980 TAR_OPTIONS="-H oldgnu"
32984 genfile --length 1000 -f begin
32985 genfile --length 1000 -f end
32986 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32987 tar -c -f archive --sparse begin sparsefile end || exit 1
32993 tar Cxf directory archive --warning=no-timestamp
32994 genfile --stat=name,size sparsefile
32995 cmp sparsefile directory/sparsefile
32997 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32998 at_status=$? at_failed=false
33000 at_fn_diff_devnull "$at_stderr" || at_failed=:
33001 echo stdout:; tee stdout <"$at_stdout"
33002 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:25"
33003 $at_failed && at_fn_log_failure
33010 cat >stdout.re <<'_ATEOF'
33012 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33013 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33014 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33016 sparsefile 10344448
33019 awk '{print NR " " $0}' stdout > $$.1
33020 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33021 while read NUM RE LINE
33023 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33028 $at_times_p && times >"$at_times_file"
33029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33030 read at_status <"$at_status_file"
33033 at_fn_group_banner 139 'sparse02.at:22' \
33034 "extracting sparse file over a pipe" " " 19
33036 test -f $XFAILFILE && at_xfail=yes
33038 $as_echo "139. $at_setup_line: testing $at_desc ..."
33043 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
33044 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
33045 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
33050 $as_echo "$at_srcdir/sparse02.at:29:
33053 TEST_TAR_FORMAT=posix
33054 export TEST_TAR_FORMAT
33055 TAR_OPTIONS=\"-H posix\"
33059 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33060 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33063 tar xfO archive | cat - > sparsecopy || exit 1
33064 cmp sparsefile sparsecopy
33066 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:29"
33070 TEST_TAR_FORMAT=posix
33071 export TEST_TAR_FORMAT
33072 TAR_OPTIONS="-H posix"
33076 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33077 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33080 tar xfO archive | cat - > sparsecopy || exit 1
33081 cmp sparsefile sparsecopy
33083 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33084 at_status=$? at_failed=false
33086 at_fn_diff_devnull "$at_stderr" || at_failed=:
33087 echo >>"$at_stdout"; $as_echo "separator
33089 $at_diff - "$at_stdout" || at_failed=:
33090 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:29"
33091 $at_failed && at_fn_log_failure
33095 $as_echo "$at_srcdir/sparse02.at:29:
33098 TEST_TAR_FORMAT=gnu
33099 export TEST_TAR_FORMAT
33100 TAR_OPTIONS=\"-H gnu\"
33104 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33105 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33108 tar xfO archive | cat - > sparsecopy || exit 1
33109 cmp sparsefile sparsecopy
33111 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:29"
33115 TEST_TAR_FORMAT=gnu
33116 export TEST_TAR_FORMAT
33117 TAR_OPTIONS="-H gnu"
33121 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33122 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33125 tar xfO archive | cat - > sparsecopy || exit 1
33126 cmp sparsefile sparsecopy
33128 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33129 at_status=$? at_failed=false
33131 at_fn_diff_devnull "$at_stderr" || at_failed=:
33132 echo >>"$at_stdout"; $as_echo "separator
33134 $at_diff - "$at_stdout" || at_failed=:
33135 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:29"
33136 $at_failed && at_fn_log_failure
33140 $as_echo "$at_srcdir/sparse02.at:29:
33143 TEST_TAR_FORMAT=oldgnu
33144 export TEST_TAR_FORMAT
33145 TAR_OPTIONS=\"-H oldgnu\"
33149 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33150 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33153 tar xfO archive | cat - > sparsecopy || exit 1
33154 cmp sparsefile sparsecopy
33156 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:29"
33160 TEST_TAR_FORMAT=oldgnu
33161 export TEST_TAR_FORMAT
33162 TAR_OPTIONS="-H oldgnu"
33166 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33167 tar --hole-detection=raw -c -f archive --sparse sparsefile || exit 1
33170 tar xfO archive | cat - > sparsecopy || exit 1
33171 cmp sparsefile sparsecopy
33173 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33174 at_status=$? at_failed=false
33176 at_fn_diff_devnull "$at_stderr" || at_failed=:
33177 echo >>"$at_stdout"; $as_echo "separator
33179 $at_diff - "$at_stdout" || at_failed=:
33180 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:29"
33181 $at_failed && at_fn_log_failure
33188 $at_times_p && times >"$at_times_file"
33189 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33190 read at_status <"$at_status_file"
33193 at_fn_group_banner 140 'sparse03.at:21' \
33194 "storing sparse files > 8G" " " 19
33196 test -f $XFAILFILE && at_xfail=yes
33198 $as_echo "140. $at_setup_line: testing $at_desc ..."
33203 # Tar 1.15.1 incorrectly computed sparse member size if the extended
33204 # PAX header contained size keyword.
33205 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
33206 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
33211 $as_echo "$at_srcdir/sparse03.at:29:
33214 TEST_TAR_FORMAT=posix
33215 export TEST_TAR_FORMAT
33216 TAR_OPTIONS=\"-H posix\"
33220 genfile --length 1000 --file begin
33221 genfile --length 1000 --file end
33222 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33223 tar -c -f archive --sparse begin sparsefile end || exit 1
33229 tar Cxf directory archive
33230 genfile --stat=name,size sparsefile
33231 cmp sparsefile directory/sparsefile
33233 at_fn_check_prepare_notrace 'an embedded newline' "sparse03.at:29"
33237 TEST_TAR_FORMAT=posix
33238 export TEST_TAR_FORMAT
33239 TAR_OPTIONS="-H posix"
33243 genfile --length 1000 --file begin
33244 genfile --length 1000 --file end
33245 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33246 tar -c -f archive --sparse begin sparsefile end || exit 1
33252 tar Cxf directory archive
33253 genfile --stat=name,size sparsefile
33254 cmp sparsefile directory/sparsefile
33256 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33257 at_status=$? at_failed=false
33259 at_fn_diff_devnull "$at_stderr" || at_failed=:
33260 echo stdout:; tee stdout <"$at_stdout"
33261 at_fn_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
33262 $at_failed && at_fn_log_failure
33269 cat >stdout.re <<'_ATEOF'
33271 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33272 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33273 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33275 sparsefile 8589935104
33278 awk '{print NR " " $0}' stdout > $$.1
33279 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33280 while read NUM RE LINE
33282 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33287 $at_times_p && times >"$at_times_file"
33288 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33289 read at_status <"$at_status_file"
33292 at_fn_group_banner 141 'sparse04.at:21' \
33293 "storing long sparse file names" " " 19
33295 test -f $XFAILFILE && at_xfail=yes
33297 $as_echo "141. $at_setup_line: testing $at_desc ..."
33302 # Description: Tar versions from 1.15.92 to 1.25 would incorrectly
33303 # store sparse file names longer than 100 characters in pax mode.
33304 # Namely, the 'path' keyword of the produced PAX header would contain the
33305 # crafted name of the header itself, instead of that of the file.
33306 # Reported by: Kamil Dudka <kdudka@redhat.com>
33307 # References: <201011250026.44908.kdudka@redhat.com>,
33308 # http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00099.html
33315 $as_echo "$at_srcdir/sparse04.at:35:
33318 TEST_TAR_FORMAT=pax
33319 export TEST_TAR_FORMAT
33320 TAR_OPTIONS=\"-H pax\"
33324 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
33325 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
33327 at_fn_check_prepare_notrace 'an embedded newline' "sparse04.at:35"
33331 TEST_TAR_FORMAT=pax
33332 export TEST_TAR_FORMAT
33333 TAR_OPTIONS="-H pax"
33337 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
33338 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
33340 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33341 at_status=$? at_failed=false
33343 at_fn_diff_devnull "$at_stderr" || at_failed=:
33344 echo >>"$at_stdout"; $as_echo "123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
33346 $at_diff - "$at_stdout" || at_failed=:
33347 at_fn_check_status 0 $at_status "$at_srcdir/sparse04.at:35"
33348 $at_failed && at_fn_log_failure
33356 $at_times_p && times >"$at_times_file"
33357 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33358 read at_status <"$at_status_file"
33361 at_fn_group_banner 142 'sparse05.at:21' \
33362 "listing sparse files bigger than 2^33 B" " " 19
33364 test -f $XFAILFILE && at_xfail=yes
33366 $as_echo "142. $at_setup_line: testing $at_desc ..."
33371 # Description: If an archive in POSIX.1-2001 archive contained a sparse file
33372 # member whose real size (excluding zero blocks) is bigger than 2^33 bytes,
33373 # tar 1.28 would incorrectly list the real member size.
33374 # Reported by: Pavel Raiskup <praiskup@redhat.com>
33375 # References: <1359119879.15037.4.camel@raiskup>,
33376 # http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00001.html
33381 $as_echo "$at_srcdir/sparse05.at:31:
33384 TEST_TAR_FORMAT=pax
33385 export TEST_TAR_FORMAT
33386 TAR_OPTIONS=\"-H pax\"
33390 cat >mapfile <<'_ATEOF'
34393 genfile --sparse --file BIGFILE --block-size 4K - < mapfile || exit 77
34394 tar -f - -c --sparse --posix BIGFILE | tar tvf - | awk '{ print \$3, \$(NF) }'
34396 at_fn_check_prepare_notrace 'a $(...) command substitution' "sparse05.at:31"
34400 TEST_TAR_FORMAT=pax
34401 export TEST_TAR_FORMAT
34402 TAR_OPTIONS="-H pax"
34406 cat >mapfile <<'_ATEOF'
35409 genfile --sparse --file BIGFILE --block-size 4K - < mapfile || exit 77
35410 tar -f - -c --sparse --posix BIGFILE | tar tvf - | awk '{ print $3, $(NF) }'
35412 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35413 at_status=$? at_failed=false
35415 at_fn_diff_devnull "$at_stderr" || at_failed=:
35416 echo >>"$at_stdout"; $as_echo "20961034240 BIGFILE
35418 $at_diff - "$at_stdout" || at_failed=:
35419 at_fn_check_status 0 $at_status "$at_srcdir/sparse05.at:31"
35420 $at_failed && at_fn_log_failure
35427 $at_times_p && times >"$at_times_file"
35428 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35429 read at_status <"$at_status_file"
35432 at_fn_group_banner 143 'sparse06.at:21' \
35433 "storing sparse file using seek method" " " 19
35435 test -f $XFAILFILE && at_xfail=yes
35437 $as_echo "143. $at_setup_line: testing $at_desc ..."
35447 $as_echo "$at_srcdir/sparse06.at:32:
35450 TEST_TAR_FORMAT=posix
35451 export TEST_TAR_FORMAT
35452 TAR_OPTIONS=\"-H posix\"
35457 checkseekhole || exit 77
35460 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=seek\"
35461 genfile --sparse --file bigsparse 0 ABC 8G DEF
35462 tar -cSf a bigsparse
35463 test \$? -eq 0 || exit 1
35466 rm -rf out archive.tar smallsparse && mkdir out
35467 genfile --sparse --quiet --file smallsparse 0 ABC
35468 tar -cSf archive.tar smallsparse
35469 tar -xf archive.tar -C out
35470 cmp smallsparse out/smallsparse
35473 rm -rf out archive.tar smallsparse && mkdir out
35474 genfile --sparse --quiet --file smallsparse 0 ABC 10M
35475 tar -cSf archive.tar smallsparse
35476 tar -xf archive.tar -C out
35477 cmp smallsparse out/smallsparse
35480 rm -rf out archive.tar smallsparse && mkdir out
35481 genfile --sparse --quiet --file smallsparse 0 ABC 10M DEF
35482 tar -cSf archive.tar smallsparse
35483 tar -xf archive.tar -C out
35484 cmp smallsparse out/smallsparse
35488 rm -rf out archive.tar smallsparse && mkdir out
35489 genfile --sparse --quiet --file smallsparse 10M
35490 tar -cSf archive.tar smallsparse
35491 tar -xf archive.tar -C out
35492 cmp smallsparse out/smallsparse
35495 rm -rf out archive.tar smallsparse && mkdir out
35496 genfile --sparse --quiet --file smallsparse 10M ABC
35497 tar -cSf archive.tar smallsparse
35498 tar -xf archive.tar -C out
35499 cmp smallsparse out/smallsparse
35502 rm -rf out archive.tar smallsparse && mkdir out
35503 genfile --sparse --quiet --file smallsparse 10M ABC 20M
35504 tar -cSf archive.tar smallsparse
35505 tar -xf archive.tar -C out
35506 cmp smallsparse out/smallsparse
35510 rm -rf out archive.tar smallsparse && mkdir out
35511 genfile --sparse --quiet --file smallsparse 10M DEF 20M GHI 30M JKL 40M
35512 tar -cSf archive.tar smallsparse
35513 tar -xf archive.tar -C out
35514 cmp smallsparse out/smallsparse
35518 at_fn_check_prepare_notrace 'an embedded newline' "sparse06.at:32"
35522 TEST_TAR_FORMAT=posix
35523 export TEST_TAR_FORMAT
35524 TAR_OPTIONS="-H posix"
35529 checkseekhole || exit 77
35532 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=seek"
35533 genfile --sparse --file bigsparse 0 ABC 8G DEF
35534 tar -cSf a bigsparse
35535 test $? -eq 0 || exit 1
35538 rm -rf out archive.tar smallsparse && mkdir out
35539 genfile --sparse --quiet --file smallsparse 0 ABC
35540 tar -cSf archive.tar smallsparse
35541 tar -xf archive.tar -C out
35542 cmp smallsparse out/smallsparse
35545 rm -rf out archive.tar smallsparse && mkdir out
35546 genfile --sparse --quiet --file smallsparse 0 ABC 10M
35547 tar -cSf archive.tar smallsparse
35548 tar -xf archive.tar -C out
35549 cmp smallsparse out/smallsparse
35552 rm -rf out archive.tar smallsparse && mkdir out
35553 genfile --sparse --quiet --file smallsparse 0 ABC 10M DEF
35554 tar -cSf archive.tar smallsparse
35555 tar -xf archive.tar -C out
35556 cmp smallsparse out/smallsparse
35560 rm -rf out archive.tar smallsparse && mkdir out
35561 genfile --sparse --quiet --file smallsparse 10M
35562 tar -cSf archive.tar smallsparse
35563 tar -xf archive.tar -C out
35564 cmp smallsparse out/smallsparse
35567 rm -rf out archive.tar smallsparse && mkdir out
35568 genfile --sparse --quiet --file smallsparse 10M ABC
35569 tar -cSf archive.tar smallsparse
35570 tar -xf archive.tar -C out
35571 cmp smallsparse out/smallsparse
35574 rm -rf out archive.tar smallsparse && mkdir out
35575 genfile --sparse --quiet --file smallsparse 10M ABC 20M
35576 tar -cSf archive.tar smallsparse
35577 tar -xf archive.tar -C out
35578 cmp smallsparse out/smallsparse
35582 rm -rf out archive.tar smallsparse && mkdir out
35583 genfile --sparse --quiet --file smallsparse 10M DEF 20M GHI 30M JKL 40M
35584 tar -cSf archive.tar smallsparse
35585 tar -xf archive.tar -C out
35586 cmp smallsparse out/smallsparse
35590 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35591 at_status=$? at_failed=false
35593 at_fn_diff_devnull "$at_stderr" || at_failed=:
35594 at_fn_diff_devnull "$at_stdout" || at_failed=:
35595 at_fn_check_status 0 $at_status "$at_srcdir/sparse06.at:32"
35596 $at_failed && at_fn_log_failure
35603 $at_times_p && times >"$at_times_file"
35604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35605 read at_status <"$at_status_file"
35608 at_fn_group_banner 144 'sparsemv.at:21' \
35609 "sparse files in MV archives" " " 19
35611 test -f $XFAILFILE && at_xfail=yes
35613 $as_echo "144. $at_setup_line: testing $at_desc ..."
35618 # Check if sparse files are correctly split between GNU multi-volume
35620 # There are two cases: the file can be split within an empty (null) block,
35621 # or within a data block. Since null blocks are not archived, the first
35622 # case means the file is split between two consecutive data blocks.
35628 $as_echo "$at_srcdir/sparsemv.at:31:
35631 TEST_TAR_FORMAT=gnu
35632 export TEST_TAR_FORMAT
35633 TAR_OPTIONS=\"-H gnu\"
35638 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=raw\"
35639 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35640 echo \"Pass 1: Split between data blocks\"
35641 echo \"Create archive\"
35642 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35643 echo \"Test archive\"
35644 tar --record-size=512 -t -M -f arc.1 -f arc.2
35645 echo \"Compare archive\"
35646 tar --record-size=512 -d -M -f arc.1 -f arc.2
35648 echo \"Pass 2: Split within a data block\"
35649 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35650 echo \"Create archive\"
35651 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35652 echo \"Test archive\"
35653 tar --record-size=512 -t -M -f arc.1 -f arc.2
35654 echo \"Compare archive\"
35655 tar --record-size=512 -d -M -f arc.1 -f arc.2
35657 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
35661 TEST_TAR_FORMAT=gnu
35662 export TEST_TAR_FORMAT
35663 TAR_OPTIONS="-H gnu"
35668 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=raw"
35669 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35670 echo "Pass 1: Split between data blocks"
35671 echo "Create archive"
35672 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35673 echo "Test archive"
35674 tar --record-size=512 -t -M -f arc.1 -f arc.2
35675 echo "Compare archive"
35676 tar --record-size=512 -d -M -f arc.1 -f arc.2
35678 echo "Pass 2: Split within a data block"
35679 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35680 echo "Create archive"
35681 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35682 echo "Test archive"
35683 tar --record-size=512 -t -M -f arc.1 -f arc.2
35684 echo "Compare archive"
35685 tar --record-size=512 -d -M -f arc.1 -f arc.2
35687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35688 at_status=$? at_failed=false
35690 at_fn_diff_devnull "$at_stderr" || at_failed=:
35691 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
35696 Pass 2: Split within a data block
35702 $at_diff - "$at_stdout" || at_failed=:
35703 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
35704 $at_failed && at_fn_log_failure
35708 $as_echo "$at_srcdir/sparsemv.at:31:
35711 TEST_TAR_FORMAT=oldgnu
35712 export TEST_TAR_FORMAT
35713 TAR_OPTIONS=\"-H oldgnu\"
35718 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=raw\"
35719 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35720 echo \"Pass 1: Split between data blocks\"
35721 echo \"Create archive\"
35722 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35723 echo \"Test archive\"
35724 tar --record-size=512 -t -M -f arc.1 -f arc.2
35725 echo \"Compare archive\"
35726 tar --record-size=512 -d -M -f arc.1 -f arc.2
35728 echo \"Pass 2: Split within a data block\"
35729 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35730 echo \"Create archive\"
35731 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35732 echo \"Test archive\"
35733 tar --record-size=512 -t -M -f arc.1 -f arc.2
35734 echo \"Compare archive\"
35735 tar --record-size=512 -d -M -f arc.1 -f arc.2
35737 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
35741 TEST_TAR_FORMAT=oldgnu
35742 export TEST_TAR_FORMAT
35743 TAR_OPTIONS="-H oldgnu"
35748 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=raw"
35749 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35750 echo "Pass 1: Split between data blocks"
35751 echo "Create archive"
35752 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35753 echo "Test archive"
35754 tar --record-size=512 -t -M -f arc.1 -f arc.2
35755 echo "Compare archive"
35756 tar --record-size=512 -d -M -f arc.1 -f arc.2
35758 echo "Pass 2: Split within a data block"
35759 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35760 echo "Create archive"
35761 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
35762 echo "Test archive"
35763 tar --record-size=512 -t -M -f arc.1 -f arc.2
35764 echo "Compare archive"
35765 tar --record-size=512 -d -M -f arc.1 -f arc.2
35767 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35768 at_status=$? at_failed=false
35770 at_fn_diff_devnull "$at_stderr" || at_failed=:
35771 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
35776 Pass 2: Split within a data block
35782 $at_diff - "$at_stdout" || at_failed=:
35783 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
35784 $at_failed && at_fn_log_failure
35791 $at_times_p && times >"$at_times_file"
35792 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35793 read at_status <"$at_status_file"
35796 at_fn_group_banner 145 'spmvp00.at:21' \
35797 "sparse files in PAX MV archives, v.0.0" " " 19
35799 test -f $XFAILFILE && at_xfail=yes
35801 $as_echo "145. $at_setup_line: testing $at_desc ..."
35810 $as_echo "$at_srcdir/spmvp00.at:24:
35813 TEST_TAR_FORMAT=pax
35814 export TEST_TAR_FORMAT
35815 TAR_OPTIONS=\"-H pax\"
35820 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=raw\"
35821 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
35822 echo \"Pass 1: Split between data blocks\"
35823 echo \"Create archive\"
35824 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35825 echo \"Test archive\"
35826 tar -t -M -f arc.1 -f arc.2 -f arc.3
35827 echo \"Compare archive\"
35828 tar -d -M -f arc.1 -f arc.2 -f arc.3
35830 echo \"Pass 2: Split within a data block\"
35831 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
35832 echo \"Create archive\"
35833 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35834 echo \"Test archive\"
35835 tar -t -M -f arc.1 -f arc.2 -f arc.3
35836 echo \"Compare archive\"
35837 tar -d -M -f arc.1 -f arc.2 -f arc.3
35839 at_fn_check_prepare_notrace 'an embedded newline' "spmvp00.at:24"
35843 TEST_TAR_FORMAT=pax
35844 export TEST_TAR_FORMAT
35845 TAR_OPTIONS="-H pax"
35850 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=raw"
35851 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
35852 echo "Pass 1: Split between data blocks"
35853 echo "Create archive"
35854 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35855 echo "Test archive"
35856 tar -t -M -f arc.1 -f arc.2 -f arc.3
35857 echo "Compare archive"
35858 tar -d -M -f arc.1 -f arc.2 -f arc.3
35860 echo "Pass 2: Split within a data block"
35861 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
35862 echo "Create archive"
35863 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35864 echo "Test archive"
35865 tar -t -M -f arc.1 -f arc.2 -f arc.3
35866 echo "Compare archive"
35867 tar -d -M -f arc.1 -f arc.2 -f arc.3
35869 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35870 at_status=$? at_failed=false
35872 at_fn_diff_devnull "$at_stderr" || at_failed=:
35873 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
35878 Pass 2: Split within a data block
35884 $at_diff - "$at_stdout" || at_failed=:
35885 at_fn_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
35886 $at_failed && at_fn_log_failure
35893 $at_times_p && times >"$at_times_file"
35894 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35895 read at_status <"$at_status_file"
35898 at_fn_group_banner 146 'spmvp01.at:21' \
35899 "sparse files in PAX MV archives, v.0.1" " " 19
35901 test -f $XFAILFILE && at_xfail=yes
35903 $as_echo "146. $at_setup_line: testing $at_desc ..."
35912 $as_echo "$at_srcdir/spmvp01.at:24:
35915 TEST_TAR_FORMAT=pax
35916 export TEST_TAR_FORMAT
35917 TAR_OPTIONS=\"-H pax\"
35922 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=raw\"
35923 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35924 echo \"Pass 1: Split between data blocks\"
35925 echo \"Create archive\"
35926 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35927 echo \"Test archive\"
35928 tar -t -M -f arc.1 -f arc.2 -f arc.3
35929 echo \"Compare archive\"
35930 tar -d -M -f arc.1 -f arc.2 -f arc.3
35932 echo \"Pass 2: Split within a data block\"
35933 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35934 echo \"Create archive\"
35935 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35936 echo \"Test archive\"
35937 tar -t -M -f arc.1 -f arc.2 -f arc.3
35938 echo \"Compare archive\"
35939 tar -d -M -f arc.1 -f arc.2 -f arc.3
35941 at_fn_check_prepare_notrace 'an embedded newline' "spmvp01.at:24"
35945 TEST_TAR_FORMAT=pax
35946 export TEST_TAR_FORMAT
35947 TAR_OPTIONS="-H pax"
35952 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=raw"
35953 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
35954 echo "Pass 1: Split between data blocks"
35955 echo "Create archive"
35956 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35957 echo "Test archive"
35958 tar -t -M -f arc.1 -f arc.2 -f arc.3
35959 echo "Compare archive"
35960 tar -d -M -f arc.1 -f arc.2 -f arc.3
35962 echo "Pass 2: Split within a data block"
35963 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
35964 echo "Create archive"
35965 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
35966 echo "Test archive"
35967 tar -t -M -f arc.1 -f arc.2 -f arc.3
35968 echo "Compare archive"
35969 tar -d -M -f arc.1 -f arc.2 -f arc.3
35971 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35972 at_status=$? at_failed=false
35974 at_fn_diff_devnull "$at_stderr" || at_failed=:
35975 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
35980 Pass 2: Split within a data block
35986 $at_diff - "$at_stdout" || at_failed=:
35987 at_fn_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
35988 $at_failed && at_fn_log_failure
35995 $at_times_p && times >"$at_times_file"
35996 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35997 read at_status <"$at_status_file"
36000 at_fn_group_banner 147 'spmvp10.at:21' \
36001 "sparse files in PAX MV archives, v.1.0" " " 19
36003 test -f $XFAILFILE && at_xfail=yes
36005 $as_echo "147. $at_setup_line: testing $at_desc ..."
36014 $as_echo "$at_srcdir/spmvp10.at:24:
36017 TEST_TAR_FORMAT=pax
36018 export TEST_TAR_FORMAT
36019 TAR_OPTIONS=\"-H pax\"
36024 TAR_OPTIONS=\"\$TAR_OPTIONS --hole-detection=raw\"
36025 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
36026 echo \"Pass 1: Split between data blocks\"
36027 echo \"Create archive\"
36028 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
36029 echo \"Test archive\"
36030 tar -t -M -f arc.1 -f arc.2 -f arc.3
36031 echo \"Compare archive\"
36032 tar -d -M -f arc.1 -f arc.2 -f arc.3
36034 echo \"Pass 2: Split within a data block\"
36035 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
36036 echo \"Create archive\"
36037 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
36038 echo \"Test archive\"
36039 tar -t -M -f arc.1 -f arc.2 -f arc.3
36040 echo \"Compare archive\"
36041 tar -d -M -f arc.1 -f arc.2 -f arc.3
36043 at_fn_check_prepare_notrace 'an embedded newline' "spmvp10.at:24"
36047 TEST_TAR_FORMAT=pax
36048 export TEST_TAR_FORMAT
36049 TAR_OPTIONS="-H pax"
36054 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=raw"
36055 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
36056 echo "Pass 1: Split between data blocks"
36057 echo "Create archive"
36058 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
36059 echo "Test archive"
36060 tar -t -M -f arc.1 -f arc.2 -f arc.3
36061 echo "Compare archive"
36062 tar -d -M -f arc.1 -f arc.2 -f arc.3
36064 echo "Pass 2: Split within a data block"
36065 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
36066 echo "Create archive"
36067 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
36068 echo "Test archive"
36069 tar -t -M -f arc.1 -f arc.2 -f arc.3
36070 echo "Compare archive"
36071 tar -d -M -f arc.1 -f arc.2 -f arc.3
36073 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36074 at_status=$? at_failed=false
36076 at_fn_diff_devnull "$at_stderr" || at_failed=:
36077 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
36082 Pass 2: Split within a data block
36088 $at_diff - "$at_stdout" || at_failed=:
36089 at_fn_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
36090 $at_failed && at_fn_log_failure
36097 $at_times_p && times >"$at_times_file"
36098 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
36099 read at_status <"$at_status_file"
36102 at_fn_group_banner 148 'update.at:28' \
36103 "update unchanged directories" " " 20
36105 test -f $XFAILFILE && at_xfail=yes
36107 $as_echo "148. $at_setup_line: testing $at_desc ..."
36115 $as_echo "$at_srcdir/update.at:31:
36119 export TEST_TAR_FORMAT
36120 TAR_OPTIONS=\"-H v7\"
36125 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36128 genfile --length 10240 --pattern zeros --file directory/file1
36129 genfile --length 10240 --pattern default --file directory/file2
36131 tar cf archive directory || exit 1
36133 tar uf archive directory || exit 1
36135 tar tf archive | sort || exit 1
36137 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
36142 export TEST_TAR_FORMAT
36143 TAR_OPTIONS="-H v7"
36148 test -z "`sort < /dev/null 2>&1`" || exit 77
36151 genfile --length 10240 --pattern zeros --file directory/file1
36152 genfile --length 10240 --pattern default --file directory/file2
36154 tar cf archive directory || exit 1
36156 tar uf archive directory || exit 1
36158 tar tf archive | sort || exit 1
36160 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36161 at_status=$? at_failed=false
36163 at_fn_diff_devnull "$at_stderr" || at_failed=:
36164 echo >>"$at_stdout"; $as_echo "separator
36170 $at_diff - "$at_stdout" || at_failed=:
36171 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
36172 $at_failed && at_fn_log_failure
36176 $as_echo "$at_srcdir/update.at:31:
36179 TEST_TAR_FORMAT=oldgnu
36180 export TEST_TAR_FORMAT
36181 TAR_OPTIONS=\"-H oldgnu\"
36186 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36189 genfile --length 10240 --pattern zeros --file directory/file1
36190 genfile --length 10240 --pattern default --file directory/file2
36192 tar cf archive directory || exit 1
36194 tar uf archive directory || exit 1
36196 tar tf archive | sort || exit 1
36198 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
36202 TEST_TAR_FORMAT=oldgnu
36203 export TEST_TAR_FORMAT
36204 TAR_OPTIONS="-H oldgnu"
36209 test -z "`sort < /dev/null 2>&1`" || exit 77
36212 genfile --length 10240 --pattern zeros --file directory/file1
36213 genfile --length 10240 --pattern default --file directory/file2
36215 tar cf archive directory || exit 1
36217 tar uf archive directory || exit 1
36219 tar tf archive | sort || exit 1
36221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36222 at_status=$? at_failed=false
36224 at_fn_diff_devnull "$at_stderr" || at_failed=:
36225 echo >>"$at_stdout"; $as_echo "separator
36231 $at_diff - "$at_stdout" || at_failed=:
36232 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
36233 $at_failed && at_fn_log_failure
36237 $as_echo "$at_srcdir/update.at:31:
36240 TEST_TAR_FORMAT=ustar
36241 export TEST_TAR_FORMAT
36242 TAR_OPTIONS=\"-H ustar\"
36247 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36250 genfile --length 10240 --pattern zeros --file directory/file1
36251 genfile --length 10240 --pattern default --file directory/file2
36253 tar cf archive directory || exit 1
36255 tar uf archive directory || exit 1
36257 tar tf archive | sort || exit 1
36259 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
36263 TEST_TAR_FORMAT=ustar
36264 export TEST_TAR_FORMAT
36265 TAR_OPTIONS="-H ustar"
36270 test -z "`sort < /dev/null 2>&1`" || exit 77
36273 genfile --length 10240 --pattern zeros --file directory/file1
36274 genfile --length 10240 --pattern default --file directory/file2
36276 tar cf archive directory || exit 1
36278 tar uf archive directory || exit 1
36280 tar tf archive | sort || exit 1
36282 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36283 at_status=$? at_failed=false
36285 at_fn_diff_devnull "$at_stderr" || at_failed=:
36286 echo >>"$at_stdout"; $as_echo "separator
36292 $at_diff - "$at_stdout" || at_failed=:
36293 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
36294 $at_failed && at_fn_log_failure
36298 $as_echo "$at_srcdir/update.at:31:
36301 TEST_TAR_FORMAT=posix
36302 export TEST_TAR_FORMAT
36303 TAR_OPTIONS=\"-H posix\"
36308 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36311 genfile --length 10240 --pattern zeros --file directory/file1
36312 genfile --length 10240 --pattern default --file directory/file2
36314 tar cf archive directory || exit 1
36316 tar uf archive directory || exit 1
36318 tar tf archive | sort || exit 1
36320 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
36324 TEST_TAR_FORMAT=posix
36325 export TEST_TAR_FORMAT
36326 TAR_OPTIONS="-H posix"
36331 test -z "`sort < /dev/null 2>&1`" || exit 77
36334 genfile --length 10240 --pattern zeros --file directory/file1
36335 genfile --length 10240 --pattern default --file directory/file2
36337 tar cf archive directory || exit 1
36339 tar uf archive directory || exit 1
36341 tar tf archive | sort || exit 1
36343 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36344 at_status=$? at_failed=false
36346 at_fn_diff_devnull "$at_stderr" || at_failed=:
36347 echo >>"$at_stdout"; $as_echo "separator
36353 $at_diff - "$at_stdout" || at_failed=:
36354 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
36355 $at_failed && at_fn_log_failure
36359 $as_echo "$at_srcdir/update.at:31:
36362 TEST_TAR_FORMAT=gnu
36363 export TEST_TAR_FORMAT
36364 TAR_OPTIONS=\"-H gnu\"
36369 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36372 genfile --length 10240 --pattern zeros --file directory/file1
36373 genfile --length 10240 --pattern default --file directory/file2
36375 tar cf archive directory || exit 1
36377 tar uf archive directory || exit 1
36379 tar tf archive | sort || exit 1
36381 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
36385 TEST_TAR_FORMAT=gnu
36386 export TEST_TAR_FORMAT
36387 TAR_OPTIONS="-H gnu"
36392 test -z "`sort < /dev/null 2>&1`" || exit 77
36395 genfile --length 10240 --pattern zeros --file directory/file1
36396 genfile --length 10240 --pattern default --file directory/file2
36398 tar cf archive directory || exit 1
36400 tar uf archive directory || exit 1
36402 tar tf archive | sort || exit 1
36404 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36405 at_status=$? at_failed=false
36407 at_fn_diff_devnull "$at_stderr" || at_failed=:
36408 echo >>"$at_stdout"; $as_echo "separator
36414 $at_diff - "$at_stdout" || at_failed=:
36415 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
36416 $at_failed && at_fn_log_failure
36423 $at_times_p && times >"$at_times_file"
36424 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
36425 read at_status <"$at_status_file"
36428 at_fn_group_banner 149 'update01.at:29' \
36429 "update directories" " " 20
36431 test -f $XFAILFILE && at_xfail=yes
36433 $as_echo "149. $at_setup_line: testing $at_desc ..."
36441 $as_echo "$at_srcdir/update01.at:32:
36445 export TEST_TAR_FORMAT
36446 TAR_OPTIONS=\"-H v7\"
36451 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36465 tar tf arc | sort || exit 1
36467 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
36472 export TEST_TAR_FORMAT
36473 TAR_OPTIONS="-H v7"
36478 test -z "`sort < /dev/null 2>&1`" || exit 77
36492 tar tf arc | sort || exit 1
36494 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36495 at_status=$? at_failed=false
36497 at_fn_diff_devnull "$at_stderr" || at_failed=:
36498 echo >>"$at_stdout"; $as_echo "separator
36505 $at_diff - "$at_stdout" || at_failed=:
36506 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
36507 $at_failed && at_fn_log_failure
36511 $as_echo "$at_srcdir/update01.at:32:
36514 TEST_TAR_FORMAT=oldgnu
36515 export TEST_TAR_FORMAT
36516 TAR_OPTIONS=\"-H oldgnu\"
36521 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36535 tar tf arc | sort || exit 1
36537 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
36541 TEST_TAR_FORMAT=oldgnu
36542 export TEST_TAR_FORMAT
36543 TAR_OPTIONS="-H oldgnu"
36548 test -z "`sort < /dev/null 2>&1`" || exit 77
36562 tar tf arc | sort || exit 1
36564 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36565 at_status=$? at_failed=false
36567 at_fn_diff_devnull "$at_stderr" || at_failed=:
36568 echo >>"$at_stdout"; $as_echo "separator
36575 $at_diff - "$at_stdout" || at_failed=:
36576 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
36577 $at_failed && at_fn_log_failure
36581 $as_echo "$at_srcdir/update01.at:32:
36584 TEST_TAR_FORMAT=ustar
36585 export TEST_TAR_FORMAT
36586 TAR_OPTIONS=\"-H ustar\"
36591 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36605 tar tf arc | sort || exit 1
36607 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
36611 TEST_TAR_FORMAT=ustar
36612 export TEST_TAR_FORMAT
36613 TAR_OPTIONS="-H ustar"
36618 test -z "`sort < /dev/null 2>&1`" || exit 77
36632 tar tf arc | sort || exit 1
36634 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36635 at_status=$? at_failed=false
36637 at_fn_diff_devnull "$at_stderr" || at_failed=:
36638 echo >>"$at_stdout"; $as_echo "separator
36645 $at_diff - "$at_stdout" || at_failed=:
36646 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
36647 $at_failed && at_fn_log_failure
36651 $as_echo "$at_srcdir/update01.at:32:
36654 TEST_TAR_FORMAT=posix
36655 export TEST_TAR_FORMAT
36656 TAR_OPTIONS=\"-H posix\"
36661 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36675 tar tf arc | sort || exit 1
36677 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
36681 TEST_TAR_FORMAT=posix
36682 export TEST_TAR_FORMAT
36683 TAR_OPTIONS="-H posix"
36688 test -z "`sort < /dev/null 2>&1`" || exit 77
36702 tar tf arc | sort || exit 1
36704 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36705 at_status=$? at_failed=false
36707 at_fn_diff_devnull "$at_stderr" || at_failed=:
36708 echo >>"$at_stdout"; $as_echo "separator
36715 $at_diff - "$at_stdout" || at_failed=:
36716 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
36717 $at_failed && at_fn_log_failure
36721 $as_echo "$at_srcdir/update01.at:32:
36724 TEST_TAR_FORMAT=gnu
36725 export TEST_TAR_FORMAT
36726 TAR_OPTIONS=\"-H gnu\"
36731 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36745 tar tf arc | sort || exit 1
36747 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
36751 TEST_TAR_FORMAT=gnu
36752 export TEST_TAR_FORMAT
36753 TAR_OPTIONS="-H gnu"
36758 test -z "`sort < /dev/null 2>&1`" || exit 77
36772 tar tf arc | sort || exit 1
36774 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36775 at_status=$? at_failed=false
36777 at_fn_diff_devnull "$at_stderr" || at_failed=:
36778 echo >>"$at_stdout"; $as_echo "separator
36785 $at_diff - "$at_stdout" || at_failed=:
36786 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
36787 $at_failed && at_fn_log_failure
36794 $at_times_p && times >"$at_times_file"
36795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
36796 read at_status <"$at_status_file"
36799 at_fn_group_banner 150 'update02.at:26' \
36800 "update changed files" " " 20
36802 test -f $XFAILFILE && at_xfail=yes
36804 $as_echo "150. $at_setup_line: testing $at_desc ..."
36812 $as_echo "$at_srcdir/update02.at:29:
36816 export TEST_TAR_FORMAT
36817 TAR_OPTIONS=\"-H v7\"
36822 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36836 tar tf arc | sort || exit 1
36838 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
36843 export TEST_TAR_FORMAT
36844 TAR_OPTIONS="-H v7"
36849 test -z "`sort < /dev/null 2>&1`" || exit 77
36863 tar tf arc | sort || exit 1
36865 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36866 at_status=$? at_failed=false
36868 at_fn_diff_devnull "$at_stderr" || at_failed=:
36869 echo >>"$at_stdout"; $as_echo "separator
36876 $at_diff - "$at_stdout" || at_failed=:
36877 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
36878 $at_failed && at_fn_log_failure
36882 $as_echo "$at_srcdir/update02.at:29:
36885 TEST_TAR_FORMAT=oldgnu
36886 export TEST_TAR_FORMAT
36887 TAR_OPTIONS=\"-H oldgnu\"
36892 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36906 tar tf arc | sort || exit 1
36908 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
36912 TEST_TAR_FORMAT=oldgnu
36913 export TEST_TAR_FORMAT
36914 TAR_OPTIONS="-H oldgnu"
36919 test -z "`sort < /dev/null 2>&1`" || exit 77
36933 tar tf arc | sort || exit 1
36935 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36936 at_status=$? at_failed=false
36938 at_fn_diff_devnull "$at_stderr" || at_failed=:
36939 echo >>"$at_stdout"; $as_echo "separator
36946 $at_diff - "$at_stdout" || at_failed=:
36947 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
36948 $at_failed && at_fn_log_failure
36952 $as_echo "$at_srcdir/update02.at:29:
36955 TEST_TAR_FORMAT=ustar
36956 export TEST_TAR_FORMAT
36957 TAR_OPTIONS=\"-H ustar\"
36962 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
36976 tar tf arc | sort || exit 1
36978 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
36982 TEST_TAR_FORMAT=ustar
36983 export TEST_TAR_FORMAT
36984 TAR_OPTIONS="-H ustar"
36989 test -z "`sort < /dev/null 2>&1`" || exit 77
37003 tar tf arc | sort || exit 1
37005 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37006 at_status=$? at_failed=false
37008 at_fn_diff_devnull "$at_stderr" || at_failed=:
37009 echo >>"$at_stdout"; $as_echo "separator
37016 $at_diff - "$at_stdout" || at_failed=:
37017 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
37018 $at_failed && at_fn_log_failure
37022 $as_echo "$at_srcdir/update02.at:29:
37025 TEST_TAR_FORMAT=posix
37026 export TEST_TAR_FORMAT
37027 TAR_OPTIONS=\"-H posix\"
37032 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37046 tar tf arc | sort || exit 1
37048 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
37052 TEST_TAR_FORMAT=posix
37053 export TEST_TAR_FORMAT
37054 TAR_OPTIONS="-H posix"
37059 test -z "`sort < /dev/null 2>&1`" || exit 77
37073 tar tf arc | sort || exit 1
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 "separator
37086 $at_diff - "$at_stdout" || at_failed=:
37087 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
37088 $at_failed && at_fn_log_failure
37092 $as_echo "$at_srcdir/update02.at:29:
37095 TEST_TAR_FORMAT=gnu
37096 export TEST_TAR_FORMAT
37097 TAR_OPTIONS=\"-H gnu\"
37102 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37116 tar tf arc | sort || exit 1
37118 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
37122 TEST_TAR_FORMAT=gnu
37123 export TEST_TAR_FORMAT
37124 TAR_OPTIONS="-H gnu"
37129 test -z "`sort < /dev/null 2>&1`" || exit 77
37143 tar tf arc | sort || exit 1
37145 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37146 at_status=$? at_failed=false
37148 at_fn_diff_devnull "$at_stderr" || at_failed=:
37149 echo >>"$at_stdout"; $as_echo "separator
37156 $at_diff - "$at_stdout" || at_failed=:
37157 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
37158 $at_failed && at_fn_log_failure
37165 $at_times_p && times >"$at_times_file"
37166 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37167 read at_status <"$at_status_file"
37170 at_fn_group_banner 151 'verify.at:25' \
37173 test -f $XFAILFILE && at_xfail=yes
37175 $as_echo "151. $at_setup_line: testing $at_desc ..."
37183 $as_echo "$at_srcdir/verify.at:28:
37187 export TEST_TAR_FORMAT
37188 TAR_OPTIONS=\"-H v7\"
37193 tar -cvf archive.tar --verify foo
37195 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
37200 export TEST_TAR_FORMAT
37201 TAR_OPTIONS="-H v7"
37206 tar -cvf archive.tar --verify foo
37208 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37209 at_status=$? at_failed=false
37211 at_fn_diff_devnull "$at_stderr" || at_failed=:
37212 echo >>"$at_stdout"; $as_echo "foo
37215 $at_diff - "$at_stdout" || at_failed=:
37216 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
37217 $at_failed && at_fn_log_failure
37221 $as_echo "$at_srcdir/verify.at:28:
37224 TEST_TAR_FORMAT=oldgnu
37225 export TEST_TAR_FORMAT
37226 TAR_OPTIONS=\"-H oldgnu\"
37231 tar -cvf archive.tar --verify foo
37233 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
37237 TEST_TAR_FORMAT=oldgnu
37238 export TEST_TAR_FORMAT
37239 TAR_OPTIONS="-H oldgnu"
37244 tar -cvf archive.tar --verify foo
37246 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37247 at_status=$? at_failed=false
37249 at_fn_diff_devnull "$at_stderr" || at_failed=:
37250 echo >>"$at_stdout"; $as_echo "foo
37253 $at_diff - "$at_stdout" || at_failed=:
37254 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
37255 $at_failed && at_fn_log_failure
37259 $as_echo "$at_srcdir/verify.at:28:
37262 TEST_TAR_FORMAT=ustar
37263 export TEST_TAR_FORMAT
37264 TAR_OPTIONS=\"-H ustar\"
37269 tar -cvf archive.tar --verify foo
37271 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
37275 TEST_TAR_FORMAT=ustar
37276 export TEST_TAR_FORMAT
37277 TAR_OPTIONS="-H ustar"
37282 tar -cvf archive.tar --verify foo
37284 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37285 at_status=$? at_failed=false
37287 at_fn_diff_devnull "$at_stderr" || at_failed=:
37288 echo >>"$at_stdout"; $as_echo "foo
37291 $at_diff - "$at_stdout" || at_failed=:
37292 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
37293 $at_failed && at_fn_log_failure
37297 $as_echo "$at_srcdir/verify.at:28:
37300 TEST_TAR_FORMAT=posix
37301 export TEST_TAR_FORMAT
37302 TAR_OPTIONS=\"-H posix\"
37307 tar -cvf archive.tar --verify foo
37309 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
37313 TEST_TAR_FORMAT=posix
37314 export TEST_TAR_FORMAT
37315 TAR_OPTIONS="-H posix"
37320 tar -cvf archive.tar --verify foo
37322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37323 at_status=$? at_failed=false
37325 at_fn_diff_devnull "$at_stderr" || at_failed=:
37326 echo >>"$at_stdout"; $as_echo "foo
37329 $at_diff - "$at_stdout" || at_failed=:
37330 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
37331 $at_failed && at_fn_log_failure
37335 $as_echo "$at_srcdir/verify.at:28:
37338 TEST_TAR_FORMAT=gnu
37339 export TEST_TAR_FORMAT
37340 TAR_OPTIONS=\"-H gnu\"
37345 tar -cvf archive.tar --verify foo
37347 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
37351 TEST_TAR_FORMAT=gnu
37352 export TEST_TAR_FORMAT
37353 TAR_OPTIONS="-H gnu"
37358 tar -cvf archive.tar --verify foo
37360 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37361 at_status=$? at_failed=false
37363 at_fn_diff_devnull "$at_stderr" || at_failed=:
37364 echo >>"$at_stdout"; $as_echo "foo
37367 $at_diff - "$at_stdout" || at_failed=:
37368 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
37369 $at_failed && at_fn_log_failure
37376 $at_times_p && times >"$at_times_file"
37377 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37378 read at_status <"$at_status_file"
37381 at_fn_group_banner 152 'volume.at:24' \
37384 test -f $XFAILFILE && at_xfail=yes
37386 $as_echo "152. $at_setup_line: testing $at_desc ..."
37394 $as_echo "$at_srcdir/volume.at:27:
37397 TEST_TAR_FORMAT=gnu
37398 export TEST_TAR_FORMAT
37399 TAR_OPTIONS=\"-H gnu\"
37403 tar -cf archive -V label -T /dev/null || exit 1
37405 tar xfV archive label || exit 1
37406 tar xfV archive 'la?el' || exit 1
37407 tar xfV archive 'l*l' || exit 1
37410 tar xfV archive lab
37411 test \$? = 2 || exit 1
37413 tar xfV archive bel
37414 test \$? = 2 || exit 1
37416 tar xfV archive babel
37419 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:27"
37423 TEST_TAR_FORMAT=gnu
37424 export TEST_TAR_FORMAT
37425 TAR_OPTIONS="-H gnu"
37429 tar -cf archive -V label -T /dev/null || exit 1
37431 tar xfV archive label || exit 1
37432 tar xfV archive 'la?el' || exit 1
37433 tar xfV archive 'l*l' || exit 1
37436 tar xfV archive lab
37437 test $? = 2 || exit 1
37439 tar xfV archive bel
37440 test $? = 2 || exit 1
37442 tar xfV archive babel
37445 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37446 at_status=$? at_failed=false
37448 echo >>"$at_stderr"; $as_echo "-----
37449 tar: Volume 'label' does not match 'lab'
37450 tar: Error is not recoverable: exiting now
37452 tar: Volume 'label' does not match 'bel'
37453 tar: Error is not recoverable: exiting now
37455 tar: Volume 'label' does not match 'babel'
37456 tar: Error is not recoverable: exiting now
37458 $at_diff - "$at_stderr" || at_failed=:
37459 at_fn_diff_devnull "$at_stdout" || at_failed=:
37460 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:27"
37461 $at_failed && at_fn_log_failure
37465 $as_echo "$at_srcdir/volume.at:27:
37468 TEST_TAR_FORMAT=oldgnu
37469 export TEST_TAR_FORMAT
37470 TAR_OPTIONS=\"-H oldgnu\"
37474 tar -cf archive -V label -T /dev/null || exit 1
37476 tar xfV archive label || exit 1
37477 tar xfV archive 'la?el' || exit 1
37478 tar xfV archive 'l*l' || exit 1
37481 tar xfV archive lab
37482 test \$? = 2 || exit 1
37484 tar xfV archive bel
37485 test \$? = 2 || exit 1
37487 tar xfV archive babel
37490 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:27"
37494 TEST_TAR_FORMAT=oldgnu
37495 export TEST_TAR_FORMAT
37496 TAR_OPTIONS="-H oldgnu"
37500 tar -cf archive -V label -T /dev/null || exit 1
37502 tar xfV archive label || exit 1
37503 tar xfV archive 'la?el' || exit 1
37504 tar xfV archive 'l*l' || exit 1
37507 tar xfV archive lab
37508 test $? = 2 || exit 1
37510 tar xfV archive bel
37511 test $? = 2 || exit 1
37513 tar xfV archive babel
37516 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37517 at_status=$? at_failed=false
37519 echo >>"$at_stderr"; $as_echo "-----
37520 tar: Volume 'label' does not match 'lab'
37521 tar: Error is not recoverable: exiting now
37523 tar: Volume 'label' does not match 'bel'
37524 tar: Error is not recoverable: exiting now
37526 tar: Volume 'label' does not match 'babel'
37527 tar: Error is not recoverable: exiting now
37529 $at_diff - "$at_stderr" || at_failed=:
37530 at_fn_diff_devnull "$at_stdout" || at_failed=:
37531 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:27"
37532 $at_failed && at_fn_log_failure
37539 $at_times_p && times >"$at_times_file"
37540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37541 read at_status <"$at_status_file"
37544 at_fn_group_banner 153 'volsize.at:29' \
37545 "volume header size" " " 22
37547 test -f $XFAILFILE && at_xfail=yes
37549 $as_echo "153. $at_setup_line: testing $at_desc ..."
37557 $as_echo "$at_srcdir/volsize.at:32:
37561 export TEST_TAR_FORMAT
37562 TAR_OPTIONS=\"-H v7\"
37567 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37570 test -z \"\$TEST_DATA_DIR\" && exit 77
37571 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
37574 tar tf \$TEST_DATA_DIR/abc.tar
37575 echo Verbose Listing
37576 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37577 echo Extracted directory
37578 tar xf \$TEST_DATA_DIR/abc.tar
37581 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
37586 export TEST_TAR_FORMAT
37587 TAR_OPTIONS="-H v7"
37592 test -z "`sort < /dev/null 2>&1`" || exit 77
37595 test -z "$TEST_DATA_DIR" && exit 77
37596 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37599 tar tf $TEST_DATA_DIR/abc.tar
37600 echo Verbose Listing
37601 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37602 echo Extracted directory
37603 tar xf $TEST_DATA_DIR/abc.tar
37606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37607 at_status=$? at_failed=false
37609 at_fn_diff_devnull "$at_stderr" || at_failed=:
37610 echo >>"$at_stdout"; $as_echo "Short Listing
37614 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37615 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
37616 Extracted directory
37620 $at_diff - "$at_stdout" || at_failed=:
37621 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37622 $at_failed && at_fn_log_failure
37626 $as_echo "$at_srcdir/volsize.at:32:
37629 TEST_TAR_FORMAT=oldgnu
37630 export TEST_TAR_FORMAT
37631 TAR_OPTIONS=\"-H oldgnu\"
37636 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37639 test -z \"\$TEST_DATA_DIR\" && exit 77
37640 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
37643 tar tf \$TEST_DATA_DIR/abc.tar
37644 echo Verbose Listing
37645 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37646 echo Extracted directory
37647 tar xf \$TEST_DATA_DIR/abc.tar
37650 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
37654 TEST_TAR_FORMAT=oldgnu
37655 export TEST_TAR_FORMAT
37656 TAR_OPTIONS="-H oldgnu"
37661 test -z "`sort < /dev/null 2>&1`" || exit 77
37664 test -z "$TEST_DATA_DIR" && exit 77
37665 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37668 tar tf $TEST_DATA_DIR/abc.tar
37669 echo Verbose Listing
37670 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37671 echo Extracted directory
37672 tar xf $TEST_DATA_DIR/abc.tar
37675 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37676 at_status=$? at_failed=false
37678 at_fn_diff_devnull "$at_stderr" || at_failed=:
37679 echo >>"$at_stdout"; $as_echo "Short Listing
37683 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37684 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
37685 Extracted directory
37689 $at_diff - "$at_stdout" || at_failed=:
37690 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37691 $at_failed && at_fn_log_failure
37695 $as_echo "$at_srcdir/volsize.at:32:
37698 TEST_TAR_FORMAT=ustar
37699 export TEST_TAR_FORMAT
37700 TAR_OPTIONS=\"-H ustar\"
37705 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37708 test -z \"\$TEST_DATA_DIR\" && exit 77
37709 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
37712 tar tf \$TEST_DATA_DIR/abc.tar
37713 echo Verbose Listing
37714 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37715 echo Extracted directory
37716 tar xf \$TEST_DATA_DIR/abc.tar
37719 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
37723 TEST_TAR_FORMAT=ustar
37724 export TEST_TAR_FORMAT
37725 TAR_OPTIONS="-H ustar"
37730 test -z "`sort < /dev/null 2>&1`" || exit 77
37733 test -z "$TEST_DATA_DIR" && exit 77
37734 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37737 tar tf $TEST_DATA_DIR/abc.tar
37738 echo Verbose Listing
37739 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37740 echo Extracted directory
37741 tar xf $TEST_DATA_DIR/abc.tar
37744 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37745 at_status=$? at_failed=false
37747 at_fn_diff_devnull "$at_stderr" || at_failed=:
37748 echo >>"$at_stdout"; $as_echo "Short Listing
37752 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37753 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
37754 Extracted directory
37758 $at_diff - "$at_stdout" || at_failed=:
37759 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37760 $at_failed && at_fn_log_failure
37764 $as_echo "$at_srcdir/volsize.at:32:
37767 TEST_TAR_FORMAT=posix
37768 export TEST_TAR_FORMAT
37769 TAR_OPTIONS=\"-H posix\"
37774 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37777 test -z \"\$TEST_DATA_DIR\" && exit 77
37778 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
37781 tar tf \$TEST_DATA_DIR/abc.tar
37782 echo Verbose Listing
37783 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37784 echo Extracted directory
37785 tar xf \$TEST_DATA_DIR/abc.tar
37788 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
37792 TEST_TAR_FORMAT=posix
37793 export TEST_TAR_FORMAT
37794 TAR_OPTIONS="-H posix"
37799 test -z "`sort < /dev/null 2>&1`" || exit 77
37802 test -z "$TEST_DATA_DIR" && exit 77
37803 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37806 tar tf $TEST_DATA_DIR/abc.tar
37807 echo Verbose Listing
37808 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37809 echo Extracted directory
37810 tar xf $TEST_DATA_DIR/abc.tar
37813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37814 at_status=$? at_failed=false
37816 at_fn_diff_devnull "$at_stderr" || at_failed=:
37817 echo >>"$at_stdout"; $as_echo "Short Listing
37821 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37822 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
37823 Extracted directory
37827 $at_diff - "$at_stdout" || at_failed=:
37828 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37829 $at_failed && at_fn_log_failure
37833 $as_echo "$at_srcdir/volsize.at:32:
37836 TEST_TAR_FORMAT=gnu
37837 export TEST_TAR_FORMAT
37838 TAR_OPTIONS=\"-H gnu\"
37843 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
37846 test -z \"\$TEST_DATA_DIR\" && exit 77
37847 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
37850 tar tf \$TEST_DATA_DIR/abc.tar
37851 echo Verbose Listing
37852 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37853 echo Extracted directory
37854 tar xf \$TEST_DATA_DIR/abc.tar
37857 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
37861 TEST_TAR_FORMAT=gnu
37862 export TEST_TAR_FORMAT
37863 TAR_OPTIONS="-H gnu"
37868 test -z "`sort < /dev/null 2>&1`" || exit 77
37871 test -z "$TEST_DATA_DIR" && exit 77
37872 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37875 tar tf $TEST_DATA_DIR/abc.tar
37876 echo Verbose Listing
37877 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37878 echo Extracted directory
37879 tar xf $TEST_DATA_DIR/abc.tar
37882 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37883 at_status=$? at_failed=false
37885 at_fn_diff_devnull "$at_stderr" || at_failed=:
37886 echo >>"$at_stdout"; $as_echo "Short Listing
37890 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37891 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
37892 Extracted directory
37896 $at_diff - "$at_stdout" || at_failed=:
37897 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37898 $at_failed && at_fn_log_failure
37905 $at_times_p && times >"$at_times_file"
37906 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37907 read at_status <"$at_status_file"
37910 at_fn_group_banner 154 'comprec.at:22' \
37911 "compressed format recognition" " " 23
37913 test -f $XFAILFILE && at_xfail=yes
37915 $as_echo "154. $at_setup_line: testing $at_desc ..."
37924 $as_echo "$at_srcdir/comprec.at:26:
37928 export TEST_TAR_FORMAT
37929 TAR_OPTIONS=\"-H v7\"
37934 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37936 genfile --length 10240 --file file1
37938 tar cfz archive file1
37941 tar xfv archive --warning=no-timestamp
37944 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:26"
37949 export TEST_TAR_FORMAT
37950 TAR_OPTIONS="-H v7"
37955 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37957 genfile --length 10240 --file file1
37959 tar cfz archive file1
37962 tar xfv archive --warning=no-timestamp
37965 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37966 at_status=$? at_failed=false
37968 at_fn_diff_devnull "$at_stderr" || at_failed=:
37969 echo >>"$at_stdout"; $as_echo "separator
37973 $at_diff - "$at_stdout" || at_failed=:
37974 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:26"
37975 $at_failed && at_fn_log_failure
37979 $as_echo "$at_srcdir/comprec.at:26:
37982 TEST_TAR_FORMAT=oldgnu
37983 export TEST_TAR_FORMAT
37984 TAR_OPTIONS=\"-H oldgnu\"
37989 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37991 genfile --length 10240 --file file1
37993 tar cfz archive file1
37996 tar xfv archive --warning=no-timestamp
37999 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:26"
38003 TEST_TAR_FORMAT=oldgnu
38004 export TEST_TAR_FORMAT
38005 TAR_OPTIONS="-H oldgnu"
38010 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38012 genfile --length 10240 --file file1
38014 tar cfz archive file1
38017 tar xfv archive --warning=no-timestamp
38020 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38021 at_status=$? at_failed=false
38023 at_fn_diff_devnull "$at_stderr" || at_failed=:
38024 echo >>"$at_stdout"; $as_echo "separator
38028 $at_diff - "$at_stdout" || at_failed=:
38029 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:26"
38030 $at_failed && at_fn_log_failure
38034 $as_echo "$at_srcdir/comprec.at:26:
38037 TEST_TAR_FORMAT=ustar
38038 export TEST_TAR_FORMAT
38039 TAR_OPTIONS=\"-H ustar\"
38044 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38046 genfile --length 10240 --file file1
38048 tar cfz archive file1
38051 tar xfv archive --warning=no-timestamp
38054 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:26"
38058 TEST_TAR_FORMAT=ustar
38059 export TEST_TAR_FORMAT
38060 TAR_OPTIONS="-H ustar"
38065 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38067 genfile --length 10240 --file file1
38069 tar cfz archive file1
38072 tar xfv archive --warning=no-timestamp
38075 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38076 at_status=$? at_failed=false
38078 at_fn_diff_devnull "$at_stderr" || at_failed=:
38079 echo >>"$at_stdout"; $as_echo "separator
38083 $at_diff - "$at_stdout" || at_failed=:
38084 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:26"
38085 $at_failed && at_fn_log_failure
38089 $as_echo "$at_srcdir/comprec.at:26:
38092 TEST_TAR_FORMAT=posix
38093 export TEST_TAR_FORMAT
38094 TAR_OPTIONS=\"-H posix\"
38099 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38101 genfile --length 10240 --file file1
38103 tar cfz archive file1
38106 tar xfv archive --warning=no-timestamp
38109 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:26"
38113 TEST_TAR_FORMAT=posix
38114 export TEST_TAR_FORMAT
38115 TAR_OPTIONS="-H posix"
38120 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38122 genfile --length 10240 --file file1
38124 tar cfz archive file1
38127 tar xfv archive --warning=no-timestamp
38130 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38131 at_status=$? at_failed=false
38133 at_fn_diff_devnull "$at_stderr" || at_failed=:
38134 echo >>"$at_stdout"; $as_echo "separator
38138 $at_diff - "$at_stdout" || at_failed=:
38139 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:26"
38140 $at_failed && at_fn_log_failure
38144 $as_echo "$at_srcdir/comprec.at:26:
38147 TEST_TAR_FORMAT=gnu
38148 export TEST_TAR_FORMAT
38149 TAR_OPTIONS=\"-H gnu\"
38154 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38156 genfile --length 10240 --file file1
38158 tar cfz archive file1
38161 tar xfv archive --warning=no-timestamp
38164 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:26"
38168 TEST_TAR_FORMAT=gnu
38169 export TEST_TAR_FORMAT
38170 TAR_OPTIONS="-H gnu"
38175 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38177 genfile --length 10240 --file file1
38179 tar cfz archive file1
38182 tar xfv archive --warning=no-timestamp
38185 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38186 at_status=$? at_failed=false
38188 at_fn_diff_devnull "$at_stderr" || at_failed=:
38189 echo >>"$at_stdout"; $as_echo "separator
38193 $at_diff - "$at_stdout" || at_failed=:
38194 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:26"
38195 $at_failed && at_fn_log_failure
38202 $at_times_p && times >"$at_times_file"
38203 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38204 read at_status <"$at_status_file"
38207 at_fn_group_banner 155 'shortfile.at:26' \
38208 "short input files" " " 23
38210 test -f $XFAILFILE && at_xfail=yes
38212 $as_echo "155. $at_setup_line: testing $at_desc ..."
38220 $as_echo "$at_srcdir/shortfile.at:29:
38223 TEST_TAR_FORMAT=gnu
38224 export TEST_TAR_FORMAT
38225 TAR_OPTIONS=\"-H gnu\"
38229 genfile --length 511 --file foo || exit 5
38232 at_fn_check_prepare_notrace 'an embedded newline' "shortfile.at:29"
38236 TEST_TAR_FORMAT=gnu
38237 export TEST_TAR_FORMAT
38238 TAR_OPTIONS="-H gnu"
38242 genfile --length 511 --file foo || exit 5
38245 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38246 at_status=$? at_failed=false
38248 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
38249 tar: Exiting with failure status due to previous errors
38251 $at_diff - "$at_stderr" || at_failed=:
38252 at_fn_diff_devnull "$at_stdout" || at_failed=:
38253 at_fn_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
38254 $at_failed && at_fn_log_failure
38261 $at_times_p && times >"$at_times_file"
38262 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38263 read at_status <"$at_status_file"
38266 at_fn_group_banner 156 'shortupd.at:31' \
38267 "updating short archives" " " 23
38269 test -f $XFAILFILE && at_xfail=yes
38271 $as_echo "156. $at_setup_line: testing $at_desc ..."
38279 $as_echo "$at_srcdir/shortupd.at:34:
38283 export TEST_TAR_FORMAT
38284 TAR_OPTIONS=\"-H v7\"
38291 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
38296 export TEST_TAR_FORMAT
38297 TAR_OPTIONS="-H v7"
38304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38305 at_status=$? at_failed=false
38307 at_fn_diff_devnull "$at_stderr" || at_failed=:
38308 at_fn_diff_devnull "$at_stdout" || at_failed=:
38309 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
38310 $at_failed && at_fn_log_failure
38314 $as_echo "$at_srcdir/shortupd.at:34:
38317 TEST_TAR_FORMAT=oldgnu
38318 export TEST_TAR_FORMAT
38319 TAR_OPTIONS=\"-H oldgnu\"
38326 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
38330 TEST_TAR_FORMAT=oldgnu
38331 export TEST_TAR_FORMAT
38332 TAR_OPTIONS="-H oldgnu"
38339 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38340 at_status=$? at_failed=false
38342 at_fn_diff_devnull "$at_stderr" || at_failed=:
38343 at_fn_diff_devnull "$at_stdout" || at_failed=:
38344 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
38345 $at_failed && at_fn_log_failure
38349 $as_echo "$at_srcdir/shortupd.at:34:
38352 TEST_TAR_FORMAT=ustar
38353 export TEST_TAR_FORMAT
38354 TAR_OPTIONS=\"-H ustar\"
38361 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
38365 TEST_TAR_FORMAT=ustar
38366 export TEST_TAR_FORMAT
38367 TAR_OPTIONS="-H ustar"
38374 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38375 at_status=$? at_failed=false
38377 at_fn_diff_devnull "$at_stderr" || at_failed=:
38378 at_fn_diff_devnull "$at_stdout" || at_failed=:
38379 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
38380 $at_failed && at_fn_log_failure
38384 $as_echo "$at_srcdir/shortupd.at:34:
38387 TEST_TAR_FORMAT=posix
38388 export TEST_TAR_FORMAT
38389 TAR_OPTIONS=\"-H posix\"
38396 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
38400 TEST_TAR_FORMAT=posix
38401 export TEST_TAR_FORMAT
38402 TAR_OPTIONS="-H posix"
38409 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38410 at_status=$? at_failed=false
38412 at_fn_diff_devnull "$at_stderr" || at_failed=:
38413 at_fn_diff_devnull "$at_stdout" || at_failed=:
38414 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
38415 $at_failed && at_fn_log_failure
38419 $as_echo "$at_srcdir/shortupd.at:34:
38422 TEST_TAR_FORMAT=gnu
38423 export TEST_TAR_FORMAT
38424 TAR_OPTIONS=\"-H gnu\"
38431 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
38435 TEST_TAR_FORMAT=gnu
38436 export TEST_TAR_FORMAT
38437 TAR_OPTIONS="-H gnu"
38444 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38445 at_status=$? at_failed=false
38447 at_fn_diff_devnull "$at_stderr" || at_failed=:
38448 at_fn_diff_devnull "$at_stdout" || at_failed=:
38449 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
38450 $at_failed && at_fn_log_failure
38457 $at_times_p && times >"$at_times_file"
38458 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38459 read at_status <"$at_status_file"
38462 at_fn_group_banner 157 'truncate.at:29' \
38465 test -f $XFAILFILE && at_xfail=yes
38467 $as_echo "157. $at_setup_line: testing $at_desc ..."
38475 $as_echo "$at_srcdir/truncate.at:32:
38479 export TEST_TAR_FORMAT
38480 TAR_OPTIONS=\"-H v7\"
38484 genfile --file foo --length 200k
38486 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38487 echo Exit status: \$?
38489 genfile --file foo --seek 195k --length 5k --pattern=zeros
38491 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
38496 export TEST_TAR_FORMAT
38497 TAR_OPTIONS="-H v7"
38501 genfile --file foo --length 200k
38503 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38504 echo Exit status: $?
38506 genfile --file foo --seek 195k --length 5k --pattern=zeros
38508 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38509 at_status=$? at_failed=false
38511 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38513 $at_diff - "$at_stderr" || at_failed=:
38514 echo >>"$at_stdout"; $as_echo "foo
38519 foo: Mod time differs
38522 $at_diff - "$at_stdout" || at_failed=:
38523 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38524 $at_failed && at_fn_log_failure
38528 $as_echo "$at_srcdir/truncate.at:32:
38531 TEST_TAR_FORMAT=oldgnu
38532 export TEST_TAR_FORMAT
38533 TAR_OPTIONS=\"-H oldgnu\"
38537 genfile --file foo --length 200k
38539 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38540 echo Exit status: \$?
38542 genfile --file foo --seek 195k --length 5k --pattern=zeros
38544 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
38548 TEST_TAR_FORMAT=oldgnu
38549 export TEST_TAR_FORMAT
38550 TAR_OPTIONS="-H oldgnu"
38554 genfile --file foo --length 200k
38556 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38557 echo Exit status: $?
38559 genfile --file foo --seek 195k --length 5k --pattern=zeros
38561 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38562 at_status=$? at_failed=false
38564 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38566 $at_diff - "$at_stderr" || at_failed=:
38567 echo >>"$at_stdout"; $as_echo "foo
38572 foo: Mod time differs
38575 $at_diff - "$at_stdout" || at_failed=:
38576 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38577 $at_failed && at_fn_log_failure
38581 $as_echo "$at_srcdir/truncate.at:32:
38584 TEST_TAR_FORMAT=ustar
38585 export TEST_TAR_FORMAT
38586 TAR_OPTIONS=\"-H ustar\"
38590 genfile --file foo --length 200k
38592 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38593 echo Exit status: \$?
38595 genfile --file foo --seek 195k --length 5k --pattern=zeros
38597 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
38601 TEST_TAR_FORMAT=ustar
38602 export TEST_TAR_FORMAT
38603 TAR_OPTIONS="-H ustar"
38607 genfile --file foo --length 200k
38609 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38610 echo Exit status: $?
38612 genfile --file foo --seek 195k --length 5k --pattern=zeros
38614 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38615 at_status=$? at_failed=false
38617 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38619 $at_diff - "$at_stderr" || at_failed=:
38620 echo >>"$at_stdout"; $as_echo "foo
38625 foo: Mod time differs
38628 $at_diff - "$at_stdout" || at_failed=:
38629 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38630 $at_failed && at_fn_log_failure
38634 $as_echo "$at_srcdir/truncate.at:32:
38637 TEST_TAR_FORMAT=posix
38638 export TEST_TAR_FORMAT
38639 TAR_OPTIONS=\"-H posix\"
38643 genfile --file foo --length 200k
38645 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38646 echo Exit status: \$?
38648 genfile --file foo --seek 195k --length 5k --pattern=zeros
38650 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
38654 TEST_TAR_FORMAT=posix
38655 export TEST_TAR_FORMAT
38656 TAR_OPTIONS="-H posix"
38660 genfile --file foo --length 200k
38662 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38663 echo Exit status: $?
38665 genfile --file foo --seek 195k --length 5k --pattern=zeros
38667 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38668 at_status=$? at_failed=false
38670 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38672 $at_diff - "$at_stderr" || at_failed=:
38673 echo >>"$at_stdout"; $as_echo "foo
38678 foo: Mod time differs
38681 $at_diff - "$at_stdout" || at_failed=:
38682 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38683 $at_failed && at_fn_log_failure
38687 $as_echo "$at_srcdir/truncate.at:32:
38690 TEST_TAR_FORMAT=gnu
38691 export TEST_TAR_FORMAT
38692 TAR_OPTIONS=\"-H gnu\"
38696 genfile --file foo --length 200k
38698 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38699 echo Exit status: \$?
38701 genfile --file foo --seek 195k --length 5k --pattern=zeros
38703 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
38707 TEST_TAR_FORMAT=gnu
38708 export TEST_TAR_FORMAT
38709 TAR_OPTIONS="-H gnu"
38713 genfile --file foo --length 200k
38715 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38716 echo Exit status: $?
38718 genfile --file foo --seek 195k --length 5k --pattern=zeros
38720 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38721 at_status=$? at_failed=false
38723 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38725 $at_diff - "$at_stderr" || at_failed=:
38726 echo >>"$at_stdout"; $as_echo "foo
38731 foo: Mod time differs
38734 $at_diff - "$at_stdout" || at_failed=:
38735 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38736 $at_failed && at_fn_log_failure
38743 $at_times_p && times >"$at_times_file"
38744 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38745 read at_status <"$at_status_file"
38748 at_fn_group_banner 158 'grow.at:24' \
38751 test -f $XFAILFILE && at_xfail=yes
38753 $as_echo "158. $at_setup_line: testing $at_desc ..."
38761 $as_echo "$at_srcdir/grow.at:27:
38765 export TEST_TAR_FORMAT
38766 TAR_OPTIONS=\"-H v7\"
38770 genfile --file foo --length 50000k
38772 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38774 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
38779 export TEST_TAR_FORMAT
38780 TAR_OPTIONS="-H v7"
38784 genfile --file foo --length 50000k
38786 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38788 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38789 at_status=$? at_failed=false
38791 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38793 $at_diff - "$at_stderr" || at_failed=:
38794 echo >>"$at_stdout"; $as_echo "foo
38797 $at_diff - "$at_stdout" || at_failed=:
38798 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
38799 $at_failed && at_fn_log_failure
38803 $as_echo "$at_srcdir/grow.at:27:
38806 TEST_TAR_FORMAT=oldgnu
38807 export TEST_TAR_FORMAT
38808 TAR_OPTIONS=\"-H oldgnu\"
38812 genfile --file foo --length 50000k
38814 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38816 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
38820 TEST_TAR_FORMAT=oldgnu
38821 export TEST_TAR_FORMAT
38822 TAR_OPTIONS="-H oldgnu"
38826 genfile --file foo --length 50000k
38828 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38830 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38831 at_status=$? at_failed=false
38833 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38835 $at_diff - "$at_stderr" || at_failed=:
38836 echo >>"$at_stdout"; $as_echo "foo
38839 $at_diff - "$at_stdout" || at_failed=:
38840 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
38841 $at_failed && at_fn_log_failure
38845 $as_echo "$at_srcdir/grow.at:27:
38848 TEST_TAR_FORMAT=ustar
38849 export TEST_TAR_FORMAT
38850 TAR_OPTIONS=\"-H ustar\"
38854 genfile --file foo --length 50000k
38856 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38858 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
38862 TEST_TAR_FORMAT=ustar
38863 export TEST_TAR_FORMAT
38864 TAR_OPTIONS="-H ustar"
38868 genfile --file foo --length 50000k
38870 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38872 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38873 at_status=$? at_failed=false
38875 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38877 $at_diff - "$at_stderr" || at_failed=:
38878 echo >>"$at_stdout"; $as_echo "foo
38881 $at_diff - "$at_stdout" || at_failed=:
38882 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
38883 $at_failed && at_fn_log_failure
38887 $as_echo "$at_srcdir/grow.at:27:
38890 TEST_TAR_FORMAT=posix
38891 export TEST_TAR_FORMAT
38892 TAR_OPTIONS=\"-H posix\"
38896 genfile --file foo --length 50000k
38898 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38900 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
38904 TEST_TAR_FORMAT=posix
38905 export TEST_TAR_FORMAT
38906 TAR_OPTIONS="-H posix"
38910 genfile --file foo --length 50000k
38912 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38914 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38915 at_status=$? at_failed=false
38917 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38919 $at_diff - "$at_stderr" || at_failed=:
38920 echo >>"$at_stdout"; $as_echo "foo
38923 $at_diff - "$at_stdout" || at_failed=:
38924 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
38925 $at_failed && at_fn_log_failure
38929 $as_echo "$at_srcdir/grow.at:27:
38932 TEST_TAR_FORMAT=gnu
38933 export TEST_TAR_FORMAT
38934 TAR_OPTIONS=\"-H gnu\"
38938 genfile --file foo --length 50000k
38940 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38942 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
38946 TEST_TAR_FORMAT=gnu
38947 export TEST_TAR_FORMAT
38948 TAR_OPTIONS="-H gnu"
38952 genfile --file foo --length 50000k
38954 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38957 at_status=$? at_failed=false
38959 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38961 $at_diff - "$at_stderr" || at_failed=:
38962 echo >>"$at_stdout"; $as_echo "foo
38965 $at_diff - "$at_stdout" || at_failed=:
38966 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
38967 $at_failed && at_fn_log_failure
38974 $at_times_p && times >"$at_times_file"
38975 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38976 read at_status <"$at_status_file"
38979 at_fn_group_banner 159 'sigpipe.at:21' \
38980 "sigpipe handling" " " 23
38983 $as_echo "159. $at_setup_line: testing $at_desc ..."
38988 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
38989 # error" diagnostics when piping output to another programs.
38990 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
38991 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
38992 # <20100319184141.GC30047@wo.int.altlinux.org>
38995 $as_echo "$at_srcdir/sigpipe.at:30:
38997 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
39002 genfile --length 2048 --file first
39003 genfile --length 2048 --file second
39004 genfile --length 2049 --file third
39006 tar cf archive first second third
39008 # Discard diagnostics that some shells generate about broken pipes.
39009 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
39011 at_fn_check_prepare_notrace 'a `...` command substitution' "sigpipe.at:30"
39014 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
39019 genfile --length 2048 --file first
39020 genfile --length 2048 --file second
39021 genfile --length 2049 --file third
39023 tar cf archive first second third
39025 # Discard diagnostics that some shells generate about broken pipes.
39026 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
39028 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39029 at_status=$? at_failed=false
39031 at_fn_diff_devnull "$at_stderr" || at_failed=:
39032 at_fn_diff_devnull "$at_stdout" || at_failed=:
39033 at_fn_check_status 0 $at_status "$at_srcdir/sigpipe.at:30"
39034 $at_failed && at_fn_log_failure
39039 $at_times_p && times >"$at_times_file"
39040 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39041 read at_status <"$at_status_file"
39044 at_fn_group_banner 160 'comperr.at:18' \
39045 "compressor program failure" " " 23
39047 test -f $XFAILFILE && at_xfail=yes
39049 $as_echo "160. $at_setup_line: testing $at_desc ..."
39054 # Description: If the --use-compress-program fails, then it is unsafe
39055 # to assume that the created archive is OK. Tar should fail with a
39056 # prominent error message.
39057 # Reported by: Ole Tange <tange@gnu.org>
39058 # References: <CA+4vN7wLZ-+LK1t7WMkM_b9f3mV9JTnSuPamPn2ciX5PTN=9Xw@mail.gmail.com>,
39059 # http://lists.gnu.org/archive/html/bug-tar/2015-03/msg00002.html
39064 $as_echo "$at_srcdir/comperr.at:28:
39068 export TEST_TAR_FORMAT
39069 TAR_OPTIONS=\"-H v7\"
39073 tar --use-compress-program false -cf a.tar . 2>err
39078 at_fn_check_prepare_notrace 'an embedded newline' "comperr.at:28"
39083 export TEST_TAR_FORMAT
39084 TAR_OPTIONS="-H v7"
39088 tar --use-compress-program false -cf a.tar . 2>err
39093 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39094 at_status=$? at_failed=false
39096 at_fn_diff_devnull "$at_stderr" || at_failed=:
39097 echo >>"$at_stdout"; $as_echo "tar: Error is not recoverable: exiting now
39099 $at_diff - "$at_stdout" || at_failed=:
39100 at_fn_check_status 2 $at_status "$at_srcdir/comperr.at:28"
39101 $at_failed && at_fn_log_failure
39105 $as_echo "$at_srcdir/comperr.at:28:
39108 TEST_TAR_FORMAT=oldgnu
39109 export TEST_TAR_FORMAT
39110 TAR_OPTIONS=\"-H oldgnu\"
39114 tar --use-compress-program false -cf a.tar . 2>err
39119 at_fn_check_prepare_notrace 'an embedded newline' "comperr.at:28"
39123 TEST_TAR_FORMAT=oldgnu
39124 export TEST_TAR_FORMAT
39125 TAR_OPTIONS="-H oldgnu"
39129 tar --use-compress-program false -cf a.tar . 2>err
39134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39135 at_status=$? at_failed=false
39137 at_fn_diff_devnull "$at_stderr" || at_failed=:
39138 echo >>"$at_stdout"; $as_echo "tar: Error is not recoverable: exiting now
39140 $at_diff - "$at_stdout" || at_failed=:
39141 at_fn_check_status 2 $at_status "$at_srcdir/comperr.at:28"
39142 $at_failed && at_fn_log_failure
39146 $as_echo "$at_srcdir/comperr.at:28:
39149 TEST_TAR_FORMAT=ustar
39150 export TEST_TAR_FORMAT
39151 TAR_OPTIONS=\"-H ustar\"
39155 tar --use-compress-program false -cf a.tar . 2>err
39160 at_fn_check_prepare_notrace 'an embedded newline' "comperr.at:28"
39164 TEST_TAR_FORMAT=ustar
39165 export TEST_TAR_FORMAT
39166 TAR_OPTIONS="-H ustar"
39170 tar --use-compress-program false -cf a.tar . 2>err
39175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39176 at_status=$? at_failed=false
39178 at_fn_diff_devnull "$at_stderr" || at_failed=:
39179 echo >>"$at_stdout"; $as_echo "tar: Error is not recoverable: exiting now
39181 $at_diff - "$at_stdout" || at_failed=:
39182 at_fn_check_status 2 $at_status "$at_srcdir/comperr.at:28"
39183 $at_failed && at_fn_log_failure
39187 $as_echo "$at_srcdir/comperr.at:28:
39190 TEST_TAR_FORMAT=posix
39191 export TEST_TAR_FORMAT
39192 TAR_OPTIONS=\"-H posix\"
39196 tar --use-compress-program false -cf a.tar . 2>err
39201 at_fn_check_prepare_notrace 'an embedded newline' "comperr.at:28"
39205 TEST_TAR_FORMAT=posix
39206 export TEST_TAR_FORMAT
39207 TAR_OPTIONS="-H posix"
39211 tar --use-compress-program false -cf a.tar . 2>err
39216 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39217 at_status=$? at_failed=false
39219 at_fn_diff_devnull "$at_stderr" || at_failed=:
39220 echo >>"$at_stdout"; $as_echo "tar: Error is not recoverable: exiting now
39222 $at_diff - "$at_stdout" || at_failed=:
39223 at_fn_check_status 2 $at_status "$at_srcdir/comperr.at:28"
39224 $at_failed && at_fn_log_failure
39228 $as_echo "$at_srcdir/comperr.at:28:
39231 TEST_TAR_FORMAT=gnu
39232 export TEST_TAR_FORMAT
39233 TAR_OPTIONS=\"-H gnu\"
39237 tar --use-compress-program false -cf a.tar . 2>err
39242 at_fn_check_prepare_notrace 'an embedded newline' "comperr.at:28"
39246 TEST_TAR_FORMAT=gnu
39247 export TEST_TAR_FORMAT
39248 TAR_OPTIONS="-H gnu"
39252 tar --use-compress-program false -cf a.tar . 2>err
39257 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39258 at_status=$? at_failed=false
39260 at_fn_diff_devnull "$at_stderr" || at_failed=:
39261 echo >>"$at_stdout"; $as_echo "tar: Error is not recoverable: exiting now
39263 $at_diff - "$at_stdout" || at_failed=:
39264 at_fn_check_status 2 $at_status "$at_srcdir/comperr.at:28"
39265 $at_failed && at_fn_log_failure
39272 $at_times_p && times >"$at_times_file"
39273 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39274 read at_status <"$at_status_file"
39277 at_fn_group_banner 161 'remfiles01.at:28' \
39278 "remove-files with compression" " " 24
39281 $as_echo "161. $at_setup_line: testing $at_desc ..."
39288 $as_echo "$at_srcdir/remfiles01.at:32:
39290 echo \"test\" > \$\$
39292 cat \$\$ > /dev/null 2>&1
39295 test \$result -eq 0 && exit 77
39298 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39301 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
39306 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39311 genfile --file a --length 0
39316 # Depending on when the SIGPIPE gets delivered, the invocation below
39317 # may finish with either
39318 # tar: a: Cannot write: Broken pipe
39320 # tar: Child returned status 2
39322 # Discard diagnostics that some shells generate about broken pipes,
39323 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
39324 # Gzip's exit code is propagated to the shell. Usually it is 141.
39325 # Convert all non-zero exits to 2 to make it predictable.
39326 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
39328 sed -n '/(child)/p' err >&2
39333 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles01.at:32"
39338 cat $$ > /dev/null 2>&1
39341 test $result -eq 0 && exit 77
39344 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39347 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
39352 test -z "`sort < /dev/null 2>&1`" || exit 77
39357 genfile --file a --length 0
39362 # Depending on when the SIGPIPE gets delivered, the invocation below
39363 # may finish with either
39364 # tar: a: Cannot write: Broken pipe
39366 # tar: Child returned status 2
39368 # Discard diagnostics that some shells generate about broken pipes,
39369 # and discard all of tar's diagnostics except for the ones saying "(child)".
39370 # Gzip's exit code is propagated to the shell. Usually it is 141.
39371 # Convert all non-zero exits to 2 to make it predictable.
39372 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
39374 sed -n '/(child)/p' err >&2
39379 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39380 at_status=$? at_failed=false
39382 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
39383 tar (child): Error is not recoverable: exiting now
39385 $at_diff - "$at_stderr" || at_failed=:
39386 echo >>"$at_stdout"; $as_echo ".
39391 $at_diff - "$at_stdout" || at_failed=:
39392 at_fn_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
39393 $at_failed && at_fn_log_failure
39398 $at_times_p && times >"$at_times_file"
39399 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39400 read at_status <"$at_status_file"
39403 at_fn_group_banner 162 'remfiles02.at:28' \
39404 "remove-files with compression: grand-child" " " 24
39407 $as_echo "162. $at_setup_line: testing $at_desc ..."
39414 $as_echo "$at_srcdir/remfiles02.at:32:
39416 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39419 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39428 tar -c -f a -z --remove-files b c 2>err
39430 sed -n '/(child)/p' err >&2
39435 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles02.at:32"
39438 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39441 test -z "`sort < /dev/null 2>&1`" || exit 77
39450 tar -c -f a -z --remove-files b c 2>err
39452 sed -n '/(child)/p' err >&2
39457 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39458 at_status=$? at_failed=false
39460 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
39461 tar (child): Error is not recoverable: exiting now
39463 $at_diff - "$at_stderr" || at_failed=:
39464 echo >>"$at_stdout"; $as_echo ".
39469 $at_diff - "$at_stdout" || at_failed=:
39470 at_fn_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
39471 $at_failed && at_fn_log_failure
39476 $at_times_p && times >"$at_times_file"
39477 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39478 read at_status <"$at_status_file"
39481 at_fn_group_banner 163 'remfiles03.at:28' \
39482 "remove-files with symbolic links" " " 24
39485 $as_echo "163. $at_setup_line: testing $at_desc ..."
39491 $as_echo "$at_srcdir/remfiles03.at:31:
39494 ln -s b a/c || exit 77
39495 tar --remove-files -cf a.tar a
39498 at_fn_check_prepare_notrace 'an embedded newline' "remfiles03.at:31"
39502 ln -s b a/c || exit 77
39503 tar --remove-files -cf a.tar a
39506 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39507 at_status=$? at_failed=false
39509 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
39511 $at_diff - "$at_stderr" || at_failed=:
39512 at_fn_diff_devnull "$at_stdout" || at_failed=:
39513 at_fn_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
39514 $at_failed && at_fn_log_failure
39519 $at_times_p && times >"$at_times_file"
39520 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39521 read at_status <"$at_status_file"
39524 at_fn_group_banner 164 'remfiles04a.at:25' \
39525 "remove-files with -C:rel in -c/non-incr. mode" " " 24
39527 test -f $XFAILFILE && at_xfail=yes
39529 $as_echo "164. $at_setup_line: testing $at_desc ..."
39537 $as_echo "$at_srcdir/remfiles04a.at:28:
39540 TEST_TAR_FORMAT=gnu
39541 export TEST_TAR_FORMAT
39542 TAR_OPTIONS=\"-H gnu\"
39547 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39551 echo foobar > foo/bar
39552 tar -cf foo.tar --remove-files -C foo bar
39556 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04a.at:28"
39560 TEST_TAR_FORMAT=gnu
39561 export TEST_TAR_FORMAT
39562 TAR_OPTIONS="-H gnu"
39567 test -z "`sort < /dev/null 2>&1`" || exit 77
39571 echo foobar > foo/bar
39572 tar -cf foo.tar --remove-files -C foo bar
39576 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39577 at_status=$? at_failed=false
39579 at_fn_diff_devnull "$at_stderr" || at_failed=:
39580 echo >>"$at_stdout"; $as_echo "A
39586 $at_diff - "$at_stdout" || at_failed=:
39587 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04a.at:28"
39588 $at_failed && at_fn_log_failure
39595 $at_times_p && times >"$at_times_file"
39596 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39597 read at_status <"$at_status_file"
39600 at_fn_group_banner 165 'remfiles04b.at:33' \
39601 "remove-files with -C:rel in -c/incr. mode" " " 24
39603 test -f $XFAILFILE && at_xfail=yes
39605 $as_echo "165. $at_setup_line: testing $at_desc ..."
39613 $as_echo "$at_srcdir/remfiles04b.at:36:
39616 TEST_TAR_FORMAT=gnu
39617 export TEST_TAR_FORMAT
39618 TAR_OPTIONS=\"-H gnu\"
39623 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39627 echo foobar > foo/bar
39628 tar -cf foo.tar --incremental --remove-files -C foo bar
39632 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04b.at:36"
39636 TEST_TAR_FORMAT=gnu
39637 export TEST_TAR_FORMAT
39638 TAR_OPTIONS="-H gnu"
39643 test -z "`sort < /dev/null 2>&1`" || exit 77
39647 echo foobar > foo/bar
39648 tar -cf foo.tar --incremental --remove-files -C foo bar
39652 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39653 at_status=$? at_failed=false
39655 at_fn_diff_devnull "$at_stderr" || at_failed=:
39656 echo >>"$at_stdout"; $as_echo "A
39662 $at_diff - "$at_stdout" || at_failed=:
39663 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04b.at:36"
39664 $at_failed && at_fn_log_failure
39671 $at_times_p && times >"$at_times_file"
39672 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39673 read at_status <"$at_status_file"
39676 at_fn_group_banner 166 'remfiles04c.at:33' \
39677 "remove-files with -C:rel in -r mode" " " 24
39679 test -f $XFAILFILE && at_xfail=yes
39681 $as_echo "166. $at_setup_line: testing $at_desc ..."
39689 $as_echo "$at_srcdir/remfiles04c.at:36:
39692 TEST_TAR_FORMAT=gnu
39693 export TEST_TAR_FORMAT
39694 TAR_OPTIONS=\"-H gnu\"
39699 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39703 echo foobar > foo/bar
39704 tar -cf foo.tar -C foo bar
39707 tar -rf foo.tar --remove-files -C foo bar
39711 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04c.at:36"
39715 TEST_TAR_FORMAT=gnu
39716 export TEST_TAR_FORMAT
39717 TAR_OPTIONS="-H gnu"
39722 test -z "`sort < /dev/null 2>&1`" || exit 77
39726 echo foobar > foo/bar
39727 tar -cf foo.tar -C foo bar
39730 tar -rf foo.tar --remove-files -C foo bar
39734 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39735 at_status=$? at_failed=false
39737 at_fn_diff_devnull "$at_stderr" || at_failed=:
39738 echo >>"$at_stdout"; $as_echo "A
39750 $at_diff - "$at_stdout" || at_failed=:
39751 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04c.at:36"
39752 $at_failed && at_fn_log_failure
39759 $at_times_p && times >"$at_times_file"
39760 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39761 read at_status <"$at_status_file"
39764 at_fn_group_banner 167 'remfiles05a.at:34' \
39765 "remove-files with -C:rel,rel in -c/non-incr. mode" "" 24
39767 test -f $XFAILFILE && at_xfail=yes
39769 $as_echo "167. $at_setup_line: testing $at_desc ..."
39777 $as_echo "$at_srcdir/remfiles05a.at:37:
39780 TEST_TAR_FORMAT=gnu
39781 export TEST_TAR_FORMAT
39782 TAR_OPTIONS=\"-H gnu\"
39787 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39792 echo foo/file > foo/file
39793 echo bar/file > bar/file
39795 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
39799 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05a.at:37"
39803 TEST_TAR_FORMAT=gnu
39804 export TEST_TAR_FORMAT
39805 TAR_OPTIONS="-H gnu"
39810 test -z "`sort < /dev/null 2>&1`" || exit 77
39815 echo foo/file > foo/file
39816 echo bar/file > bar/file
39818 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
39822 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39823 at_status=$? at_failed=false
39825 echo >>"$at_stderr"; $as_echo "A
39828 $at_diff - "$at_stderr" || at_failed=:
39829 echo >>"$at_stdout"; $as_echo "A
39839 $at_diff - "$at_stdout" || at_failed=:
39840 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05a.at:37"
39841 $at_failed && at_fn_log_failure
39848 $at_times_p && times >"$at_times_file"
39849 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39850 read at_status <"$at_status_file"
39853 at_fn_group_banner 168 'remfiles05b.at:25' \
39854 "remove-files with -C:rel,rel in -c/incr. mode" " " 24
39856 test -f $XFAILFILE && at_xfail=yes
39858 $as_echo "168. $at_setup_line: testing $at_desc ..."
39866 $as_echo "$at_srcdir/remfiles05b.at:28:
39869 TEST_TAR_FORMAT=gnu
39870 export TEST_TAR_FORMAT
39871 TAR_OPTIONS=\"-H gnu\"
39876 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39881 echo foo/file > foo/file
39882 echo bar/file > bar/file
39884 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
39888 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05b.at:28"
39892 TEST_TAR_FORMAT=gnu
39893 export TEST_TAR_FORMAT
39894 TAR_OPTIONS="-H gnu"
39899 test -z "`sort < /dev/null 2>&1`" || exit 77
39904 echo foo/file > foo/file
39905 echo bar/file > bar/file
39907 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
39911 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39912 at_status=$? at_failed=false
39914 echo >>"$at_stderr"; $as_echo "A
39917 $at_diff - "$at_stderr" || at_failed=:
39918 echo >>"$at_stdout"; $as_echo "A
39928 $at_diff - "$at_stdout" || at_failed=:
39929 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05b.at:28"
39930 $at_failed && at_fn_log_failure
39937 $at_times_p && times >"$at_times_file"
39938 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39939 read at_status <"$at_status_file"
39942 at_fn_group_banner 169 'remfiles05c.at:25' \
39943 "remove-files with -C:rel,rel in -r mode" " " 24
39945 test -f $XFAILFILE && at_xfail=yes
39947 $as_echo "169. $at_setup_line: testing $at_desc ..."
39955 $as_echo "$at_srcdir/remfiles05c.at:28:
39958 TEST_TAR_FORMAT=gnu
39959 export TEST_TAR_FORMAT
39960 TAR_OPTIONS=\"-H gnu\"
39965 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39970 echo foo/file > foo/file
39971 echo bar/file > bar/file
39972 tar -cf foo.tar -C foo file -C ../bar file
39976 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
39980 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05c.at:28"
39984 TEST_TAR_FORMAT=gnu
39985 export TEST_TAR_FORMAT
39986 TAR_OPTIONS="-H gnu"
39991 test -z "`sort < /dev/null 2>&1`" || exit 77
39996 echo foo/file > foo/file
39997 echo bar/file > bar/file
39998 tar -cf foo.tar -C foo file -C ../bar file
40002 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
40006 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40007 at_status=$? at_failed=false
40009 echo >>"$at_stderr"; $as_echo "A
40013 $at_diff - "$at_stderr" || at_failed=:
40014 echo >>"$at_stdout"; $as_echo "A
40032 $at_diff - "$at_stdout" || at_failed=:
40033 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05c.at:28"
40034 $at_failed && at_fn_log_failure
40041 $at_times_p && times >"$at_times_file"
40042 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40043 read at_status <"$at_status_file"
40046 at_fn_group_banner 170 'remfiles06a.at:25' \
40047 "remove-files with -C:rel,abs in -c/non-incr. mode" "" 24
40049 test -f $XFAILFILE && at_xfail=yes
40051 $as_echo "170. $at_setup_line: testing $at_desc ..."
40059 $as_echo "$at_srcdir/remfiles06a.at:28:
40062 TEST_TAR_FORMAT=gnu
40063 export TEST_TAR_FORMAT
40064 TAR_OPTIONS=\"-H gnu\"
40069 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40074 echo foo/file > foo/file
40075 echo bar/file > bar/file
40078 tar -cvf foo.tar --remove-files -C foo file -C \$DIR/bar file
40082 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06a.at:28"
40086 TEST_TAR_FORMAT=gnu
40087 export TEST_TAR_FORMAT
40088 TAR_OPTIONS="-H gnu"
40093 test -z "`sort < /dev/null 2>&1`" || exit 77
40098 echo foo/file > foo/file
40099 echo bar/file > bar/file
40102 tar -cvf foo.tar --remove-files -C foo file -C $DIR/bar file
40106 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40107 at_status=$? at_failed=false
40109 echo >>"$at_stderr"; $as_echo "A
40112 $at_diff - "$at_stderr" || at_failed=:
40113 echo >>"$at_stdout"; $as_echo "A
40123 $at_diff - "$at_stdout" || at_failed=:
40124 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06a.at:28"
40125 $at_failed && at_fn_log_failure
40132 $at_times_p && times >"$at_times_file"
40133 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40134 read at_status <"$at_status_file"
40137 at_fn_group_banner 171 'remfiles06b.at:25' \
40138 "remove-files with -C:rel,abs in -c/incr. mode" " " 24
40140 test -f $XFAILFILE && at_xfail=yes
40142 $as_echo "171. $at_setup_line: testing $at_desc ..."
40150 $as_echo "$at_srcdir/remfiles06b.at:28:
40153 TEST_TAR_FORMAT=gnu
40154 export TEST_TAR_FORMAT
40155 TAR_OPTIONS=\"-H gnu\"
40160 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40165 echo foo/file > foo/file
40166 echo bar/file > bar/file
40169 tar -cvf foo.tar --incremental --remove-files -C foo file -C \$DIR/bar file
40173 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06b.at:28"
40177 TEST_TAR_FORMAT=gnu
40178 export TEST_TAR_FORMAT
40179 TAR_OPTIONS="-H gnu"
40184 test -z "`sort < /dev/null 2>&1`" || exit 77
40189 echo foo/file > foo/file
40190 echo bar/file > bar/file
40193 tar -cvf foo.tar --incremental --remove-files -C foo file -C $DIR/bar file
40197 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40198 at_status=$? at_failed=false
40200 echo >>"$at_stderr"; $as_echo "A
40203 $at_diff - "$at_stderr" || at_failed=:
40204 echo >>"$at_stdout"; $as_echo "A
40214 $at_diff - "$at_stdout" || at_failed=:
40215 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06b.at:28"
40216 $at_failed && at_fn_log_failure
40223 $at_times_p && times >"$at_times_file"
40224 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40225 read at_status <"$at_status_file"
40228 at_fn_group_banner 172 'remfiles06c.at:25' \
40229 "remove-files with -C:rel,abs in -r mode" " " 24
40231 test -f $XFAILFILE && at_xfail=yes
40233 $as_echo "172. $at_setup_line: testing $at_desc ..."
40241 $as_echo "$at_srcdir/remfiles06c.at:28:
40244 TEST_TAR_FORMAT=gnu
40245 export TEST_TAR_FORMAT
40246 TAR_OPTIONS=\"-H gnu\"
40251 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40256 echo foo/file > foo/file
40257 echo bar/file > bar/file
40259 tar -cf foo.tar -C foo file -C \$DIR/bar file
40263 tar -rvf foo.tar --remove-files -C foo file -C \$DIR/bar file
40267 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06c.at:28"
40271 TEST_TAR_FORMAT=gnu
40272 export TEST_TAR_FORMAT
40273 TAR_OPTIONS="-H gnu"
40278 test -z "`sort < /dev/null 2>&1`" || exit 77
40283 echo foo/file > foo/file
40284 echo bar/file > bar/file
40286 tar -cf foo.tar -C foo file -C $DIR/bar file
40290 tar -rvf foo.tar --remove-files -C foo file -C $DIR/bar file
40294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40295 at_status=$? at_failed=false
40297 echo >>"$at_stderr"; $as_echo "A
40301 $at_diff - "$at_stderr" || at_failed=:
40302 echo >>"$at_stdout"; $as_echo "A
40320 $at_diff - "$at_stdout" || at_failed=:
40321 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06c.at:28"
40322 $at_failed && at_fn_log_failure
40329 $at_times_p && times >"$at_times_file"
40330 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40331 read at_status <"$at_status_file"
40334 at_fn_group_banner 173 'remfiles07a.at:25' \
40335 "remove-files with -C:abs,rel in -c/non-incr. mode" "" 24
40337 test -f $XFAILFILE && at_xfail=yes
40339 $as_echo "173. $at_setup_line: testing $at_desc ..."
40347 $as_echo "$at_srcdir/remfiles07a.at:28:
40350 TEST_TAR_FORMAT=gnu
40351 export TEST_TAR_FORMAT
40352 TAR_OPTIONS=\"-H gnu\"
40357 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40362 echo foo/file > foo/file
40363 echo bar/file > bar/file
40366 tar -cvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
40370 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07a.at:28"
40374 TEST_TAR_FORMAT=gnu
40375 export TEST_TAR_FORMAT
40376 TAR_OPTIONS="-H gnu"
40381 test -z "`sort < /dev/null 2>&1`" || exit 77
40386 echo foo/file > foo/file
40387 echo bar/file > bar/file
40390 tar -cvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
40394 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40395 at_status=$? at_failed=false
40397 echo >>"$at_stderr"; $as_echo "A
40400 $at_diff - "$at_stderr" || at_failed=:
40401 echo >>"$at_stdout"; $as_echo "A
40411 $at_diff - "$at_stdout" || at_failed=:
40412 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07a.at:28"
40413 $at_failed && at_fn_log_failure
40420 $at_times_p && times >"$at_times_file"
40421 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40422 read at_status <"$at_status_file"
40425 at_fn_group_banner 174 'remfiles07b.at:25' \
40426 "remove-files with -C:abs,rel in -c/incr. mode" " " 24
40428 test -f $XFAILFILE && at_xfail=yes
40430 $as_echo "174. $at_setup_line: testing $at_desc ..."
40438 $as_echo "$at_srcdir/remfiles07b.at:28:
40441 TEST_TAR_FORMAT=gnu
40442 export TEST_TAR_FORMAT
40443 TAR_OPTIONS=\"-H gnu\"
40448 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40453 echo foo/file > foo/file
40454 echo bar/file > bar/file
40457 tar -cvf foo.tar --incremental --remove-files -C \$DIR/foo file -C ../bar file
40461 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07b.at:28"
40465 TEST_TAR_FORMAT=gnu
40466 export TEST_TAR_FORMAT
40467 TAR_OPTIONS="-H gnu"
40472 test -z "`sort < /dev/null 2>&1`" || exit 77
40477 echo foo/file > foo/file
40478 echo bar/file > bar/file
40481 tar -cvf foo.tar --incremental --remove-files -C $DIR/foo file -C ../bar file
40485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40486 at_status=$? at_failed=false
40488 echo >>"$at_stderr"; $as_echo "A
40491 $at_diff - "$at_stderr" || at_failed=:
40492 echo >>"$at_stdout"; $as_echo "A
40502 $at_diff - "$at_stdout" || at_failed=:
40503 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07b.at:28"
40504 $at_failed && at_fn_log_failure
40511 $at_times_p && times >"$at_times_file"
40512 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40513 read at_status <"$at_status_file"
40516 at_fn_group_banner 175 'remfiles07c.at:25' \
40517 "remove-files with -C:abs,rel in -r mode" " " 24
40519 test -f $XFAILFILE && at_xfail=yes
40521 $as_echo "175. $at_setup_line: testing $at_desc ..."
40529 $as_echo "$at_srcdir/remfiles07c.at:28:
40532 TEST_TAR_FORMAT=gnu
40533 export TEST_TAR_FORMAT
40534 TAR_OPTIONS=\"-H gnu\"
40539 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40544 echo foo/file > foo/file
40545 echo bar/file > bar/file
40547 tar -cf foo.tar -C \$DIR/foo file -C ../bar file
40551 tar -rvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
40555 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07c.at:28"
40559 TEST_TAR_FORMAT=gnu
40560 export TEST_TAR_FORMAT
40561 TAR_OPTIONS="-H gnu"
40566 test -z "`sort < /dev/null 2>&1`" || exit 77
40571 echo foo/file > foo/file
40572 echo bar/file > bar/file
40574 tar -cf foo.tar -C $DIR/foo file -C ../bar file
40578 tar -rvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
40582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40583 at_status=$? at_failed=false
40585 echo >>"$at_stderr"; $as_echo "A
40589 $at_diff - "$at_stderr" || at_failed=:
40590 echo >>"$at_stdout"; $as_echo "A
40608 $at_diff - "$at_stdout" || at_failed=:
40609 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07c.at:28"
40610 $at_failed && at_fn_log_failure
40617 $at_times_p && times >"$at_times_file"
40618 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40619 read at_status <"$at_status_file"
40622 at_fn_group_banner 176 'remfiles08a.at:28' \
40623 "remove-files deleting two subdirs in -c/non-incr. mode" "" 24
40625 test -f $XFAILFILE && at_xfail=yes
40627 $as_echo "176. $at_setup_line: testing $at_desc ..."
40635 $as_echo "$at_srcdir/remfiles08a.at:31:
40638 TEST_TAR_FORMAT=gnu
40639 export TEST_TAR_FORMAT
40640 TAR_OPTIONS=\"-H gnu\"
40646 echo foo/foo_file > foo/foo_file
40647 echo bar/bar_file > bar/bar_file
40649 tar -cvf foo.tar --remove-files -C foo . -C ../bar .
40653 at_fn_check_prepare_notrace 'an embedded newline' "remfiles08a.at:31"
40657 TEST_TAR_FORMAT=gnu
40658 export TEST_TAR_FORMAT
40659 TAR_OPTIONS="-H gnu"
40665 echo foo/foo_file > foo/foo_file
40666 echo bar/bar_file > bar/bar_file
40668 tar -cvf foo.tar --remove-files -C foo . -C ../bar .
40672 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40673 at_status=$? at_failed=false
40675 echo >>"$at_stderr"; $as_echo "A
40678 $at_diff - "$at_stderr" || at_failed=:
40679 echo >>"$at_stdout"; $as_echo "A
40688 $at_diff - "$at_stdout" || at_failed=:
40689 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08a.at:31"
40690 $at_failed && at_fn_log_failure
40697 $at_times_p && times >"$at_times_file"
40698 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40699 read at_status <"$at_status_file"
40702 at_fn_group_banner 177 'remfiles08b.at:31' \
40703 "remove-files deleting two subdirs in -c/incr. mode" "" 24
40705 test -f $XFAILFILE && at_xfail=yes
40707 $as_echo "177. $at_setup_line: testing $at_desc ..."
40715 $as_echo "$at_srcdir/remfiles08b.at:34:
40718 TEST_TAR_FORMAT=gnu
40719 export TEST_TAR_FORMAT
40720 TAR_OPTIONS=\"-H gnu\"
40726 echo foo/foo_file > foo/foo_file
40727 echo bar/bar_file > bar/bar_file
40729 tar -cvf foo.tar --incremental --remove-files -C foo . -C ../bar .
40733 at_fn_check_prepare_notrace 'an embedded newline' "remfiles08b.at:34"
40737 TEST_TAR_FORMAT=gnu
40738 export TEST_TAR_FORMAT
40739 TAR_OPTIONS="-H gnu"
40745 echo foo/foo_file > foo/foo_file
40746 echo bar/bar_file > bar/bar_file
40748 tar -cvf foo.tar --incremental --remove-files -C foo . -C ../bar .
40752 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40753 at_status=$? at_failed=false
40755 echo >>"$at_stderr"; $as_echo "A
40756 tar: .: Directory is new
40757 tar: .: Directory is new
40760 $at_diff - "$at_stderr" || at_failed=:
40761 echo >>"$at_stdout"; $as_echo "A
40770 $at_diff - "$at_stdout" || at_failed=:
40771 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08b.at:34"
40772 $at_failed && at_fn_log_failure
40779 $at_times_p && times >"$at_times_file"
40780 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40781 read at_status <"$at_status_file"
40784 at_fn_group_banner 178 'remfiles08c.at:28' \
40785 "remove-files deleting two subdirs in -r mode" " " 24
40787 test -f $XFAILFILE && at_xfail=yes
40789 $as_echo "178. $at_setup_line: testing $at_desc ..."
40797 $as_echo "$at_srcdir/remfiles08c.at:31:
40800 TEST_TAR_FORMAT=gnu
40801 export TEST_TAR_FORMAT
40802 TAR_OPTIONS=\"-H gnu\"
40807 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40811 echo foo/foo_file > foo/foo_file
40812 echo bar/bar_file > bar/bar_file
40813 tar -cf foo.tar -C foo . -C ../bar .
40817 tar -rvf foo.tar --remove-files -C foo . -C ../bar .
40821 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles08c.at:31"
40825 TEST_TAR_FORMAT=gnu
40826 export TEST_TAR_FORMAT
40827 TAR_OPTIONS="-H gnu"
40832 test -z "`sort < /dev/null 2>&1`" || exit 77
40836 echo foo/foo_file > foo/foo_file
40837 echo bar/bar_file > bar/bar_file
40838 tar -cf foo.tar -C foo . -C ../bar .
40842 tar -rvf foo.tar --remove-files -C foo . -C ../bar .
40846 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40847 at_status=$? at_failed=false
40849 echo >>"$at_stderr"; $as_echo "A
40853 $at_diff - "$at_stderr" || at_failed=:
40854 echo >>"$at_stdout"; $as_echo "A
40870 $at_diff - "$at_stdout" || at_failed=:
40871 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08c.at:31"
40872 $at_failed && at_fn_log_failure
40879 $at_times_p && times >"$at_times_file"
40880 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40881 read at_status <"$at_status_file"
40884 at_fn_group_banner 179 'remfiles09a.at:25' \
40885 "remove-files on full directory in -c/non-incr. mode" "" 24
40887 test -f $XFAILFILE && at_xfail=yes
40889 $as_echo "179. $at_setup_line: testing $at_desc ..."
40897 $as_echo "$at_srcdir/remfiles09a.at:28:
40900 TEST_TAR_FORMAT=gnu
40901 export TEST_TAR_FORMAT
40902 TAR_OPTIONS=\"-H gnu\"
40907 echo foo/file > foo/file
40909 tar -cvf foo.tar --remove-files foo
40913 at_fn_check_prepare_notrace 'an embedded newline' "remfiles09a.at:28"
40917 TEST_TAR_FORMAT=gnu
40918 export TEST_TAR_FORMAT
40919 TAR_OPTIONS="-H gnu"
40924 echo foo/file > foo/file
40926 tar -cvf foo.tar --remove-files foo
40930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40931 at_status=$? at_failed=false
40933 echo >>"$at_stderr"; $as_echo "A
40936 $at_diff - "$at_stderr" || at_failed=:
40937 echo >>"$at_stdout"; $as_echo "A
40944 $at_diff - "$at_stdout" || at_failed=:
40945 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09a.at:28"
40946 $at_failed && at_fn_log_failure
40953 $at_times_p && times >"$at_times_file"
40954 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
40955 read at_status <"$at_status_file"
40958 at_fn_group_banner 180 'remfiles09b.at:29' \
40959 "remove-files on full directory in -c/incr. mode" "" 24
40961 test -f $XFAILFILE && at_xfail=yes
40963 $as_echo "180. $at_setup_line: testing $at_desc ..."
40971 $as_echo "$at_srcdir/remfiles09b.at:32:
40974 TEST_TAR_FORMAT=gnu
40975 export TEST_TAR_FORMAT
40976 TAR_OPTIONS=\"-H gnu\"
40981 echo foo/file > foo/file
40983 tar -cvf foo.tar --incremental --remove-files foo
40987 at_fn_check_prepare_notrace 'an embedded newline' "remfiles09b.at:32"
40991 TEST_TAR_FORMAT=gnu
40992 export TEST_TAR_FORMAT
40993 TAR_OPTIONS="-H gnu"
40998 echo foo/file > foo/file
41000 tar -cvf foo.tar --incremental --remove-files foo
41004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41005 at_status=$? at_failed=false
41007 echo >>"$at_stderr"; $as_echo "A
41008 tar: foo: Directory is new
41011 $at_diff - "$at_stderr" || at_failed=:
41012 echo >>"$at_stdout"; $as_echo "A
41019 $at_diff - "$at_stdout" || at_failed=:
41020 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09b.at:32"
41021 $at_failed && at_fn_log_failure
41028 $at_times_p && times >"$at_times_file"
41029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
41030 read at_status <"$at_status_file"
41033 at_fn_group_banner 181 'remfiles09c.at:25' \
41034 "remove-files on full directory in -r mode" " " 24
41036 test -f $XFAILFILE && at_xfail=yes
41038 $as_echo "181. $at_setup_line: testing $at_desc ..."
41046 $as_echo "$at_srcdir/remfiles09c.at:28:
41049 TEST_TAR_FORMAT=gnu
41050 export TEST_TAR_FORMAT
41051 TAR_OPTIONS=\"-H gnu\"
41056 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
41059 echo foo/file > foo/file
41060 tar -cf foo.tar foo
41064 tar -rvf foo.tar --remove-files foo
41068 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles09c.at:28"
41072 TEST_TAR_FORMAT=gnu
41073 export TEST_TAR_FORMAT
41074 TAR_OPTIONS="-H gnu"
41079 test -z "`sort < /dev/null 2>&1`" || exit 77
41082 echo foo/file > foo/file
41083 tar -cf foo.tar foo
41087 tar -rvf foo.tar --remove-files foo
41091 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41092 at_status=$? at_failed=false
41094 echo >>"$at_stderr"; $as_echo "A
41098 $at_diff - "$at_stderr" || at_failed=:
41099 echo >>"$at_stdout"; $as_echo "A
41111 $at_diff - "$at_stdout" || at_failed=:
41112 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09c.at:28"
41113 $at_failed && at_fn_log_failure
41120 $at_times_p && times >"$at_times_file"
41121 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
41122 read at_status <"$at_status_file"
41125 at_fn_group_banner 182 'remfiles10.at:20' \
41126 "remove-files" " " 24
41128 test -f $XFAILFILE && at_xfail=yes
41130 $as_echo "182. $at_setup_line: testing $at_desc ..."
41138 $as_echo "$at_srcdir/remfiles10.at:23:
41141 TEST_TAR_FORMAT=gnu
41142 export TEST_TAR_FORMAT
41143 TAR_OPTIONS=\"-H gnu\"
41148 echo foo/file > foo/file
41150 (cd foo && tar -cvf ../foo.tar --remove-files .)
41156 at_fn_check_prepare_notrace 'an embedded newline' "remfiles10.at:23"
41160 TEST_TAR_FORMAT=gnu
41161 export TEST_TAR_FORMAT
41162 TAR_OPTIONS="-H gnu"
41167 echo foo/file > foo/file
41169 (cd foo && tar -cvf ../foo.tar --remove-files .)
41175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41176 at_status=$? at_failed=false
41178 echo >>"$at_stderr"; $as_echo "A
41179 tar: .: Cannot rmdir: Invalid argument
41180 tar: Exiting with failure status due to previous errors
41183 $at_diff - "$at_stderr" || at_failed=:
41184 echo >>"$at_stdout"; $as_echo "A
41190 $at_diff - "$at_stdout" || at_failed=:
41191 at_fn_check_status 2 $at_status "$at_srcdir/remfiles10.at:23"
41192 $at_failed && at_fn_log_failure
41199 $at_times_p && times >"$at_times_file"
41200 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
41201 read at_status <"$at_status_file"
41204 at_fn_group_banner 183 'xattr01.at:25' \
41205 "xattrs: basic functionality" " " 25
41207 test -f $XFAILFILE && at_xfail=yes
41209 $as_echo "183. $at_setup_line: testing $at_desc ..."
41217 $as_echo "$at_srcdir/xattr01.at:28:
41221 export TEST_TAR_FORMAT
41222 TAR_OPTIONS=\"-H v7\"
41228 file=\$(TMPDIR=. mktemp fiXXXXXX)
41230 setfattr -n user.test -v test \$file &> /dev/null
41231 if test \"\$?\" != 0; then
41236 getfattr \$file &> /dev/null
41237 if test \"\$?\" != 0; then
41242 file=\$(TMPDIR=. mktemp fiXXXXXX)
41243 setfattr -n user.test -v ahoj \$file
41244 # check whether tar fails to store xattrs
41245 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41246 if test \"\$err\" != \"0\"; then
41251 genfile --file dir/file
41253 setfattr -n user.test -v OurDirValue dir
41254 setfattr -n user.test -v OurFileValue dir/file
41256 tar --xattrs -cf archive.tar dir
41259 tar --xattrs -xf archive.tar
41261 getfattr -h -d dir | grep -v -e '^#' -e ^\$
41262 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
41264 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
41269 export TEST_TAR_FORMAT
41270 TAR_OPTIONS="-H v7"
41276 file=$(TMPDIR=. mktemp fiXXXXXX)
41278 setfattr -n user.test -v test $file &> /dev/null
41279 if test "$?" != 0; then
41284 getfattr $file &> /dev/null
41285 if test "$?" != 0; then
41290 file=$(TMPDIR=. mktemp fiXXXXXX)
41291 setfattr -n user.test -v ahoj $file
41292 # check whether tar fails to store xattrs
41293 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41294 if test "$err" != "0"; then
41299 genfile --file dir/file
41301 setfattr -n user.test -v OurDirValue dir
41302 setfattr -n user.test -v OurFileValue dir/file
41304 tar --xattrs -cf archive.tar dir
41307 tar --xattrs -xf archive.tar
41309 getfattr -h -d dir | grep -v -e '^#' -e ^$
41310 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
41312 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41313 at_status=$? at_failed=false
41315 at_fn_diff_devnull "$at_stderr" || at_failed=:
41316 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
41317 user.test=\"OurFileValue\"
41319 $at_diff - "$at_stdout" || at_failed=:
41320 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
41321 $at_failed && at_fn_log_failure
41325 $as_echo "$at_srcdir/xattr01.at:28:
41328 TEST_TAR_FORMAT=oldgnu
41329 export TEST_TAR_FORMAT
41330 TAR_OPTIONS=\"-H oldgnu\"
41336 file=\$(TMPDIR=. mktemp fiXXXXXX)
41338 setfattr -n user.test -v test \$file &> /dev/null
41339 if test \"\$?\" != 0; then
41344 getfattr \$file &> /dev/null
41345 if test \"\$?\" != 0; then
41350 file=\$(TMPDIR=. mktemp fiXXXXXX)
41351 setfattr -n user.test -v ahoj \$file
41352 # check whether tar fails to store xattrs
41353 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41354 if test \"\$err\" != \"0\"; then
41359 genfile --file dir/file
41361 setfattr -n user.test -v OurDirValue dir
41362 setfattr -n user.test -v OurFileValue dir/file
41364 tar --xattrs -cf archive.tar dir
41367 tar --xattrs -xf archive.tar
41369 getfattr -h -d dir | grep -v -e '^#' -e ^\$
41370 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
41372 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
41376 TEST_TAR_FORMAT=oldgnu
41377 export TEST_TAR_FORMAT
41378 TAR_OPTIONS="-H oldgnu"
41384 file=$(TMPDIR=. mktemp fiXXXXXX)
41386 setfattr -n user.test -v test $file &> /dev/null
41387 if test "$?" != 0; then
41392 getfattr $file &> /dev/null
41393 if test "$?" != 0; then
41398 file=$(TMPDIR=. mktemp fiXXXXXX)
41399 setfattr -n user.test -v ahoj $file
41400 # check whether tar fails to store xattrs
41401 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41402 if test "$err" != "0"; then
41407 genfile --file dir/file
41409 setfattr -n user.test -v OurDirValue dir
41410 setfattr -n user.test -v OurFileValue dir/file
41412 tar --xattrs -cf archive.tar dir
41415 tar --xattrs -xf archive.tar
41417 getfattr -h -d dir | grep -v -e '^#' -e ^$
41418 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
41420 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41421 at_status=$? at_failed=false
41423 at_fn_diff_devnull "$at_stderr" || at_failed=:
41424 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
41425 user.test=\"OurFileValue\"
41427 $at_diff - "$at_stdout" || at_failed=:
41428 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
41429 $at_failed && at_fn_log_failure
41433 $as_echo "$at_srcdir/xattr01.at:28:
41436 TEST_TAR_FORMAT=ustar
41437 export TEST_TAR_FORMAT
41438 TAR_OPTIONS=\"-H ustar\"
41444 file=\$(TMPDIR=. mktemp fiXXXXXX)
41446 setfattr -n user.test -v test \$file &> /dev/null
41447 if test \"\$?\" != 0; then
41452 getfattr \$file &> /dev/null
41453 if test \"\$?\" != 0; then
41458 file=\$(TMPDIR=. mktemp fiXXXXXX)
41459 setfattr -n user.test -v ahoj \$file
41460 # check whether tar fails to store xattrs
41461 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41462 if test \"\$err\" != \"0\"; then
41467 genfile --file dir/file
41469 setfattr -n user.test -v OurDirValue dir
41470 setfattr -n user.test -v OurFileValue dir/file
41472 tar --xattrs -cf archive.tar dir
41475 tar --xattrs -xf archive.tar
41477 getfattr -h -d dir | grep -v -e '^#' -e ^\$
41478 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
41480 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
41484 TEST_TAR_FORMAT=ustar
41485 export TEST_TAR_FORMAT
41486 TAR_OPTIONS="-H ustar"
41492 file=$(TMPDIR=. mktemp fiXXXXXX)
41494 setfattr -n user.test -v test $file &> /dev/null
41495 if test "$?" != 0; then
41500 getfattr $file &> /dev/null
41501 if test "$?" != 0; then
41506 file=$(TMPDIR=. mktemp fiXXXXXX)
41507 setfattr -n user.test -v ahoj $file
41508 # check whether tar fails to store xattrs
41509 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41510 if test "$err" != "0"; then
41515 genfile --file dir/file
41517 setfattr -n user.test -v OurDirValue dir
41518 setfattr -n user.test -v OurFileValue dir/file
41520 tar --xattrs -cf archive.tar dir
41523 tar --xattrs -xf archive.tar
41525 getfattr -h -d dir | grep -v -e '^#' -e ^$
41526 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
41528 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41529 at_status=$? at_failed=false
41531 at_fn_diff_devnull "$at_stderr" || at_failed=:
41532 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
41533 user.test=\"OurFileValue\"
41535 $at_diff - "$at_stdout" || at_failed=:
41536 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
41537 $at_failed && at_fn_log_failure
41541 $as_echo "$at_srcdir/xattr01.at:28:
41544 TEST_TAR_FORMAT=posix
41545 export TEST_TAR_FORMAT
41546 TAR_OPTIONS=\"-H posix\"
41552 file=\$(TMPDIR=. mktemp fiXXXXXX)
41554 setfattr -n user.test -v test \$file &> /dev/null
41555 if test \"\$?\" != 0; then
41560 getfattr \$file &> /dev/null
41561 if test \"\$?\" != 0; then
41566 file=\$(TMPDIR=. mktemp fiXXXXXX)
41567 setfattr -n user.test -v ahoj \$file
41568 # check whether tar fails to store xattrs
41569 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41570 if test \"\$err\" != \"0\"; then
41575 genfile --file dir/file
41577 setfattr -n user.test -v OurDirValue dir
41578 setfattr -n user.test -v OurFileValue dir/file
41580 tar --xattrs -cf archive.tar dir
41583 tar --xattrs -xf archive.tar
41585 getfattr -h -d dir | grep -v -e '^#' -e ^\$
41586 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
41588 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
41592 TEST_TAR_FORMAT=posix
41593 export TEST_TAR_FORMAT
41594 TAR_OPTIONS="-H posix"
41600 file=$(TMPDIR=. mktemp fiXXXXXX)
41602 setfattr -n user.test -v test $file &> /dev/null
41603 if test "$?" != 0; then
41608 getfattr $file &> /dev/null
41609 if test "$?" != 0; then
41614 file=$(TMPDIR=. mktemp fiXXXXXX)
41615 setfattr -n user.test -v ahoj $file
41616 # check whether tar fails to store xattrs
41617 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41618 if test "$err" != "0"; then
41623 genfile --file dir/file
41625 setfattr -n user.test -v OurDirValue dir
41626 setfattr -n user.test -v OurFileValue dir/file
41628 tar --xattrs -cf archive.tar dir
41631 tar --xattrs -xf archive.tar
41633 getfattr -h -d dir | grep -v -e '^#' -e ^$
41634 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
41636 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41637 at_status=$? at_failed=false
41639 at_fn_diff_devnull "$at_stderr" || at_failed=:
41640 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
41641 user.test=\"OurFileValue\"
41643 $at_diff - "$at_stdout" || at_failed=:
41644 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
41645 $at_failed && at_fn_log_failure
41649 $as_echo "$at_srcdir/xattr01.at:28:
41652 TEST_TAR_FORMAT=gnu
41653 export TEST_TAR_FORMAT
41654 TAR_OPTIONS=\"-H gnu\"
41660 file=\$(TMPDIR=. mktemp fiXXXXXX)
41662 setfattr -n user.test -v test \$file &> /dev/null
41663 if test \"\$?\" != 0; then
41668 getfattr \$file &> /dev/null
41669 if test \"\$?\" != 0; then
41674 file=\$(TMPDIR=. mktemp fiXXXXXX)
41675 setfattr -n user.test -v ahoj \$file
41676 # check whether tar fails to store xattrs
41677 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41678 if test \"\$err\" != \"0\"; then
41683 genfile --file dir/file
41685 setfattr -n user.test -v OurDirValue dir
41686 setfattr -n user.test -v OurFileValue dir/file
41688 tar --xattrs -cf archive.tar dir
41691 tar --xattrs -xf archive.tar
41693 getfattr -h -d dir | grep -v -e '^#' -e ^\$
41694 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
41696 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
41700 TEST_TAR_FORMAT=gnu
41701 export TEST_TAR_FORMAT
41702 TAR_OPTIONS="-H gnu"
41708 file=$(TMPDIR=. mktemp fiXXXXXX)
41710 setfattr -n user.test -v test $file &> /dev/null
41711 if test "$?" != 0; then
41716 getfattr $file &> /dev/null
41717 if test "$?" != 0; then
41722 file=$(TMPDIR=. mktemp fiXXXXXX)
41723 setfattr -n user.test -v ahoj $file
41724 # check whether tar fails to store xattrs
41725 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41726 if test "$err" != "0"; then
41731 genfile --file dir/file
41733 setfattr -n user.test -v OurDirValue dir
41734 setfattr -n user.test -v OurFileValue dir/file
41736 tar --xattrs -cf archive.tar dir
41739 tar --xattrs -xf archive.tar
41741 getfattr -h -d dir | grep -v -e '^#' -e ^$
41742 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
41744 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41745 at_status=$? at_failed=false
41747 at_fn_diff_devnull "$at_stderr" || at_failed=:
41748 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
41749 user.test=\"OurFileValue\"
41751 $at_diff - "$at_stdout" || at_failed=:
41752 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
41753 $at_failed && at_fn_log_failure
41760 $at_times_p && times >"$at_times_file"
41761 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
41762 read at_status <"$at_status_file"
41765 at_fn_group_banner 184 'xattr02.at:25' \
41766 "xattrs: change directory with -C option" " " 25
41768 test -f $XFAILFILE && at_xfail=yes
41770 $as_echo "184. $at_setup_line: testing $at_desc ..."
41778 $as_echo "$at_srcdir/xattr02.at:28:
41782 export TEST_TAR_FORMAT
41783 TAR_OPTIONS=\"-H v7\"
41789 file=\$(TMPDIR=. mktemp fiXXXXXX)
41791 setfattr -n user.test -v test \$file &> /dev/null
41792 if test \"\$?\" != 0; then
41797 getfattr \$file &> /dev/null
41798 if test \"\$?\" != 0; then
41803 file=\$(TMPDIR=. mktemp fiXXXXXX)
41804 setfattr -n user.test -v ahoj \$file
41805 # check whether tar fails to store xattrs
41806 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41807 if test \"\$err\" != \"0\"; then
41814 mkdir dir/subdir/subsubdir
41815 genfile --file dir/file1
41816 genfile --file dir/subdir/file2
41818 setfattr -n user.test -v OurFile1Value dir/file1
41819 setfattr -n user.test -v OurFile2Value dir/subdir/file2
41820 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
41822 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
41826 tar --xattrs -xf archive.tar
41828 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
41829 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
41830 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
41832 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
41837 export TEST_TAR_FORMAT
41838 TAR_OPTIONS="-H v7"
41844 file=$(TMPDIR=. mktemp fiXXXXXX)
41846 setfattr -n user.test -v test $file &> /dev/null
41847 if test "$?" != 0; then
41852 getfattr $file &> /dev/null
41853 if test "$?" != 0; then
41858 file=$(TMPDIR=. mktemp fiXXXXXX)
41859 setfattr -n user.test -v ahoj $file
41860 # check whether tar fails to store xattrs
41861 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41862 if test "$err" != "0"; then
41869 mkdir dir/subdir/subsubdir
41870 genfile --file dir/file1
41871 genfile --file dir/subdir/file2
41873 setfattr -n user.test -v OurFile1Value dir/file1
41874 setfattr -n user.test -v OurFile2Value dir/subdir/file2
41875 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
41877 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
41881 tar --xattrs -xf archive.tar
41883 getfattr -h -d file1 | grep -v -e '^#' -e ^$
41884 getfattr -h -d file2 | grep -v -e '^#' -e ^$
41885 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
41887 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41888 at_status=$? at_failed=false
41890 at_fn_diff_devnull "$at_stderr" || at_failed=:
41891 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
41892 user.test=\"OurFile2Value\"
41893 user.test=\"OurDirValue\"
41895 $at_diff - "$at_stdout" || at_failed=:
41896 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
41897 $at_failed && at_fn_log_failure
41901 $as_echo "$at_srcdir/xattr02.at:28:
41904 TEST_TAR_FORMAT=oldgnu
41905 export TEST_TAR_FORMAT
41906 TAR_OPTIONS=\"-H oldgnu\"
41912 file=\$(TMPDIR=. mktemp fiXXXXXX)
41914 setfattr -n user.test -v test \$file &> /dev/null
41915 if test \"\$?\" != 0; then
41920 getfattr \$file &> /dev/null
41921 if test \"\$?\" != 0; then
41926 file=\$(TMPDIR=. mktemp fiXXXXXX)
41927 setfattr -n user.test -v ahoj \$file
41928 # check whether tar fails to store xattrs
41929 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41930 if test \"\$err\" != \"0\"; then
41937 mkdir dir/subdir/subsubdir
41938 genfile --file dir/file1
41939 genfile --file dir/subdir/file2
41941 setfattr -n user.test -v OurFile1Value dir/file1
41942 setfattr -n user.test -v OurFile2Value dir/subdir/file2
41943 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
41945 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
41949 tar --xattrs -xf archive.tar
41951 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
41952 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
41953 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
41955 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
41959 TEST_TAR_FORMAT=oldgnu
41960 export TEST_TAR_FORMAT
41961 TAR_OPTIONS="-H oldgnu"
41967 file=$(TMPDIR=. mktemp fiXXXXXX)
41969 setfattr -n user.test -v test $file &> /dev/null
41970 if test "$?" != 0; then
41975 getfattr $file &> /dev/null
41976 if test "$?" != 0; then
41981 file=$(TMPDIR=. mktemp fiXXXXXX)
41982 setfattr -n user.test -v ahoj $file
41983 # check whether tar fails to store xattrs
41984 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41985 if test "$err" != "0"; then
41992 mkdir dir/subdir/subsubdir
41993 genfile --file dir/file1
41994 genfile --file dir/subdir/file2
41996 setfattr -n user.test -v OurFile1Value dir/file1
41997 setfattr -n user.test -v OurFile2Value dir/subdir/file2
41998 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42000 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42004 tar --xattrs -xf archive.tar
42006 getfattr -h -d file1 | grep -v -e '^#' -e ^$
42007 getfattr -h -d file2 | grep -v -e '^#' -e ^$
42008 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
42010 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42011 at_status=$? at_failed=false
42013 at_fn_diff_devnull "$at_stderr" || at_failed=:
42014 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
42015 user.test=\"OurFile2Value\"
42016 user.test=\"OurDirValue\"
42018 $at_diff - "$at_stdout" || at_failed=:
42019 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
42020 $at_failed && at_fn_log_failure
42024 $as_echo "$at_srcdir/xattr02.at:28:
42027 TEST_TAR_FORMAT=ustar
42028 export TEST_TAR_FORMAT
42029 TAR_OPTIONS=\"-H ustar\"
42035 file=\$(TMPDIR=. mktemp fiXXXXXX)
42037 setfattr -n user.test -v test \$file &> /dev/null
42038 if test \"\$?\" != 0; then
42043 getfattr \$file &> /dev/null
42044 if test \"\$?\" != 0; then
42049 file=\$(TMPDIR=. mktemp fiXXXXXX)
42050 setfattr -n user.test -v ahoj \$file
42051 # check whether tar fails to store xattrs
42052 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42053 if test \"\$err\" != \"0\"; then
42060 mkdir dir/subdir/subsubdir
42061 genfile --file dir/file1
42062 genfile --file dir/subdir/file2
42064 setfattr -n user.test -v OurFile1Value dir/file1
42065 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42066 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42068 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42072 tar --xattrs -xf archive.tar
42074 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
42075 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
42076 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
42078 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
42082 TEST_TAR_FORMAT=ustar
42083 export TEST_TAR_FORMAT
42084 TAR_OPTIONS="-H ustar"
42090 file=$(TMPDIR=. mktemp fiXXXXXX)
42092 setfattr -n user.test -v test $file &> /dev/null
42093 if test "$?" != 0; then
42098 getfattr $file &> /dev/null
42099 if test "$?" != 0; then
42104 file=$(TMPDIR=. mktemp fiXXXXXX)
42105 setfattr -n user.test -v ahoj $file
42106 # check whether tar fails to store xattrs
42107 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42108 if test "$err" != "0"; then
42115 mkdir dir/subdir/subsubdir
42116 genfile --file dir/file1
42117 genfile --file dir/subdir/file2
42119 setfattr -n user.test -v OurFile1Value dir/file1
42120 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42121 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42123 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42127 tar --xattrs -xf archive.tar
42129 getfattr -h -d file1 | grep -v -e '^#' -e ^$
42130 getfattr -h -d file2 | grep -v -e '^#' -e ^$
42131 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
42133 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42134 at_status=$? at_failed=false
42136 at_fn_diff_devnull "$at_stderr" || at_failed=:
42137 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
42138 user.test=\"OurFile2Value\"
42139 user.test=\"OurDirValue\"
42141 $at_diff - "$at_stdout" || at_failed=:
42142 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
42143 $at_failed && at_fn_log_failure
42147 $as_echo "$at_srcdir/xattr02.at:28:
42150 TEST_TAR_FORMAT=posix
42151 export TEST_TAR_FORMAT
42152 TAR_OPTIONS=\"-H posix\"
42158 file=\$(TMPDIR=. mktemp fiXXXXXX)
42160 setfattr -n user.test -v test \$file &> /dev/null
42161 if test \"\$?\" != 0; then
42166 getfattr \$file &> /dev/null
42167 if test \"\$?\" != 0; then
42172 file=\$(TMPDIR=. mktemp fiXXXXXX)
42173 setfattr -n user.test -v ahoj \$file
42174 # check whether tar fails to store xattrs
42175 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42176 if test \"\$err\" != \"0\"; then
42183 mkdir dir/subdir/subsubdir
42184 genfile --file dir/file1
42185 genfile --file dir/subdir/file2
42187 setfattr -n user.test -v OurFile1Value dir/file1
42188 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42189 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42191 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42195 tar --xattrs -xf archive.tar
42197 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
42198 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
42199 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
42201 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
42205 TEST_TAR_FORMAT=posix
42206 export TEST_TAR_FORMAT
42207 TAR_OPTIONS="-H posix"
42213 file=$(TMPDIR=. mktemp fiXXXXXX)
42215 setfattr -n user.test -v test $file &> /dev/null
42216 if test "$?" != 0; then
42221 getfattr $file &> /dev/null
42222 if test "$?" != 0; then
42227 file=$(TMPDIR=. mktemp fiXXXXXX)
42228 setfattr -n user.test -v ahoj $file
42229 # check whether tar fails to store xattrs
42230 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42231 if test "$err" != "0"; then
42238 mkdir dir/subdir/subsubdir
42239 genfile --file dir/file1
42240 genfile --file dir/subdir/file2
42242 setfattr -n user.test -v OurFile1Value dir/file1
42243 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42244 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42246 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42250 tar --xattrs -xf archive.tar
42252 getfattr -h -d file1 | grep -v -e '^#' -e ^$
42253 getfattr -h -d file2 | grep -v -e '^#' -e ^$
42254 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
42256 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42257 at_status=$? at_failed=false
42259 at_fn_diff_devnull "$at_stderr" || at_failed=:
42260 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
42261 user.test=\"OurFile2Value\"
42262 user.test=\"OurDirValue\"
42264 $at_diff - "$at_stdout" || at_failed=:
42265 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
42266 $at_failed && at_fn_log_failure
42270 $as_echo "$at_srcdir/xattr02.at:28:
42273 TEST_TAR_FORMAT=gnu
42274 export TEST_TAR_FORMAT
42275 TAR_OPTIONS=\"-H gnu\"
42281 file=\$(TMPDIR=. mktemp fiXXXXXX)
42283 setfattr -n user.test -v test \$file &> /dev/null
42284 if test \"\$?\" != 0; then
42289 getfattr \$file &> /dev/null
42290 if test \"\$?\" != 0; then
42295 file=\$(TMPDIR=. mktemp fiXXXXXX)
42296 setfattr -n user.test -v ahoj \$file
42297 # check whether tar fails to store xattrs
42298 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42299 if test \"\$err\" != \"0\"; then
42306 mkdir dir/subdir/subsubdir
42307 genfile --file dir/file1
42308 genfile --file dir/subdir/file2
42310 setfattr -n user.test -v OurFile1Value dir/file1
42311 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42312 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42314 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42318 tar --xattrs -xf archive.tar
42320 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
42321 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
42322 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
42324 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
42328 TEST_TAR_FORMAT=gnu
42329 export TEST_TAR_FORMAT
42330 TAR_OPTIONS="-H gnu"
42336 file=$(TMPDIR=. mktemp fiXXXXXX)
42338 setfattr -n user.test -v test $file &> /dev/null
42339 if test "$?" != 0; then
42344 getfattr $file &> /dev/null
42345 if test "$?" != 0; then
42350 file=$(TMPDIR=. mktemp fiXXXXXX)
42351 setfattr -n user.test -v ahoj $file
42352 # check whether tar fails to store xattrs
42353 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42354 if test "$err" != "0"; then
42361 mkdir dir/subdir/subsubdir
42362 genfile --file dir/file1
42363 genfile --file dir/subdir/file2
42365 setfattr -n user.test -v OurFile1Value dir/file1
42366 setfattr -n user.test -v OurFile2Value dir/subdir/file2
42367 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
42369 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42373 tar --xattrs -xf archive.tar
42375 getfattr -h -d file1 | grep -v -e '^#' -e ^$
42376 getfattr -h -d file2 | grep -v -e '^#' -e ^$
42377 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
42379 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42380 at_status=$? at_failed=false
42382 at_fn_diff_devnull "$at_stderr" || at_failed=:
42383 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
42384 user.test=\"OurFile2Value\"
42385 user.test=\"OurDirValue\"
42387 $at_diff - "$at_stdout" || at_failed=:
42388 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
42389 $at_failed && at_fn_log_failure
42396 $at_times_p && times >"$at_times_file"
42397 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42398 read at_status <"$at_status_file"
42401 at_fn_group_banner 185 'xattr03.at:25' \
42402 "xattrs: trusted.* attributes" " " 25
42404 test -f $XFAILFILE && at_xfail=yes
42406 $as_echo "185. $at_setup_line: testing $at_desc ..."
42414 $as_echo "$at_srcdir/xattr03.at:28:
42418 export TEST_TAR_FORMAT
42419 TAR_OPTIONS=\"-H v7\"
42424 echo \"test\" > \$\$
42426 cat \$\$ > /dev/null 2>&1
42429 test \$result -eq 0 || exit 77
42433 file=\$(TMPDIR=. mktemp fiXXXXXX)
42435 setfattr -n user.test -v test \$file &> /dev/null
42436 if test \"\$?\" != 0; then
42441 getfattr \$file &> /dev/null
42442 if test \"\$?\" != 0; then
42447 file=\$(TMPDIR=. mktemp fiXXXXXX)
42448 setfattr -n user.test -v ahoj \$file
42449 # check whether tar fails to store xattrs
42450 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42451 if test \"\$err\" != \"0\"; then
42458 mkdir dir/subdir/subsubdir
42459 genfile --file dir/file1
42460 genfile --file dir/subdir/file2
42462 setfattr -n trusted.test -v OurFile1Value dir/file1
42463 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42464 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42466 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42470 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42472 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
42473 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
42474 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
42476 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
42481 export TEST_TAR_FORMAT
42482 TAR_OPTIONS="-H v7"
42489 cat $$ > /dev/null 2>&1
42492 test $result -eq 0 || exit 77
42496 file=$(TMPDIR=. mktemp fiXXXXXX)
42498 setfattr -n user.test -v test $file &> /dev/null
42499 if test "$?" != 0; then
42504 getfattr $file &> /dev/null
42505 if test "$?" != 0; then
42510 file=$(TMPDIR=. mktemp fiXXXXXX)
42511 setfattr -n user.test -v ahoj $file
42512 # check whether tar fails to store xattrs
42513 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42514 if test "$err" != "0"; then
42521 mkdir dir/subdir/subsubdir
42522 genfile --file dir/file1
42523 genfile --file dir/subdir/file2
42525 setfattr -n trusted.test -v OurFile1Value dir/file1
42526 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42527 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42529 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42533 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42535 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
42536 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
42537 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
42539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42540 at_status=$? at_failed=false
42542 at_fn_diff_devnull "$at_stderr" || at_failed=:
42543 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
42544 trusted.test=\"OurFile2Value\"
42545 trusted.test=\"OurDirValue\"
42547 $at_diff - "$at_stdout" || at_failed=:
42548 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
42549 $at_failed && at_fn_log_failure
42553 $as_echo "$at_srcdir/xattr03.at:28:
42556 TEST_TAR_FORMAT=oldgnu
42557 export TEST_TAR_FORMAT
42558 TAR_OPTIONS=\"-H oldgnu\"
42563 echo \"test\" > \$\$
42565 cat \$\$ > /dev/null 2>&1
42568 test \$result -eq 0 || exit 77
42572 file=\$(TMPDIR=. mktemp fiXXXXXX)
42574 setfattr -n user.test -v test \$file &> /dev/null
42575 if test \"\$?\" != 0; then
42580 getfattr \$file &> /dev/null
42581 if test \"\$?\" != 0; then
42586 file=\$(TMPDIR=. mktemp fiXXXXXX)
42587 setfattr -n user.test -v ahoj \$file
42588 # check whether tar fails to store xattrs
42589 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42590 if test \"\$err\" != \"0\"; then
42597 mkdir dir/subdir/subsubdir
42598 genfile --file dir/file1
42599 genfile --file dir/subdir/file2
42601 setfattr -n trusted.test -v OurFile1Value dir/file1
42602 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42603 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42605 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42609 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42611 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
42612 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
42613 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
42615 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
42619 TEST_TAR_FORMAT=oldgnu
42620 export TEST_TAR_FORMAT
42621 TAR_OPTIONS="-H oldgnu"
42628 cat $$ > /dev/null 2>&1
42631 test $result -eq 0 || exit 77
42635 file=$(TMPDIR=. mktemp fiXXXXXX)
42637 setfattr -n user.test -v test $file &> /dev/null
42638 if test "$?" != 0; then
42643 getfattr $file &> /dev/null
42644 if test "$?" != 0; then
42649 file=$(TMPDIR=. mktemp fiXXXXXX)
42650 setfattr -n user.test -v ahoj $file
42651 # check whether tar fails to store xattrs
42652 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42653 if test "$err" != "0"; then
42660 mkdir dir/subdir/subsubdir
42661 genfile --file dir/file1
42662 genfile --file dir/subdir/file2
42664 setfattr -n trusted.test -v OurFile1Value dir/file1
42665 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42666 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42668 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42672 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42674 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
42675 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
42676 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
42678 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42679 at_status=$? at_failed=false
42681 at_fn_diff_devnull "$at_stderr" || at_failed=:
42682 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
42683 trusted.test=\"OurFile2Value\"
42684 trusted.test=\"OurDirValue\"
42686 $at_diff - "$at_stdout" || at_failed=:
42687 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
42688 $at_failed && at_fn_log_failure
42692 $as_echo "$at_srcdir/xattr03.at:28:
42695 TEST_TAR_FORMAT=ustar
42696 export TEST_TAR_FORMAT
42697 TAR_OPTIONS=\"-H ustar\"
42702 echo \"test\" > \$\$
42704 cat \$\$ > /dev/null 2>&1
42707 test \$result -eq 0 || exit 77
42711 file=\$(TMPDIR=. mktemp fiXXXXXX)
42713 setfattr -n user.test -v test \$file &> /dev/null
42714 if test \"\$?\" != 0; then
42719 getfattr \$file &> /dev/null
42720 if test \"\$?\" != 0; then
42725 file=\$(TMPDIR=. mktemp fiXXXXXX)
42726 setfattr -n user.test -v ahoj \$file
42727 # check whether tar fails to store xattrs
42728 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42729 if test \"\$err\" != \"0\"; then
42736 mkdir dir/subdir/subsubdir
42737 genfile --file dir/file1
42738 genfile --file dir/subdir/file2
42740 setfattr -n trusted.test -v OurFile1Value dir/file1
42741 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42742 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42744 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42748 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42750 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
42751 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
42752 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
42754 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
42758 TEST_TAR_FORMAT=ustar
42759 export TEST_TAR_FORMAT
42760 TAR_OPTIONS="-H ustar"
42767 cat $$ > /dev/null 2>&1
42770 test $result -eq 0 || exit 77
42774 file=$(TMPDIR=. mktemp fiXXXXXX)
42776 setfattr -n user.test -v test $file &> /dev/null
42777 if test "$?" != 0; then
42782 getfattr $file &> /dev/null
42783 if test "$?" != 0; then
42788 file=$(TMPDIR=. mktemp fiXXXXXX)
42789 setfattr -n user.test -v ahoj $file
42790 # check whether tar fails to store xattrs
42791 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42792 if test "$err" != "0"; then
42799 mkdir dir/subdir/subsubdir
42800 genfile --file dir/file1
42801 genfile --file dir/subdir/file2
42803 setfattr -n trusted.test -v OurFile1Value dir/file1
42804 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42805 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42807 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42811 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42813 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
42814 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
42815 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
42817 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42818 at_status=$? at_failed=false
42820 at_fn_diff_devnull "$at_stderr" || at_failed=:
42821 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
42822 trusted.test=\"OurFile2Value\"
42823 trusted.test=\"OurDirValue\"
42825 $at_diff - "$at_stdout" || at_failed=:
42826 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
42827 $at_failed && at_fn_log_failure
42831 $as_echo "$at_srcdir/xattr03.at:28:
42834 TEST_TAR_FORMAT=posix
42835 export TEST_TAR_FORMAT
42836 TAR_OPTIONS=\"-H posix\"
42841 echo \"test\" > \$\$
42843 cat \$\$ > /dev/null 2>&1
42846 test \$result -eq 0 || exit 77
42850 file=\$(TMPDIR=. mktemp fiXXXXXX)
42852 setfattr -n user.test -v test \$file &> /dev/null
42853 if test \"\$?\" != 0; then
42858 getfattr \$file &> /dev/null
42859 if test \"\$?\" != 0; then
42864 file=\$(TMPDIR=. mktemp fiXXXXXX)
42865 setfattr -n user.test -v ahoj \$file
42866 # check whether tar fails to store xattrs
42867 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42868 if test \"\$err\" != \"0\"; then
42875 mkdir dir/subdir/subsubdir
42876 genfile --file dir/file1
42877 genfile --file dir/subdir/file2
42879 setfattr -n trusted.test -v OurFile1Value dir/file1
42880 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42881 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42883 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42887 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42889 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
42890 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
42891 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
42893 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
42897 TEST_TAR_FORMAT=posix
42898 export TEST_TAR_FORMAT
42899 TAR_OPTIONS="-H posix"
42906 cat $$ > /dev/null 2>&1
42909 test $result -eq 0 || exit 77
42913 file=$(TMPDIR=. mktemp fiXXXXXX)
42915 setfattr -n user.test -v test $file &> /dev/null
42916 if test "$?" != 0; then
42921 getfattr $file &> /dev/null
42922 if test "$?" != 0; then
42927 file=$(TMPDIR=. mktemp fiXXXXXX)
42928 setfattr -n user.test -v ahoj $file
42929 # check whether tar fails to store xattrs
42930 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42931 if test "$err" != "0"; then
42938 mkdir dir/subdir/subsubdir
42939 genfile --file dir/file1
42940 genfile --file dir/subdir/file2
42942 setfattr -n trusted.test -v OurFile1Value dir/file1
42943 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
42944 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
42946 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
42950 tar --xattrs --xattrs-include=trusted* -xf archive.tar
42952 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
42953 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
42954 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
42956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42957 at_status=$? at_failed=false
42959 at_fn_diff_devnull "$at_stderr" || at_failed=:
42960 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
42961 trusted.test=\"OurFile2Value\"
42962 trusted.test=\"OurDirValue\"
42964 $at_diff - "$at_stdout" || at_failed=:
42965 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
42966 $at_failed && at_fn_log_failure
42970 $as_echo "$at_srcdir/xattr03.at:28:
42973 TEST_TAR_FORMAT=gnu
42974 export TEST_TAR_FORMAT
42975 TAR_OPTIONS=\"-H gnu\"
42980 echo \"test\" > \$\$
42982 cat \$\$ > /dev/null 2>&1
42985 test \$result -eq 0 || exit 77
42989 file=\$(TMPDIR=. mktemp fiXXXXXX)
42991 setfattr -n user.test -v test \$file &> /dev/null
42992 if test \"\$?\" != 0; then
42997 getfattr \$file &> /dev/null
42998 if test \"\$?\" != 0; then
43003 file=\$(TMPDIR=. mktemp fiXXXXXX)
43004 setfattr -n user.test -v ahoj \$file
43005 # check whether tar fails to store xattrs
43006 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43007 if test \"\$err\" != \"0\"; then
43014 mkdir dir/subdir/subsubdir
43015 genfile --file dir/file1
43016 genfile --file dir/subdir/file2
43018 setfattr -n trusted.test -v OurFile1Value dir/file1
43019 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
43020 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
43022 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
43026 tar --xattrs --xattrs-include=trusted* -xf archive.tar
43028 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
43029 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
43030 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
43032 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
43036 TEST_TAR_FORMAT=gnu
43037 export TEST_TAR_FORMAT
43038 TAR_OPTIONS="-H gnu"
43045 cat $$ > /dev/null 2>&1
43048 test $result -eq 0 || exit 77
43052 file=$(TMPDIR=. mktemp fiXXXXXX)
43054 setfattr -n user.test -v test $file &> /dev/null
43055 if test "$?" != 0; then
43060 getfattr $file &> /dev/null
43061 if test "$?" != 0; then
43066 file=$(TMPDIR=. mktemp fiXXXXXX)
43067 setfattr -n user.test -v ahoj $file
43068 # check whether tar fails to store xattrs
43069 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43070 if test "$err" != "0"; then
43077 mkdir dir/subdir/subsubdir
43078 genfile --file dir/file1
43079 genfile --file dir/subdir/file2
43081 setfattr -n trusted.test -v OurFile1Value dir/file1
43082 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
43083 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
43085 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
43089 tar --xattrs --xattrs-include=trusted* -xf archive.tar
43091 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
43092 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
43093 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
43095 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43096 at_status=$? at_failed=false
43098 at_fn_diff_devnull "$at_stderr" || at_failed=:
43099 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
43100 trusted.test=\"OurFile2Value\"
43101 trusted.test=\"OurDirValue\"
43103 $at_diff - "$at_stdout" || at_failed=:
43104 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
43105 $at_failed && at_fn_log_failure
43112 $at_times_p && times >"$at_times_file"
43113 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
43114 read at_status <"$at_status_file"
43117 at_fn_group_banner 186 'xattr04.at:26' \
43118 "xattrs: s/open/openat/ regression" " " 25
43120 test -f $XFAILFILE && at_xfail=yes
43122 $as_echo "186. $at_setup_line: testing $at_desc ..."
43130 $as_echo "$at_srcdir/xattr04.at:29:
43134 export TEST_TAR_FORMAT
43135 TAR_OPTIONS=\"-H v7\"
43141 file=\$(TMPDIR=. mktemp fiXXXXXX)
43143 setfattr -n user.test -v test \$file &> /dev/null
43144 if test \"\$?\" != 0; then
43149 getfattr \$file &> /dev/null
43150 if test \"\$?\" != 0; then
43155 file=\$(TMPDIR=. mktemp fiXXXXXX)
43156 setfattr -n user.test -v ahoj \$file
43157 # check whether tar fails to store xattrs
43158 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43159 if test \"\$err\" != \"0\"; then
43166 genfile --file dir/file
43168 setfattr -n user.test -v value dir/file
43170 # archive whole directory including binary xattrs
43171 tar --xattrs -cf archive.tar -C dir .
43173 tar --xattrs -xf archive.tar -C output
43175 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
43178 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
43183 export TEST_TAR_FORMAT
43184 TAR_OPTIONS="-H v7"
43190 file=$(TMPDIR=. mktemp fiXXXXXX)
43192 setfattr -n user.test -v test $file &> /dev/null
43193 if test "$?" != 0; then
43198 getfattr $file &> /dev/null
43199 if test "$?" != 0; then
43204 file=$(TMPDIR=. mktemp fiXXXXXX)
43205 setfattr -n user.test -v ahoj $file
43206 # check whether tar fails to store xattrs
43207 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43208 if test "$err" != "0"; then
43215 genfile --file dir/file
43217 setfattr -n user.test -v value dir/file
43219 # archive whole directory including binary xattrs
43220 tar --xattrs -cf archive.tar -C dir .
43222 tar --xattrs -xf archive.tar -C output
43224 getfattr -h -d output/file | grep -v -e '^#' -e ^$
43227 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43228 at_status=$? at_failed=false
43230 at_fn_diff_devnull "$at_stderr" || at_failed=:
43231 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
43233 $at_diff - "$at_stdout" || at_failed=:
43234 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
43235 $at_failed && at_fn_log_failure
43239 $as_echo "$at_srcdir/xattr04.at:29:
43242 TEST_TAR_FORMAT=oldgnu
43243 export TEST_TAR_FORMAT
43244 TAR_OPTIONS=\"-H oldgnu\"
43250 file=\$(TMPDIR=. mktemp fiXXXXXX)
43252 setfattr -n user.test -v test \$file &> /dev/null
43253 if test \"\$?\" != 0; then
43258 getfattr \$file &> /dev/null
43259 if test \"\$?\" != 0; then
43264 file=\$(TMPDIR=. mktemp fiXXXXXX)
43265 setfattr -n user.test -v ahoj \$file
43266 # check whether tar fails to store xattrs
43267 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43268 if test \"\$err\" != \"0\"; then
43275 genfile --file dir/file
43277 setfattr -n user.test -v value dir/file
43279 # archive whole directory including binary xattrs
43280 tar --xattrs -cf archive.tar -C dir .
43282 tar --xattrs -xf archive.tar -C output
43284 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
43287 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
43291 TEST_TAR_FORMAT=oldgnu
43292 export TEST_TAR_FORMAT
43293 TAR_OPTIONS="-H oldgnu"
43299 file=$(TMPDIR=. mktemp fiXXXXXX)
43301 setfattr -n user.test -v test $file &> /dev/null
43302 if test "$?" != 0; then
43307 getfattr $file &> /dev/null
43308 if test "$?" != 0; then
43313 file=$(TMPDIR=. mktemp fiXXXXXX)
43314 setfattr -n user.test -v ahoj $file
43315 # check whether tar fails to store xattrs
43316 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43317 if test "$err" != "0"; then
43324 genfile --file dir/file
43326 setfattr -n user.test -v value dir/file
43328 # archive whole directory including binary xattrs
43329 tar --xattrs -cf archive.tar -C dir .
43331 tar --xattrs -xf archive.tar -C output
43333 getfattr -h -d output/file | grep -v -e '^#' -e ^$
43336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43337 at_status=$? at_failed=false
43339 at_fn_diff_devnull "$at_stderr" || at_failed=:
43340 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
43342 $at_diff - "$at_stdout" || at_failed=:
43343 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
43344 $at_failed && at_fn_log_failure
43348 $as_echo "$at_srcdir/xattr04.at:29:
43351 TEST_TAR_FORMAT=ustar
43352 export TEST_TAR_FORMAT
43353 TAR_OPTIONS=\"-H ustar\"
43359 file=\$(TMPDIR=. mktemp fiXXXXXX)
43361 setfattr -n user.test -v test \$file &> /dev/null
43362 if test \"\$?\" != 0; then
43367 getfattr \$file &> /dev/null
43368 if test \"\$?\" != 0; then
43373 file=\$(TMPDIR=. mktemp fiXXXXXX)
43374 setfattr -n user.test -v ahoj \$file
43375 # check whether tar fails to store xattrs
43376 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43377 if test \"\$err\" != \"0\"; then
43384 genfile --file dir/file
43386 setfattr -n user.test -v value dir/file
43388 # archive whole directory including binary xattrs
43389 tar --xattrs -cf archive.tar -C dir .
43391 tar --xattrs -xf archive.tar -C output
43393 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
43396 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
43400 TEST_TAR_FORMAT=ustar
43401 export TEST_TAR_FORMAT
43402 TAR_OPTIONS="-H ustar"
43408 file=$(TMPDIR=. mktemp fiXXXXXX)
43410 setfattr -n user.test -v test $file &> /dev/null
43411 if test "$?" != 0; then
43416 getfattr $file &> /dev/null
43417 if test "$?" != 0; then
43422 file=$(TMPDIR=. mktemp fiXXXXXX)
43423 setfattr -n user.test -v ahoj $file
43424 # check whether tar fails to store xattrs
43425 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43426 if test "$err" != "0"; then
43433 genfile --file dir/file
43435 setfattr -n user.test -v value dir/file
43437 # archive whole directory including binary xattrs
43438 tar --xattrs -cf archive.tar -C dir .
43440 tar --xattrs -xf archive.tar -C output
43442 getfattr -h -d output/file | grep -v -e '^#' -e ^$
43445 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43446 at_status=$? at_failed=false
43448 at_fn_diff_devnull "$at_stderr" || at_failed=:
43449 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
43451 $at_diff - "$at_stdout" || at_failed=:
43452 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
43453 $at_failed && at_fn_log_failure
43457 $as_echo "$at_srcdir/xattr04.at:29:
43460 TEST_TAR_FORMAT=posix
43461 export TEST_TAR_FORMAT
43462 TAR_OPTIONS=\"-H posix\"
43468 file=\$(TMPDIR=. mktemp fiXXXXXX)
43470 setfattr -n user.test -v test \$file &> /dev/null
43471 if test \"\$?\" != 0; then
43476 getfattr \$file &> /dev/null
43477 if test \"\$?\" != 0; then
43482 file=\$(TMPDIR=. mktemp fiXXXXXX)
43483 setfattr -n user.test -v ahoj \$file
43484 # check whether tar fails to store xattrs
43485 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43486 if test \"\$err\" != \"0\"; then
43493 genfile --file dir/file
43495 setfattr -n user.test -v value dir/file
43497 # archive whole directory including binary xattrs
43498 tar --xattrs -cf archive.tar -C dir .
43500 tar --xattrs -xf archive.tar -C output
43502 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
43505 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
43509 TEST_TAR_FORMAT=posix
43510 export TEST_TAR_FORMAT
43511 TAR_OPTIONS="-H posix"
43517 file=$(TMPDIR=. mktemp fiXXXXXX)
43519 setfattr -n user.test -v test $file &> /dev/null
43520 if test "$?" != 0; then
43525 getfattr $file &> /dev/null
43526 if test "$?" != 0; then
43531 file=$(TMPDIR=. mktemp fiXXXXXX)
43532 setfattr -n user.test -v ahoj $file
43533 # check whether tar fails to store xattrs
43534 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43535 if test "$err" != "0"; then
43542 genfile --file dir/file
43544 setfattr -n user.test -v value dir/file
43546 # archive whole directory including binary xattrs
43547 tar --xattrs -cf archive.tar -C dir .
43549 tar --xattrs -xf archive.tar -C output
43551 getfattr -h -d output/file | grep -v -e '^#' -e ^$
43554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43555 at_status=$? at_failed=false
43557 at_fn_diff_devnull "$at_stderr" || at_failed=:
43558 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
43560 $at_diff - "$at_stdout" || at_failed=:
43561 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
43562 $at_failed && at_fn_log_failure
43566 $as_echo "$at_srcdir/xattr04.at:29:
43569 TEST_TAR_FORMAT=gnu
43570 export TEST_TAR_FORMAT
43571 TAR_OPTIONS=\"-H gnu\"
43577 file=\$(TMPDIR=. mktemp fiXXXXXX)
43579 setfattr -n user.test -v test \$file &> /dev/null
43580 if test \"\$?\" != 0; then
43585 getfattr \$file &> /dev/null
43586 if test \"\$?\" != 0; then
43591 file=\$(TMPDIR=. mktemp fiXXXXXX)
43592 setfattr -n user.test -v ahoj \$file
43593 # check whether tar fails to store xattrs
43594 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43595 if test \"\$err\" != \"0\"; then
43602 genfile --file dir/file
43604 setfattr -n user.test -v value dir/file
43606 # archive whole directory including binary xattrs
43607 tar --xattrs -cf archive.tar -C dir .
43609 tar --xattrs -xf archive.tar -C output
43611 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
43614 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
43618 TEST_TAR_FORMAT=gnu
43619 export TEST_TAR_FORMAT
43620 TAR_OPTIONS="-H gnu"
43626 file=$(TMPDIR=. mktemp fiXXXXXX)
43628 setfattr -n user.test -v test $file &> /dev/null
43629 if test "$?" != 0; then
43634 getfattr $file &> /dev/null
43635 if test "$?" != 0; then
43640 file=$(TMPDIR=. mktemp fiXXXXXX)
43641 setfattr -n user.test -v ahoj $file
43642 # check whether tar fails to store xattrs
43643 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43644 if test "$err" != "0"; then
43651 genfile --file dir/file
43653 setfattr -n user.test -v value dir/file
43655 # archive whole directory including binary xattrs
43656 tar --xattrs -cf archive.tar -C dir .
43658 tar --xattrs -xf archive.tar -C output
43660 getfattr -h -d output/file | grep -v -e '^#' -e ^$
43663 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43664 at_status=$? at_failed=false
43666 at_fn_diff_devnull "$at_stderr" || at_failed=:
43667 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
43669 $at_diff - "$at_stdout" || at_failed=:
43670 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
43671 $at_failed && at_fn_log_failure
43678 $at_times_p && times >"$at_times_file"
43679 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
43680 read at_status <"$at_status_file"
43683 at_fn_group_banner 187 'xattr05.at:28' \
43684 "xattrs: keywords with '=' and '%'" " " 25
43686 test -f $XFAILFILE && at_xfail=yes
43688 $as_echo "187. $at_setup_line: testing $at_desc ..."
43696 $as_echo "$at_srcdir/xattr05.at:31:
43700 export TEST_TAR_FORMAT
43701 TAR_OPTIONS=\"-H v7\"
43707 file=\$(TMPDIR=. mktemp fiXXXXXX)
43709 setfattr -n user.test -v test \$file &> /dev/null
43710 if test \"\$?\" != 0; then
43715 getfattr \$file &> /dev/null
43716 if test \"\$?\" != 0; then
43721 file=\$(TMPDIR=. mktemp fiXXXXXX)
43722 setfattr -n user.test -v ahoj \$file
43723 # check whether tar fails to store xattrs
43724 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43725 if test \"\$err\" != \"0\"; then
43732 genfile --file dir/file
43734 setfattr -n user.=NAME%3D= -v value dir/file
43735 getfattr -d dir/file | grep -v '# ' > before
43737 # archive whole directory including binary xattrs
43738 tar --xattrs -cf archive.tar -C dir .
43740 tar --xattrs -xf archive.tar -C output
43741 getfattr -d output/file | grep -v '# ' > after
43744 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
43749 export TEST_TAR_FORMAT
43750 TAR_OPTIONS="-H v7"
43756 file=$(TMPDIR=. mktemp fiXXXXXX)
43758 setfattr -n user.test -v test $file &> /dev/null
43759 if test "$?" != 0; then
43764 getfattr $file &> /dev/null
43765 if test "$?" != 0; then
43770 file=$(TMPDIR=. mktemp fiXXXXXX)
43771 setfattr -n user.test -v ahoj $file
43772 # check whether tar fails to store xattrs
43773 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43774 if test "$err" != "0"; then
43781 genfile --file dir/file
43783 setfattr -n user.=NAME%3D= -v value dir/file
43784 getfattr -d dir/file | grep -v '# ' > before
43786 # archive whole directory including binary xattrs
43787 tar --xattrs -cf archive.tar -C dir .
43789 tar --xattrs -xf archive.tar -C output
43790 getfattr -d output/file | grep -v '# ' > after
43793 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43794 at_status=$? at_failed=false
43796 at_fn_diff_devnull "$at_stderr" || at_failed=:
43797 at_fn_diff_devnull "$at_stdout" || at_failed=:
43798 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
43799 $at_failed && at_fn_log_failure
43803 $as_echo "$at_srcdir/xattr05.at:31:
43806 TEST_TAR_FORMAT=oldgnu
43807 export TEST_TAR_FORMAT
43808 TAR_OPTIONS=\"-H oldgnu\"
43814 file=\$(TMPDIR=. mktemp fiXXXXXX)
43816 setfattr -n user.test -v test \$file &> /dev/null
43817 if test \"\$?\" != 0; then
43822 getfattr \$file &> /dev/null
43823 if test \"\$?\" != 0; then
43828 file=\$(TMPDIR=. mktemp fiXXXXXX)
43829 setfattr -n user.test -v ahoj \$file
43830 # check whether tar fails to store xattrs
43831 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43832 if test \"\$err\" != \"0\"; then
43839 genfile --file dir/file
43841 setfattr -n user.=NAME%3D= -v value dir/file
43842 getfattr -d dir/file | grep -v '# ' > before
43844 # archive whole directory including binary xattrs
43845 tar --xattrs -cf archive.tar -C dir .
43847 tar --xattrs -xf archive.tar -C output
43848 getfattr -d output/file | grep -v '# ' > after
43851 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
43855 TEST_TAR_FORMAT=oldgnu
43856 export TEST_TAR_FORMAT
43857 TAR_OPTIONS="-H oldgnu"
43863 file=$(TMPDIR=. mktemp fiXXXXXX)
43865 setfattr -n user.test -v test $file &> /dev/null
43866 if test "$?" != 0; then
43871 getfattr $file &> /dev/null
43872 if test "$?" != 0; then
43877 file=$(TMPDIR=. mktemp fiXXXXXX)
43878 setfattr -n user.test -v ahoj $file
43879 # check whether tar fails to store xattrs
43880 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43881 if test "$err" != "0"; then
43888 genfile --file dir/file
43890 setfattr -n user.=NAME%3D= -v value dir/file
43891 getfattr -d dir/file | grep -v '# ' > before
43893 # archive whole directory including binary xattrs
43894 tar --xattrs -cf archive.tar -C dir .
43896 tar --xattrs -xf archive.tar -C output
43897 getfattr -d output/file | grep -v '# ' > after
43900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43901 at_status=$? at_failed=false
43903 at_fn_diff_devnull "$at_stderr" || at_failed=:
43904 at_fn_diff_devnull "$at_stdout" || at_failed=:
43905 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
43906 $at_failed && at_fn_log_failure
43910 $as_echo "$at_srcdir/xattr05.at:31:
43913 TEST_TAR_FORMAT=ustar
43914 export TEST_TAR_FORMAT
43915 TAR_OPTIONS=\"-H ustar\"
43921 file=\$(TMPDIR=. mktemp fiXXXXXX)
43923 setfattr -n user.test -v test \$file &> /dev/null
43924 if test \"\$?\" != 0; then
43929 getfattr \$file &> /dev/null
43930 if test \"\$?\" != 0; then
43935 file=\$(TMPDIR=. mktemp fiXXXXXX)
43936 setfattr -n user.test -v ahoj \$file
43937 # check whether tar fails to store xattrs
43938 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43939 if test \"\$err\" != \"0\"; then
43946 genfile --file dir/file
43948 setfattr -n user.=NAME%3D= -v value dir/file
43949 getfattr -d dir/file | grep -v '# ' > before
43951 # archive whole directory including binary xattrs
43952 tar --xattrs -cf archive.tar -C dir .
43954 tar --xattrs -xf archive.tar -C output
43955 getfattr -d output/file | grep -v '# ' > after
43958 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
43962 TEST_TAR_FORMAT=ustar
43963 export TEST_TAR_FORMAT
43964 TAR_OPTIONS="-H ustar"
43970 file=$(TMPDIR=. mktemp fiXXXXXX)
43972 setfattr -n user.test -v test $file &> /dev/null
43973 if test "$?" != 0; then
43978 getfattr $file &> /dev/null
43979 if test "$?" != 0; then
43984 file=$(TMPDIR=. mktemp fiXXXXXX)
43985 setfattr -n user.test -v ahoj $file
43986 # check whether tar fails to store xattrs
43987 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43988 if test "$err" != "0"; then
43995 genfile --file dir/file
43997 setfattr -n user.=NAME%3D= -v value dir/file
43998 getfattr -d dir/file | grep -v '# ' > before
44000 # archive whole directory including binary xattrs
44001 tar --xattrs -cf archive.tar -C dir .
44003 tar --xattrs -xf archive.tar -C output
44004 getfattr -d output/file | grep -v '# ' > after
44007 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44008 at_status=$? at_failed=false
44010 at_fn_diff_devnull "$at_stderr" || at_failed=:
44011 at_fn_diff_devnull "$at_stdout" || at_failed=:
44012 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
44013 $at_failed && at_fn_log_failure
44017 $as_echo "$at_srcdir/xattr05.at:31:
44020 TEST_TAR_FORMAT=posix
44021 export TEST_TAR_FORMAT
44022 TAR_OPTIONS=\"-H posix\"
44028 file=\$(TMPDIR=. mktemp fiXXXXXX)
44030 setfattr -n user.test -v test \$file &> /dev/null
44031 if test \"\$?\" != 0; then
44036 getfattr \$file &> /dev/null
44037 if test \"\$?\" != 0; then
44042 file=\$(TMPDIR=. mktemp fiXXXXXX)
44043 setfattr -n user.test -v ahoj \$file
44044 # check whether tar fails to store xattrs
44045 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44046 if test \"\$err\" != \"0\"; then
44053 genfile --file dir/file
44055 setfattr -n user.=NAME%3D= -v value dir/file
44056 getfattr -d dir/file | grep -v '# ' > before
44058 # archive whole directory including binary xattrs
44059 tar --xattrs -cf archive.tar -C dir .
44061 tar --xattrs -xf archive.tar -C output
44062 getfattr -d output/file | grep -v '# ' > after
44065 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
44069 TEST_TAR_FORMAT=posix
44070 export TEST_TAR_FORMAT
44071 TAR_OPTIONS="-H posix"
44077 file=$(TMPDIR=. mktemp fiXXXXXX)
44079 setfattr -n user.test -v test $file &> /dev/null
44080 if test "$?" != 0; then
44085 getfattr $file &> /dev/null
44086 if test "$?" != 0; then
44091 file=$(TMPDIR=. mktemp fiXXXXXX)
44092 setfattr -n user.test -v ahoj $file
44093 # check whether tar fails to store xattrs
44094 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44095 if test "$err" != "0"; then
44102 genfile --file dir/file
44104 setfattr -n user.=NAME%3D= -v value dir/file
44105 getfattr -d dir/file | grep -v '# ' > before
44107 # archive whole directory including binary xattrs
44108 tar --xattrs -cf archive.tar -C dir .
44110 tar --xattrs -xf archive.tar -C output
44111 getfattr -d output/file | grep -v '# ' > after
44114 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44115 at_status=$? at_failed=false
44117 at_fn_diff_devnull "$at_stderr" || at_failed=:
44118 at_fn_diff_devnull "$at_stdout" || at_failed=:
44119 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
44120 $at_failed && at_fn_log_failure
44124 $as_echo "$at_srcdir/xattr05.at:31:
44127 TEST_TAR_FORMAT=gnu
44128 export TEST_TAR_FORMAT
44129 TAR_OPTIONS=\"-H gnu\"
44135 file=\$(TMPDIR=. mktemp fiXXXXXX)
44137 setfattr -n user.test -v test \$file &> /dev/null
44138 if test \"\$?\" != 0; then
44143 getfattr \$file &> /dev/null
44144 if test \"\$?\" != 0; then
44149 file=\$(TMPDIR=. mktemp fiXXXXXX)
44150 setfattr -n user.test -v ahoj \$file
44151 # check whether tar fails to store xattrs
44152 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44153 if test \"\$err\" != \"0\"; then
44160 genfile --file dir/file
44162 setfattr -n user.=NAME%3D= -v value dir/file
44163 getfattr -d dir/file | grep -v '# ' > before
44165 # archive whole directory including binary xattrs
44166 tar --xattrs -cf archive.tar -C dir .
44168 tar --xattrs -xf archive.tar -C output
44169 getfattr -d output/file | grep -v '# ' > after
44172 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
44176 TEST_TAR_FORMAT=gnu
44177 export TEST_TAR_FORMAT
44178 TAR_OPTIONS="-H gnu"
44184 file=$(TMPDIR=. mktemp fiXXXXXX)
44186 setfattr -n user.test -v test $file &> /dev/null
44187 if test "$?" != 0; then
44192 getfattr $file &> /dev/null
44193 if test "$?" != 0; then
44198 file=$(TMPDIR=. mktemp fiXXXXXX)
44199 setfattr -n user.test -v ahoj $file
44200 # check whether tar fails to store xattrs
44201 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44202 if test "$err" != "0"; then
44209 genfile --file dir/file
44211 setfattr -n user.=NAME%3D= -v value dir/file
44212 getfattr -d dir/file | grep -v '# ' > before
44214 # archive whole directory including binary xattrs
44215 tar --xattrs -cf archive.tar -C dir .
44217 tar --xattrs -xf archive.tar -C output
44218 getfattr -d output/file | grep -v '# ' > after
44221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44222 at_status=$? at_failed=false
44224 at_fn_diff_devnull "$at_stderr" || at_failed=:
44225 at_fn_diff_devnull "$at_stdout" || at_failed=:
44226 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
44227 $at_failed && at_fn_log_failure
44234 $at_times_p && times >"$at_times_file"
44235 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
44236 read at_status <"$at_status_file"
44239 at_fn_group_banner 188 'acls01.at:25' \
44240 "acls: basic functionality" " " 25
44242 test -f $XFAILFILE && at_xfail=yes
44244 $as_echo "188. $at_setup_line: testing $at_desc ..."
44252 $as_echo "$at_srcdir/acls01.at:28:
44256 export TEST_TAR_FORMAT
44257 TAR_OPTIONS=\"-H v7\"
44262 file=\$(TMPDIR=. mktemp fiXXXXXX)
44264 setfattr -n user.test -v test \$file &> /dev/null
44265 if test \"\$?\" != 0; then
44270 getfattr \$file &> /dev/null
44271 if test \"\$?\" != 0; then
44278 file=\$(TMPDIR=. mktemp fiXXXXXX)
44280 setfacl -m u:\$UID:rwx \$file &> /dev/null
44281 if test \"\$?\" != 0; then
44286 getfacl \$file &> /dev/null
44287 if test \"\$?\" != 0; then
44293 file=\$(TMPDIR=. mktemp fiXXXXXX)
44294 setfacl -m u:\$UID:rwx \$file
44295 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44296 if test \"\$err\" != \"0\"; then
44302 genfile --file dir/file
44304 MYNAME=\$( id -un )
44306 setfacl -m u:\$MYNAME:--x dir/file
44307 setfacl -m u:\$MYNAME:--x dir
44309 getfattr -h -m. -d dir dir/file > before
44311 tar --acls -cf archive.tar dir
44314 tar --acls -xf archive.tar
44316 getfattr -h -m. -d dir dir/file > after
44321 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
44326 export TEST_TAR_FORMAT
44327 TAR_OPTIONS="-H v7"
44332 file=$(TMPDIR=. mktemp fiXXXXXX)
44334 setfattr -n user.test -v test $file &> /dev/null
44335 if test "$?" != 0; then
44340 getfattr $file &> /dev/null
44341 if test "$?" != 0; then
44348 file=$(TMPDIR=. mktemp fiXXXXXX)
44350 setfacl -m u:$UID:rwx $file &> /dev/null
44351 if test "$?" != 0; then
44356 getfacl $file &> /dev/null
44357 if test "$?" != 0; then
44363 file=$(TMPDIR=. mktemp fiXXXXXX)
44364 setfacl -m u:$UID:rwx $file
44365 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44366 if test "$err" != "0"; then
44372 genfile --file dir/file
44376 setfacl -m u:$MYNAME:--x dir/file
44377 setfacl -m u:$MYNAME:--x dir
44379 getfattr -h -m. -d dir dir/file > before
44381 tar --acls -cf archive.tar dir
44384 tar --acls -xf archive.tar
44386 getfattr -h -m. -d dir dir/file > after
44391 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44392 at_status=$? at_failed=false
44394 at_fn_diff_devnull "$at_stderr" || at_failed=:
44395 at_fn_diff_devnull "$at_stdout" || at_failed=:
44396 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
44397 $at_failed && at_fn_log_failure
44401 $as_echo "$at_srcdir/acls01.at:28:
44404 TEST_TAR_FORMAT=oldgnu
44405 export TEST_TAR_FORMAT
44406 TAR_OPTIONS=\"-H oldgnu\"
44411 file=\$(TMPDIR=. mktemp fiXXXXXX)
44413 setfattr -n user.test -v test \$file &> /dev/null
44414 if test \"\$?\" != 0; then
44419 getfattr \$file &> /dev/null
44420 if test \"\$?\" != 0; then
44427 file=\$(TMPDIR=. mktemp fiXXXXXX)
44429 setfacl -m u:\$UID:rwx \$file &> /dev/null
44430 if test \"\$?\" != 0; then
44435 getfacl \$file &> /dev/null
44436 if test \"\$?\" != 0; then
44442 file=\$(TMPDIR=. mktemp fiXXXXXX)
44443 setfacl -m u:\$UID:rwx \$file
44444 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44445 if test \"\$err\" != \"0\"; then
44451 genfile --file dir/file
44453 MYNAME=\$( id -un )
44455 setfacl -m u:\$MYNAME:--x dir/file
44456 setfacl -m u:\$MYNAME:--x dir
44458 getfattr -h -m. -d dir dir/file > before
44460 tar --acls -cf archive.tar dir
44463 tar --acls -xf archive.tar
44465 getfattr -h -m. -d dir dir/file > after
44470 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
44474 TEST_TAR_FORMAT=oldgnu
44475 export TEST_TAR_FORMAT
44476 TAR_OPTIONS="-H oldgnu"
44481 file=$(TMPDIR=. mktemp fiXXXXXX)
44483 setfattr -n user.test -v test $file &> /dev/null
44484 if test "$?" != 0; then
44489 getfattr $file &> /dev/null
44490 if test "$?" != 0; then
44497 file=$(TMPDIR=. mktemp fiXXXXXX)
44499 setfacl -m u:$UID:rwx $file &> /dev/null
44500 if test "$?" != 0; then
44505 getfacl $file &> /dev/null
44506 if test "$?" != 0; then
44512 file=$(TMPDIR=. mktemp fiXXXXXX)
44513 setfacl -m u:$UID:rwx $file
44514 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44515 if test "$err" != "0"; then
44521 genfile --file dir/file
44525 setfacl -m u:$MYNAME:--x dir/file
44526 setfacl -m u:$MYNAME:--x dir
44528 getfattr -h -m. -d dir dir/file > before
44530 tar --acls -cf archive.tar dir
44533 tar --acls -xf archive.tar
44535 getfattr -h -m. -d dir dir/file > after
44540 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44541 at_status=$? at_failed=false
44543 at_fn_diff_devnull "$at_stderr" || at_failed=:
44544 at_fn_diff_devnull "$at_stdout" || at_failed=:
44545 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
44546 $at_failed && at_fn_log_failure
44550 $as_echo "$at_srcdir/acls01.at:28:
44553 TEST_TAR_FORMAT=ustar
44554 export TEST_TAR_FORMAT
44555 TAR_OPTIONS=\"-H ustar\"
44560 file=\$(TMPDIR=. mktemp fiXXXXXX)
44562 setfattr -n user.test -v test \$file &> /dev/null
44563 if test \"\$?\" != 0; then
44568 getfattr \$file &> /dev/null
44569 if test \"\$?\" != 0; then
44576 file=\$(TMPDIR=. mktemp fiXXXXXX)
44578 setfacl -m u:\$UID:rwx \$file &> /dev/null
44579 if test \"\$?\" != 0; then
44584 getfacl \$file &> /dev/null
44585 if test \"\$?\" != 0; then
44591 file=\$(TMPDIR=. mktemp fiXXXXXX)
44592 setfacl -m u:\$UID:rwx \$file
44593 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44594 if test \"\$err\" != \"0\"; then
44600 genfile --file dir/file
44602 MYNAME=\$( id -un )
44604 setfacl -m u:\$MYNAME:--x dir/file
44605 setfacl -m u:\$MYNAME:--x dir
44607 getfattr -h -m. -d dir dir/file > before
44609 tar --acls -cf archive.tar dir
44612 tar --acls -xf archive.tar
44614 getfattr -h -m. -d dir dir/file > after
44619 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
44623 TEST_TAR_FORMAT=ustar
44624 export TEST_TAR_FORMAT
44625 TAR_OPTIONS="-H ustar"
44630 file=$(TMPDIR=. mktemp fiXXXXXX)
44632 setfattr -n user.test -v test $file &> /dev/null
44633 if test "$?" != 0; then
44638 getfattr $file &> /dev/null
44639 if test "$?" != 0; then
44646 file=$(TMPDIR=. mktemp fiXXXXXX)
44648 setfacl -m u:$UID:rwx $file &> /dev/null
44649 if test "$?" != 0; then
44654 getfacl $file &> /dev/null
44655 if test "$?" != 0; then
44661 file=$(TMPDIR=. mktemp fiXXXXXX)
44662 setfacl -m u:$UID:rwx $file
44663 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44664 if test "$err" != "0"; then
44670 genfile --file dir/file
44674 setfacl -m u:$MYNAME:--x dir/file
44675 setfacl -m u:$MYNAME:--x dir
44677 getfattr -h -m. -d dir dir/file > before
44679 tar --acls -cf archive.tar dir
44682 tar --acls -xf archive.tar
44684 getfattr -h -m. -d dir dir/file > after
44689 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44690 at_status=$? at_failed=false
44692 at_fn_diff_devnull "$at_stderr" || at_failed=:
44693 at_fn_diff_devnull "$at_stdout" || at_failed=:
44694 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
44695 $at_failed && at_fn_log_failure
44699 $as_echo "$at_srcdir/acls01.at:28:
44702 TEST_TAR_FORMAT=posix
44703 export TEST_TAR_FORMAT
44704 TAR_OPTIONS=\"-H posix\"
44709 file=\$(TMPDIR=. mktemp fiXXXXXX)
44711 setfattr -n user.test -v test \$file &> /dev/null
44712 if test \"\$?\" != 0; then
44717 getfattr \$file &> /dev/null
44718 if test \"\$?\" != 0; then
44725 file=\$(TMPDIR=. mktemp fiXXXXXX)
44727 setfacl -m u:\$UID:rwx \$file &> /dev/null
44728 if test \"\$?\" != 0; then
44733 getfacl \$file &> /dev/null
44734 if test \"\$?\" != 0; then
44740 file=\$(TMPDIR=. mktemp fiXXXXXX)
44741 setfacl -m u:\$UID:rwx \$file
44742 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44743 if test \"\$err\" != \"0\"; then
44749 genfile --file dir/file
44751 MYNAME=\$( id -un )
44753 setfacl -m u:\$MYNAME:--x dir/file
44754 setfacl -m u:\$MYNAME:--x dir
44756 getfattr -h -m. -d dir dir/file > before
44758 tar --acls -cf archive.tar dir
44761 tar --acls -xf archive.tar
44763 getfattr -h -m. -d dir dir/file > after
44768 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
44772 TEST_TAR_FORMAT=posix
44773 export TEST_TAR_FORMAT
44774 TAR_OPTIONS="-H posix"
44779 file=$(TMPDIR=. mktemp fiXXXXXX)
44781 setfattr -n user.test -v test $file &> /dev/null
44782 if test "$?" != 0; then
44787 getfattr $file &> /dev/null
44788 if test "$?" != 0; then
44795 file=$(TMPDIR=. mktemp fiXXXXXX)
44797 setfacl -m u:$UID:rwx $file &> /dev/null
44798 if test "$?" != 0; then
44803 getfacl $file &> /dev/null
44804 if test "$?" != 0; then
44810 file=$(TMPDIR=. mktemp fiXXXXXX)
44811 setfacl -m u:$UID:rwx $file
44812 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44813 if test "$err" != "0"; then
44819 genfile --file dir/file
44823 setfacl -m u:$MYNAME:--x dir/file
44824 setfacl -m u:$MYNAME:--x dir
44826 getfattr -h -m. -d dir dir/file > before
44828 tar --acls -cf archive.tar dir
44831 tar --acls -xf archive.tar
44833 getfattr -h -m. -d dir dir/file > after
44838 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44839 at_status=$? at_failed=false
44841 at_fn_diff_devnull "$at_stderr" || at_failed=:
44842 at_fn_diff_devnull "$at_stdout" || at_failed=:
44843 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
44844 $at_failed && at_fn_log_failure
44848 $as_echo "$at_srcdir/acls01.at:28:
44851 TEST_TAR_FORMAT=gnu
44852 export TEST_TAR_FORMAT
44853 TAR_OPTIONS=\"-H gnu\"
44858 file=\$(TMPDIR=. mktemp fiXXXXXX)
44860 setfattr -n user.test -v test \$file &> /dev/null
44861 if test \"\$?\" != 0; then
44866 getfattr \$file &> /dev/null
44867 if test \"\$?\" != 0; then
44874 file=\$(TMPDIR=. mktemp fiXXXXXX)
44876 setfacl -m u:\$UID:rwx \$file &> /dev/null
44877 if test \"\$?\" != 0; then
44882 getfacl \$file &> /dev/null
44883 if test \"\$?\" != 0; then
44889 file=\$(TMPDIR=. mktemp fiXXXXXX)
44890 setfacl -m u:\$UID:rwx \$file
44891 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44892 if test \"\$err\" != \"0\"; then
44898 genfile --file dir/file
44900 MYNAME=\$( id -un )
44902 setfacl -m u:\$MYNAME:--x dir/file
44903 setfacl -m u:\$MYNAME:--x dir
44905 getfattr -h -m. -d dir dir/file > before
44907 tar --acls -cf archive.tar dir
44910 tar --acls -xf archive.tar
44912 getfattr -h -m. -d dir dir/file > after
44917 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
44921 TEST_TAR_FORMAT=gnu
44922 export TEST_TAR_FORMAT
44923 TAR_OPTIONS="-H gnu"
44928 file=$(TMPDIR=. mktemp fiXXXXXX)
44930 setfattr -n user.test -v test $file &> /dev/null
44931 if test "$?" != 0; then
44936 getfattr $file &> /dev/null
44937 if test "$?" != 0; then
44944 file=$(TMPDIR=. mktemp fiXXXXXX)
44946 setfacl -m u:$UID:rwx $file &> /dev/null
44947 if test "$?" != 0; then
44952 getfacl $file &> /dev/null
44953 if test "$?" != 0; then
44959 file=$(TMPDIR=. mktemp fiXXXXXX)
44960 setfacl -m u:$UID:rwx $file
44961 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44962 if test "$err" != "0"; then
44968 genfile --file dir/file
44972 setfacl -m u:$MYNAME:--x dir/file
44973 setfacl -m u:$MYNAME:--x dir
44975 getfattr -h -m. -d dir dir/file > before
44977 tar --acls -cf archive.tar dir
44980 tar --acls -xf archive.tar
44982 getfattr -h -m. -d dir dir/file > after
44987 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44988 at_status=$? at_failed=false
44990 at_fn_diff_devnull "$at_stderr" || at_failed=:
44991 at_fn_diff_devnull "$at_stdout" || at_failed=:
44992 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
44993 $at_failed && at_fn_log_failure
45000 $at_times_p && times >"$at_times_file"
45001 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
45002 read at_status <"$at_status_file"
45005 at_fn_group_banner 189 'acls02.at:25' \
45006 "acls: work with -C" " " 25
45008 test -f $XFAILFILE && at_xfail=yes
45010 $as_echo "189. $at_setup_line: testing $at_desc ..."
45018 $as_echo "$at_srcdir/acls02.at:28:
45022 export TEST_TAR_FORMAT
45023 TAR_OPTIONS=\"-H v7\"
45028 file=\$(TMPDIR=. mktemp fiXXXXXX)
45030 setfattr -n user.test -v test \$file &> /dev/null
45031 if test \"\$?\" != 0; then
45036 getfattr \$file &> /dev/null
45037 if test \"\$?\" != 0; then
45044 file=\$(TMPDIR=. mktemp fiXXXXXX)
45046 setfacl -m u:\$UID:rwx \$file &> /dev/null
45047 if test \"\$?\" != 0; then
45052 getfacl \$file &> /dev/null
45053 if test \"\$?\" != 0; then
45059 file=\$(TMPDIR=. mktemp fiXXXXXX)
45060 setfacl -m u:\$UID:rwx \$file
45061 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45062 if test \"\$err\" != \"0\"; then
45069 genfile --file dir/subdir/file
45071 MYNAME=\$( id -un )
45073 setfacl -m u:\$MYNAME:--x dir/subdir
45074 setfacl -m u:\$MYNAME:--x dir/subdir/file
45077 getfattr -h -m. -d subdir subdir/file > ../before
45080 tar --acls -cf archive.tar -C dir subdir
45084 tar --acls -xf archive.tar -C dir
45087 getfattr -h -m. -d subdir subdir/file > ../after
45093 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
45098 export TEST_TAR_FORMAT
45099 TAR_OPTIONS="-H v7"
45104 file=$(TMPDIR=. mktemp fiXXXXXX)
45106 setfattr -n user.test -v test $file &> /dev/null
45107 if test "$?" != 0; then
45112 getfattr $file &> /dev/null
45113 if test "$?" != 0; then
45120 file=$(TMPDIR=. mktemp fiXXXXXX)
45122 setfacl -m u:$UID:rwx $file &> /dev/null
45123 if test "$?" != 0; then
45128 getfacl $file &> /dev/null
45129 if test "$?" != 0; then
45135 file=$(TMPDIR=. mktemp fiXXXXXX)
45136 setfacl -m u:$UID:rwx $file
45137 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45138 if test "$err" != "0"; then
45145 genfile --file dir/subdir/file
45149 setfacl -m u:$MYNAME:--x dir/subdir
45150 setfacl -m u:$MYNAME:--x dir/subdir/file
45153 getfattr -h -m. -d subdir subdir/file > ../before
45156 tar --acls -cf archive.tar -C dir subdir
45160 tar --acls -xf archive.tar -C dir
45163 getfattr -h -m. -d subdir subdir/file > ../after
45169 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45170 at_status=$? at_failed=false
45172 at_fn_diff_devnull "$at_stderr" || at_failed=:
45173 at_fn_diff_devnull "$at_stdout" || at_failed=:
45174 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
45175 $at_failed && at_fn_log_failure
45179 $as_echo "$at_srcdir/acls02.at:28:
45182 TEST_TAR_FORMAT=oldgnu
45183 export TEST_TAR_FORMAT
45184 TAR_OPTIONS=\"-H oldgnu\"
45189 file=\$(TMPDIR=. mktemp fiXXXXXX)
45191 setfattr -n user.test -v test \$file &> /dev/null
45192 if test \"\$?\" != 0; then
45197 getfattr \$file &> /dev/null
45198 if test \"\$?\" != 0; then
45205 file=\$(TMPDIR=. mktemp fiXXXXXX)
45207 setfacl -m u:\$UID:rwx \$file &> /dev/null
45208 if test \"\$?\" != 0; then
45213 getfacl \$file &> /dev/null
45214 if test \"\$?\" != 0; then
45220 file=\$(TMPDIR=. mktemp fiXXXXXX)
45221 setfacl -m u:\$UID:rwx \$file
45222 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45223 if test \"\$err\" != \"0\"; then
45230 genfile --file dir/subdir/file
45232 MYNAME=\$( id -un )
45234 setfacl -m u:\$MYNAME:--x dir/subdir
45235 setfacl -m u:\$MYNAME:--x dir/subdir/file
45238 getfattr -h -m. -d subdir subdir/file > ../before
45241 tar --acls -cf archive.tar -C dir subdir
45245 tar --acls -xf archive.tar -C dir
45248 getfattr -h -m. -d subdir subdir/file > ../after
45254 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
45258 TEST_TAR_FORMAT=oldgnu
45259 export TEST_TAR_FORMAT
45260 TAR_OPTIONS="-H oldgnu"
45265 file=$(TMPDIR=. mktemp fiXXXXXX)
45267 setfattr -n user.test -v test $file &> /dev/null
45268 if test "$?" != 0; then
45273 getfattr $file &> /dev/null
45274 if test "$?" != 0; then
45281 file=$(TMPDIR=. mktemp fiXXXXXX)
45283 setfacl -m u:$UID:rwx $file &> /dev/null
45284 if test "$?" != 0; then
45289 getfacl $file &> /dev/null
45290 if test "$?" != 0; then
45296 file=$(TMPDIR=. mktemp fiXXXXXX)
45297 setfacl -m u:$UID:rwx $file
45298 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45299 if test "$err" != "0"; then
45306 genfile --file dir/subdir/file
45310 setfacl -m u:$MYNAME:--x dir/subdir
45311 setfacl -m u:$MYNAME:--x dir/subdir/file
45314 getfattr -h -m. -d subdir subdir/file > ../before
45317 tar --acls -cf archive.tar -C dir subdir
45321 tar --acls -xf archive.tar -C dir
45324 getfattr -h -m. -d subdir subdir/file > ../after
45330 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45331 at_status=$? at_failed=false
45333 at_fn_diff_devnull "$at_stderr" || at_failed=:
45334 at_fn_diff_devnull "$at_stdout" || at_failed=:
45335 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
45336 $at_failed && at_fn_log_failure
45340 $as_echo "$at_srcdir/acls02.at:28:
45343 TEST_TAR_FORMAT=ustar
45344 export TEST_TAR_FORMAT
45345 TAR_OPTIONS=\"-H ustar\"
45350 file=\$(TMPDIR=. mktemp fiXXXXXX)
45352 setfattr -n user.test -v test \$file &> /dev/null
45353 if test \"\$?\" != 0; then
45358 getfattr \$file &> /dev/null
45359 if test \"\$?\" != 0; then
45366 file=\$(TMPDIR=. mktemp fiXXXXXX)
45368 setfacl -m u:\$UID:rwx \$file &> /dev/null
45369 if test \"\$?\" != 0; then
45374 getfacl \$file &> /dev/null
45375 if test \"\$?\" != 0; then
45381 file=\$(TMPDIR=. mktemp fiXXXXXX)
45382 setfacl -m u:\$UID:rwx \$file
45383 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45384 if test \"\$err\" != \"0\"; then
45391 genfile --file dir/subdir/file
45393 MYNAME=\$( id -un )
45395 setfacl -m u:\$MYNAME:--x dir/subdir
45396 setfacl -m u:\$MYNAME:--x dir/subdir/file
45399 getfattr -h -m. -d subdir subdir/file > ../before
45402 tar --acls -cf archive.tar -C dir subdir
45406 tar --acls -xf archive.tar -C dir
45409 getfattr -h -m. -d subdir subdir/file > ../after
45415 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
45419 TEST_TAR_FORMAT=ustar
45420 export TEST_TAR_FORMAT
45421 TAR_OPTIONS="-H ustar"
45426 file=$(TMPDIR=. mktemp fiXXXXXX)
45428 setfattr -n user.test -v test $file &> /dev/null
45429 if test "$?" != 0; then
45434 getfattr $file &> /dev/null
45435 if test "$?" != 0; then
45442 file=$(TMPDIR=. mktemp fiXXXXXX)
45444 setfacl -m u:$UID:rwx $file &> /dev/null
45445 if test "$?" != 0; then
45450 getfacl $file &> /dev/null
45451 if test "$?" != 0; then
45457 file=$(TMPDIR=. mktemp fiXXXXXX)
45458 setfacl -m u:$UID:rwx $file
45459 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45460 if test "$err" != "0"; then
45467 genfile --file dir/subdir/file
45471 setfacl -m u:$MYNAME:--x dir/subdir
45472 setfacl -m u:$MYNAME:--x dir/subdir/file
45475 getfattr -h -m. -d subdir subdir/file > ../before
45478 tar --acls -cf archive.tar -C dir subdir
45482 tar --acls -xf archive.tar -C dir
45485 getfattr -h -m. -d subdir subdir/file > ../after
45491 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45492 at_status=$? at_failed=false
45494 at_fn_diff_devnull "$at_stderr" || at_failed=:
45495 at_fn_diff_devnull "$at_stdout" || at_failed=:
45496 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
45497 $at_failed && at_fn_log_failure
45501 $as_echo "$at_srcdir/acls02.at:28:
45504 TEST_TAR_FORMAT=posix
45505 export TEST_TAR_FORMAT
45506 TAR_OPTIONS=\"-H posix\"
45511 file=\$(TMPDIR=. mktemp fiXXXXXX)
45513 setfattr -n user.test -v test \$file &> /dev/null
45514 if test \"\$?\" != 0; then
45519 getfattr \$file &> /dev/null
45520 if test \"\$?\" != 0; then
45527 file=\$(TMPDIR=. mktemp fiXXXXXX)
45529 setfacl -m u:\$UID:rwx \$file &> /dev/null
45530 if test \"\$?\" != 0; then
45535 getfacl \$file &> /dev/null
45536 if test \"\$?\" != 0; then
45542 file=\$(TMPDIR=. mktemp fiXXXXXX)
45543 setfacl -m u:\$UID:rwx \$file
45544 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45545 if test \"\$err\" != \"0\"; then
45552 genfile --file dir/subdir/file
45554 MYNAME=\$( id -un )
45556 setfacl -m u:\$MYNAME:--x dir/subdir
45557 setfacl -m u:\$MYNAME:--x dir/subdir/file
45560 getfattr -h -m. -d subdir subdir/file > ../before
45563 tar --acls -cf archive.tar -C dir subdir
45567 tar --acls -xf archive.tar -C dir
45570 getfattr -h -m. -d subdir subdir/file > ../after
45576 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
45580 TEST_TAR_FORMAT=posix
45581 export TEST_TAR_FORMAT
45582 TAR_OPTIONS="-H posix"
45587 file=$(TMPDIR=. mktemp fiXXXXXX)
45589 setfattr -n user.test -v test $file &> /dev/null
45590 if test "$?" != 0; then
45595 getfattr $file &> /dev/null
45596 if test "$?" != 0; then
45603 file=$(TMPDIR=. mktemp fiXXXXXX)
45605 setfacl -m u:$UID:rwx $file &> /dev/null
45606 if test "$?" != 0; then
45611 getfacl $file &> /dev/null
45612 if test "$?" != 0; then
45618 file=$(TMPDIR=. mktemp fiXXXXXX)
45619 setfacl -m u:$UID:rwx $file
45620 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45621 if test "$err" != "0"; then
45628 genfile --file dir/subdir/file
45632 setfacl -m u:$MYNAME:--x dir/subdir
45633 setfacl -m u:$MYNAME:--x dir/subdir/file
45636 getfattr -h -m. -d subdir subdir/file > ../before
45639 tar --acls -cf archive.tar -C dir subdir
45643 tar --acls -xf archive.tar -C dir
45646 getfattr -h -m. -d subdir subdir/file > ../after
45652 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45653 at_status=$? at_failed=false
45655 at_fn_diff_devnull "$at_stderr" || at_failed=:
45656 at_fn_diff_devnull "$at_stdout" || at_failed=:
45657 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
45658 $at_failed && at_fn_log_failure
45662 $as_echo "$at_srcdir/acls02.at:28:
45665 TEST_TAR_FORMAT=gnu
45666 export TEST_TAR_FORMAT
45667 TAR_OPTIONS=\"-H gnu\"
45672 file=\$(TMPDIR=. mktemp fiXXXXXX)
45674 setfattr -n user.test -v test \$file &> /dev/null
45675 if test \"\$?\" != 0; then
45680 getfattr \$file &> /dev/null
45681 if test \"\$?\" != 0; then
45688 file=\$(TMPDIR=. mktemp fiXXXXXX)
45690 setfacl -m u:\$UID:rwx \$file &> /dev/null
45691 if test \"\$?\" != 0; then
45696 getfacl \$file &> /dev/null
45697 if test \"\$?\" != 0; then
45703 file=\$(TMPDIR=. mktemp fiXXXXXX)
45704 setfacl -m u:\$UID:rwx \$file
45705 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45706 if test \"\$err\" != \"0\"; then
45713 genfile --file dir/subdir/file
45715 MYNAME=\$( id -un )
45717 setfacl -m u:\$MYNAME:--x dir/subdir
45718 setfacl -m u:\$MYNAME:--x dir/subdir/file
45721 getfattr -h -m. -d subdir subdir/file > ../before
45724 tar --acls -cf archive.tar -C dir subdir
45728 tar --acls -xf archive.tar -C dir
45731 getfattr -h -m. -d subdir subdir/file > ../after
45737 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
45741 TEST_TAR_FORMAT=gnu
45742 export TEST_TAR_FORMAT
45743 TAR_OPTIONS="-H gnu"
45748 file=$(TMPDIR=. mktemp fiXXXXXX)
45750 setfattr -n user.test -v test $file &> /dev/null
45751 if test "$?" != 0; then
45756 getfattr $file &> /dev/null
45757 if test "$?" != 0; then
45764 file=$(TMPDIR=. mktemp fiXXXXXX)
45766 setfacl -m u:$UID:rwx $file &> /dev/null
45767 if test "$?" != 0; then
45772 getfacl $file &> /dev/null
45773 if test "$?" != 0; then
45779 file=$(TMPDIR=. mktemp fiXXXXXX)
45780 setfacl -m u:$UID:rwx $file
45781 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45782 if test "$err" != "0"; then
45789 genfile --file dir/subdir/file
45793 setfacl -m u:$MYNAME:--x dir/subdir
45794 setfacl -m u:$MYNAME:--x dir/subdir/file
45797 getfattr -h -m. -d subdir subdir/file > ../before
45800 tar --acls -cf archive.tar -C dir subdir
45804 tar --acls -xf archive.tar -C dir
45807 getfattr -h -m. -d subdir subdir/file > ../after
45813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45814 at_status=$? at_failed=false
45816 at_fn_diff_devnull "$at_stderr" || at_failed=:
45817 at_fn_diff_devnull "$at_stdout" || at_failed=:
45818 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
45819 $at_failed && at_fn_log_failure
45826 $at_times_p && times >"$at_times_file"
45827 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
45828 read at_status <"$at_status_file"
45831 at_fn_group_banner 190 'acls03.at:30' \
45832 "acls: default ACLs" " " 25
45834 test -f $XFAILFILE && at_xfail=yes
45836 $as_echo "190. $at_setup_line: testing $at_desc ..."
45848 $as_echo "$at_srcdir/acls03.at:47:
45852 export TEST_TAR_FORMAT
45853 TAR_OPTIONS=\"-H v7\"
45858 file=\$(TMPDIR=. mktemp fiXXXXXX)
45860 setfattr -n user.test -v test \$file &> /dev/null
45861 if test \"\$?\" != 0; then
45866 getfattr \$file &> /dev/null
45867 if test \"\$?\" != 0; then
45874 file=\$(TMPDIR=. mktemp fiXXXXXX)
45876 setfacl -m u:\$UID:rwx \$file &> /dev/null
45877 if test \"\$?\" != 0; then
45882 getfacl \$file &> /dev/null
45883 if test \"\$?\" != 0; then
45889 file=\$(TMPDIR=. mktemp fiXXXXXX)
45890 setfacl -m u:\$UID:rwx \$file
45891 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45892 if test \"\$err\" != \"0\"; then
45897 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45900 MYNAME=\$( id -un )
45901 MYGROUP=\$( id -gn )
45903 # Prepare directory structure with default ACLs
45904 mkdir -p pure/d1/d2
45905 genfile --file pure/d1/f2a
45906 genfile --file pure/d1/f2b
45907 genfile --file pure/d1/d2/f3a
45908 genfile --file pure/d1/d2/f3b
45909 setfacl -m g:\$MYGROUP:r-x pure/d1
45910 setfacl -d -m g:\$MYGROUP:rwx pure/d1
45911 setfacl -d -m u:\$MYNAME:rwx pure/d1
45912 # \"*a\" files have \"some\" additional ACLs
45913 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
45914 setfacl -m u:\$MYNAME:--- pure/d1/f2a
45916 # use default format (no acls stored)
45917 tar -cf noacl.tar -C pure d1
45919 # use posix format, acls stored
45920 tar --acls -cf acl.tar -C pure d1
45922 # Directory names are chosen based on \"how the files were extracted from
45923 # archive\". Equivalent no* tags are used also:
45924 # ^sacl_ — extracted archive has stored ACLs
45925 # _def_ — target directory (-C) has default ACLs
45926 # _optacl\$ — extraction was done with --acls option
45928 mkdir sacl_def_optacl
45929 mkdir sacl_def_optnoacl
45930 mkdir sacl_nodef_optacl
45931 mkdir sacl_nodef_optnoacl
45932 mkdir nosacl_def_optacl
45933 mkdir nosacl_def_optnoacl
45934 mkdir nosacl_nodef_optacl
45935 mkdir nosacl_nodef_optnoacl
45937 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
45938 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
45940 tar -xf acl.tar -C sacl_nodef_optnoacl
45941 tar --acls -xf acl.tar -C sacl_nodef_optacl
45942 tar -xf acl.tar -C sacl_def_optnoacl
45943 tar --acls -xf acl.tar -C sacl_def_optacl
45944 tar -xf noacl.tar -C nosacl_def_optnoacl
45945 # _NO_ ACLs in output
45946 tar -xf noacl.tar -C nosacl_nodef_optnoacl
45947 tar -xf noacl.tar -C nosacl_nodef_optacl
45948 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
45949 # _NO_ ACLs in output (even when default ACLs exist)
45950 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
45954 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45960 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45964 cd sacl_def_optnoacl
45965 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45969 cd sacl_nodef_optacl
45970 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45974 cd sacl_nodef_optnoacl
45975 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45979 cd nosacl_def_optacl
45980 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45984 cd nosacl_def_optnoacl
45985 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45989 cd nosacl_nodef_optacl
45990 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
45994 cd nosacl_nodef_optnoacl
45995 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46000 echo \"\$pure\" > pure.log
46001 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46002 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
46003 echo \"bad 'pure' against 'sacl_def_optacl' output\"
46008 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46009 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
46010 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
46011 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
46015 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46016 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46017 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
46018 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
46022 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
46023 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46024 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46025 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46029 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46030 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
46031 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
46032 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
46036 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46037 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46038 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46039 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
46044 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46045 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46046 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
46047 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
46051 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46052 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46053 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
46054 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
46058 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46059 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46060 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
46061 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46065 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
46070 export TEST_TAR_FORMAT
46071 TAR_OPTIONS="-H v7"
46076 file=$(TMPDIR=. mktemp fiXXXXXX)
46078 setfattr -n user.test -v test $file &> /dev/null
46079 if test "$?" != 0; then
46084 getfattr $file &> /dev/null
46085 if test "$?" != 0; then
46092 file=$(TMPDIR=. mktemp fiXXXXXX)
46094 setfacl -m u:$UID:rwx $file &> /dev/null
46095 if test "$?" != 0; then
46100 getfacl $file &> /dev/null
46101 if test "$?" != 0; then
46107 file=$(TMPDIR=. mktemp fiXXXXXX)
46108 setfacl -m u:$UID:rwx $file
46109 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
46110 if test "$err" != "0"; then
46115 test -z "`sort < /dev/null 2>&1`" || exit 77
46119 MYGROUP=$( id -gn )
46121 # Prepare directory structure with default ACLs
46122 mkdir -p pure/d1/d2
46123 genfile --file pure/d1/f2a
46124 genfile --file pure/d1/f2b
46125 genfile --file pure/d1/d2/f3a
46126 genfile --file pure/d1/d2/f3b
46127 setfacl -m g:$MYGROUP:r-x pure/d1
46128 setfacl -d -m g:$MYGROUP:rwx pure/d1
46129 setfacl -d -m u:$MYNAME:rwx pure/d1
46130 # "*a" files have "some" additional ACLs
46131 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
46132 setfacl -m u:$MYNAME:--- pure/d1/f2a
46134 # use default format (no acls stored)
46135 tar -cf noacl.tar -C pure d1
46137 # use posix format, acls stored
46138 tar --acls -cf acl.tar -C pure d1
46140 # Directory names are chosen based on "how the files were extracted from
46141 # archive". Equivalent no* tags are used also:
46142 # ^sacl_ — extracted archive has stored ACLs
46143 # _def_ — target directory (-C) has default ACLs
46144 # _optacl$ — extraction was done with --acls option
46146 mkdir sacl_def_optacl
46147 mkdir sacl_def_optnoacl
46148 mkdir sacl_nodef_optacl
46149 mkdir sacl_nodef_optnoacl
46150 mkdir nosacl_def_optacl
46151 mkdir nosacl_def_optnoacl
46152 mkdir nosacl_nodef_optacl
46153 mkdir nosacl_nodef_optnoacl
46155 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46156 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46158 tar -xf acl.tar -C sacl_nodef_optnoacl
46159 tar --acls -xf acl.tar -C sacl_nodef_optacl
46160 tar -xf acl.tar -C sacl_def_optnoacl
46161 tar --acls -xf acl.tar -C sacl_def_optacl
46162 tar -xf noacl.tar -C nosacl_def_optnoacl
46163 # _NO_ ACLs in output
46164 tar -xf noacl.tar -C nosacl_nodef_optnoacl
46165 tar -xf noacl.tar -C nosacl_nodef_optacl
46166 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
46167 # _NO_ ACLs in output (even when default ACLs exist)
46168 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
46172 pure="$(find d1 | sort | xargs -n 1 getfacl)"
46178 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46182 cd sacl_def_optnoacl
46183 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46187 cd sacl_nodef_optacl
46188 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46192 cd sacl_nodef_optnoacl
46193 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46197 cd nosacl_def_optacl
46198 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46202 cd nosacl_def_optnoacl
46203 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46207 cd nosacl_nodef_optacl
46208 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46212 cd nosacl_nodef_optnoacl
46213 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46218 echo "$pure" > pure.log
46219 echo "$sacl_def_optacl" > sacl_def_optacl.log
46220 if test ! "$pure" "=" "$sacl_def_optacl"; then
46221 echo "bad 'pure' against 'sacl_def_optacl' output"
46226 echo "$sacl_def_optacl" > sacl_def_optacl.log
46227 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
46228 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
46229 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
46233 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
46234 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46235 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
46236 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
46240 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
46241 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46242 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
46243 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
46247 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
46248 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
46249 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
46250 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
46254 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
46255 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46256 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
46257 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
46262 echo "$sacl_def_optacl" > sacl_def_optacl.log
46263 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
46264 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
46265 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
46269 echo "$sacl_def_optacl" > sacl_def_optacl.log
46270 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46271 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
46272 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
46276 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46277 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46278 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
46279 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
46283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46284 at_status=$? at_failed=false
46286 at_fn_diff_devnull "$at_stderr" || at_failed=:
46287 at_fn_diff_devnull "$at_stdout" || at_failed=:
46288 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
46289 $at_failed && at_fn_log_failure
46293 $as_echo "$at_srcdir/acls03.at:47:
46296 TEST_TAR_FORMAT=oldgnu
46297 export TEST_TAR_FORMAT
46298 TAR_OPTIONS=\"-H oldgnu\"
46303 file=\$(TMPDIR=. mktemp fiXXXXXX)
46305 setfattr -n user.test -v test \$file &> /dev/null
46306 if test \"\$?\" != 0; then
46311 getfattr \$file &> /dev/null
46312 if test \"\$?\" != 0; then
46319 file=\$(TMPDIR=. mktemp fiXXXXXX)
46321 setfacl -m u:\$UID:rwx \$file &> /dev/null
46322 if test \"\$?\" != 0; then
46327 getfacl \$file &> /dev/null
46328 if test \"\$?\" != 0; then
46334 file=\$(TMPDIR=. mktemp fiXXXXXX)
46335 setfacl -m u:\$UID:rwx \$file
46336 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
46337 if test \"\$err\" != \"0\"; then
46342 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46345 MYNAME=\$( id -un )
46346 MYGROUP=\$( id -gn )
46348 # Prepare directory structure with default ACLs
46349 mkdir -p pure/d1/d2
46350 genfile --file pure/d1/f2a
46351 genfile --file pure/d1/f2b
46352 genfile --file pure/d1/d2/f3a
46353 genfile --file pure/d1/d2/f3b
46354 setfacl -m g:\$MYGROUP:r-x pure/d1
46355 setfacl -d -m g:\$MYGROUP:rwx pure/d1
46356 setfacl -d -m u:\$MYNAME:rwx pure/d1
46357 # \"*a\" files have \"some\" additional ACLs
46358 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
46359 setfacl -m u:\$MYNAME:--- pure/d1/f2a
46361 # use default format (no acls stored)
46362 tar -cf noacl.tar -C pure d1
46364 # use posix format, acls stored
46365 tar --acls -cf acl.tar -C pure d1
46367 # Directory names are chosen based on \"how the files were extracted from
46368 # archive\". Equivalent no* tags are used also:
46369 # ^sacl_ — extracted archive has stored ACLs
46370 # _def_ — target directory (-C) has default ACLs
46371 # _optacl\$ — extraction was done with --acls option
46373 mkdir sacl_def_optacl
46374 mkdir sacl_def_optnoacl
46375 mkdir sacl_nodef_optacl
46376 mkdir sacl_nodef_optnoacl
46377 mkdir nosacl_def_optacl
46378 mkdir nosacl_def_optnoacl
46379 mkdir nosacl_nodef_optacl
46380 mkdir nosacl_nodef_optnoacl
46382 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46383 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46385 tar -xf acl.tar -C sacl_nodef_optnoacl
46386 tar --acls -xf acl.tar -C sacl_nodef_optacl
46387 tar -xf acl.tar -C sacl_def_optnoacl
46388 tar --acls -xf acl.tar -C sacl_def_optacl
46389 tar -xf noacl.tar -C nosacl_def_optnoacl
46390 # _NO_ ACLs in output
46391 tar -xf noacl.tar -C nosacl_nodef_optnoacl
46392 tar -xf noacl.tar -C nosacl_nodef_optacl
46393 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
46394 # _NO_ ACLs in output (even when default ACLs exist)
46395 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
46399 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46405 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46409 cd sacl_def_optnoacl
46410 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46414 cd sacl_nodef_optacl
46415 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46419 cd sacl_nodef_optnoacl
46420 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46424 cd nosacl_def_optacl
46425 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46429 cd nosacl_def_optnoacl
46430 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46434 cd nosacl_nodef_optacl
46435 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46439 cd nosacl_nodef_optnoacl
46440 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46445 echo \"\$pure\" > pure.log
46446 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46447 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
46448 echo \"bad 'pure' against 'sacl_def_optacl' output\"
46453 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46454 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
46455 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
46456 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
46460 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46461 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46462 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
46463 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
46467 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
46468 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46469 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46470 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46474 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46475 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
46476 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
46477 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
46481 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46482 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46483 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46484 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
46489 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46490 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46491 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
46492 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
46496 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46497 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46498 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
46499 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
46503 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46504 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46505 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
46506 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46510 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
46514 TEST_TAR_FORMAT=oldgnu
46515 export TEST_TAR_FORMAT
46516 TAR_OPTIONS="-H oldgnu"
46521 file=$(TMPDIR=. mktemp fiXXXXXX)
46523 setfattr -n user.test -v test $file &> /dev/null
46524 if test "$?" != 0; then
46529 getfattr $file &> /dev/null
46530 if test "$?" != 0; then
46537 file=$(TMPDIR=. mktemp fiXXXXXX)
46539 setfacl -m u:$UID:rwx $file &> /dev/null
46540 if test "$?" != 0; then
46545 getfacl $file &> /dev/null
46546 if test "$?" != 0; then
46552 file=$(TMPDIR=. mktemp fiXXXXXX)
46553 setfacl -m u:$UID:rwx $file
46554 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
46555 if test "$err" != "0"; then
46560 test -z "`sort < /dev/null 2>&1`" || exit 77
46564 MYGROUP=$( id -gn )
46566 # Prepare directory structure with default ACLs
46567 mkdir -p pure/d1/d2
46568 genfile --file pure/d1/f2a
46569 genfile --file pure/d1/f2b
46570 genfile --file pure/d1/d2/f3a
46571 genfile --file pure/d1/d2/f3b
46572 setfacl -m g:$MYGROUP:r-x pure/d1
46573 setfacl -d -m g:$MYGROUP:rwx pure/d1
46574 setfacl -d -m u:$MYNAME:rwx pure/d1
46575 # "*a" files have "some" additional ACLs
46576 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
46577 setfacl -m u:$MYNAME:--- pure/d1/f2a
46579 # use default format (no acls stored)
46580 tar -cf noacl.tar -C pure d1
46582 # use posix format, acls stored
46583 tar --acls -cf acl.tar -C pure d1
46585 # Directory names are chosen based on "how the files were extracted from
46586 # archive". Equivalent no* tags are used also:
46587 # ^sacl_ — extracted archive has stored ACLs
46588 # _def_ — target directory (-C) has default ACLs
46589 # _optacl$ — extraction was done with --acls option
46591 mkdir sacl_def_optacl
46592 mkdir sacl_def_optnoacl
46593 mkdir sacl_nodef_optacl
46594 mkdir sacl_nodef_optnoacl
46595 mkdir nosacl_def_optacl
46596 mkdir nosacl_def_optnoacl
46597 mkdir nosacl_nodef_optacl
46598 mkdir nosacl_nodef_optnoacl
46600 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46601 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46603 tar -xf acl.tar -C sacl_nodef_optnoacl
46604 tar --acls -xf acl.tar -C sacl_nodef_optacl
46605 tar -xf acl.tar -C sacl_def_optnoacl
46606 tar --acls -xf acl.tar -C sacl_def_optacl
46607 tar -xf noacl.tar -C nosacl_def_optnoacl
46608 # _NO_ ACLs in output
46609 tar -xf noacl.tar -C nosacl_nodef_optnoacl
46610 tar -xf noacl.tar -C nosacl_nodef_optacl
46611 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
46612 # _NO_ ACLs in output (even when default ACLs exist)
46613 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
46617 pure="$(find d1 | sort | xargs -n 1 getfacl)"
46623 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46627 cd sacl_def_optnoacl
46628 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46632 cd sacl_nodef_optacl
46633 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46637 cd sacl_nodef_optnoacl
46638 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46642 cd nosacl_def_optacl
46643 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46647 cd nosacl_def_optnoacl
46648 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46652 cd nosacl_nodef_optacl
46653 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
46657 cd nosacl_nodef_optnoacl
46658 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
46663 echo "$pure" > pure.log
46664 echo "$sacl_def_optacl" > sacl_def_optacl.log
46665 if test ! "$pure" "=" "$sacl_def_optacl"; then
46666 echo "bad 'pure' against 'sacl_def_optacl' output"
46671 echo "$sacl_def_optacl" > sacl_def_optacl.log
46672 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
46673 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
46674 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
46678 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
46679 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46680 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
46681 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
46685 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
46686 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46687 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
46688 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
46692 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
46693 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
46694 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
46695 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
46699 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
46700 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46701 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
46702 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
46707 echo "$sacl_def_optacl" > sacl_def_optacl.log
46708 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
46709 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
46710 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
46714 echo "$sacl_def_optacl" > sacl_def_optacl.log
46715 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46716 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
46717 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
46721 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
46722 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
46723 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
46724 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
46728 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46729 at_status=$? at_failed=false
46731 at_fn_diff_devnull "$at_stderr" || at_failed=:
46732 at_fn_diff_devnull "$at_stdout" || at_failed=:
46733 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
46734 $at_failed && at_fn_log_failure
46738 $as_echo "$at_srcdir/acls03.at:47:
46741 TEST_TAR_FORMAT=ustar
46742 export TEST_TAR_FORMAT
46743 TAR_OPTIONS=\"-H ustar\"
46748 file=\$(TMPDIR=. mktemp fiXXXXXX)
46750 setfattr -n user.test -v test \$file &> /dev/null
46751 if test \"\$?\" != 0; then
46756 getfattr \$file &> /dev/null
46757 if test \"\$?\" != 0; then
46764 file=\$(TMPDIR=. mktemp fiXXXXXX)
46766 setfacl -m u:\$UID:rwx \$file &> /dev/null
46767 if test \"\$?\" != 0; then
46772 getfacl \$file &> /dev/null
46773 if test \"\$?\" != 0; then
46779 file=\$(TMPDIR=. mktemp fiXXXXXX)
46780 setfacl -m u:\$UID:rwx \$file
46781 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
46782 if test \"\$err\" != \"0\"; then
46787 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46790 MYNAME=\$( id -un )
46791 MYGROUP=\$( id -gn )
46793 # Prepare directory structure with default ACLs
46794 mkdir -p pure/d1/d2
46795 genfile --file pure/d1/f2a
46796 genfile --file pure/d1/f2b
46797 genfile --file pure/d1/d2/f3a
46798 genfile --file pure/d1/d2/f3b
46799 setfacl -m g:\$MYGROUP:r-x pure/d1
46800 setfacl -d -m g:\$MYGROUP:rwx pure/d1
46801 setfacl -d -m u:\$MYNAME:rwx pure/d1
46802 # \"*a\" files have \"some\" additional ACLs
46803 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
46804 setfacl -m u:\$MYNAME:--- pure/d1/f2a
46806 # use default format (no acls stored)
46807 tar -cf noacl.tar -C pure d1
46809 # use posix format, acls stored
46810 tar --acls -cf acl.tar -C pure d1
46812 # Directory names are chosen based on \"how the files were extracted from
46813 # archive\". Equivalent no* tags are used also:
46814 # ^sacl_ — extracted archive has stored ACLs
46815 # _def_ — target directory (-C) has default ACLs
46816 # _optacl\$ — extraction was done with --acls option
46818 mkdir sacl_def_optacl
46819 mkdir sacl_def_optnoacl
46820 mkdir sacl_nodef_optacl
46821 mkdir sacl_nodef_optnoacl
46822 mkdir nosacl_def_optacl
46823 mkdir nosacl_def_optnoacl
46824 mkdir nosacl_nodef_optacl
46825 mkdir nosacl_nodef_optnoacl
46827 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46828 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
46830 tar -xf acl.tar -C sacl_nodef_optnoacl
46831 tar --acls -xf acl.tar -C sacl_nodef_optacl
46832 tar -xf acl.tar -C sacl_def_optnoacl
46833 tar --acls -xf acl.tar -C sacl_def_optacl
46834 tar -xf noacl.tar -C nosacl_def_optnoacl
46835 # _NO_ ACLs in output
46836 tar -xf noacl.tar -C nosacl_nodef_optnoacl
46837 tar -xf noacl.tar -C nosacl_nodef_optacl
46838 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
46839 # _NO_ ACLs in output (even when default ACLs exist)
46840 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
46844 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46850 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46854 cd sacl_def_optnoacl
46855 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46859 cd sacl_nodef_optacl
46860 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46864 cd sacl_nodef_optnoacl
46865 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46869 cd nosacl_def_optacl
46870 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46874 cd nosacl_def_optnoacl
46875 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46879 cd nosacl_nodef_optacl
46880 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46884 cd nosacl_nodef_optnoacl
46885 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
46890 echo \"\$pure\" > pure.log
46891 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46892 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
46893 echo \"bad 'pure' against 'sacl_def_optacl' output\"
46898 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46899 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
46900 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
46901 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
46905 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46906 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46907 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
46908 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
46912 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
46913 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46914 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46915 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46919 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46920 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
46921 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
46922 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
46926 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
46927 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46928 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
46929 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
46934 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46935 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
46936 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
46937 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
46941 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
46942 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46943 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
46944 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
46948 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
46949 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
46950 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
46951 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
46955 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
46959 TEST_TAR_FORMAT=ustar
46960 export TEST_TAR_FORMAT
46961 TAR_OPTIONS="-H ustar"
46966 file=$(TMPDIR=. mktemp fiXXXXXX)
46968 setfattr -n user.test -v test $file &> /dev/null
46969 if test "$?" != 0; then
46974 getfattr $file &> /dev/null
46975 if test "$?" != 0; then
46982 file=$(TMPDIR=. mktemp fiXXXXXX)
46984 setfacl -m u:$UID:rwx $file &> /dev/null
46985 if test "$?" != 0; then
46990 getfacl $file &> /dev/null
46991 if test "$?" != 0; then
46997 file=$(TMPDIR=. mktemp fiXXXXXX)
46998 setfacl -m u:$UID:rwx $file
46999 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
47000 if test "$err" != "0"; then
47005 test -z "`sort < /dev/null 2>&1`" || exit 77
47009 MYGROUP=$( id -gn )
47011 # Prepare directory structure with default ACLs
47012 mkdir -p pure/d1/d2
47013 genfile --file pure/d1/f2a
47014 genfile --file pure/d1/f2b
47015 genfile --file pure/d1/d2/f3a
47016 genfile --file pure/d1/d2/f3b
47017 setfacl -m g:$MYGROUP:r-x pure/d1
47018 setfacl -d -m g:$MYGROUP:rwx pure/d1
47019 setfacl -d -m u:$MYNAME:rwx pure/d1
47020 # "*a" files have "some" additional ACLs
47021 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
47022 setfacl -m u:$MYNAME:--- pure/d1/f2a
47024 # use default format (no acls stored)
47025 tar -cf noacl.tar -C pure d1
47027 # use posix format, acls stored
47028 tar --acls -cf acl.tar -C pure d1
47030 # Directory names are chosen based on "how the files were extracted from
47031 # archive". Equivalent no* tags are used also:
47032 # ^sacl_ — extracted archive has stored ACLs
47033 # _def_ — target directory (-C) has default ACLs
47034 # _optacl$ — extraction was done with --acls option
47036 mkdir sacl_def_optacl
47037 mkdir sacl_def_optnoacl
47038 mkdir sacl_nodef_optacl
47039 mkdir sacl_nodef_optnoacl
47040 mkdir nosacl_def_optacl
47041 mkdir nosacl_def_optnoacl
47042 mkdir nosacl_nodef_optacl
47043 mkdir nosacl_nodef_optnoacl
47045 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47046 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47048 tar -xf acl.tar -C sacl_nodef_optnoacl
47049 tar --acls -xf acl.tar -C sacl_nodef_optacl
47050 tar -xf acl.tar -C sacl_def_optnoacl
47051 tar --acls -xf acl.tar -C sacl_def_optacl
47052 tar -xf noacl.tar -C nosacl_def_optnoacl
47053 # _NO_ ACLs in output
47054 tar -xf noacl.tar -C nosacl_nodef_optnoacl
47055 tar -xf noacl.tar -C nosacl_nodef_optacl
47056 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
47057 # _NO_ ACLs in output (even when default ACLs exist)
47058 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
47062 pure="$(find d1 | sort | xargs -n 1 getfacl)"
47068 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47072 cd sacl_def_optnoacl
47073 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47077 cd sacl_nodef_optacl
47078 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47082 cd sacl_nodef_optnoacl
47083 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47087 cd nosacl_def_optacl
47088 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47092 cd nosacl_def_optnoacl
47093 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47097 cd nosacl_nodef_optacl
47098 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47102 cd nosacl_nodef_optnoacl
47103 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47108 echo "$pure" > pure.log
47109 echo "$sacl_def_optacl" > sacl_def_optacl.log
47110 if test ! "$pure" "=" "$sacl_def_optacl"; then
47111 echo "bad 'pure' against 'sacl_def_optacl' output"
47116 echo "$sacl_def_optacl" > sacl_def_optacl.log
47117 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
47118 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
47119 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
47123 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
47124 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47125 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
47126 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
47130 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
47131 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47132 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
47133 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
47137 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
47138 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
47139 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
47140 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
47144 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
47145 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47146 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
47147 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
47152 echo "$sacl_def_optacl" > sacl_def_optacl.log
47153 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
47154 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
47155 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
47159 echo "$sacl_def_optacl" > sacl_def_optacl.log
47160 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47161 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
47162 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
47166 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47167 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47168 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
47169 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
47173 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
47174 at_status=$? at_failed=false
47176 at_fn_diff_devnull "$at_stderr" || at_failed=:
47177 at_fn_diff_devnull "$at_stdout" || at_failed=:
47178 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
47179 $at_failed && at_fn_log_failure
47183 $as_echo "$at_srcdir/acls03.at:47:
47186 TEST_TAR_FORMAT=posix
47187 export TEST_TAR_FORMAT
47188 TAR_OPTIONS=\"-H posix\"
47193 file=\$(TMPDIR=. mktemp fiXXXXXX)
47195 setfattr -n user.test -v test \$file &> /dev/null
47196 if test \"\$?\" != 0; then
47201 getfattr \$file &> /dev/null
47202 if test \"\$?\" != 0; then
47209 file=\$(TMPDIR=. mktemp fiXXXXXX)
47211 setfacl -m u:\$UID:rwx \$file &> /dev/null
47212 if test \"\$?\" != 0; then
47217 getfacl \$file &> /dev/null
47218 if test \"\$?\" != 0; then
47224 file=\$(TMPDIR=. mktemp fiXXXXXX)
47225 setfacl -m u:\$UID:rwx \$file
47226 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
47227 if test \"\$err\" != \"0\"; then
47232 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
47235 MYNAME=\$( id -un )
47236 MYGROUP=\$( id -gn )
47238 # Prepare directory structure with default ACLs
47239 mkdir -p pure/d1/d2
47240 genfile --file pure/d1/f2a
47241 genfile --file pure/d1/f2b
47242 genfile --file pure/d1/d2/f3a
47243 genfile --file pure/d1/d2/f3b
47244 setfacl -m g:\$MYGROUP:r-x pure/d1
47245 setfacl -d -m g:\$MYGROUP:rwx pure/d1
47246 setfacl -d -m u:\$MYNAME:rwx pure/d1
47247 # \"*a\" files have \"some\" additional ACLs
47248 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
47249 setfacl -m u:\$MYNAME:--- pure/d1/f2a
47251 # use default format (no acls stored)
47252 tar -cf noacl.tar -C pure d1
47254 # use posix format, acls stored
47255 tar --acls -cf acl.tar -C pure d1
47257 # Directory names are chosen based on \"how the files were extracted from
47258 # archive\". Equivalent no* tags are used also:
47259 # ^sacl_ — extracted archive has stored ACLs
47260 # _def_ — target directory (-C) has default ACLs
47261 # _optacl\$ — extraction was done with --acls option
47263 mkdir sacl_def_optacl
47264 mkdir sacl_def_optnoacl
47265 mkdir sacl_nodef_optacl
47266 mkdir sacl_nodef_optnoacl
47267 mkdir nosacl_def_optacl
47268 mkdir nosacl_def_optnoacl
47269 mkdir nosacl_nodef_optacl
47270 mkdir nosacl_nodef_optnoacl
47272 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47273 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47275 tar -xf acl.tar -C sacl_nodef_optnoacl
47276 tar --acls -xf acl.tar -C sacl_nodef_optacl
47277 tar -xf acl.tar -C sacl_def_optnoacl
47278 tar --acls -xf acl.tar -C sacl_def_optacl
47279 tar -xf noacl.tar -C nosacl_def_optnoacl
47280 # _NO_ ACLs in output
47281 tar -xf noacl.tar -C nosacl_nodef_optnoacl
47282 tar -xf noacl.tar -C nosacl_nodef_optacl
47283 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
47284 # _NO_ ACLs in output (even when default ACLs exist)
47285 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
47289 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47295 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47299 cd sacl_def_optnoacl
47300 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47304 cd sacl_nodef_optacl
47305 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47309 cd sacl_nodef_optnoacl
47310 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47314 cd nosacl_def_optacl
47315 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47319 cd nosacl_def_optnoacl
47320 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47324 cd nosacl_nodef_optacl
47325 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47329 cd nosacl_nodef_optnoacl
47330 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47335 echo \"\$pure\" > pure.log
47336 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47337 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
47338 echo \"bad 'pure' against 'sacl_def_optacl' output\"
47343 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47344 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
47345 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
47346 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
47350 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
47351 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47352 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
47353 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
47357 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
47358 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47359 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
47360 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
47364 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
47365 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
47366 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
47367 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
47371 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
47372 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47373 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
47374 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
47379 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47380 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
47381 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
47382 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
47386 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47387 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47388 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
47389 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
47393 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47394 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47395 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
47396 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
47400 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
47404 TEST_TAR_FORMAT=posix
47405 export TEST_TAR_FORMAT
47406 TAR_OPTIONS="-H posix"
47411 file=$(TMPDIR=. mktemp fiXXXXXX)
47413 setfattr -n user.test -v test $file &> /dev/null
47414 if test "$?" != 0; then
47419 getfattr $file &> /dev/null
47420 if test "$?" != 0; then
47427 file=$(TMPDIR=. mktemp fiXXXXXX)
47429 setfacl -m u:$UID:rwx $file &> /dev/null
47430 if test "$?" != 0; then
47435 getfacl $file &> /dev/null
47436 if test "$?" != 0; then
47442 file=$(TMPDIR=. mktemp fiXXXXXX)
47443 setfacl -m u:$UID:rwx $file
47444 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
47445 if test "$err" != "0"; then
47450 test -z "`sort < /dev/null 2>&1`" || exit 77
47454 MYGROUP=$( id -gn )
47456 # Prepare directory structure with default ACLs
47457 mkdir -p pure/d1/d2
47458 genfile --file pure/d1/f2a
47459 genfile --file pure/d1/f2b
47460 genfile --file pure/d1/d2/f3a
47461 genfile --file pure/d1/d2/f3b
47462 setfacl -m g:$MYGROUP:r-x pure/d1
47463 setfacl -d -m g:$MYGROUP:rwx pure/d1
47464 setfacl -d -m u:$MYNAME:rwx pure/d1
47465 # "*a" files have "some" additional ACLs
47466 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
47467 setfacl -m u:$MYNAME:--- pure/d1/f2a
47469 # use default format (no acls stored)
47470 tar -cf noacl.tar -C pure d1
47472 # use posix format, acls stored
47473 tar --acls -cf acl.tar -C pure d1
47475 # Directory names are chosen based on "how the files were extracted from
47476 # archive". Equivalent no* tags are used also:
47477 # ^sacl_ — extracted archive has stored ACLs
47478 # _def_ — target directory (-C) has default ACLs
47479 # _optacl$ — extraction was done with --acls option
47481 mkdir sacl_def_optacl
47482 mkdir sacl_def_optnoacl
47483 mkdir sacl_nodef_optacl
47484 mkdir sacl_nodef_optnoacl
47485 mkdir nosacl_def_optacl
47486 mkdir nosacl_def_optnoacl
47487 mkdir nosacl_nodef_optacl
47488 mkdir nosacl_nodef_optnoacl
47490 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47491 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47493 tar -xf acl.tar -C sacl_nodef_optnoacl
47494 tar --acls -xf acl.tar -C sacl_nodef_optacl
47495 tar -xf acl.tar -C sacl_def_optnoacl
47496 tar --acls -xf acl.tar -C sacl_def_optacl
47497 tar -xf noacl.tar -C nosacl_def_optnoacl
47498 # _NO_ ACLs in output
47499 tar -xf noacl.tar -C nosacl_nodef_optnoacl
47500 tar -xf noacl.tar -C nosacl_nodef_optacl
47501 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
47502 # _NO_ ACLs in output (even when default ACLs exist)
47503 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
47507 pure="$(find d1 | sort | xargs -n 1 getfacl)"
47513 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47517 cd sacl_def_optnoacl
47518 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47522 cd sacl_nodef_optacl
47523 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47527 cd sacl_nodef_optnoacl
47528 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47532 cd nosacl_def_optacl
47533 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47537 cd nosacl_def_optnoacl
47538 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47542 cd nosacl_nodef_optacl
47543 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47547 cd nosacl_nodef_optnoacl
47548 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47553 echo "$pure" > pure.log
47554 echo "$sacl_def_optacl" > sacl_def_optacl.log
47555 if test ! "$pure" "=" "$sacl_def_optacl"; then
47556 echo "bad 'pure' against 'sacl_def_optacl' output"
47561 echo "$sacl_def_optacl" > sacl_def_optacl.log
47562 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
47563 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
47564 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
47568 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
47569 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47570 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
47571 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
47575 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
47576 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47577 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
47578 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
47582 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
47583 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
47584 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
47585 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
47589 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
47590 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47591 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
47592 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
47597 echo "$sacl_def_optacl" > sacl_def_optacl.log
47598 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
47599 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
47600 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
47604 echo "$sacl_def_optacl" > sacl_def_optacl.log
47605 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47606 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
47607 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
47611 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
47612 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
47613 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
47614 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
47618 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
47619 at_status=$? at_failed=false
47621 at_fn_diff_devnull "$at_stderr" || at_failed=:
47622 at_fn_diff_devnull "$at_stdout" || at_failed=:
47623 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
47624 $at_failed && at_fn_log_failure
47628 $as_echo "$at_srcdir/acls03.at:47:
47631 TEST_TAR_FORMAT=gnu
47632 export TEST_TAR_FORMAT
47633 TAR_OPTIONS=\"-H gnu\"
47638 file=\$(TMPDIR=. mktemp fiXXXXXX)
47640 setfattr -n user.test -v test \$file &> /dev/null
47641 if test \"\$?\" != 0; then
47646 getfattr \$file &> /dev/null
47647 if test \"\$?\" != 0; then
47654 file=\$(TMPDIR=. mktemp fiXXXXXX)
47656 setfacl -m u:\$UID:rwx \$file &> /dev/null
47657 if test \"\$?\" != 0; then
47662 getfacl \$file &> /dev/null
47663 if test \"\$?\" != 0; then
47669 file=\$(TMPDIR=. mktemp fiXXXXXX)
47670 setfacl -m u:\$UID:rwx \$file
47671 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
47672 if test \"\$err\" != \"0\"; then
47677 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
47680 MYNAME=\$( id -un )
47681 MYGROUP=\$( id -gn )
47683 # Prepare directory structure with default ACLs
47684 mkdir -p pure/d1/d2
47685 genfile --file pure/d1/f2a
47686 genfile --file pure/d1/f2b
47687 genfile --file pure/d1/d2/f3a
47688 genfile --file pure/d1/d2/f3b
47689 setfacl -m g:\$MYGROUP:r-x pure/d1
47690 setfacl -d -m g:\$MYGROUP:rwx pure/d1
47691 setfacl -d -m u:\$MYNAME:rwx pure/d1
47692 # \"*a\" files have \"some\" additional ACLs
47693 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
47694 setfacl -m u:\$MYNAME:--- pure/d1/f2a
47696 # use default format (no acls stored)
47697 tar -cf noacl.tar -C pure d1
47699 # use posix format, acls stored
47700 tar --acls -cf acl.tar -C pure d1
47702 # Directory names are chosen based on \"how the files were extracted from
47703 # archive\". Equivalent no* tags are used also:
47704 # ^sacl_ — extracted archive has stored ACLs
47705 # _def_ — target directory (-C) has default ACLs
47706 # _optacl\$ — extraction was done with --acls option
47708 mkdir sacl_def_optacl
47709 mkdir sacl_def_optnoacl
47710 mkdir sacl_nodef_optacl
47711 mkdir sacl_nodef_optnoacl
47712 mkdir nosacl_def_optacl
47713 mkdir nosacl_def_optnoacl
47714 mkdir nosacl_nodef_optacl
47715 mkdir nosacl_nodef_optnoacl
47717 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47718 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47720 tar -xf acl.tar -C sacl_nodef_optnoacl
47721 tar --acls -xf acl.tar -C sacl_nodef_optacl
47722 tar -xf acl.tar -C sacl_def_optnoacl
47723 tar --acls -xf acl.tar -C sacl_def_optacl
47724 tar -xf noacl.tar -C nosacl_def_optnoacl
47725 # _NO_ ACLs in output
47726 tar -xf noacl.tar -C nosacl_nodef_optnoacl
47727 tar -xf noacl.tar -C nosacl_nodef_optacl
47728 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
47729 # _NO_ ACLs in output (even when default ACLs exist)
47730 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
47734 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47740 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47744 cd sacl_def_optnoacl
47745 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47749 cd sacl_nodef_optacl
47750 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47754 cd sacl_nodef_optnoacl
47755 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47759 cd nosacl_def_optacl
47760 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47764 cd nosacl_def_optnoacl
47765 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47769 cd nosacl_nodef_optacl
47770 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47774 cd nosacl_nodef_optnoacl
47775 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
47780 echo \"\$pure\" > pure.log
47781 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47782 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
47783 echo \"bad 'pure' against 'sacl_def_optacl' output\"
47788 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47789 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
47790 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
47791 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
47795 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
47796 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47797 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
47798 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
47802 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
47803 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47804 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
47805 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
47809 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
47810 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
47811 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
47812 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
47816 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
47817 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47818 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
47819 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
47824 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47825 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
47826 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
47827 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
47831 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
47832 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47833 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
47834 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
47838 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
47839 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
47840 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
47841 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
47845 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
47849 TEST_TAR_FORMAT=gnu
47850 export TEST_TAR_FORMAT
47851 TAR_OPTIONS="-H gnu"
47856 file=$(TMPDIR=. mktemp fiXXXXXX)
47858 setfattr -n user.test -v test $file &> /dev/null
47859 if test "$?" != 0; then
47864 getfattr $file &> /dev/null
47865 if test "$?" != 0; then
47872 file=$(TMPDIR=. mktemp fiXXXXXX)
47874 setfacl -m u:$UID:rwx $file &> /dev/null
47875 if test "$?" != 0; then
47880 getfacl $file &> /dev/null
47881 if test "$?" != 0; then
47887 file=$(TMPDIR=. mktemp fiXXXXXX)
47888 setfacl -m u:$UID:rwx $file
47889 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
47890 if test "$err" != "0"; then
47895 test -z "`sort < /dev/null 2>&1`" || exit 77
47899 MYGROUP=$( id -gn )
47901 # Prepare directory structure with default ACLs
47902 mkdir -p pure/d1/d2
47903 genfile --file pure/d1/f2a
47904 genfile --file pure/d1/f2b
47905 genfile --file pure/d1/d2/f3a
47906 genfile --file pure/d1/d2/f3b
47907 setfacl -m g:$MYGROUP:r-x pure/d1
47908 setfacl -d -m g:$MYGROUP:rwx pure/d1
47909 setfacl -d -m u:$MYNAME:rwx pure/d1
47910 # "*a" files have "some" additional ACLs
47911 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
47912 setfacl -m u:$MYNAME:--- pure/d1/f2a
47914 # use default format (no acls stored)
47915 tar -cf noacl.tar -C pure d1
47917 # use posix format, acls stored
47918 tar --acls -cf acl.tar -C pure d1
47920 # Directory names are chosen based on "how the files were extracted from
47921 # archive". Equivalent no* tags are used also:
47922 # ^sacl_ — extracted archive has stored ACLs
47923 # _def_ — target directory (-C) has default ACLs
47924 # _optacl$ — extraction was done with --acls option
47926 mkdir sacl_def_optacl
47927 mkdir sacl_def_optnoacl
47928 mkdir sacl_nodef_optacl
47929 mkdir sacl_nodef_optnoacl
47930 mkdir nosacl_def_optacl
47931 mkdir nosacl_def_optnoacl
47932 mkdir nosacl_nodef_optacl
47933 mkdir nosacl_nodef_optnoacl
47935 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47936 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
47938 tar -xf acl.tar -C sacl_nodef_optnoacl
47939 tar --acls -xf acl.tar -C sacl_nodef_optacl
47940 tar -xf acl.tar -C sacl_def_optnoacl
47941 tar --acls -xf acl.tar -C sacl_def_optacl
47942 tar -xf noacl.tar -C nosacl_def_optnoacl
47943 # _NO_ ACLs in output
47944 tar -xf noacl.tar -C nosacl_nodef_optnoacl
47945 tar -xf noacl.tar -C nosacl_nodef_optacl
47946 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
47947 # _NO_ ACLs in output (even when default ACLs exist)
47948 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
47952 pure="$(find d1 | sort | xargs -n 1 getfacl)"
47958 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47962 cd sacl_def_optnoacl
47963 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47967 cd sacl_nodef_optacl
47968 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47972 cd sacl_nodef_optnoacl
47973 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47977 cd nosacl_def_optacl
47978 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47982 cd nosacl_def_optnoacl
47983 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47987 cd nosacl_nodef_optacl
47988 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
47992 cd nosacl_nodef_optnoacl
47993 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
47998 echo "$pure" > pure.log
47999 echo "$sacl_def_optacl" > sacl_def_optacl.log
48000 if test ! "$pure" "=" "$sacl_def_optacl"; then
48001 echo "bad 'pure' against 'sacl_def_optacl' output"
48006 echo "$sacl_def_optacl" > sacl_def_optacl.log
48007 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
48008 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
48009 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
48013 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
48014 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
48015 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
48016 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
48020 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
48021 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
48022 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
48023 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
48027 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
48028 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
48029 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
48030 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
48034 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
48035 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
48036 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
48037 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
48042 echo "$sacl_def_optacl" > sacl_def_optacl.log
48043 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
48044 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
48045 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
48049 echo "$sacl_def_optacl" > sacl_def_optacl.log
48050 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
48051 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
48052 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
48056 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
48057 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
48058 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
48059 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
48063 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
48064 at_status=$? at_failed=false
48066 at_fn_diff_devnull "$at_stderr" || at_failed=:
48067 at_fn_diff_devnull "$at_stdout" || at_failed=:
48068 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
48069 $at_failed && at_fn_log_failure
48076 $at_times_p && times >"$at_times_file"
48077 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
48078 read at_status <"$at_status_file"
48081 at_fn_group_banner 191 'selnx01.at:25' \
48082 "selinux: basic store/restore" " " 25
48084 test -f $XFAILFILE && at_xfail=yes
48086 $as_echo "191. $at_setup_line: testing $at_desc ..."
48094 $as_echo "$at_srcdir/selnx01.at:28:
48098 export TEST_TAR_FORMAT
48099 TAR_OPTIONS=\"-H v7\"
48104 file=\$(TMPDIR=. mktemp fiXXXXXX)
48106 setfattr -n user.test -v test \$file &> /dev/null
48107 if test \"\$?\" != 0; then
48112 getfattr \$file &> /dev/null
48113 if test \"\$?\" != 0; then
48120 file=\$(TMPDIR=. mktemp fiXXXXXX)
48122 restorecon \$file &> /dev/null
48123 if test \"\$?\" != 0; then
48128 chcon -h --user=unconfined_u \$file &> /dev/null
48129 if test \"\$?\" != 0; then
48135 file=\$(TMPDIR=. mktemp fiXXXXXX)
48136 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
48137 if test \"\$err\" != \"0\"; then
48143 genfile --file dir/file
48144 ln -s file dir/link
48146 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48149 chcon -h --user=system_u dir
48150 chcon -h --user=unconfined_u dir/file
48151 chcon -h --user=system_u dir/link
48153 # archive whole directory including selinux contexts
48154 tar --selinux -cf archive.tar dir
48156 # clear the directory
48159 # ================================================
48160 # check if selinux contexts are correctly restored
48162 tar --selinux -xf archive.tar
48164 # archive for later debugging
48165 cp archive.tar archive_origin.tar
48167 # check if selinux contexts were restored
48168 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
48169 grep -v -e '^#' -e ^\$ | cut -d: -f1
48171 # ===========================================================================
48172 # check if selinux contexts are not restored when --selinux option is missing
48174 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48176 tar -xf archive.tar
48177 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48179 diff with_selinux without_selinux > diff_with_without
48180 if test \"\$?\" -eq \"0\"; then
48181 echo \"selinux contexts probably restored while --selinux is off\"
48184 # =================================================================
48185 # check if selinux is not archived when --selinux option is missing
48187 tar -cf archive.tar dir
48189 # clear the directory
48192 # restore (with --selinux)
48193 tar --selinux -xf archive.tar dir
48195 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48196 diff start final > final_diff
48197 if test \"\$?\" -ne \"0\"; then
48198 echo \"bad result\"
48202 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
48207 export TEST_TAR_FORMAT
48208 TAR_OPTIONS="-H v7"
48213 file=$(TMPDIR=. mktemp fiXXXXXX)
48215 setfattr -n user.test -v test $file &> /dev/null
48216 if test "$?" != 0; then
48221 getfattr $file &> /dev/null
48222 if test "$?" != 0; then
48229 file=$(TMPDIR=. mktemp fiXXXXXX)
48231 restorecon $file &> /dev/null
48232 if test "$?" != 0; then
48237 chcon -h --user=unconfined_u $file &> /dev/null
48238 if test "$?" != 0; then
48244 file=$(TMPDIR=. mktemp fiXXXXXX)
48245 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
48246 if test "$err" != "0"; then
48252 genfile --file dir/file
48253 ln -s file dir/link
48255 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48258 chcon -h --user=system_u dir
48259 chcon -h --user=unconfined_u dir/file
48260 chcon -h --user=system_u dir/link
48262 # archive whole directory including selinux contexts
48263 tar --selinux -cf archive.tar dir
48265 # clear the directory
48268 # ================================================
48269 # check if selinux contexts are correctly restored
48271 tar --selinux -xf archive.tar
48273 # archive for later debugging
48274 cp archive.tar archive_origin.tar
48276 # check if selinux contexts were restored
48277 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
48278 grep -v -e '^#' -e ^$ | cut -d: -f1
48280 # ===========================================================================
48281 # check if selinux contexts are not restored when --selinux option is missing
48283 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48285 tar -xf archive.tar
48286 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48288 diff with_selinux without_selinux > diff_with_without
48289 if test "$?" -eq "0"; then
48290 echo "selinux contexts probably restored while --selinux is off"
48293 # =================================================================
48294 # check if selinux is not archived when --selinux option is missing
48296 tar -cf archive.tar dir
48298 # clear the directory
48301 # restore (with --selinux)
48302 tar --selinux -xf archive.tar dir
48304 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48305 diff start final > final_diff
48306 if test "$?" -ne "0"; then
48311 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
48312 at_status=$? at_failed=false
48314 at_fn_diff_devnull "$at_stderr" || at_failed=:
48315 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
48316 security.selinux=\"unconfined_u
48317 security.selinux=\"system_u
48319 $at_diff - "$at_stdout" || at_failed=:
48320 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
48321 $at_failed && at_fn_log_failure
48325 $as_echo "$at_srcdir/selnx01.at:28:
48328 TEST_TAR_FORMAT=oldgnu
48329 export TEST_TAR_FORMAT
48330 TAR_OPTIONS=\"-H oldgnu\"
48335 file=\$(TMPDIR=. mktemp fiXXXXXX)
48337 setfattr -n user.test -v test \$file &> /dev/null
48338 if test \"\$?\" != 0; then
48343 getfattr \$file &> /dev/null
48344 if test \"\$?\" != 0; then
48351 file=\$(TMPDIR=. mktemp fiXXXXXX)
48353 restorecon \$file &> /dev/null
48354 if test \"\$?\" != 0; then
48359 chcon -h --user=unconfined_u \$file &> /dev/null
48360 if test \"\$?\" != 0; then
48366 file=\$(TMPDIR=. mktemp fiXXXXXX)
48367 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
48368 if test \"\$err\" != \"0\"; then
48374 genfile --file dir/file
48375 ln -s file dir/link
48377 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48380 chcon -h --user=system_u dir
48381 chcon -h --user=unconfined_u dir/file
48382 chcon -h --user=system_u dir/link
48384 # archive whole directory including selinux contexts
48385 tar --selinux -cf archive.tar dir
48387 # clear the directory
48390 # ================================================
48391 # check if selinux contexts are correctly restored
48393 tar --selinux -xf archive.tar
48395 # archive for later debugging
48396 cp archive.tar archive_origin.tar
48398 # check if selinux contexts were restored
48399 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
48400 grep -v -e '^#' -e ^\$ | cut -d: -f1
48402 # ===========================================================================
48403 # check if selinux contexts are not restored when --selinux option is missing
48405 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48407 tar -xf archive.tar
48408 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48410 diff with_selinux without_selinux > diff_with_without
48411 if test \"\$?\" -eq \"0\"; then
48412 echo \"selinux contexts probably restored while --selinux is off\"
48415 # =================================================================
48416 # check if selinux is not archived when --selinux option is missing
48418 tar -cf archive.tar dir
48420 # clear the directory
48423 # restore (with --selinux)
48424 tar --selinux -xf archive.tar dir
48426 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48427 diff start final > final_diff
48428 if test \"\$?\" -ne \"0\"; then
48429 echo \"bad result\"
48433 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
48437 TEST_TAR_FORMAT=oldgnu
48438 export TEST_TAR_FORMAT
48439 TAR_OPTIONS="-H oldgnu"
48444 file=$(TMPDIR=. mktemp fiXXXXXX)
48446 setfattr -n user.test -v test $file &> /dev/null
48447 if test "$?" != 0; then
48452 getfattr $file &> /dev/null
48453 if test "$?" != 0; then
48460 file=$(TMPDIR=. mktemp fiXXXXXX)
48462 restorecon $file &> /dev/null
48463 if test "$?" != 0; then
48468 chcon -h --user=unconfined_u $file &> /dev/null
48469 if test "$?" != 0; then
48475 file=$(TMPDIR=. mktemp fiXXXXXX)
48476 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
48477 if test "$err" != "0"; then
48483 genfile --file dir/file
48484 ln -s file dir/link
48486 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48489 chcon -h --user=system_u dir
48490 chcon -h --user=unconfined_u dir/file
48491 chcon -h --user=system_u dir/link
48493 # archive whole directory including selinux contexts
48494 tar --selinux -cf archive.tar dir
48496 # clear the directory
48499 # ================================================
48500 # check if selinux contexts are correctly restored
48502 tar --selinux -xf archive.tar
48504 # archive for later debugging
48505 cp archive.tar archive_origin.tar
48507 # check if selinux contexts were restored
48508 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
48509 grep -v -e '^#' -e ^$ | cut -d: -f1
48511 # ===========================================================================
48512 # check if selinux contexts are not restored when --selinux option is missing
48514 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48516 tar -xf archive.tar
48517 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48519 diff with_selinux without_selinux > diff_with_without
48520 if test "$?" -eq "0"; then
48521 echo "selinux contexts probably restored while --selinux is off"
48524 # =================================================================
48525 # check if selinux is not archived when --selinux option is missing
48527 tar -cf archive.tar dir
48529 # clear the directory
48532 # restore (with --selinux)
48533 tar --selinux -xf archive.tar dir
48535 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48536 diff start final > final_diff
48537 if test "$?" -ne "0"; then
48542 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
48543 at_status=$? at_failed=false
48545 at_fn_diff_devnull "$at_stderr" || at_failed=:
48546 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
48547 security.selinux=\"unconfined_u
48548 security.selinux=\"system_u
48550 $at_diff - "$at_stdout" || at_failed=:
48551 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
48552 $at_failed && at_fn_log_failure
48556 $as_echo "$at_srcdir/selnx01.at:28:
48559 TEST_TAR_FORMAT=ustar
48560 export TEST_TAR_FORMAT
48561 TAR_OPTIONS=\"-H ustar\"
48566 file=\$(TMPDIR=. mktemp fiXXXXXX)
48568 setfattr -n user.test -v test \$file &> /dev/null
48569 if test \"\$?\" != 0; then
48574 getfattr \$file &> /dev/null
48575 if test \"\$?\" != 0; then
48582 file=\$(TMPDIR=. mktemp fiXXXXXX)
48584 restorecon \$file &> /dev/null
48585 if test \"\$?\" != 0; then
48590 chcon -h --user=unconfined_u \$file &> /dev/null
48591 if test \"\$?\" != 0; then
48597 file=\$(TMPDIR=. mktemp fiXXXXXX)
48598 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
48599 if test \"\$err\" != \"0\"; then
48605 genfile --file dir/file
48606 ln -s file dir/link
48608 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48611 chcon -h --user=system_u dir
48612 chcon -h --user=unconfined_u dir/file
48613 chcon -h --user=system_u dir/link
48615 # archive whole directory including selinux contexts
48616 tar --selinux -cf archive.tar dir
48618 # clear the directory
48621 # ================================================
48622 # check if selinux contexts are correctly restored
48624 tar --selinux -xf archive.tar
48626 # archive for later debugging
48627 cp archive.tar archive_origin.tar
48629 # check if selinux contexts were restored
48630 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
48631 grep -v -e '^#' -e ^\$ | cut -d: -f1
48633 # ===========================================================================
48634 # check if selinux contexts are not restored when --selinux option is missing
48636 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48638 tar -xf archive.tar
48639 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48641 diff with_selinux without_selinux > diff_with_without
48642 if test \"\$?\" -eq \"0\"; then
48643 echo \"selinux contexts probably restored while --selinux is off\"
48646 # =================================================================
48647 # check if selinux is not archived when --selinux option is missing
48649 tar -cf archive.tar dir
48651 # clear the directory
48654 # restore (with --selinux)
48655 tar --selinux -xf archive.tar dir
48657 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48658 diff start final > final_diff
48659 if test \"\$?\" -ne \"0\"; then
48660 echo \"bad result\"
48664 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
48668 TEST_TAR_FORMAT=ustar
48669 export TEST_TAR_FORMAT
48670 TAR_OPTIONS="-H ustar"
48675 file=$(TMPDIR=. mktemp fiXXXXXX)
48677 setfattr -n user.test -v test $file &> /dev/null
48678 if test "$?" != 0; then
48683 getfattr $file &> /dev/null
48684 if test "$?" != 0; then
48691 file=$(TMPDIR=. mktemp fiXXXXXX)
48693 restorecon $file &> /dev/null
48694 if test "$?" != 0; then
48699 chcon -h --user=unconfined_u $file &> /dev/null
48700 if test "$?" != 0; then
48706 file=$(TMPDIR=. mktemp fiXXXXXX)
48707 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
48708 if test "$err" != "0"; then
48714 genfile --file dir/file
48715 ln -s file dir/link
48717 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48720 chcon -h --user=system_u dir
48721 chcon -h --user=unconfined_u dir/file
48722 chcon -h --user=system_u dir/link
48724 # archive whole directory including selinux contexts
48725 tar --selinux -cf archive.tar dir
48727 # clear the directory
48730 # ================================================
48731 # check if selinux contexts are correctly restored
48733 tar --selinux -xf archive.tar
48735 # archive for later debugging
48736 cp archive.tar archive_origin.tar
48738 # check if selinux contexts were restored
48739 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
48740 grep -v -e '^#' -e ^$ | cut -d: -f1
48742 # ===========================================================================
48743 # check if selinux contexts are not restored when --selinux option is missing
48745 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48747 tar -xf archive.tar
48748 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48750 diff with_selinux without_selinux > diff_with_without
48751 if test "$?" -eq "0"; then
48752 echo "selinux contexts probably restored while --selinux is off"
48755 # =================================================================
48756 # check if selinux is not archived when --selinux option is missing
48758 tar -cf archive.tar dir
48760 # clear the directory
48763 # restore (with --selinux)
48764 tar --selinux -xf archive.tar dir
48766 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48767 diff start final > final_diff
48768 if test "$?" -ne "0"; then
48773 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
48774 at_status=$? at_failed=false
48776 at_fn_diff_devnull "$at_stderr" || at_failed=:
48777 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
48778 security.selinux=\"unconfined_u
48779 security.selinux=\"system_u
48781 $at_diff - "$at_stdout" || at_failed=:
48782 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
48783 $at_failed && at_fn_log_failure
48787 $as_echo "$at_srcdir/selnx01.at:28:
48790 TEST_TAR_FORMAT=posix
48791 export TEST_TAR_FORMAT
48792 TAR_OPTIONS=\"-H posix\"
48797 file=\$(TMPDIR=. mktemp fiXXXXXX)
48799 setfattr -n user.test -v test \$file &> /dev/null
48800 if test \"\$?\" != 0; then
48805 getfattr \$file &> /dev/null
48806 if test \"\$?\" != 0; then
48813 file=\$(TMPDIR=. mktemp fiXXXXXX)
48815 restorecon \$file &> /dev/null
48816 if test \"\$?\" != 0; then
48821 chcon -h --user=unconfined_u \$file &> /dev/null
48822 if test \"\$?\" != 0; then
48828 file=\$(TMPDIR=. mktemp fiXXXXXX)
48829 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
48830 if test \"\$err\" != \"0\"; then
48836 genfile --file dir/file
48837 ln -s file dir/link
48839 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48842 chcon -h --user=system_u dir
48843 chcon -h --user=unconfined_u dir/file
48844 chcon -h --user=system_u dir/link
48846 # archive whole directory including selinux contexts
48847 tar --selinux -cf archive.tar dir
48849 # clear the directory
48852 # ================================================
48853 # check if selinux contexts are correctly restored
48855 tar --selinux -xf archive.tar
48857 # archive for later debugging
48858 cp archive.tar archive_origin.tar
48860 # check if selinux contexts were restored
48861 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
48862 grep -v -e '^#' -e ^\$ | cut -d: -f1
48864 # ===========================================================================
48865 # check if selinux contexts are not restored when --selinux option is missing
48867 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48869 tar -xf archive.tar
48870 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48872 diff with_selinux without_selinux > diff_with_without
48873 if test \"\$?\" -eq \"0\"; then
48874 echo \"selinux contexts probably restored while --selinux is off\"
48877 # =================================================================
48878 # check if selinux is not archived when --selinux option is missing
48880 tar -cf archive.tar dir
48882 # clear the directory
48885 # restore (with --selinux)
48886 tar --selinux -xf archive.tar dir
48888 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48889 diff start final > final_diff
48890 if test \"\$?\" -ne \"0\"; then
48891 echo \"bad result\"
48895 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
48899 TEST_TAR_FORMAT=posix
48900 export TEST_TAR_FORMAT
48901 TAR_OPTIONS="-H posix"
48906 file=$(TMPDIR=. mktemp fiXXXXXX)
48908 setfattr -n user.test -v test $file &> /dev/null
48909 if test "$?" != 0; then
48914 getfattr $file &> /dev/null
48915 if test "$?" != 0; then
48922 file=$(TMPDIR=. mktemp fiXXXXXX)
48924 restorecon $file &> /dev/null
48925 if test "$?" != 0; then
48930 chcon -h --user=unconfined_u $file &> /dev/null
48931 if test "$?" != 0; then
48937 file=$(TMPDIR=. mktemp fiXXXXXX)
48938 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
48939 if test "$err" != "0"; then
48945 genfile --file dir/file
48946 ln -s file dir/link
48948 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
48951 chcon -h --user=system_u dir
48952 chcon -h --user=unconfined_u dir/file
48953 chcon -h --user=system_u dir/link
48955 # archive whole directory including selinux contexts
48956 tar --selinux -cf archive.tar dir
48958 # clear the directory
48961 # ================================================
48962 # check if selinux contexts are correctly restored
48964 tar --selinux -xf archive.tar
48966 # archive for later debugging
48967 cp archive.tar archive_origin.tar
48969 # check if selinux contexts were restored
48970 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
48971 grep -v -e '^#' -e ^$ | cut -d: -f1
48973 # ===========================================================================
48974 # check if selinux contexts are not restored when --selinux option is missing
48976 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
48978 tar -xf archive.tar
48979 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
48981 diff with_selinux without_selinux > diff_with_without
48982 if test "$?" -eq "0"; then
48983 echo "selinux contexts probably restored while --selinux is off"
48986 # =================================================================
48987 # check if selinux is not archived when --selinux option is missing
48989 tar -cf archive.tar dir
48991 # clear the directory
48994 # restore (with --selinux)
48995 tar --selinux -xf archive.tar dir
48997 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
48998 diff start final > final_diff
48999 if test "$?" -ne "0"; then
49004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
49005 at_status=$? at_failed=false
49007 at_fn_diff_devnull "$at_stderr" || at_failed=:
49008 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
49009 security.selinux=\"unconfined_u
49010 security.selinux=\"system_u
49012 $at_diff - "$at_stdout" || at_failed=:
49013 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
49014 $at_failed && at_fn_log_failure
49018 $as_echo "$at_srcdir/selnx01.at:28:
49021 TEST_TAR_FORMAT=gnu
49022 export TEST_TAR_FORMAT
49023 TAR_OPTIONS=\"-H gnu\"
49028 file=\$(TMPDIR=. mktemp fiXXXXXX)
49030 setfattr -n user.test -v test \$file &> /dev/null
49031 if test \"\$?\" != 0; then
49036 getfattr \$file &> /dev/null
49037 if test \"\$?\" != 0; then
49044 file=\$(TMPDIR=. mktemp fiXXXXXX)
49046 restorecon \$file &> /dev/null
49047 if test \"\$?\" != 0; then
49052 chcon -h --user=unconfined_u \$file &> /dev/null
49053 if test \"\$?\" != 0; then
49059 file=\$(TMPDIR=. mktemp fiXXXXXX)
49060 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49061 if test \"\$err\" != \"0\"; then
49067 genfile --file dir/file
49068 ln -s file dir/link
49070 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
49073 chcon -h --user=system_u dir
49074 chcon -h --user=unconfined_u dir/file
49075 chcon -h --user=system_u dir/link
49077 # archive whole directory including selinux contexts
49078 tar --selinux -cf archive.tar dir
49080 # clear the directory
49083 # ================================================
49084 # check if selinux contexts are correctly restored
49086 tar --selinux -xf archive.tar
49088 # archive for later debugging
49089 cp archive.tar archive_origin.tar
49091 # check if selinux contexts were restored
49092 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
49093 grep -v -e '^#' -e ^\$ | cut -d: -f1
49095 # ===========================================================================
49096 # check if selinux contexts are not restored when --selinux option is missing
49098 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
49100 tar -xf archive.tar
49101 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
49103 diff with_selinux without_selinux > diff_with_without
49104 if test \"\$?\" -eq \"0\"; then
49105 echo \"selinux contexts probably restored while --selinux is off\"
49108 # =================================================================
49109 # check if selinux is not archived when --selinux option is missing
49111 tar -cf archive.tar dir
49113 # clear the directory
49116 # restore (with --selinux)
49117 tar --selinux -xf archive.tar dir
49119 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
49120 diff start final > final_diff
49121 if test \"\$?\" -ne \"0\"; then
49122 echo \"bad result\"
49126 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
49130 TEST_TAR_FORMAT=gnu
49131 export TEST_TAR_FORMAT
49132 TAR_OPTIONS="-H gnu"
49137 file=$(TMPDIR=. mktemp fiXXXXXX)
49139 setfattr -n user.test -v test $file &> /dev/null
49140 if test "$?" != 0; then
49145 getfattr $file &> /dev/null
49146 if test "$?" != 0; then
49153 file=$(TMPDIR=. mktemp fiXXXXXX)
49155 restorecon $file &> /dev/null
49156 if test "$?" != 0; then
49161 chcon -h --user=unconfined_u $file &> /dev/null
49162 if test "$?" != 0; then
49168 file=$(TMPDIR=. mktemp fiXXXXXX)
49169 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49170 if test "$err" != "0"; then
49176 genfile --file dir/file
49177 ln -s file dir/link
49179 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
49182 chcon -h --user=system_u dir
49183 chcon -h --user=unconfined_u dir/file
49184 chcon -h --user=system_u dir/link
49186 # archive whole directory including selinux contexts
49187 tar --selinux -cf archive.tar dir
49189 # clear the directory
49192 # ================================================
49193 # check if selinux contexts are correctly restored
49195 tar --selinux -xf archive.tar
49197 # archive for later debugging
49198 cp archive.tar archive_origin.tar
49200 # check if selinux contexts were restored
49201 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
49202 grep -v -e '^#' -e ^$ | cut -d: -f1
49204 # ===========================================================================
49205 # check if selinux contexts are not restored when --selinux option is missing
49207 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
49209 tar -xf archive.tar
49210 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
49212 diff with_selinux without_selinux > diff_with_without
49213 if test "$?" -eq "0"; then
49214 echo "selinux contexts probably restored while --selinux is off"
49217 # =================================================================
49218 # check if selinux is not archived when --selinux option is missing
49220 tar -cf archive.tar dir
49222 # clear the directory
49225 # restore (with --selinux)
49226 tar --selinux -xf archive.tar dir
49228 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
49229 diff start final > final_diff
49230 if test "$?" -ne "0"; then
49235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
49236 at_status=$? at_failed=false
49238 at_fn_diff_devnull "$at_stderr" || at_failed=:
49239 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
49240 security.selinux=\"unconfined_u
49241 security.selinux=\"system_u
49243 $at_diff - "$at_stdout" || at_failed=:
49244 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
49245 $at_failed && at_fn_log_failure
49252 $at_times_p && times >"$at_times_file"
49253 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
49254 read at_status <"$at_status_file"
49257 at_fn_group_banner 192 'selacl01.at:25' \
49258 "acls/selinux: special files & fifos" " " 25
49260 test -f $XFAILFILE && at_xfail=yes
49262 $as_echo "192. $at_setup_line: testing $at_desc ..."
49270 $as_echo "$at_srcdir/selacl01.at:28:
49274 export TEST_TAR_FORMAT
49275 TAR_OPTIONS=\"-H v7\"
49280 echo \"test\" > \$\$
49282 cat \$\$ > /dev/null 2>&1
49285 test \$result -eq 0 || exit 77
49288 file=\$(TMPDIR=. mktemp fiXXXXXX)
49290 setfattr -n user.test -v test \$file &> /dev/null
49291 if test \"\$?\" != 0; then
49296 getfattr \$file &> /dev/null
49297 if test \"\$?\" != 0; then
49304 file=\$(TMPDIR=. mktemp fiXXXXXX)
49306 restorecon \$file &> /dev/null
49307 if test \"\$?\" != 0; then
49312 chcon -h --user=unconfined_u \$file &> /dev/null
49313 if test \"\$?\" != 0; then
49319 file=\$(TMPDIR=. mktemp fiXXXXXX)
49320 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49321 if test \"\$err\" != \"0\"; then
49327 file=\$(TMPDIR=. mktemp fiXXXXXX)
49329 setfacl -m u:\$UID:rwx \$file &> /dev/null
49330 if test \"\$?\" != 0; then
49335 getfacl \$file &> /dev/null
49336 if test \"\$?\" != 0; then
49342 file=\$(TMPDIR=. mktemp fiXXXXXX)
49343 setfacl -m u:\$UID:rwx \$file
49344 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49345 if test \"\$err\" != \"0\"; then
49352 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
49353 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
49354 mknod dir/chartype c \$MAJOR \$MINOR
49358 chcon -h --user=system_u dir/fifo
49359 chcon -h --user=system_u dir/chartype
49360 setfacl -m u:\$UID:--- dir/fifo
49361 setfacl -m u:\$UID:rwx dir/chartype
49363 getfacl dir/fifo >> before
49364 getfattr -msecurity.selinux dir/chartype >> before
49366 tar --xattrs --selinux --acls -cf archive.tar dir
49370 tar --xattrs --selinux --acls -xf archive.tar
49372 getfacl dir/fifo >> after
49373 getfattr -msecurity.selinux dir/chartype >> after
49378 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
49383 export TEST_TAR_FORMAT
49384 TAR_OPTIONS="-H v7"
49391 cat $$ > /dev/null 2>&1
49394 test $result -eq 0 || exit 77
49397 file=$(TMPDIR=. mktemp fiXXXXXX)
49399 setfattr -n user.test -v test $file &> /dev/null
49400 if test "$?" != 0; then
49405 getfattr $file &> /dev/null
49406 if test "$?" != 0; then
49413 file=$(TMPDIR=. mktemp fiXXXXXX)
49415 restorecon $file &> /dev/null
49416 if test "$?" != 0; then
49421 chcon -h --user=unconfined_u $file &> /dev/null
49422 if test "$?" != 0; then
49428 file=$(TMPDIR=. mktemp fiXXXXXX)
49429 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49430 if test "$err" != "0"; then
49436 file=$(TMPDIR=. mktemp fiXXXXXX)
49438 setfacl -m u:$UID:rwx $file &> /dev/null
49439 if test "$?" != 0; then
49444 getfacl $file &> /dev/null
49445 if test "$?" != 0; then
49451 file=$(TMPDIR=. mktemp fiXXXXXX)
49452 setfacl -m u:$UID:rwx $file
49453 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49454 if test "$err" != "0"; then
49461 MAJOR=$( stat /dev/urandom --printf="%t" )
49462 MINOR=$( stat /dev/urandom --printf="%T" )
49463 mknod dir/chartype c $MAJOR $MINOR
49467 chcon -h --user=system_u dir/fifo
49468 chcon -h --user=system_u dir/chartype
49469 setfacl -m u:$UID:--- dir/fifo
49470 setfacl -m u:$UID:rwx dir/chartype
49472 getfacl dir/fifo >> before
49473 getfattr -msecurity.selinux dir/chartype >> before
49475 tar --xattrs --selinux --acls -cf archive.tar dir
49479 tar --xattrs --selinux --acls -xf archive.tar
49481 getfacl dir/fifo >> after
49482 getfattr -msecurity.selinux dir/chartype >> after
49487 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
49488 at_status=$? at_failed=false
49490 at_fn_diff_devnull "$at_stderr" || at_failed=:
49491 echo >>"$at_stdout"; $as_echo "separator
49493 $at_diff - "$at_stdout" || at_failed=:
49494 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
49495 $at_failed && at_fn_log_failure
49499 $as_echo "$at_srcdir/selacl01.at:28:
49502 TEST_TAR_FORMAT=oldgnu
49503 export TEST_TAR_FORMAT
49504 TAR_OPTIONS=\"-H oldgnu\"
49509 echo \"test\" > \$\$
49511 cat \$\$ > /dev/null 2>&1
49514 test \$result -eq 0 || exit 77
49517 file=\$(TMPDIR=. mktemp fiXXXXXX)
49519 setfattr -n user.test -v test \$file &> /dev/null
49520 if test \"\$?\" != 0; then
49525 getfattr \$file &> /dev/null
49526 if test \"\$?\" != 0; then
49533 file=\$(TMPDIR=. mktemp fiXXXXXX)
49535 restorecon \$file &> /dev/null
49536 if test \"\$?\" != 0; then
49541 chcon -h --user=unconfined_u \$file &> /dev/null
49542 if test \"\$?\" != 0; then
49548 file=\$(TMPDIR=. mktemp fiXXXXXX)
49549 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49550 if test \"\$err\" != \"0\"; then
49556 file=\$(TMPDIR=. mktemp fiXXXXXX)
49558 setfacl -m u:\$UID:rwx \$file &> /dev/null
49559 if test \"\$?\" != 0; then
49564 getfacl \$file &> /dev/null
49565 if test \"\$?\" != 0; then
49571 file=\$(TMPDIR=. mktemp fiXXXXXX)
49572 setfacl -m u:\$UID:rwx \$file
49573 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49574 if test \"\$err\" != \"0\"; then
49581 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
49582 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
49583 mknod dir/chartype c \$MAJOR \$MINOR
49587 chcon -h --user=system_u dir/fifo
49588 chcon -h --user=system_u dir/chartype
49589 setfacl -m u:\$UID:--- dir/fifo
49590 setfacl -m u:\$UID:rwx dir/chartype
49592 getfacl dir/fifo >> before
49593 getfattr -msecurity.selinux dir/chartype >> before
49595 tar --xattrs --selinux --acls -cf archive.tar dir
49599 tar --xattrs --selinux --acls -xf archive.tar
49601 getfacl dir/fifo >> after
49602 getfattr -msecurity.selinux dir/chartype >> after
49607 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
49611 TEST_TAR_FORMAT=oldgnu
49612 export TEST_TAR_FORMAT
49613 TAR_OPTIONS="-H oldgnu"
49620 cat $$ > /dev/null 2>&1
49623 test $result -eq 0 || exit 77
49626 file=$(TMPDIR=. mktemp fiXXXXXX)
49628 setfattr -n user.test -v test $file &> /dev/null
49629 if test "$?" != 0; then
49634 getfattr $file &> /dev/null
49635 if test "$?" != 0; then
49642 file=$(TMPDIR=. mktemp fiXXXXXX)
49644 restorecon $file &> /dev/null
49645 if test "$?" != 0; then
49650 chcon -h --user=unconfined_u $file &> /dev/null
49651 if test "$?" != 0; then
49657 file=$(TMPDIR=. mktemp fiXXXXXX)
49658 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49659 if test "$err" != "0"; then
49665 file=$(TMPDIR=. mktemp fiXXXXXX)
49667 setfacl -m u:$UID:rwx $file &> /dev/null
49668 if test "$?" != 0; then
49673 getfacl $file &> /dev/null
49674 if test "$?" != 0; then
49680 file=$(TMPDIR=. mktemp fiXXXXXX)
49681 setfacl -m u:$UID:rwx $file
49682 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49683 if test "$err" != "0"; then
49690 MAJOR=$( stat /dev/urandom --printf="%t" )
49691 MINOR=$( stat /dev/urandom --printf="%T" )
49692 mknod dir/chartype c $MAJOR $MINOR
49696 chcon -h --user=system_u dir/fifo
49697 chcon -h --user=system_u dir/chartype
49698 setfacl -m u:$UID:--- dir/fifo
49699 setfacl -m u:$UID:rwx dir/chartype
49701 getfacl dir/fifo >> before
49702 getfattr -msecurity.selinux dir/chartype >> before
49704 tar --xattrs --selinux --acls -cf archive.tar dir
49708 tar --xattrs --selinux --acls -xf archive.tar
49710 getfacl dir/fifo >> after
49711 getfattr -msecurity.selinux dir/chartype >> after
49716 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
49717 at_status=$? at_failed=false
49719 at_fn_diff_devnull "$at_stderr" || at_failed=:
49720 echo >>"$at_stdout"; $as_echo "separator
49722 $at_diff - "$at_stdout" || at_failed=:
49723 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
49724 $at_failed && at_fn_log_failure
49728 $as_echo "$at_srcdir/selacl01.at:28:
49731 TEST_TAR_FORMAT=ustar
49732 export TEST_TAR_FORMAT
49733 TAR_OPTIONS=\"-H ustar\"
49738 echo \"test\" > \$\$
49740 cat \$\$ > /dev/null 2>&1
49743 test \$result -eq 0 || exit 77
49746 file=\$(TMPDIR=. mktemp fiXXXXXX)
49748 setfattr -n user.test -v test \$file &> /dev/null
49749 if test \"\$?\" != 0; then
49754 getfattr \$file &> /dev/null
49755 if test \"\$?\" != 0; then
49762 file=\$(TMPDIR=. mktemp fiXXXXXX)
49764 restorecon \$file &> /dev/null
49765 if test \"\$?\" != 0; then
49770 chcon -h --user=unconfined_u \$file &> /dev/null
49771 if test \"\$?\" != 0; then
49777 file=\$(TMPDIR=. mktemp fiXXXXXX)
49778 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49779 if test \"\$err\" != \"0\"; then
49785 file=\$(TMPDIR=. mktemp fiXXXXXX)
49787 setfacl -m u:\$UID:rwx \$file &> /dev/null
49788 if test \"\$?\" != 0; then
49793 getfacl \$file &> /dev/null
49794 if test \"\$?\" != 0; then
49800 file=\$(TMPDIR=. mktemp fiXXXXXX)
49801 setfacl -m u:\$UID:rwx \$file
49802 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
49803 if test \"\$err\" != \"0\"; then
49810 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
49811 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
49812 mknod dir/chartype c \$MAJOR \$MINOR
49816 chcon -h --user=system_u dir/fifo
49817 chcon -h --user=system_u dir/chartype
49818 setfacl -m u:\$UID:--- dir/fifo
49819 setfacl -m u:\$UID:rwx dir/chartype
49821 getfacl dir/fifo >> before
49822 getfattr -msecurity.selinux dir/chartype >> before
49824 tar --xattrs --selinux --acls -cf archive.tar dir
49828 tar --xattrs --selinux --acls -xf archive.tar
49830 getfacl dir/fifo >> after
49831 getfattr -msecurity.selinux dir/chartype >> after
49836 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
49840 TEST_TAR_FORMAT=ustar
49841 export TEST_TAR_FORMAT
49842 TAR_OPTIONS="-H ustar"
49849 cat $$ > /dev/null 2>&1
49852 test $result -eq 0 || exit 77
49855 file=$(TMPDIR=. mktemp fiXXXXXX)
49857 setfattr -n user.test -v test $file &> /dev/null
49858 if test "$?" != 0; then
49863 getfattr $file &> /dev/null
49864 if test "$?" != 0; then
49871 file=$(TMPDIR=. mktemp fiXXXXXX)
49873 restorecon $file &> /dev/null
49874 if test "$?" != 0; then
49879 chcon -h --user=unconfined_u $file &> /dev/null
49880 if test "$?" != 0; then
49886 file=$(TMPDIR=. mktemp fiXXXXXX)
49887 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49888 if test "$err" != "0"; then
49894 file=$(TMPDIR=. mktemp fiXXXXXX)
49896 setfacl -m u:$UID:rwx $file &> /dev/null
49897 if test "$?" != 0; then
49902 getfacl $file &> /dev/null
49903 if test "$?" != 0; then
49909 file=$(TMPDIR=. mktemp fiXXXXXX)
49910 setfacl -m u:$UID:rwx $file
49911 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
49912 if test "$err" != "0"; then
49919 MAJOR=$( stat /dev/urandom --printf="%t" )
49920 MINOR=$( stat /dev/urandom --printf="%T" )
49921 mknod dir/chartype c $MAJOR $MINOR
49925 chcon -h --user=system_u dir/fifo
49926 chcon -h --user=system_u dir/chartype
49927 setfacl -m u:$UID:--- dir/fifo
49928 setfacl -m u:$UID:rwx dir/chartype
49930 getfacl dir/fifo >> before
49931 getfattr -msecurity.selinux dir/chartype >> before
49933 tar --xattrs --selinux --acls -cf archive.tar dir
49937 tar --xattrs --selinux --acls -xf archive.tar
49939 getfacl dir/fifo >> after
49940 getfattr -msecurity.selinux dir/chartype >> after
49945 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
49946 at_status=$? at_failed=false
49948 at_fn_diff_devnull "$at_stderr" || at_failed=:
49949 echo >>"$at_stdout"; $as_echo "separator
49951 $at_diff - "$at_stdout" || at_failed=:
49952 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
49953 $at_failed && at_fn_log_failure
49957 $as_echo "$at_srcdir/selacl01.at:28:
49960 TEST_TAR_FORMAT=posix
49961 export TEST_TAR_FORMAT
49962 TAR_OPTIONS=\"-H posix\"
49967 echo \"test\" > \$\$
49969 cat \$\$ > /dev/null 2>&1
49972 test \$result -eq 0 || exit 77
49975 file=\$(TMPDIR=. mktemp fiXXXXXX)
49977 setfattr -n user.test -v test \$file &> /dev/null
49978 if test \"\$?\" != 0; then
49983 getfattr \$file &> /dev/null
49984 if test \"\$?\" != 0; then
49991 file=\$(TMPDIR=. mktemp fiXXXXXX)
49993 restorecon \$file &> /dev/null
49994 if test \"\$?\" != 0; then
49999 chcon -h --user=unconfined_u \$file &> /dev/null
50000 if test \"\$?\" != 0; then
50006 file=\$(TMPDIR=. mktemp fiXXXXXX)
50007 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50008 if test \"\$err\" != \"0\"; then
50014 file=\$(TMPDIR=. mktemp fiXXXXXX)
50016 setfacl -m u:\$UID:rwx \$file &> /dev/null
50017 if test \"\$?\" != 0; then
50022 getfacl \$file &> /dev/null
50023 if test \"\$?\" != 0; then
50029 file=\$(TMPDIR=. mktemp fiXXXXXX)
50030 setfacl -m u:\$UID:rwx \$file
50031 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50032 if test \"\$err\" != \"0\"; then
50039 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
50040 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
50041 mknod dir/chartype c \$MAJOR \$MINOR
50045 chcon -h --user=system_u dir/fifo
50046 chcon -h --user=system_u dir/chartype
50047 setfacl -m u:\$UID:--- dir/fifo
50048 setfacl -m u:\$UID:rwx dir/chartype
50050 getfacl dir/fifo >> before
50051 getfattr -msecurity.selinux dir/chartype >> before
50053 tar --xattrs --selinux --acls -cf archive.tar dir
50057 tar --xattrs --selinux --acls -xf archive.tar
50059 getfacl dir/fifo >> after
50060 getfattr -msecurity.selinux dir/chartype >> after
50065 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
50069 TEST_TAR_FORMAT=posix
50070 export TEST_TAR_FORMAT
50071 TAR_OPTIONS="-H posix"
50078 cat $$ > /dev/null 2>&1
50081 test $result -eq 0 || exit 77
50084 file=$(TMPDIR=. mktemp fiXXXXXX)
50086 setfattr -n user.test -v test $file &> /dev/null
50087 if test "$?" != 0; then
50092 getfattr $file &> /dev/null
50093 if test "$?" != 0; then
50100 file=$(TMPDIR=. mktemp fiXXXXXX)
50102 restorecon $file &> /dev/null
50103 if test "$?" != 0; then
50108 chcon -h --user=unconfined_u $file &> /dev/null
50109 if test "$?" != 0; then
50115 file=$(TMPDIR=. mktemp fiXXXXXX)
50116 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50117 if test "$err" != "0"; then
50123 file=$(TMPDIR=. mktemp fiXXXXXX)
50125 setfacl -m u:$UID:rwx $file &> /dev/null
50126 if test "$?" != 0; then
50131 getfacl $file &> /dev/null
50132 if test "$?" != 0; then
50138 file=$(TMPDIR=. mktemp fiXXXXXX)
50139 setfacl -m u:$UID:rwx $file
50140 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50141 if test "$err" != "0"; then
50148 MAJOR=$( stat /dev/urandom --printf="%t" )
50149 MINOR=$( stat /dev/urandom --printf="%T" )
50150 mknod dir/chartype c $MAJOR $MINOR
50154 chcon -h --user=system_u dir/fifo
50155 chcon -h --user=system_u dir/chartype
50156 setfacl -m u:$UID:--- dir/fifo
50157 setfacl -m u:$UID:rwx dir/chartype
50159 getfacl dir/fifo >> before
50160 getfattr -msecurity.selinux dir/chartype >> before
50162 tar --xattrs --selinux --acls -cf archive.tar dir
50166 tar --xattrs --selinux --acls -xf archive.tar
50168 getfacl dir/fifo >> after
50169 getfattr -msecurity.selinux dir/chartype >> after
50174 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
50175 at_status=$? at_failed=false
50177 at_fn_diff_devnull "$at_stderr" || at_failed=:
50178 echo >>"$at_stdout"; $as_echo "separator
50180 $at_diff - "$at_stdout" || at_failed=:
50181 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
50182 $at_failed && at_fn_log_failure
50186 $as_echo "$at_srcdir/selacl01.at:28:
50189 TEST_TAR_FORMAT=gnu
50190 export TEST_TAR_FORMAT
50191 TAR_OPTIONS=\"-H gnu\"
50196 echo \"test\" > \$\$
50198 cat \$\$ > /dev/null 2>&1
50201 test \$result -eq 0 || exit 77
50204 file=\$(TMPDIR=. mktemp fiXXXXXX)
50206 setfattr -n user.test -v test \$file &> /dev/null
50207 if test \"\$?\" != 0; then
50212 getfattr \$file &> /dev/null
50213 if test \"\$?\" != 0; then
50220 file=\$(TMPDIR=. mktemp fiXXXXXX)
50222 restorecon \$file &> /dev/null
50223 if test \"\$?\" != 0; then
50228 chcon -h --user=unconfined_u \$file &> /dev/null
50229 if test \"\$?\" != 0; then
50235 file=\$(TMPDIR=. mktemp fiXXXXXX)
50236 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50237 if test \"\$err\" != \"0\"; then
50243 file=\$(TMPDIR=. mktemp fiXXXXXX)
50245 setfacl -m u:\$UID:rwx \$file &> /dev/null
50246 if test \"\$?\" != 0; then
50251 getfacl \$file &> /dev/null
50252 if test \"\$?\" != 0; then
50258 file=\$(TMPDIR=. mktemp fiXXXXXX)
50259 setfacl -m u:\$UID:rwx \$file
50260 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50261 if test \"\$err\" != \"0\"; then
50268 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
50269 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
50270 mknod dir/chartype c \$MAJOR \$MINOR
50274 chcon -h --user=system_u dir/fifo
50275 chcon -h --user=system_u dir/chartype
50276 setfacl -m u:\$UID:--- dir/fifo
50277 setfacl -m u:\$UID:rwx dir/chartype
50279 getfacl dir/fifo >> before
50280 getfattr -msecurity.selinux dir/chartype >> before
50282 tar --xattrs --selinux --acls -cf archive.tar dir
50286 tar --xattrs --selinux --acls -xf archive.tar
50288 getfacl dir/fifo >> after
50289 getfattr -msecurity.selinux dir/chartype >> after
50294 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
50298 TEST_TAR_FORMAT=gnu
50299 export TEST_TAR_FORMAT
50300 TAR_OPTIONS="-H gnu"
50307 cat $$ > /dev/null 2>&1
50310 test $result -eq 0 || exit 77
50313 file=$(TMPDIR=. mktemp fiXXXXXX)
50315 setfattr -n user.test -v test $file &> /dev/null
50316 if test "$?" != 0; then
50321 getfattr $file &> /dev/null
50322 if test "$?" != 0; then
50329 file=$(TMPDIR=. mktemp fiXXXXXX)
50331 restorecon $file &> /dev/null
50332 if test "$?" != 0; then
50337 chcon -h --user=unconfined_u $file &> /dev/null
50338 if test "$?" != 0; then
50344 file=$(TMPDIR=. mktemp fiXXXXXX)
50345 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50346 if test "$err" != "0"; then
50352 file=$(TMPDIR=. mktemp fiXXXXXX)
50354 setfacl -m u:$UID:rwx $file &> /dev/null
50355 if test "$?" != 0; then
50360 getfacl $file &> /dev/null
50361 if test "$?" != 0; then
50367 file=$(TMPDIR=. mktemp fiXXXXXX)
50368 setfacl -m u:$UID:rwx $file
50369 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50370 if test "$err" != "0"; then
50377 MAJOR=$( stat /dev/urandom --printf="%t" )
50378 MINOR=$( stat /dev/urandom --printf="%T" )
50379 mknod dir/chartype c $MAJOR $MINOR
50383 chcon -h --user=system_u dir/fifo
50384 chcon -h --user=system_u dir/chartype
50385 setfacl -m u:$UID:--- dir/fifo
50386 setfacl -m u:$UID:rwx dir/chartype
50388 getfacl dir/fifo >> before
50389 getfattr -msecurity.selinux dir/chartype >> before
50391 tar --xattrs --selinux --acls -cf archive.tar dir
50395 tar --xattrs --selinux --acls -xf archive.tar
50397 getfacl dir/fifo >> after
50398 getfattr -msecurity.selinux dir/chartype >> after
50403 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
50404 at_status=$? at_failed=false
50406 at_fn_diff_devnull "$at_stderr" || at_failed=:
50407 echo >>"$at_stdout"; $as_echo "separator
50409 $at_diff - "$at_stdout" || at_failed=:
50410 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
50411 $at_failed && at_fn_log_failure
50418 $at_times_p && times >"$at_times_file"
50419 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
50420 read at_status <"$at_status_file"
50423 at_fn_group_banner 193 'capabs_raw01.at:25' \
50424 "capabilities: binary store/restore" " " 25
50426 test -f $XFAILFILE && at_xfail=yes
50428 $as_echo "193. $at_setup_line: testing $at_desc ..."
50436 $as_echo "$at_srcdir/capabs_raw01.at:28:
50440 export TEST_TAR_FORMAT
50441 TAR_OPTIONS=\"-H v7\"
50446 echo \"test\" > \$\$
50448 cat \$\$ > /dev/null 2>&1
50451 test \$result -eq 0 || exit 77
50455 file=\$(TMPDIR=. mktemp fiXXXXXX)
50457 setfattr -n user.test -v test \$file &> /dev/null
50458 if test \"\$?\" != 0; then
50463 getfattr \$file &> /dev/null
50464 if test \"\$?\" != 0; then
50469 file=\$(TMPDIR=. mktemp fiXXXXXX)
50470 setfattr -n user.test -v ahoj \$file
50471 # check whether tar fails to store xattrs
50472 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50473 if test \"\$err\" != \"0\"; then
50478 file=\$(TMPDIR=. mktemp fiXXXXXX)
50480 setcap \"= cap_chown=ei\" \$file &> /dev/null
50481 if test \"\$?\" != 0; then
50486 getcap \$file &> /dev/null
50487 if test \"\$?\" != 0; then
50495 genfile --file dir/file
50497 setcap \"= cap_chown=ei\" dir/file
50499 # archive whole directory including binary xattrs
50500 tar --xattrs -cf archive.tar dir
50502 # clear the directory
50505 # restore _all_ xattrs (not just the user.* domain)
50506 tar --xattrs --xattrs-include='*' -xf archive.tar
50510 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
50515 export TEST_TAR_FORMAT
50516 TAR_OPTIONS="-H v7"
50523 cat $$ > /dev/null 2>&1
50526 test $result -eq 0 || exit 77
50530 file=$(TMPDIR=. mktemp fiXXXXXX)
50532 setfattr -n user.test -v test $file &> /dev/null
50533 if test "$?" != 0; then
50538 getfattr $file &> /dev/null
50539 if test "$?" != 0; then
50544 file=$(TMPDIR=. mktemp fiXXXXXX)
50545 setfattr -n user.test -v ahoj $file
50546 # check whether tar fails to store xattrs
50547 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50548 if test "$err" != "0"; then
50553 file=$(TMPDIR=. mktemp fiXXXXXX)
50555 setcap "= cap_chown=ei" $file &> /dev/null
50556 if test "$?" != 0; then
50561 getcap $file &> /dev/null
50562 if test "$?" != 0; then
50570 genfile --file dir/file
50572 setcap "= cap_chown=ei" dir/file
50574 # archive whole directory including binary xattrs
50575 tar --xattrs -cf archive.tar dir
50577 # clear the directory
50580 # restore _all_ xattrs (not just the user.* domain)
50581 tar --xattrs --xattrs-include='*' -xf archive.tar
50585 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
50586 at_status=$? at_failed=false
50588 at_fn_diff_devnull "$at_stderr" || at_failed=:
50589 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
50591 $at_diff - "$at_stdout" || at_failed=:
50592 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
50593 $at_failed && at_fn_log_failure
50597 $as_echo "$at_srcdir/capabs_raw01.at:28:
50600 TEST_TAR_FORMAT=oldgnu
50601 export TEST_TAR_FORMAT
50602 TAR_OPTIONS=\"-H oldgnu\"
50607 echo \"test\" > \$\$
50609 cat \$\$ > /dev/null 2>&1
50612 test \$result -eq 0 || exit 77
50616 file=\$(TMPDIR=. mktemp fiXXXXXX)
50618 setfattr -n user.test -v test \$file &> /dev/null
50619 if test \"\$?\" != 0; then
50624 getfattr \$file &> /dev/null
50625 if test \"\$?\" != 0; then
50630 file=\$(TMPDIR=. mktemp fiXXXXXX)
50631 setfattr -n user.test -v ahoj \$file
50632 # check whether tar fails to store xattrs
50633 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50634 if test \"\$err\" != \"0\"; then
50639 file=\$(TMPDIR=. mktemp fiXXXXXX)
50641 setcap \"= cap_chown=ei\" \$file &> /dev/null
50642 if test \"\$?\" != 0; then
50647 getcap \$file &> /dev/null
50648 if test \"\$?\" != 0; then
50656 genfile --file dir/file
50658 setcap \"= cap_chown=ei\" dir/file
50660 # archive whole directory including binary xattrs
50661 tar --xattrs -cf archive.tar dir
50663 # clear the directory
50666 # restore _all_ xattrs (not just the user.* domain)
50667 tar --xattrs --xattrs-include='*' -xf archive.tar
50671 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
50675 TEST_TAR_FORMAT=oldgnu
50676 export TEST_TAR_FORMAT
50677 TAR_OPTIONS="-H oldgnu"
50684 cat $$ > /dev/null 2>&1
50687 test $result -eq 0 || exit 77
50691 file=$(TMPDIR=. mktemp fiXXXXXX)
50693 setfattr -n user.test -v test $file &> /dev/null
50694 if test "$?" != 0; then
50699 getfattr $file &> /dev/null
50700 if test "$?" != 0; then
50705 file=$(TMPDIR=. mktemp fiXXXXXX)
50706 setfattr -n user.test -v ahoj $file
50707 # check whether tar fails to store xattrs
50708 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50709 if test "$err" != "0"; then
50714 file=$(TMPDIR=. mktemp fiXXXXXX)
50716 setcap "= cap_chown=ei" $file &> /dev/null
50717 if test "$?" != 0; then
50722 getcap $file &> /dev/null
50723 if test "$?" != 0; then
50731 genfile --file dir/file
50733 setcap "= cap_chown=ei" dir/file
50735 # archive whole directory including binary xattrs
50736 tar --xattrs -cf archive.tar dir
50738 # clear the directory
50741 # restore _all_ xattrs (not just the user.* domain)
50742 tar --xattrs --xattrs-include='*' -xf archive.tar
50746 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
50747 at_status=$? at_failed=false
50749 at_fn_diff_devnull "$at_stderr" || at_failed=:
50750 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
50752 $at_diff - "$at_stdout" || at_failed=:
50753 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
50754 $at_failed && at_fn_log_failure
50758 $as_echo "$at_srcdir/capabs_raw01.at:28:
50761 TEST_TAR_FORMAT=ustar
50762 export TEST_TAR_FORMAT
50763 TAR_OPTIONS=\"-H ustar\"
50768 echo \"test\" > \$\$
50770 cat \$\$ > /dev/null 2>&1
50773 test \$result -eq 0 || exit 77
50777 file=\$(TMPDIR=. mktemp fiXXXXXX)
50779 setfattr -n user.test -v test \$file &> /dev/null
50780 if test \"\$?\" != 0; then
50785 getfattr \$file &> /dev/null
50786 if test \"\$?\" != 0; then
50791 file=\$(TMPDIR=. mktemp fiXXXXXX)
50792 setfattr -n user.test -v ahoj \$file
50793 # check whether tar fails to store xattrs
50794 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50795 if test \"\$err\" != \"0\"; then
50800 file=\$(TMPDIR=. mktemp fiXXXXXX)
50802 setcap \"= cap_chown=ei\" \$file &> /dev/null
50803 if test \"\$?\" != 0; then
50808 getcap \$file &> /dev/null
50809 if test \"\$?\" != 0; then
50817 genfile --file dir/file
50819 setcap \"= cap_chown=ei\" dir/file
50821 # archive whole directory including binary xattrs
50822 tar --xattrs -cf archive.tar dir
50824 # clear the directory
50827 # restore _all_ xattrs (not just the user.* domain)
50828 tar --xattrs --xattrs-include='*' -xf archive.tar
50832 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
50836 TEST_TAR_FORMAT=ustar
50837 export TEST_TAR_FORMAT
50838 TAR_OPTIONS="-H ustar"
50845 cat $$ > /dev/null 2>&1
50848 test $result -eq 0 || exit 77
50852 file=$(TMPDIR=. mktemp fiXXXXXX)
50854 setfattr -n user.test -v test $file &> /dev/null
50855 if test "$?" != 0; then
50860 getfattr $file &> /dev/null
50861 if test "$?" != 0; then
50866 file=$(TMPDIR=. mktemp fiXXXXXX)
50867 setfattr -n user.test -v ahoj $file
50868 # check whether tar fails to store xattrs
50869 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
50870 if test "$err" != "0"; then
50875 file=$(TMPDIR=. mktemp fiXXXXXX)
50877 setcap "= cap_chown=ei" $file &> /dev/null
50878 if test "$?" != 0; then
50883 getcap $file &> /dev/null
50884 if test "$?" != 0; then
50892 genfile --file dir/file
50894 setcap "= cap_chown=ei" dir/file
50896 # archive whole directory including binary xattrs
50897 tar --xattrs -cf archive.tar dir
50899 # clear the directory
50902 # restore _all_ xattrs (not just the user.* domain)
50903 tar --xattrs --xattrs-include='*' -xf archive.tar
50907 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
50908 at_status=$? at_failed=false
50910 at_fn_diff_devnull "$at_stderr" || at_failed=:
50911 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
50913 $at_diff - "$at_stdout" || at_failed=:
50914 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
50915 $at_failed && at_fn_log_failure
50919 $as_echo "$at_srcdir/capabs_raw01.at:28:
50922 TEST_TAR_FORMAT=posix
50923 export TEST_TAR_FORMAT
50924 TAR_OPTIONS=\"-H posix\"
50929 echo \"test\" > \$\$
50931 cat \$\$ > /dev/null 2>&1
50934 test \$result -eq 0 || exit 77
50938 file=\$(TMPDIR=. mktemp fiXXXXXX)
50940 setfattr -n user.test -v test \$file &> /dev/null
50941 if test \"\$?\" != 0; then
50946 getfattr \$file &> /dev/null
50947 if test \"\$?\" != 0; then
50952 file=\$(TMPDIR=. mktemp fiXXXXXX)
50953 setfattr -n user.test -v ahoj \$file
50954 # check whether tar fails to store xattrs
50955 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
50956 if test \"\$err\" != \"0\"; then
50961 file=\$(TMPDIR=. mktemp fiXXXXXX)
50963 setcap \"= cap_chown=ei\" \$file &> /dev/null
50964 if test \"\$?\" != 0; then
50969 getcap \$file &> /dev/null
50970 if test \"\$?\" != 0; then
50978 genfile --file dir/file
50980 setcap \"= cap_chown=ei\" dir/file
50982 # archive whole directory including binary xattrs
50983 tar --xattrs -cf archive.tar dir
50985 # clear the directory
50988 # restore _all_ xattrs (not just the user.* domain)
50989 tar --xattrs --xattrs-include='*' -xf archive.tar
50993 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
50997 TEST_TAR_FORMAT=posix
50998 export TEST_TAR_FORMAT
50999 TAR_OPTIONS="-H posix"
51006 cat $$ > /dev/null 2>&1
51009 test $result -eq 0 || exit 77
51013 file=$(TMPDIR=. mktemp fiXXXXXX)
51015 setfattr -n user.test -v test $file &> /dev/null
51016 if test "$?" != 0; then
51021 getfattr $file &> /dev/null
51022 if test "$?" != 0; then
51027 file=$(TMPDIR=. mktemp fiXXXXXX)
51028 setfattr -n user.test -v ahoj $file
51029 # check whether tar fails to store xattrs
51030 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
51031 if test "$err" != "0"; then
51036 file=$(TMPDIR=. mktemp fiXXXXXX)
51038 setcap "= cap_chown=ei" $file &> /dev/null
51039 if test "$?" != 0; then
51044 getcap $file &> /dev/null
51045 if test "$?" != 0; then
51053 genfile --file dir/file
51055 setcap "= cap_chown=ei" dir/file
51057 # archive whole directory including binary xattrs
51058 tar --xattrs -cf archive.tar dir
51060 # clear the directory
51063 # restore _all_ xattrs (not just the user.* domain)
51064 tar --xattrs --xattrs-include='*' -xf archive.tar
51068 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51069 at_status=$? at_failed=false
51071 at_fn_diff_devnull "$at_stderr" || at_failed=:
51072 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
51074 $at_diff - "$at_stdout" || at_failed=:
51075 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
51076 $at_failed && at_fn_log_failure
51080 $as_echo "$at_srcdir/capabs_raw01.at:28:
51083 TEST_TAR_FORMAT=gnu
51084 export TEST_TAR_FORMAT
51085 TAR_OPTIONS=\"-H gnu\"
51090 echo \"test\" > \$\$
51092 cat \$\$ > /dev/null 2>&1
51095 test \$result -eq 0 || exit 77
51099 file=\$(TMPDIR=. mktemp fiXXXXXX)
51101 setfattr -n user.test -v test \$file &> /dev/null
51102 if test \"\$?\" != 0; then
51107 getfattr \$file &> /dev/null
51108 if test \"\$?\" != 0; then
51113 file=\$(TMPDIR=. mktemp fiXXXXXX)
51114 setfattr -n user.test -v ahoj \$file
51115 # check whether tar fails to store xattrs
51116 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
51117 if test \"\$err\" != \"0\"; then
51122 file=\$(TMPDIR=. mktemp fiXXXXXX)
51124 setcap \"= cap_chown=ei\" \$file &> /dev/null
51125 if test \"\$?\" != 0; then
51130 getcap \$file &> /dev/null
51131 if test \"\$?\" != 0; then
51139 genfile --file dir/file
51141 setcap \"= cap_chown=ei\" dir/file
51143 # archive whole directory including binary xattrs
51144 tar --xattrs -cf archive.tar dir
51146 # clear the directory
51149 # restore _all_ xattrs (not just the user.* domain)
51150 tar --xattrs --xattrs-include='*' -xf archive.tar
51154 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
51158 TEST_TAR_FORMAT=gnu
51159 export TEST_TAR_FORMAT
51160 TAR_OPTIONS="-H gnu"
51167 cat $$ > /dev/null 2>&1
51170 test $result -eq 0 || exit 77
51174 file=$(TMPDIR=. mktemp fiXXXXXX)
51176 setfattr -n user.test -v test $file &> /dev/null
51177 if test "$?" != 0; then
51182 getfattr $file &> /dev/null
51183 if test "$?" != 0; then
51188 file=$(TMPDIR=. mktemp fiXXXXXX)
51189 setfattr -n user.test -v ahoj $file
51190 # check whether tar fails to store xattrs
51191 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
51192 if test "$err" != "0"; then
51197 file=$(TMPDIR=. mktemp fiXXXXXX)
51199 setcap "= cap_chown=ei" $file &> /dev/null
51200 if test "$?" != 0; then
51205 getcap $file &> /dev/null
51206 if test "$?" != 0; then
51214 genfile --file dir/file
51216 setcap "= cap_chown=ei" dir/file
51218 # archive whole directory including binary xattrs
51219 tar --xattrs -cf archive.tar dir
51221 # clear the directory
51224 # restore _all_ xattrs (not just the user.* domain)
51225 tar --xattrs --xattrs-include='*' -xf archive.tar
51229 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51230 at_status=$? at_failed=false
51232 at_fn_diff_devnull "$at_stderr" || at_failed=:
51233 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
51235 $at_diff - "$at_stdout" || at_failed=:
51236 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
51237 $at_failed && at_fn_log_failure
51244 $at_times_p && times >"$at_times_file"
51245 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
51246 read at_status <"$at_status_file"
51249 at_fn_group_banner 194 'onetop01.at:21' \
51250 "tar --one-top-level" " " 26
51252 test -f $XFAILFILE && at_xfail=yes
51254 $as_echo "194. $at_setup_line: testing $at_desc ..."
51262 $as_echo "$at_srcdir/onetop01.at:24:
51266 export TEST_TAR_FORMAT
51267 TAR_OPTIONS=\"-H v7\"
51272 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51280 tar --one-top-level -x -f ../a.tar
51283 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
51288 export TEST_TAR_FORMAT
51289 TAR_OPTIONS="-H v7"
51294 test -z "`sort < /dev/null 2>&1`" || exit 77
51302 tar --one-top-level -x -f ../a.tar
51305 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51306 at_status=$? at_failed=false
51308 at_fn_diff_devnull "$at_stderr" || at_failed=:
51309 echo >>"$at_stdout"; $as_echo ".
51314 $at_diff - "$at_stdout" || at_failed=:
51315 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
51316 $at_failed && at_fn_log_failure
51320 $as_echo "$at_srcdir/onetop01.at:24:
51323 TEST_TAR_FORMAT=oldgnu
51324 export TEST_TAR_FORMAT
51325 TAR_OPTIONS=\"-H oldgnu\"
51330 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51338 tar --one-top-level -x -f ../a.tar
51341 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
51345 TEST_TAR_FORMAT=oldgnu
51346 export TEST_TAR_FORMAT
51347 TAR_OPTIONS="-H oldgnu"
51352 test -z "`sort < /dev/null 2>&1`" || exit 77
51360 tar --one-top-level -x -f ../a.tar
51363 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51364 at_status=$? at_failed=false
51366 at_fn_diff_devnull "$at_stderr" || at_failed=:
51367 echo >>"$at_stdout"; $as_echo ".
51372 $at_diff - "$at_stdout" || at_failed=:
51373 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
51374 $at_failed && at_fn_log_failure
51378 $as_echo "$at_srcdir/onetop01.at:24:
51381 TEST_TAR_FORMAT=ustar
51382 export TEST_TAR_FORMAT
51383 TAR_OPTIONS=\"-H ustar\"
51388 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51396 tar --one-top-level -x -f ../a.tar
51399 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
51403 TEST_TAR_FORMAT=ustar
51404 export TEST_TAR_FORMAT
51405 TAR_OPTIONS="-H ustar"
51410 test -z "`sort < /dev/null 2>&1`" || exit 77
51418 tar --one-top-level -x -f ../a.tar
51421 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51422 at_status=$? at_failed=false
51424 at_fn_diff_devnull "$at_stderr" || at_failed=:
51425 echo >>"$at_stdout"; $as_echo ".
51430 $at_diff - "$at_stdout" || at_failed=:
51431 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
51432 $at_failed && at_fn_log_failure
51436 $as_echo "$at_srcdir/onetop01.at:24:
51439 TEST_TAR_FORMAT=posix
51440 export TEST_TAR_FORMAT
51441 TAR_OPTIONS=\"-H posix\"
51446 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51454 tar --one-top-level -x -f ../a.tar
51457 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
51461 TEST_TAR_FORMAT=posix
51462 export TEST_TAR_FORMAT
51463 TAR_OPTIONS="-H posix"
51468 test -z "`sort < /dev/null 2>&1`" || exit 77
51476 tar --one-top-level -x -f ../a.tar
51479 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51480 at_status=$? at_failed=false
51482 at_fn_diff_devnull "$at_stderr" || at_failed=:
51483 echo >>"$at_stdout"; $as_echo ".
51488 $at_diff - "$at_stdout" || at_failed=:
51489 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
51490 $at_failed && at_fn_log_failure
51494 $as_echo "$at_srcdir/onetop01.at:24:
51497 TEST_TAR_FORMAT=gnu
51498 export TEST_TAR_FORMAT
51499 TAR_OPTIONS=\"-H gnu\"
51504 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51512 tar --one-top-level -x -f ../a.tar
51515 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
51519 TEST_TAR_FORMAT=gnu
51520 export TEST_TAR_FORMAT
51521 TAR_OPTIONS="-H gnu"
51526 test -z "`sort < /dev/null 2>&1`" || exit 77
51534 tar --one-top-level -x -f ../a.tar
51537 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51538 at_status=$? at_failed=false
51540 at_fn_diff_devnull "$at_stderr" || at_failed=:
51541 echo >>"$at_stdout"; $as_echo ".
51546 $at_diff - "$at_stdout" || at_failed=:
51547 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
51548 $at_failed && at_fn_log_failure
51555 $at_times_p && times >"$at_times_file"
51556 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
51557 read at_status <"$at_status_file"
51560 at_fn_group_banner 195 'onetop02.at:21' \
51561 "tar --one-top-level --show-transformed" " " 26
51563 test -f $XFAILFILE && at_xfail=yes
51565 $as_echo "195. $at_setup_line: testing $at_desc ..."
51573 $as_echo "$at_srcdir/onetop02.at:24:
51577 export TEST_TAR_FORMAT
51578 TAR_OPTIONS=\"-H v7\"
51583 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51591 tar --one-top-level --show-transformed -v -x -f ../a.tar
51594 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
51599 export TEST_TAR_FORMAT
51600 TAR_OPTIONS="-H v7"
51605 test -z "`sort < /dev/null 2>&1`" || exit 77
51613 tar --one-top-level --show-transformed -v -x -f ../a.tar
51616 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51617 at_status=$? at_failed=false
51619 at_fn_diff_devnull "$at_stderr" || at_failed=:
51620 echo >>"$at_stdout"; $as_echo "a/
51628 $at_diff - "$at_stdout" || at_failed=:
51629 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
51630 $at_failed && at_fn_log_failure
51634 $as_echo "$at_srcdir/onetop02.at:24:
51637 TEST_TAR_FORMAT=oldgnu
51638 export TEST_TAR_FORMAT
51639 TAR_OPTIONS=\"-H oldgnu\"
51644 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51652 tar --one-top-level --show-transformed -v -x -f ../a.tar
51655 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
51659 TEST_TAR_FORMAT=oldgnu
51660 export TEST_TAR_FORMAT
51661 TAR_OPTIONS="-H oldgnu"
51666 test -z "`sort < /dev/null 2>&1`" || exit 77
51674 tar --one-top-level --show-transformed -v -x -f ../a.tar
51677 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51678 at_status=$? at_failed=false
51680 at_fn_diff_devnull "$at_stderr" || at_failed=:
51681 echo >>"$at_stdout"; $as_echo "a/
51689 $at_diff - "$at_stdout" || at_failed=:
51690 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
51691 $at_failed && at_fn_log_failure
51695 $as_echo "$at_srcdir/onetop02.at:24:
51698 TEST_TAR_FORMAT=ustar
51699 export TEST_TAR_FORMAT
51700 TAR_OPTIONS=\"-H ustar\"
51705 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51713 tar --one-top-level --show-transformed -v -x -f ../a.tar
51716 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
51720 TEST_TAR_FORMAT=ustar
51721 export TEST_TAR_FORMAT
51722 TAR_OPTIONS="-H ustar"
51727 test -z "`sort < /dev/null 2>&1`" || exit 77
51735 tar --one-top-level --show-transformed -v -x -f ../a.tar
51738 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51739 at_status=$? at_failed=false
51741 at_fn_diff_devnull "$at_stderr" || at_failed=:
51742 echo >>"$at_stdout"; $as_echo "a/
51750 $at_diff - "$at_stdout" || at_failed=:
51751 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
51752 $at_failed && at_fn_log_failure
51756 $as_echo "$at_srcdir/onetop02.at:24:
51759 TEST_TAR_FORMAT=posix
51760 export TEST_TAR_FORMAT
51761 TAR_OPTIONS=\"-H posix\"
51766 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51774 tar --one-top-level --show-transformed -v -x -f ../a.tar
51777 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
51781 TEST_TAR_FORMAT=posix
51782 export TEST_TAR_FORMAT
51783 TAR_OPTIONS="-H posix"
51788 test -z "`sort < /dev/null 2>&1`" || exit 77
51796 tar --one-top-level --show-transformed -v -x -f ../a.tar
51799 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51800 at_status=$? at_failed=false
51802 at_fn_diff_devnull "$at_stderr" || at_failed=:
51803 echo >>"$at_stdout"; $as_echo "a/
51811 $at_diff - "$at_stdout" || at_failed=:
51812 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
51813 $at_failed && at_fn_log_failure
51817 $as_echo "$at_srcdir/onetop02.at:24:
51820 TEST_TAR_FORMAT=gnu
51821 export TEST_TAR_FORMAT
51822 TAR_OPTIONS=\"-H gnu\"
51827 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51835 tar --one-top-level --show-transformed -v -x -f ../a.tar
51838 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
51842 TEST_TAR_FORMAT=gnu
51843 export TEST_TAR_FORMAT
51844 TAR_OPTIONS="-H gnu"
51849 test -z "`sort < /dev/null 2>&1`" || exit 77
51857 tar --one-top-level --show-transformed -v -x -f ../a.tar
51860 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51861 at_status=$? at_failed=false
51863 at_fn_diff_devnull "$at_stderr" || at_failed=:
51864 echo >>"$at_stdout"; $as_echo "a/
51872 $at_diff - "$at_stdout" || at_failed=:
51873 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
51874 $at_failed && at_fn_log_failure
51881 $at_times_p && times >"$at_times_file"
51882 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
51883 read at_status <"$at_status_file"
51886 at_fn_group_banner 196 'onetop03.at:21' \
51887 "tar --one-top-level --transform" " " 26
51889 test -f $XFAILFILE && at_xfail=yes
51891 $as_echo "196. $at_setup_line: testing $at_desc ..."
51899 $as_echo "$at_srcdir/onetop03.at:24:
51903 export TEST_TAR_FORMAT
51904 TAR_OPTIONS=\"-H v7\"
51909 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51917 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
51920 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
51925 export TEST_TAR_FORMAT
51926 TAR_OPTIONS="-H v7"
51931 test -z "`sort < /dev/null 2>&1`" || exit 77
51939 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
51942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51943 at_status=$? at_failed=false
51945 at_fn_diff_devnull "$at_stderr" || at_failed=:
51946 echo >>"$at_stdout"; $as_echo ".
51951 $at_diff - "$at_stdout" || at_failed=:
51952 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
51953 $at_failed && at_fn_log_failure
51957 $as_echo "$at_srcdir/onetop03.at:24:
51960 TEST_TAR_FORMAT=oldgnu
51961 export TEST_TAR_FORMAT
51962 TAR_OPTIONS=\"-H oldgnu\"
51967 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
51975 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
51978 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
51982 TEST_TAR_FORMAT=oldgnu
51983 export TEST_TAR_FORMAT
51984 TAR_OPTIONS="-H oldgnu"
51989 test -z "`sort < /dev/null 2>&1`" || exit 77
51997 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52000 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52001 at_status=$? at_failed=false
52003 at_fn_diff_devnull "$at_stderr" || at_failed=:
52004 echo >>"$at_stdout"; $as_echo ".
52009 $at_diff - "$at_stdout" || at_failed=:
52010 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
52011 $at_failed && at_fn_log_failure
52015 $as_echo "$at_srcdir/onetop03.at:24:
52018 TEST_TAR_FORMAT=ustar
52019 export TEST_TAR_FORMAT
52020 TAR_OPTIONS=\"-H ustar\"
52025 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52033 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52036 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
52040 TEST_TAR_FORMAT=ustar
52041 export TEST_TAR_FORMAT
52042 TAR_OPTIONS="-H ustar"
52047 test -z "`sort < /dev/null 2>&1`" || exit 77
52055 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52058 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52059 at_status=$? at_failed=false
52061 at_fn_diff_devnull "$at_stderr" || at_failed=:
52062 echo >>"$at_stdout"; $as_echo ".
52067 $at_diff - "$at_stdout" || at_failed=:
52068 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
52069 $at_failed && at_fn_log_failure
52073 $as_echo "$at_srcdir/onetop03.at:24:
52076 TEST_TAR_FORMAT=posix
52077 export TEST_TAR_FORMAT
52078 TAR_OPTIONS=\"-H posix\"
52083 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52091 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52094 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
52098 TEST_TAR_FORMAT=posix
52099 export TEST_TAR_FORMAT
52100 TAR_OPTIONS="-H posix"
52105 test -z "`sort < /dev/null 2>&1`" || exit 77
52113 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52116 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52117 at_status=$? at_failed=false
52119 at_fn_diff_devnull "$at_stderr" || at_failed=:
52120 echo >>"$at_stdout"; $as_echo ".
52125 $at_diff - "$at_stdout" || at_failed=:
52126 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
52127 $at_failed && at_fn_log_failure
52131 $as_echo "$at_srcdir/onetop03.at:24:
52134 TEST_TAR_FORMAT=gnu
52135 export TEST_TAR_FORMAT
52136 TAR_OPTIONS=\"-H gnu\"
52141 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52149 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52152 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
52156 TEST_TAR_FORMAT=gnu
52157 export TEST_TAR_FORMAT
52158 TAR_OPTIONS="-H gnu"
52163 test -z "`sort < /dev/null 2>&1`" || exit 77
52171 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
52174 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52175 at_status=$? at_failed=false
52177 at_fn_diff_devnull "$at_stderr" || at_failed=:
52178 echo >>"$at_stdout"; $as_echo ".
52183 $at_diff - "$at_stdout" || at_failed=:
52184 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
52185 $at_failed && at_fn_log_failure
52192 $at_times_p && times >"$at_times_file"
52193 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
52194 read at_status <"$at_status_file"
52197 at_fn_group_banner 197 'onetop04.at:21' \
52198 "tar --one-top-level --transform" " " 26
52200 test -f $XFAILFILE && at_xfail=yes
52202 $as_echo "197. $at_setup_line: testing $at_desc ..."
52210 $as_echo "$at_srcdir/onetop04.at:24:
52214 export TEST_TAR_FORMAT
52215 TAR_OPTIONS=\"-H v7\"
52220 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52226 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52228 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
52233 export TEST_TAR_FORMAT
52234 TAR_OPTIONS="-H v7"
52239 test -z "`sort < /dev/null 2>&1`" || exit 77
52245 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52247 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52248 at_status=$? at_failed=false
52250 at_fn_diff_devnull "$at_stderr" || at_failed=:
52251 echo >>"$at_stdout"; $as_echo "a/
52255 $at_diff - "$at_stdout" || at_failed=:
52256 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
52257 $at_failed && at_fn_log_failure
52261 $as_echo "$at_srcdir/onetop04.at:24:
52264 TEST_TAR_FORMAT=oldgnu
52265 export TEST_TAR_FORMAT
52266 TAR_OPTIONS=\"-H oldgnu\"
52271 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52277 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52279 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
52283 TEST_TAR_FORMAT=oldgnu
52284 export TEST_TAR_FORMAT
52285 TAR_OPTIONS="-H oldgnu"
52290 test -z "`sort < /dev/null 2>&1`" || exit 77
52296 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52298 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52299 at_status=$? at_failed=false
52301 at_fn_diff_devnull "$at_stderr" || at_failed=:
52302 echo >>"$at_stdout"; $as_echo "a/
52306 $at_diff - "$at_stdout" || at_failed=:
52307 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
52308 $at_failed && at_fn_log_failure
52312 $as_echo "$at_srcdir/onetop04.at:24:
52315 TEST_TAR_FORMAT=ustar
52316 export TEST_TAR_FORMAT
52317 TAR_OPTIONS=\"-H ustar\"
52322 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52328 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52330 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
52334 TEST_TAR_FORMAT=ustar
52335 export TEST_TAR_FORMAT
52336 TAR_OPTIONS="-H ustar"
52341 test -z "`sort < /dev/null 2>&1`" || exit 77
52347 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52349 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52350 at_status=$? at_failed=false
52352 at_fn_diff_devnull "$at_stderr" || at_failed=:
52353 echo >>"$at_stdout"; $as_echo "a/
52357 $at_diff - "$at_stdout" || at_failed=:
52358 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
52359 $at_failed && at_fn_log_failure
52363 $as_echo "$at_srcdir/onetop04.at:24:
52366 TEST_TAR_FORMAT=posix
52367 export TEST_TAR_FORMAT
52368 TAR_OPTIONS=\"-H posix\"
52373 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52379 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52381 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
52385 TEST_TAR_FORMAT=posix
52386 export TEST_TAR_FORMAT
52387 TAR_OPTIONS="-H posix"
52392 test -z "`sort < /dev/null 2>&1`" || exit 77
52398 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52400 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52401 at_status=$? at_failed=false
52403 at_fn_diff_devnull "$at_stderr" || at_failed=:
52404 echo >>"$at_stdout"; $as_echo "a/
52408 $at_diff - "$at_stdout" || at_failed=:
52409 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
52410 $at_failed && at_fn_log_failure
52414 $as_echo "$at_srcdir/onetop04.at:24:
52417 TEST_TAR_FORMAT=gnu
52418 export TEST_TAR_FORMAT
52419 TAR_OPTIONS=\"-H gnu\"
52424 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
52430 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52432 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
52436 TEST_TAR_FORMAT=gnu
52437 export TEST_TAR_FORMAT
52438 TAR_OPTIONS="-H gnu"
52443 test -z "`sort < /dev/null 2>&1`" || exit 77
52449 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
52451 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52452 at_status=$? at_failed=false
52454 at_fn_diff_devnull "$at_stderr" || at_failed=:
52455 echo >>"$at_stdout"; $as_echo "a/
52459 $at_diff - "$at_stdout" || at_failed=:
52460 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
52461 $at_failed && at_fn_log_failure
52468 $at_times_p && times >"$at_times_file"
52469 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
52470 read at_status <"$at_status_file"
52473 at_fn_group_banner 198 'onetop05.at:21' \
52474 "tar --one-top-level restoring permissions" " " 26
52476 test -f $XFAILFILE && at_xfail=yes
52478 $as_echo "198. $at_setup_line: testing $at_desc ..."
52483 # When extracting an archive that contains ./ with the --one-top-level option,
52484 # the mode and ownership of ./ would be incorrectly applied to the current
52485 # working directory, instead of the requested top-level directory.
52490 $as_echo "$at_srcdir/onetop05.at:28:
52494 export TEST_TAR_FORMAT
52495 TAR_OPTIONS=\"-H v7\"
52501 chmod \$orig_mode d
52503 mode=\$(genfile --stat=mode.7777 d)
52504 test \$mode = \$orig_mode || exit 77
52506 genfile --file d/file
52507 tar -cf d.tar -C d .
52513 tar --one-top-level=top -xpf ../d.tar)
52514 mode=\$(genfile --stat=mode.777 d1)
52515 if test 700 = \$mode; then
52518 echo \"CWD: mode changed: 700 != \$mode\"
52523 tar -C d2 --one-top-level=top -xpf d.tar
52524 mode=\$(genfile --stat=mode.777 d2)
52525 if test 700 = \$mode; then
52528 echo \"DIR: mode changed: 700 != \$mode\"
52530 mode=\$(genfile --stat=mode.7777 d2/top)
52531 if test \$mode = \$orig_mode; then
52534 echo \"TOP: mode changed: \$orig_mode != \$mode\"
52537 at_fn_check_prepare_notrace 'a $(...) command substitution' "onetop05.at:28"
52542 export TEST_TAR_FORMAT
52543 TAR_OPTIONS="-H v7"
52551 mode=$(genfile --stat=mode.7777 d)
52552 test $mode = $orig_mode || exit 77
52554 genfile --file d/file
52555 tar -cf d.tar -C d .
52561 tar --one-top-level=top -xpf ../d.tar)
52562 mode=$(genfile --stat=mode.777 d1)
52563 if test 700 = $mode; then
52566 echo "CWD: mode changed: 700 != $mode"
52571 tar -C d2 --one-top-level=top -xpf d.tar
52572 mode=$(genfile --stat=mode.777 d2)
52573 if test 700 = $mode; then
52576 echo "DIR: mode changed: 700 != $mode"
52578 mode=$(genfile --stat=mode.7777 d2/top)
52579 if test $mode = $orig_mode; then
52582 echo "TOP: mode changed: $orig_mode != $mode"
52585 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52586 at_status=$? at_failed=false
52588 at_fn_diff_devnull "$at_stderr" || at_failed=:
52589 echo >>"$at_stdout"; $as_echo "CWD: OK
52593 $at_diff - "$at_stdout" || at_failed=:
52594 at_fn_check_status 0 $at_status "$at_srcdir/onetop05.at:28"
52595 $at_failed && at_fn_log_failure
52599 $as_echo "$at_srcdir/onetop05.at:28:
52602 TEST_TAR_FORMAT=oldgnu
52603 export TEST_TAR_FORMAT
52604 TAR_OPTIONS=\"-H oldgnu\"
52610 chmod \$orig_mode d
52612 mode=\$(genfile --stat=mode.7777 d)
52613 test \$mode = \$orig_mode || exit 77
52615 genfile --file d/file
52616 tar -cf d.tar -C d .
52622 tar --one-top-level=top -xpf ../d.tar)
52623 mode=\$(genfile --stat=mode.777 d1)
52624 if test 700 = \$mode; then
52627 echo \"CWD: mode changed: 700 != \$mode\"
52632 tar -C d2 --one-top-level=top -xpf d.tar
52633 mode=\$(genfile --stat=mode.777 d2)
52634 if test 700 = \$mode; then
52637 echo \"DIR: mode changed: 700 != \$mode\"
52639 mode=\$(genfile --stat=mode.7777 d2/top)
52640 if test \$mode = \$orig_mode; then
52643 echo \"TOP: mode changed: \$orig_mode != \$mode\"
52646 at_fn_check_prepare_notrace 'a $(...) command substitution' "onetop05.at:28"
52650 TEST_TAR_FORMAT=oldgnu
52651 export TEST_TAR_FORMAT
52652 TAR_OPTIONS="-H oldgnu"
52660 mode=$(genfile --stat=mode.7777 d)
52661 test $mode = $orig_mode || exit 77
52663 genfile --file d/file
52664 tar -cf d.tar -C d .
52670 tar --one-top-level=top -xpf ../d.tar)
52671 mode=$(genfile --stat=mode.777 d1)
52672 if test 700 = $mode; then
52675 echo "CWD: mode changed: 700 != $mode"
52680 tar -C d2 --one-top-level=top -xpf d.tar
52681 mode=$(genfile --stat=mode.777 d2)
52682 if test 700 = $mode; then
52685 echo "DIR: mode changed: 700 != $mode"
52687 mode=$(genfile --stat=mode.7777 d2/top)
52688 if test $mode = $orig_mode; then
52691 echo "TOP: mode changed: $orig_mode != $mode"
52694 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52695 at_status=$? at_failed=false
52697 at_fn_diff_devnull "$at_stderr" || at_failed=:
52698 echo >>"$at_stdout"; $as_echo "CWD: OK
52702 $at_diff - "$at_stdout" || at_failed=:
52703 at_fn_check_status 0 $at_status "$at_srcdir/onetop05.at:28"
52704 $at_failed && at_fn_log_failure
52708 $as_echo "$at_srcdir/onetop05.at:28:
52711 TEST_TAR_FORMAT=ustar
52712 export TEST_TAR_FORMAT
52713 TAR_OPTIONS=\"-H ustar\"
52719 chmod \$orig_mode d
52721 mode=\$(genfile --stat=mode.7777 d)
52722 test \$mode = \$orig_mode || exit 77
52724 genfile --file d/file
52725 tar -cf d.tar -C d .
52731 tar --one-top-level=top -xpf ../d.tar)
52732 mode=\$(genfile --stat=mode.777 d1)
52733 if test 700 = \$mode; then
52736 echo \"CWD: mode changed: 700 != \$mode\"
52741 tar -C d2 --one-top-level=top -xpf d.tar
52742 mode=\$(genfile --stat=mode.777 d2)
52743 if test 700 = \$mode; then
52746 echo \"DIR: mode changed: 700 != \$mode\"
52748 mode=\$(genfile --stat=mode.7777 d2/top)
52749 if test \$mode = \$orig_mode; then
52752 echo \"TOP: mode changed: \$orig_mode != \$mode\"
52755 at_fn_check_prepare_notrace 'a $(...) command substitution' "onetop05.at:28"
52759 TEST_TAR_FORMAT=ustar
52760 export TEST_TAR_FORMAT
52761 TAR_OPTIONS="-H ustar"
52769 mode=$(genfile --stat=mode.7777 d)
52770 test $mode = $orig_mode || exit 77
52772 genfile --file d/file
52773 tar -cf d.tar -C d .
52779 tar --one-top-level=top -xpf ../d.tar)
52780 mode=$(genfile --stat=mode.777 d1)
52781 if test 700 = $mode; then
52784 echo "CWD: mode changed: 700 != $mode"
52789 tar -C d2 --one-top-level=top -xpf d.tar
52790 mode=$(genfile --stat=mode.777 d2)
52791 if test 700 = $mode; then
52794 echo "DIR: mode changed: 700 != $mode"
52796 mode=$(genfile --stat=mode.7777 d2/top)
52797 if test $mode = $orig_mode; then
52800 echo "TOP: mode changed: $orig_mode != $mode"
52803 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52804 at_status=$? at_failed=false
52806 at_fn_diff_devnull "$at_stderr" || at_failed=:
52807 echo >>"$at_stdout"; $as_echo "CWD: OK
52811 $at_diff - "$at_stdout" || at_failed=:
52812 at_fn_check_status 0 $at_status "$at_srcdir/onetop05.at:28"
52813 $at_failed && at_fn_log_failure
52817 $as_echo "$at_srcdir/onetop05.at:28:
52820 TEST_TAR_FORMAT=posix
52821 export TEST_TAR_FORMAT
52822 TAR_OPTIONS=\"-H posix\"
52828 chmod \$orig_mode d
52830 mode=\$(genfile --stat=mode.7777 d)
52831 test \$mode = \$orig_mode || exit 77
52833 genfile --file d/file
52834 tar -cf d.tar -C d .
52840 tar --one-top-level=top -xpf ../d.tar)
52841 mode=\$(genfile --stat=mode.777 d1)
52842 if test 700 = \$mode; then
52845 echo \"CWD: mode changed: 700 != \$mode\"
52850 tar -C d2 --one-top-level=top -xpf d.tar
52851 mode=\$(genfile --stat=mode.777 d2)
52852 if test 700 = \$mode; then
52855 echo \"DIR: mode changed: 700 != \$mode\"
52857 mode=\$(genfile --stat=mode.7777 d2/top)
52858 if test \$mode = \$orig_mode; then
52861 echo \"TOP: mode changed: \$orig_mode != \$mode\"
52864 at_fn_check_prepare_notrace 'a $(...) command substitution' "onetop05.at:28"
52868 TEST_TAR_FORMAT=posix
52869 export TEST_TAR_FORMAT
52870 TAR_OPTIONS="-H posix"
52878 mode=$(genfile --stat=mode.7777 d)
52879 test $mode = $orig_mode || exit 77
52881 genfile --file d/file
52882 tar -cf d.tar -C d .
52888 tar --one-top-level=top -xpf ../d.tar)
52889 mode=$(genfile --stat=mode.777 d1)
52890 if test 700 = $mode; then
52893 echo "CWD: mode changed: 700 != $mode"
52898 tar -C d2 --one-top-level=top -xpf d.tar
52899 mode=$(genfile --stat=mode.777 d2)
52900 if test 700 = $mode; then
52903 echo "DIR: mode changed: 700 != $mode"
52905 mode=$(genfile --stat=mode.7777 d2/top)
52906 if test $mode = $orig_mode; then
52909 echo "TOP: mode changed: $orig_mode != $mode"
52912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
52913 at_status=$? at_failed=false
52915 at_fn_diff_devnull "$at_stderr" || at_failed=:
52916 echo >>"$at_stdout"; $as_echo "CWD: OK
52920 $at_diff - "$at_stdout" || at_failed=:
52921 at_fn_check_status 0 $at_status "$at_srcdir/onetop05.at:28"
52922 $at_failed && at_fn_log_failure
52926 $as_echo "$at_srcdir/onetop05.at:28:
52929 TEST_TAR_FORMAT=gnu
52930 export TEST_TAR_FORMAT
52931 TAR_OPTIONS=\"-H gnu\"
52937 chmod \$orig_mode d
52939 mode=\$(genfile --stat=mode.7777 d)
52940 test \$mode = \$orig_mode || exit 77
52942 genfile --file d/file
52943 tar -cf d.tar -C d .
52949 tar --one-top-level=top -xpf ../d.tar)
52950 mode=\$(genfile --stat=mode.777 d1)
52951 if test 700 = \$mode; then
52954 echo \"CWD: mode changed: 700 != \$mode\"
52959 tar -C d2 --one-top-level=top -xpf d.tar
52960 mode=\$(genfile --stat=mode.777 d2)
52961 if test 700 = \$mode; then
52964 echo \"DIR: mode changed: 700 != \$mode\"
52966 mode=\$(genfile --stat=mode.7777 d2/top)
52967 if test \$mode = \$orig_mode; then
52970 echo \"TOP: mode changed: \$orig_mode != \$mode\"
52973 at_fn_check_prepare_notrace 'a $(...) command substitution' "onetop05.at:28"
52977 TEST_TAR_FORMAT=gnu
52978 export TEST_TAR_FORMAT
52979 TAR_OPTIONS="-H gnu"
52987 mode=$(genfile --stat=mode.7777 d)
52988 test $mode = $orig_mode || exit 77
52990 genfile --file d/file
52991 tar -cf d.tar -C d .
52997 tar --one-top-level=top -xpf ../d.tar)
52998 mode=$(genfile --stat=mode.777 d1)
52999 if test 700 = $mode; then
53002 echo "CWD: mode changed: 700 != $mode"
53007 tar -C d2 --one-top-level=top -xpf d.tar
53008 mode=$(genfile --stat=mode.777 d2)
53009 if test 700 = $mode; then
53012 echo "DIR: mode changed: 700 != $mode"
53014 mode=$(genfile --stat=mode.7777 d2/top)
53015 if test $mode = $orig_mode; then
53018 echo "TOP: mode changed: $orig_mode != $mode"
53021 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53022 at_status=$? at_failed=false
53024 at_fn_diff_devnull "$at_stderr" || at_failed=:
53025 echo >>"$at_stdout"; $as_echo "CWD: OK
53029 $at_diff - "$at_stdout" || at_failed=:
53030 at_fn_check_status 0 $at_status "$at_srcdir/onetop05.at:28"
53031 $at_failed && at_fn_log_failure
53038 $at_times_p && times >"$at_times_file"
53039 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53040 read at_status <"$at_status_file"
53043 at_fn_group_banner 199 'gtarfail.at:22' \
53047 $as_echo "199. $at_setup_line: testing $at_desc ..."
53055 $as_echo "$at_srcdir/gtarfail.at:27:
53057 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53058 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53061 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
53063 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail.at:27"
53066 test -z "$STAR_TESTSCRIPTS" && exit 77
53067 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53070 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
53072 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53073 at_status=$? at_failed=false
53075 at_fn_diff_devnull "$at_stderr" || at_failed=:
53076 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
53077 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
53078 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
53079 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
53080 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
53081 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
53083 $at_diff - "$at_stdout" || at_failed=:
53084 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail.at:27"
53085 $at_failed && at_fn_log_failure
53090 $at_times_p && times >"$at_times_file"
53091 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53092 read at_status <"$at_status_file"
53095 at_fn_group_banner 200 'gtarfail2.at:22' \
53099 $as_echo "200. $at_setup_line: testing $at_desc ..."
53107 $as_echo "$at_srcdir/gtarfail2.at:27:
53109 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53110 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53112 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
53114 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail2.at:27"
53117 test -z "$STAR_TESTSCRIPTS" && exit 77
53118 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53120 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
53122 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53123 at_status=$? at_failed=false
53125 at_fn_diff_devnull "$at_stderr" || at_failed=:
53126 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
53127 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
53128 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
53129 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
53130 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
53131 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
53132 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
53133 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
53134 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
53135 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
53137 $at_diff - "$at_stdout" || at_failed=:
53138 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail2.at:27"
53139 $at_failed && at_fn_log_failure
53144 $at_times_p && times >"$at_times_file"
53145 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53146 read at_status <"$at_status_file"
53149 at_fn_group_banner 201 'multi-fail.at:22' \
53150 "multi-fail" " " 27
53153 $as_echo "201. $at_setup_line: testing $at_desc ..."
53161 $as_echo "$at_srcdir/multi-fail.at:27:
53163 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53164 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53167 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53168 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53171 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
53172 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
53174 at_fn_check_prepare_notrace 'an embedded newline' "multi-fail.at:27"
53177 test -z "$STAR_TESTSCRIPTS" && exit 77
53178 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53181 test -z "$STAR_TESTSCRIPTS" && exit 77
53182 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53185 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
53186 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
53188 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53189 at_status=$? at_failed=false
53191 at_fn_diff_devnull "$at_stderr" || at_failed=:
53192 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
53193 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
53194 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
53195 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
53196 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
53197 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
53198 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
53199 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
53200 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
53201 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
53202 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
53203 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
53204 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
53205 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
53206 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
53207 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
53208 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
53209 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
53210 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
53211 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
53212 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
53213 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
53214 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
53215 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
53216 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
53217 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
53218 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
53219 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
53220 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
53221 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
53222 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
53223 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
53224 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
53225 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
53226 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
53227 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
53228 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
53229 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
53230 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
53231 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
53232 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
53233 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
53234 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
53235 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
53236 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
53237 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
53238 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
53239 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
53240 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
53241 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
53242 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
53243 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
53245 $at_diff - "$at_stdout" || at_failed=:
53246 at_fn_check_status 0 $at_status "$at_srcdir/multi-fail.at:27"
53247 $at_failed && at_fn_log_failure
53252 $at_times_p && times >"$at_times_file"
53253 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53254 read at_status <"$at_status_file"
53257 at_fn_group_banner 202 'ustar-big-2g.at:22' \
53258 "ustar-big-2g" " " 27
53261 $as_echo "202. $at_setup_line: testing $at_desc ..."
53269 $as_echo "$at_srcdir/ustar-big-2g.at:27:
53271 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53274 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53275 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53278 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
53280 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-2g.at:27"
53283 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53286 test -z "$STAR_TESTSCRIPTS" && exit 77
53287 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53290 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
53292 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53293 at_status=$? at_failed=false
53295 echo stderr:; tee stderr <"$at_stderr"
53296 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
53297 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
53299 $at_diff - "$at_stdout" || at_failed=:
53300 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:27"
53301 $at_failed && at_fn_log_failure
53306 cat >stderr.re <<'_ATEOF'
53307 tar: Record size = .*
53310 awk '{print NR " " $0}' stderr > $$.1
53311 awk '{print NR " " $0}' stderr.re | join - $$.1 |
53312 while read NUM RE LINE
53314 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
53319 $at_times_p && times >"$at_times_file"
53320 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53321 read at_status <"$at_status_file"
53324 at_fn_group_banner 203 'ustar-big-8g.at:22' \
53325 "ustar-big-8g" " " 27
53328 $as_echo "203. $at_setup_line: testing $at_desc ..."
53336 $as_echo "$at_srcdir/ustar-big-8g.at:27:
53338 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53341 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53342 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53345 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
53347 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-8g.at:27"
53350 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53353 test -z "$STAR_TESTSCRIPTS" && exit 77
53354 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53357 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
53359 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53360 at_status=$? at_failed=false
53362 echo stderr:; tee stderr <"$at_stderr"
53363 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
53364 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
53366 $at_diff - "$at_stdout" || at_failed=:
53367 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:27"
53368 $at_failed && at_fn_log_failure
53373 cat >stderr.re <<'_ATEOF'
53374 tar: Record size = .*
53377 awk '{print NR " " $0}' stderr > $$.1
53378 awk '{print NR " " $0}' stderr.re | join - $$.1 |
53379 while read NUM RE LINE
53381 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
53386 $at_times_p && times >"$at_times_file"
53387 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53388 read at_status <"$at_status_file"
53391 at_fn_group_banner 204 'pax-big-10g.at:22' \
53392 "pax-big-10g" " " 27
53395 $as_echo "204. $at_setup_line: testing $at_desc ..."
53403 $as_echo "$at_srcdir/pax-big-10g.at:27:
53405 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53408 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
53409 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
53412 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
53414 at_fn_check_prepare_notrace 'an embedded newline' "pax-big-10g.at:27"
53417 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
53420 test -z "$STAR_TESTSCRIPTS" && exit 77
53421 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
53424 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
53426 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
53427 at_status=$? at_failed=false
53429 echo stderr:; tee stderr <"$at_stderr"
53430 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
53431 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
53433 $at_diff - "$at_stdout" || at_failed=:
53434 at_fn_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:27"
53435 $at_failed && at_fn_log_failure
53440 cat >stderr.re <<'_ATEOF'
53441 tar: Record size = .*
53444 awk '{print NR " " $0}' stderr > $$.1
53445 awk '{print NR " " $0}' stderr.re | join - $$.1 |
53446 while read NUM RE LINE
53448 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
53453 $at_times_p && times >"$at_times_file"
53454 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
53455 read at_status <"$at_status_file"