2 # Generated from testsuite.at by GNU Autoconf 2.69.
4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in #(
34 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38 # Prefer a ksh shell builtin over an external printf program on Solaris,
39 # but without wasting forks for bash or zsh.
40 if test -z "$BASH_VERSION$ZSH_VERSION" \
41 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43 as_echo_n='print -rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50 as_echo_n='/usr/ucb/echo -n'
52 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 expr "X$arg" : "X\\(.*\\)$as_nl";
58 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
60 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 as_echo_n='sh -c $as_echo_n_body as_echo'
66 as_echo='sh -c $as_echo_body as_echo'
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
72 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # We need space, tab and new line, in precisely that order. Quoting is
81 # there to prevent editors from complaining about space-tab.
82 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
83 # splitting by setting IFS to empty value.)
86 # Find who we are. Look in the path if we contain no directory separator.
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 test -z "$as_dir" && as_dir=.
95 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 # We did not find ourselves, most probably we were run as `sh COMMAND'
102 # in which case we are not to be found in the path.
103 if test "x$as_myself" = x; then
106 if test ! -f "$as_myself"; then
107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 # Unset variables that we do not need and which cause bugs (e.g. in
112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
113 # suppresses any "Segmentation fault" message there. '((' could
114 # trigger a bug in pdksh 5.2.14.
115 for as_var in BASH_ENV ENV MAIL MAILPATH
116 do eval test x\${$as_var+set} = xset \
117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 if test "x$CONFIG_SHELL" = x; then
133 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
137 # is contrary to our usage. Disable this feature.
138 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 case \`(set -o) 2>/dev/null\` in #(
149 as_required="as_fn_return () { (exit \$1); }
150 as_fn_success () { as_fn_return 0; }
151 as_fn_failure () { as_fn_return 1; }
152 as_fn_ret_success () { return 0; }
153 as_fn_ret_failure () { return 1; }
156 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163 exitcode=1; echo positional parameters were not saved.
165 test x\$exitcode = x0 || exit 1
167 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
168 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
169 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
170 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
171 test \$(( 1 + 1 )) = 2 || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 test -z "$as_dir" && as_dir=.
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
210 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 # Preserve -v and -x to the replacement shell.
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 *v*x* | *x*v* ) as_opts=-vx ;;
225 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
226 # Admittedly, this is quite paranoid, since all the known shells bail
227 # out after a failed `exec'.
228 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332 # as_fn_executable_p FILE
333 # -----------------------
334 # Test if FILE is an executable regular file.
335 as_fn_executable_p ()
337 test -f "$1" && test -x "$1"
338 } # as_fn_executable_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
461 # already done that, so ensure we don't try to do so again and fall
462 # in an infinite loop. This has already happened in practice.
463 _as_can_reexec=no; export _as_can_reexec
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -pR'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
520 as_executable_p=as_fn_executable_p
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Not all shells have the 'times' builtin; the subshell is needed to make
539 # sure we discard the 'times: not found' message from the shell.
541 (times) >/dev/null 2>&1 && at_times_p=:
543 # CLI Arguments to pass to the debugging scripts.
547 # Shall we be verbose? ':' means no, empty means yes.
550 # Running several jobs in parallel, 0 means as many as test groups.
554 at_check_filter_trace=:
556 # Shall we keep the debug scripts? Must be `:' when the suite is
557 # run by a debug script, so that the script doesn't remove itself.
559 # Display help message?
561 # Display the version message?
569 # Whether to rerun failed tests.
571 # Whether a write failure occurred
574 # The directory we run the suite in. Default to . if no -C option.
576 # An absolute reference to this testsuite script.
578 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
579 * ) at_myself=$at_dir/$as_myself ;;
581 # Whether -C is in effect.
584 # Whether to enable colored test results.
586 # List of the tested programs.
588 # As many question marks as there are digits in the last test group number.
589 # Used to normalize the test group numbers so that `ls' lists them in
592 # Description of all the test groups.
593 at_help_all="1;version.at:19;tar version;;
594 2;pipe.at:29;decompressing from stdin;pipe;
595 3;options.at:24;mixing options;options options00;
596 4;options02.at:26;interspersed options;options options02;
597 5;opcomp01.at:21;occurrence compatibility;opcomp opcomp01;
598 6;opcomp02.at:21;occurrence compatibility;opcomp opcomp02;
599 7;opcomp03.at:21;--verify compatibility;opcomp opcomp03;
600 8;opcomp04.at:21;compress option compatibility;opcomp opcomp04;
601 9;opcomp05.at:21;--pax-option compatibility;opcomp opcomp05;
602 10;opcomp06.at:21;--pax-option compatibility;opcomp opcomp06;
603 11;T-mult.at:21;multiple file lists;files-from t-mult;
604 12;T-nest.at:21;nested file lists;files-from t-nest;
605 13;T-rec.at:21;recursive file lists;files-from t-rec;
606 14;T-cd.at:21;-C in file lists;files-from t-cd;
607 15;T-empty.at:26;empty entries;files-from empty-line;
608 16;T-null.at:21;0-separated file without -0;files-from null t-null;
609 17;T-zfile.at:26;empty file;files-from empty-file;
610 18;T-nonl.at:27;entries with missing newlines;files-from nonewline nonl t-nonl;
611 19;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
612 20;verbose.at:26;tar cvf -;stdout verbose;
613 21;gzip.at:24;gzip;gzip;
614 22;recurse.at:21;recurse;recurse;
615 23;recurs02.at:30;recurse: toggle;recurse options recurse02;
616 24;shortrec.at:25;short records;shortrec;
617 25;iotty.at:26;terminal input;options iotty;
618 26;same-order01.at:26;working -C with --same-order;same-order same-order01;
619 27;same-order02.at:25;multiple -C options;same-order same-order02;
620 28;append.at:21;append;append append00;
621 29;append01.at:29;appending files with long names;append append01;
622 30;append02.at:54;append vs. create;append append02 append-gnu;
623 31;append03.at:21;append with name transformation;append append03;
624 32;append04.at:29;append with verify;append append04 verify append-verify;
625 33;xform-h.at:30;transforming hard links on create;transform xform xform-h;
626 34;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
627 35;exclude.at:23;exclude;exclude;
628 36;exclude01.at:19;exclude wildcards;exclude exclude01;
629 37;exclude02.at:19;exclude: anchoring;exclude exclude02;
630 38;exclude03.at:19;exclude: wildcards match slash;exclude exclude03;
631 39;exclude04.at:19;exclude: case insensitive;exclude exclude04;
632 40;exclude05.at:21;exclude: lots of excludes;exclude exclude05;
633 41;exclude06.at:26;exclude: long files in pax archives;exclude exclude06;
634 42;exclude07.at:19;exclude: --exclude-backups option;exclude exclude07;
635 43;exclude08.at:36;--exclude-tag option;exclude exclude-tag exclude08;
636 44;exclude09.at:37;--exclude-tag option and --listed-incremental;exclude exclude-tag listed incremental exclude09;
637 45;exclude10.at:38;--exclude-tag option in incremental pass;exclude exclude-tag listed incremental exclude10;
638 46;exclude11.at:36;--exclude-tag-under option;exclude exclude-tag exclude-tag-under exclude11;
639 47;exclude12.at:37;--exclude-tag-under and --listed-incremental;exclude exclude-tag exclude-tag-under listed incremental exclude12;
640 48;exclude13.at:39;--exclude-tag-under option in incremental pass;exclude exclude-tag exclude-tag-under listed incremental exclude13;
641 49;exclude14.at:36;--exclude-tag-all option;exclude exclude-tag exclude-tag-all exclude14;
642 50;exclude15.at:36;--exclude-tag-all and --listed-incremental;exclude exclude-tag exclude-tag-all listed incremental exclude15;
643 51;exclude16.at:38;--exclude-tag-all option in incremental pass;exclude exclude-tag exclude-tag-all listed incremental exclude16;
644 52;delete01.at:23;deleting a member after a big one;delete delete01;
645 53;delete02.at:23;deleting a member from stdin archive;delete delete02;
646 54;delete03.at:21;deleting members with long names;delete delete03;
647 55;delete04.at:23;deleting a large last member;delete delete04;
648 56;delete05.at:27;deleting non-existing member;delete delete05;
649 57;extrac01.at:23;extract over an existing directory;extract extract01;
650 58;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
651 59;extrac03.at:23;extraction loops;extract extract03;
652 60;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
653 61;extrac05.at:30;extracting selected members from pax;extract extract05;
654 62;extrac06.at:34;mode of extracted directories;extract extract06 directory mode;
655 63;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
656 64;extrac08.at:33;restoring mode on existing directory;extract extrac08;
657 65;extrac09.at:34;extracting even when . and .. are unreadable;extract extrac09;
658 66;extrac10.at:29;-C and delayed setting of metadata;extract extrac10;
659 67;extrac11.at:25;scarce file descriptors;extract extrac11;
660 68;extrac12.at:25;extract dot permissions;extract extrac12;
661 69;extrac13.at:26;extract over symlinks;extract extrac13;
662 70;extrac14.at:25;extract -C symlink;extract extrac14;
663 71;extrac15.at:25;extract parent mkdir failure;extract extrac15;
664 72;extrac16.at:26;extract empty directory with -C;extract extrac16;
665 73;extrac17.at:21;name matching/transformation ordering;extract extrac17;
666 74;extrac18.at:34;keep-old-files;extract extrac18 old-files keep-old-files;
667 75;extrac19.at:21;skip-old-files;extract extrac19 old-files skip-old-files;
668 76;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
669 77;label01.at:21;single-volume label;label label01;
670 78;label02.at:21;multi-volume label;label label02 multi-label multivolume multiv;
671 79;label03.at:27;test-label option;label label03 test-label;
672 80;label04.at:27;label with non-create option;label label04;
673 81;label05.at:24;label with non-create option;label label05;
674 82;incremental.at:23;incremental;incremental listed incr00;
675 83;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
676 84;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
677 85;listed01.at:26;--listed for individual files;listed incremental listed01;
678 86;listed02.at:28;working --listed;listed incremental listed02;
679 87;listed03.at:24;incremental dump when the parent directory is unreadable;listed incremental listed03;
680 88;listed04.at:26;--listed-incremental and --one-file-system;listed incremental listed04;
681 89;listed05.at:33;--listed-incremental and remounted directories;listed incremental listed05;
682 90;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
683 91;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
684 92;incr05.at:21;incremental dumps with -C;incremental incr05;
685 93;incr06.at:21;incremental dumps of nested directories;incremental incr06;
686 94;incr07.at:18;incremental restores with -C;incremental extract incr07;
687 95;incr08.at:38;filename normalization;incremental create incr08;
688 96;incr09.at:26;incremental with alternating -C;incremental create incr09;
689 97;filerem01.at:36;file removed as we read it (ca. 22 seconds);create incremental listed filechange filerem filerem01;
690 98;filerem02.at:26;toplevel file removed (ca. 24 seconds);create incremental listed filechange filerem filerem02;
691 99;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
692 100;rename02.at:24;move between hierarchies;incremental rename rename02;
693 101;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
694 102;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
695 103;rename05.at:24;renamed subdirectories;incremental rename05 rename;
696 104;chtype.at:27;changed file types in incrementals;incremental listed chtype;
697 105;ignfail.at:23;ignfail;ignfail;
698 106;link01.at:33;link count gt 2;hardlinks link01;
699 107;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
700 108;link03.at:24;working -l with --remove-files;hardlinks link03;
701 109;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
702 110;longv7.at:24;long names in V7 archives;longname longv7;
703 111;long01.at:28;long file names divisible by block size;longname long512;
704 112;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
705 113;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
706 114;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
707 115;old.at:23;old archives;old;
708 116;time01.at:20;time: tricky time stamps;time time01;
709 117;multiv01.at:24;multivolume dumps from pipes;multivolume multiv multiv01;
710 118;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
711 119;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
712 120;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental listed multiv04;
713 121;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
714 122;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
715 123;multiv07.at:28;volumes split at an extended header;multivolume multiv multiv07 xsplit;
716 124;multiv08.at:25;multivolume header creation;multivolume multiv multiv08;
717 125;owner.at:21;--owner and --group;owner;
718 126;sparse01.at:21;sparse files;sparse sparse01;
719 127;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
720 128;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
721 129;sparse04.at:21;storing long sparse file names;sparse sparse04;
722 130;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
723 131;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
724 132;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
725 133;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
726 134;update.at:28;update unchanged directories;update update00;
727 135;update01.at:29;update directories;update update01;
728 136;update02.at:26;update changed files;update update02;
729 137;verify.at:25;verify;verify;
730 138;volume.at:23;volume;volume volcheck;
731 139;volsize.at:29;volume header size;volume volsize;
732 140;comprec.at:21;compressed format recognition;comprec;
733 141;shortfile.at:26;short input files;shortfile shortfile0;
734 142;shortupd.at:31;updating short archives;shortfile shortfile1 shortupd;
735 143;truncate.at:29;truncate;truncate filechange;
736 144;grow.at:24;grow;grow filechange;
737 145;sigpipe.at:21;sigpipe handling;sigpipe;
738 146;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
739 147;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
740 148;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
741 149;remfiles04a.at:25;remove-files with -C:rel in -c/non-incr. mode;create remove-files remfiles04 remfiles04a;
742 150;remfiles04b.at:33;remove-files with -C:rel in -c/incr. mode;create incremental remove-files remfiles04 remfiles04b;
743 151;remfiles04c.at:33;remove-files with -C:rel in -r mode;create append remove-files remfiles04 remfiles04c;
744 152;remfiles05a.at:34;remove-files with -C:rel,rel in -c/non-incr. mode;create remove-files remfiles05 remfiles05a;
745 153;remfiles05b.at:25;remove-files with -C:rel,rel in -c/incr. mode;create incremental remove-files remfiles05 remfiles05b;
746 154;remfiles05c.at:25;remove-files with -C:rel,rel in -r mode;create append remove-files remfiles05 remfiles05c;
747 155;remfiles06a.at:25;remove-files with -C:rel,abs in -c/non-incr. mode;create remove-files remfiles06 remfiles06a;
748 156;remfiles06b.at:25;remove-files with -C:rel,abs in -c/incr. mode;create incremental remove-files remfiles06 remfiles06b;
749 157;remfiles06c.at:25;remove-files with -C:rel,abs in -r mode;create append remove-files remfiles06 remfiles06c;
750 158;remfiles07a.at:25;remove-files with -C:abs,rel in -c/non-incr. mode;create remove-files remfiles07 remfiles07a;
751 159;remfiles07b.at:25;remove-files with -C:abs,rel in -c/incr. mode;create incremental remove-files remfiles07 remfiles07b;
752 160;remfiles07c.at:25;remove-files with -C:abs,rel in -r mode;create append remove-files remfiles07 remfiles07c;
753 161;remfiles08a.at:28;remove-files deleting two subdirs in -c/non-incr. mode;create remove-files remfiles08 remfiles08a;
754 162;remfiles08b.at:31;remove-files deleting two subdirs in -c/incr. mode;create incremental remove-files remfiles08 remfiles08b;
755 163;remfiles08c.at:28;remove-files deleting two subdirs in -r mode;create append remove-files remfiles08 remfiles08c;
756 164;remfiles09a.at:25;remove-files on full directory in -c/non-incr. mode;create remove-files remfiles09 remfiles09a;
757 165;remfiles09b.at:29;remove-files on full directory in -c/incr. mode;create incremental remove-files remfiles09 remfiles09b;
758 166;remfiles09c.at:25;remove-files on full directory in -r mode;create append remove-files remfiles09 remfiles09c;
759 167;remfiles10.at:20;remove-files;create remove-files remfiles10;
760 168;xattr01.at:25;xattrs: basic functionality;xattrs xattr01;
761 169;xattr02.at:25;xattrs: change directory with -C option;xattrs xattr02;
762 170;xattr03.at:25;xattrs: trusted.* attributes;xattrs xattr03;
763 171;xattr04.at:26;xattrs: s/open/openat/ regression;xattrs xattr04;
764 172;xattr05.at:28;xattrs: keywords with '=' and '%';xattrs xattr05;
765 173;acls01.at:25;acls: basic functionality;xattrs acls acls01;
766 174;acls02.at:25;acls: work with -C;xattrs acls acls02;
767 175;acls03.at:30;acls: default ACLs;xattrs acls acls03;
768 176;selnx01.at:25;selinux: basic store/restore;xattrs selinux selnx01;
769 177;selacl01.at:25;acls/selinux: special files & fifos;xattrs selinux acls selacls01;
770 178;capabs_raw01.at:25;capabilities: binary store/restore;xattrs capabilities capabs_raw01;
771 179;onetop01.at:21;tar --one-top-level;extract onetop onetop01;
772 180;onetop02.at:21;tar --one-top-level --show-transformed;extract onetop onetop02;
773 181;onetop03.at:21;tar --one-top-level --transform;extract onetop onetop02;
774 182;onetop04.at:21;tar --one-top-level --transform;extract onetop onetop02;
775 183;gtarfail.at:21;gtarfail;star gtarfail;
776 184;gtarfail2.at:21;gtarfail2;star gtarfail2;
777 185;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
778 186;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
779 187;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
780 188;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
782 # List of the all the test groups.
783 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
785 # at_fn_validate_ranges NAME...
786 # -----------------------------
787 # Validate and normalize the test group number contained in each variable
788 # NAME. Leading zeroes are treated as decimal.
789 at_fn_validate_ranges ()
793 eval at_value=\$$at_grp
794 if test $at_value -lt 1 || test $at_value -gt 188; then
795 $as_echo "invalid test group: $at_value" >&2
799 0*) # We want to treat leading 0 as decimal, like expr and test, but
800 # AS_VAR_ARITH treats it as octal if it uses $(( )).
801 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
802 # expr fork, but it is not worth the effort to determine if the
803 # shell supports XSI when the user can just avoid leading 0.
804 eval $at_grp='`expr $at_value + 0`' ;;
812 # If the previous option needs an argument, assign it.
813 if test -n "$at_prev"; then
814 at_option=$at_prev=$at_option
819 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
847 no | never | none) at_color=never ;;
848 auto | tty | if-tty) at_color=auto ;;
849 always | yes | force) at_color=always ;;
850 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
851 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
865 at_verbose=; at_quiet=:
871 at_check_filter_trace=at_fn_filter_trace
874 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
875 at_fn_validate_ranges at_option
876 as_fn_append at_groups "$at_option$as_nl"
880 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
881 at_range_start=`echo $at_option |tr -d X-`
882 at_fn_validate_ranges at_range_start
883 at_range=`$as_echo "$at_groups_all" | \
884 sed -ne '/^'$at_range_start'$/,$p'`
885 as_fn_append at_groups "$at_range$as_nl"
888 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
889 at_range_end=`echo $at_option |tr -d X-`
890 at_fn_validate_ranges at_range_end
891 at_range=`$as_echo "$at_groups_all" | \
892 sed -ne '1,/^'$at_range_end'$/p'`
893 as_fn_append at_groups "$at_range$as_nl"
896 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
897 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
898 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
899 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
900 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
901 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
902 at_range_start=`expr $at_option : '\(.*\)-'`
903 at_range_end=`expr $at_option : '.*-\(.*\)'`
904 if test $at_range_start -gt $at_range_end; then
906 at_range_end=$at_range_start
907 at_range_start=$at_tmp
909 at_fn_validate_ranges at_range_start at_range_end
910 at_range=`$as_echo "$at_groups_all" | \
911 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
912 as_fn_append at_groups "$at_range$as_nl"
915 # Directory selection.
922 if test x- = "x$at_dir" ; then
927 # Parallel execution.
931 --jobs=* | -j[0-9]* )
932 if test -n "$at_optarg"; then
935 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
937 case $at_jobs in *[!0-9]*)
938 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
939 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
948 at_groups_selected=$at_help_all
960 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
963 # It is on purpose that we match the test group titles too.
964 at_groups_selected=`$as_echo "$at_groups_selected" |
965 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
967 # Smash the keywords.
968 at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
969 as_fn_append at_groups "$at_groups_selected$as_nl"
976 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
977 # Reject names that are not valid shell variable names.
979 '' | [0-9]* | *[!_$as_cr_alnum]* )
980 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
982 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
983 # Export now, but save eval for later and for debug scripts.
985 as_fn_append at_debug_args " $at_envvar='$at_value'"
988 *) $as_echo "$as_me: invalid option: $at_option" >&2
989 $as_echo "Try \`$0 --help' for more information." >&2
995 # Verify our last option didn't require an argument
996 if test -n "$at_prev"; then :
997 as_fn_error $? "\`$at_prev' requires an argument"
1000 # The file containing the suite.
1001 at_suite_log=$at_dir/$as_me.log
1003 # Selected test groups.
1004 if test -z "$at_groups$at_recheck"; then
1005 at_groups=$at_groups_all
1007 if test -n "$at_recheck" && test -r "$at_suite_log"; then
1008 at_oldfails=`sed -n '
1009 /^Failed tests:$/,/^Skipped tests:$/{
1010 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1012 /^Unexpected passes:$/,/^## Detailed failed tests/{
1013 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1015 /^## Detailed failed tests/q
1017 as_fn_append at_groups "$at_oldfails$as_nl"
1019 # Sort the tests, removing duplicates.
1020 at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
1023 if test x"$at_color" = xalways \
1024 || { test x"$at_color" = xauto && test -t 1; }; then
1025 at_red=`printf '\033[0;31m'`
1026 at_grn=`printf '\033[0;32m'`
1027 at_lgn=`printf '\033[1;32m'`
1028 at_blu=`printf '\033[1;34m'`
1029 at_std=`printf '\033[m'`
1031 at_red= at_grn= at_lgn= at_blu= at_std=
1036 cat <<_ATEOF || at_write_fail=1
1037 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
1039 Run all the tests, or the selected TESTS, given by numeric ranges, and
1040 save a detailed log file. Upon failure, create debugging scripts.
1042 Do not change environment variables directly. Instead, set them via
1043 command line arguments. Set \`AUTOTEST_PATH' to select the executables
1044 to exercise. Each relative directory is expanded as build and source
1045 directories relative to the top level of this distribution.
1046 E.g., from within the build directory /tmp/foo-1.0, invoking this:
1048 $ $0 AUTOTEST_PATH=bin
1050 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1052 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1054 cat <<_ATEOF || at_write_fail=1
1057 -h, --help print the help message, then exit
1058 -V, --version print version number, then exit
1059 -c, --clean remove all the files this test suite might create and exit
1060 -l, --list describes all the tests, or the selected TESTS
1062 cat <<_ATEOF || at_write_fail=1
1066 change to directory DIR before starting
1067 --color[=never|auto|always]
1068 enable colored test results on terminal, or always
1070 Allow N jobs at once; infinite jobs with no arg (default 1)
1071 -k, --keywords=KEYWORDS
1072 select the tests matching all the comma-separated KEYWORDS
1073 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1074 --recheck select all tests that failed or passed unexpectedly last time
1075 -e, --errexit abort as soon as a test fails; implies --debug
1076 -v, --verbose force more detailed output
1077 default for debugging scripts
1078 -d, --debug inhibit clean up and top-level logging
1079 default for debugging scripts
1080 -x, --trace enable tests shell tracing
1082 cat <<_ATEOF || at_write_fail=1
1084 Report bugs to <bug-tar@gnu.org>.
1085 General help using GNU software: <http://www.gnu.org/gethelp/>.
1092 cat <<_ATEOF || at_write_fail=1
1093 GNU tar 1.28 test suite test groups:
1095 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1099 # Pass an empty line as separator between selected groups and help.
1100 $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
1101 awk 'NF == 1 && FS != ";" {
1107 if (selected[$ 1]) {
1108 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1114 n = split ($ 4, a, " ")
1115 for (i = 1; i <= n; i++) {
1116 l = length (a[i]) + 1
1117 if (i > 1 && len + l > lmax) {
1119 line = indent " " a[i]
1122 line = line " " a[i]
1130 }' || at_write_fail=1
1133 if $at_version_p; then
1134 $as_echo "$as_me (GNU tar 1.28)" &&
1135 cat <<\_ATEOF || at_write_fail=1
1137 Copyright (C) 2012 Free Software Foundation, Inc.
1138 This test suite is free software; the Free Software Foundation gives
1139 unlimited permission to copy, distribute and modify it.
1144 # Should we print banners? Yes if more than one test is run.
1145 case $at_groups in #(
1147 at_print_banners=: ;; #(
1148 * ) at_print_banners=false ;;
1150 # Text for banner N, set to a single space once printed.
1151 # Banner 1. testsuite.at:191
1152 # Category starts at test group 5.
1153 at_banner_text_1="Option compatibility"
1154 # Banner 2. testsuite.at:199
1155 # Category starts at test group 11.
1156 at_banner_text_2="The -T option"
1157 # Banner 3. testsuite.at:209
1158 # Category starts at test group 19.
1159 at_banner_text_3="Various options"
1160 # Banner 4. testsuite.at:218
1161 # Category starts at test group 26.
1162 at_banner_text_4="The --same-order option"
1163 # Banner 5. testsuite.at:222
1164 # Category starts at test group 28.
1165 at_banner_text_5="Append"
1166 # Banner 6. testsuite.at:229
1167 # Category starts at test group 33.
1168 at_banner_text_6="Transforms"
1169 # Banner 7. testsuite.at:233
1170 # Category starts at test group 35.
1171 at_banner_text_7="Exclude"
1172 # Banner 8. testsuite.at:252
1173 # Category starts at test group 52.
1174 at_banner_text_8="Deletions"
1175 # Banner 9. testsuite.at:259
1176 # Category starts at test group 57.
1177 at_banner_text_9="Extracting"
1178 # Banner 10. testsuite.at:281
1179 # Category starts at test group 77.
1180 at_banner_text_10="Volume label operations"
1181 # Banner 11. testsuite.at:288
1182 # Category starts at test group 82.
1183 at_banner_text_11="Incremental archives"
1184 # Banner 12. testsuite.at:305
1185 # Category starts at test group 97.
1186 at_banner_text_12="Files removed while archiving"
1187 # Banner 13. testsuite.at:309
1188 # Category starts at test group 99.
1189 at_banner_text_13="Renames"
1190 # Banner 14. testsuite.at:317
1191 # Category starts at test group 105.
1192 at_banner_text_14="Ignore failing reads"
1193 # Banner 15. testsuite.at:320
1194 # Category starts at test group 106.
1195 at_banner_text_15="Link handling"
1196 # Banner 16. testsuite.at:326
1197 # Category starts at test group 110.
1198 at_banner_text_16="Specific archive formats"
1199 # Banner 17. testsuite.at:336
1200 # Category starts at test group 117.
1201 at_banner_text_17="Multivolume archives"
1202 # Banner 18. testsuite.at:346
1203 # Category starts at test group 125.
1204 at_banner_text_18="Owner and Groups"
1205 # Banner 19. testsuite.at:349
1206 # Category starts at test group 126.
1207 at_banner_text_19="Sparse files"
1208 # Banner 20. testsuite.at:359
1209 # Category starts at test group 134.
1210 at_banner_text_20="Updates"
1211 # Banner 21. testsuite.at:364
1212 # Category starts at test group 137.
1213 at_banner_text_21="Verifying the archive"
1214 # Banner 22. testsuite.at:367
1215 # Category starts at test group 138.
1216 at_banner_text_22="Volume operations"
1217 # Banner 23. testsuite.at:371
1218 # Category starts at test group 140.
1219 at_banner_text_23=""
1220 # Banner 24. testsuite.at:380
1221 # Category starts at test group 146.
1222 at_banner_text_24="Removing files after archiving"
1223 # Banner 25. testsuite.at:404
1224 # Category starts at test group 168.
1225 at_banner_text_25="Extended attributes"
1226 # Banner 26. testsuite.at:420
1227 # Category starts at test group 179.
1228 at_banner_text_26="One top level"
1229 # Banner 27. testsuite.at:426
1230 # Category starts at test group 183.
1231 at_banner_text_27="Star tests"
1233 # Take any -C into account.
1234 if $at_change_dir ; then
1235 test x != "x$at_dir" && cd "$at_dir" \
1236 || as_fn_error $? "unable to change directory"
1240 # Load the config files for any default variable assignments.
1241 for at_file in atconfig atlocal
1243 test -r $at_file || continue
1244 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1247 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1248 : "${at_top_build_prefix=$at_top_builddir}"
1250 # Perform any assignments requested during argument parsing.
1251 eval "$at_debug_args"
1253 # atconfig delivers names relative to the directory the test suite is
1254 # in, but the groups themselves are run in testsuite-dir/group-dir.
1255 if test -n "$at_top_srcdir"; then
1257 for at_dir_var in srcdir top_srcdir top_build_prefix
1259 eval at_val=\$at_$at_dir_var
1261 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1262 *) at_prefix=../../ ;;
1264 eval "$at_dir_var=\$at_prefix\$at_val"
1268 ## -------------------- ##
1269 ## Directory structure. ##
1270 ## -------------------- ##
1272 # This is the set of directories and files used by this script
1273 # (non-literals are capitalized):
1275 # TESTSUITE - the testsuite
1276 # TESTSUITE.log - summarizes the complete testsuite run
1277 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1278 # + at-groups/ - during a run: status of all groups in run
1279 # | + NNN/ - during a run: meta-data about test group NNN
1280 # | | + check-line - location (source file and line) of current AT_CHECK
1281 # | | + status - exit status of current AT_CHECK
1282 # | | + stdout - stdout of current AT_CHECK
1283 # | | + stder1 - stderr, including trace
1284 # | | + stderr - stderr, with trace filtered out
1285 # | | + test-source - portion of testsuite that defines group
1286 # | | + times - timestamps for computing duration
1287 # | | + pass - created if group passed
1288 # | | + xpass - created if group xpassed
1289 # | | + fail - created if group failed
1290 # | | + xfail - created if group xfailed
1291 # | | + skip - created if group skipped
1292 # + at-stop - during a run: end the run if this file exists
1293 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1294 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1295 # | + TESTSUITE.log - summarizes the group results
1296 # | + ... - files created during the group
1298 # The directory the whole suite works in.
1299 # Should be absolute to let the user `cd' at will.
1300 at_suite_dir=$at_dir/$as_me.dir
1301 # The file containing the suite ($at_dir might have changed since earlier).
1302 at_suite_log=$at_dir/$as_me.log
1303 # The directory containing helper files per test group.
1304 at_helper_dir=$at_suite_dir/at-groups
1305 # Stop file: if it exists, do not start new jobs.
1306 at_stop_file=$at_suite_dir/at-stop
1307 # The fifo used for the job dispatcher.
1308 at_job_fifo=$at_suite_dir/at-job-fifo
1311 test -d "$at_suite_dir" &&
1312 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1313 rm -f -r "$at_suite_dir" "$at_suite_log"
1317 # Don't take risks: use only absolute directories in PATH.
1319 # For stand-alone test suites (ie. atconfig was not found),
1320 # AUTOTEST_PATH is relative to `.'.
1322 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1323 # of the package. Then expand it into build/src parts, since users
1324 # may create executables in both places.
1325 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328 for as_dir in $AUTOTEST_PATH $PATH
1331 test -z "$as_dir" && as_dir=.
1332 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1335 as_fn_append at_path "$as_dir"
1338 if test -z "$at_top_build_prefix"; then
1339 # Stand-alone test suite.
1340 as_fn_append at_path "$as_dir"
1342 # Embedded test suite.
1343 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1344 as_fn_append at_path "$at_top_srcdir/$as_dir"
1352 # Now build and simplify PATH.
1354 # There might be directories that don't exist, but don't redirect
1355 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 for as_dir in $at_path
1361 test -z "$as_dir" && as_dir=.
1362 test -d "$as_dir" || continue
1364 [\\/]* | ?:[\\/]* ) ;;
1365 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1367 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1368 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1369 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1370 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1378 # Setting up the FDs.
1382 # 5 is the log file. Not to be overwritten if `-d'.
1383 if $at_debug_p; then
1384 at_suite_log=/dev/null
1388 exec 5>>"$at_suite_log"
1391 $as_echo "## ------------------------ ##
1392 ## GNU tar 1.28 test suite. ##
1393 ## ------------------------ ##"
1395 $as_echo "## ------------------------ ##
1396 ## GNU tar 1.28 test suite. ##
1397 ## ------------------------ ##"
1400 $as_echo "$as_me: command line was:"
1401 $as_echo " \$ $0 $at_cli_args"
1404 # If ChangeLog exists, list a few lines in case it might help determining
1405 # the exact version.
1406 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1407 $as_echo "## ---------- ##
1411 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 $as_echo "PATH: $as_dir"
1452 # Contents of the config files.
1453 for at_file in atconfig atlocal
1455 test -r $at_file || continue
1456 $as_echo "$as_me: $at_file:"
1457 sed 's/^/| /' $at_file
1463 ## ------------------------- ##
1464 ## Autotest shell functions. ##
1465 ## ------------------------- ##
1467 # at_fn_banner NUMBER
1468 # -------------------
1469 # Output banner NUMBER, provided the testsuite is running multiple groups and
1470 # this particular banner has not yet been printed.
1473 $at_print_banners || return 0
1474 eval at_banner_text=\$at_banner_text_$1
1475 test "x$at_banner_text" = "x " && return 0
1476 eval "at_banner_text_$1=\" \""
1477 if test -z "$at_banner_text"; then
1480 $as_echo "$as_nl$at_banner_text$as_nl"
1484 # at_fn_check_prepare_notrace REASON LINE
1485 # ---------------------------------------
1486 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1487 # command; REASON is the reason for disabling tracing.
1488 at_fn_check_prepare_notrace ()
1490 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1491 $as_echo "$2" >"$at_check_line_file"
1492 at_check_trace=: at_check_filter=:
1493 : >"$at_stdout"; : >"$at_stderr"
1496 # at_fn_check_prepare_trace LINE
1497 # ------------------------------
1498 # Perform AT_CHECK preparations for the command at LINE for a traceable
1500 at_fn_check_prepare_trace ()
1502 $as_echo "$1" >"$at_check_line_file"
1503 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1504 : >"$at_stdout"; : >"$at_stderr"
1507 # at_fn_check_prepare_dynamic COMMAND LINE
1508 # ----------------------------------------
1509 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1510 # preparation function.
1511 at_fn_check_prepare_dynamic ()
1515 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1517 at_fn_check_prepare_trace "$2" ;;
1521 # at_fn_filter_trace
1522 # ------------------
1523 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1525 at_fn_filter_trace ()
1527 mv "$at_stderr" "$at_stder1"
1528 grep '^ *+' "$at_stder1" >&2
1529 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1532 # at_fn_log_failure FILE-LIST
1533 # ---------------------------
1534 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1535 # with a failure exit code.
1536 at_fn_log_failure ()
1539 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1540 echo 1 > "$at_status_file"
1544 # at_fn_check_skip EXIT-CODE LINE
1545 # -------------------------------
1546 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1547 # the test group subshell with that same exit code. Use LINE in any report
1548 # about test failure.
1552 99) echo 99 > "$at_status_file"; at_failed=:
1553 $as_echo "$2: hard failure"; exit 99;;
1554 77) echo 77 > "$at_status_file"; exit 77;;
1558 # at_fn_check_status EXPECTED EXIT-CODE LINE
1559 # ------------------------------------------
1560 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1561 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1562 # exit code; if it is anything else print an error message referring to LINE,
1563 # and fail the test.
1564 at_fn_check_status ()
1568 77) echo 77 > "$at_status_file"; exit 77;;
1569 99) echo 99 > "$at_status_file"; at_failed=:
1570 $as_echo "$3: hard failure"; exit 99;;
1571 *) $as_echo "$3: exit code was $2, expected $1"
1576 # at_fn_diff_devnull FILE
1577 # -----------------------
1578 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1580 at_fn_diff_devnull ()
1582 test -s "$1" || return 0
1583 $at_diff "$at_devnull" "$1"
1588 # Parse out test NUMBER from the tail of this file.
1591 eval at_sed=\$at_sed$1
1592 sed "$at_sed" "$at_myself" > "$at_test_source"
1595 # at_fn_create_debugging_script
1596 # -----------------------------
1597 # Create the debugging script $at_group_dir/run which will reproduce the
1598 # current test group.
1599 at_fn_create_debugging_script ()
1602 echo "#! /bin/sh" &&
1603 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1604 $as_echo "cd '$at_dir'" &&
1605 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1607 } >"$at_group_dir/run" &&
1608 chmod +x "$at_group_dir/run"
1611 ## -------------------------------- ##
1612 ## End of autotest shell functions. ##
1613 ## -------------------------------- ##
1615 $as_echo "## ---------------- ##
1616 ## Tested programs. ##
1617 ## ---------------- ##"
1621 # Report what programs are being tested.
1622 for at_program in : $at_tested
1624 test "$at_program" = : && continue
1626 [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 test -f "$as_dir/$at_program" && break
1637 at_program_=$as_dir/$at_program ;;
1639 if test -f "$at_program_"; then
1641 $as_echo "$at_srcdir/testsuite.at:180: $at_program_ --version"
1642 "$at_program_" --version </dev/null
1646 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1651 $as_echo "## ------------------ ##
1652 ## Running the tests. ##
1653 ## ------------------ ##"
1656 at_start_date=`date`
1657 at_start_time=`date +%s 2>/dev/null`
1658 $as_echo "$as_me: starting at: $at_start_date" >&5
1660 # Create the master directory if it doesn't already exist.
1661 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1662 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1664 # Can we diff with `/dev/null'? DU 5.0 refuses.
1665 if diff /dev/null /dev/null >/dev/null 2>&1; then
1666 at_devnull=/dev/null
1668 at_devnull=$at_suite_dir/devnull
1672 # Use `diff -u' when possible.
1673 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1680 # Get the last needed group.
1681 for at_group in : $at_groups; do :; done
1683 # Extract the start and end lines of each test group at the tail
1691 test = substr ($ 0, 10)
1692 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1693 if (test == "'"$at_group"'") exit
1694 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1695 . "$at_suite_dir/at-source-lines" ||
1696 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1697 rm -f "$at_suite_dir/at-source-lines"
1699 # Set number of jobs for `-j'; avoid more jobs than test groups.
1700 set X $at_groups; shift; at_max_jobs=$#
1701 if test $at_max_jobs -eq 0; then
1704 if test $at_jobs -ne 1 &&
1705 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1706 at_jobs=$at_max_jobs
1709 # If parallel mode, don't output banners, don't split summary lines.
1710 if test $at_jobs -ne 1; then
1711 at_print_banners=false
1715 # Set up helper dirs.
1716 rm -rf "$at_helper_dir" &&
1717 mkdir "$at_helper_dir" &&
1718 cd "$at_helper_dir" &&
1719 { test -z "$at_groups" || mkdir $at_groups; } ||
1720 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1722 # Functions for running a test group. We leave the actual
1723 # test group execution outside of a shell function in order
1724 # to avoid hitting zsh 4.x exit status bugs.
1726 # at_fn_group_prepare
1727 # -------------------
1728 # Prepare for running a test group.
1729 at_fn_group_prepare ()
1731 # The directory for additional per-group helper files.
1732 at_job_dir=$at_helper_dir/$at_group
1733 # The file containing the location of the last AT_CHECK.
1734 at_check_line_file=$at_job_dir/check-line
1735 # The file containing the exit status of the last command.
1736 at_status_file=$at_job_dir/status
1737 # The files containing the output of the tested commands.
1738 at_stdout=$at_job_dir/stdout
1739 at_stder1=$at_job_dir/stder1
1740 at_stderr=$at_job_dir/stderr
1741 # The file containing the code for a test group.
1742 at_test_source=$at_job_dir/test-source
1743 # The file containing dates.
1744 at_times_file=$at_job_dir/times
1746 # Be sure to come back to the top test directory.
1749 # Clearly separate the test groups when verbose.
1750 $at_first || $at_verbose echo
1752 at_group_normalized=$at_group
1755 case $at_group_normalized in #(
1756 '"$at_format"'*) break;;
1758 at_group_normalized=0$at_group_normalized
1762 # Create a fresh directory for the next test group, and enter.
1763 # If one already exists, the user may have invoked ./run from
1764 # within that directory; we remove the contents, but not the
1765 # directory itself, so that we aren't pulling the rug out from
1766 # under the shell's notion of the current directory.
1767 at_group_dir=$at_suite_dir/$at_group_normalized
1768 at_group_log=$at_group_dir/$as_me.log
1769 if test -d "$at_group_dir"; then
1770 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1771 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1774 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1775 # Be tolerant if the above `rm' was not able to remove the directory.
1776 as_dir="$at_group_dir"; as_fn_mkdir_p
1778 echo 0 > "$at_status_file"
1780 # In verbose mode, append to the log file *and* show on
1781 # the standard output; in quiet mode only write to the log.
1782 if test -z "$at_verbose"; then
1783 at_tee_pipe='tee -a "$at_group_log"'
1785 at_tee_pipe='cat >> "$at_group_log"'
1789 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1790 # -------------------------------------------------
1791 # Declare the test group ORDINAL, located at LINE with group description DESC,
1792 # and residing under BANNER. Use PAD to align the status column.
1793 at_fn_group_banner ()
1796 test -n "$5" && at_fn_banner $5
1799 [0-9]) at_desc_line=" $1: ";;
1800 [0-9][0-9]) at_desc_line=" $1: " ;;
1801 *) at_desc_line="$1: " ;;
1803 as_fn_append at_desc_line "$3$4"
1804 $at_quiet $as_echo_n "$at_desc_line"
1805 echo "# -*- compilation -*-" >> "$at_group_log"
1808 # at_fn_group_postprocess
1809 # -----------------------
1810 # Perform cleanup after running a test group.
1811 at_fn_group_postprocess ()
1813 # Be sure to come back to the suite directory, in particular
1814 # since below we might `rm' the group directory we are in currently.
1817 if test ! -f "$at_check_line_file"; then
1818 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1819 A failure happened in a test group before any test could be
1820 run. This means that test suite is improperly designed. Please
1821 report this failure to <bug-tar@gnu.org>.
1823 $as_echo "$at_setup_line" >"$at_check_line_file"
1826 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1827 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1828 case $at_xfail:$at_status in
1830 at_msg="UNEXPECTED PASS"
1832 at_errexit=$at_errexit_p
1842 at_msg='skipped ('`cat "$at_check_line_file"`')'
1848 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1850 at_errexit=$at_errexit_p
1854 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1860 echo "$at_res" > "$at_job_dir/$at_res"
1861 # In parallel mode, output the summary line only afterwards.
1862 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1863 $as_echo "$at_desc_line $at_color$at_msg$at_std"
1865 # Make sure there is a separator even with long titles.
1866 $as_echo " $at_color$at_msg$at_std"
1868 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1871 # $at_times_file is only available if the group succeeded.
1872 # We're not including the group log, so the success message
1873 # is written in the global log separately. But we also
1874 # write to the group log in case they're using -d.
1875 if test -f "$at_times_file"; then
1876 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1877 rm -f "$at_times_file"
1879 $as_echo "$at_log_msg" >> "$at_group_log"
1880 $as_echo "$at_log_msg" >&5
1882 # Cleanup the group directory, unless the user wants the files
1883 # or the success was unexpected.
1884 if $at_debug_p || test $at_res = xpass; then
1885 at_fn_create_debugging_script
1886 if test $at_res = xpass && $at_errexit; then
1887 echo stop > "$at_stop_file"
1890 if test -d "$at_group_dir"; then
1891 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1892 rm -fr "$at_group_dir"
1894 rm -f "$at_test_source"
1898 # Upon failure, include the log into the testsuite's global
1899 # log. The failure message is written in the group log. It
1900 # is later included in the global log.
1901 $as_echo "$at_log_msg" >> "$at_group_log"
1903 # Upon failure, keep the group directory for autopsy, and create
1904 # the debugging script. With -e, do not start any further tests.
1905 at_fn_create_debugging_script
1906 if $at_errexit; then
1907 echo stop > "$at_stop_file"
1919 if (set -m && set +m && set +b) >/dev/null 2>&1; then
1921 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1923 at_job_control_on=: at_job_control_off=: at_job_group=
1926 for at_signal in 1 2 15; do
1927 trap 'set +x; set +e
1929 at_signal='"$at_signal"'
1930 echo stop > "$at_stop_file"
1933 for at_pgid in `jobs -p 2>/dev/null`; do
1934 at_pgids="$at_pgids $at_job_group$at_pgid"
1936 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1938 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1941 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1943 test 0 -gt 2 && at_signame=$at_signal
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1945 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1946 as_fn_arith 128 + $at_signal && exit_status=$as_val
1947 as_fn_exit $exit_status' $at_signal
1950 rm -f "$at_stop_file"
1953 if test $at_jobs -ne 1 &&
1954 rm -f "$at_job_fifo" &&
1955 test -n "$at_job_group" &&
1956 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1958 # FIFO job dispatcher.
1961 for at_pid in `jobs -p`; do
1962 at_pids="$at_pids $at_job_group$at_pid"
1964 if test -n "$at_pids"; then
1966 test "${TMOUT+set}" = set && at_sig=STOP
1967 kill -$at_sig $at_pids 2>/dev/null
1970 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1973 # Turn jobs into a list of numbers, starting from 1.
1974 at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
1978 for at_group in $at_groups; do
1979 $at_job_control_on 2>/dev/null
1981 # Start one test group.
1984 exec 7>"$at_job_fifo"
1988 trap 'set +x; set +e
1990 echo stop > "$at_stop_file"
1992 as_fn_exit 141' PIPE
1994 if cd "$at_group_dir" &&
1995 at_fn_test $at_group &&
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1999 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2002 at_fn_group_postprocess
2008 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
2010 shift # Consume one token.
2011 if test $# -gt 0; then :; else
2012 read at_token <&6 || break
2015 test -f "$at_stop_file" && break
2018 # Read back the remaining ($at_jobs - 1) tokens.
2021 if test $# -gt 0; then
2031 # Run serially, avoid forks and other potential surprises.
2032 for at_group in $at_groups; do
2034 if cd "$at_group_dir" &&
2035 at_fn_test $at_group &&
2036 . "$at_test_source"; then :; else
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2038 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2041 at_fn_group_postprocess
2042 test -f "$at_stop_file" && break
2047 # Wrap up the test suite with summary statistics.
2050 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2051 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2052 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2053 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2054 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2055 echo $f; done | sed '/?/d; s,/xpass,,'`
2056 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2057 echo $f; done | sed '/?/d; s,/fail,,'`
2059 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2060 shift; at_group_count=$#
2061 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2062 set X $at_xfail_list; shift; at_xfail_count=$#
2063 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2064 set X $at_skip_list; shift; at_skip_count=$#
2066 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2067 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2068 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2070 # Back to the top directory.
2072 rm -rf "$at_helper_dir"
2074 # Compute the duration of the suite.
2076 at_stop_time=`date +%s 2>/dev/null`
2077 $as_echo "$as_me: ending at: $at_stop_date" >&5
2078 case $at_start_time,$at_stop_time in
2080 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2081 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2082 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2083 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2084 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2085 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2086 $as_echo "$as_me: test suite duration: $at_duration" >&5
2091 $as_echo "## ------------- ##
2093 ## ------------- ##"
2097 $as_echo "## ------------- ##
2099 ## ------------- ##"
2103 if test $at_run_count = 1; then
2107 at_result="$at_run_count tests"
2110 if $at_errexit_p && test $at_unexpected_count != 0; then
2111 if test $at_xpass_count = 1; then
2112 at_result="$at_result $at_were run, one passed"
2114 at_result="$at_result $at_were run, one failed"
2116 at_result="$at_result unexpectedly and inhibited subsequent tests."
2119 # Don't you just love exponential explosion of the number of cases?
2121 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2123 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2124 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2126 # Some unexpected failures
2127 0:*:0) at_result="$at_result $at_were run,
2128 $at_fail_count failed unexpectedly." ;;
2130 # Some failures, both expected and unexpected
2131 0:*:1) at_result="$at_result $at_were run,
2132 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2133 0:*:*) at_result="$at_result $at_were run,
2134 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2136 # No unexpected failures, but some xpasses
2137 *:0:*) at_result="$at_result $at_were run,
2138 $at_xpass_count passed unexpectedly." ;;
2140 # No expected failures, but failures and xpasses
2141 *:1:0) at_result="$at_result $at_were run,
2142 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2143 *:*:0) at_result="$at_result $at_were run,
2144 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2147 *:*:1) at_result="$at_result $at_were run,
2148 $at_xpass_count passed unexpectedly,
2149 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2150 *:*:*) at_result="$at_result $at_were run,
2151 $at_xpass_count passed unexpectedly,
2152 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2155 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2156 at_result="All $at_result"
2160 # Now put skips in the mix.
2161 case $at_skip_count in
2163 1) at_result="$at_result
2164 1 test was skipped." ;;
2165 *) at_result="$at_result
2166 $at_skip_count tests were skipped." ;;
2169 if test $at_unexpected_count = 0; then
2170 echo "$at_color$at_result$at_std"
2171 echo "$at_result" >&5
2173 echo "${at_color}ERROR: $at_result$at_std" >&2
2174 echo "ERROR: $at_result" >&5
2177 $as_echo "## ------------------------ ##
2178 ## Summary of the failures. ##
2179 ## ------------------------ ##"
2181 # Summary of failed and skipped tests.
2182 if test $at_fail_count != 0; then
2183 echo "Failed tests:"
2184 $SHELL "$at_myself" $at_fail_list --list
2187 if test $at_skip_count != 0; then
2188 echo "Skipped tests:"
2189 $SHELL "$at_myself" $at_skip_list --list
2192 if test $at_xpass_count != 0; then
2193 echo "Unexpected passes:"
2194 $SHELL "$at_myself" $at_xpass_list --list
2197 if test $at_fail_count != 0; then
2198 $as_echo "## ---------------------- ##
2199 ## Detailed failed tests. ##
2200 ## ---------------------- ##"
2202 for at_group in $at_fail_list
2204 at_group_normalized=$at_group
2207 case $at_group_normalized in #(
2208 '"$at_format"'*) break;;
2210 at_group_normalized=0$at_group_normalized
2213 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2218 if test -n "$at_top_srcdir"; then
2219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2220 ## ${at_top_build_prefix}config.log ##
2222 sed 's/^/| /' ${at_top_build_prefix}config.log
2227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2228 ## $as_me.log was created. ##
2232 if $at_debug_p; then
2233 at_msg='per-test log files'
2235 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2237 $as_echo "Please send $at_msg and all information you think might help:
2239 To: <bug-tar@gnu.org>
2240 Subject: [GNU tar 1.28] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
2242 You may investigate any problem if you feel able to do so, in which
2243 case the test suite provides a good starting point. Its output may
2244 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2255 at_fn_group_banner 1 'version.at:19' \
2259 $as_echo "1. $at_setup_line: testing $at_desc ..."
2264 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
2265 at_fn_check_prepare_notrace 'a shell pipeline' "version.at:21"
2266 ( $at_check_trace; tar --version | sed 1q
2267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2268 at_status=$? at_failed=false
2270 at_fn_diff_devnull "$at_stderr" || at_failed=:
2271 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.28
2273 $at_diff - "$at_stdout" || at_failed=:
2274 at_fn_check_status 0 $at_status "$at_srcdir/version.at:21"
2275 if $at_failed; then :
2276 cat >$XFAILFILE <<'_EOT'
2278 ==============================================================
2279 WARNING: Not using the proper version, *all* checks dubious...
2280 ==============================================================
2286 $at_failed && at_fn_log_failure
2291 $at_times_p && times >"$at_times_file"
2292 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2293 read at_status <"$at_status_file"
2296 at_fn_group_banner 2 'pipe.at:29' \
2297 "decompressing from stdin" " "
2299 test -f $XFAILFILE && at_xfail=yes
2301 $as_echo "2. $at_setup_line: testing $at_desc ..."
2310 $as_echo "$at_srcdir/pipe.at:33:
2314 export TEST_TAR_FORMAT
2315 TAR_OPTIONS=\"-H v7\"
2320 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2324 genfile --length 10240 --pattern zeros --file directory/file1
2325 genfile --length 13 --file directory/file2
2326 tar cf archive directory
2328 cat archive | tar xfv - --warning=no-timestamp | sort
2330 cmp orig/file1 directory/file1
2332 cmp orig/file2 directory/file2)"
2333 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2338 export TEST_TAR_FORMAT
2344 test -z "`sort < /dev/null 2>&1`" || exit 77
2348 genfile --length 10240 --pattern zeros --file directory/file1
2349 genfile --length 13 --file directory/file2
2350 tar cf archive directory
2352 cat archive | tar xfv - --warning=no-timestamp | sort
2354 cmp orig/file1 directory/file1
2356 cmp orig/file2 directory/file2)
2357 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2358 at_status=$? at_failed=false
2360 at_fn_diff_devnull "$at_stderr" || at_failed=:
2361 echo >>"$at_stdout"; $as_echo "directory/
2367 $at_diff - "$at_stdout" || at_failed=:
2368 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2369 $at_failed && at_fn_log_failure
2373 $as_echo "$at_srcdir/pipe.at:33:
2376 TEST_TAR_FORMAT=oldgnu
2377 export TEST_TAR_FORMAT
2378 TAR_OPTIONS=\"-H oldgnu\"
2383 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2387 genfile --length 10240 --pattern zeros --file directory/file1
2388 genfile --length 13 --file directory/file2
2389 tar cf archive directory
2391 cat archive | tar xfv - --warning=no-timestamp | sort
2393 cmp orig/file1 directory/file1
2395 cmp orig/file2 directory/file2)"
2396 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2400 TEST_TAR_FORMAT=oldgnu
2401 export TEST_TAR_FORMAT
2402 TAR_OPTIONS="-H oldgnu"
2407 test -z "`sort < /dev/null 2>&1`" || exit 77
2411 genfile --length 10240 --pattern zeros --file directory/file1
2412 genfile --length 13 --file directory/file2
2413 tar cf archive directory
2415 cat archive | tar xfv - --warning=no-timestamp | sort
2417 cmp orig/file1 directory/file1
2419 cmp orig/file2 directory/file2)
2420 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2421 at_status=$? at_failed=false
2423 at_fn_diff_devnull "$at_stderr" || at_failed=:
2424 echo >>"$at_stdout"; $as_echo "directory/
2430 $at_diff - "$at_stdout" || at_failed=:
2431 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2432 $at_failed && at_fn_log_failure
2436 $as_echo "$at_srcdir/pipe.at:33:
2439 TEST_TAR_FORMAT=ustar
2440 export TEST_TAR_FORMAT
2441 TAR_OPTIONS=\"-H ustar\"
2446 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2450 genfile --length 10240 --pattern zeros --file directory/file1
2451 genfile --length 13 --file directory/file2
2452 tar cf archive directory
2454 cat archive | tar xfv - --warning=no-timestamp | sort
2456 cmp orig/file1 directory/file1
2458 cmp orig/file2 directory/file2)"
2459 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2463 TEST_TAR_FORMAT=ustar
2464 export TEST_TAR_FORMAT
2465 TAR_OPTIONS="-H ustar"
2470 test -z "`sort < /dev/null 2>&1`" || exit 77
2474 genfile --length 10240 --pattern zeros --file directory/file1
2475 genfile --length 13 --file directory/file2
2476 tar cf archive directory
2478 cat archive | tar xfv - --warning=no-timestamp | sort
2480 cmp orig/file1 directory/file1
2482 cmp orig/file2 directory/file2)
2483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2484 at_status=$? at_failed=false
2486 at_fn_diff_devnull "$at_stderr" || at_failed=:
2487 echo >>"$at_stdout"; $as_echo "directory/
2493 $at_diff - "$at_stdout" || at_failed=:
2494 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2495 $at_failed && at_fn_log_failure
2499 $as_echo "$at_srcdir/pipe.at:33:
2502 TEST_TAR_FORMAT=posix
2503 export TEST_TAR_FORMAT
2504 TAR_OPTIONS=\"-H posix\"
2509 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2513 genfile --length 10240 --pattern zeros --file directory/file1
2514 genfile --length 13 --file directory/file2
2515 tar cf archive directory
2517 cat archive | tar xfv - --warning=no-timestamp | sort
2519 cmp orig/file1 directory/file1
2521 cmp orig/file2 directory/file2)"
2522 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2526 TEST_TAR_FORMAT=posix
2527 export TEST_TAR_FORMAT
2528 TAR_OPTIONS="-H posix"
2533 test -z "`sort < /dev/null 2>&1`" || exit 77
2537 genfile --length 10240 --pattern zeros --file directory/file1
2538 genfile --length 13 --file directory/file2
2539 tar cf archive directory
2541 cat archive | tar xfv - --warning=no-timestamp | sort
2543 cmp orig/file1 directory/file1
2545 cmp orig/file2 directory/file2)
2546 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2547 at_status=$? at_failed=false
2549 at_fn_diff_devnull "$at_stderr" || at_failed=:
2550 echo >>"$at_stdout"; $as_echo "directory/
2556 $at_diff - "$at_stdout" || at_failed=:
2557 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2558 $at_failed && at_fn_log_failure
2562 $as_echo "$at_srcdir/pipe.at:33:
2566 export TEST_TAR_FORMAT
2567 TAR_OPTIONS=\"-H gnu\"
2572 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
2576 genfile --length 10240 --pattern zeros --file directory/file1
2577 genfile --length 13 --file directory/file2
2578 tar cf archive directory
2580 cat archive | tar xfv - --warning=no-timestamp | sort
2582 cmp orig/file1 directory/file1
2584 cmp orig/file2 directory/file2)"
2585 at_fn_check_prepare_notrace 'a `...` command substitution' "pipe.at:33"
2590 export TEST_TAR_FORMAT
2591 TAR_OPTIONS="-H gnu"
2596 test -z "`sort < /dev/null 2>&1`" || exit 77
2600 genfile --length 10240 --pattern zeros --file directory/file1
2601 genfile --length 13 --file directory/file2
2602 tar cf archive directory
2604 cat archive | tar xfv - --warning=no-timestamp | sort
2606 cmp orig/file1 directory/file1
2608 cmp orig/file2 directory/file2)
2609 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2610 at_status=$? at_failed=false
2612 at_fn_diff_devnull "$at_stderr" || at_failed=:
2613 echo >>"$at_stdout"; $as_echo "directory/
2619 $at_diff - "$at_stdout" || at_failed=:
2620 at_fn_check_status 0 $at_status "$at_srcdir/pipe.at:33"
2621 $at_failed && at_fn_log_failure
2628 $at_times_p && times >"$at_times_file"
2629 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2630 read at_status <"$at_status_file"
2633 at_fn_group_banner 3 'options.at:24' \
2634 "mixing options" " "
2637 $as_echo "3. $at_setup_line: testing $at_desc ..."
2643 $as_echo "$at_srcdir/options.at:27:
2645 TAR_OPTIONS=--numeric-owner tar chof archive file1
2648 at_fn_check_prepare_notrace 'an embedded newline' "options.at:27"
2651 TAR_OPTIONS=--numeric-owner tar chof archive file1
2654 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2655 at_status=$? at_failed=false
2657 at_fn_diff_devnull "$at_stderr" || at_failed=:
2658 echo >>"$at_stdout"; $as_echo "file1
2660 $at_diff - "$at_stdout" || at_failed=:
2661 at_fn_check_status 0 $at_status "$at_srcdir/options.at:27"
2662 $at_failed && at_fn_log_failure
2667 $at_times_p && times >"$at_times_file"
2668 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2669 read at_status <"$at_status_file"
2672 at_fn_group_banner 4 'options02.at:26' \
2673 "interspersed options" " "
2676 $as_echo "4. $at_setup_line: testing $at_desc ..."
2682 $as_echo "$at_srcdir/options02.at:29:
2684 tar c file1 -f archive
2687 at_fn_check_prepare_notrace 'an embedded newline' "options02.at:29"
2690 tar c file1 -f archive
2693 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2694 at_status=$? at_failed=false
2696 at_fn_diff_devnull "$at_stderr" || at_failed=:
2697 echo >>"$at_stdout"; $as_echo "file1
2699 $at_diff - "$at_stdout" || at_failed=:
2700 at_fn_check_status 0 $at_status "$at_srcdir/options02.at:29"
2701 $at_failed && at_fn_log_failure
2706 $at_times_p && times >"$at_times_file"
2707 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2708 read at_status <"$at_status_file"
2711 at_fn_group_banner 5 'opcomp01.at:21' \
2712 "occurrence compatibility" " " 1
2715 $as_echo "5. $at_setup_line: testing $at_desc ..."
2721 $as_echo "$at_srcdir/opcomp01.at:24:
2722 tar --occurrence=1 -cf test.tar .
2724 at_fn_check_prepare_notrace 'an embedded newline' "opcomp01.at:24"
2726 tar --occurrence=1 -cf test.tar .
2728 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2729 at_status=$? at_failed=false
2731 echo >>"$at_stderr"; $as_echo "tar: '--occurrence' cannot be used with '-c'
2732 Try 'tar --help' or 'tar --usage' for more information.
2734 $at_diff - "$at_stderr" || at_failed=:
2735 at_fn_diff_devnull "$at_stdout" || at_failed=:
2736 at_fn_check_status 2 $at_status "$at_srcdir/opcomp01.at:24"
2737 $at_failed && at_fn_log_failure
2742 $at_times_p && times >"$at_times_file"
2743 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2744 read at_status <"$at_status_file"
2747 at_fn_group_banner 6 'opcomp02.at:21' \
2748 "occurrence compatibility" " " 1
2751 $as_echo "6. $at_setup_line: testing $at_desc ..."
2757 $as_echo "$at_srcdir/opcomp02.at:24:
2758 tar --occurrence=1 -tf test.tar
2760 at_fn_check_prepare_notrace 'an embedded newline' "opcomp02.at:24"
2762 tar --occurrence=1 -tf test.tar
2764 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2765 at_status=$? at_failed=false
2767 echo >>"$at_stderr"; $as_echo "tar: --occurrence is meaningless without a file list
2768 Try 'tar --help' or 'tar --usage' for more information.
2770 $at_diff - "$at_stderr" || at_failed=:
2771 at_fn_diff_devnull "$at_stdout" || at_failed=:
2772 at_fn_check_status 2 $at_status "$at_srcdir/opcomp02.at:24"
2773 $at_failed && at_fn_log_failure
2778 $at_times_p && times >"$at_times_file"
2779 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2780 read at_status <"$at_status_file"
2783 at_fn_group_banner 7 'opcomp03.at:21' \
2784 "--verify compatibility" " " 1
2787 $as_echo "7. $at_setup_line: testing $at_desc ..."
2793 $as_echo "$at_srcdir/opcomp03.at:24:
2796 at_fn_check_prepare_notrace 'an embedded newline' "opcomp03.at:24"
2800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2801 at_status=$? at_failed=false
2803 echo >>"$at_stderr"; $as_echo "tar: '--verify' cannot be used with '-t'
2804 Try 'tar --help' or 'tar --usage' for more information.
2806 $at_diff - "$at_stderr" || at_failed=:
2807 at_fn_diff_devnull "$at_stdout" || at_failed=:
2808 at_fn_check_status 2 $at_status "$at_srcdir/opcomp03.at:24"
2809 $at_failed && at_fn_log_failure
2814 $at_times_p && times >"$at_times_file"
2815 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2816 read at_status <"$at_status_file"
2819 at_fn_group_banner 8 'opcomp04.at:21' \
2820 "compress option compatibility" " " 1
2823 $as_echo "8. $at_setup_line: testing $at_desc ..."
2829 $as_echo "$at_srcdir/opcomp04.at:24:
2831 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2834 tar czf test.tar file
2835 genfile --file newfile
2836 tar rzf test.tar newfile
2838 at_fn_check_prepare_notrace 'an embedded newline' "opcomp04.at:24"
2841 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
2844 tar czf test.tar file
2845 genfile --file newfile
2846 tar rzf test.tar newfile
2848 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2849 at_status=$? at_failed=false
2851 echo >>"$at_stderr"; $as_echo "tar: Cannot update compressed archives
2852 Try 'tar --help' or 'tar --usage' for more information.
2854 $at_diff - "$at_stderr" || at_failed=:
2855 at_fn_diff_devnull "$at_stdout" || at_failed=:
2856 at_fn_check_status 2 $at_status "$at_srcdir/opcomp04.at:24"
2857 $at_failed && at_fn_log_failure
2862 $at_times_p && times >"$at_times_file"
2863 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2864 read at_status <"$at_status_file"
2867 at_fn_group_banner 9 'opcomp05.at:21' \
2868 "--pax-option compatibility" " " 1
2871 $as_echo "9. $at_setup_line: testing $at_desc ..."
2877 $as_echo "$at_srcdir/opcomp05.at:24:
2878 tar -Hgnu -cf test.tar --pax-option user:=root .
2880 at_fn_check_prepare_notrace 'an embedded newline' "opcomp05.at:24"
2882 tar -Hgnu -cf test.tar --pax-option user:=root .
2884 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2885 at_status=$? at_failed=false
2887 echo >>"$at_stderr"; $as_echo "tar: --pax-option can be used only on POSIX archives
2888 Try 'tar --help' or 'tar --usage' for more information.
2890 $at_diff - "$at_stderr" || at_failed=:
2891 at_fn_diff_devnull "$at_stdout" || at_failed=:
2892 at_fn_check_status 2 $at_status "$at_srcdir/opcomp05.at:24"
2893 $at_failed && at_fn_log_failure
2898 $at_times_p && times >"$at_times_file"
2899 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2900 read at_status <"$at_status_file"
2903 at_fn_group_banner 10 'opcomp06.at:21' \
2904 "--pax-option compatibility" " " 1
2907 $as_echo "10. $at_setup_line: testing $at_desc ..."
2913 $as_echo "$at_srcdir/opcomp06.at:24:
2916 file=\$(TMPDIR=. mktemp fiXXXXXX)
2918 setfacl -m u:\$UID:rwx \$file &> /dev/null
2919 if test \"\$?\" != 0; then
2924 getfacl \$file &> /dev/null
2925 if test \"\$?\" != 0; then
2931 file=\$(TMPDIR=. mktemp fiXXXXXX)
2932 setfacl -m u:\$UID:rwx \$file
2933 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
2934 if test \"\$err\" != \"0\"; then
2939 tar -cf test.tar --acls -Hgnu file
2941 at_fn_check_prepare_notrace 'a $(...) command substitution' "opcomp06.at:24"
2945 file=$(TMPDIR=. mktemp fiXXXXXX)
2947 setfacl -m u:$UID:rwx $file &> /dev/null
2948 if test "$?" != 0; then
2953 getfacl $file &> /dev/null
2954 if test "$?" != 0; then
2960 file=$(TMPDIR=. mktemp fiXXXXXX)
2961 setfacl -m u:$UID:rwx $file
2962 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
2963 if test "$err" != "0"; then
2968 tar -cf test.tar --acls -Hgnu file
2970 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2971 at_status=$? at_failed=false
2973 echo >>"$at_stderr"; $as_echo "tar: --acls can be used only on POSIX archives
2974 Try 'tar --help' or 'tar --usage' for more information.
2976 $at_diff - "$at_stderr" || at_failed=:
2977 at_fn_diff_devnull "$at_stdout" || at_failed=:
2978 at_fn_check_status 2 $at_status "$at_srcdir/opcomp06.at:24"
2979 $at_failed && at_fn_log_failure
2984 $at_times_p && times >"$at_times_file"
2985 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2986 read at_status <"$at_status_file"
2989 at_fn_group_banner 11 'T-mult.at:21' \
2990 "multiple file lists" " " 2
2992 test -f $XFAILFILE && at_xfail=yes
2994 $as_echo "11. $at_setup_line: testing $at_desc ..."
3002 $as_echo "$at_srcdir/T-mult.at:24:
3005 TEST_TAR_FORMAT=ustar
3006 export TEST_TAR_FORMAT
3007 TAR_OPTIONS=\"-H ustar\"
3025 tar cf archive -T F1 -T F2
3028 at_fn_check_prepare_notrace 'an embedded newline' "T-mult.at:24"
3032 TEST_TAR_FORMAT=ustar
3033 export TEST_TAR_FORMAT
3034 TAR_OPTIONS="-H ustar"
3052 tar cf archive -T F1 -T F2
3055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3056 at_status=$? at_failed=false
3058 at_fn_diff_devnull "$at_stderr" || at_failed=:
3059 echo >>"$at_stdout"; $as_echo "file1
3064 $at_diff - "$at_stdout" || at_failed=:
3065 at_fn_check_status 0 $at_status "$at_srcdir/T-mult.at:24"
3066 $at_failed && at_fn_log_failure
3073 $at_times_p && times >"$at_times_file"
3074 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3075 read at_status <"$at_status_file"
3078 at_fn_group_banner 12 'T-nest.at:21' \
3079 "nested file lists" " " 2
3081 test -f $XFAILFILE && at_xfail=yes
3083 $as_echo "12. $at_setup_line: testing $at_desc ..."
3091 $as_echo "$at_srcdir/T-nest.at:24:
3094 TEST_TAR_FORMAT=ustar
3095 export TEST_TAR_FORMAT
3096 TAR_OPTIONS=\"-H ustar\"
3115 tar cf archive -T F1
3118 at_fn_check_prepare_notrace 'an embedded newline' "T-nest.at:24"
3122 TEST_TAR_FORMAT=ustar
3123 export TEST_TAR_FORMAT
3124 TAR_OPTIONS="-H ustar"
3143 tar cf archive -T F1
3146 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3147 at_status=$? at_failed=false
3149 at_fn_diff_devnull "$at_stderr" || at_failed=:
3150 echo >>"$at_stdout"; $as_echo "file1
3155 $at_diff - "$at_stdout" || at_failed=:
3156 at_fn_check_status 0 $at_status "$at_srcdir/T-nest.at:24"
3157 $at_failed && at_fn_log_failure
3164 $at_times_p && times >"$at_times_file"
3165 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3166 read at_status <"$at_status_file"
3169 at_fn_group_banner 13 'T-rec.at:21' \
3170 "recursive file lists" " " 2
3172 test -f $XFAILFILE && at_xfail=yes
3174 $as_echo "13. $at_setup_line: testing $at_desc ..."
3182 $as_echo "$at_srcdir/T-rec.at:24:
3185 TEST_TAR_FORMAT=ustar
3186 export TEST_TAR_FORMAT
3187 TAR_OPTIONS=\"-H ustar\"
3203 tar cf archive -T F1
3207 at_fn_check_prepare_notrace 'an embedded newline' "T-rec.at:24"
3211 TEST_TAR_FORMAT=ustar
3212 export TEST_TAR_FORMAT
3213 TAR_OPTIONS="-H ustar"
3229 tar cf archive -T F1
3233 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3234 at_status=$? at_failed=false
3236 echo >>"$at_stderr"; $as_echo "tar: F1: file list requested from F2 already read from command line
3237 tar: Exiting with failure status due to previous errors
3239 $at_diff - "$at_stderr" || at_failed=:
3240 echo >>"$at_stdout"; $as_echo "2
3244 $at_diff - "$at_stdout" || at_failed=:
3245 at_fn_check_status 0 $at_status "$at_srcdir/T-rec.at:24"
3246 $at_failed && at_fn_log_failure
3253 $at_times_p && times >"$at_times_file"
3254 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3255 read at_status <"$at_status_file"
3258 at_fn_group_banner 14 'T-cd.at:21' \
3259 "-C in file lists" " " 2
3261 test -f $XFAILFILE && at_xfail=yes
3263 $as_echo "14. $at_setup_line: testing $at_desc ..."
3271 $as_echo "$at_srcdir/T-cd.at:24:
3274 TEST_TAR_FORMAT=ustar
3275 export TEST_TAR_FORMAT
3276 TAR_OPTIONS=\"-H ustar\"
3281 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
3293 tar cf archive -T F1
3294 tar tf archive | sort
3296 at_fn_check_prepare_notrace 'a `...` command substitution' "T-cd.at:24"
3300 TEST_TAR_FORMAT=ustar
3301 export TEST_TAR_FORMAT
3302 TAR_OPTIONS="-H ustar"
3307 test -z "`sort < /dev/null 2>&1`" || exit 77
3319 tar cf archive -T F1
3320 tar tf archive | sort
3322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3323 at_status=$? at_failed=false
3325 at_fn_diff_devnull "$at_stderr" || at_failed=:
3326 echo >>"$at_stdout"; $as_echo "./
3331 $at_diff - "$at_stdout" || at_failed=:
3332 at_fn_check_status 0 $at_status "$at_srcdir/T-cd.at:24"
3333 $at_failed && at_fn_log_failure
3340 $at_times_p && times >"$at_times_file"
3341 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3342 read at_status <"$at_status_file"
3345 at_fn_group_banner 15 'T-empty.at:26' \
3346 "empty entries" " " 2
3348 test -f $XFAILFILE && at_xfail=yes
3350 $as_echo "15. $at_setup_line: testing $at_desc ..."
3355 cat >file-list <<'_ATEOF'
3366 $as_echo "$at_srcdir/T-empty.at:36:
3369 TEST_TAR_FORMAT=ustar
3370 export TEST_TAR_FORMAT
3371 TAR_OPTIONS=\"-H ustar\"
3376 genfile --file jeden
3380 tar cfvT archive ../file-list
3382 at_fn_check_prepare_notrace 'an embedded newline' "T-empty.at:36"
3386 TEST_TAR_FORMAT=ustar
3387 export TEST_TAR_FORMAT
3388 TAR_OPTIONS="-H ustar"
3393 genfile --file jeden
3397 tar cfvT archive ../file-list
3399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3400 at_status=$? at_failed=false
3402 at_fn_diff_devnull "$at_stderr" || at_failed=:
3403 echo >>"$at_stdout"; $as_echo "jeden
3407 $at_diff - "$at_stdout" || at_failed=:
3408 at_fn_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
3409 $at_failed && at_fn_log_failure
3413 # Testing one format is enough
3416 $at_times_p && times >"$at_times_file"
3417 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3418 read at_status <"$at_status_file"
3421 at_fn_group_banner 16 'T-null.at:21' \
3422 "0-separated file without -0" " " 2
3424 test -f $XFAILFILE && at_xfail=yes
3426 $as_echo "16. $at_setup_line: testing $at_desc ..."
3434 $as_echo "$at_srcdir/T-null.at:24:
3437 TEST_TAR_FORMAT=ustar
3438 export TEST_TAR_FORMAT
3439 TAR_OPTIONS=\"-H ustar\"
3444 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
3450 cat temp | tr '\\n' '\\0' > file-list
3456 tar cfTv archive file-list
3458 at_fn_check_prepare_notrace 'a `...` command substitution' "T-null.at:24"
3462 TEST_TAR_FORMAT=ustar
3463 export TEST_TAR_FORMAT
3464 TAR_OPTIONS="-H ustar"
3469 test -z "`sort < /dev/null 2>&1`" || exit 77
3475 cat temp | tr '\n' '\0' > file-list
3481 tar cfTv archive file-list
3483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3484 at_status=$? at_failed=false
3486 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
3488 $at_diff - "$at_stderr" || at_failed=:
3489 echo >>"$at_stdout"; $as_echo "jeden
3493 $at_diff - "$at_stdout" || at_failed=:
3494 at_fn_check_status 0 $at_status "$at_srcdir/T-null.at:24"
3495 $at_failed && at_fn_log_failure
3499 # Testing one format is enough
3502 $at_times_p && times >"$at_times_file"
3503 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3504 read at_status <"$at_status_file"
3507 at_fn_group_banner 17 'T-zfile.at:26' \
3510 test -f $XFAILFILE && at_xfail=yes
3512 $as_echo "17. $at_setup_line: testing $at_desc ..."
3520 $as_echo "$at_srcdir/T-zfile.at:29:
3523 TEST_TAR_FORMAT=ustar
3524 export TEST_TAR_FORMAT
3525 TAR_OPTIONS=\"-H ustar\"
3529 genfile --length=0 --file empty
3532 cat >valid <<'_ATEOF'
3538 tar cf archive -T empty -T valid
3541 tar cf archive -T valid -T empty
3544 at_fn_check_prepare_notrace 'an embedded newline' "T-zfile.at:29"
3548 TEST_TAR_FORMAT=ustar
3549 export TEST_TAR_FORMAT
3550 TAR_OPTIONS="-H ustar"
3554 genfile --length=0 --file empty
3557 cat >valid <<'_ATEOF'
3563 tar cf archive -T empty -T valid
3566 tar cf archive -T valid -T empty
3569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3570 at_status=$? at_failed=false
3572 at_fn_diff_devnull "$at_stderr" || at_failed=:
3573 echo >>"$at_stdout"; $as_echo "a
3579 $at_diff - "$at_stdout" || at_failed=:
3580 at_fn_check_status 0 $at_status "$at_srcdir/T-zfile.at:29"
3581 $at_failed && at_fn_log_failure
3585 # Testing one format is enough
3588 $at_times_p && times >"$at_times_file"
3589 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3590 read at_status <"$at_status_file"
3593 at_fn_group_banner 18 'T-nonl.at:27' \
3594 "entries with missing newlines" " " 2
3596 test -f $XFAILFILE && at_xfail=yes
3598 $as_echo "18. $at_setup_line: testing $at_desc ..."
3606 $as_echo "$at_srcdir/T-nonl.at:30:
3609 TEST_TAR_FORMAT=ustar
3610 export TEST_TAR_FORMAT
3611 TAR_OPTIONS=\"-H ustar\"
3615 genfile --length=0 --file empty
3616 \$as_echo_n c > 1.nonl
3618 \$as_echo_n e >> 2.nonl
3620 cat >filelist <<'_ATEOF'
3626 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
3629 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
3632 at_fn_check_prepare_notrace 'an embedded newline' "T-nonl.at:30"
3636 TEST_TAR_FORMAT=ustar
3637 export TEST_TAR_FORMAT
3638 TAR_OPTIONS="-H ustar"
3642 genfile --length=0 --file empty
3643 $as_echo_n c > 1.nonl
3645 $as_echo_n e >> 2.nonl
3647 cat >filelist <<'_ATEOF'
3653 tar cf archive -T empty -T 1.nonl -T 2.nonl -T filelist
3656 tar cf archive -T 2.nonl -T empty -T filelist -T 1.nonl
3659 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3660 at_status=$? at_failed=false
3662 at_fn_diff_devnull "$at_stderr" || at_failed=:
3663 echo >>"$at_stdout"; $as_echo "c
3675 $at_diff - "$at_stdout" || at_failed=:
3676 at_fn_check_status 0 $at_status "$at_srcdir/T-nonl.at:30"
3677 $at_failed && at_fn_log_failure
3684 $at_times_p && times >"$at_times_file"
3685 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3686 read at_status <"$at_status_file"
3689 at_fn_group_banner 19 'indexfile.at:26' \
3690 "tar --index-file=FILE --file=-" " " 3
3692 test -f $XFAILFILE && at_xfail=yes
3694 $as_echo "19. $at_setup_line: testing $at_desc ..."
3702 $as_echo "$at_srcdir/indexfile.at:29:
3706 export TEST_TAR_FORMAT
3707 TAR_OPTIONS=\"-H v7\"
3713 genfile --file=directory/a --length=1035
3715 echo \"Creating the archive\"
3716 tar -c -v -f - --index-file=idx directory > archive
3718 echo \"Testing the archive\"
3721 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3726 export TEST_TAR_FORMAT
3733 genfile --file=directory/a --length=1035
3735 echo "Creating the archive"
3736 tar -c -v -f - --index-file=idx directory > archive
3738 echo "Testing the archive"
3741 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3742 at_status=$? at_failed=false
3744 at_fn_diff_devnull "$at_stderr" || at_failed=:
3745 echo >>"$at_stdout"; $as_echo "Creating the archive
3750 $at_diff - "$at_stdout" || at_failed=:
3751 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3752 $at_failed && at_fn_log_failure
3756 $as_echo "$at_srcdir/indexfile.at:29:
3759 TEST_TAR_FORMAT=oldgnu
3760 export TEST_TAR_FORMAT
3761 TAR_OPTIONS=\"-H oldgnu\"
3767 genfile --file=directory/a --length=1035
3769 echo \"Creating the archive\"
3770 tar -c -v -f - --index-file=idx directory > archive
3772 echo \"Testing the archive\"
3775 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3779 TEST_TAR_FORMAT=oldgnu
3780 export TEST_TAR_FORMAT
3781 TAR_OPTIONS="-H oldgnu"
3787 genfile --file=directory/a --length=1035
3789 echo "Creating the archive"
3790 tar -c -v -f - --index-file=idx directory > archive
3792 echo "Testing the archive"
3795 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3796 at_status=$? at_failed=false
3798 at_fn_diff_devnull "$at_stderr" || at_failed=:
3799 echo >>"$at_stdout"; $as_echo "Creating the archive
3804 $at_diff - "$at_stdout" || at_failed=:
3805 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3806 $at_failed && at_fn_log_failure
3810 $as_echo "$at_srcdir/indexfile.at:29:
3813 TEST_TAR_FORMAT=ustar
3814 export TEST_TAR_FORMAT
3815 TAR_OPTIONS=\"-H ustar\"
3821 genfile --file=directory/a --length=1035
3823 echo \"Creating the archive\"
3824 tar -c -v -f - --index-file=idx directory > archive
3826 echo \"Testing the archive\"
3829 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3833 TEST_TAR_FORMAT=ustar
3834 export TEST_TAR_FORMAT
3835 TAR_OPTIONS="-H ustar"
3841 genfile --file=directory/a --length=1035
3843 echo "Creating the archive"
3844 tar -c -v -f - --index-file=idx directory > archive
3846 echo "Testing the archive"
3849 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3850 at_status=$? at_failed=false
3852 at_fn_diff_devnull "$at_stderr" || at_failed=:
3853 echo >>"$at_stdout"; $as_echo "Creating the archive
3858 $at_diff - "$at_stdout" || at_failed=:
3859 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3860 $at_failed && at_fn_log_failure
3864 $as_echo "$at_srcdir/indexfile.at:29:
3867 TEST_TAR_FORMAT=posix
3868 export TEST_TAR_FORMAT
3869 TAR_OPTIONS=\"-H posix\"
3875 genfile --file=directory/a --length=1035
3877 echo \"Creating the archive\"
3878 tar -c -v -f - --index-file=idx directory > archive
3880 echo \"Testing the archive\"
3883 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3887 TEST_TAR_FORMAT=posix
3888 export TEST_TAR_FORMAT
3889 TAR_OPTIONS="-H posix"
3895 genfile --file=directory/a --length=1035
3897 echo "Creating the archive"
3898 tar -c -v -f - --index-file=idx directory > archive
3900 echo "Testing the archive"
3903 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3904 at_status=$? at_failed=false
3906 at_fn_diff_devnull "$at_stderr" || at_failed=:
3907 echo >>"$at_stdout"; $as_echo "Creating the archive
3912 $at_diff - "$at_stdout" || at_failed=:
3913 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3914 $at_failed && at_fn_log_failure
3918 $as_echo "$at_srcdir/indexfile.at:29:
3922 export TEST_TAR_FORMAT
3923 TAR_OPTIONS=\"-H gnu\"
3929 genfile --file=directory/a --length=1035
3931 echo \"Creating the archive\"
3932 tar -c -v -f - --index-file=idx directory > archive
3934 echo \"Testing the archive\"
3937 at_fn_check_prepare_notrace 'an embedded newline' "indexfile.at:29"
3942 export TEST_TAR_FORMAT
3943 TAR_OPTIONS="-H gnu"
3949 genfile --file=directory/a --length=1035
3951 echo "Creating the archive"
3952 tar -c -v -f - --index-file=idx directory > archive
3954 echo "Testing the archive"
3957 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3958 at_status=$? at_failed=false
3960 at_fn_diff_devnull "$at_stderr" || at_failed=:
3961 echo >>"$at_stdout"; $as_echo "Creating the archive
3966 $at_diff - "$at_stdout" || at_failed=:
3967 at_fn_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3968 $at_failed && at_fn_log_failure
3975 $at_times_p && times >"$at_times_file"
3976 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3977 read at_status <"$at_status_file"
3980 at_fn_group_banner 20 'verbose.at:26' \
3983 test -f $XFAILFILE && at_xfail=yes
3985 $as_echo "20. $at_setup_line: testing $at_desc ..."
3993 $as_echo "$at_srcdir/verbose.at:29:
3997 export TEST_TAR_FORMAT
3998 TAR_OPTIONS=\"-H v7\"
4002 genfile --file file --length 10240
4003 echo Creating the archive
4004 tar cvf - file > archive
4005 echo Testing the archive
4008 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4013 export TEST_TAR_FORMAT
4018 genfile --file file --length 10240
4019 echo Creating the archive
4020 tar cvf - file > archive
4021 echo Testing the archive
4024 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4025 at_status=$? at_failed=false
4027 echo >>"$at_stderr"; $as_echo "file
4029 $at_diff - "$at_stderr" || at_failed=:
4030 echo >>"$at_stdout"; $as_echo "Creating the archive
4034 $at_diff - "$at_stdout" || at_failed=:
4035 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4036 $at_failed && at_fn_log_failure
4040 $as_echo "$at_srcdir/verbose.at:29:
4043 TEST_TAR_FORMAT=oldgnu
4044 export TEST_TAR_FORMAT
4045 TAR_OPTIONS=\"-H oldgnu\"
4049 genfile --file file --length 10240
4050 echo Creating the archive
4051 tar cvf - file > archive
4052 echo Testing the archive
4055 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4059 TEST_TAR_FORMAT=oldgnu
4060 export TEST_TAR_FORMAT
4061 TAR_OPTIONS="-H oldgnu"
4065 genfile --file file --length 10240
4066 echo Creating the archive
4067 tar cvf - file > archive
4068 echo Testing the archive
4071 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4072 at_status=$? at_failed=false
4074 echo >>"$at_stderr"; $as_echo "file
4076 $at_diff - "$at_stderr" || at_failed=:
4077 echo >>"$at_stdout"; $as_echo "Creating the archive
4081 $at_diff - "$at_stdout" || at_failed=:
4082 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4083 $at_failed && at_fn_log_failure
4087 $as_echo "$at_srcdir/verbose.at:29:
4090 TEST_TAR_FORMAT=ustar
4091 export TEST_TAR_FORMAT
4092 TAR_OPTIONS=\"-H ustar\"
4096 genfile --file file --length 10240
4097 echo Creating the archive
4098 tar cvf - file > archive
4099 echo Testing the archive
4102 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4106 TEST_TAR_FORMAT=ustar
4107 export TEST_TAR_FORMAT
4108 TAR_OPTIONS="-H ustar"
4112 genfile --file file --length 10240
4113 echo Creating the archive
4114 tar cvf - file > archive
4115 echo Testing the archive
4118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4119 at_status=$? at_failed=false
4121 echo >>"$at_stderr"; $as_echo "file
4123 $at_diff - "$at_stderr" || at_failed=:
4124 echo >>"$at_stdout"; $as_echo "Creating the archive
4128 $at_diff - "$at_stdout" || at_failed=:
4129 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4130 $at_failed && at_fn_log_failure
4134 $as_echo "$at_srcdir/verbose.at:29:
4137 TEST_TAR_FORMAT=posix
4138 export TEST_TAR_FORMAT
4139 TAR_OPTIONS=\"-H posix\"
4143 genfile --file file --length 10240
4144 echo Creating the archive
4145 tar cvf - file > archive
4146 echo Testing the archive
4149 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4153 TEST_TAR_FORMAT=posix
4154 export TEST_TAR_FORMAT
4155 TAR_OPTIONS="-H posix"
4159 genfile --file file --length 10240
4160 echo Creating the archive
4161 tar cvf - file > archive
4162 echo Testing the archive
4165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4166 at_status=$? at_failed=false
4168 echo >>"$at_stderr"; $as_echo "file
4170 $at_diff - "$at_stderr" || at_failed=:
4171 echo >>"$at_stdout"; $as_echo "Creating the archive
4175 $at_diff - "$at_stdout" || at_failed=:
4176 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4177 $at_failed && at_fn_log_failure
4181 $as_echo "$at_srcdir/verbose.at:29:
4185 export TEST_TAR_FORMAT
4186 TAR_OPTIONS=\"-H gnu\"
4190 genfile --file file --length 10240
4191 echo Creating the archive
4192 tar cvf - file > archive
4193 echo Testing the archive
4196 at_fn_check_prepare_notrace 'an embedded newline' "verbose.at:29"
4201 export TEST_TAR_FORMAT
4202 TAR_OPTIONS="-H gnu"
4206 genfile --file file --length 10240
4207 echo Creating the archive
4208 tar cvf - file > archive
4209 echo Testing the archive
4212 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4213 at_status=$? at_failed=false
4215 echo >>"$at_stderr"; $as_echo "file
4217 $at_diff - "$at_stderr" || at_failed=:
4218 echo >>"$at_stdout"; $as_echo "Creating the archive
4222 $at_diff - "$at_stdout" || at_failed=:
4223 at_fn_check_status 0 $at_status "$at_srcdir/verbose.at:29"
4224 $at_failed && at_fn_log_failure
4231 $at_times_p && times >"$at_times_file"
4232 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4233 read at_status <"$at_status_file"
4236 at_fn_group_banner 21 'gzip.at:24' \
4240 $as_echo "21. $at_setup_line: testing $at_desc ..."
4248 $as_echo "$at_srcdir/gzip.at:29:
4250 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
4252 tar xfvz /dev/null 2>err
4254 sed -n '/^tar:/p' err >&2
4257 at_fn_check_prepare_notrace 'an embedded newline' "gzip.at:29"
4260 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
4262 tar xfvz /dev/null 2>err
4264 sed -n '/^tar:/p' err >&2
4267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4268 at_status=$? at_failed=false
4270 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
4271 tar: Error is not recoverable: exiting now
4273 $at_diff - "$at_stderr" || at_failed=:
4274 at_fn_diff_devnull "$at_stdout" || at_failed=:
4275 at_fn_check_status 2 $at_status "$at_srcdir/gzip.at:29"
4276 $at_failed && at_fn_log_failure
4281 $at_times_p && times >"$at_times_file"
4282 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4283 read at_status <"$at_status_file"
4286 at_fn_group_banner 22 'recurse.at:21' \
4289 test -f $XFAILFILE && at_xfail=yes
4291 $as_echo "22. $at_setup_line: testing $at_desc ..."
4299 $as_echo "$at_srcdir/recurse.at:24:
4303 export TEST_TAR_FORMAT
4304 TAR_OPTIONS=\"-H v7\"
4309 touch directory/file
4310 tar --create --file archive --no-recursion directory || exit 1
4313 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4318 export TEST_TAR_FORMAT
4324 touch directory/file
4325 tar --create --file archive --no-recursion directory || exit 1
4328 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4329 at_status=$? at_failed=false
4331 at_fn_diff_devnull "$at_stderr" || at_failed=:
4332 echo >>"$at_stdout"; $as_echo "directory/
4334 $at_diff - "$at_stdout" || at_failed=:
4335 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4336 $at_failed && at_fn_log_failure
4340 $as_echo "$at_srcdir/recurse.at:24:
4343 TEST_TAR_FORMAT=oldgnu
4344 export TEST_TAR_FORMAT
4345 TAR_OPTIONS=\"-H oldgnu\"
4350 touch directory/file
4351 tar --create --file archive --no-recursion directory || exit 1
4354 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4358 TEST_TAR_FORMAT=oldgnu
4359 export TEST_TAR_FORMAT
4360 TAR_OPTIONS="-H oldgnu"
4365 touch directory/file
4366 tar --create --file archive --no-recursion directory || exit 1
4369 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4370 at_status=$? at_failed=false
4372 at_fn_diff_devnull "$at_stderr" || at_failed=:
4373 echo >>"$at_stdout"; $as_echo "directory/
4375 $at_diff - "$at_stdout" || at_failed=:
4376 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4377 $at_failed && at_fn_log_failure
4381 $as_echo "$at_srcdir/recurse.at:24:
4384 TEST_TAR_FORMAT=ustar
4385 export TEST_TAR_FORMAT
4386 TAR_OPTIONS=\"-H ustar\"
4391 touch directory/file
4392 tar --create --file archive --no-recursion directory || exit 1
4395 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4399 TEST_TAR_FORMAT=ustar
4400 export TEST_TAR_FORMAT
4401 TAR_OPTIONS="-H ustar"
4406 touch directory/file
4407 tar --create --file archive --no-recursion directory || exit 1
4410 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4411 at_status=$? at_failed=false
4413 at_fn_diff_devnull "$at_stderr" || at_failed=:
4414 echo >>"$at_stdout"; $as_echo "directory/
4416 $at_diff - "$at_stdout" || at_failed=:
4417 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4418 $at_failed && at_fn_log_failure
4422 $as_echo "$at_srcdir/recurse.at:24:
4425 TEST_TAR_FORMAT=posix
4426 export TEST_TAR_FORMAT
4427 TAR_OPTIONS=\"-H posix\"
4432 touch directory/file
4433 tar --create --file archive --no-recursion directory || exit 1
4436 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4440 TEST_TAR_FORMAT=posix
4441 export TEST_TAR_FORMAT
4442 TAR_OPTIONS="-H posix"
4447 touch directory/file
4448 tar --create --file archive --no-recursion directory || exit 1
4451 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4452 at_status=$? at_failed=false
4454 at_fn_diff_devnull "$at_stderr" || at_failed=:
4455 echo >>"$at_stdout"; $as_echo "directory/
4457 $at_diff - "$at_stdout" || at_failed=:
4458 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4459 $at_failed && at_fn_log_failure
4463 $as_echo "$at_srcdir/recurse.at:24:
4467 export TEST_TAR_FORMAT
4468 TAR_OPTIONS=\"-H gnu\"
4473 touch directory/file
4474 tar --create --file archive --no-recursion directory || exit 1
4477 at_fn_check_prepare_notrace 'an embedded newline' "recurse.at:24"
4482 export TEST_TAR_FORMAT
4483 TAR_OPTIONS="-H gnu"
4488 touch directory/file
4489 tar --create --file archive --no-recursion directory || exit 1
4492 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4493 at_status=$? at_failed=false
4495 at_fn_diff_devnull "$at_stderr" || at_failed=:
4496 echo >>"$at_stdout"; $as_echo "directory/
4498 $at_diff - "$at_stdout" || at_failed=:
4499 at_fn_check_status 0 $at_status "$at_srcdir/recurse.at:24"
4500 $at_failed && at_fn_log_failure
4507 $at_times_p && times >"$at_times_file"
4508 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4509 read at_status <"$at_status_file"
4512 at_fn_group_banner 23 'recurs02.at:30' \
4513 "recurse: toggle" " " 3
4515 test -f $XFAILFILE && at_xfail=yes
4517 $as_echo "23. $at_setup_line: testing $at_desc ..."
4525 $as_echo "$at_srcdir/recurs02.at:33:
4529 export TEST_TAR_FORMAT
4530 TAR_OPTIONS=\"-H v7\"
4534 mkdir directory1 directory2
4535 touch directory1/file directory2/file
4536 tar --create --file archive \\
4537 --no-recursion directory1 \\
4538 --recursion directory2 || exit 1
4541 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
4546 export TEST_TAR_FORMAT
4551 mkdir directory1 directory2
4552 touch directory1/file directory2/file
4553 tar --create --file archive \
4554 --no-recursion directory1 \
4555 --recursion directory2 || exit 1
4558 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4559 at_status=$? at_failed=false
4561 at_fn_diff_devnull "$at_stderr" || at_failed=:
4562 echo >>"$at_stdout"; $as_echo "directory1/
4566 $at_diff - "$at_stdout" || at_failed=:
4567 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
4568 $at_failed && at_fn_log_failure
4572 $as_echo "$at_srcdir/recurs02.at:33:
4575 TEST_TAR_FORMAT=oldgnu
4576 export TEST_TAR_FORMAT
4577 TAR_OPTIONS=\"-H oldgnu\"
4581 mkdir directory1 directory2
4582 touch directory1/file directory2/file
4583 tar --create --file archive \\
4584 --no-recursion directory1 \\
4585 --recursion directory2 || exit 1
4588 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
4592 TEST_TAR_FORMAT=oldgnu
4593 export TEST_TAR_FORMAT
4594 TAR_OPTIONS="-H oldgnu"
4598 mkdir directory1 directory2
4599 touch directory1/file directory2/file
4600 tar --create --file archive \
4601 --no-recursion directory1 \
4602 --recursion directory2 || exit 1
4605 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4606 at_status=$? at_failed=false
4608 at_fn_diff_devnull "$at_stderr" || at_failed=:
4609 echo >>"$at_stdout"; $as_echo "directory1/
4613 $at_diff - "$at_stdout" || at_failed=:
4614 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
4615 $at_failed && at_fn_log_failure
4619 $as_echo "$at_srcdir/recurs02.at:33:
4622 TEST_TAR_FORMAT=ustar
4623 export TEST_TAR_FORMAT
4624 TAR_OPTIONS=\"-H ustar\"
4628 mkdir directory1 directory2
4629 touch directory1/file directory2/file
4630 tar --create --file archive \\
4631 --no-recursion directory1 \\
4632 --recursion directory2 || exit 1
4635 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
4639 TEST_TAR_FORMAT=ustar
4640 export TEST_TAR_FORMAT
4641 TAR_OPTIONS="-H ustar"
4645 mkdir directory1 directory2
4646 touch directory1/file directory2/file
4647 tar --create --file archive \
4648 --no-recursion directory1 \
4649 --recursion directory2 || exit 1
4652 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4653 at_status=$? at_failed=false
4655 at_fn_diff_devnull "$at_stderr" || at_failed=:
4656 echo >>"$at_stdout"; $as_echo "directory1/
4660 $at_diff - "$at_stdout" || at_failed=:
4661 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
4662 $at_failed && at_fn_log_failure
4666 $as_echo "$at_srcdir/recurs02.at:33:
4669 TEST_TAR_FORMAT=posix
4670 export TEST_TAR_FORMAT
4671 TAR_OPTIONS=\"-H posix\"
4675 mkdir directory1 directory2
4676 touch directory1/file directory2/file
4677 tar --create --file archive \\
4678 --no-recursion directory1 \\
4679 --recursion directory2 || exit 1
4682 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
4686 TEST_TAR_FORMAT=posix
4687 export TEST_TAR_FORMAT
4688 TAR_OPTIONS="-H posix"
4692 mkdir directory1 directory2
4693 touch directory1/file directory2/file
4694 tar --create --file archive \
4695 --no-recursion directory1 \
4696 --recursion directory2 || exit 1
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 "directory1/
4707 $at_diff - "$at_stdout" || at_failed=:
4708 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
4709 $at_failed && at_fn_log_failure
4713 $as_echo "$at_srcdir/recurs02.at:33:
4717 export TEST_TAR_FORMAT
4718 TAR_OPTIONS=\"-H gnu\"
4722 mkdir directory1 directory2
4723 touch directory1/file directory2/file
4724 tar --create --file archive \\
4725 --no-recursion directory1 \\
4726 --recursion directory2 || exit 1
4729 at_fn_check_prepare_notrace 'an embedded newline' "recurs02.at:33"
4734 export TEST_TAR_FORMAT
4735 TAR_OPTIONS="-H gnu"
4739 mkdir directory1 directory2
4740 touch directory1/file directory2/file
4741 tar --create --file archive \
4742 --no-recursion directory1 \
4743 --recursion directory2 || exit 1
4746 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4747 at_status=$? at_failed=false
4749 at_fn_diff_devnull "$at_stderr" || at_failed=:
4750 echo >>"$at_stdout"; $as_echo "directory1/
4754 $at_diff - "$at_stdout" || at_failed=:
4755 at_fn_check_status 0 $at_status "$at_srcdir/recurs02.at:33"
4756 $at_failed && at_fn_log_failure
4763 $at_times_p && times >"$at_times_file"
4764 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4765 read at_status <"$at_status_file"
4768 at_fn_group_banner 24 'shortrec.at:25' \
4769 "short records" " " 3
4771 test -f $XFAILFILE && at_xfail=yes
4773 $as_echo "24. $at_setup_line: testing $at_desc ..."
4781 $as_echo "$at_srcdir/shortrec.at:28:
4785 export TEST_TAR_FORMAT
4786 TAR_OPTIONS=\"-H v7\"
4791 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4792 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4793 tar -c -b 1 -f archive directory
4794 tar -t -f archive > /dev/null
4795 tar -t -f - < archive > /dev/null
4799 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4804 export TEST_TAR_FORMAT
4810 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4811 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4812 tar -c -b 1 -f archive directory
4813 tar -t -f archive > /dev/null
4814 tar -t -f - < archive > /dev/null
4818 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4819 at_status=$? at_failed=false
4821 at_fn_diff_devnull "$at_stderr" || at_failed=:
4822 at_fn_diff_devnull "$at_stdout" || at_failed=:
4823 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4824 $at_failed && at_fn_log_failure
4828 $as_echo "$at_srcdir/shortrec.at:28:
4831 TEST_TAR_FORMAT=oldgnu
4832 export TEST_TAR_FORMAT
4833 TAR_OPTIONS=\"-H oldgnu\"
4838 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4839 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4840 tar -c -b 1 -f archive directory
4841 tar -t -f archive > /dev/null
4842 tar -t -f - < archive > /dev/null
4846 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4850 TEST_TAR_FORMAT=oldgnu
4851 export TEST_TAR_FORMAT
4852 TAR_OPTIONS="-H oldgnu"
4857 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4858 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4859 tar -c -b 1 -f archive directory
4860 tar -t -f archive > /dev/null
4861 tar -t -f - < archive > /dev/null
4865 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4866 at_status=$? at_failed=false
4868 at_fn_diff_devnull "$at_stderr" || at_failed=:
4869 at_fn_diff_devnull "$at_stdout" || at_failed=:
4870 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4871 $at_failed && at_fn_log_failure
4875 $as_echo "$at_srcdir/shortrec.at:28:
4878 TEST_TAR_FORMAT=ustar
4879 export TEST_TAR_FORMAT
4880 TAR_OPTIONS=\"-H ustar\"
4885 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4886 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4887 tar -c -b 1 -f archive directory
4888 tar -t -f archive > /dev/null
4889 tar -t -f - < archive > /dev/null
4893 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4897 TEST_TAR_FORMAT=ustar
4898 export TEST_TAR_FORMAT
4899 TAR_OPTIONS="-H ustar"
4904 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4905 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4906 tar -c -b 1 -f archive directory
4907 tar -t -f archive > /dev/null
4908 tar -t -f - < archive > /dev/null
4912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4913 at_status=$? at_failed=false
4915 at_fn_diff_devnull "$at_stderr" || at_failed=:
4916 at_fn_diff_devnull "$at_stdout" || at_failed=:
4917 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4918 $at_failed && at_fn_log_failure
4922 $as_echo "$at_srcdir/shortrec.at:28:
4925 TEST_TAR_FORMAT=posix
4926 export TEST_TAR_FORMAT
4927 TAR_OPTIONS=\"-H posix\"
4932 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4933 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4934 tar -c -b 1 -f archive directory
4935 tar -t -f archive > /dev/null
4936 tar -t -f - < archive > /dev/null
4940 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4944 TEST_TAR_FORMAT=posix
4945 export TEST_TAR_FORMAT
4946 TAR_OPTIONS="-H posix"
4951 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4952 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4953 tar -c -b 1 -f archive directory
4954 tar -t -f archive > /dev/null
4955 tar -t -f - < archive > /dev/null
4959 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4960 at_status=$? at_failed=false
4962 at_fn_diff_devnull "$at_stderr" || at_failed=:
4963 at_fn_diff_devnull "$at_stdout" || at_failed=:
4964 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
4965 $at_failed && at_fn_log_failure
4969 $as_echo "$at_srcdir/shortrec.at:28:
4973 export TEST_TAR_FORMAT
4974 TAR_OPTIONS=\"-H gnu\"
4979 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4980 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
4981 tar -c -b 1 -f archive directory
4982 tar -t -f archive > /dev/null
4983 tar -t -f - < archive > /dev/null
4987 at_fn_check_prepare_notrace 'an embedded newline' "shortrec.at:28"
4992 export TEST_TAR_FORMAT
4993 TAR_OPTIONS="-H gnu"
4998 (cd directory && touch a b c d e f g h i j k l m n o p q r)
4999 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
5000 tar -c -b 1 -f archive directory
5001 tar -t -f archive > /dev/null
5002 tar -t -f - < archive > /dev/null
5006 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5007 at_status=$? at_failed=false
5009 at_fn_diff_devnull "$at_stderr" || at_failed=:
5010 at_fn_diff_devnull "$at_stdout" || at_failed=:
5011 at_fn_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
5012 $at_failed && at_fn_log_failure
5019 $at_times_p && times >"$at_times_file"
5020 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5021 read at_status <"$at_status_file"
5024 at_fn_group_banner 25 'iotty.at:26' \
5025 "terminal input" " " 3
5027 test -f $XFAILFILE && at_xfail=yes
5029 $as_echo "25. $at_setup_line: testing $at_desc ..."
5037 $as_echo "$at_srcdir/iotty.at:29:
5040 TEST_TAR_FORMAT=posix
5041 export TEST_TAR_FORMAT
5042 TAR_OPTIONS=\"-H posix\"
5046 test -x \$abs_builddir/ttyemu || exit 77
5049 ttyemu -t5 -i/dev/null tar -x
5051 ttyemu -t5 -i/dev/null tar -xz
5053 ttyemu -t5 -i/dev/null tar -c .
5056 at_fn_check_prepare_notrace 'an embedded newline' "iotty.at:29"
5060 TEST_TAR_FORMAT=posix
5061 export TEST_TAR_FORMAT
5062 TAR_OPTIONS="-H posix"
5066 test -x $abs_builddir/ttyemu || exit 77
5069 ttyemu -t5 -i/dev/null tar -x
5071 ttyemu -t5 -i/dev/null tar -xz
5073 ttyemu -t5 -i/dev/null tar -c .
5076 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5077 at_status=$? at_failed=false
5079 at_fn_diff_devnull "$at_stderr" || at_failed=:
5080 echo >>"$at_stdout"; $as_echo "tar: Refusing to read archive contents from terminal (missing -f option?)
5081 tar: Error is not recoverable: exiting now
5083 tar: Refusing to read archive contents from terminal (missing -f option?)
5084 tar: Error is not recoverable: exiting now
5086 tar: Refusing to write archive contents to terminal (missing -f option?)
5087 tar: Error is not recoverable: exiting now
5090 $at_diff - "$at_stdout" || at_failed=:
5091 at_fn_check_status 0 $at_status "$at_srcdir/iotty.at:29"
5092 $at_failed && at_fn_log_failure
5096 $as_echo "$at_srcdir/iotty.at:29:
5100 export TEST_TAR_FORMAT
5101 TAR_OPTIONS=\"-H gnu\"
5105 test -x \$abs_builddir/ttyemu || exit 77
5108 ttyemu -t5 -i/dev/null tar -x
5110 ttyemu -t5 -i/dev/null tar -xz
5112 ttyemu -t5 -i/dev/null tar -c .
5115 at_fn_check_prepare_notrace 'an embedded newline' "iotty.at:29"
5120 export TEST_TAR_FORMAT
5121 TAR_OPTIONS="-H gnu"
5125 test -x $abs_builddir/ttyemu || exit 77
5128 ttyemu -t5 -i/dev/null tar -x
5130 ttyemu -t5 -i/dev/null tar -xz
5132 ttyemu -t5 -i/dev/null tar -c .
5135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5136 at_status=$? at_failed=false
5138 at_fn_diff_devnull "$at_stderr" || at_failed=:
5139 echo >>"$at_stdout"; $as_echo "tar: Refusing to read archive contents from terminal (missing -f option?)
5140 tar: Error is not recoverable: exiting now
5142 tar: Refusing to read archive contents from terminal (missing -f option?)
5143 tar: Error is not recoverable: exiting now
5145 tar: Refusing to write archive contents to terminal (missing -f option?)
5146 tar: Error is not recoverable: exiting now
5149 $at_diff - "$at_stdout" || at_failed=:
5150 at_fn_check_status 0 $at_status "$at_srcdir/iotty.at:29"
5151 $at_failed && at_fn_log_failure
5155 $as_echo "$at_srcdir/iotty.at:29:
5158 TEST_TAR_FORMAT=oldgnu
5159 export TEST_TAR_FORMAT
5160 TAR_OPTIONS=\"-H oldgnu\"
5164 test -x \$abs_builddir/ttyemu || exit 77
5167 ttyemu -t5 -i/dev/null tar -x
5169 ttyemu -t5 -i/dev/null tar -xz
5171 ttyemu -t5 -i/dev/null tar -c .
5174 at_fn_check_prepare_notrace 'an embedded newline' "iotty.at:29"
5178 TEST_TAR_FORMAT=oldgnu
5179 export TEST_TAR_FORMAT
5180 TAR_OPTIONS="-H oldgnu"
5184 test -x $abs_builddir/ttyemu || exit 77
5187 ttyemu -t5 -i/dev/null tar -x
5189 ttyemu -t5 -i/dev/null tar -xz
5191 ttyemu -t5 -i/dev/null tar -c .
5194 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5195 at_status=$? at_failed=false
5197 at_fn_diff_devnull "$at_stderr" || at_failed=:
5198 echo >>"$at_stdout"; $as_echo "tar: Refusing to read archive contents from terminal (missing -f option?)
5199 tar: Error is not recoverable: exiting now
5201 tar: Refusing to read archive contents from terminal (missing -f option?)
5202 tar: Error is not recoverable: exiting now
5204 tar: Refusing to write archive contents to terminal (missing -f option?)
5205 tar: Error is not recoverable: exiting now
5208 $at_diff - "$at_stdout" || at_failed=:
5209 at_fn_check_status 0 $at_status "$at_srcdir/iotty.at:29"
5210 $at_failed && at_fn_log_failure
5217 $at_times_p && times >"$at_times_file"
5218 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5219 read at_status <"$at_status_file"
5222 at_fn_group_banner 26 'same-order01.at:26' \
5223 "working -C with --same-order" " " 4
5225 test -f $XFAILFILE && at_xfail=yes
5227 $as_echo "26. $at_setup_line: testing $at_desc ..."
5235 $as_echo "$at_srcdir/same-order01.at:29:
5239 export TEST_TAR_FORMAT
5240 TAR_OPTIONS=\"-H v7\"
5245 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5248 genfile -l 1024 -f file1
5249 genfile -l 1024 -f file2
5250 tar cf archive file1 file2
5253 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5257 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5262 export TEST_TAR_FORMAT
5268 test -z "`sort < /dev/null 2>&1`" || exit 77
5271 genfile -l 1024 -f file1
5272 genfile -l 1024 -f file2
5273 tar cf archive file1 file2
5276 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5281 at_status=$? at_failed=false
5283 at_fn_diff_devnull "$at_stderr" || at_failed=:
5284 echo >>"$at_stdout"; $as_echo "file1
5287 $at_diff - "$at_stdout" || at_failed=:
5288 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5289 $at_failed && at_fn_log_failure
5293 $as_echo "$at_srcdir/same-order01.at:29:
5296 TEST_TAR_FORMAT=oldgnu
5297 export TEST_TAR_FORMAT
5298 TAR_OPTIONS=\"-H oldgnu\"
5303 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5306 genfile -l 1024 -f file1
5307 genfile -l 1024 -f file2
5308 tar cf archive file1 file2
5311 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5315 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5319 TEST_TAR_FORMAT=oldgnu
5320 export TEST_TAR_FORMAT
5321 TAR_OPTIONS="-H oldgnu"
5326 test -z "`sort < /dev/null 2>&1`" || exit 77
5329 genfile -l 1024 -f file1
5330 genfile -l 1024 -f file2
5331 tar cf archive file1 file2
5334 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5338 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5339 at_status=$? at_failed=false
5341 at_fn_diff_devnull "$at_stderr" || at_failed=:
5342 echo >>"$at_stdout"; $as_echo "file1
5345 $at_diff - "$at_stdout" || at_failed=:
5346 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5347 $at_failed && at_fn_log_failure
5351 $as_echo "$at_srcdir/same-order01.at:29:
5354 TEST_TAR_FORMAT=ustar
5355 export TEST_TAR_FORMAT
5356 TAR_OPTIONS=\"-H ustar\"
5361 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5364 genfile -l 1024 -f file1
5365 genfile -l 1024 -f file2
5366 tar cf archive file1 file2
5369 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5373 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5377 TEST_TAR_FORMAT=ustar
5378 export TEST_TAR_FORMAT
5379 TAR_OPTIONS="-H ustar"
5384 test -z "`sort < /dev/null 2>&1`" || exit 77
5387 genfile -l 1024 -f file1
5388 genfile -l 1024 -f file2
5389 tar cf archive file1 file2
5392 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5396 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5397 at_status=$? at_failed=false
5399 at_fn_diff_devnull "$at_stderr" || at_failed=:
5400 echo >>"$at_stdout"; $as_echo "file1
5403 $at_diff - "$at_stdout" || at_failed=:
5404 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5405 $at_failed && at_fn_log_failure
5409 $as_echo "$at_srcdir/same-order01.at:29:
5412 TEST_TAR_FORMAT=posix
5413 export TEST_TAR_FORMAT
5414 TAR_OPTIONS=\"-H posix\"
5419 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5422 genfile -l 1024 -f file1
5423 genfile -l 1024 -f file2
5424 tar cf archive file1 file2
5427 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5431 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5435 TEST_TAR_FORMAT=posix
5436 export TEST_TAR_FORMAT
5437 TAR_OPTIONS="-H posix"
5442 test -z "`sort < /dev/null 2>&1`" || exit 77
5445 genfile -l 1024 -f file1
5446 genfile -l 1024 -f file2
5447 tar cf archive file1 file2
5450 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5454 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5455 at_status=$? at_failed=false
5457 at_fn_diff_devnull "$at_stderr" || at_failed=:
5458 echo >>"$at_stdout"; $as_echo "file1
5461 $at_diff - "$at_stdout" || at_failed=:
5462 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5463 $at_failed && at_fn_log_failure
5467 $as_echo "$at_srcdir/same-order01.at:29:
5471 export TEST_TAR_FORMAT
5472 TAR_OPTIONS=\"-H gnu\"
5477 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
5480 genfile -l 1024 -f file1
5481 genfile -l 1024 -f file2
5482 tar cf archive file1 file2
5485 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5489 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order01.at:29"
5494 export TEST_TAR_FORMAT
5495 TAR_OPTIONS="-H gnu"
5500 test -z "`sort < /dev/null 2>&1`" || exit 77
5503 genfile -l 1024 -f file1
5504 genfile -l 1024 -f file2
5505 tar cf archive file1 file2
5508 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
5512 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5513 at_status=$? at_failed=false
5515 at_fn_diff_devnull "$at_stderr" || at_failed=:
5516 echo >>"$at_stdout"; $as_echo "file1
5519 $at_diff - "$at_stdout" || at_failed=:
5520 at_fn_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
5521 $at_failed && at_fn_log_failure
5528 $at_times_p && times >"$at_times_file"
5529 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5530 read at_status <"$at_status_file"
5533 at_fn_group_banner 27 'same-order02.at:25' \
5534 "multiple -C options" " " 4
5536 test -f $XFAILFILE && at_xfail=yes
5538 $as_echo "27. $at_setup_line: testing $at_desc ..."
5546 $as_echo "$at_srcdir/same-order02.at:28:
5550 export TEST_TAR_FORMAT
5551 TAR_OPTIONS=\"-H v7\"
5555 genfile -l 1024 -f file1
5556 genfile -l 1024 -f file2
5557 tar cf archive file1 file2
5563 tar -xf archive --same-order --warning=no-timestamp \\
5564 -C \$HERE/en file1 \\
5565 -C \$HERE/to file2 || exit 1
5571 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5576 export TEST_TAR_FORMAT
5581 genfile -l 1024 -f file1
5582 genfile -l 1024 -f file2
5583 tar cf archive file1 file2
5589 tar -xf archive --same-order --warning=no-timestamp \
5591 -C $HERE/to file2 || exit 1
5597 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5598 at_status=$? at_failed=false
5600 at_fn_diff_devnull "$at_stderr" || at_failed=:
5601 echo >>"$at_stdout"; $as_echo "file1
5605 $at_diff - "$at_stdout" || at_failed=:
5606 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5607 $at_failed && at_fn_log_failure
5611 $as_echo "$at_srcdir/same-order02.at:28:
5614 TEST_TAR_FORMAT=oldgnu
5615 export TEST_TAR_FORMAT
5616 TAR_OPTIONS=\"-H oldgnu\"
5620 genfile -l 1024 -f file1
5621 genfile -l 1024 -f file2
5622 tar cf archive file1 file2
5628 tar -xf archive --same-order --warning=no-timestamp \\
5629 -C \$HERE/en file1 \\
5630 -C \$HERE/to file2 || exit 1
5636 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5640 TEST_TAR_FORMAT=oldgnu
5641 export TEST_TAR_FORMAT
5642 TAR_OPTIONS="-H oldgnu"
5646 genfile -l 1024 -f file1
5647 genfile -l 1024 -f file2
5648 tar cf archive file1 file2
5654 tar -xf archive --same-order --warning=no-timestamp \
5656 -C $HERE/to file2 || exit 1
5662 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5663 at_status=$? at_failed=false
5665 at_fn_diff_devnull "$at_stderr" || at_failed=:
5666 echo >>"$at_stdout"; $as_echo "file1
5670 $at_diff - "$at_stdout" || at_failed=:
5671 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5672 $at_failed && at_fn_log_failure
5676 $as_echo "$at_srcdir/same-order02.at:28:
5679 TEST_TAR_FORMAT=ustar
5680 export TEST_TAR_FORMAT
5681 TAR_OPTIONS=\"-H ustar\"
5685 genfile -l 1024 -f file1
5686 genfile -l 1024 -f file2
5687 tar cf archive file1 file2
5693 tar -xf archive --same-order --warning=no-timestamp \\
5694 -C \$HERE/en file1 \\
5695 -C \$HERE/to file2 || exit 1
5701 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5705 TEST_TAR_FORMAT=ustar
5706 export TEST_TAR_FORMAT
5707 TAR_OPTIONS="-H ustar"
5711 genfile -l 1024 -f file1
5712 genfile -l 1024 -f file2
5713 tar cf archive file1 file2
5719 tar -xf archive --same-order --warning=no-timestamp \
5721 -C $HERE/to file2 || exit 1
5727 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5728 at_status=$? at_failed=false
5730 at_fn_diff_devnull "$at_stderr" || at_failed=:
5731 echo >>"$at_stdout"; $as_echo "file1
5735 $at_diff - "$at_stdout" || at_failed=:
5736 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5737 $at_failed && at_fn_log_failure
5741 $as_echo "$at_srcdir/same-order02.at:28:
5744 TEST_TAR_FORMAT=posix
5745 export TEST_TAR_FORMAT
5746 TAR_OPTIONS=\"-H posix\"
5750 genfile -l 1024 -f file1
5751 genfile -l 1024 -f file2
5752 tar cf archive file1 file2
5758 tar -xf archive --same-order --warning=no-timestamp \\
5759 -C \$HERE/en file1 \\
5760 -C \$HERE/to file2 || exit 1
5766 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5770 TEST_TAR_FORMAT=posix
5771 export TEST_TAR_FORMAT
5772 TAR_OPTIONS="-H posix"
5776 genfile -l 1024 -f file1
5777 genfile -l 1024 -f file2
5778 tar cf archive file1 file2
5784 tar -xf archive --same-order --warning=no-timestamp \
5786 -C $HERE/to file2 || exit 1
5792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5793 at_status=$? at_failed=false
5795 at_fn_diff_devnull "$at_stderr" || at_failed=:
5796 echo >>"$at_stdout"; $as_echo "file1
5800 $at_diff - "$at_stdout" || at_failed=:
5801 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5802 $at_failed && at_fn_log_failure
5806 $as_echo "$at_srcdir/same-order02.at:28:
5810 export TEST_TAR_FORMAT
5811 TAR_OPTIONS=\"-H gnu\"
5815 genfile -l 1024 -f file1
5816 genfile -l 1024 -f file2
5817 tar cf archive file1 file2
5823 tar -xf archive --same-order --warning=no-timestamp \\
5824 -C \$HERE/en file1 \\
5825 -C \$HERE/to file2 || exit 1
5831 at_fn_check_prepare_notrace 'a `...` command substitution' "same-order02.at:28"
5836 export TEST_TAR_FORMAT
5837 TAR_OPTIONS="-H gnu"
5841 genfile -l 1024 -f file1
5842 genfile -l 1024 -f file2
5843 tar cf archive file1 file2
5849 tar -xf archive --same-order --warning=no-timestamp \
5851 -C $HERE/to file2 || exit 1
5857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5858 at_status=$? at_failed=false
5860 at_fn_diff_devnull "$at_stderr" || at_failed=:
5861 echo >>"$at_stdout"; $as_echo "file1
5865 $at_diff - "$at_stdout" || at_failed=:
5866 at_fn_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
5867 $at_failed && at_fn_log_failure
5874 $at_times_p && times >"$at_times_file"
5875 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5876 read at_status <"$at_status_file"
5879 at_fn_group_banner 28 'append.at:21' \
5882 test -f $XFAILFILE && at_xfail=yes
5884 $as_echo "28. $at_setup_line: testing $at_desc ..."
5892 $as_echo "$at_srcdir/append.at:24:
5896 export TEST_TAR_FORMAT
5897 TAR_OPTIONS=\"-H v7\"
5902 tar cf archive file1
5903 tar rf archive file2
5905 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5910 export TEST_TAR_FORMAT
5916 tar cf archive file1
5917 tar rf archive file2
5919 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5920 at_status=$? at_failed=false
5922 at_fn_diff_devnull "$at_stderr" || at_failed=:
5923 echo >>"$at_stdout"; $as_echo "file1
5926 $at_diff - "$at_stdout" || at_failed=:
5927 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5928 $at_failed && at_fn_log_failure
5932 $as_echo "$at_srcdir/append.at:24:
5935 TEST_TAR_FORMAT=oldgnu
5936 export TEST_TAR_FORMAT
5937 TAR_OPTIONS=\"-H oldgnu\"
5942 tar cf archive file1
5943 tar rf archive file2
5945 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5949 TEST_TAR_FORMAT=oldgnu
5950 export TEST_TAR_FORMAT
5951 TAR_OPTIONS="-H oldgnu"
5956 tar cf archive file1
5957 tar rf archive file2
5959 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5960 at_status=$? at_failed=false
5962 at_fn_diff_devnull "$at_stderr" || at_failed=:
5963 echo >>"$at_stdout"; $as_echo "file1
5966 $at_diff - "$at_stdout" || at_failed=:
5967 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
5968 $at_failed && at_fn_log_failure
5972 $as_echo "$at_srcdir/append.at:24:
5975 TEST_TAR_FORMAT=ustar
5976 export TEST_TAR_FORMAT
5977 TAR_OPTIONS=\"-H ustar\"
5982 tar cf archive file1
5983 tar rf archive file2
5985 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
5989 TEST_TAR_FORMAT=ustar
5990 export TEST_TAR_FORMAT
5991 TAR_OPTIONS="-H ustar"
5996 tar cf archive file1
5997 tar rf archive file2
5999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6000 at_status=$? at_failed=false
6002 at_fn_diff_devnull "$at_stderr" || at_failed=:
6003 echo >>"$at_stdout"; $as_echo "file1
6006 $at_diff - "$at_stdout" || at_failed=:
6007 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
6008 $at_failed && at_fn_log_failure
6012 $as_echo "$at_srcdir/append.at:24:
6015 TEST_TAR_FORMAT=posix
6016 export TEST_TAR_FORMAT
6017 TAR_OPTIONS=\"-H posix\"
6022 tar cf archive file1
6023 tar rf archive file2
6025 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
6029 TEST_TAR_FORMAT=posix
6030 export TEST_TAR_FORMAT
6031 TAR_OPTIONS="-H posix"
6036 tar cf archive file1
6037 tar rf archive file2
6039 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6040 at_status=$? at_failed=false
6042 at_fn_diff_devnull "$at_stderr" || at_failed=:
6043 echo >>"$at_stdout"; $as_echo "file1
6046 $at_diff - "$at_stdout" || at_failed=:
6047 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
6048 $at_failed && at_fn_log_failure
6052 $as_echo "$at_srcdir/append.at:24:
6056 export TEST_TAR_FORMAT
6057 TAR_OPTIONS=\"-H gnu\"
6062 tar cf archive file1
6063 tar rf archive file2
6065 at_fn_check_prepare_notrace 'an embedded newline' "append.at:24"
6070 export TEST_TAR_FORMAT
6071 TAR_OPTIONS="-H gnu"
6076 tar cf archive file1
6077 tar rf archive file2
6079 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6080 at_status=$? at_failed=false
6082 at_fn_diff_devnull "$at_stderr" || at_failed=:
6083 echo >>"$at_stdout"; $as_echo "file1
6086 $at_diff - "$at_stdout" || at_failed=:
6087 at_fn_check_status 0 $at_status "$at_srcdir/append.at:24"
6088 $at_failed && at_fn_log_failure
6095 $at_times_p && times >"$at_times_file"
6096 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6097 read at_status <"$at_status_file"
6100 at_fn_group_banner 29 'append01.at:29' \
6101 "appending files with long names" " " 5
6103 test -f $XFAILFILE && at_xfail=yes
6105 $as_echo "29. $at_setup_line: testing $at_desc ..."
6115 $as_echo "$at_srcdir/append01.at:34:
6118 TEST_TAR_FORMAT=oldgnu
6119 export TEST_TAR_FORMAT
6120 TAR_OPTIONS=\"-H oldgnu\"
6124 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
6125 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
6126 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
6127 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
6130 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
6134 TEST_TAR_FORMAT=oldgnu
6135 export TEST_TAR_FORMAT
6136 TAR_OPTIONS="-H oldgnu"
6140 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
6141 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
6142 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
6143 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
6146 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6147 at_status=$? at_failed=false
6149 at_fn_diff_devnull "$at_stderr" || at_failed=:
6150 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
6151 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
6153 $at_diff - "$at_stdout" || at_failed=:
6154 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
6155 $at_failed && at_fn_log_failure
6159 $as_echo "$at_srcdir/append01.at:34:
6162 TEST_TAR_FORMAT=ustar
6163 export TEST_TAR_FORMAT
6164 TAR_OPTIONS=\"-H ustar\"
6168 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
6169 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
6170 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
6171 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
6174 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
6178 TEST_TAR_FORMAT=ustar
6179 export TEST_TAR_FORMAT
6180 TAR_OPTIONS="-H ustar"
6184 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
6185 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
6186 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
6187 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
6190 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6191 at_status=$? at_failed=false
6193 at_fn_diff_devnull "$at_stderr" || at_failed=:
6194 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
6195 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
6197 $at_diff - "$at_stdout" || at_failed=:
6198 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
6199 $at_failed && at_fn_log_failure
6203 $as_echo "$at_srcdir/append01.at:34:
6206 TEST_TAR_FORMAT=posix
6207 export TEST_TAR_FORMAT
6208 TAR_OPTIONS=\"-H posix\"
6212 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
6213 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
6214 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
6215 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
6218 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
6222 TEST_TAR_FORMAT=posix
6223 export TEST_TAR_FORMAT
6224 TAR_OPTIONS="-H posix"
6228 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
6229 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
6230 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
6231 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
6234 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6235 at_status=$? at_failed=false
6237 at_fn_diff_devnull "$at_stderr" || at_failed=:
6238 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
6239 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
6241 $at_diff - "$at_stdout" || at_failed=:
6242 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
6243 $at_failed && at_fn_log_failure
6247 $as_echo "$at_srcdir/append01.at:34:
6251 export TEST_TAR_FORMAT
6252 TAR_OPTIONS=\"-H gnu\"
6256 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
6257 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
6258 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
6259 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
6262 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:34"
6267 export TEST_TAR_FORMAT
6268 TAR_OPTIONS="-H gnu"
6272 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
6273 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
6274 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
6275 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
6278 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6279 at_status=$? at_failed=false
6281 at_fn_diff_devnull "$at_stderr" || at_failed=:
6282 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
6283 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
6285 $at_diff - "$at_stdout" || at_failed=:
6286 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:34"
6287 $at_failed && at_fn_log_failure
6295 $at_times_p && times >"$at_times_file"
6296 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6297 read at_status <"$at_status_file"
6300 at_fn_group_banner 30 'append02.at:54' \
6301 "append vs. create" " " 5
6303 test -f $XFAILFILE && at_xfail=yes
6305 $as_echo "30. $at_setup_line: testing $at_desc ..."
6313 $as_echo "$at_srcdir/append02.at:57:
6317 export TEST_TAR_FORMAT
6318 TAR_OPTIONS=\"-H v7\"
6322 genfile --file file1
6323 genfile --file file2
6325 # Make sure file timestamps in the archive will not differ
6326 MTIME=\"--mtime=@0\"
6328 # For PAX archives, we need to make sure extended header names are
6329 # reproducible and that their contents won't change with time
6330 if test \$TEST_TAR_FORMAT = posix; then
6331 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6334 echo Creating archive.1
6335 tar \$MTIME -cf archive.1 file1 file2
6337 echo Creating archive.2
6338 tar \$MTIME -cf archive.2 -T /dev/null
6339 tar \$MTIME -rf archive.2 file1
6340 tar \$MTIME -rf archive.2 file2
6342 echo Comparing archives
6343 cmp archive.1 archive.2
6345 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6350 export TEST_TAR_FORMAT
6355 genfile --file file1
6356 genfile --file file2
6358 # Make sure file timestamps in the archive will not differ
6361 # For PAX archives, we need to make sure extended header names are
6362 # reproducible and that their contents won't change with time
6363 if test $TEST_TAR_FORMAT = posix; then
6364 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6367 echo Creating archive.1
6368 tar $MTIME -cf archive.1 file1 file2
6370 echo Creating archive.2
6371 tar $MTIME -cf archive.2 -T /dev/null
6372 tar $MTIME -rf archive.2 file1
6373 tar $MTIME -rf archive.2 file2
6375 echo Comparing archives
6376 cmp archive.1 archive.2
6378 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6379 at_status=$? at_failed=false
6381 at_fn_diff_devnull "$at_stderr" || at_failed=:
6382 echo >>"$at_stdout"; $as_echo "Creating archive.1
6386 $at_diff - "$at_stdout" || at_failed=:
6387 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6388 $at_failed && at_fn_log_failure
6392 $as_echo "$at_srcdir/append02.at:57:
6395 TEST_TAR_FORMAT=oldgnu
6396 export TEST_TAR_FORMAT
6397 TAR_OPTIONS=\"-H oldgnu\"
6401 genfile --file file1
6402 genfile --file file2
6404 # Make sure file timestamps in the archive will not differ
6405 MTIME=\"--mtime=@0\"
6407 # For PAX archives, we need to make sure extended header names are
6408 # reproducible and that their contents won't change with time
6409 if test \$TEST_TAR_FORMAT = posix; then
6410 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6413 echo Creating archive.1
6414 tar \$MTIME -cf archive.1 file1 file2
6416 echo Creating archive.2
6417 tar \$MTIME -cf archive.2 -T /dev/null
6418 tar \$MTIME -rf archive.2 file1
6419 tar \$MTIME -rf archive.2 file2
6421 echo Comparing archives
6422 cmp archive.1 archive.2
6424 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6428 TEST_TAR_FORMAT=oldgnu
6429 export TEST_TAR_FORMAT
6430 TAR_OPTIONS="-H oldgnu"
6434 genfile --file file1
6435 genfile --file file2
6437 # Make sure file timestamps in the archive will not differ
6440 # For PAX archives, we need to make sure extended header names are
6441 # reproducible and that their contents won't change with time
6442 if test $TEST_TAR_FORMAT = posix; then
6443 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6446 echo Creating archive.1
6447 tar $MTIME -cf archive.1 file1 file2
6449 echo Creating archive.2
6450 tar $MTIME -cf archive.2 -T /dev/null
6451 tar $MTIME -rf archive.2 file1
6452 tar $MTIME -rf archive.2 file2
6454 echo Comparing archives
6455 cmp archive.1 archive.2
6457 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6458 at_status=$? at_failed=false
6460 at_fn_diff_devnull "$at_stderr" || at_failed=:
6461 echo >>"$at_stdout"; $as_echo "Creating archive.1
6465 $at_diff - "$at_stdout" || at_failed=:
6466 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6467 $at_failed && at_fn_log_failure
6471 $as_echo "$at_srcdir/append02.at:57:
6474 TEST_TAR_FORMAT=ustar
6475 export TEST_TAR_FORMAT
6476 TAR_OPTIONS=\"-H ustar\"
6480 genfile --file file1
6481 genfile --file file2
6483 # Make sure file timestamps in the archive will not differ
6484 MTIME=\"--mtime=@0\"
6486 # For PAX archives, we need to make sure extended header names are
6487 # reproducible and that their contents won't change with time
6488 if test \$TEST_TAR_FORMAT = posix; then
6489 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6492 echo Creating archive.1
6493 tar \$MTIME -cf archive.1 file1 file2
6495 echo Creating archive.2
6496 tar \$MTIME -cf archive.2 -T /dev/null
6497 tar \$MTIME -rf archive.2 file1
6498 tar \$MTIME -rf archive.2 file2
6500 echo Comparing archives
6501 cmp archive.1 archive.2
6503 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6507 TEST_TAR_FORMAT=ustar
6508 export TEST_TAR_FORMAT
6509 TAR_OPTIONS="-H ustar"
6513 genfile --file file1
6514 genfile --file file2
6516 # Make sure file timestamps in the archive will not differ
6519 # For PAX archives, we need to make sure extended header names are
6520 # reproducible and that their contents won't change with time
6521 if test $TEST_TAR_FORMAT = posix; then
6522 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6525 echo Creating archive.1
6526 tar $MTIME -cf archive.1 file1 file2
6528 echo Creating archive.2
6529 tar $MTIME -cf archive.2 -T /dev/null
6530 tar $MTIME -rf archive.2 file1
6531 tar $MTIME -rf archive.2 file2
6533 echo Comparing archives
6534 cmp archive.1 archive.2
6536 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6537 at_status=$? at_failed=false
6539 at_fn_diff_devnull "$at_stderr" || at_failed=:
6540 echo >>"$at_stdout"; $as_echo "Creating archive.1
6544 $at_diff - "$at_stdout" || at_failed=:
6545 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6546 $at_failed && at_fn_log_failure
6550 $as_echo "$at_srcdir/append02.at:57:
6553 TEST_TAR_FORMAT=posix
6554 export TEST_TAR_FORMAT
6555 TAR_OPTIONS=\"-H posix\"
6559 genfile --file file1
6560 genfile --file file2
6562 # Make sure file timestamps in the archive will not differ
6563 MTIME=\"--mtime=@0\"
6565 # For PAX archives, we need to make sure extended header names are
6566 # reproducible and that their contents won't change with time
6567 if test \$TEST_TAR_FORMAT = posix; then
6568 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6571 echo Creating archive.1
6572 tar \$MTIME -cf archive.1 file1 file2
6574 echo Creating archive.2
6575 tar \$MTIME -cf archive.2 -T /dev/null
6576 tar \$MTIME -rf archive.2 file1
6577 tar \$MTIME -rf archive.2 file2
6579 echo Comparing archives
6580 cmp archive.1 archive.2
6582 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6586 TEST_TAR_FORMAT=posix
6587 export TEST_TAR_FORMAT
6588 TAR_OPTIONS="-H posix"
6592 genfile --file file1
6593 genfile --file file2
6595 # Make sure file timestamps in the archive will not differ
6598 # For PAX archives, we need to make sure extended header names are
6599 # reproducible and that their contents won't change with time
6600 if test $TEST_TAR_FORMAT = posix; then
6601 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6604 echo Creating archive.1
6605 tar $MTIME -cf archive.1 file1 file2
6607 echo Creating archive.2
6608 tar $MTIME -cf archive.2 -T /dev/null
6609 tar $MTIME -rf archive.2 file1
6610 tar $MTIME -rf archive.2 file2
6612 echo Comparing archives
6613 cmp archive.1 archive.2
6615 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6616 at_status=$? at_failed=false
6618 at_fn_diff_devnull "$at_stderr" || at_failed=:
6619 echo >>"$at_stdout"; $as_echo "Creating archive.1
6623 $at_diff - "$at_stdout" || at_failed=:
6624 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6625 $at_failed && at_fn_log_failure
6629 $as_echo "$at_srcdir/append02.at:57:
6633 export TEST_TAR_FORMAT
6634 TAR_OPTIONS=\"-H gnu\"
6638 genfile --file file1
6639 genfile --file file2
6641 # Make sure file timestamps in the archive will not differ
6642 MTIME=\"--mtime=@0\"
6644 # For PAX archives, we need to make sure extended header names are
6645 # reproducible and that their contents won't change with time
6646 if test \$TEST_TAR_FORMAT = posix; then
6647 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
6650 echo Creating archive.1
6651 tar \$MTIME -cf archive.1 file1 file2
6653 echo Creating archive.2
6654 tar \$MTIME -cf archive.2 -T /dev/null
6655 tar \$MTIME -rf archive.2 file1
6656 tar \$MTIME -rf archive.2 file2
6658 echo Comparing archives
6659 cmp archive.1 archive.2
6661 at_fn_check_prepare_notrace 'an embedded newline' "append02.at:57"
6666 export TEST_TAR_FORMAT
6667 TAR_OPTIONS="-H gnu"
6671 genfile --file file1
6672 genfile --file file2
6674 # Make sure file timestamps in the archive will not differ
6677 # For PAX archives, we need to make sure extended header names are
6678 # reproducible and that their contents won't change with time
6679 if test $TEST_TAR_FORMAT = posix; then
6680 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
6683 echo Creating archive.1
6684 tar $MTIME -cf archive.1 file1 file2
6686 echo Creating archive.2
6687 tar $MTIME -cf archive.2 -T /dev/null
6688 tar $MTIME -rf archive.2 file1
6689 tar $MTIME -rf archive.2 file2
6691 echo Comparing archives
6692 cmp archive.1 archive.2
6694 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6695 at_status=$? at_failed=false
6697 at_fn_diff_devnull "$at_stderr" || at_failed=:
6698 echo >>"$at_stdout"; $as_echo "Creating archive.1
6702 $at_diff - "$at_stdout" || at_failed=:
6703 at_fn_check_status 0 $at_status "$at_srcdir/append02.at:57"
6704 $at_failed && at_fn_log_failure
6711 $at_times_p && times >"$at_times_file"
6712 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6713 read at_status <"$at_status_file"
6716 at_fn_group_banner 31 'append03.at:21' \
6717 "append with name transformation" " " 5
6719 test -f $XFAILFILE && at_xfail=yes
6721 $as_echo "31. $at_setup_line: testing $at_desc ..."
6726 # Description: Make sure filenames are transformed during append.
6731 $as_echo "$at_srcdir/append03.at:26:
6735 export TEST_TAR_FORMAT
6736 TAR_OPTIONS=\"-H v7\"
6740 genfile --file file.1
6741 genfile --file file.2
6743 tar -c -f archive --transform 's/file/plik/' file.*
6745 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6749 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6754 export TEST_TAR_FORMAT
6759 genfile --file file.1
6760 genfile --file file.2
6762 tar -c -f archive --transform 's/file/plik/' file.*
6764 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6768 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6769 at_status=$? at_failed=false
6771 at_fn_diff_devnull "$at_stderr" || at_failed=:
6772 echo >>"$at_stdout"; $as_echo "Appending
6779 $at_diff - "$at_stdout" || at_failed=:
6780 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6781 $at_failed && at_fn_log_failure
6785 $as_echo "$at_srcdir/append03.at:26:
6788 TEST_TAR_FORMAT=oldgnu
6789 export TEST_TAR_FORMAT
6790 TAR_OPTIONS=\"-H oldgnu\"
6794 genfile --file file.1
6795 genfile --file file.2
6797 tar -c -f archive --transform 's/file/plik/' file.*
6799 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6803 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6807 TEST_TAR_FORMAT=oldgnu
6808 export TEST_TAR_FORMAT
6809 TAR_OPTIONS="-H oldgnu"
6813 genfile --file file.1
6814 genfile --file file.2
6816 tar -c -f archive --transform 's/file/plik/' file.*
6818 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6822 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6823 at_status=$? at_failed=false
6825 at_fn_diff_devnull "$at_stderr" || at_failed=:
6826 echo >>"$at_stdout"; $as_echo "Appending
6833 $at_diff - "$at_stdout" || at_failed=:
6834 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6835 $at_failed && at_fn_log_failure
6839 $as_echo "$at_srcdir/append03.at:26:
6842 TEST_TAR_FORMAT=ustar
6843 export TEST_TAR_FORMAT
6844 TAR_OPTIONS=\"-H ustar\"
6848 genfile --file file.1
6849 genfile --file file.2
6851 tar -c -f archive --transform 's/file/plik/' file.*
6853 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6857 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6861 TEST_TAR_FORMAT=ustar
6862 export TEST_TAR_FORMAT
6863 TAR_OPTIONS="-H ustar"
6867 genfile --file file.1
6868 genfile --file file.2
6870 tar -c -f archive --transform 's/file/plik/' file.*
6872 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6877 at_status=$? at_failed=false
6879 at_fn_diff_devnull "$at_stderr" || at_failed=:
6880 echo >>"$at_stdout"; $as_echo "Appending
6887 $at_diff - "$at_stdout" || at_failed=:
6888 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6889 $at_failed && at_fn_log_failure
6893 $as_echo "$at_srcdir/append03.at:26:
6896 TEST_TAR_FORMAT=posix
6897 export TEST_TAR_FORMAT
6898 TAR_OPTIONS=\"-H posix\"
6902 genfile --file file.1
6903 genfile --file file.2
6905 tar -c -f archive --transform 's/file/plik/' file.*
6907 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6911 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6915 TEST_TAR_FORMAT=posix
6916 export TEST_TAR_FORMAT
6917 TAR_OPTIONS="-H posix"
6921 genfile --file file.1
6922 genfile --file file.2
6924 tar -c -f archive --transform 's/file/plik/' file.*
6926 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6931 at_status=$? at_failed=false
6933 at_fn_diff_devnull "$at_stderr" || at_failed=:
6934 echo >>"$at_stdout"; $as_echo "Appending
6941 $at_diff - "$at_stdout" || at_failed=:
6942 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6943 $at_failed && at_fn_log_failure
6947 $as_echo "$at_srcdir/append03.at:26:
6951 export TEST_TAR_FORMAT
6952 TAR_OPTIONS=\"-H gnu\"
6956 genfile --file file.1
6957 genfile --file file.2
6959 tar -c -f archive --transform 's/file/plik/' file.*
6961 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6965 at_fn_check_prepare_notrace 'an embedded newline' "append03.at:26"
6970 export TEST_TAR_FORMAT
6971 TAR_OPTIONS="-H gnu"
6975 genfile --file file.1
6976 genfile --file file.2
6978 tar -c -f archive --transform 's/file/plik/' file.*
6980 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
6984 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6985 at_status=$? at_failed=false
6987 at_fn_diff_devnull "$at_stderr" || at_failed=:
6988 echo >>"$at_stdout"; $as_echo "Appending
6995 $at_diff - "$at_stdout" || at_failed=:
6996 at_fn_check_status 0 $at_status "$at_srcdir/append03.at:26"
6997 $at_failed && at_fn_log_failure
7004 $at_times_p && times >"$at_times_file"
7005 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7006 read at_status <"$at_status_file"
7009 at_fn_group_banner 32 'append04.at:29' \
7010 "append with verify" " " 5
7012 test -f $XFAILFILE && at_xfail=yes
7014 $as_echo "32. $at_setup_line: testing $at_desc ..."
7022 $as_echo "$at_srcdir/append04.at:32:
7026 export TEST_TAR_FORMAT
7027 TAR_OPTIONS=\"-H v7\"
7031 # Create two empty files:
7034 # Create an archive:
7035 tar cpfW archive.tar file1 file2
7037 # Verify created archive by listing its content:
7040 # Create another empty file:
7043 # Append it to the already created archive:
7044 tar rpfW archive.tar file3
7046 # Verify content of the new archive:
7049 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
7054 export TEST_TAR_FORMAT
7059 # Create two empty files:
7062 # Create an archive:
7063 tar cpfW archive.tar file1 file2
7065 # Verify created archive by listing its content:
7068 # Create another empty file:
7071 # Append it to the already created archive:
7072 tar rpfW archive.tar file3
7074 # Verify content of the new archive:
7077 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7078 at_status=$? at_failed=false
7080 at_fn_diff_devnull "$at_stderr" || at_failed=:
7081 echo >>"$at_stdout"; $as_echo "file1
7088 $at_diff - "$at_stdout" || at_failed=:
7089 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
7090 $at_failed && at_fn_log_failure
7094 $as_echo "$at_srcdir/append04.at:32:
7097 TEST_TAR_FORMAT=oldgnu
7098 export TEST_TAR_FORMAT
7099 TAR_OPTIONS=\"-H oldgnu\"
7103 # Create two empty files:
7106 # Create an archive:
7107 tar cpfW archive.tar file1 file2
7109 # Verify created archive by listing its content:
7112 # Create another empty file:
7115 # Append it to the already created archive:
7116 tar rpfW archive.tar file3
7118 # Verify content of the new archive:
7121 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
7125 TEST_TAR_FORMAT=oldgnu
7126 export TEST_TAR_FORMAT
7127 TAR_OPTIONS="-H oldgnu"
7131 # Create two empty files:
7134 # Create an archive:
7135 tar cpfW archive.tar file1 file2
7137 # Verify created archive by listing its content:
7140 # Create another empty file:
7143 # Append it to the already created archive:
7144 tar rpfW archive.tar file3
7146 # Verify content of the new archive:
7149 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7150 at_status=$? at_failed=false
7152 at_fn_diff_devnull "$at_stderr" || at_failed=:
7153 echo >>"$at_stdout"; $as_echo "file1
7160 $at_diff - "$at_stdout" || at_failed=:
7161 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
7162 $at_failed && at_fn_log_failure
7166 $as_echo "$at_srcdir/append04.at:32:
7169 TEST_TAR_FORMAT=ustar
7170 export TEST_TAR_FORMAT
7171 TAR_OPTIONS=\"-H ustar\"
7175 # Create two empty files:
7178 # Create an archive:
7179 tar cpfW archive.tar file1 file2
7181 # Verify created archive by listing its content:
7184 # Create another empty file:
7187 # Append it to the already created archive:
7188 tar rpfW archive.tar file3
7190 # Verify content of the new archive:
7193 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
7197 TEST_TAR_FORMAT=ustar
7198 export TEST_TAR_FORMAT
7199 TAR_OPTIONS="-H ustar"
7203 # Create two empty files:
7206 # Create an archive:
7207 tar cpfW archive.tar file1 file2
7209 # Verify created archive by listing its content:
7212 # Create another empty file:
7215 # Append it to the already created archive:
7216 tar rpfW archive.tar file3
7218 # Verify content of the new archive:
7221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7222 at_status=$? at_failed=false
7224 at_fn_diff_devnull "$at_stderr" || at_failed=:
7225 echo >>"$at_stdout"; $as_echo "file1
7232 $at_diff - "$at_stdout" || at_failed=:
7233 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
7234 $at_failed && at_fn_log_failure
7238 $as_echo "$at_srcdir/append04.at:32:
7241 TEST_TAR_FORMAT=posix
7242 export TEST_TAR_FORMAT
7243 TAR_OPTIONS=\"-H posix\"
7247 # Create two empty files:
7250 # Create an archive:
7251 tar cpfW archive.tar file1 file2
7253 # Verify created archive by listing its content:
7256 # Create another empty file:
7259 # Append it to the already created archive:
7260 tar rpfW archive.tar file3
7262 # Verify content of the new archive:
7265 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
7269 TEST_TAR_FORMAT=posix
7270 export TEST_TAR_FORMAT
7271 TAR_OPTIONS="-H posix"
7275 # Create two empty files:
7278 # Create an archive:
7279 tar cpfW archive.tar file1 file2
7281 # Verify created archive by listing its content:
7284 # Create another empty file:
7287 # Append it to the already created archive:
7288 tar rpfW archive.tar file3
7290 # Verify content of the new archive:
7293 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7294 at_status=$? at_failed=false
7296 at_fn_diff_devnull "$at_stderr" || at_failed=:
7297 echo >>"$at_stdout"; $as_echo "file1
7304 $at_diff - "$at_stdout" || at_failed=:
7305 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
7306 $at_failed && at_fn_log_failure
7310 $as_echo "$at_srcdir/append04.at:32:
7314 export TEST_TAR_FORMAT
7315 TAR_OPTIONS=\"-H gnu\"
7319 # Create two empty files:
7322 # Create an archive:
7323 tar cpfW archive.tar file1 file2
7325 # Verify created archive by listing its content:
7328 # Create another empty file:
7331 # Append it to the already created archive:
7332 tar rpfW archive.tar file3
7334 # Verify content of the new archive:
7337 at_fn_check_prepare_notrace 'an embedded newline' "append04.at:32"
7342 export TEST_TAR_FORMAT
7343 TAR_OPTIONS="-H gnu"
7347 # Create two empty files:
7350 # Create an archive:
7351 tar cpfW archive.tar file1 file2
7353 # Verify created archive by listing its content:
7356 # Create another empty file:
7359 # Append it to the already created archive:
7360 tar rpfW archive.tar file3
7362 # Verify content of the new archive:
7365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7366 at_status=$? at_failed=false
7368 at_fn_diff_devnull "$at_stderr" || at_failed=:
7369 echo >>"$at_stdout"; $as_echo "file1
7376 $at_diff - "$at_stdout" || at_failed=:
7377 at_fn_check_status 0 $at_status "$at_srcdir/append04.at:32"
7378 $at_failed && at_fn_log_failure
7385 $at_times_p && times >"$at_times_file"
7386 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7387 read at_status <"$at_status_file"
7390 at_fn_group_banner 33 'xform-h.at:30' \
7391 "transforming hard links on create" " " 6
7393 test -f $XFAILFILE && at_xfail=yes
7395 $as_echo "33. $at_setup_line: testing $at_desc ..."
7405 $as_echo "$at_srcdir/xform-h.at:39:
7409 export TEST_TAR_FORMAT
7410 TAR_OPTIONS=\"-H v7\"
7415 echo \"hello\" > basedir/test
7416 ln basedir/test basedir/test_link
7419 echo \"Default transform scope\"
7420 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7421 tar tvf archive | sed -n 's/.*test_link link to //p'
7424 echo \"Transforming hard links\"
7425 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7426 tar tvf archive | sed -n 's/.*test_link link to //p'
7429 echo \"Not transforming hard links\"
7430 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7431 tar tvf archive | sed -n 's/.*test_link link to //p'
7434 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7439 export TEST_TAR_FORMAT
7445 echo "hello" > basedir/test
7446 ln basedir/test basedir/test_link
7449 echo "Default transform scope"
7450 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7451 tar tvf archive | sed -n 's/.*test_link link to //p'
7454 echo "Transforming hard links"
7455 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7456 tar tvf archive | sed -n 's/.*test_link link to //p'
7459 echo "Not transforming hard links"
7460 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7461 tar tvf archive | sed -n 's/.*test_link link to //p'
7464 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7465 at_status=$? at_failed=false
7467 at_fn_diff_devnull "$at_stderr" || at_failed=:
7468 echo >>"$at_stdout"; $as_echo "Default transform scope
7470 Transforming hard links
7472 Not transforming hard links
7475 $at_diff - "$at_stdout" || at_failed=:
7476 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7477 $at_failed && at_fn_log_failure
7481 $as_echo "$at_srcdir/xform-h.at:39:
7484 TEST_TAR_FORMAT=oldgnu
7485 export TEST_TAR_FORMAT
7486 TAR_OPTIONS=\"-H oldgnu\"
7491 echo \"hello\" > basedir/test
7492 ln basedir/test basedir/test_link
7495 echo \"Default transform scope\"
7496 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7497 tar tvf archive | sed -n 's/.*test_link link to //p'
7500 echo \"Transforming hard links\"
7501 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7502 tar tvf archive | sed -n 's/.*test_link link to //p'
7505 echo \"Not transforming hard links\"
7506 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7507 tar tvf archive | sed -n 's/.*test_link link to //p'
7510 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7514 TEST_TAR_FORMAT=oldgnu
7515 export TEST_TAR_FORMAT
7516 TAR_OPTIONS="-H oldgnu"
7521 echo "hello" > basedir/test
7522 ln basedir/test basedir/test_link
7525 echo "Default transform scope"
7526 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7527 tar tvf archive | sed -n 's/.*test_link link to //p'
7530 echo "Transforming hard links"
7531 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7532 tar tvf archive | sed -n 's/.*test_link link to //p'
7535 echo "Not transforming hard links"
7536 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7537 tar tvf archive | sed -n 's/.*test_link link to //p'
7540 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7541 at_status=$? at_failed=false
7543 at_fn_diff_devnull "$at_stderr" || at_failed=:
7544 echo >>"$at_stdout"; $as_echo "Default transform scope
7546 Transforming hard links
7548 Not transforming hard links
7551 $at_diff - "$at_stdout" || at_failed=:
7552 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7553 $at_failed && at_fn_log_failure
7557 $as_echo "$at_srcdir/xform-h.at:39:
7560 TEST_TAR_FORMAT=ustar
7561 export TEST_TAR_FORMAT
7562 TAR_OPTIONS=\"-H ustar\"
7567 echo \"hello\" > basedir/test
7568 ln basedir/test basedir/test_link
7571 echo \"Default transform scope\"
7572 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7573 tar tvf archive | sed -n 's/.*test_link link to //p'
7576 echo \"Transforming hard links\"
7577 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7578 tar tvf archive | sed -n 's/.*test_link link to //p'
7581 echo \"Not transforming hard links\"
7582 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7583 tar tvf archive | sed -n 's/.*test_link link to //p'
7586 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7590 TEST_TAR_FORMAT=ustar
7591 export TEST_TAR_FORMAT
7592 TAR_OPTIONS="-H ustar"
7597 echo "hello" > basedir/test
7598 ln basedir/test basedir/test_link
7601 echo "Default transform scope"
7602 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7603 tar tvf archive | sed -n 's/.*test_link link to //p'
7606 echo "Transforming hard links"
7607 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7608 tar tvf archive | sed -n 's/.*test_link link to //p'
7611 echo "Not transforming hard links"
7612 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7613 tar tvf archive | sed -n 's/.*test_link link to //p'
7616 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7617 at_status=$? at_failed=false
7619 at_fn_diff_devnull "$at_stderr" || at_failed=:
7620 echo >>"$at_stdout"; $as_echo "Default transform scope
7622 Transforming hard links
7624 Not transforming hard links
7627 $at_diff - "$at_stdout" || at_failed=:
7628 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7629 $at_failed && at_fn_log_failure
7633 $as_echo "$at_srcdir/xform-h.at:39:
7636 TEST_TAR_FORMAT=posix
7637 export TEST_TAR_FORMAT
7638 TAR_OPTIONS=\"-H posix\"
7643 echo \"hello\" > basedir/test
7644 ln basedir/test basedir/test_link
7647 echo \"Default transform scope\"
7648 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7649 tar tvf archive | sed -n 's/.*test_link link to //p'
7652 echo \"Transforming hard links\"
7653 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7654 tar tvf archive | sed -n 's/.*test_link link to //p'
7657 echo \"Not transforming hard links\"
7658 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7659 tar tvf archive | sed -n 's/.*test_link link to //p'
7662 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7666 TEST_TAR_FORMAT=posix
7667 export TEST_TAR_FORMAT
7668 TAR_OPTIONS="-H posix"
7673 echo "hello" > basedir/test
7674 ln basedir/test basedir/test_link
7677 echo "Default transform scope"
7678 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7679 tar tvf archive | sed -n 's/.*test_link link to //p'
7682 echo "Transforming hard links"
7683 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7684 tar tvf archive | sed -n 's/.*test_link link to //p'
7687 echo "Not transforming hard links"
7688 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7689 tar tvf archive | sed -n 's/.*test_link link to //p'
7692 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7693 at_status=$? at_failed=false
7695 at_fn_diff_devnull "$at_stderr" || at_failed=:
7696 echo >>"$at_stdout"; $as_echo "Default transform scope
7698 Transforming hard links
7700 Not transforming hard links
7703 $at_diff - "$at_stdout" || at_failed=:
7704 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7705 $at_failed && at_fn_log_failure
7709 $as_echo "$at_srcdir/xform-h.at:39:
7713 export TEST_TAR_FORMAT
7714 TAR_OPTIONS=\"-H gnu\"
7719 echo \"hello\" > basedir/test
7720 ln basedir/test basedir/test_link
7723 echo \"Default transform scope\"
7724 tar cf archive --transform=\"s,^basedir/,,\" basedir/test basedir/test_link
7725 tar tvf archive | sed -n 's/.*test_link link to //p'
7728 echo \"Transforming hard links\"
7729 tar cf archive --transform=\"s,^basedir/,,h\" basedir/test basedir/test_link
7730 tar tvf archive | sed -n 's/.*test_link link to //p'
7733 echo \"Not transforming hard links\"
7734 tar cf archive --transform=\"s,^basedir/,,H\" basedir/test basedir/test_link
7735 tar tvf archive | sed -n 's/.*test_link link to //p'
7738 at_fn_check_prepare_notrace 'an embedded newline' "xform-h.at:39"
7743 export TEST_TAR_FORMAT
7744 TAR_OPTIONS="-H gnu"
7749 echo "hello" > basedir/test
7750 ln basedir/test basedir/test_link
7753 echo "Default transform scope"
7754 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
7755 tar tvf archive | sed -n 's/.*test_link link to //p'
7758 echo "Transforming hard links"
7759 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
7760 tar tvf archive | sed -n 's/.*test_link link to //p'
7763 echo "Not transforming hard links"
7764 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
7765 tar tvf archive | sed -n 's/.*test_link link to //p'
7768 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7769 at_status=$? at_failed=false
7771 at_fn_diff_devnull "$at_stderr" || at_failed=:
7772 echo >>"$at_stdout"; $as_echo "Default transform scope
7774 Transforming hard links
7776 Not transforming hard links
7779 $at_diff - "$at_stdout" || at_failed=:
7780 at_fn_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
7781 $at_failed && at_fn_log_failure
7790 $at_times_p && times >"$at_times_file"
7791 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7792 read at_status <"$at_status_file"
7795 at_fn_group_banner 34 'xform01.at:26' \
7796 "transformations and GNU volume labels" " " 6
7798 test -f $XFAILFILE && at_xfail=yes
7800 $as_echo "34. $at_setup_line: testing $at_desc ..."
7808 $as_echo "$at_srcdir/xform01.at:29:
7812 export TEST_TAR_FORMAT
7813 TAR_OPTIONS=\"-H gnu\"
7818 tar -cf archive.tar -V /label/ file
7821 at_fn_check_prepare_notrace 'an embedded newline' "xform01.at:29"
7826 export TEST_TAR_FORMAT
7827 TAR_OPTIONS="-H gnu"
7832 tar -cf archive.tar -V /label/ file
7835 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7836 at_status=$? at_failed=false
7838 at_fn_diff_devnull "$at_stderr" || at_failed=:
7839 echo >>"$at_stdout"; $as_echo "/label/
7842 $at_diff - "$at_stdout" || at_failed=:
7843 at_fn_check_status 0 $at_status "$at_srcdir/xform01.at:29"
7844 $at_failed && at_fn_log_failure
7851 $at_times_p && times >"$at_times_file"
7852 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7853 read at_status <"$at_status_file"
7856 at_fn_group_banner 35 'exclude.at:23' \
7859 test -f $XFAILFILE && at_xfail=yes
7861 $as_echo "35. $at_setup_line: testing $at_desc ..."
7869 $as_echo "$at_srcdir/exclude.at:26:
7872 TEST_TAR_FORMAT=ustar
7873 export TEST_TAR_FORMAT
7874 TAR_OPTIONS=\"-H ustar\"
7879 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
7883 echo blues > dir/blues
7884 echo jazz > dir/jazz
7886 echo tagfile > dir/folk/tagfile
7887 echo sanjuan > dir/folk/sanjuan
7889 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
7890 echo \"test\" > dir/rock/file
7892 for option in exclude-caches exclude-caches-under exclude-caches-all
7894 echo OPTION \$option
7895 tar -cf archive.tar --\$option -v dir 2>err | sort
7898 tar tf archive.tar | sort
7901 for option in exclude-tag exclude-tag-under exclude-tag-all
7903 echo OPTION \$option
7904 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
7907 tar tf archive.tar | sort
7910 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude.at:26"
7914 TEST_TAR_FORMAT=ustar
7915 export TEST_TAR_FORMAT
7916 TAR_OPTIONS="-H ustar"
7921 test -z "`sort < /dev/null 2>&1`" || exit 77
7925 echo blues > dir/blues
7926 echo jazz > dir/jazz
7928 echo tagfile > dir/folk/tagfile
7929 echo sanjuan > dir/folk/sanjuan
7931 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
7932 echo "test" > dir/rock/file
7934 for option in exclude-caches exclude-caches-under exclude-caches-all
7937 tar -cf archive.tar --$option -v dir 2>err | sort
7940 tar tf archive.tar | sort
7943 for option in exclude-tag exclude-tag-under exclude-tag-all
7946 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
7949 tar tf archive.tar | sort
7952 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7953 at_status=$? at_failed=false
7955 at_fn_diff_devnull "$at_stderr" || at_failed=:
7956 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
7964 dir/rock/CACHEDIR.TAG
7965 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
7974 dir/rock/CACHEDIR.TAG
7975 OPTION exclude-caches-under
7983 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
7992 OPTION exclude-caches-all
7999 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
8014 dir/rock/CACHEDIR.TAG
8016 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
8024 dir/rock/CACHEDIR.TAG
8026 OPTION exclude-tag-under
8032 dir/rock/CACHEDIR.TAG
8034 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
8041 dir/rock/CACHEDIR.TAG
8043 OPTION exclude-tag-all
8048 dir/rock/CACHEDIR.TAG
8050 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
8056 dir/rock/CACHEDIR.TAG
8059 $at_diff - "$at_stdout" || at_failed=:
8060 at_fn_check_status 0 $at_status "$at_srcdir/exclude.at:26"
8061 $at_failed && at_fn_log_failure
8068 $at_times_p && times >"$at_times_file"
8069 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8070 read at_status <"$at_status_file"
8073 at_fn_group_banner 36 'exclude01.at:19' \
8074 "exclude wildcards" " " 7
8076 test -f $XFAILFILE && at_xfail=yes
8078 $as_echo "36. $at_setup_line: testing $at_desc ..."
8086 $as_echo "$at_srcdir/exclude01.at:22:
8090 export TEST_TAR_FORMAT
8091 TAR_OPTIONS=\"-H v7\"
8096 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8100 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8101 touch testdir/dir1/file1
8102 touch testdir/dir1/\\*
8103 touch testdir/dir2/file2
8104 touch testdir/dir2/\\*
8105 touch testdir/dir3/file3
8106 touch testdir/dir3/\\*
8108 tar cf archive --exclude=testdir/dir1/\\* \\
8110 --exclude=testdir/dir2/\\* \\
8112 --exclude=testdir/dir3/\\* \\
8114 tar tf archive | sort
8117 tar cf archive testdir
8118 tar t \"testdir/dir1/*\" -f archive | sort
8121 tar cf archive testdir/dir1
8122 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8125 tar cf archive testdir
8126 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8130 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8135 export TEST_TAR_FORMAT
8141 test -z "`sort < /dev/null 2>&1`" || exit 77
8145 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8146 touch testdir/dir1/file1
8147 touch testdir/dir1/\*
8148 touch testdir/dir2/file2
8149 touch testdir/dir2/\*
8150 touch testdir/dir3/file3
8151 touch testdir/dir3/\*
8153 tar cf archive --exclude=testdir/dir1/\* \
8155 --exclude=testdir/dir2/\* \
8157 --exclude=testdir/dir3/\* \
8159 tar tf archive | sort
8162 tar cf archive testdir
8163 tar t "testdir/dir1/*" -f archive | sort
8166 tar cf archive testdir/dir1
8167 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8170 tar cf archive testdir
8171 tar t --wildcards "testdir/dir1/*" -f archive | sort
8175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8176 at_status=$? at_failed=false
8178 at_fn_diff_devnull "$at_stderr" || at_failed=:
8179 echo >>"$at_stdout"; $as_echo "testdir/
8192 $at_diff - "$at_stdout" || at_failed=:
8193 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8194 $at_failed && at_fn_log_failure
8198 $as_echo "$at_srcdir/exclude01.at:22:
8201 TEST_TAR_FORMAT=oldgnu
8202 export TEST_TAR_FORMAT
8203 TAR_OPTIONS=\"-H oldgnu\"
8208 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8212 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8213 touch testdir/dir1/file1
8214 touch testdir/dir1/\\*
8215 touch testdir/dir2/file2
8216 touch testdir/dir2/\\*
8217 touch testdir/dir3/file3
8218 touch testdir/dir3/\\*
8220 tar cf archive --exclude=testdir/dir1/\\* \\
8222 --exclude=testdir/dir2/\\* \\
8224 --exclude=testdir/dir3/\\* \\
8226 tar tf archive | sort
8229 tar cf archive testdir
8230 tar t \"testdir/dir1/*\" -f archive | sort
8233 tar cf archive testdir/dir1
8234 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8237 tar cf archive testdir
8238 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8242 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8246 TEST_TAR_FORMAT=oldgnu
8247 export TEST_TAR_FORMAT
8248 TAR_OPTIONS="-H oldgnu"
8253 test -z "`sort < /dev/null 2>&1`" || exit 77
8257 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8258 touch testdir/dir1/file1
8259 touch testdir/dir1/\*
8260 touch testdir/dir2/file2
8261 touch testdir/dir2/\*
8262 touch testdir/dir3/file3
8263 touch testdir/dir3/\*
8265 tar cf archive --exclude=testdir/dir1/\* \
8267 --exclude=testdir/dir2/\* \
8269 --exclude=testdir/dir3/\* \
8271 tar tf archive | sort
8274 tar cf archive testdir
8275 tar t "testdir/dir1/*" -f archive | sort
8278 tar cf archive testdir/dir1
8279 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8282 tar cf archive testdir
8283 tar t --wildcards "testdir/dir1/*" -f archive | sort
8287 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8288 at_status=$? at_failed=false
8290 at_fn_diff_devnull "$at_stderr" || at_failed=:
8291 echo >>"$at_stdout"; $as_echo "testdir/
8304 $at_diff - "$at_stdout" || at_failed=:
8305 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8306 $at_failed && at_fn_log_failure
8310 $as_echo "$at_srcdir/exclude01.at:22:
8313 TEST_TAR_FORMAT=ustar
8314 export TEST_TAR_FORMAT
8315 TAR_OPTIONS=\"-H ustar\"
8320 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8324 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8325 touch testdir/dir1/file1
8326 touch testdir/dir1/\\*
8327 touch testdir/dir2/file2
8328 touch testdir/dir2/\\*
8329 touch testdir/dir3/file3
8330 touch testdir/dir3/\\*
8332 tar cf archive --exclude=testdir/dir1/\\* \\
8334 --exclude=testdir/dir2/\\* \\
8336 --exclude=testdir/dir3/\\* \\
8338 tar tf archive | sort
8341 tar cf archive testdir
8342 tar t \"testdir/dir1/*\" -f archive | sort
8345 tar cf archive testdir/dir1
8346 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8349 tar cf archive testdir
8350 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8354 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8358 TEST_TAR_FORMAT=ustar
8359 export TEST_TAR_FORMAT
8360 TAR_OPTIONS="-H ustar"
8365 test -z "`sort < /dev/null 2>&1`" || exit 77
8369 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8370 touch testdir/dir1/file1
8371 touch testdir/dir1/\*
8372 touch testdir/dir2/file2
8373 touch testdir/dir2/\*
8374 touch testdir/dir3/file3
8375 touch testdir/dir3/\*
8377 tar cf archive --exclude=testdir/dir1/\* \
8379 --exclude=testdir/dir2/\* \
8381 --exclude=testdir/dir3/\* \
8383 tar tf archive | sort
8386 tar cf archive testdir
8387 tar t "testdir/dir1/*" -f archive | sort
8390 tar cf archive testdir/dir1
8391 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8394 tar cf archive testdir
8395 tar t --wildcards "testdir/dir1/*" -f archive | sort
8399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8400 at_status=$? at_failed=false
8402 at_fn_diff_devnull "$at_stderr" || at_failed=:
8403 echo >>"$at_stdout"; $as_echo "testdir/
8416 $at_diff - "$at_stdout" || at_failed=:
8417 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8418 $at_failed && at_fn_log_failure
8422 $as_echo "$at_srcdir/exclude01.at:22:
8425 TEST_TAR_FORMAT=posix
8426 export TEST_TAR_FORMAT
8427 TAR_OPTIONS=\"-H posix\"
8432 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8436 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8437 touch testdir/dir1/file1
8438 touch testdir/dir1/\\*
8439 touch testdir/dir2/file2
8440 touch testdir/dir2/\\*
8441 touch testdir/dir3/file3
8442 touch testdir/dir3/\\*
8444 tar cf archive --exclude=testdir/dir1/\\* \\
8446 --exclude=testdir/dir2/\\* \\
8448 --exclude=testdir/dir3/\\* \\
8450 tar tf archive | sort
8453 tar cf archive testdir
8454 tar t \"testdir/dir1/*\" -f archive | sort
8457 tar cf archive testdir/dir1
8458 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8461 tar cf archive testdir
8462 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8466 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8470 TEST_TAR_FORMAT=posix
8471 export TEST_TAR_FORMAT
8472 TAR_OPTIONS="-H posix"
8477 test -z "`sort < /dev/null 2>&1`" || exit 77
8481 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8482 touch testdir/dir1/file1
8483 touch testdir/dir1/\*
8484 touch testdir/dir2/file2
8485 touch testdir/dir2/\*
8486 touch testdir/dir3/file3
8487 touch testdir/dir3/\*
8489 tar cf archive --exclude=testdir/dir1/\* \
8491 --exclude=testdir/dir2/\* \
8493 --exclude=testdir/dir3/\* \
8495 tar tf archive | sort
8498 tar cf archive testdir
8499 tar t "testdir/dir1/*" -f archive | sort
8502 tar cf archive testdir/dir1
8503 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8506 tar cf archive testdir
8507 tar t --wildcards "testdir/dir1/*" -f archive | sort
8511 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8512 at_status=$? at_failed=false
8514 at_fn_diff_devnull "$at_stderr" || at_failed=:
8515 echo >>"$at_stdout"; $as_echo "testdir/
8528 $at_diff - "$at_stdout" || at_failed=:
8529 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8530 $at_failed && at_fn_log_failure
8534 $as_echo "$at_srcdir/exclude01.at:22:
8538 export TEST_TAR_FORMAT
8539 TAR_OPTIONS=\"-H gnu\"
8544 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8548 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8549 touch testdir/dir1/file1
8550 touch testdir/dir1/\\*
8551 touch testdir/dir2/file2
8552 touch testdir/dir2/\\*
8553 touch testdir/dir3/file3
8554 touch testdir/dir3/\\*
8556 tar cf archive --exclude=testdir/dir1/\\* \\
8558 --exclude=testdir/dir2/\\* \\
8560 --exclude=testdir/dir3/\\* \\
8562 tar tf archive | sort
8565 tar cf archive testdir
8566 tar t \"testdir/dir1/*\" -f archive | sort
8569 tar cf archive testdir/dir1
8570 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
8573 tar cf archive testdir
8574 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
8578 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude01.at:22"
8583 export TEST_TAR_FORMAT
8584 TAR_OPTIONS="-H gnu"
8589 test -z "`sort < /dev/null 2>&1`" || exit 77
8593 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8594 touch testdir/dir1/file1
8595 touch testdir/dir1/\*
8596 touch testdir/dir2/file2
8597 touch testdir/dir2/\*
8598 touch testdir/dir3/file3
8599 touch testdir/dir3/\*
8601 tar cf archive --exclude=testdir/dir1/\* \
8603 --exclude=testdir/dir2/\* \
8605 --exclude=testdir/dir3/\* \
8607 tar tf archive | sort
8610 tar cf archive testdir
8611 tar t "testdir/dir1/*" -f archive | sort
8614 tar cf archive testdir/dir1
8615 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
8618 tar cf archive testdir
8619 tar t --wildcards "testdir/dir1/*" -f archive | sort
8623 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8624 at_status=$? at_failed=false
8626 at_fn_diff_devnull "$at_stderr" || at_failed=:
8627 echo >>"$at_stdout"; $as_echo "testdir/
8640 $at_diff - "$at_stdout" || at_failed=:
8641 at_fn_check_status 0 $at_status "$at_srcdir/exclude01.at:22"
8642 $at_failed && at_fn_log_failure
8649 $at_times_p && times >"$at_times_file"
8650 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8651 read at_status <"$at_status_file"
8654 at_fn_group_banner 37 'exclude02.at:19' \
8655 "exclude: anchoring" " " 7
8657 test -f $XFAILFILE && at_xfail=yes
8659 $as_echo "37. $at_setup_line: testing $at_desc ..."
8667 $as_echo "$at_srcdir/exclude02.at:22:
8671 export TEST_TAR_FORMAT
8672 TAR_OPTIONS=\"-H v7\"
8677 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8683 touch testdir/file1.txt
8686 tar cf archive --exclude=\"file1.txt\" \\
8688 tar tf archive | sort
8691 tar cf archive --no-anchored \\
8692 --exclude=\"file1.txt\" \\
8694 tar tf archive | sort
8697 tar cf archive --anchored \\
8698 --exclude=\"file1.txt\" \\
8700 tar tf archive | sort
8703 tar cf archive testdir file1.txt
8704 tar t \"file1.txt\" -f archive | sort
8707 tar t --no-anchored \"file1.txt\" -f archive | sort
8710 tar t --anchored \"file1.txt\" -f archive | sort
8712 rm -rf testdir file1.txt
8715 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8720 export TEST_TAR_FORMAT
8726 test -z "`sort < /dev/null 2>&1`" || exit 77
8732 touch testdir/file1.txt
8735 tar cf archive --exclude="file1.txt" \
8737 tar tf archive | sort
8740 tar cf archive --no-anchored \
8741 --exclude="file1.txt" \
8743 tar tf archive | sort
8746 tar cf archive --anchored \
8747 --exclude="file1.txt" \
8749 tar tf archive | sort
8752 tar cf archive testdir file1.txt
8753 tar t "file1.txt" -f archive | sort
8756 tar t --no-anchored "file1.txt" -f archive | sort
8759 tar t --anchored "file1.txt" -f archive | sort
8761 rm -rf testdir file1.txt
8764 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8765 at_status=$? at_failed=false
8767 at_fn_diff_devnull "$at_stderr" || at_failed=:
8768 echo >>"$at_stdout"; $as_echo "testdir/
8785 $at_diff - "$at_stdout" || at_failed=:
8786 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8787 $at_failed && at_fn_log_failure
8791 $as_echo "$at_srcdir/exclude02.at:22:
8794 TEST_TAR_FORMAT=oldgnu
8795 export TEST_TAR_FORMAT
8796 TAR_OPTIONS=\"-H oldgnu\"
8801 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8807 touch testdir/file1.txt
8810 tar cf archive --exclude=\"file1.txt\" \\
8812 tar tf archive | sort
8815 tar cf archive --no-anchored \\
8816 --exclude=\"file1.txt\" \\
8818 tar tf archive | sort
8821 tar cf archive --anchored \\
8822 --exclude=\"file1.txt\" \\
8824 tar tf archive | sort
8827 tar cf archive testdir file1.txt
8828 tar t \"file1.txt\" -f archive | sort
8831 tar t --no-anchored \"file1.txt\" -f archive | sort
8834 tar t --anchored \"file1.txt\" -f archive | sort
8836 rm -rf testdir file1.txt
8839 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8843 TEST_TAR_FORMAT=oldgnu
8844 export TEST_TAR_FORMAT
8845 TAR_OPTIONS="-H oldgnu"
8850 test -z "`sort < /dev/null 2>&1`" || exit 77
8856 touch testdir/file1.txt
8859 tar cf archive --exclude="file1.txt" \
8861 tar tf archive | sort
8864 tar cf archive --no-anchored \
8865 --exclude="file1.txt" \
8867 tar tf archive | sort
8870 tar cf archive --anchored \
8871 --exclude="file1.txt" \
8873 tar tf archive | sort
8876 tar cf archive testdir file1.txt
8877 tar t "file1.txt" -f archive | sort
8880 tar t --no-anchored "file1.txt" -f archive | sort
8883 tar t --anchored "file1.txt" -f archive | sort
8885 rm -rf testdir file1.txt
8888 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8889 at_status=$? at_failed=false
8891 at_fn_diff_devnull "$at_stderr" || at_failed=:
8892 echo >>"$at_stdout"; $as_echo "testdir/
8909 $at_diff - "$at_stdout" || at_failed=:
8910 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
8911 $at_failed && at_fn_log_failure
8915 $as_echo "$at_srcdir/exclude02.at:22:
8918 TEST_TAR_FORMAT=ustar
8919 export TEST_TAR_FORMAT
8920 TAR_OPTIONS=\"-H ustar\"
8925 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
8931 touch testdir/file1.txt
8934 tar cf archive --exclude=\"file1.txt\" \\
8936 tar tf archive | sort
8939 tar cf archive --no-anchored \\
8940 --exclude=\"file1.txt\" \\
8942 tar tf archive | sort
8945 tar cf archive --anchored \\
8946 --exclude=\"file1.txt\" \\
8948 tar tf archive | sort
8951 tar cf archive testdir file1.txt
8952 tar t \"file1.txt\" -f archive | sort
8955 tar t --no-anchored \"file1.txt\" -f archive | sort
8958 tar t --anchored \"file1.txt\" -f archive | sort
8960 rm -rf testdir file1.txt
8963 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
8967 TEST_TAR_FORMAT=ustar
8968 export TEST_TAR_FORMAT
8969 TAR_OPTIONS="-H ustar"
8974 test -z "`sort < /dev/null 2>&1`" || exit 77
8980 touch testdir/file1.txt
8983 tar cf archive --exclude="file1.txt" \
8985 tar tf archive | sort
8988 tar cf archive --no-anchored \
8989 --exclude="file1.txt" \
8991 tar tf archive | sort
8994 tar cf archive --anchored \
8995 --exclude="file1.txt" \
8997 tar tf archive | sort
9000 tar cf archive testdir file1.txt
9001 tar t "file1.txt" -f archive | sort
9004 tar t --no-anchored "file1.txt" -f archive | sort
9007 tar t --anchored "file1.txt" -f archive | sort
9009 rm -rf testdir file1.txt
9012 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9013 at_status=$? at_failed=false
9015 at_fn_diff_devnull "$at_stderr" || at_failed=:
9016 echo >>"$at_stdout"; $as_echo "testdir/
9033 $at_diff - "$at_stdout" || at_failed=:
9034 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
9035 $at_failed && at_fn_log_failure
9039 $as_echo "$at_srcdir/exclude02.at:22:
9042 TEST_TAR_FORMAT=posix
9043 export TEST_TAR_FORMAT
9044 TAR_OPTIONS=\"-H posix\"
9049 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9055 touch testdir/file1.txt
9058 tar cf archive --exclude=\"file1.txt\" \\
9060 tar tf archive | sort
9063 tar cf archive --no-anchored \\
9064 --exclude=\"file1.txt\" \\
9066 tar tf archive | sort
9069 tar cf archive --anchored \\
9070 --exclude=\"file1.txt\" \\
9072 tar tf archive | sort
9075 tar cf archive testdir file1.txt
9076 tar t \"file1.txt\" -f archive | sort
9079 tar t --no-anchored \"file1.txt\" -f archive | sort
9082 tar t --anchored \"file1.txt\" -f archive | sort
9084 rm -rf testdir file1.txt
9087 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
9091 TEST_TAR_FORMAT=posix
9092 export TEST_TAR_FORMAT
9093 TAR_OPTIONS="-H posix"
9098 test -z "`sort < /dev/null 2>&1`" || exit 77
9104 touch testdir/file1.txt
9107 tar cf archive --exclude="file1.txt" \
9109 tar tf archive | sort
9112 tar cf archive --no-anchored \
9113 --exclude="file1.txt" \
9115 tar tf archive | sort
9118 tar cf archive --anchored \
9119 --exclude="file1.txt" \
9121 tar tf archive | sort
9124 tar cf archive testdir file1.txt
9125 tar t "file1.txt" -f archive | sort
9128 tar t --no-anchored "file1.txt" -f archive | sort
9131 tar t --anchored "file1.txt" -f archive | sort
9133 rm -rf testdir file1.txt
9136 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9137 at_status=$? at_failed=false
9139 at_fn_diff_devnull "$at_stderr" || at_failed=:
9140 echo >>"$at_stdout"; $as_echo "testdir/
9157 $at_diff - "$at_stdout" || at_failed=:
9158 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
9159 $at_failed && at_fn_log_failure
9163 $as_echo "$at_srcdir/exclude02.at:22:
9167 export TEST_TAR_FORMAT
9168 TAR_OPTIONS=\"-H gnu\"
9173 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9179 touch testdir/file1.txt
9182 tar cf archive --exclude=\"file1.txt\" \\
9184 tar tf archive | sort
9187 tar cf archive --no-anchored \\
9188 --exclude=\"file1.txt\" \\
9190 tar tf archive | sort
9193 tar cf archive --anchored \\
9194 --exclude=\"file1.txt\" \\
9196 tar tf archive | sort
9199 tar cf archive testdir file1.txt
9200 tar t \"file1.txt\" -f archive | sort
9203 tar t --no-anchored \"file1.txt\" -f archive | sort
9206 tar t --anchored \"file1.txt\" -f archive | sort
9208 rm -rf testdir file1.txt
9211 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude02.at:22"
9216 export TEST_TAR_FORMAT
9217 TAR_OPTIONS="-H gnu"
9222 test -z "`sort < /dev/null 2>&1`" || exit 77
9228 touch testdir/file1.txt
9231 tar cf archive --exclude="file1.txt" \
9233 tar tf archive | sort
9236 tar cf archive --no-anchored \
9237 --exclude="file1.txt" \
9239 tar tf archive | sort
9242 tar cf archive --anchored \
9243 --exclude="file1.txt" \
9245 tar tf archive | sort
9248 tar cf archive testdir file1.txt
9249 tar t "file1.txt" -f archive | sort
9252 tar t --no-anchored "file1.txt" -f archive | sort
9255 tar t --anchored "file1.txt" -f archive | sort
9257 rm -rf testdir file1.txt
9260 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9261 at_status=$? at_failed=false
9263 at_fn_diff_devnull "$at_stderr" || at_failed=:
9264 echo >>"$at_stdout"; $as_echo "testdir/
9281 $at_diff - "$at_stdout" || at_failed=:
9282 at_fn_check_status 0 $at_status "$at_srcdir/exclude02.at:22"
9283 $at_failed && at_fn_log_failure
9290 $at_times_p && times >"$at_times_file"
9291 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9292 read at_status <"$at_status_file"
9295 at_fn_group_banner 38 'exclude03.at:19' \
9296 "exclude: wildcards match slash" " " 7
9298 test -f $XFAILFILE && at_xfail=yes
9300 $as_echo "38. $at_setup_line: testing $at_desc ..."
9308 $as_echo "$at_srcdir/exclude03.at:22:
9312 export TEST_TAR_FORMAT
9313 TAR_OPTIONS=\"-H v7\"
9318 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9322 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9323 touch testdir/\\*f\\*1
9324 touch testdir/dir1/file1
9325 touch testdir/dir1/\\*
9326 touch testdir/dir2/file2
9327 touch testdir/dir2/\\*
9328 touch testdir/dir3/file3
9329 touch testdir/dir3/\\*
9331 tar cf archive --exclude='testdir*f*1' \\
9332 --no-wildcards-match-slash \\
9333 --exclude='testdir*f*2' \\
9334 --wildcards-match-slash \\
9335 --exclude='testdir*f*3' \\
9337 tar tf archive | sort
9340 tar cf archive testdir
9341 tar t --wildcards 'testdir/*f*1' -f archive | sort
9344 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9347 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9352 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9357 export TEST_TAR_FORMAT
9363 test -z "`sort < /dev/null 2>&1`" || exit 77
9367 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9368 touch testdir/\*f\*1
9369 touch testdir/dir1/file1
9370 touch testdir/dir1/\*
9371 touch testdir/dir2/file2
9372 touch testdir/dir2/\*
9373 touch testdir/dir3/file3
9374 touch testdir/dir3/\*
9376 tar cf archive --exclude='testdir*f*1' \
9377 --no-wildcards-match-slash \
9378 --exclude='testdir*f*2' \
9379 --wildcards-match-slash \
9380 --exclude='testdir*f*3' \
9382 tar tf archive | sort
9385 tar cf archive testdir
9386 tar t --wildcards 'testdir/*f*1' -f archive | sort
9389 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9392 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9397 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9398 at_status=$? at_failed=false
9400 at_fn_diff_devnull "$at_stderr" || at_failed=:
9401 echo >>"$at_stdout"; $as_echo "testdir/
9418 $at_diff - "$at_stdout" || at_failed=:
9419 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9420 $at_failed && at_fn_log_failure
9424 $as_echo "$at_srcdir/exclude03.at:22:
9427 TEST_TAR_FORMAT=oldgnu
9428 export TEST_TAR_FORMAT
9429 TAR_OPTIONS=\"-H oldgnu\"
9434 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9438 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9439 touch testdir/\\*f\\*1
9440 touch testdir/dir1/file1
9441 touch testdir/dir1/\\*
9442 touch testdir/dir2/file2
9443 touch testdir/dir2/\\*
9444 touch testdir/dir3/file3
9445 touch testdir/dir3/\\*
9447 tar cf archive --exclude='testdir*f*1' \\
9448 --no-wildcards-match-slash \\
9449 --exclude='testdir*f*2' \\
9450 --wildcards-match-slash \\
9451 --exclude='testdir*f*3' \\
9453 tar tf archive | sort
9456 tar cf archive testdir
9457 tar t --wildcards 'testdir/*f*1' -f archive | sort
9460 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9463 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9468 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9472 TEST_TAR_FORMAT=oldgnu
9473 export TEST_TAR_FORMAT
9474 TAR_OPTIONS="-H oldgnu"
9479 test -z "`sort < /dev/null 2>&1`" || exit 77
9483 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9484 touch testdir/\*f\*1
9485 touch testdir/dir1/file1
9486 touch testdir/dir1/\*
9487 touch testdir/dir2/file2
9488 touch testdir/dir2/\*
9489 touch testdir/dir3/file3
9490 touch testdir/dir3/\*
9492 tar cf archive --exclude='testdir*f*1' \
9493 --no-wildcards-match-slash \
9494 --exclude='testdir*f*2' \
9495 --wildcards-match-slash \
9496 --exclude='testdir*f*3' \
9498 tar tf archive | sort
9501 tar cf archive testdir
9502 tar t --wildcards 'testdir/*f*1' -f archive | sort
9505 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9508 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9513 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9514 at_status=$? at_failed=false
9516 at_fn_diff_devnull "$at_stderr" || at_failed=:
9517 echo >>"$at_stdout"; $as_echo "testdir/
9534 $at_diff - "$at_stdout" || at_failed=:
9535 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9536 $at_failed && at_fn_log_failure
9540 $as_echo "$at_srcdir/exclude03.at:22:
9543 TEST_TAR_FORMAT=ustar
9544 export TEST_TAR_FORMAT
9545 TAR_OPTIONS=\"-H ustar\"
9550 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9554 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9555 touch testdir/\\*f\\*1
9556 touch testdir/dir1/file1
9557 touch testdir/dir1/\\*
9558 touch testdir/dir2/file2
9559 touch testdir/dir2/\\*
9560 touch testdir/dir3/file3
9561 touch testdir/dir3/\\*
9563 tar cf archive --exclude='testdir*f*1' \\
9564 --no-wildcards-match-slash \\
9565 --exclude='testdir*f*2' \\
9566 --wildcards-match-slash \\
9567 --exclude='testdir*f*3' \\
9569 tar tf archive | sort
9572 tar cf archive testdir
9573 tar t --wildcards 'testdir/*f*1' -f archive | sort
9576 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9579 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9584 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9588 TEST_TAR_FORMAT=ustar
9589 export TEST_TAR_FORMAT
9590 TAR_OPTIONS="-H ustar"
9595 test -z "`sort < /dev/null 2>&1`" || exit 77
9599 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9600 touch testdir/\*f\*1
9601 touch testdir/dir1/file1
9602 touch testdir/dir1/\*
9603 touch testdir/dir2/file2
9604 touch testdir/dir2/\*
9605 touch testdir/dir3/file3
9606 touch testdir/dir3/\*
9608 tar cf archive --exclude='testdir*f*1' \
9609 --no-wildcards-match-slash \
9610 --exclude='testdir*f*2' \
9611 --wildcards-match-slash \
9612 --exclude='testdir*f*3' \
9614 tar tf archive | sort
9617 tar cf archive testdir
9618 tar t --wildcards 'testdir/*f*1' -f archive | sort
9621 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9624 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9629 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9630 at_status=$? at_failed=false
9632 at_fn_diff_devnull "$at_stderr" || at_failed=:
9633 echo >>"$at_stdout"; $as_echo "testdir/
9650 $at_diff - "$at_stdout" || at_failed=:
9651 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9652 $at_failed && at_fn_log_failure
9656 $as_echo "$at_srcdir/exclude03.at:22:
9659 TEST_TAR_FORMAT=posix
9660 export TEST_TAR_FORMAT
9661 TAR_OPTIONS=\"-H posix\"
9666 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9670 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9671 touch testdir/\\*f\\*1
9672 touch testdir/dir1/file1
9673 touch testdir/dir1/\\*
9674 touch testdir/dir2/file2
9675 touch testdir/dir2/\\*
9676 touch testdir/dir3/file3
9677 touch testdir/dir3/\\*
9679 tar cf archive --exclude='testdir*f*1' \\
9680 --no-wildcards-match-slash \\
9681 --exclude='testdir*f*2' \\
9682 --wildcards-match-slash \\
9683 --exclude='testdir*f*3' \\
9685 tar tf archive | sort
9688 tar cf archive testdir
9689 tar t --wildcards 'testdir/*f*1' -f archive | sort
9692 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9695 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9700 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9704 TEST_TAR_FORMAT=posix
9705 export TEST_TAR_FORMAT
9706 TAR_OPTIONS="-H posix"
9711 test -z "`sort < /dev/null 2>&1`" || exit 77
9715 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9716 touch testdir/\*f\*1
9717 touch testdir/dir1/file1
9718 touch testdir/dir1/\*
9719 touch testdir/dir2/file2
9720 touch testdir/dir2/\*
9721 touch testdir/dir3/file3
9722 touch testdir/dir3/\*
9724 tar cf archive --exclude='testdir*f*1' \
9725 --no-wildcards-match-slash \
9726 --exclude='testdir*f*2' \
9727 --wildcards-match-slash \
9728 --exclude='testdir*f*3' \
9730 tar tf archive | sort
9733 tar cf archive testdir
9734 tar t --wildcards 'testdir/*f*1' -f archive | sort
9737 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9740 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9745 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9746 at_status=$? at_failed=false
9748 at_fn_diff_devnull "$at_stderr" || at_failed=:
9749 echo >>"$at_stdout"; $as_echo "testdir/
9766 $at_diff - "$at_stdout" || at_failed=:
9767 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9768 $at_failed && at_fn_log_failure
9772 $as_echo "$at_srcdir/exclude03.at:22:
9776 export TEST_TAR_FORMAT
9777 TAR_OPTIONS=\"-H gnu\"
9782 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9786 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9787 touch testdir/\\*f\\*1
9788 touch testdir/dir1/file1
9789 touch testdir/dir1/\\*
9790 touch testdir/dir2/file2
9791 touch testdir/dir2/\\*
9792 touch testdir/dir3/file3
9793 touch testdir/dir3/\\*
9795 tar cf archive --exclude='testdir*f*1' \\
9796 --no-wildcards-match-slash \\
9797 --exclude='testdir*f*2' \\
9798 --wildcards-match-slash \\
9799 --exclude='testdir*f*3' \\
9801 tar tf archive | sort
9804 tar cf archive testdir
9805 tar t --wildcards 'testdir/*f*1' -f archive | sort
9808 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9811 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9816 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude03.at:22"
9821 export TEST_TAR_FORMAT
9822 TAR_OPTIONS="-H gnu"
9827 test -z "`sort < /dev/null 2>&1`" || exit 77
9831 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
9832 touch testdir/\*f\*1
9833 touch testdir/dir1/file1
9834 touch testdir/dir1/\*
9835 touch testdir/dir2/file2
9836 touch testdir/dir2/\*
9837 touch testdir/dir3/file3
9838 touch testdir/dir3/\*
9840 tar cf archive --exclude='testdir*f*1' \
9841 --no-wildcards-match-slash \
9842 --exclude='testdir*f*2' \
9843 --wildcards-match-slash \
9844 --exclude='testdir*f*3' \
9846 tar tf archive | sort
9849 tar cf archive testdir
9850 tar t --wildcards 'testdir/*f*1' -f archive | sort
9853 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
9856 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
9861 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9862 at_status=$? at_failed=false
9864 at_fn_diff_devnull "$at_stderr" || at_failed=:
9865 echo >>"$at_stdout"; $as_echo "testdir/
9882 $at_diff - "$at_stdout" || at_failed=:
9883 at_fn_check_status 0 $at_status "$at_srcdir/exclude03.at:22"
9884 $at_failed && at_fn_log_failure
9891 $at_times_p && times >"$at_times_file"
9892 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9893 read at_status <"$at_status_file"
9896 at_fn_group_banner 39 'exclude04.at:19' \
9897 "exclude: case insensitive" " " 7
9899 test -f $XFAILFILE && at_xfail=yes
9901 $as_echo "39. $at_setup_line: testing $at_desc ..."
9909 $as_echo "$at_srcdir/exclude04.at:22:
9913 export TEST_TAR_FORMAT
9914 TAR_OPTIONS=\"-H v7\"
9919 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
9923 mkdir -p testdir/dir
9928 touch testdir/dir/File1
9929 touch testdir/dir/File2
9930 touch testdir/dir/File3
9931 touch testdir/dir/File4
9933 tar cf archive --exclude=FILE2 \\
9941 tar tf archive | sort
9944 tar cf archive testdir
9945 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9948 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9951 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9956 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
9961 export TEST_TAR_FORMAT
9967 test -z "`sort < /dev/null 2>&1`" || exit 77
9971 mkdir -p testdir/dir
9976 touch testdir/dir/File1
9977 touch testdir/dir/File2
9978 touch testdir/dir/File3
9979 touch testdir/dir/File4
9981 tar cf archive --exclude=FILE2 \
9989 tar tf archive | sort
9992 tar cf archive testdir
9993 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9996 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9999 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10005 at_status=$? at_failed=false
10007 at_fn_diff_devnull "$at_stderr" || at_failed=:
10008 echo >>"$at_stdout"; $as_echo "testdir/
10022 $at_diff - "$at_stdout" || at_failed=:
10023 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10024 $at_failed && at_fn_log_failure
10028 $as_echo "$at_srcdir/exclude04.at:22:
10031 TEST_TAR_FORMAT=oldgnu
10032 export TEST_TAR_FORMAT
10033 TAR_OPTIONS=\"-H oldgnu\"
10038 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10042 mkdir -p testdir/dir
10043 touch testdir/file1
10044 touch testdir/file2
10045 touch testdir/file3
10046 touch testdir/file4
10047 touch testdir/dir/File1
10048 touch testdir/dir/File2
10049 touch testdir/dir/File3
10050 touch testdir/dir/File4
10052 tar cf archive --exclude=FILE2 \\
10056 --no-ignore-case \\
10060 tar tf archive | sort
10063 tar cf archive testdir
10064 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10067 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10070 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10075 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
10079 TEST_TAR_FORMAT=oldgnu
10080 export TEST_TAR_FORMAT
10081 TAR_OPTIONS="-H oldgnu"
10086 test -z "`sort < /dev/null 2>&1`" || exit 77
10090 mkdir -p testdir/dir
10091 touch testdir/file1
10092 touch testdir/file2
10093 touch testdir/file3
10094 touch testdir/file4
10095 touch testdir/dir/File1
10096 touch testdir/dir/File2
10097 touch testdir/dir/File3
10098 touch testdir/dir/File4
10100 tar cf archive --exclude=FILE2 \
10108 tar tf archive | sort
10111 tar cf archive testdir
10112 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10115 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10118 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10123 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10124 at_status=$? at_failed=false
10126 at_fn_diff_devnull "$at_stderr" || at_failed=:
10127 echo >>"$at_stdout"; $as_echo "testdir/
10141 $at_diff - "$at_stdout" || at_failed=:
10142 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10143 $at_failed && at_fn_log_failure
10147 $as_echo "$at_srcdir/exclude04.at:22:
10150 TEST_TAR_FORMAT=ustar
10151 export TEST_TAR_FORMAT
10152 TAR_OPTIONS=\"-H ustar\"
10157 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10161 mkdir -p testdir/dir
10162 touch testdir/file1
10163 touch testdir/file2
10164 touch testdir/file3
10165 touch testdir/file4
10166 touch testdir/dir/File1
10167 touch testdir/dir/File2
10168 touch testdir/dir/File3
10169 touch testdir/dir/File4
10171 tar cf archive --exclude=FILE2 \\
10175 --no-ignore-case \\
10179 tar tf archive | sort
10182 tar cf archive testdir
10183 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10186 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10189 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10194 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
10198 TEST_TAR_FORMAT=ustar
10199 export TEST_TAR_FORMAT
10200 TAR_OPTIONS="-H ustar"
10205 test -z "`sort < /dev/null 2>&1`" || exit 77
10209 mkdir -p testdir/dir
10210 touch testdir/file1
10211 touch testdir/file2
10212 touch testdir/file3
10213 touch testdir/file4
10214 touch testdir/dir/File1
10215 touch testdir/dir/File2
10216 touch testdir/dir/File3
10217 touch testdir/dir/File4
10219 tar cf archive --exclude=FILE2 \
10227 tar tf archive | sort
10230 tar cf archive testdir
10231 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10234 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10237 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10242 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10243 at_status=$? at_failed=false
10245 at_fn_diff_devnull "$at_stderr" || at_failed=:
10246 echo >>"$at_stdout"; $as_echo "testdir/
10260 $at_diff - "$at_stdout" || at_failed=:
10261 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10262 $at_failed && at_fn_log_failure
10266 $as_echo "$at_srcdir/exclude04.at:22:
10269 TEST_TAR_FORMAT=posix
10270 export TEST_TAR_FORMAT
10271 TAR_OPTIONS=\"-H posix\"
10276 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10280 mkdir -p testdir/dir
10281 touch testdir/file1
10282 touch testdir/file2
10283 touch testdir/file3
10284 touch testdir/file4
10285 touch testdir/dir/File1
10286 touch testdir/dir/File2
10287 touch testdir/dir/File3
10288 touch testdir/dir/File4
10290 tar cf archive --exclude=FILE2 \\
10294 --no-ignore-case \\
10298 tar tf archive | sort
10301 tar cf archive testdir
10302 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10305 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10308 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10313 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
10317 TEST_TAR_FORMAT=posix
10318 export TEST_TAR_FORMAT
10319 TAR_OPTIONS="-H posix"
10324 test -z "`sort < /dev/null 2>&1`" || exit 77
10328 mkdir -p testdir/dir
10329 touch testdir/file1
10330 touch testdir/file2
10331 touch testdir/file3
10332 touch testdir/file4
10333 touch testdir/dir/File1
10334 touch testdir/dir/File2
10335 touch testdir/dir/File3
10336 touch testdir/dir/File4
10338 tar cf archive --exclude=FILE2 \
10346 tar tf archive | sort
10349 tar cf archive testdir
10350 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10353 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10356 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10361 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10362 at_status=$? at_failed=false
10364 at_fn_diff_devnull "$at_stderr" || at_failed=:
10365 echo >>"$at_stdout"; $as_echo "testdir/
10379 $at_diff - "$at_stdout" || at_failed=:
10380 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10381 $at_failed && at_fn_log_failure
10385 $as_echo "$at_srcdir/exclude04.at:22:
10388 TEST_TAR_FORMAT=gnu
10389 export TEST_TAR_FORMAT
10390 TAR_OPTIONS=\"-H gnu\"
10395 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10399 mkdir -p testdir/dir
10400 touch testdir/file1
10401 touch testdir/file2
10402 touch testdir/file3
10403 touch testdir/file4
10404 touch testdir/dir/File1
10405 touch testdir/dir/File2
10406 touch testdir/dir/File3
10407 touch testdir/dir/File4
10409 tar cf archive --exclude=FILE2 \\
10413 --no-ignore-case \\
10417 tar tf archive | sort
10420 tar cf archive testdir
10421 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10424 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10427 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10432 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude04.at:22"
10436 TEST_TAR_FORMAT=gnu
10437 export TEST_TAR_FORMAT
10438 TAR_OPTIONS="-H gnu"
10443 test -z "`sort < /dev/null 2>&1`" || exit 77
10447 mkdir -p testdir/dir
10448 touch testdir/file1
10449 touch testdir/file2
10450 touch testdir/file3
10451 touch testdir/file4
10452 touch testdir/dir/File1
10453 touch testdir/dir/File2
10454 touch testdir/dir/File3
10455 touch testdir/dir/File4
10457 tar cf archive --exclude=FILE2 \
10465 tar tf archive | sort
10468 tar cf archive testdir
10469 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
10472 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
10475 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
10480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10481 at_status=$? at_failed=false
10483 at_fn_diff_devnull "$at_stderr" || at_failed=:
10484 echo >>"$at_stdout"; $as_echo "testdir/
10498 $at_diff - "$at_stdout" || at_failed=:
10499 at_fn_check_status 0 $at_status "$at_srcdir/exclude04.at:22"
10500 $at_failed && at_fn_log_failure
10507 $at_times_p && times >"$at_times_file"
10508 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10509 read at_status <"$at_status_file"
10512 at_fn_group_banner 40 'exclude05.at:21' \
10513 "exclude: lots of excludes" " " 7
10515 test -f $XFAILFILE && at_xfail=yes
10517 $as_echo "40. $at_setup_line: testing $at_desc ..."
10525 $as_echo "$at_srcdir/exclude05.at:24:
10529 export TEST_TAR_FORMAT
10530 TAR_OPTIONS=\"-H v7\"
10535 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10538 rm -rf testdir exclfile
10540 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10543 genfile --file \$name
10546 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10548 tar cf archive --anchored --exclude-from=exclfile \\
10550 tar tf archive | sort
10553 tar cf archive --exclude-from=exclfile \\
10555 tar tf archive | sort
10557 rm -rf testdir exclfile
10560 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10565 export TEST_TAR_FORMAT
10566 TAR_OPTIONS="-H v7"
10571 test -z "`sort < /dev/null 2>&1`" || exit 77
10574 rm -rf testdir exclfile
10576 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10579 genfile --file $name
10582 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10584 tar cf archive --anchored --exclude-from=exclfile \
10586 tar tf archive | sort
10589 tar cf archive --exclude-from=exclfile \
10591 tar tf archive | sort
10593 rm -rf testdir exclfile
10596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10597 at_status=$? at_failed=false
10599 at_fn_diff_devnull "$at_stderr" || at_failed=:
10600 echo >>"$at_stdout"; $as_echo "testdir/
10610 $at_diff - "$at_stdout" || at_failed=:
10611 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10612 $at_failed && at_fn_log_failure
10616 $as_echo "$at_srcdir/exclude05.at:24:
10619 TEST_TAR_FORMAT=oldgnu
10620 export TEST_TAR_FORMAT
10621 TAR_OPTIONS=\"-H oldgnu\"
10626 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10629 rm -rf testdir exclfile
10631 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10634 genfile --file \$name
10637 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10639 tar cf archive --anchored --exclude-from=exclfile \\
10641 tar tf archive | sort
10644 tar cf archive --exclude-from=exclfile \\
10646 tar tf archive | sort
10648 rm -rf testdir exclfile
10651 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10655 TEST_TAR_FORMAT=oldgnu
10656 export TEST_TAR_FORMAT
10657 TAR_OPTIONS="-H oldgnu"
10662 test -z "`sort < /dev/null 2>&1`" || exit 77
10665 rm -rf testdir exclfile
10667 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10670 genfile --file $name
10673 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10675 tar cf archive --anchored --exclude-from=exclfile \
10677 tar tf archive | sort
10680 tar cf archive --exclude-from=exclfile \
10682 tar tf archive | sort
10684 rm -rf testdir exclfile
10687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10688 at_status=$? at_failed=false
10690 at_fn_diff_devnull "$at_stderr" || at_failed=:
10691 echo >>"$at_stdout"; $as_echo "testdir/
10701 $at_diff - "$at_stdout" || at_failed=:
10702 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10703 $at_failed && at_fn_log_failure
10707 $as_echo "$at_srcdir/exclude05.at:24:
10710 TEST_TAR_FORMAT=ustar
10711 export TEST_TAR_FORMAT
10712 TAR_OPTIONS=\"-H ustar\"
10717 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10720 rm -rf testdir exclfile
10722 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10725 genfile --file \$name
10728 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10730 tar cf archive --anchored --exclude-from=exclfile \\
10732 tar tf archive | sort
10735 tar cf archive --exclude-from=exclfile \\
10737 tar tf archive | sort
10739 rm -rf testdir exclfile
10742 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10746 TEST_TAR_FORMAT=ustar
10747 export TEST_TAR_FORMAT
10748 TAR_OPTIONS="-H ustar"
10753 test -z "`sort < /dev/null 2>&1`" || exit 77
10756 rm -rf testdir exclfile
10758 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10761 genfile --file $name
10764 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10766 tar cf archive --anchored --exclude-from=exclfile \
10768 tar tf archive | sort
10771 tar cf archive --exclude-from=exclfile \
10773 tar tf archive | sort
10775 rm -rf testdir exclfile
10778 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10779 at_status=$? at_failed=false
10781 at_fn_diff_devnull "$at_stderr" || at_failed=:
10782 echo >>"$at_stdout"; $as_echo "testdir/
10792 $at_diff - "$at_stdout" || at_failed=:
10793 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10794 $at_failed && at_fn_log_failure
10798 $as_echo "$at_srcdir/exclude05.at:24:
10801 TEST_TAR_FORMAT=posix
10802 export TEST_TAR_FORMAT
10803 TAR_OPTIONS=\"-H posix\"
10808 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10811 rm -rf testdir exclfile
10813 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10816 genfile --file \$name
10819 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10821 tar cf archive --anchored --exclude-from=exclfile \\
10823 tar tf archive | sort
10826 tar cf archive --exclude-from=exclfile \\
10828 tar tf archive | sort
10830 rm -rf testdir exclfile
10833 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10837 TEST_TAR_FORMAT=posix
10838 export TEST_TAR_FORMAT
10839 TAR_OPTIONS="-H posix"
10844 test -z "`sort < /dev/null 2>&1`" || exit 77
10847 rm -rf testdir exclfile
10849 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10852 genfile --file $name
10855 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10857 tar cf archive --anchored --exclude-from=exclfile \
10859 tar tf archive | sort
10862 tar cf archive --exclude-from=exclfile \
10864 tar tf archive | sort
10866 rm -rf testdir exclfile
10869 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10870 at_status=$? at_failed=false
10872 at_fn_diff_devnull "$at_stderr" || at_failed=:
10873 echo >>"$at_stdout"; $as_echo "testdir/
10883 $at_diff - "$at_stdout" || at_failed=:
10884 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10885 $at_failed && at_fn_log_failure
10889 $as_echo "$at_srcdir/exclude05.at:24:
10892 TEST_TAR_FORMAT=gnu
10893 export TEST_TAR_FORMAT
10894 TAR_OPTIONS=\"-H gnu\"
10899 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
10902 rm -rf testdir exclfile
10904 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10907 genfile --file \$name
10910 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10912 tar cf archive --anchored --exclude-from=exclfile \\
10914 tar tf archive | sort
10917 tar cf archive --exclude-from=exclfile \\
10919 tar tf archive | sort
10921 rm -rf testdir exclfile
10924 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude05.at:24"
10928 TEST_TAR_FORMAT=gnu
10929 export TEST_TAR_FORMAT
10930 TAR_OPTIONS="-H gnu"
10935 test -z "`sort < /dev/null 2>&1`" || exit 77
10938 rm -rf testdir exclfile
10940 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10943 genfile --file $name
10946 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10948 tar cf archive --anchored --exclude-from=exclfile \
10950 tar tf archive | sort
10953 tar cf archive --exclude-from=exclfile \
10955 tar tf archive | sort
10957 rm -rf testdir exclfile
10960 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10961 at_status=$? at_failed=false
10963 at_fn_diff_devnull "$at_stderr" || at_failed=:
10964 echo >>"$at_stdout"; $as_echo "testdir/
10974 $at_diff - "$at_stdout" || at_failed=:
10975 at_fn_check_status 0 $at_status "$at_srcdir/exclude05.at:24"
10976 $at_failed && at_fn_log_failure
10983 $at_times_p && times >"$at_times_file"
10984 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10985 read at_status <"$at_status_file"
10988 at_fn_group_banner 41 'exclude06.at:26' \
10989 "exclude: long files in pax archives" " " 7
10991 test -f $XFAILFILE && at_xfail=yes
10993 $as_echo "41. $at_setup_line: testing $at_desc ..."
11003 $as_echo "$at_srcdir/exclude06.at:31:
11006 TEST_TAR_FORMAT=pax
11007 export TEST_TAR_FORMAT
11008 TAR_OPTIONS=\"-H pax\"
11013 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
11014 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
11015 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
11017 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
11019 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
11022 at_fn_check_prepare_notrace 'an embedded newline' "exclude06.at:31"
11026 TEST_TAR_FORMAT=pax
11027 export TEST_TAR_FORMAT
11028 TAR_OPTIONS="-H pax"
11033 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
11034 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
11035 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
11037 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
11039 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
11042 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11043 at_status=$? at_failed=false
11045 at_fn_diff_devnull "$at_stderr" || at_failed=:
11046 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
11048 $at_diff - "$at_stdout" || at_failed=:
11049 at_fn_check_status 0 $at_status "$at_srcdir/exclude06.at:31"
11050 $at_failed && at_fn_log_failure
11058 $at_times_p && times >"$at_times_file"
11059 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11060 read at_status <"$at_status_file"
11063 at_fn_group_banner 42 'exclude07.at:19' \
11064 "exclude: --exclude-backups option" " " 7
11066 test -f $XFAILFILE && at_xfail=yes
11068 $as_echo "42. $at_setup_line: testing $at_desc ..."
11076 $as_echo "$at_srcdir/exclude07.at:22:
11080 export TEST_TAR_FORMAT
11081 TAR_OPTIONS=\"-H v7\"
11086 genfile --file dir/file
11087 genfile --file dir/file~
11088 genfile --file \"dir/.#file\"
11089 genfile --file \"dir/#file#\"
11091 tar -v -c -f archive --exclude-backups dir
11093 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
11098 export TEST_TAR_FORMAT
11099 TAR_OPTIONS="-H v7"
11104 genfile --file dir/file
11105 genfile --file dir/file~
11106 genfile --file "dir/.#file"
11107 genfile --file "dir/#file#"
11109 tar -v -c -f archive --exclude-backups dir
11111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11112 at_status=$? at_failed=false
11114 at_fn_diff_devnull "$at_stderr" || at_failed=:
11115 echo >>"$at_stdout"; $as_echo "dir/
11118 $at_diff - "$at_stdout" || at_failed=:
11119 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
11120 $at_failed && at_fn_log_failure
11124 $as_echo "$at_srcdir/exclude07.at:22:
11127 TEST_TAR_FORMAT=oldgnu
11128 export TEST_TAR_FORMAT
11129 TAR_OPTIONS=\"-H oldgnu\"
11134 genfile --file dir/file
11135 genfile --file dir/file~
11136 genfile --file \"dir/.#file\"
11137 genfile --file \"dir/#file#\"
11139 tar -v -c -f archive --exclude-backups dir
11141 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
11145 TEST_TAR_FORMAT=oldgnu
11146 export TEST_TAR_FORMAT
11147 TAR_OPTIONS="-H oldgnu"
11152 genfile --file dir/file
11153 genfile --file dir/file~
11154 genfile --file "dir/.#file"
11155 genfile --file "dir/#file#"
11157 tar -v -c -f archive --exclude-backups dir
11159 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11160 at_status=$? at_failed=false
11162 at_fn_diff_devnull "$at_stderr" || at_failed=:
11163 echo >>"$at_stdout"; $as_echo "dir/
11166 $at_diff - "$at_stdout" || at_failed=:
11167 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
11168 $at_failed && at_fn_log_failure
11172 $as_echo "$at_srcdir/exclude07.at:22:
11175 TEST_TAR_FORMAT=ustar
11176 export TEST_TAR_FORMAT
11177 TAR_OPTIONS=\"-H ustar\"
11182 genfile --file dir/file
11183 genfile --file dir/file~
11184 genfile --file \"dir/.#file\"
11185 genfile --file \"dir/#file#\"
11187 tar -v -c -f archive --exclude-backups dir
11189 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
11193 TEST_TAR_FORMAT=ustar
11194 export TEST_TAR_FORMAT
11195 TAR_OPTIONS="-H ustar"
11200 genfile --file dir/file
11201 genfile --file dir/file~
11202 genfile --file "dir/.#file"
11203 genfile --file "dir/#file#"
11205 tar -v -c -f archive --exclude-backups dir
11207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11208 at_status=$? at_failed=false
11210 at_fn_diff_devnull "$at_stderr" || at_failed=:
11211 echo >>"$at_stdout"; $as_echo "dir/
11214 $at_diff - "$at_stdout" || at_failed=:
11215 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
11216 $at_failed && at_fn_log_failure
11220 $as_echo "$at_srcdir/exclude07.at:22:
11223 TEST_TAR_FORMAT=posix
11224 export TEST_TAR_FORMAT
11225 TAR_OPTIONS=\"-H posix\"
11230 genfile --file dir/file
11231 genfile --file dir/file~
11232 genfile --file \"dir/.#file\"
11233 genfile --file \"dir/#file#\"
11235 tar -v -c -f archive --exclude-backups dir
11237 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
11241 TEST_TAR_FORMAT=posix
11242 export TEST_TAR_FORMAT
11243 TAR_OPTIONS="-H posix"
11248 genfile --file dir/file
11249 genfile --file dir/file~
11250 genfile --file "dir/.#file"
11251 genfile --file "dir/#file#"
11253 tar -v -c -f archive --exclude-backups dir
11255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11256 at_status=$? at_failed=false
11258 at_fn_diff_devnull "$at_stderr" || at_failed=:
11259 echo >>"$at_stdout"; $as_echo "dir/
11262 $at_diff - "$at_stdout" || at_failed=:
11263 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
11264 $at_failed && at_fn_log_failure
11268 $as_echo "$at_srcdir/exclude07.at:22:
11271 TEST_TAR_FORMAT=gnu
11272 export TEST_TAR_FORMAT
11273 TAR_OPTIONS=\"-H gnu\"
11278 genfile --file dir/file
11279 genfile --file dir/file~
11280 genfile --file \"dir/.#file\"
11281 genfile --file \"dir/#file#\"
11283 tar -v -c -f archive --exclude-backups dir
11285 at_fn_check_prepare_notrace 'an embedded newline' "exclude07.at:22"
11289 TEST_TAR_FORMAT=gnu
11290 export TEST_TAR_FORMAT
11291 TAR_OPTIONS="-H gnu"
11296 genfile --file dir/file
11297 genfile --file dir/file~
11298 genfile --file "dir/.#file"
11299 genfile --file "dir/#file#"
11301 tar -v -c -f archive --exclude-backups dir
11303 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11304 at_status=$? at_failed=false
11306 at_fn_diff_devnull "$at_stderr" || at_failed=:
11307 echo >>"$at_stdout"; $as_echo "dir/
11310 $at_diff - "$at_stdout" || at_failed=:
11311 at_fn_check_status 0 $at_status "$at_srcdir/exclude07.at:22"
11312 $at_failed && at_fn_log_failure
11319 $at_times_p && times >"$at_times_file"
11320 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11321 read at_status <"$at_status_file"
11324 at_fn_group_banner 43 'exclude08.at:36' \
11325 "--exclude-tag option" " " 7
11327 test -f $XFAILFILE && at_xfail=yes
11329 $as_echo "43. $at_setup_line: testing $at_desc ..."
11337 $as_echo "$at_srcdir/exclude08.at:39:
11341 export TEST_TAR_FORMAT
11342 TAR_OPTIONS=\"-H v7\"
11347 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11350 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11352 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11357 export TEST_TAR_FORMAT
11358 TAR_OPTIONS="-H v7"
11363 test -z "`sort < /dev/null 2>&1`" || exit 77
11366 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11369 at_status=$? at_failed=false
11371 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11373 $at_diff - "$at_stderr" || at_failed=:
11374 echo >>"$at_stdout"; $as_echo "etest/
11376 etest/subdir/excludeme
11377 etest/top-level-file
11379 $at_diff - "$at_stdout" || at_failed=:
11380 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11381 $at_failed && at_fn_log_failure
11385 $as_echo "$at_srcdir/exclude08.at:39:
11388 TEST_TAR_FORMAT=oldgnu
11389 export TEST_TAR_FORMAT
11390 TAR_OPTIONS=\"-H oldgnu\"
11395 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11398 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11400 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11404 TEST_TAR_FORMAT=oldgnu
11405 export TEST_TAR_FORMAT
11406 TAR_OPTIONS="-H oldgnu"
11411 test -z "`sort < /dev/null 2>&1`" || exit 77
11414 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11416 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11417 at_status=$? at_failed=false
11419 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11421 $at_diff - "$at_stderr" || at_failed=:
11422 echo >>"$at_stdout"; $as_echo "etest/
11424 etest/subdir/excludeme
11425 etest/top-level-file
11427 $at_diff - "$at_stdout" || at_failed=:
11428 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11429 $at_failed && at_fn_log_failure
11433 $as_echo "$at_srcdir/exclude08.at:39:
11436 TEST_TAR_FORMAT=ustar
11437 export TEST_TAR_FORMAT
11438 TAR_OPTIONS=\"-H ustar\"
11443 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11446 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11448 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11452 TEST_TAR_FORMAT=ustar
11453 export TEST_TAR_FORMAT
11454 TAR_OPTIONS="-H ustar"
11459 test -z "`sort < /dev/null 2>&1`" || exit 77
11462 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11464 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11465 at_status=$? at_failed=false
11467 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11469 $at_diff - "$at_stderr" || at_failed=:
11470 echo >>"$at_stdout"; $as_echo "etest/
11472 etest/subdir/excludeme
11473 etest/top-level-file
11475 $at_diff - "$at_stdout" || at_failed=:
11476 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11477 $at_failed && at_fn_log_failure
11481 $as_echo "$at_srcdir/exclude08.at:39:
11484 TEST_TAR_FORMAT=posix
11485 export TEST_TAR_FORMAT
11486 TAR_OPTIONS=\"-H posix\"
11491 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11494 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11496 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11500 TEST_TAR_FORMAT=posix
11501 export TEST_TAR_FORMAT
11502 TAR_OPTIONS="-H posix"
11507 test -z "`sort < /dev/null 2>&1`" || exit 77
11510 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11512 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11513 at_status=$? at_failed=false
11515 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11517 $at_diff - "$at_stderr" || at_failed=:
11518 echo >>"$at_stdout"; $as_echo "etest/
11520 etest/subdir/excludeme
11521 etest/top-level-file
11523 $at_diff - "$at_stdout" || at_failed=:
11524 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11525 $at_failed && at_fn_log_failure
11529 $as_echo "$at_srcdir/exclude08.at:39:
11532 TEST_TAR_FORMAT=gnu
11533 export TEST_TAR_FORMAT
11534 TAR_OPTIONS=\"-H gnu\"
11539 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11542 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11544 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude08.at:39"
11548 TEST_TAR_FORMAT=gnu
11549 export TEST_TAR_FORMAT
11550 TAR_OPTIONS="-H gnu"
11555 test -z "`sort < /dev/null 2>&1`" || exit 77
11558 tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
11560 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11561 at_status=$? at_failed=false
11563 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11565 $at_diff - "$at_stderr" || at_failed=:
11566 echo >>"$at_stdout"; $as_echo "etest/
11568 etest/subdir/excludeme
11569 etest/top-level-file
11571 $at_diff - "$at_stdout" || at_failed=:
11572 at_fn_check_status 0 $at_status "$at_srcdir/exclude08.at:39"
11573 $at_failed && at_fn_log_failure
11580 $at_times_p && times >"$at_times_file"
11581 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11582 read at_status <"$at_status_file"
11585 at_fn_group_banner 44 'exclude09.at:37' \
11586 "--exclude-tag option and --listed-incremental" " " 7
11588 test -f $XFAILFILE && at_xfail=yes
11590 $as_echo "44. $at_setup_line: testing $at_desc ..."
11598 $as_echo "$at_srcdir/exclude09.at:40:
11601 TEST_TAR_FORMAT=gnu
11602 export TEST_TAR_FORMAT
11603 TAR_OPTIONS=\"-H gnu\"
11608 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11611 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
11613 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude09.at:40"
11617 TEST_TAR_FORMAT=gnu
11618 export TEST_TAR_FORMAT
11619 TAR_OPTIONS="-H gnu"
11624 test -z "`sort < /dev/null 2>&1`" || exit 77
11627 tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
11629 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11630 at_status=$? at_failed=false
11632 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
11633 tar: etest/subdir: Directory is new
11634 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11636 $at_diff - "$at_stderr" || at_failed=:
11637 echo >>"$at_stdout"; $as_echo "etest/
11639 etest/subdir/excludeme
11640 etest/top-level-file
11642 $at_diff - "$at_stdout" || at_failed=:
11643 at_fn_check_status 0 $at_status "$at_srcdir/exclude09.at:40"
11644 $at_failed && at_fn_log_failure
11651 $at_times_p && times >"$at_times_file"
11652 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11653 read at_status <"$at_status_file"
11656 at_fn_group_banner 45 'exclude10.at:38' \
11657 "--exclude-tag option in incremental pass" " " 7
11659 test -f $XFAILFILE && at_xfail=yes
11661 $as_echo "45. $at_setup_line: testing $at_desc ..."
11669 $as_echo "$at_srcdir/exclude10.at:41:
11672 TEST_TAR_FORMAT=gnu
11673 export TEST_TAR_FORMAT
11674 TAR_OPTIONS=\"-H gnu\"
11679 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11682 rm etest/subdir/excludeme
11683 decho \"# Level 0\"
11684 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
11685 touch etest/subdir/excludeme
11686 touch etest/subdir/otherfile
11688 decho \"# Level 1\"
11690 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
11692 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude10.at:41"
11696 TEST_TAR_FORMAT=gnu
11697 export TEST_TAR_FORMAT
11698 TAR_OPTIONS="-H gnu"
11703 test -z "`sort < /dev/null 2>&1`" || exit 77
11706 rm etest/subdir/excludeme
11708 tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
11709 touch etest/subdir/excludeme
11710 touch etest/subdir/otherfile
11714 tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
11716 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11717 at_status=$? at_failed=false
11719 echo >>"$at_stderr"; $as_echo "# Level 0
11720 tar: etest: Directory is new
11721 tar: etest/subdir: Directory is new
11723 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
11725 $at_diff - "$at_stderr" || at_failed=:
11726 echo >>"$at_stdout"; $as_echo "# Level 0
11729 etest/subdir/subdir-file
11730 etest/top-level-file
11734 etest/subdir/excludeme
11736 $at_diff - "$at_stdout" || at_failed=:
11737 at_fn_check_status 0 $at_status "$at_srcdir/exclude10.at:41"
11738 $at_failed && at_fn_log_failure
11745 $at_times_p && times >"$at_times_file"
11746 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11747 read at_status <"$at_status_file"
11750 at_fn_group_banner 46 'exclude11.at:36' \
11751 "--exclude-tag-under option" " " 7
11753 test -f $XFAILFILE && at_xfail=yes
11755 $as_echo "46. $at_setup_line: testing $at_desc ..."
11763 $as_echo "$at_srcdir/exclude11.at:39:
11767 export TEST_TAR_FORMAT
11768 TAR_OPTIONS=\"-H v7\"
11773 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11776 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11778 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11783 export TEST_TAR_FORMAT
11784 TAR_OPTIONS="-H v7"
11789 test -z "`sort < /dev/null 2>&1`" || exit 77
11792 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11794 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11795 at_status=$? at_failed=false
11797 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11799 $at_diff - "$at_stderr" || at_failed=:
11800 echo >>"$at_stdout"; $as_echo "etest/
11802 etest/top-level-file
11804 $at_diff - "$at_stdout" || at_failed=:
11805 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11806 $at_failed && at_fn_log_failure
11810 $as_echo "$at_srcdir/exclude11.at:39:
11813 TEST_TAR_FORMAT=oldgnu
11814 export TEST_TAR_FORMAT
11815 TAR_OPTIONS=\"-H oldgnu\"
11820 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11823 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11825 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11829 TEST_TAR_FORMAT=oldgnu
11830 export TEST_TAR_FORMAT
11831 TAR_OPTIONS="-H oldgnu"
11836 test -z "`sort < /dev/null 2>&1`" || exit 77
11839 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11841 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11842 at_status=$? at_failed=false
11844 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11846 $at_diff - "$at_stderr" || at_failed=:
11847 echo >>"$at_stdout"; $as_echo "etest/
11849 etest/top-level-file
11851 $at_diff - "$at_stdout" || at_failed=:
11852 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11853 $at_failed && at_fn_log_failure
11857 $as_echo "$at_srcdir/exclude11.at:39:
11860 TEST_TAR_FORMAT=ustar
11861 export TEST_TAR_FORMAT
11862 TAR_OPTIONS=\"-H ustar\"
11867 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11870 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11872 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11876 TEST_TAR_FORMAT=ustar
11877 export TEST_TAR_FORMAT
11878 TAR_OPTIONS="-H ustar"
11883 test -z "`sort < /dev/null 2>&1`" || exit 77
11886 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11888 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11889 at_status=$? at_failed=false
11891 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11893 $at_diff - "$at_stderr" || at_failed=:
11894 echo >>"$at_stdout"; $as_echo "etest/
11896 etest/top-level-file
11898 $at_diff - "$at_stdout" || at_failed=:
11899 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11900 $at_failed && at_fn_log_failure
11904 $as_echo "$at_srcdir/exclude11.at:39:
11907 TEST_TAR_FORMAT=posix
11908 export TEST_TAR_FORMAT
11909 TAR_OPTIONS=\"-H posix\"
11914 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11917 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11919 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11923 TEST_TAR_FORMAT=posix
11924 export TEST_TAR_FORMAT
11925 TAR_OPTIONS="-H posix"
11930 test -z "`sort < /dev/null 2>&1`" || exit 77
11933 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11935 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11936 at_status=$? at_failed=false
11938 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11940 $at_diff - "$at_stderr" || at_failed=:
11941 echo >>"$at_stdout"; $as_echo "etest/
11943 etest/top-level-file
11945 $at_diff - "$at_stdout" || at_failed=:
11946 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11947 $at_failed && at_fn_log_failure
11951 $as_echo "$at_srcdir/exclude11.at:39:
11954 TEST_TAR_FORMAT=gnu
11955 export TEST_TAR_FORMAT
11956 TAR_OPTIONS=\"-H gnu\"
11961 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
11964 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11966 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude11.at:39"
11970 TEST_TAR_FORMAT=gnu
11971 export TEST_TAR_FORMAT
11972 TAR_OPTIONS="-H gnu"
11977 test -z "`sort < /dev/null 2>&1`" || exit 77
11980 tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
11982 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11983 at_status=$? at_failed=false
11985 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; contents not dumped
11987 $at_diff - "$at_stderr" || at_failed=:
11988 echo >>"$at_stdout"; $as_echo "etest/
11990 etest/top-level-file
11992 $at_diff - "$at_stdout" || at_failed=:
11993 at_fn_check_status 0 $at_status "$at_srcdir/exclude11.at:39"
11994 $at_failed && at_fn_log_failure
12001 $at_times_p && times >"$at_times_file"
12002 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12003 read at_status <"$at_status_file"
12006 at_fn_group_banner 47 'exclude12.at:37' \
12007 "--exclude-tag-under and --listed-incremental" " " 7
12009 test -f $XFAILFILE && at_xfail=yes
12011 $as_echo "47. $at_setup_line: testing $at_desc ..."
12019 $as_echo "$at_srcdir/exclude12.at:40:
12022 TEST_TAR_FORMAT=gnu
12023 export TEST_TAR_FORMAT
12024 TAR_OPTIONS=\"-H gnu\"
12029 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12032 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
12034 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude12.at:40"
12038 TEST_TAR_FORMAT=gnu
12039 export TEST_TAR_FORMAT
12040 TAR_OPTIONS="-H gnu"
12045 test -z "`sort < /dev/null 2>&1`" || exit 77
12048 tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
12050 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12051 at_status=$? at_failed=false
12053 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
12054 tar: etest/subdir: Directory is new
12055 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
12057 $at_diff - "$at_stderr" || at_failed=:
12058 echo >>"$at_stdout"; $as_echo "etest/
12060 etest/top-level-file
12062 $at_diff - "$at_stdout" || at_failed=:
12063 at_fn_check_status 0 $at_status "$at_srcdir/exclude12.at:40"
12064 $at_failed && at_fn_log_failure
12071 $at_times_p && times >"$at_times_file"
12072 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12073 read at_status <"$at_status_file"
12076 at_fn_group_banner 48 'exclude13.at:39' \
12077 "--exclude-tag-under option in incremental pass" " " 7
12079 test -f $XFAILFILE && at_xfail=yes
12081 $as_echo "48. $at_setup_line: testing $at_desc ..."
12089 $as_echo "$at_srcdir/exclude13.at:42:
12092 TEST_TAR_FORMAT=gnu
12093 export TEST_TAR_FORMAT
12094 TAR_OPTIONS=\"-H gnu\"
12099 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12102 rm etest/subdir/excludeme
12103 decho \"# Level 0\"
12104 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
12105 touch etest/subdir/excludeme
12106 touch etest/subdir/otherfile
12108 decho \"# Level 1\"
12110 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
12112 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude13.at:42"
12116 TEST_TAR_FORMAT=gnu
12117 export TEST_TAR_FORMAT
12118 TAR_OPTIONS="-H gnu"
12123 test -z "`sort < /dev/null 2>&1`" || exit 77
12126 rm etest/subdir/excludeme
12128 tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
12129 touch etest/subdir/excludeme
12130 touch etest/subdir/otherfile
12134 tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
12136 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12137 at_status=$? at_failed=false
12139 echo >>"$at_stderr"; $as_echo "# Level 0
12140 tar: etest: Directory is new
12141 tar: etest/subdir: Directory is new
12143 tar: etest/subdir: contains a cache directory tag excludeme; contents not dumped
12145 $at_diff - "$at_stderr" || at_failed=:
12146 echo >>"$at_stdout"; $as_echo "# Level 0
12149 etest/subdir/subdir-file
12150 etest/top-level-file
12155 $at_diff - "$at_stdout" || at_failed=:
12156 at_fn_check_status 0 $at_status "$at_srcdir/exclude13.at:42"
12157 $at_failed && at_fn_log_failure
12164 $at_times_p && times >"$at_times_file"
12165 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12166 read at_status <"$at_status_file"
12169 at_fn_group_banner 49 'exclude14.at:36' \
12170 "--exclude-tag-all option" " " 7
12172 test -f $XFAILFILE && at_xfail=yes
12174 $as_echo "49. $at_setup_line: testing $at_desc ..."
12182 $as_echo "$at_srcdir/exclude14.at:39:
12186 export TEST_TAR_FORMAT
12187 TAR_OPTIONS=\"-H v7\"
12192 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12195 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12197 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
12202 export TEST_TAR_FORMAT
12203 TAR_OPTIONS="-H v7"
12208 test -z "`sort < /dev/null 2>&1`" || exit 77
12211 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12213 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12214 at_status=$? at_failed=false
12216 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
12218 $at_diff - "$at_stderr" || at_failed=:
12219 echo >>"$at_stdout"; $as_echo "etest/
12220 etest/top-level-file
12222 $at_diff - "$at_stdout" || at_failed=:
12223 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
12224 $at_failed && at_fn_log_failure
12228 $as_echo "$at_srcdir/exclude14.at:39:
12231 TEST_TAR_FORMAT=oldgnu
12232 export TEST_TAR_FORMAT
12233 TAR_OPTIONS=\"-H oldgnu\"
12238 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12241 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12243 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
12247 TEST_TAR_FORMAT=oldgnu
12248 export TEST_TAR_FORMAT
12249 TAR_OPTIONS="-H oldgnu"
12254 test -z "`sort < /dev/null 2>&1`" || exit 77
12257 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12260 at_status=$? at_failed=false
12262 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
12264 $at_diff - "$at_stderr" || at_failed=:
12265 echo >>"$at_stdout"; $as_echo "etest/
12266 etest/top-level-file
12268 $at_diff - "$at_stdout" || at_failed=:
12269 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
12270 $at_failed && at_fn_log_failure
12274 $as_echo "$at_srcdir/exclude14.at:39:
12277 TEST_TAR_FORMAT=ustar
12278 export TEST_TAR_FORMAT
12279 TAR_OPTIONS=\"-H ustar\"
12284 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12287 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12289 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
12293 TEST_TAR_FORMAT=ustar
12294 export TEST_TAR_FORMAT
12295 TAR_OPTIONS="-H ustar"
12300 test -z "`sort < /dev/null 2>&1`" || exit 77
12303 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12305 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12306 at_status=$? at_failed=false
12308 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
12310 $at_diff - "$at_stderr" || at_failed=:
12311 echo >>"$at_stdout"; $as_echo "etest/
12312 etest/top-level-file
12314 $at_diff - "$at_stdout" || at_failed=:
12315 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
12316 $at_failed && at_fn_log_failure
12320 $as_echo "$at_srcdir/exclude14.at:39:
12323 TEST_TAR_FORMAT=posix
12324 export TEST_TAR_FORMAT
12325 TAR_OPTIONS=\"-H posix\"
12330 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12333 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12335 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
12339 TEST_TAR_FORMAT=posix
12340 export TEST_TAR_FORMAT
12341 TAR_OPTIONS="-H posix"
12346 test -z "`sort < /dev/null 2>&1`" || exit 77
12349 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12351 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12352 at_status=$? at_failed=false
12354 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
12356 $at_diff - "$at_stderr" || at_failed=:
12357 echo >>"$at_stdout"; $as_echo "etest/
12358 etest/top-level-file
12360 $at_diff - "$at_stdout" || at_failed=:
12361 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
12362 $at_failed && at_fn_log_failure
12366 $as_echo "$at_srcdir/exclude14.at:39:
12369 TEST_TAR_FORMAT=gnu
12370 export TEST_TAR_FORMAT
12371 TAR_OPTIONS=\"-H gnu\"
12376 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12379 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12381 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude14.at:39"
12385 TEST_TAR_FORMAT=gnu
12386 export TEST_TAR_FORMAT
12387 TAR_OPTIONS="-H gnu"
12392 test -z "`sort < /dev/null 2>&1`" || exit 77
12395 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
12397 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12398 at_status=$? at_failed=false
12400 echo >>"$at_stderr"; $as_echo "tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped
12402 $at_diff - "$at_stderr" || at_failed=:
12403 echo >>"$at_stdout"; $as_echo "etest/
12404 etest/top-level-file
12406 $at_diff - "$at_stdout" || at_failed=:
12407 at_fn_check_status 0 $at_status "$at_srcdir/exclude14.at:39"
12408 $at_failed && at_fn_log_failure
12415 $at_times_p && times >"$at_times_file"
12416 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12417 read at_status <"$at_status_file"
12420 at_fn_group_banner 50 'exclude15.at:36' \
12421 "--exclude-tag-all and --listed-incremental" " " 7
12423 test -f $XFAILFILE && at_xfail=yes
12425 $as_echo "50. $at_setup_line: testing $at_desc ..."
12433 $as_echo "$at_srcdir/exclude15.at:39:
12436 TEST_TAR_FORMAT=gnu
12437 export TEST_TAR_FORMAT
12438 TAR_OPTIONS=\"-H gnu\"
12443 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12446 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
12448 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude15.at:39"
12452 TEST_TAR_FORMAT=gnu
12453 export TEST_TAR_FORMAT
12454 TAR_OPTIONS="-H gnu"
12459 test -z "`sort < /dev/null 2>&1`" || exit 77
12462 tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
12464 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12465 at_status=$? at_failed=false
12467 echo >>"$at_stderr"; $as_echo "tar: etest: Directory is new
12468 tar: etest/subdir: Directory is new
12469 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
12471 $at_diff - "$at_stderr" || at_failed=:
12472 echo >>"$at_stdout"; $as_echo "etest/
12473 etest/top-level-file
12475 $at_diff - "$at_stdout" || at_failed=:
12476 at_fn_check_status 0 $at_status "$at_srcdir/exclude15.at:39"
12477 $at_failed && at_fn_log_failure
12484 $at_times_p && times >"$at_times_file"
12485 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12486 read at_status <"$at_status_file"
12489 at_fn_group_banner 51 'exclude16.at:38' \
12490 "--exclude-tag-all option in incremental pass" " " 7
12492 test -f $XFAILFILE && at_xfail=yes
12494 $as_echo "51. $at_setup_line: testing $at_desc ..."
12502 $as_echo "$at_srcdir/exclude16.at:41:
12505 TEST_TAR_FORMAT=gnu
12506 export TEST_TAR_FORMAT
12507 TAR_OPTIONS=\"-H gnu\"
12512 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
12515 rm etest/subdir/excludeme
12516 decho \"# Level 0\"
12517 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
12518 touch etest/subdir/excludeme
12519 touch etest/subdir/otherfile
12521 decho \"# Level 1\"
12523 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
12525 at_fn_check_prepare_notrace 'a `...` command substitution' "exclude16.at:41"
12529 TEST_TAR_FORMAT=gnu
12530 export TEST_TAR_FORMAT
12531 TAR_OPTIONS="-H gnu"
12536 test -z "`sort < /dev/null 2>&1`" || exit 77
12539 rm etest/subdir/excludeme
12541 tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
12542 touch etest/subdir/excludeme
12543 touch etest/subdir/otherfile
12547 tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
12549 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12550 at_status=$? at_failed=false
12552 echo >>"$at_stderr"; $as_echo "# Level 0
12553 tar: etest: Directory is new
12554 tar: etest/subdir: Directory is new
12556 tar: etest/subdir: contains a cache directory tag excludeme; directory not dumped
12558 $at_diff - "$at_stderr" || at_failed=:
12559 echo >>"$at_stdout"; $as_echo "# Level 0
12562 etest/subdir/subdir-file
12563 etest/top-level-file
12567 $at_diff - "$at_stdout" || at_failed=:
12568 at_fn_check_status 0 $at_status "$at_srcdir/exclude16.at:41"
12569 $at_failed && at_fn_log_failure
12576 $at_times_p && times >"$at_times_file"
12577 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12578 read at_status <"$at_status_file"
12581 at_fn_group_banner 52 'delete01.at:23' \
12582 "deleting a member after a big one" " " 8
12584 test -f $XFAILFILE && at_xfail=yes
12586 $as_echo "52. $at_setup_line: testing $at_desc ..."
12594 $as_echo "$at_srcdir/delete01.at:26:
12598 export TEST_TAR_FORMAT
12599 TAR_OPTIONS=\"-H v7\"
12603 genfile -l 50000 --file file1
12604 genfile -l 1024 --file file2
12605 tar cf archive file1 file2
12606 tar f archive --delete file2
12608 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12613 export TEST_TAR_FORMAT
12614 TAR_OPTIONS="-H v7"
12618 genfile -l 50000 --file file1
12619 genfile -l 1024 --file file2
12620 tar cf archive file1 file2
12621 tar f archive --delete file2
12623 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12624 at_status=$? at_failed=false
12626 at_fn_diff_devnull "$at_stderr" || at_failed=:
12627 echo >>"$at_stdout"; $as_echo "file1
12629 $at_diff - "$at_stdout" || at_failed=:
12630 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12631 $at_failed && at_fn_log_failure
12635 $as_echo "$at_srcdir/delete01.at:26:
12638 TEST_TAR_FORMAT=oldgnu
12639 export TEST_TAR_FORMAT
12640 TAR_OPTIONS=\"-H oldgnu\"
12644 genfile -l 50000 --file file1
12645 genfile -l 1024 --file file2
12646 tar cf archive file1 file2
12647 tar f archive --delete file2
12649 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12653 TEST_TAR_FORMAT=oldgnu
12654 export TEST_TAR_FORMAT
12655 TAR_OPTIONS="-H oldgnu"
12659 genfile -l 50000 --file file1
12660 genfile -l 1024 --file file2
12661 tar cf archive file1 file2
12662 tar f archive --delete file2
12664 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12665 at_status=$? at_failed=false
12667 at_fn_diff_devnull "$at_stderr" || at_failed=:
12668 echo >>"$at_stdout"; $as_echo "file1
12670 $at_diff - "$at_stdout" || at_failed=:
12671 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12672 $at_failed && at_fn_log_failure
12676 $as_echo "$at_srcdir/delete01.at:26:
12679 TEST_TAR_FORMAT=ustar
12680 export TEST_TAR_FORMAT
12681 TAR_OPTIONS=\"-H ustar\"
12685 genfile -l 50000 --file file1
12686 genfile -l 1024 --file file2
12687 tar cf archive file1 file2
12688 tar f archive --delete file2
12690 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12694 TEST_TAR_FORMAT=ustar
12695 export TEST_TAR_FORMAT
12696 TAR_OPTIONS="-H ustar"
12700 genfile -l 50000 --file file1
12701 genfile -l 1024 --file file2
12702 tar cf archive file1 file2
12703 tar f archive --delete file2
12705 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12706 at_status=$? at_failed=false
12708 at_fn_diff_devnull "$at_stderr" || at_failed=:
12709 echo >>"$at_stdout"; $as_echo "file1
12711 $at_diff - "$at_stdout" || at_failed=:
12712 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12713 $at_failed && at_fn_log_failure
12717 $as_echo "$at_srcdir/delete01.at:26:
12720 TEST_TAR_FORMAT=posix
12721 export TEST_TAR_FORMAT
12722 TAR_OPTIONS=\"-H posix\"
12726 genfile -l 50000 --file file1
12727 genfile -l 1024 --file file2
12728 tar cf archive file1 file2
12729 tar f archive --delete file2
12731 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12735 TEST_TAR_FORMAT=posix
12736 export TEST_TAR_FORMAT
12737 TAR_OPTIONS="-H posix"
12741 genfile -l 50000 --file file1
12742 genfile -l 1024 --file file2
12743 tar cf archive file1 file2
12744 tar f archive --delete file2
12746 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12747 at_status=$? at_failed=false
12749 at_fn_diff_devnull "$at_stderr" || at_failed=:
12750 echo >>"$at_stdout"; $as_echo "file1
12752 $at_diff - "$at_stdout" || at_failed=:
12753 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12754 $at_failed && at_fn_log_failure
12758 $as_echo "$at_srcdir/delete01.at:26:
12761 TEST_TAR_FORMAT=gnu
12762 export TEST_TAR_FORMAT
12763 TAR_OPTIONS=\"-H gnu\"
12767 genfile -l 50000 --file file1
12768 genfile -l 1024 --file file2
12769 tar cf archive file1 file2
12770 tar f archive --delete file2
12772 at_fn_check_prepare_notrace 'an embedded newline' "delete01.at:26"
12776 TEST_TAR_FORMAT=gnu
12777 export TEST_TAR_FORMAT
12778 TAR_OPTIONS="-H gnu"
12782 genfile -l 50000 --file file1
12783 genfile -l 1024 --file file2
12784 tar cf archive file1 file2
12785 tar f archive --delete file2
12787 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12788 at_status=$? at_failed=false
12790 at_fn_diff_devnull "$at_stderr" || at_failed=:
12791 echo >>"$at_stdout"; $as_echo "file1
12793 $at_diff - "$at_stdout" || at_failed=:
12794 at_fn_check_status 0 $at_status "$at_srcdir/delete01.at:26"
12795 $at_failed && at_fn_log_failure
12802 $at_times_p && times >"$at_times_file"
12803 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12804 read at_status <"$at_status_file"
12807 at_fn_group_banner 53 'delete02.at:23' \
12808 "deleting a member from stdin archive" " " 8
12810 test -f $XFAILFILE && at_xfail=yes
12812 $as_echo "53. $at_setup_line: testing $at_desc ..."
12820 $as_echo "$at_srcdir/delete02.at:26:
12824 export TEST_TAR_FORMAT
12825 TAR_OPTIONS=\"-H v7\"
12829 genfile -l 3073 -p zeros --file 1
12832 tar cf archive 1 2 3
12834 cat archive | tar f - --delete 2 > archive2
12837 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12842 export TEST_TAR_FORMAT
12843 TAR_OPTIONS="-H v7"
12847 genfile -l 3073 -p zeros --file 1
12850 tar cf archive 1 2 3
12852 cat archive | tar f - --delete 2 > archive2
12855 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12856 at_status=$? at_failed=false
12858 at_fn_diff_devnull "$at_stderr" || at_failed=:
12859 echo >>"$at_stdout"; $as_echo "1
12866 $at_diff - "$at_stdout" || at_failed=:
12867 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12868 $at_failed && at_fn_log_failure
12872 $as_echo "$at_srcdir/delete02.at:26:
12875 TEST_TAR_FORMAT=oldgnu
12876 export TEST_TAR_FORMAT
12877 TAR_OPTIONS=\"-H oldgnu\"
12881 genfile -l 3073 -p zeros --file 1
12884 tar cf archive 1 2 3
12886 cat archive | tar f - --delete 2 > archive2
12889 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12893 TEST_TAR_FORMAT=oldgnu
12894 export TEST_TAR_FORMAT
12895 TAR_OPTIONS="-H oldgnu"
12899 genfile -l 3073 -p zeros --file 1
12902 tar cf archive 1 2 3
12904 cat archive | tar f - --delete 2 > archive2
12907 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12908 at_status=$? at_failed=false
12910 at_fn_diff_devnull "$at_stderr" || at_failed=:
12911 echo >>"$at_stdout"; $as_echo "1
12918 $at_diff - "$at_stdout" || at_failed=:
12919 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12920 $at_failed && at_fn_log_failure
12924 $as_echo "$at_srcdir/delete02.at:26:
12927 TEST_TAR_FORMAT=ustar
12928 export TEST_TAR_FORMAT
12929 TAR_OPTIONS=\"-H ustar\"
12933 genfile -l 3073 -p zeros --file 1
12936 tar cf archive 1 2 3
12938 cat archive | tar f - --delete 2 > archive2
12941 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12945 TEST_TAR_FORMAT=ustar
12946 export TEST_TAR_FORMAT
12947 TAR_OPTIONS="-H ustar"
12951 genfile -l 3073 -p zeros --file 1
12954 tar cf archive 1 2 3
12956 cat archive | tar f - --delete 2 > archive2
12959 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12960 at_status=$? at_failed=false
12962 at_fn_diff_devnull "$at_stderr" || at_failed=:
12963 echo >>"$at_stdout"; $as_echo "1
12970 $at_diff - "$at_stdout" || at_failed=:
12971 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
12972 $at_failed && at_fn_log_failure
12976 $as_echo "$at_srcdir/delete02.at:26:
12979 TEST_TAR_FORMAT=posix
12980 export TEST_TAR_FORMAT
12981 TAR_OPTIONS=\"-H posix\"
12985 genfile -l 3073 -p zeros --file 1
12988 tar cf archive 1 2 3
12990 cat archive | tar f - --delete 2 > archive2
12993 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
12997 TEST_TAR_FORMAT=posix
12998 export TEST_TAR_FORMAT
12999 TAR_OPTIONS="-H posix"
13003 genfile -l 3073 -p zeros --file 1
13006 tar cf archive 1 2 3
13008 cat archive | tar f - --delete 2 > archive2
13011 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13012 at_status=$? at_failed=false
13014 at_fn_diff_devnull "$at_stderr" || at_failed=:
13015 echo >>"$at_stdout"; $as_echo "1
13022 $at_diff - "$at_stdout" || at_failed=:
13023 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
13024 $at_failed && at_fn_log_failure
13028 $as_echo "$at_srcdir/delete02.at:26:
13031 TEST_TAR_FORMAT=gnu
13032 export TEST_TAR_FORMAT
13033 TAR_OPTIONS=\"-H gnu\"
13037 genfile -l 3073 -p zeros --file 1
13040 tar cf archive 1 2 3
13042 cat archive | tar f - --delete 2 > archive2
13045 at_fn_check_prepare_notrace 'an embedded newline' "delete02.at:26"
13049 TEST_TAR_FORMAT=gnu
13050 export TEST_TAR_FORMAT
13051 TAR_OPTIONS="-H gnu"
13055 genfile -l 3073 -p zeros --file 1
13058 tar cf archive 1 2 3
13060 cat archive | tar f - --delete 2 > archive2
13063 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13064 at_status=$? at_failed=false
13066 at_fn_diff_devnull "$at_stderr" || at_failed=:
13067 echo >>"$at_stdout"; $as_echo "1
13074 $at_diff - "$at_stdout" || at_failed=:
13075 at_fn_check_status 0 $at_status "$at_srcdir/delete02.at:26"
13076 $at_failed && at_fn_log_failure
13083 $at_times_p && times >"$at_times_file"
13084 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13085 read at_status <"$at_status_file"
13088 at_fn_group_banner 54 'delete03.at:21' \
13089 "deleting members with long names" " " 8
13091 test -f $XFAILFILE && at_xfail=yes
13093 $as_echo "54. $at_setup_line: testing $at_desc ..."
13103 $as_echo "$at_srcdir/delete03.at:26:
13106 TEST_TAR_FORMAT=gnu
13107 export TEST_TAR_FORMAT
13108 TAR_OPTIONS=\"-H gnu\"
13113 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
13115 for i in 1 2 3 4 5 6 7 8 9
13116 do touch \$prefix\$i
13118 tar -cf archive ./\$prefix* &&
13119 tar --delete -f archive ./\${prefix}5 &&
13122 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
13126 TEST_TAR_FORMAT=gnu
13127 export TEST_TAR_FORMAT
13128 TAR_OPTIONS="-H gnu"
13133 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
13135 for i in 1 2 3 4 5 6 7 8 9
13138 tar -cf archive ./$prefix* &&
13139 tar --delete -f archive ./${prefix}5 &&
13142 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13143 at_status=$? at_failed=false
13145 at_fn_diff_devnull "$at_stderr" || at_failed=:
13146 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
13147 ./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
13148 ./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
13149 ./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
13150 ./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
13151 ./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
13152 ./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
13153 ./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
13155 $at_diff - "$at_stdout" || at_failed=:
13156 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
13157 $at_failed && at_fn_log_failure
13161 $as_echo "$at_srcdir/delete03.at:26:
13164 TEST_TAR_FORMAT=oldgnu
13165 export TEST_TAR_FORMAT
13166 TAR_OPTIONS=\"-H oldgnu\"
13171 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
13173 for i in 1 2 3 4 5 6 7 8 9
13174 do touch \$prefix\$i
13176 tar -cf archive ./\$prefix* &&
13177 tar --delete -f archive ./\${prefix}5 &&
13180 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
13184 TEST_TAR_FORMAT=oldgnu
13185 export TEST_TAR_FORMAT
13186 TAR_OPTIONS="-H oldgnu"
13191 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
13193 for i in 1 2 3 4 5 6 7 8 9
13196 tar -cf archive ./$prefix* &&
13197 tar --delete -f archive ./${prefix}5 &&
13200 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13201 at_status=$? at_failed=false
13203 at_fn_diff_devnull "$at_stderr" || at_failed=:
13204 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
13205 ./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
13206 ./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
13207 ./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
13208 ./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
13209 ./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
13210 ./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
13211 ./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
13213 $at_diff - "$at_stdout" || at_failed=:
13214 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
13215 $at_failed && at_fn_log_failure
13219 $as_echo "$at_srcdir/delete03.at:26:
13222 TEST_TAR_FORMAT=posix
13223 export TEST_TAR_FORMAT
13224 TAR_OPTIONS=\"-H posix\"
13229 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
13231 for i in 1 2 3 4 5 6 7 8 9
13232 do touch \$prefix\$i
13234 tar -cf archive ./\$prefix* &&
13235 tar --delete -f archive ./\${prefix}5 &&
13238 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "delete03.at:26"
13242 TEST_TAR_FORMAT=posix
13243 export TEST_TAR_FORMAT
13244 TAR_OPTIONS="-H posix"
13249 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
13251 for i in 1 2 3 4 5 6 7 8 9
13254 tar -cf archive ./$prefix* &&
13255 tar --delete -f archive ./${prefix}5 &&
13258 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13259 at_status=$? at_failed=false
13261 at_fn_diff_devnull "$at_stderr" || at_failed=:
13262 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
13263 ./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
13264 ./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
13265 ./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
13266 ./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
13267 ./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
13268 ./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
13269 ./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
13271 $at_diff - "$at_stdout" || at_failed=:
13272 at_fn_check_status 0 $at_status "$at_srcdir/delete03.at:26"
13273 $at_failed && at_fn_log_failure
13281 $at_times_p && times >"$at_times_file"
13282 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13283 read at_status <"$at_status_file"
13286 at_fn_group_banner 55 'delete04.at:23' \
13287 "deleting a large last member" " " 8
13289 test -f $XFAILFILE && at_xfail=yes
13291 $as_echo "55. $at_setup_line: testing $at_desc ..."
13299 $as_echo "$at_srcdir/delete04.at:26:
13303 export TEST_TAR_FORMAT
13304 TAR_OPTIONS=\"-H v7\"
13308 genfile -l 3 -f file1
13309 genfile -l 5 -f file2
13310 genfile -l 3 -f file3
13311 genfile -l 6 -f file4
13312 genfile -l 24 -f file5
13313 genfile -l 13 -f file6
13314 genfile -l 1385 -f file7
13315 genfile -l 30 -f file8
13316 genfile -l 10 -f file9
13317 genfile -l 256000 -f file10
13318 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13319 tar f archive --delete file10
13322 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13327 export TEST_TAR_FORMAT
13328 TAR_OPTIONS="-H v7"
13332 genfile -l 3 -f file1
13333 genfile -l 5 -f file2
13334 genfile -l 3 -f file3
13335 genfile -l 6 -f file4
13336 genfile -l 24 -f file5
13337 genfile -l 13 -f file6
13338 genfile -l 1385 -f file7
13339 genfile -l 30 -f file8
13340 genfile -l 10 -f file9
13341 genfile -l 256000 -f file10
13342 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13343 tar f archive --delete file10
13346 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13347 at_status=$? at_failed=false
13349 at_fn_diff_devnull "$at_stderr" || at_failed=:
13350 echo >>"$at_stdout"; $as_echo "file1
13360 $at_diff - "$at_stdout" || at_failed=:
13361 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13362 $at_failed && at_fn_log_failure
13366 $as_echo "$at_srcdir/delete04.at:26:
13369 TEST_TAR_FORMAT=oldgnu
13370 export TEST_TAR_FORMAT
13371 TAR_OPTIONS=\"-H oldgnu\"
13375 genfile -l 3 -f file1
13376 genfile -l 5 -f file2
13377 genfile -l 3 -f file3
13378 genfile -l 6 -f file4
13379 genfile -l 24 -f file5
13380 genfile -l 13 -f file6
13381 genfile -l 1385 -f file7
13382 genfile -l 30 -f file8
13383 genfile -l 10 -f file9
13384 genfile -l 256000 -f file10
13385 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13386 tar f archive --delete file10
13389 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13393 TEST_TAR_FORMAT=oldgnu
13394 export TEST_TAR_FORMAT
13395 TAR_OPTIONS="-H oldgnu"
13399 genfile -l 3 -f file1
13400 genfile -l 5 -f file2
13401 genfile -l 3 -f file3
13402 genfile -l 6 -f file4
13403 genfile -l 24 -f file5
13404 genfile -l 13 -f file6
13405 genfile -l 1385 -f file7
13406 genfile -l 30 -f file8
13407 genfile -l 10 -f file9
13408 genfile -l 256000 -f file10
13409 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13410 tar f archive --delete file10
13413 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13414 at_status=$? at_failed=false
13416 at_fn_diff_devnull "$at_stderr" || at_failed=:
13417 echo >>"$at_stdout"; $as_echo "file1
13427 $at_diff - "$at_stdout" || at_failed=:
13428 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13429 $at_failed && at_fn_log_failure
13433 $as_echo "$at_srcdir/delete04.at:26:
13436 TEST_TAR_FORMAT=ustar
13437 export TEST_TAR_FORMAT
13438 TAR_OPTIONS=\"-H ustar\"
13442 genfile -l 3 -f file1
13443 genfile -l 5 -f file2
13444 genfile -l 3 -f file3
13445 genfile -l 6 -f file4
13446 genfile -l 24 -f file5
13447 genfile -l 13 -f file6
13448 genfile -l 1385 -f file7
13449 genfile -l 30 -f file8
13450 genfile -l 10 -f file9
13451 genfile -l 256000 -f file10
13452 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13453 tar f archive --delete file10
13456 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13460 TEST_TAR_FORMAT=ustar
13461 export TEST_TAR_FORMAT
13462 TAR_OPTIONS="-H ustar"
13466 genfile -l 3 -f file1
13467 genfile -l 5 -f file2
13468 genfile -l 3 -f file3
13469 genfile -l 6 -f file4
13470 genfile -l 24 -f file5
13471 genfile -l 13 -f file6
13472 genfile -l 1385 -f file7
13473 genfile -l 30 -f file8
13474 genfile -l 10 -f file9
13475 genfile -l 256000 -f file10
13476 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13477 tar f archive --delete file10
13480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13481 at_status=$? at_failed=false
13483 at_fn_diff_devnull "$at_stderr" || at_failed=:
13484 echo >>"$at_stdout"; $as_echo "file1
13494 $at_diff - "$at_stdout" || at_failed=:
13495 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13496 $at_failed && at_fn_log_failure
13500 $as_echo "$at_srcdir/delete04.at:26:
13503 TEST_TAR_FORMAT=posix
13504 export TEST_TAR_FORMAT
13505 TAR_OPTIONS=\"-H posix\"
13509 genfile -l 3 -f file1
13510 genfile -l 5 -f file2
13511 genfile -l 3 -f file3
13512 genfile -l 6 -f file4
13513 genfile -l 24 -f file5
13514 genfile -l 13 -f file6
13515 genfile -l 1385 -f file7
13516 genfile -l 30 -f file8
13517 genfile -l 10 -f file9
13518 genfile -l 256000 -f file10
13519 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13520 tar f archive --delete file10
13523 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13527 TEST_TAR_FORMAT=posix
13528 export TEST_TAR_FORMAT
13529 TAR_OPTIONS="-H posix"
13533 genfile -l 3 -f file1
13534 genfile -l 5 -f file2
13535 genfile -l 3 -f file3
13536 genfile -l 6 -f file4
13537 genfile -l 24 -f file5
13538 genfile -l 13 -f file6
13539 genfile -l 1385 -f file7
13540 genfile -l 30 -f file8
13541 genfile -l 10 -f file9
13542 genfile -l 256000 -f file10
13543 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13544 tar f archive --delete file10
13547 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13548 at_status=$? at_failed=false
13550 at_fn_diff_devnull "$at_stderr" || at_failed=:
13551 echo >>"$at_stdout"; $as_echo "file1
13561 $at_diff - "$at_stdout" || at_failed=:
13562 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
13563 $at_failed && at_fn_log_failure
13567 $as_echo "$at_srcdir/delete04.at:26:
13570 TEST_TAR_FORMAT=gnu
13571 export TEST_TAR_FORMAT
13572 TAR_OPTIONS=\"-H gnu\"
13576 genfile -l 3 -f file1
13577 genfile -l 5 -f file2
13578 genfile -l 3 -f file3
13579 genfile -l 6 -f file4
13580 genfile -l 24 -f file5
13581 genfile -l 13 -f file6
13582 genfile -l 1385 -f file7
13583 genfile -l 30 -f file8
13584 genfile -l 10 -f file9
13585 genfile -l 256000 -f file10
13586 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13587 tar f archive --delete file10
13590 at_fn_check_prepare_notrace 'an embedded newline' "delete04.at:26"
13594 TEST_TAR_FORMAT=gnu
13595 export TEST_TAR_FORMAT
13596 TAR_OPTIONS="-H gnu"
13600 genfile -l 3 -f file1
13601 genfile -l 5 -f file2
13602 genfile -l 3 -f file3
13603 genfile -l 6 -f file4
13604 genfile -l 24 -f file5
13605 genfile -l 13 -f file6
13606 genfile -l 1385 -f file7
13607 genfile -l 30 -f file8
13608 genfile -l 10 -f file9
13609 genfile -l 256000 -f file10
13610 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
13611 tar f archive --delete file10
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 "file1
13628 $at_diff - "$at_stdout" || at_failed=:
13629 at_fn_check_status 0 $at_status "$at_srcdir/delete04.at:26"
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 56 'delete05.at:27' \
13643 "deleting non-existing member" " " 8
13645 test -f $XFAILFILE && at_xfail=yes
13647 $as_echo "56. $at_setup_line: testing $at_desc ..."
13655 $as_echo "$at_srcdir/delete05.at:30:
13659 export TEST_TAR_FORMAT
13660 TAR_OPTIONS=\"-H v7\"
13664 genfile -l 1024 -f en
13665 genfile -l 1024 -f to
13667 tar cf archive en to
13668 # Make sure we don't use bogus blocking factor.
13669 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13670 tar --file archive --blocking-factor=20 --delete tre
13673 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13678 export TEST_TAR_FORMAT
13679 TAR_OPTIONS="-H v7"
13683 genfile -l 1024 -f en
13684 genfile -l 1024 -f to
13686 tar cf archive en to
13687 # Make sure we don't use bogus blocking factor.
13688 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13689 tar --file archive --blocking-factor=20 --delete tre
13692 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13693 at_status=$? at_failed=false
13695 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13696 tar: Exiting with failure status due to previous errors
13698 $at_diff - "$at_stderr" || at_failed=:
13699 echo >>"$at_stdout"; $as_echo "en
13702 $at_diff - "$at_stdout" || at_failed=:
13703 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13704 $at_failed && at_fn_log_failure
13708 $as_echo "$at_srcdir/delete05.at:30:
13711 TEST_TAR_FORMAT=oldgnu
13712 export TEST_TAR_FORMAT
13713 TAR_OPTIONS=\"-H oldgnu\"
13717 genfile -l 1024 -f en
13718 genfile -l 1024 -f to
13720 tar cf archive en to
13721 # Make sure we don't use bogus blocking factor.
13722 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13723 tar --file archive --blocking-factor=20 --delete tre
13726 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13730 TEST_TAR_FORMAT=oldgnu
13731 export TEST_TAR_FORMAT
13732 TAR_OPTIONS="-H oldgnu"
13736 genfile -l 1024 -f en
13737 genfile -l 1024 -f to
13739 tar cf archive en to
13740 # Make sure we don't use bogus blocking factor.
13741 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13742 tar --file archive --blocking-factor=20 --delete tre
13745 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13746 at_status=$? at_failed=false
13748 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13749 tar: Exiting with failure status due to previous errors
13751 $at_diff - "$at_stderr" || at_failed=:
13752 echo >>"$at_stdout"; $as_echo "en
13755 $at_diff - "$at_stdout" || at_failed=:
13756 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13757 $at_failed && at_fn_log_failure
13761 $as_echo "$at_srcdir/delete05.at:30:
13764 TEST_TAR_FORMAT=ustar
13765 export TEST_TAR_FORMAT
13766 TAR_OPTIONS=\"-H ustar\"
13770 genfile -l 1024 -f en
13771 genfile -l 1024 -f to
13773 tar cf archive en to
13774 # Make sure we don't use bogus blocking factor.
13775 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13776 tar --file archive --blocking-factor=20 --delete tre
13779 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13783 TEST_TAR_FORMAT=ustar
13784 export TEST_TAR_FORMAT
13785 TAR_OPTIONS="-H ustar"
13789 genfile -l 1024 -f en
13790 genfile -l 1024 -f to
13792 tar cf archive en to
13793 # Make sure we don't use bogus blocking factor.
13794 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13795 tar --file archive --blocking-factor=20 --delete tre
13798 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13799 at_status=$? at_failed=false
13801 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13802 tar: Exiting with failure status due to previous errors
13804 $at_diff - "$at_stderr" || at_failed=:
13805 echo >>"$at_stdout"; $as_echo "en
13808 $at_diff - "$at_stdout" || at_failed=:
13809 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13810 $at_failed && at_fn_log_failure
13814 $as_echo "$at_srcdir/delete05.at:30:
13817 TEST_TAR_FORMAT=posix
13818 export TEST_TAR_FORMAT
13819 TAR_OPTIONS=\"-H posix\"
13823 genfile -l 1024 -f en
13824 genfile -l 1024 -f to
13826 tar cf archive en to
13827 # Make sure we don't use bogus blocking factor.
13828 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13829 tar --file archive --blocking-factor=20 --delete tre
13832 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13836 TEST_TAR_FORMAT=posix
13837 export TEST_TAR_FORMAT
13838 TAR_OPTIONS="-H posix"
13842 genfile -l 1024 -f en
13843 genfile -l 1024 -f to
13845 tar cf archive en to
13846 # Make sure we don't use bogus blocking factor.
13847 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13848 tar --file archive --blocking-factor=20 --delete tre
13851 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13852 at_status=$? at_failed=false
13854 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13855 tar: Exiting with failure status due to previous errors
13857 $at_diff - "$at_stderr" || at_failed=:
13858 echo >>"$at_stdout"; $as_echo "en
13861 $at_diff - "$at_stdout" || at_failed=:
13862 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13863 $at_failed && at_fn_log_failure
13867 $as_echo "$at_srcdir/delete05.at:30:
13870 TEST_TAR_FORMAT=gnu
13871 export TEST_TAR_FORMAT
13872 TAR_OPTIONS=\"-H gnu\"
13876 genfile -l 1024 -f en
13877 genfile -l 1024 -f to
13879 tar cf archive en to
13880 # Make sure we don't use bogus blocking factor.
13881 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13882 tar --file archive --blocking-factor=20 --delete tre
13885 at_fn_check_prepare_notrace 'an embedded newline' "delete05.at:30"
13889 TEST_TAR_FORMAT=gnu
13890 export TEST_TAR_FORMAT
13891 TAR_OPTIONS="-H gnu"
13895 genfile -l 1024 -f en
13896 genfile -l 1024 -f to
13898 tar cf archive en to
13899 # Make sure we don't use bogus blocking factor.
13900 # GNU tar up to and including 1.14.91 produced an empty archive this way:
13901 tar --file archive --blocking-factor=20 --delete tre
13904 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13905 at_status=$? at_failed=false
13907 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
13908 tar: Exiting with failure status due to previous errors
13910 $at_diff - "$at_stderr" || at_failed=:
13911 echo >>"$at_stdout"; $as_echo "en
13914 $at_diff - "$at_stdout" || at_failed=:
13915 at_fn_check_status 0 $at_status "$at_srcdir/delete05.at:30"
13916 $at_failed && at_fn_log_failure
13923 $at_times_p && times >"$at_times_file"
13924 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13925 read at_status <"$at_status_file"
13928 at_fn_group_banner 57 'extrac01.at:23' \
13929 "extract over an existing directory" " " 9
13931 test -f $XFAILFILE && at_xfail=yes
13933 $as_echo "57. $at_setup_line: testing $at_desc ..."
13941 $as_echo "$at_srcdir/extrac01.at:26:
13945 export TEST_TAR_FORMAT
13946 TAR_OPTIONS=\"-H v7\"
13951 touch directory/file
13952 tar cf archive directory || exit 1
13953 tar xf archive --warning=no-timestamp || exit 1
13955 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13960 export TEST_TAR_FORMAT
13961 TAR_OPTIONS="-H v7"
13966 touch directory/file
13967 tar cf archive directory || exit 1
13968 tar xf archive --warning=no-timestamp || exit 1
13970 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13971 at_status=$? at_failed=false
13973 at_fn_diff_devnull "$at_stderr" || at_failed=:
13974 at_fn_diff_devnull "$at_stdout" || at_failed=:
13975 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
13976 $at_failed && at_fn_log_failure
13980 $as_echo "$at_srcdir/extrac01.at:26:
13983 TEST_TAR_FORMAT=oldgnu
13984 export TEST_TAR_FORMAT
13985 TAR_OPTIONS=\"-H oldgnu\"
13990 touch directory/file
13991 tar cf archive directory || exit 1
13992 tar xf archive --warning=no-timestamp || exit 1
13994 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
13998 TEST_TAR_FORMAT=oldgnu
13999 export TEST_TAR_FORMAT
14000 TAR_OPTIONS="-H oldgnu"
14005 touch directory/file
14006 tar cf archive directory || exit 1
14007 tar xf archive --warning=no-timestamp || exit 1
14009 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14010 at_status=$? at_failed=false
14012 at_fn_diff_devnull "$at_stderr" || at_failed=:
14013 at_fn_diff_devnull "$at_stdout" || at_failed=:
14014 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
14015 $at_failed && at_fn_log_failure
14019 $as_echo "$at_srcdir/extrac01.at:26:
14022 TEST_TAR_FORMAT=ustar
14023 export TEST_TAR_FORMAT
14024 TAR_OPTIONS=\"-H ustar\"
14029 touch directory/file
14030 tar cf archive directory || exit 1
14031 tar xf archive --warning=no-timestamp || exit 1
14033 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
14037 TEST_TAR_FORMAT=ustar
14038 export TEST_TAR_FORMAT
14039 TAR_OPTIONS="-H ustar"
14044 touch directory/file
14045 tar cf archive directory || exit 1
14046 tar xf archive --warning=no-timestamp || exit 1
14048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14049 at_status=$? at_failed=false
14051 at_fn_diff_devnull "$at_stderr" || at_failed=:
14052 at_fn_diff_devnull "$at_stdout" || at_failed=:
14053 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
14054 $at_failed && at_fn_log_failure
14058 $as_echo "$at_srcdir/extrac01.at:26:
14061 TEST_TAR_FORMAT=posix
14062 export TEST_TAR_FORMAT
14063 TAR_OPTIONS=\"-H posix\"
14068 touch directory/file
14069 tar cf archive directory || exit 1
14070 tar xf archive --warning=no-timestamp || exit 1
14072 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
14076 TEST_TAR_FORMAT=posix
14077 export TEST_TAR_FORMAT
14078 TAR_OPTIONS="-H posix"
14083 touch directory/file
14084 tar cf archive directory || exit 1
14085 tar xf archive --warning=no-timestamp || exit 1
14087 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14088 at_status=$? at_failed=false
14090 at_fn_diff_devnull "$at_stderr" || at_failed=:
14091 at_fn_diff_devnull "$at_stdout" || at_failed=:
14092 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
14093 $at_failed && at_fn_log_failure
14097 $as_echo "$at_srcdir/extrac01.at:26:
14100 TEST_TAR_FORMAT=gnu
14101 export TEST_TAR_FORMAT
14102 TAR_OPTIONS=\"-H gnu\"
14107 touch directory/file
14108 tar cf archive directory || exit 1
14109 tar xf archive --warning=no-timestamp || exit 1
14111 at_fn_check_prepare_notrace 'an embedded newline' "extrac01.at:26"
14115 TEST_TAR_FORMAT=gnu
14116 export TEST_TAR_FORMAT
14117 TAR_OPTIONS="-H gnu"
14122 touch directory/file
14123 tar cf archive directory || exit 1
14124 tar xf archive --warning=no-timestamp || exit 1
14126 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14127 at_status=$? at_failed=false
14129 at_fn_diff_devnull "$at_stderr" || at_failed=:
14130 at_fn_diff_devnull "$at_stdout" || at_failed=:
14131 at_fn_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
14132 $at_failed && at_fn_log_failure
14139 $at_times_p && times >"$at_times_file"
14140 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14141 read at_status <"$at_status_file"
14144 at_fn_group_banner 58 'extrac02.at:23' \
14145 "extracting symlinks over an existing file" " " 9
14147 test -f $XFAILFILE && at_xfail=yes
14149 $as_echo "58. $at_setup_line: testing $at_desc ..."
14154 # FIXME: Skip if symlinks are not supported on the system
14159 $as_echo "$at_srcdir/extrac02.at:28:
14163 export TEST_TAR_FORMAT
14164 TAR_OPTIONS=\"-H v7\"
14169 ln -s file link 2> /dev/null || ln file link
14170 tar cf archive link
14175 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
14180 export TEST_TAR_FORMAT
14181 TAR_OPTIONS="-H v7"
14186 ln -s file link 2> /dev/null || ln file link
14187 tar cf archive link
14192 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14193 at_status=$? at_failed=false
14195 at_fn_diff_devnull "$at_stderr" || at_failed=:
14196 at_fn_diff_devnull "$at_stdout" || at_failed=:
14197 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
14198 $at_failed && at_fn_log_failure
14202 $as_echo "$at_srcdir/extrac02.at:28:
14205 TEST_TAR_FORMAT=oldgnu
14206 export TEST_TAR_FORMAT
14207 TAR_OPTIONS=\"-H oldgnu\"
14212 ln -s file link 2> /dev/null || ln file link
14213 tar cf archive link
14218 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
14222 TEST_TAR_FORMAT=oldgnu
14223 export TEST_TAR_FORMAT
14224 TAR_OPTIONS="-H oldgnu"
14229 ln -s file link 2> /dev/null || ln file link
14230 tar cf archive link
14235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14236 at_status=$? at_failed=false
14238 at_fn_diff_devnull "$at_stderr" || at_failed=:
14239 at_fn_diff_devnull "$at_stdout" || at_failed=:
14240 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
14241 $at_failed && at_fn_log_failure
14245 $as_echo "$at_srcdir/extrac02.at:28:
14248 TEST_TAR_FORMAT=ustar
14249 export TEST_TAR_FORMAT
14250 TAR_OPTIONS=\"-H ustar\"
14255 ln -s file link 2> /dev/null || ln file link
14256 tar cf archive link
14261 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
14265 TEST_TAR_FORMAT=ustar
14266 export TEST_TAR_FORMAT
14267 TAR_OPTIONS="-H ustar"
14272 ln -s file link 2> /dev/null || ln file link
14273 tar cf archive link
14278 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14279 at_status=$? at_failed=false
14281 at_fn_diff_devnull "$at_stderr" || at_failed=:
14282 at_fn_diff_devnull "$at_stdout" || at_failed=:
14283 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
14284 $at_failed && at_fn_log_failure
14288 $as_echo "$at_srcdir/extrac02.at:28:
14291 TEST_TAR_FORMAT=posix
14292 export TEST_TAR_FORMAT
14293 TAR_OPTIONS=\"-H posix\"
14298 ln -s file link 2> /dev/null || ln file link
14299 tar cf archive link
14304 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
14308 TEST_TAR_FORMAT=posix
14309 export TEST_TAR_FORMAT
14310 TAR_OPTIONS="-H posix"
14315 ln -s file link 2> /dev/null || ln file link
14316 tar cf archive link
14321 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14322 at_status=$? at_failed=false
14324 at_fn_diff_devnull "$at_stderr" || at_failed=:
14325 at_fn_diff_devnull "$at_stdout" || at_failed=:
14326 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
14327 $at_failed && at_fn_log_failure
14331 $as_echo "$at_srcdir/extrac02.at:28:
14334 TEST_TAR_FORMAT=gnu
14335 export TEST_TAR_FORMAT
14336 TAR_OPTIONS=\"-H gnu\"
14341 ln -s file link 2> /dev/null || ln file link
14342 tar cf archive link
14347 at_fn_check_prepare_notrace 'an embedded newline' "extrac02.at:28"
14351 TEST_TAR_FORMAT=gnu
14352 export TEST_TAR_FORMAT
14353 TAR_OPTIONS="-H gnu"
14358 ln -s file link 2> /dev/null || ln file link
14359 tar cf archive link
14364 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14365 at_status=$? at_failed=false
14367 at_fn_diff_devnull "$at_stderr" || at_failed=:
14368 at_fn_diff_devnull "$at_stdout" || at_failed=:
14369 at_fn_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
14370 $at_failed && at_fn_log_failure
14377 $at_times_p && times >"$at_times_file"
14378 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14379 read at_status <"$at_status_file"
14382 at_fn_group_banner 59 'extrac03.at:23' \
14383 "extraction loops" " " 9
14385 test -f $XFAILFILE && at_xfail=yes
14387 $as_echo "59. $at_setup_line: testing $at_desc ..."
14395 $as_echo "$at_srcdir/extrac03.at:26:
14399 export TEST_TAR_FORMAT
14400 TAR_OPTIONS=\"-H v7\"
14405 tar -cPvf archive directory/../directory
14407 tar -xPvf archive --warning=no-timestamp)"
14408 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14413 export TEST_TAR_FORMAT
14414 TAR_OPTIONS="-H v7"
14419 tar -cPvf archive directory/../directory
14421 tar -xPvf archive --warning=no-timestamp)
14422 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14423 at_status=$? at_failed=false
14425 at_fn_diff_devnull "$at_stderr" || at_failed=:
14426 echo >>"$at_stdout"; $as_echo "directory/../directory/
14428 directory/../directory/
14430 $at_diff - "$at_stdout" || at_failed=:
14431 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14432 $at_failed && at_fn_log_failure
14436 $as_echo "$at_srcdir/extrac03.at:26:
14439 TEST_TAR_FORMAT=oldgnu
14440 export TEST_TAR_FORMAT
14441 TAR_OPTIONS=\"-H oldgnu\"
14446 tar -cPvf archive directory/../directory
14448 tar -xPvf archive --warning=no-timestamp)"
14449 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14453 TEST_TAR_FORMAT=oldgnu
14454 export TEST_TAR_FORMAT
14455 TAR_OPTIONS="-H oldgnu"
14460 tar -cPvf archive directory/../directory
14462 tar -xPvf archive --warning=no-timestamp)
14463 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14464 at_status=$? at_failed=false
14466 at_fn_diff_devnull "$at_stderr" || at_failed=:
14467 echo >>"$at_stdout"; $as_echo "directory/../directory/
14469 directory/../directory/
14471 $at_diff - "$at_stdout" || at_failed=:
14472 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14473 $at_failed && at_fn_log_failure
14477 $as_echo "$at_srcdir/extrac03.at:26:
14480 TEST_TAR_FORMAT=ustar
14481 export TEST_TAR_FORMAT
14482 TAR_OPTIONS=\"-H ustar\"
14487 tar -cPvf archive directory/../directory
14489 tar -xPvf archive --warning=no-timestamp)"
14490 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14494 TEST_TAR_FORMAT=ustar
14495 export TEST_TAR_FORMAT
14496 TAR_OPTIONS="-H ustar"
14501 tar -cPvf archive directory/../directory
14503 tar -xPvf archive --warning=no-timestamp)
14504 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14505 at_status=$? at_failed=false
14507 at_fn_diff_devnull "$at_stderr" || at_failed=:
14508 echo >>"$at_stdout"; $as_echo "directory/../directory/
14510 directory/../directory/
14512 $at_diff - "$at_stdout" || at_failed=:
14513 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14514 $at_failed && at_fn_log_failure
14518 $as_echo "$at_srcdir/extrac03.at:26:
14521 TEST_TAR_FORMAT=posix
14522 export TEST_TAR_FORMAT
14523 TAR_OPTIONS=\"-H posix\"
14528 tar -cPvf archive directory/../directory
14530 tar -xPvf archive --warning=no-timestamp)"
14531 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14535 TEST_TAR_FORMAT=posix
14536 export TEST_TAR_FORMAT
14537 TAR_OPTIONS="-H posix"
14542 tar -cPvf archive directory/../directory
14544 tar -xPvf archive --warning=no-timestamp)
14545 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14546 at_status=$? at_failed=false
14548 at_fn_diff_devnull "$at_stderr" || at_failed=:
14549 echo >>"$at_stdout"; $as_echo "directory/../directory/
14551 directory/../directory/
14553 $at_diff - "$at_stdout" || at_failed=:
14554 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14555 $at_failed && at_fn_log_failure
14559 $as_echo "$at_srcdir/extrac03.at:26:
14562 TEST_TAR_FORMAT=gnu
14563 export TEST_TAR_FORMAT
14564 TAR_OPTIONS=\"-H gnu\"
14569 tar -cPvf archive directory/../directory
14571 tar -xPvf archive --warning=no-timestamp)"
14572 at_fn_check_prepare_notrace 'an embedded newline' "extrac03.at:26"
14576 TEST_TAR_FORMAT=gnu
14577 export TEST_TAR_FORMAT
14578 TAR_OPTIONS="-H gnu"
14583 tar -cPvf archive directory/../directory
14585 tar -xPvf archive --warning=no-timestamp)
14586 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14587 at_status=$? at_failed=false
14589 at_fn_diff_devnull "$at_stderr" || at_failed=:
14590 echo >>"$at_stdout"; $as_echo "directory/../directory/
14592 directory/../directory/
14594 $at_diff - "$at_stdout" || at_failed=:
14595 at_fn_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
14596 $at_failed && at_fn_log_failure
14603 $at_times_p && times >"$at_times_file"
14604 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14605 read at_status <"$at_status_file"
14608 at_fn_group_banner 60 'extrac04.at:23' \
14609 "extract + fnmatch" " " 9
14611 test -f $XFAILFILE && at_xfail=yes
14613 $as_echo "60. $at_setup_line: testing $at_desc ..."
14621 $as_echo "$at_srcdir/extrac04.at:26:
14625 export TEST_TAR_FORMAT
14626 TAR_OPTIONS=\"-H v7\"
14631 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14635 mkdir directory/subdirectory
14636 touch directory/file1
14637 touch directory/file2
14638 touch directory/subdirectory/file1
14639 touch directory/subdirectory/file2
14640 tar -cf archive ./file1 directory
14642 --exclude='./*1' \\
14643 --exclude='d*/*1' \\
14644 --exclude='d*/s*/*2' | sort
14646 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14651 export TEST_TAR_FORMAT
14652 TAR_OPTIONS="-H v7"
14657 test -z "`sort < /dev/null 2>&1`" || exit 77
14661 mkdir directory/subdirectory
14662 touch directory/file1
14663 touch directory/file2
14664 touch directory/subdirectory/file1
14665 touch directory/subdirectory/file2
14666 tar -cf archive ./file1 directory
14669 --exclude='d*/*1' \
14670 --exclude='d*/s*/*2' | sort
14672 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14673 at_status=$? at_failed=false
14675 at_fn_diff_devnull "$at_stderr" || at_failed=:
14676 echo >>"$at_stdout"; $as_echo "directory/
14678 directory/subdirectory/
14680 $at_diff - "$at_stdout" || at_failed=:
14681 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14682 $at_failed && at_fn_log_failure
14686 $as_echo "$at_srcdir/extrac04.at:26:
14689 TEST_TAR_FORMAT=oldgnu
14690 export TEST_TAR_FORMAT
14691 TAR_OPTIONS=\"-H oldgnu\"
14696 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14700 mkdir directory/subdirectory
14701 touch directory/file1
14702 touch directory/file2
14703 touch directory/subdirectory/file1
14704 touch directory/subdirectory/file2
14705 tar -cf archive ./file1 directory
14707 --exclude='./*1' \\
14708 --exclude='d*/*1' \\
14709 --exclude='d*/s*/*2' | sort
14711 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14715 TEST_TAR_FORMAT=oldgnu
14716 export TEST_TAR_FORMAT
14717 TAR_OPTIONS="-H oldgnu"
14722 test -z "`sort < /dev/null 2>&1`" || exit 77
14726 mkdir directory/subdirectory
14727 touch directory/file1
14728 touch directory/file2
14729 touch directory/subdirectory/file1
14730 touch directory/subdirectory/file2
14731 tar -cf archive ./file1 directory
14734 --exclude='d*/*1' \
14735 --exclude='d*/s*/*2' | sort
14737 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14738 at_status=$? at_failed=false
14740 at_fn_diff_devnull "$at_stderr" || at_failed=:
14741 echo >>"$at_stdout"; $as_echo "directory/
14743 directory/subdirectory/
14745 $at_diff - "$at_stdout" || at_failed=:
14746 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14747 $at_failed && at_fn_log_failure
14751 $as_echo "$at_srcdir/extrac04.at:26:
14754 TEST_TAR_FORMAT=ustar
14755 export TEST_TAR_FORMAT
14756 TAR_OPTIONS=\"-H ustar\"
14761 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14765 mkdir directory/subdirectory
14766 touch directory/file1
14767 touch directory/file2
14768 touch directory/subdirectory/file1
14769 touch directory/subdirectory/file2
14770 tar -cf archive ./file1 directory
14772 --exclude='./*1' \\
14773 --exclude='d*/*1' \\
14774 --exclude='d*/s*/*2' | sort
14776 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14780 TEST_TAR_FORMAT=ustar
14781 export TEST_TAR_FORMAT
14782 TAR_OPTIONS="-H ustar"
14787 test -z "`sort < /dev/null 2>&1`" || exit 77
14791 mkdir directory/subdirectory
14792 touch directory/file1
14793 touch directory/file2
14794 touch directory/subdirectory/file1
14795 touch directory/subdirectory/file2
14796 tar -cf archive ./file1 directory
14799 --exclude='d*/*1' \
14800 --exclude='d*/s*/*2' | sort
14802 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14803 at_status=$? at_failed=false
14805 at_fn_diff_devnull "$at_stderr" || at_failed=:
14806 echo >>"$at_stdout"; $as_echo "directory/
14808 directory/subdirectory/
14810 $at_diff - "$at_stdout" || at_failed=:
14811 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14812 $at_failed && at_fn_log_failure
14816 $as_echo "$at_srcdir/extrac04.at:26:
14819 TEST_TAR_FORMAT=posix
14820 export TEST_TAR_FORMAT
14821 TAR_OPTIONS=\"-H posix\"
14826 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14830 mkdir directory/subdirectory
14831 touch directory/file1
14832 touch directory/file2
14833 touch directory/subdirectory/file1
14834 touch directory/subdirectory/file2
14835 tar -cf archive ./file1 directory
14837 --exclude='./*1' \\
14838 --exclude='d*/*1' \\
14839 --exclude='d*/s*/*2' | sort
14841 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14845 TEST_TAR_FORMAT=posix
14846 export TEST_TAR_FORMAT
14847 TAR_OPTIONS="-H posix"
14852 test -z "`sort < /dev/null 2>&1`" || exit 77
14856 mkdir directory/subdirectory
14857 touch directory/file1
14858 touch directory/file2
14859 touch directory/subdirectory/file1
14860 touch directory/subdirectory/file2
14861 tar -cf archive ./file1 directory
14864 --exclude='d*/*1' \
14865 --exclude='d*/s*/*2' | sort
14867 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14868 at_status=$? at_failed=false
14870 at_fn_diff_devnull "$at_stderr" || at_failed=:
14871 echo >>"$at_stdout"; $as_echo "directory/
14873 directory/subdirectory/
14875 $at_diff - "$at_stdout" || at_failed=:
14876 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14877 $at_failed && at_fn_log_failure
14881 $as_echo "$at_srcdir/extrac04.at:26:
14884 TEST_TAR_FORMAT=gnu
14885 export TEST_TAR_FORMAT
14886 TAR_OPTIONS=\"-H gnu\"
14891 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
14895 mkdir directory/subdirectory
14896 touch directory/file1
14897 touch directory/file2
14898 touch directory/subdirectory/file1
14899 touch directory/subdirectory/file2
14900 tar -cf archive ./file1 directory
14902 --exclude='./*1' \\
14903 --exclude='d*/*1' \\
14904 --exclude='d*/s*/*2' | sort
14906 at_fn_check_prepare_notrace 'a `...` command substitution' "extrac04.at:26"
14910 TEST_TAR_FORMAT=gnu
14911 export TEST_TAR_FORMAT
14912 TAR_OPTIONS="-H gnu"
14917 test -z "`sort < /dev/null 2>&1`" || exit 77
14921 mkdir directory/subdirectory
14922 touch directory/file1
14923 touch directory/file2
14924 touch directory/subdirectory/file1
14925 touch directory/subdirectory/file2
14926 tar -cf archive ./file1 directory
14929 --exclude='d*/*1' \
14930 --exclude='d*/s*/*2' | sort
14932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14933 at_status=$? at_failed=false
14935 at_fn_diff_devnull "$at_stderr" || at_failed=:
14936 echo >>"$at_stdout"; $as_echo "directory/
14938 directory/subdirectory/
14940 $at_diff - "$at_stdout" || at_failed=:
14941 at_fn_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
14942 $at_failed && at_fn_log_failure
14949 $at_times_p && times >"$at_times_file"
14950 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14951 read at_status <"$at_status_file"
14954 at_fn_group_banner 61 'extrac05.at:30' \
14955 "extracting selected members from pax" " " 9
14957 test -f $XFAILFILE && at_xfail=yes
14959 $as_echo "61. $at_setup_line: testing $at_desc ..."
14964 cat >list <<'_ATEOF'
14973 $as_echo "$at_srcdir/extrac05.at:38:
14976 TEST_TAR_FORMAT=posix
14977 export TEST_TAR_FORMAT
14978 TAR_OPTIONS=\"-H posix\"
14982 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
14983 genfile --length 118 --file jeden
14984 genfile --length 223 --file dwa
14985 genfile --length 517 --file trzy
14986 genfile --length 110 --file cztery
14988 tar cf archive jeden dwa trzy cztery || exit 1
14993 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
14997 at_fn_check_prepare_notrace 'an embedded newline' "extrac05.at:38"
15001 TEST_TAR_FORMAT=posix
15002 export TEST_TAR_FORMAT
15003 TAR_OPTIONS="-H posix"
15007 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
15008 genfile --length 118 --file jeden
15009 genfile --length 223 --file dwa
15010 genfile --length 517 --file trzy
15011 genfile --length 110 --file cztery
15013 tar cf archive jeden dwa trzy cztery || exit 1
15018 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
15022 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15023 at_status=$? at_failed=false
15025 at_fn_diff_devnull "$at_stderr" || at_failed=:
15026 echo >>"$at_stdout"; $as_echo "jeden
15029 $at_diff - "$at_stdout" || at_failed=:
15030 at_fn_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
15031 $at_failed && at_fn_log_failure
15038 $at_times_p && times >"$at_times_file"
15039 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15040 read at_status <"$at_status_file"
15043 at_fn_group_banner 62 'extrac06.at:34' \
15044 "mode of extracted directories" " " 9
15046 test -f $XFAILFILE && at_xfail=yes
15048 $as_echo "62. $at_setup_line: testing $at_desc ..."
15056 $as_echo "$at_srcdir/extrac06.at:37:
15060 export TEST_TAR_FORMAT
15061 TAR_OPTIONS=\"-H v7\"
15069 # Make sure user's umask is honored, even if we are superuser
15070 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
15072 # Create a directory
15074 chmod 777 directory
15075 genfile --stat=mode:777 directory
15078 tar cf arc directory
15080 # Change its permissions ...
15081 chmod 755 directory
15082 genfile --stat=mode:777 directory
15084 # ... and attempt to restore it twice
15085 tar xf arc directory --warning=no-timestamp
15086 genfile --stat=mode:777 directory
15088 tar xf arc directory --warning=no-timestamp
15089 genfile --stat=mode:777 directory
15091 # After both restores, the directory mode should be 755
15093 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
15098 export TEST_TAR_FORMAT
15099 TAR_OPTIONS="-H v7"
15107 # Make sure user's umask is honored, even if we are superuser
15108 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15110 # Create a directory
15112 chmod 777 directory
15113 genfile --stat=mode:777 directory
15116 tar cf arc directory
15118 # Change its permissions ...
15119 chmod 755 directory
15120 genfile --stat=mode:777 directory
15122 # ... and attempt to restore it twice
15123 tar xf arc directory --warning=no-timestamp
15124 genfile --stat=mode:777 directory
15126 tar xf arc directory --warning=no-timestamp
15127 genfile --stat=mode:777 directory
15129 # After both restores, the directory mode should be 755
15131 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15132 at_status=$? at_failed=false
15134 at_fn_diff_devnull "$at_stderr" || at_failed=:
15135 echo >>"$at_stdout"; $as_echo "777
15140 $at_diff - "$at_stdout" || at_failed=:
15141 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15142 $at_failed && at_fn_log_failure
15146 $as_echo "$at_srcdir/extrac06.at:37:
15149 TEST_TAR_FORMAT=oldgnu
15150 export TEST_TAR_FORMAT
15151 TAR_OPTIONS=\"-H oldgnu\"
15159 # Make sure user's umask is honored, even if we are superuser
15160 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
15162 # Create a directory
15164 chmod 777 directory
15165 genfile --stat=mode:777 directory
15168 tar cf arc directory
15170 # Change its permissions ...
15171 chmod 755 directory
15172 genfile --stat=mode:777 directory
15174 # ... and attempt to restore it twice
15175 tar xf arc directory --warning=no-timestamp
15176 genfile --stat=mode:777 directory
15178 tar xf arc directory --warning=no-timestamp
15179 genfile --stat=mode:777 directory
15181 # After both restores, the directory mode should be 755
15183 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
15187 TEST_TAR_FORMAT=oldgnu
15188 export TEST_TAR_FORMAT
15189 TAR_OPTIONS="-H oldgnu"
15197 # Make sure user's umask is honored, even if we are superuser
15198 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15200 # Create a directory
15202 chmod 777 directory
15203 genfile --stat=mode:777 directory
15206 tar cf arc directory
15208 # Change its permissions ...
15209 chmod 755 directory
15210 genfile --stat=mode:777 directory
15212 # ... and attempt to restore it twice
15213 tar xf arc directory --warning=no-timestamp
15214 genfile --stat=mode:777 directory
15216 tar xf arc directory --warning=no-timestamp
15217 genfile --stat=mode:777 directory
15219 # After both restores, the directory mode should be 755
15221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15222 at_status=$? at_failed=false
15224 at_fn_diff_devnull "$at_stderr" || at_failed=:
15225 echo >>"$at_stdout"; $as_echo "777
15230 $at_diff - "$at_stdout" || at_failed=:
15231 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15232 $at_failed && at_fn_log_failure
15236 $as_echo "$at_srcdir/extrac06.at:37:
15239 TEST_TAR_FORMAT=ustar
15240 export TEST_TAR_FORMAT
15241 TAR_OPTIONS=\"-H ustar\"
15249 # Make sure user's umask is honored, even if we are superuser
15250 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
15252 # Create a directory
15254 chmod 777 directory
15255 genfile --stat=mode:777 directory
15258 tar cf arc directory
15260 # Change its permissions ...
15261 chmod 755 directory
15262 genfile --stat=mode:777 directory
15264 # ... and attempt to restore it twice
15265 tar xf arc directory --warning=no-timestamp
15266 genfile --stat=mode:777 directory
15268 tar xf arc directory --warning=no-timestamp
15269 genfile --stat=mode:777 directory
15271 # After both restores, the directory mode should be 755
15273 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
15277 TEST_TAR_FORMAT=ustar
15278 export TEST_TAR_FORMAT
15279 TAR_OPTIONS="-H ustar"
15287 # Make sure user's umask is honored, even if we are superuser
15288 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15290 # Create a directory
15292 chmod 777 directory
15293 genfile --stat=mode:777 directory
15296 tar cf arc directory
15298 # Change its permissions ...
15299 chmod 755 directory
15300 genfile --stat=mode:777 directory
15302 # ... and attempt to restore it twice
15303 tar xf arc directory --warning=no-timestamp
15304 genfile --stat=mode:777 directory
15306 tar xf arc directory --warning=no-timestamp
15307 genfile --stat=mode:777 directory
15309 # After both restores, the directory mode should be 755
15311 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15312 at_status=$? at_failed=false
15314 at_fn_diff_devnull "$at_stderr" || at_failed=:
15315 echo >>"$at_stdout"; $as_echo "777
15320 $at_diff - "$at_stdout" || at_failed=:
15321 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15322 $at_failed && at_fn_log_failure
15326 $as_echo "$at_srcdir/extrac06.at:37:
15329 TEST_TAR_FORMAT=posix
15330 export TEST_TAR_FORMAT
15331 TAR_OPTIONS=\"-H posix\"
15339 # Make sure user's umask is honored, even if we are superuser
15340 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
15342 # Create a directory
15344 chmod 777 directory
15345 genfile --stat=mode:777 directory
15348 tar cf arc directory
15350 # Change its permissions ...
15351 chmod 755 directory
15352 genfile --stat=mode:777 directory
15354 # ... and attempt to restore it twice
15355 tar xf arc directory --warning=no-timestamp
15356 genfile --stat=mode:777 directory
15358 tar xf arc directory --warning=no-timestamp
15359 genfile --stat=mode:777 directory
15361 # After both restores, the directory mode should be 755
15363 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
15367 TEST_TAR_FORMAT=posix
15368 export TEST_TAR_FORMAT
15369 TAR_OPTIONS="-H posix"
15377 # Make sure user's umask is honored, even if we are superuser
15378 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15380 # Create a directory
15382 chmod 777 directory
15383 genfile --stat=mode:777 directory
15386 tar cf arc directory
15388 # Change its permissions ...
15389 chmod 755 directory
15390 genfile --stat=mode:777 directory
15392 # ... and attempt to restore it twice
15393 tar xf arc directory --warning=no-timestamp
15394 genfile --stat=mode:777 directory
15396 tar xf arc directory --warning=no-timestamp
15397 genfile --stat=mode:777 directory
15399 # After both restores, the directory mode should be 755
15401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15402 at_status=$? at_failed=false
15404 at_fn_diff_devnull "$at_stderr" || at_failed=:
15405 echo >>"$at_stdout"; $as_echo "777
15410 $at_diff - "$at_stdout" || at_failed=:
15411 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15412 $at_failed && at_fn_log_failure
15416 $as_echo "$at_srcdir/extrac06.at:37:
15419 TEST_TAR_FORMAT=gnu
15420 export TEST_TAR_FORMAT
15421 TAR_OPTIONS=\"-H gnu\"
15429 # Make sure user's umask is honored, even if we are superuser
15430 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
15432 # Create a directory
15434 chmod 777 directory
15435 genfile --stat=mode:777 directory
15438 tar cf arc directory
15440 # Change its permissions ...
15441 chmod 755 directory
15442 genfile --stat=mode:777 directory
15444 # ... and attempt to restore it twice
15445 tar xf arc directory --warning=no-timestamp
15446 genfile --stat=mode:777 directory
15448 tar xf arc directory --warning=no-timestamp
15449 genfile --stat=mode:777 directory
15451 # After both restores, the directory mode should be 755
15453 at_fn_check_prepare_notrace 'an embedded newline' "extrac06.at:37"
15457 TEST_TAR_FORMAT=gnu
15458 export TEST_TAR_FORMAT
15459 TAR_OPTIONS="-H gnu"
15467 # Make sure user's umask is honored, even if we are superuser
15468 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
15470 # Create a directory
15472 chmod 777 directory
15473 genfile --stat=mode:777 directory
15476 tar cf arc directory
15478 # Change its permissions ...
15479 chmod 755 directory
15480 genfile --stat=mode:777 directory
15482 # ... and attempt to restore it twice
15483 tar xf arc directory --warning=no-timestamp
15484 genfile --stat=mode:777 directory
15486 tar xf arc directory --warning=no-timestamp
15487 genfile --stat=mode:777 directory
15489 # After both restores, the directory mode should be 755
15491 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15492 at_status=$? at_failed=false
15494 at_fn_diff_devnull "$at_stderr" || at_failed=:
15495 echo >>"$at_stdout"; $as_echo "777
15500 $at_diff - "$at_stdout" || at_failed=:
15501 at_fn_check_status 0 $at_status "$at_srcdir/extrac06.at:37"
15502 $at_failed && at_fn_log_failure
15509 $at_times_p && times >"$at_times_file"
15510 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15511 read at_status <"$at_status_file"
15514 at_fn_group_banner 63 'extrac07.at:27' \
15515 "extracting symlinks to a read-only dir" " " 9
15517 test -f $XFAILFILE && at_xfail=yes
15519 $as_echo "63. $at_setup_line: testing $at_desc ..."
15527 $as_echo "$at_srcdir/extrac07.at:30:
15530 TEST_TAR_FORMAT=ustar
15531 export TEST_TAR_FORMAT
15532 TAR_OPTIONS=\"-H ustar\"
15537 echo \"test\" > \$\$
15539 cat \$\$ > /dev/null 2>&1
15542 test \$result -eq 0 && exit 77
15545 echo Prepare the directory
15553 echo Create the archive
15554 tar cf archive dir || exit 1
15560 tar -C out -xvf archive
15562 at_fn_check_prepare_notrace 'an embedded newline' "extrac07.at:30"
15566 TEST_TAR_FORMAT=ustar
15567 export TEST_TAR_FORMAT
15568 TAR_OPTIONS="-H ustar"
15575 cat $$ > /dev/null 2>&1
15578 test $result -eq 0 && exit 77
15581 echo Prepare the directory
15589 echo Create the archive
15590 tar cf archive dir || exit 1
15596 tar -C out -xvf archive
15598 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15599 at_status=$? at_failed=false
15601 at_fn_diff_devnull "$at_stderr" || at_failed=:
15602 echo >>"$at_stdout"; $as_echo "Prepare the directory
15608 $at_diff - "$at_stdout" || at_failed=:
15609 at_fn_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
15610 $at_failed && at_fn_log_failure
15614 # Testing one format is enough
15617 $at_times_p && times >"$at_times_file"
15618 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15619 read at_status <"$at_status_file"
15622 at_fn_group_banner 64 'extrac08.at:33' \
15623 "restoring mode on existing directory" " " 9
15625 test -f $XFAILFILE && at_xfail=yes
15627 $as_echo "64. $at_setup_line: testing $at_desc ..."
15635 $as_echo "$at_srcdir/extrac08.at:36:
15639 export TEST_TAR_FORMAT
15640 TAR_OPTIONS=\"-H v7\"
15647 echo bla > dir/file
15648 tar cf test.tar dir
15650 tar xfv test.tar --warning=no-timestamp
15651 genfile --stat=mode.777 dir
15653 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15658 export TEST_TAR_FORMAT
15659 TAR_OPTIONS="-H v7"
15666 echo bla > dir/file
15667 tar cf test.tar dir
15669 tar xfv test.tar --warning=no-timestamp
15670 genfile --stat=mode.777 dir
15672 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15673 at_status=$? at_failed=false
15675 at_fn_diff_devnull "$at_stderr" || at_failed=:
15676 echo >>"$at_stdout"; $as_echo "dir/
15680 $at_diff - "$at_stdout" || at_failed=:
15681 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15682 $at_failed && at_fn_log_failure
15686 $as_echo "$at_srcdir/extrac08.at:36:
15689 TEST_TAR_FORMAT=oldgnu
15690 export TEST_TAR_FORMAT
15691 TAR_OPTIONS=\"-H oldgnu\"
15698 echo bla > dir/file
15699 tar cf test.tar dir
15701 tar xfv test.tar --warning=no-timestamp
15702 genfile --stat=mode.777 dir
15704 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15708 TEST_TAR_FORMAT=oldgnu
15709 export TEST_TAR_FORMAT
15710 TAR_OPTIONS="-H oldgnu"
15717 echo bla > dir/file
15718 tar cf test.tar dir
15720 tar xfv test.tar --warning=no-timestamp
15721 genfile --stat=mode.777 dir
15723 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15724 at_status=$? at_failed=false
15726 at_fn_diff_devnull "$at_stderr" || at_failed=:
15727 echo >>"$at_stdout"; $as_echo "dir/
15731 $at_diff - "$at_stdout" || at_failed=:
15732 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15733 $at_failed && at_fn_log_failure
15737 $as_echo "$at_srcdir/extrac08.at:36:
15740 TEST_TAR_FORMAT=ustar
15741 export TEST_TAR_FORMAT
15742 TAR_OPTIONS=\"-H ustar\"
15749 echo bla > dir/file
15750 tar cf test.tar dir
15752 tar xfv test.tar --warning=no-timestamp
15753 genfile --stat=mode.777 dir
15755 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15759 TEST_TAR_FORMAT=ustar
15760 export TEST_TAR_FORMAT
15761 TAR_OPTIONS="-H ustar"
15768 echo bla > dir/file
15769 tar cf test.tar dir
15771 tar xfv test.tar --warning=no-timestamp
15772 genfile --stat=mode.777 dir
15774 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15775 at_status=$? at_failed=false
15777 at_fn_diff_devnull "$at_stderr" || at_failed=:
15778 echo >>"$at_stdout"; $as_echo "dir/
15782 $at_diff - "$at_stdout" || at_failed=:
15783 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15784 $at_failed && at_fn_log_failure
15788 $as_echo "$at_srcdir/extrac08.at:36:
15791 TEST_TAR_FORMAT=posix
15792 export TEST_TAR_FORMAT
15793 TAR_OPTIONS=\"-H posix\"
15800 echo bla > dir/file
15801 tar cf test.tar dir
15803 tar xfv test.tar --warning=no-timestamp
15804 genfile --stat=mode.777 dir
15806 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15810 TEST_TAR_FORMAT=posix
15811 export TEST_TAR_FORMAT
15812 TAR_OPTIONS="-H posix"
15819 echo bla > dir/file
15820 tar cf test.tar dir
15822 tar xfv test.tar --warning=no-timestamp
15823 genfile --stat=mode.777 dir
15825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15826 at_status=$? at_failed=false
15828 at_fn_diff_devnull "$at_stderr" || at_failed=:
15829 echo >>"$at_stdout"; $as_echo "dir/
15833 $at_diff - "$at_stdout" || at_failed=:
15834 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15835 $at_failed && at_fn_log_failure
15839 $as_echo "$at_srcdir/extrac08.at:36:
15842 TEST_TAR_FORMAT=gnu
15843 export TEST_TAR_FORMAT
15844 TAR_OPTIONS=\"-H gnu\"
15851 echo bla > dir/file
15852 tar cf test.tar dir
15854 tar xfv test.tar --warning=no-timestamp
15855 genfile --stat=mode.777 dir
15857 at_fn_check_prepare_notrace 'an embedded newline' "extrac08.at:36"
15861 TEST_TAR_FORMAT=gnu
15862 export TEST_TAR_FORMAT
15863 TAR_OPTIONS="-H gnu"
15870 echo bla > dir/file
15871 tar cf test.tar dir
15873 tar xfv test.tar --warning=no-timestamp
15874 genfile --stat=mode.777 dir
15876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15877 at_status=$? at_failed=false
15879 at_fn_diff_devnull "$at_stderr" || at_failed=:
15880 echo >>"$at_stdout"; $as_echo "dir/
15884 $at_diff - "$at_stdout" || at_failed=:
15885 at_fn_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15886 $at_failed && at_fn_log_failure
15893 $at_times_p && times >"$at_times_file"
15894 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15895 read at_status <"$at_status_file"
15898 at_fn_group_banner 65 'extrac09.at:34' \
15899 "extracting even when . and .. are unreadable" " " 9
15901 test -f $XFAILFILE && at_xfail=yes
15903 $as_echo "65. $at_setup_line: testing $at_desc ..."
15911 $as_echo "$at_srcdir/extrac09.at:37:
15914 TEST_TAR_FORMAT=gnu
15915 export TEST_TAR_FORMAT
15916 TAR_OPTIONS=\"-H gnu\"
15921 echo \"test\" > \$\$
15923 cat \$\$ > /dev/null 2>&1
15926 test \$result -eq 0 && exit 77
15931 mkdir dir/sub/extract
15932 genfile --file dir/sub/f
15935 tar -cf archive.tar f
15938 tar -xvf archive.tar -C extract f
15941 cmp f extract/f || status=\$?
15944 at_fn_check_prepare_notrace 'an embedded newline' "extrac09.at:37"
15948 TEST_TAR_FORMAT=gnu
15949 export TEST_TAR_FORMAT
15950 TAR_OPTIONS="-H gnu"
15957 cat $$ > /dev/null 2>&1
15960 test $result -eq 0 && exit 77
15965 mkdir dir/sub/extract
15966 genfile --file dir/sub/f
15969 tar -cf archive.tar f
15972 tar -xvf archive.tar -C extract f
15975 cmp f extract/f || status=$?
15978 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15979 at_status=$? at_failed=false
15981 at_fn_diff_devnull "$at_stderr" || at_failed=:
15982 echo >>"$at_stdout"; $as_echo "f
15984 $at_diff - "$at_stdout" || at_failed=:
15985 at_fn_check_status 0 $at_status "$at_srcdir/extrac09.at:37"
15986 $at_failed && at_fn_log_failure
15993 $at_times_p && times >"$at_times_file"
15994 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15995 read at_status <"$at_status_file"
15998 at_fn_group_banner 66 'extrac10.at:29' \
15999 "-C and delayed setting of metadata" " " 9
16001 test -f $XFAILFILE && at_xfail=yes
16003 $as_echo "66. $at_setup_line: testing $at_desc ..."
16011 $as_echo "$at_srcdir/extrac10.at:32:
16014 TEST_TAR_FORMAT=gnu
16015 export TEST_TAR_FORMAT
16016 TAR_OPTIONS=\"-H gnu\"
16024 tar -cf archive.tar d e &&
16025 tar -xf archive.tar -C x d -C y e &&
16029 at_fn_check_prepare_notrace 'an embedded newline' "extrac10.at:32"
16033 TEST_TAR_FORMAT=gnu
16034 export TEST_TAR_FORMAT
16035 TAR_OPTIONS="-H gnu"
16043 tar -cf archive.tar d e &&
16044 tar -xf archive.tar -C x d -C y e &&
16048 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16049 at_status=$? at_failed=false
16051 at_fn_diff_devnull "$at_stderr" || at_failed=:
16052 at_fn_diff_devnull "$at_stdout" || at_failed=:
16053 at_fn_check_status 0 $at_status "$at_srcdir/extrac10.at:32"
16054 $at_failed && at_fn_log_failure
16061 $at_times_p && times >"$at_times_file"
16062 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16063 read at_status <"$at_status_file"
16066 at_fn_group_banner 67 'extrac11.at:25' \
16067 "scarce file descriptors" " " 9
16069 test -f $XFAILFILE && at_xfail=yes
16071 $as_echo "67. $at_setup_line: testing $at_desc ..."
16079 $as_echo "$at_srcdir/extrac11.at:28:
16082 TEST_TAR_FORMAT=gnu
16083 export TEST_TAR_FORMAT
16084 TAR_OPTIONS=\"-H gnu\"
16098 a/b/c/d/e/f/g/h/i/j
16099 a/b/c/d/e/f/g/h/i/j/k
16102 mkdir \$dirs dest1 dest2 dest3 || exit
16103 for dir in \$dirs; do
16104 for file in X Y Z; do
16105 echo \$file >\$dir/\$file || exit
16106 files=\"\$files \$file\"
16110 # Check that \"ulimit\" itself works. Close file descriptors before
16111 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
16112 # where they squirrel away dups of file descriptors into FD 10 and up
16113 # before closing the originals.
16114 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16116 tar -cf archive1.tar a &&
16117 tar -xf archive1.tar -C dest1 a
16120 ) >/dev/null 2>&1 ||
16123 # Another test that \"ulimit\" itself works:
16124 # tar should fail when completely starved of file descriptors.
16125 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16127 tar -cf archive2.tar a &&
16128 tar -xf archive2.tar -C dest2 a
16131 ) >/dev/null 2>&1 &&
16134 # Tar should work when there are few, but enough, file descriptors.
16135 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16137 tar -cf archive3.tar a &&
16138 tar -xf archive3.tar -C dest3 a
16140 diff -r a dest3/a >/dev/null 2>&1
16141 ) || { diff -r a dest3/a; exit 1; }
16143 at_fn_check_prepare_notrace 'an embedded newline' "extrac11.at:28"
16147 TEST_TAR_FORMAT=gnu
16148 export TEST_TAR_FORMAT
16149 TAR_OPTIONS="-H gnu"
16163 a/b/c/d/e/f/g/h/i/j
16164 a/b/c/d/e/f/g/h/i/j/k
16167 mkdir $dirs dest1 dest2 dest3 || exit
16168 for dir in $dirs; do
16169 for file in X Y Z; do
16170 echo $file >$dir/$file || exit
16171 files="$files $file"
16175 # Check that "ulimit" itself works. Close file descriptors before
16176 # invoking ulimit, to work around a bug (or a "feature") in some shells,
16177 # where they squirrel away dups of file descriptors into FD 10 and up
16178 # before closing the originals.
16179 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16181 tar -cf archive1.tar a &&
16182 tar -xf archive1.tar -C dest1 a
16185 ) >/dev/null 2>&1 ||
16188 # Another test that "ulimit" itself works:
16189 # tar should fail when completely starved of file descriptors.
16190 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16192 tar -cf archive2.tar a &&
16193 tar -xf archive2.tar -C dest2 a
16196 ) >/dev/null 2>&1 &&
16199 # Tar should work when there are few, but enough, file descriptors.
16200 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
16202 tar -cf archive3.tar a &&
16203 tar -xf archive3.tar -C dest3 a
16205 diff -r a dest3/a >/dev/null 2>&1
16206 ) || { diff -r a dest3/a; exit 1; }
16208 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16209 at_status=$? at_failed=false
16211 at_fn_diff_devnull "$at_stderr" || at_failed=:
16212 at_fn_diff_devnull "$at_stdout" || at_failed=:
16213 at_fn_check_status 0 $at_status "$at_srcdir/extrac11.at:28"
16214 $at_failed && at_fn_log_failure
16221 $at_times_p && times >"$at_times_file"
16222 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16223 read at_status <"$at_status_file"
16226 at_fn_group_banner 68 'extrac12.at:25' \
16227 "extract dot permissions" " " 9
16229 test -f $XFAILFILE && at_xfail=yes
16231 $as_echo "68. $at_setup_line: testing $at_desc ..."
16239 $as_echo "$at_srcdir/extrac12.at:28:
16242 TEST_TAR_FORMAT=gnu
16243 export TEST_TAR_FORMAT
16244 TAR_OPTIONS=\"-H gnu\"
16249 echo file1 >src/file1
16250 echo file2 >src/file2
16253 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
16254 tar -xf archive.tar -C dst &&
16255 cmp src/file1 dst/file1 &&
16256 cmp src/file2 dst/file2
16258 at_fn_check_prepare_notrace 'an embedded newline' "extrac12.at:28"
16262 TEST_TAR_FORMAT=gnu
16263 export TEST_TAR_FORMAT
16264 TAR_OPTIONS="-H gnu"
16269 echo file1 >src/file1
16270 echo file2 >src/file2
16273 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
16274 tar -xf archive.tar -C dst &&
16275 cmp src/file1 dst/file1 &&
16276 cmp src/file2 dst/file2
16278 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16279 at_status=$? at_failed=false
16281 at_fn_diff_devnull "$at_stderr" || at_failed=:
16282 at_fn_diff_devnull "$at_stdout" || at_failed=:
16283 at_fn_check_status 0 $at_status "$at_srcdir/extrac12.at:28"
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 69 'extrac13.at:26' \
16297 "extract over symlinks" " " 9
16299 test -f $XFAILFILE && at_xfail=yes
16301 $as_echo "69. $at_setup_line: testing $at_desc ..."
16309 $as_echo "$at_srcdir/extrac13.at:29:
16312 TEST_TAR_FORMAT=gnu
16313 export TEST_TAR_FORMAT
16314 TAR_OPTIONS=\"-H gnu\"
16318 mkdir src dst1 dst2 dst3
16319 echo file1 >src/file1
16320 ln -s target1 dst1/file1
16321 echo target1 >dst1/target1
16322 echo target1 >target1
16324 tar -cf archive.tar -C src . &&
16325 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
16326 diff src/file1 dst1/file1 &&
16327 diff target1 dst1/target1
16329 ln -s target1 dst2/file1
16330 echo target1 >dst2/target1
16331 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
16332 diff src/file1 dst2/file1 &&
16333 diff target1 dst2/target1
16335 ln -s target1 dst3/file1
16336 echo target1 >dst3/target1
16337 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
16338 diff src/file1 dst3/file1 &&
16339 diff src/file1 dst3/target1
16341 at_fn_check_prepare_notrace 'an embedded newline' "extrac13.at:29"
16345 TEST_TAR_FORMAT=gnu
16346 export TEST_TAR_FORMAT
16347 TAR_OPTIONS="-H gnu"
16351 mkdir src dst1 dst2 dst3
16352 echo file1 >src/file1
16353 ln -s target1 dst1/file1
16354 echo target1 >dst1/target1
16355 echo target1 >target1
16357 tar -cf archive.tar -C src . &&
16358 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
16359 diff src/file1 dst1/file1 &&
16360 diff target1 dst1/target1
16362 ln -s target1 dst2/file1
16363 echo target1 >dst2/target1
16364 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
16365 diff src/file1 dst2/file1 &&
16366 diff target1 dst2/target1
16368 ln -s target1 dst3/file1
16369 echo target1 >dst3/target1
16370 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
16371 diff src/file1 dst3/file1 &&
16372 diff src/file1 dst3/target1
16374 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16375 at_status=$? at_failed=false
16377 at_fn_diff_devnull "$at_stderr" || at_failed=:
16378 at_fn_diff_devnull "$at_stdout" || at_failed=:
16379 at_fn_check_status 0 $at_status "$at_srcdir/extrac13.at:29"
16380 $at_failed && at_fn_log_failure
16387 $at_times_p && times >"$at_times_file"
16388 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16389 read at_status <"$at_status_file"
16392 at_fn_group_banner 70 'extrac14.at:25' \
16393 "extract -C symlink" " " 9
16395 test -f $XFAILFILE && at_xfail=yes
16397 $as_echo "70. $at_setup_line: testing $at_desc ..."
16405 $as_echo "$at_srcdir/extrac14.at:28:
16408 TEST_TAR_FORMAT=gnu
16409 export TEST_TAR_FORMAT
16410 TAR_OPTIONS=\"-H gnu\"
16417 tar -cf archive.tar foo &&
16418 tar -xf archive.tar -C symlink --warning=no-timestamp &&
16421 at_fn_check_prepare_notrace 'an embedded newline' "extrac14.at:28"
16425 TEST_TAR_FORMAT=gnu
16426 export TEST_TAR_FORMAT
16427 TAR_OPTIONS="-H gnu"
16434 tar -cf archive.tar foo &&
16435 tar -xf archive.tar -C symlink --warning=no-timestamp &&
16438 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16439 at_status=$? at_failed=false
16441 at_fn_diff_devnull "$at_stderr" || at_failed=:
16442 at_fn_diff_devnull "$at_stdout" || at_failed=:
16443 at_fn_check_status 0 $at_status "$at_srcdir/extrac14.at:28"
16444 $at_failed && at_fn_log_failure
16451 $at_times_p && times >"$at_times_file"
16452 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16453 read at_status <"$at_status_file"
16456 at_fn_group_banner 71 'extrac15.at:25' \
16457 "extract parent mkdir failure" " " 9
16459 test -f $XFAILFILE && at_xfail=yes
16461 $as_echo "71. $at_setup_line: testing $at_desc ..."
16469 $as_echo "$at_srcdir/extrac15.at:28:
16472 TEST_TAR_FORMAT=gnu
16473 export TEST_TAR_FORMAT
16474 TAR_OPTIONS=\"-H gnu\"
16479 echo \"test\" > \$\$
16481 cat \$\$ > /dev/null 2>&1
16484 test \$result -eq 0 && exit 77
16487 mkdir src src/a src/a/b dest dest/a
16491 tar -cf archive.tar -C src a/b/c &&
16492 if tar -xf archive.tar -C dest a/b/c
16497 at_fn_check_prepare_notrace 'an embedded newline' "extrac15.at:28"
16501 TEST_TAR_FORMAT=gnu
16502 export TEST_TAR_FORMAT
16503 TAR_OPTIONS="-H gnu"
16510 cat $$ > /dev/null 2>&1
16513 test $result -eq 0 && exit 77
16516 mkdir src src/a src/a/b dest dest/a
16520 tar -cf archive.tar -C src a/b/c &&
16521 if tar -xf archive.tar -C dest a/b/c
16526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16527 at_status=$? at_failed=false
16529 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
16530 tar: a/b/c: Cannot open: No such file or directory
16531 tar: Exiting with failure status due to previous errors
16533 $at_diff - "$at_stderr" || at_failed=:
16534 at_fn_diff_devnull "$at_stdout" || at_failed=:
16535 at_fn_check_status 0 $at_status "$at_srcdir/extrac15.at:28"
16536 $at_failed && at_fn_log_failure
16543 $at_times_p && times >"$at_times_file"
16544 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16545 read at_status <"$at_status_file"
16548 at_fn_group_banner 72 'extrac16.at:26' \
16549 "extract empty directory with -C" " " 9
16551 test -f $XFAILFILE && at_xfail=yes
16553 $as_echo "72. $at_setup_line: testing $at_desc ..."
16561 $as_echo "$at_srcdir/extrac16.at:29:
16564 TEST_TAR_FORMAT=gnu
16565 export TEST_TAR_FORMAT
16566 TAR_OPTIONS=\"-H gnu\"
16570 mkdir src src/a src/a/b dest
16573 tar -cf archive.tar -C src a &&
16574 tar -xf archive.tar -C dest
16576 at_fn_check_prepare_notrace 'an embedded newline' "extrac16.at:29"
16580 TEST_TAR_FORMAT=gnu
16581 export TEST_TAR_FORMAT
16582 TAR_OPTIONS="-H gnu"
16586 mkdir src src/a src/a/b dest
16589 tar -cf archive.tar -C src a &&
16590 tar -xf archive.tar -C dest
16592 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16593 at_status=$? at_failed=false
16595 at_fn_diff_devnull "$at_stderr" || at_failed=:
16596 at_fn_diff_devnull "$at_stdout" || at_failed=:
16597 at_fn_check_status 0 $at_status "$at_srcdir/extrac16.at:29"
16598 $at_failed && at_fn_log_failure
16605 $at_times_p && times >"$at_times_file"
16606 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16607 read at_status <"$at_status_file"
16610 at_fn_group_banner 73 'extrac17.at:21' \
16611 "name matching/transformation ordering" " " 9
16613 test -f $XFAILFILE && at_xfail=yes
16615 $as_echo "73. $at_setup_line: testing $at_desc ..."
16620 # Description: Tar 1.24 changed the ordering of name matching and
16621 # name transformation so that the former saw already transformed
16622 # file names (see commit 9c194c99 and exclude06.at). This reverted
16623 # ordering made it impossible to match file names in certain cases.
16624 # In particular, the testcase below would not extract anything.
16626 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
16627 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
16628 # http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
16633 $as_echo "$at_srcdir/extrac17.at:34:
16637 export TEST_TAR_FORMAT
16638 TAR_OPTIONS=\"-H v7\"
16642 mkdir dir dir/subdir1 dir/subdir2 out
16643 genfile --file dir/subdir1/file1
16644 genfile --file dir/subdir2/file2
16648 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16651 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16656 export TEST_TAR_FORMAT
16657 TAR_OPTIONS="-H v7"
16661 mkdir dir dir/subdir1 dir/subdir2 out
16662 genfile --file dir/subdir1/file1
16663 genfile --file dir/subdir2/file2
16667 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16670 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16671 at_status=$? at_failed=false
16673 at_fn_diff_devnull "$at_stderr" || at_failed=:
16674 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16676 $at_diff - "$at_stdout" || at_failed=:
16677 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16678 $at_failed && at_fn_log_failure
16682 $as_echo "$at_srcdir/extrac17.at:34:
16685 TEST_TAR_FORMAT=oldgnu
16686 export TEST_TAR_FORMAT
16687 TAR_OPTIONS=\"-H oldgnu\"
16691 mkdir dir dir/subdir1 dir/subdir2 out
16692 genfile --file dir/subdir1/file1
16693 genfile --file dir/subdir2/file2
16697 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16700 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16704 TEST_TAR_FORMAT=oldgnu
16705 export TEST_TAR_FORMAT
16706 TAR_OPTIONS="-H oldgnu"
16710 mkdir dir dir/subdir1 dir/subdir2 out
16711 genfile --file dir/subdir1/file1
16712 genfile --file dir/subdir2/file2
16716 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16719 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16720 at_status=$? at_failed=false
16722 at_fn_diff_devnull "$at_stderr" || at_failed=:
16723 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16725 $at_diff - "$at_stdout" || at_failed=:
16726 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16727 $at_failed && at_fn_log_failure
16731 $as_echo "$at_srcdir/extrac17.at:34:
16734 TEST_TAR_FORMAT=ustar
16735 export TEST_TAR_FORMAT
16736 TAR_OPTIONS=\"-H ustar\"
16740 mkdir dir dir/subdir1 dir/subdir2 out
16741 genfile --file dir/subdir1/file1
16742 genfile --file dir/subdir2/file2
16746 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16749 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16753 TEST_TAR_FORMAT=ustar
16754 export TEST_TAR_FORMAT
16755 TAR_OPTIONS="-H ustar"
16759 mkdir dir dir/subdir1 dir/subdir2 out
16760 genfile --file dir/subdir1/file1
16761 genfile --file dir/subdir2/file2
16765 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16768 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16769 at_status=$? at_failed=false
16771 at_fn_diff_devnull "$at_stderr" || at_failed=:
16772 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16774 $at_diff - "$at_stdout" || at_failed=:
16775 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16776 $at_failed && at_fn_log_failure
16780 $as_echo "$at_srcdir/extrac17.at:34:
16783 TEST_TAR_FORMAT=posix
16784 export TEST_TAR_FORMAT
16785 TAR_OPTIONS=\"-H posix\"
16789 mkdir dir dir/subdir1 dir/subdir2 out
16790 genfile --file dir/subdir1/file1
16791 genfile --file dir/subdir2/file2
16795 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16798 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16802 TEST_TAR_FORMAT=posix
16803 export TEST_TAR_FORMAT
16804 TAR_OPTIONS="-H posix"
16808 mkdir dir dir/subdir1 dir/subdir2 out
16809 genfile --file dir/subdir1/file1
16810 genfile --file dir/subdir2/file2
16814 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16817 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16818 at_status=$? at_failed=false
16820 at_fn_diff_devnull "$at_stderr" || at_failed=:
16821 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16823 $at_diff - "$at_stdout" || at_failed=:
16824 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16825 $at_failed && at_fn_log_failure
16829 $as_echo "$at_srcdir/extrac17.at:34:
16832 TEST_TAR_FORMAT=gnu
16833 export TEST_TAR_FORMAT
16834 TAR_OPTIONS=\"-H gnu\"
16838 mkdir dir dir/subdir1 dir/subdir2 out
16839 genfile --file dir/subdir1/file1
16840 genfile --file dir/subdir2/file2
16844 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16847 at_fn_check_prepare_notrace 'an embedded newline' "extrac17.at:34"
16851 TEST_TAR_FORMAT=gnu
16852 export TEST_TAR_FORMAT
16853 TAR_OPTIONS="-H gnu"
16857 mkdir dir dir/subdir1 dir/subdir2 out
16858 genfile --file dir/subdir1/file1
16859 genfile --file dir/subdir2/file2
16863 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16866 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16867 at_status=$? at_failed=false
16869 at_fn_diff_devnull "$at_stderr" || at_failed=:
16870 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16872 $at_diff - "$at_stdout" || at_failed=:
16873 at_fn_check_status 0 $at_status "$at_srcdir/extrac17.at:34"
16874 $at_failed && at_fn_log_failure
16881 $at_times_p && times >"$at_times_file"
16882 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16883 read at_status <"$at_status_file"
16886 at_fn_group_banner 74 'extrac18.at:34' \
16887 "keep-old-files" " " 9
16889 test -f $XFAILFILE && at_xfail=yes
16891 $as_echo "74. $at_setup_line: testing $at_desc ..."
16899 $as_echo "$at_srcdir/extrac18.at:37:
16903 export TEST_TAR_FORMAT
16904 TAR_OPTIONS=\"-H v7\"
16910 echo 'Old file a' > a
16911 echo 'Old file b' > b
16913 tar cf ../archive .
16918 tar -x -k -f ../archive
16923 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16928 export TEST_TAR_FORMAT
16929 TAR_OPTIONS="-H v7"
16935 echo 'Old file a' > a
16936 echo 'Old file b' > b
16938 tar cf ../archive .
16943 tar -x -k -f ../archive
16948 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16949 at_status=$? at_failed=false
16951 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
16952 tar: Exiting with failure status due to previous errors
16954 $at_diff - "$at_stderr" || at_failed=:
16955 echo >>"$at_stdout"; $as_echo "status=2
16958 $at_diff - "$at_stdout" || at_failed=:
16959 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
16960 $at_failed && at_fn_log_failure
16964 $as_echo "$at_srcdir/extrac18.at:37:
16967 TEST_TAR_FORMAT=oldgnu
16968 export TEST_TAR_FORMAT
16969 TAR_OPTIONS=\"-H oldgnu\"
16975 echo 'Old file a' > a
16976 echo 'Old file b' > b
16978 tar cf ../archive .
16983 tar -x -k -f ../archive
16988 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
16992 TEST_TAR_FORMAT=oldgnu
16993 export TEST_TAR_FORMAT
16994 TAR_OPTIONS="-H oldgnu"
17000 echo 'Old file a' > a
17001 echo 'Old file b' > b
17003 tar cf ../archive .
17008 tar -x -k -f ../archive
17013 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17014 at_status=$? at_failed=false
17016 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
17017 tar: Exiting with failure status due to previous errors
17019 $at_diff - "$at_stderr" || at_failed=:
17020 echo >>"$at_stdout"; $as_echo "status=2
17023 $at_diff - "$at_stdout" || at_failed=:
17024 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
17025 $at_failed && at_fn_log_failure
17029 $as_echo "$at_srcdir/extrac18.at:37:
17032 TEST_TAR_FORMAT=ustar
17033 export TEST_TAR_FORMAT
17034 TAR_OPTIONS=\"-H ustar\"
17040 echo 'Old file a' > a
17041 echo 'Old file b' > b
17043 tar cf ../archive .
17048 tar -x -k -f ../archive
17053 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
17057 TEST_TAR_FORMAT=ustar
17058 export TEST_TAR_FORMAT
17059 TAR_OPTIONS="-H ustar"
17065 echo 'Old file a' > a
17066 echo 'Old file b' > b
17068 tar cf ../archive .
17073 tar -x -k -f ../archive
17078 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17079 at_status=$? at_failed=false
17081 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
17082 tar: Exiting with failure status due to previous errors
17084 $at_diff - "$at_stderr" || at_failed=:
17085 echo >>"$at_stdout"; $as_echo "status=2
17088 $at_diff - "$at_stdout" || at_failed=:
17089 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
17090 $at_failed && at_fn_log_failure
17094 $as_echo "$at_srcdir/extrac18.at:37:
17097 TEST_TAR_FORMAT=posix
17098 export TEST_TAR_FORMAT
17099 TAR_OPTIONS=\"-H posix\"
17105 echo 'Old file a' > a
17106 echo 'Old file b' > b
17108 tar cf ../archive .
17113 tar -x -k -f ../archive
17118 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
17122 TEST_TAR_FORMAT=posix
17123 export TEST_TAR_FORMAT
17124 TAR_OPTIONS="-H posix"
17130 echo 'Old file a' > a
17131 echo 'Old file b' > b
17133 tar cf ../archive .
17138 tar -x -k -f ../archive
17143 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17144 at_status=$? at_failed=false
17146 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
17147 tar: Exiting with failure status due to previous errors
17149 $at_diff - "$at_stderr" || at_failed=:
17150 echo >>"$at_stdout"; $as_echo "status=2
17153 $at_diff - "$at_stdout" || at_failed=:
17154 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
17155 $at_failed && at_fn_log_failure
17159 $as_echo "$at_srcdir/extrac18.at:37:
17162 TEST_TAR_FORMAT=gnu
17163 export TEST_TAR_FORMAT
17164 TAR_OPTIONS=\"-H gnu\"
17170 echo 'Old file a' > a
17171 echo 'Old file b' > b
17173 tar cf ../archive .
17178 tar -x -k -f ../archive
17183 at_fn_check_prepare_notrace 'an embedded newline' "extrac18.at:37"
17187 TEST_TAR_FORMAT=gnu
17188 export TEST_TAR_FORMAT
17189 TAR_OPTIONS="-H gnu"
17195 echo 'Old file a' > a
17196 echo 'Old file b' > b
17198 tar cf ../archive .
17203 tar -x -k -f ../archive
17208 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17209 at_status=$? at_failed=false
17211 echo >>"$at_stderr"; $as_echo "tar: ./a: Cannot open: File exists
17212 tar: Exiting with failure status due to previous errors
17214 $at_diff - "$at_stderr" || at_failed=:
17215 echo >>"$at_stdout"; $as_echo "status=2
17218 $at_diff - "$at_stdout" || at_failed=:
17219 at_fn_check_status 0 $at_status "$at_srcdir/extrac18.at:37"
17220 $at_failed && at_fn_log_failure
17227 $at_times_p && times >"$at_times_file"
17228 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17229 read at_status <"$at_status_file"
17232 at_fn_group_banner 75 'extrac19.at:21' \
17233 "skip-old-files" " " 9
17235 test -f $XFAILFILE && at_xfail=yes
17237 $as_echo "75. $at_setup_line: testing $at_desc ..."
17245 $as_echo "$at_srcdir/extrac19.at:24:
17249 export TEST_TAR_FORMAT
17250 TAR_OPTIONS=\"-H v7\"
17256 echo 'Old file a' > a
17257 echo 'Old file b' > b
17259 tar cf ../archive .
17264 tar -x --skip-old-files -f ../archive
17269 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17274 export TEST_TAR_FORMAT
17275 TAR_OPTIONS="-H v7"
17281 echo 'Old file a' > a
17282 echo 'Old file b' > b
17284 tar cf ../archive .
17289 tar -x --skip-old-files -f ../archive
17294 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17295 at_status=$? at_failed=false
17297 at_fn_diff_devnull "$at_stderr" || at_failed=:
17298 echo >>"$at_stdout"; $as_echo "status=0
17301 $at_diff - "$at_stdout" || at_failed=:
17302 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17303 $at_failed && at_fn_log_failure
17307 $as_echo "$at_srcdir/extrac19.at:24:
17310 TEST_TAR_FORMAT=oldgnu
17311 export TEST_TAR_FORMAT
17312 TAR_OPTIONS=\"-H oldgnu\"
17318 echo 'Old file a' > a
17319 echo 'Old file b' > b
17321 tar cf ../archive .
17326 tar -x --skip-old-files -f ../archive
17331 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17335 TEST_TAR_FORMAT=oldgnu
17336 export TEST_TAR_FORMAT
17337 TAR_OPTIONS="-H oldgnu"
17343 echo 'Old file a' > a
17344 echo 'Old file b' > b
17346 tar cf ../archive .
17351 tar -x --skip-old-files -f ../archive
17356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17357 at_status=$? at_failed=false
17359 at_fn_diff_devnull "$at_stderr" || at_failed=:
17360 echo >>"$at_stdout"; $as_echo "status=0
17363 $at_diff - "$at_stdout" || at_failed=:
17364 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17365 $at_failed && at_fn_log_failure
17369 $as_echo "$at_srcdir/extrac19.at:24:
17372 TEST_TAR_FORMAT=ustar
17373 export TEST_TAR_FORMAT
17374 TAR_OPTIONS=\"-H ustar\"
17380 echo 'Old file a' > a
17381 echo 'Old file b' > b
17383 tar cf ../archive .
17388 tar -x --skip-old-files -f ../archive
17393 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17397 TEST_TAR_FORMAT=ustar
17398 export TEST_TAR_FORMAT
17399 TAR_OPTIONS="-H ustar"
17405 echo 'Old file a' > a
17406 echo 'Old file b' > b
17408 tar cf ../archive .
17413 tar -x --skip-old-files -f ../archive
17418 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17419 at_status=$? at_failed=false
17421 at_fn_diff_devnull "$at_stderr" || at_failed=:
17422 echo >>"$at_stdout"; $as_echo "status=0
17425 $at_diff - "$at_stdout" || at_failed=:
17426 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17427 $at_failed && at_fn_log_failure
17431 $as_echo "$at_srcdir/extrac19.at:24:
17434 TEST_TAR_FORMAT=posix
17435 export TEST_TAR_FORMAT
17436 TAR_OPTIONS=\"-H posix\"
17442 echo 'Old file a' > a
17443 echo 'Old file b' > b
17445 tar cf ../archive .
17450 tar -x --skip-old-files -f ../archive
17455 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17459 TEST_TAR_FORMAT=posix
17460 export TEST_TAR_FORMAT
17461 TAR_OPTIONS="-H posix"
17467 echo 'Old file a' > a
17468 echo 'Old file b' > b
17470 tar cf ../archive .
17475 tar -x --skip-old-files -f ../archive
17480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17481 at_status=$? at_failed=false
17483 at_fn_diff_devnull "$at_stderr" || at_failed=:
17484 echo >>"$at_stdout"; $as_echo "status=0
17487 $at_diff - "$at_stdout" || at_failed=:
17488 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17489 $at_failed && at_fn_log_failure
17493 $as_echo "$at_srcdir/extrac19.at:24:
17496 TEST_TAR_FORMAT=gnu
17497 export TEST_TAR_FORMAT
17498 TAR_OPTIONS=\"-H gnu\"
17504 echo 'Old file a' > a
17505 echo 'Old file b' > b
17507 tar cf ../archive .
17512 tar -x --skip-old-files -f ../archive
17517 at_fn_check_prepare_notrace 'an embedded newline' "extrac19.at:24"
17521 TEST_TAR_FORMAT=gnu
17522 export TEST_TAR_FORMAT
17523 TAR_OPTIONS="-H gnu"
17529 echo 'Old file a' > a
17530 echo 'Old file b' > b
17532 tar cf ../archive .
17537 tar -x --skip-old-files -f ../archive
17542 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17543 at_status=$? at_failed=false
17545 at_fn_diff_devnull "$at_stderr" || at_failed=:
17546 echo >>"$at_stdout"; $as_echo "status=0
17549 $at_diff - "$at_stdout" || at_failed=:
17550 at_fn_check_status 0 $at_status "$at_srcdir/extrac19.at:24"
17551 $at_failed && at_fn_log_failure
17558 $at_times_p && times >"$at_times_file"
17559 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17560 read at_status <"$at_status_file"
17563 at_fn_group_banner 76 'backup01.at:33' \
17564 "extracting existing dir with --backup" " " 9
17566 test -f $XFAILFILE && at_xfail=yes
17568 $as_echo "76. $at_setup_line: testing $at_desc ..."
17576 $as_echo "$at_srcdir/backup01.at:36:
17580 export TEST_TAR_FORMAT
17581 TAR_OPTIONS=\"-H v7\"
17585 unset VERSION_CONTROL
17587 echo bla > dir1/file1
17588 tar cf test.tar dir1 dir2
17589 tar xfv test.tar --backup --warning=no-timestamp
17591 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17596 export TEST_TAR_FORMAT
17597 TAR_OPTIONS="-H v7"
17601 unset VERSION_CONTROL
17603 echo bla > dir1/file1
17604 tar cf test.tar dir1 dir2
17605 tar xfv test.tar --backup --warning=no-timestamp
17607 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17608 at_status=$? at_failed=false
17610 at_fn_diff_devnull "$at_stderr" || at_failed=:
17611 echo >>"$at_stdout"; $as_echo "dir1/
17613 Renaming 'dir1/file1' to 'dir1/file1~'
17616 $at_diff - "$at_stdout" || at_failed=:
17617 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17618 $at_failed && at_fn_log_failure
17622 $as_echo "$at_srcdir/backup01.at:36:
17625 TEST_TAR_FORMAT=oldgnu
17626 export TEST_TAR_FORMAT
17627 TAR_OPTIONS=\"-H oldgnu\"
17631 unset VERSION_CONTROL
17633 echo bla > dir1/file1
17634 tar cf test.tar dir1 dir2
17635 tar xfv test.tar --backup --warning=no-timestamp
17637 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17641 TEST_TAR_FORMAT=oldgnu
17642 export TEST_TAR_FORMAT
17643 TAR_OPTIONS="-H oldgnu"
17647 unset VERSION_CONTROL
17649 echo bla > dir1/file1
17650 tar cf test.tar dir1 dir2
17651 tar xfv test.tar --backup --warning=no-timestamp
17653 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17654 at_status=$? at_failed=false
17656 at_fn_diff_devnull "$at_stderr" || at_failed=:
17657 echo >>"$at_stdout"; $as_echo "dir1/
17659 Renaming 'dir1/file1' to 'dir1/file1~'
17662 $at_diff - "$at_stdout" || at_failed=:
17663 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17664 $at_failed && at_fn_log_failure
17668 $as_echo "$at_srcdir/backup01.at:36:
17671 TEST_TAR_FORMAT=ustar
17672 export TEST_TAR_FORMAT
17673 TAR_OPTIONS=\"-H ustar\"
17677 unset VERSION_CONTROL
17679 echo bla > dir1/file1
17680 tar cf test.tar dir1 dir2
17681 tar xfv test.tar --backup --warning=no-timestamp
17683 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17687 TEST_TAR_FORMAT=ustar
17688 export TEST_TAR_FORMAT
17689 TAR_OPTIONS="-H ustar"
17693 unset VERSION_CONTROL
17695 echo bla > dir1/file1
17696 tar cf test.tar dir1 dir2
17697 tar xfv test.tar --backup --warning=no-timestamp
17699 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17700 at_status=$? at_failed=false
17702 at_fn_diff_devnull "$at_stderr" || at_failed=:
17703 echo >>"$at_stdout"; $as_echo "dir1/
17705 Renaming 'dir1/file1' to 'dir1/file1~'
17708 $at_diff - "$at_stdout" || at_failed=:
17709 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17710 $at_failed && at_fn_log_failure
17714 $as_echo "$at_srcdir/backup01.at:36:
17717 TEST_TAR_FORMAT=posix
17718 export TEST_TAR_FORMAT
17719 TAR_OPTIONS=\"-H posix\"
17723 unset VERSION_CONTROL
17725 echo bla > dir1/file1
17726 tar cf test.tar dir1 dir2
17727 tar xfv test.tar --backup --warning=no-timestamp
17729 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17733 TEST_TAR_FORMAT=posix
17734 export TEST_TAR_FORMAT
17735 TAR_OPTIONS="-H posix"
17739 unset VERSION_CONTROL
17741 echo bla > dir1/file1
17742 tar cf test.tar dir1 dir2
17743 tar xfv test.tar --backup --warning=no-timestamp
17745 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17746 at_status=$? at_failed=false
17748 at_fn_diff_devnull "$at_stderr" || at_failed=:
17749 echo >>"$at_stdout"; $as_echo "dir1/
17751 Renaming 'dir1/file1' to 'dir1/file1~'
17754 $at_diff - "$at_stdout" || at_failed=:
17755 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17756 $at_failed && at_fn_log_failure
17760 $as_echo "$at_srcdir/backup01.at:36:
17763 TEST_TAR_FORMAT=gnu
17764 export TEST_TAR_FORMAT
17765 TAR_OPTIONS=\"-H gnu\"
17769 unset VERSION_CONTROL
17771 echo bla > dir1/file1
17772 tar cf test.tar dir1 dir2
17773 tar xfv test.tar --backup --warning=no-timestamp
17775 at_fn_check_prepare_notrace 'an embedded newline' "backup01.at:36"
17779 TEST_TAR_FORMAT=gnu
17780 export TEST_TAR_FORMAT
17781 TAR_OPTIONS="-H gnu"
17785 unset VERSION_CONTROL
17787 echo bla > dir1/file1
17788 tar cf test.tar dir1 dir2
17789 tar xfv test.tar --backup --warning=no-timestamp
17791 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17792 at_status=$? at_failed=false
17794 at_fn_diff_devnull "$at_stderr" || at_failed=:
17795 echo >>"$at_stdout"; $as_echo "dir1/
17797 Renaming 'dir1/file1' to 'dir1/file1~'
17800 $at_diff - "$at_stdout" || at_failed=:
17801 at_fn_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17802 $at_failed && at_fn_log_failure
17809 $at_times_p && times >"$at_times_file"
17810 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17811 read at_status <"$at_status_file"
17814 at_fn_group_banner 77 'label01.at:21' \
17815 "single-volume label" " " 10
17817 test -f $XFAILFILE && at_xfail=yes
17819 $as_echo "77. $at_setup_line: testing $at_desc ..."
17827 $as_echo "$at_srcdir/label01.at:24:
17830 TEST_TAR_FORMAT=gnu
17831 export TEST_TAR_FORMAT
17832 TAR_OPTIONS=\"-H gnu\"
17838 tar -cf archive --label=Test foo bar
17841 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17845 TEST_TAR_FORMAT=gnu
17846 export TEST_TAR_FORMAT
17847 TAR_OPTIONS="-H gnu"
17853 tar -cf archive --label=Test foo bar
17856 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17857 at_status=$? at_failed=false
17859 at_fn_diff_devnull "$at_stderr" || at_failed=:
17860 echo >>"$at_stdout"; $as_echo "Test
17864 $at_diff - "$at_stdout" || at_failed=:
17865 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17866 $at_failed && at_fn_log_failure
17870 $as_echo "$at_srcdir/label01.at:24:
17873 TEST_TAR_FORMAT=oldgnu
17874 export TEST_TAR_FORMAT
17875 TAR_OPTIONS=\"-H oldgnu\"
17881 tar -cf archive --label=Test foo bar
17884 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17888 TEST_TAR_FORMAT=oldgnu
17889 export TEST_TAR_FORMAT
17890 TAR_OPTIONS="-H oldgnu"
17896 tar -cf archive --label=Test foo bar
17899 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17900 at_status=$? at_failed=false
17902 at_fn_diff_devnull "$at_stderr" || at_failed=:
17903 echo >>"$at_stdout"; $as_echo "Test
17907 $at_diff - "$at_stdout" || at_failed=:
17908 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17909 $at_failed && at_fn_log_failure
17913 $as_echo "$at_srcdir/label01.at:24:
17916 TEST_TAR_FORMAT=posix
17917 export TEST_TAR_FORMAT
17918 TAR_OPTIONS=\"-H posix\"
17924 tar -cf archive --label=Test foo bar
17927 at_fn_check_prepare_notrace 'an embedded newline' "label01.at:24"
17931 TEST_TAR_FORMAT=posix
17932 export TEST_TAR_FORMAT
17933 TAR_OPTIONS="-H posix"
17939 tar -cf archive --label=Test foo bar
17942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17943 at_status=$? at_failed=false
17945 at_fn_diff_devnull "$at_stderr" || at_failed=:
17946 echo >>"$at_stdout"; $as_echo "Test
17950 $at_diff - "$at_stdout" || at_failed=:
17951 at_fn_check_status 0 $at_status "$at_srcdir/label01.at:24"
17952 $at_failed && at_fn_log_failure
17959 $at_times_p && times >"$at_times_file"
17960 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17961 read at_status <"$at_status_file"
17964 at_fn_group_banner 78 'label02.at:21' \
17965 "multi-volume label" " " 10
17967 test -f $XFAILFILE && at_xfail=yes
17969 $as_echo "78. $at_setup_line: testing $at_desc ..."
17977 $as_echo "$at_srcdir/label02.at:24:
17980 TEST_TAR_FORMAT=gnu
17981 export TEST_TAR_FORMAT
17982 TAR_OPTIONS=\"-H gnu\"
17987 genfile --length 0 --file foo
17988 genfile --length 12288 --file bar
17989 genfile --length 12288 --file baz
17990 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17991 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17993 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
17997 TEST_TAR_FORMAT=gnu
17998 export TEST_TAR_FORMAT
17999 TAR_OPTIONS="-H gnu"
18004 genfile --length 0 --file foo
18005 genfile --length 12288 --file bar
18006 genfile --length 12288 --file baz
18007 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
18008 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
18010 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18011 at_status=$? at_failed=false
18013 at_fn_diff_devnull "$at_stderr" || at_failed=:
18014 echo >>"$at_stdout"; $as_echo "Test Volume 1
18019 $at_diff - "$at_stdout" || at_failed=:
18020 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
18021 $at_failed && at_fn_log_failure
18025 $as_echo "$at_srcdir/label02.at:24:
18028 TEST_TAR_FORMAT=oldgnu
18029 export TEST_TAR_FORMAT
18030 TAR_OPTIONS=\"-H oldgnu\"
18035 genfile --length 0 --file foo
18036 genfile --length 12288 --file bar
18037 genfile --length 12288 --file baz
18038 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
18039 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
18041 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
18045 TEST_TAR_FORMAT=oldgnu
18046 export TEST_TAR_FORMAT
18047 TAR_OPTIONS="-H oldgnu"
18052 genfile --length 0 --file foo
18053 genfile --length 12288 --file bar
18054 genfile --length 12288 --file baz
18055 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
18056 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
18058 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18059 at_status=$? at_failed=false
18061 at_fn_diff_devnull "$at_stderr" || at_failed=:
18062 echo >>"$at_stdout"; $as_echo "Test Volume 1
18067 $at_diff - "$at_stdout" || at_failed=:
18068 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
18069 $at_failed && at_fn_log_failure
18073 $as_echo "$at_srcdir/label02.at:24:
18076 TEST_TAR_FORMAT=posix
18077 export TEST_TAR_FORMAT
18078 TAR_OPTIONS=\"-H posix\"
18083 genfile --length 0 --file foo
18084 genfile --length 12288 --file bar
18085 genfile --length 12288 --file baz
18086 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
18087 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
18089 at_fn_check_prepare_notrace 'an embedded newline' "label02.at:24"
18093 TEST_TAR_FORMAT=posix
18094 export TEST_TAR_FORMAT
18095 TAR_OPTIONS="-H posix"
18100 genfile --length 0 --file foo
18101 genfile --length 12288 --file bar
18102 genfile --length 12288 --file baz
18103 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
18104 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
18106 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18107 at_status=$? at_failed=false
18109 at_fn_diff_devnull "$at_stderr" || at_failed=:
18110 echo >>"$at_stdout"; $as_echo "Test Volume 1
18115 $at_diff - "$at_stdout" || at_failed=:
18116 at_fn_check_status 0 $at_status "$at_srcdir/label02.at:24"
18117 $at_failed && at_fn_log_failure
18124 $at_times_p && times >"$at_times_file"
18125 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18126 read at_status <"$at_status_file"
18129 at_fn_group_banner 79 'label03.at:27' \
18130 "test-label option" " " 10
18132 test -f $XFAILFILE && at_xfail=yes
18134 $as_echo "79. $at_setup_line: testing $at_desc ..."
18142 $as_echo "$at_srcdir/label03.at:30:
18145 TEST_TAR_FORMAT=gnu
18146 export TEST_TAR_FORMAT
18147 TAR_OPTIONS=\"-H gnu\"
18152 genfile --file file
18153 tar -c --label='iamalabel' --file iamanarchive file
18154 tar -c --file unlabeled.tar file
18155 decho \"# Display label\"
18156 tar --test-label --file=iamanarchive; echo \$?
18157 decho \"# Display label: unlabeled\"
18158 tar --test-label --file=unlabeled.tar; echo \$?
18159 decho \"# Test label: success\"
18160 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
18161 decho \"# Test label: failure\"
18162 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
18163 decho \"# Test label: unlabeled\"
18164 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
18165 decho \"# Test label, verbose: success\"
18166 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
18167 decho \"# Test label, verbose: failure\"
18168 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
18169 decho \"# Test label: multiple arguments\"
18170 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
18171 decho \"# Test label: wildcards\"
18172 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
18174 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
18178 TEST_TAR_FORMAT=gnu
18179 export TEST_TAR_FORMAT
18180 TAR_OPTIONS="-H gnu"
18185 genfile --file file
18186 tar -c --label='iamalabel' --file iamanarchive file
18187 tar -c --file unlabeled.tar file
18188 decho "# Display label"
18189 tar --test-label --file=iamanarchive; echo $?
18190 decho "# Display label: unlabeled"
18191 tar --test-label --file=unlabeled.tar; echo $?
18192 decho "# Test label: success"
18193 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
18194 decho "# Test label: failure"
18195 tar --test-label --file=iamanarchive 'amalabel'; echo $?
18196 decho "# Test label: unlabeled"
18197 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
18198 decho "# Test label, verbose: success"
18199 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
18200 decho "# Test label, verbose: failure"
18201 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
18202 decho "# Test label: multiple arguments"
18203 tar --test-label --file=iamanarchive a iamalabel b; echo $?
18204 decho "# Test label: wildcards"
18205 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
18207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18208 at_status=$? at_failed=false
18210 echo >>"$at_stderr"; $as_echo "# Display label
18211 # Display label: unlabeled
18212 # Test label: success
18213 # Test label: failure
18214 # Test label: unlabeled
18215 # Test label, verbose: success
18216 # Test label, verbose: failure
18217 tar: Archive label mismatch
18218 # Test label: multiple arguments
18219 # Test label: wildcards
18221 $at_diff - "$at_stderr" || at_failed=:
18222 echo >>"$at_stdout"; $as_echo "# Display label
18225 # Display label: unlabeled
18227 # Test label: success
18229 # Test label: failure
18231 # Test label: unlabeled
18233 # Test label, verbose: success
18236 # Test label, verbose: failure
18239 # Test label: multiple arguments
18241 # Test label: wildcards
18244 $at_diff - "$at_stdout" || at_failed=:
18245 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
18246 $at_failed && at_fn_log_failure
18250 $as_echo "$at_srcdir/label03.at:30:
18253 TEST_TAR_FORMAT=oldgnu
18254 export TEST_TAR_FORMAT
18255 TAR_OPTIONS=\"-H oldgnu\"
18260 genfile --file file
18261 tar -c --label='iamalabel' --file iamanarchive file
18262 tar -c --file unlabeled.tar file
18263 decho \"# Display label\"
18264 tar --test-label --file=iamanarchive; echo \$?
18265 decho \"# Display label: unlabeled\"
18266 tar --test-label --file=unlabeled.tar; echo \$?
18267 decho \"# Test label: success\"
18268 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
18269 decho \"# Test label: failure\"
18270 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
18271 decho \"# Test label: unlabeled\"
18272 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
18273 decho \"# Test label, verbose: success\"
18274 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
18275 decho \"# Test label, verbose: failure\"
18276 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
18277 decho \"# Test label: multiple arguments\"
18278 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
18279 decho \"# Test label: wildcards\"
18280 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
18282 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
18286 TEST_TAR_FORMAT=oldgnu
18287 export TEST_TAR_FORMAT
18288 TAR_OPTIONS="-H oldgnu"
18293 genfile --file file
18294 tar -c --label='iamalabel' --file iamanarchive file
18295 tar -c --file unlabeled.tar file
18296 decho "# Display label"
18297 tar --test-label --file=iamanarchive; echo $?
18298 decho "# Display label: unlabeled"
18299 tar --test-label --file=unlabeled.tar; echo $?
18300 decho "# Test label: success"
18301 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
18302 decho "# Test label: failure"
18303 tar --test-label --file=iamanarchive 'amalabel'; echo $?
18304 decho "# Test label: unlabeled"
18305 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
18306 decho "# Test label, verbose: success"
18307 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
18308 decho "# Test label, verbose: failure"
18309 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
18310 decho "# Test label: multiple arguments"
18311 tar --test-label --file=iamanarchive a iamalabel b; echo $?
18312 decho "# Test label: wildcards"
18313 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
18315 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18316 at_status=$? at_failed=false
18318 echo >>"$at_stderr"; $as_echo "# Display label
18319 # Display label: unlabeled
18320 # Test label: success
18321 # Test label: failure
18322 # Test label: unlabeled
18323 # Test label, verbose: success
18324 # Test label, verbose: failure
18325 tar: Archive label mismatch
18326 # Test label: multiple arguments
18327 # Test label: wildcards
18329 $at_diff - "$at_stderr" || at_failed=:
18330 echo >>"$at_stdout"; $as_echo "# Display label
18333 # Display label: unlabeled
18335 # Test label: success
18337 # Test label: failure
18339 # Test label: unlabeled
18341 # Test label, verbose: success
18344 # Test label, verbose: failure
18347 # Test label: multiple arguments
18349 # Test label: wildcards
18352 $at_diff - "$at_stdout" || at_failed=:
18353 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
18354 $at_failed && at_fn_log_failure
18358 $as_echo "$at_srcdir/label03.at:30:
18361 TEST_TAR_FORMAT=posix
18362 export TEST_TAR_FORMAT
18363 TAR_OPTIONS=\"-H posix\"
18368 genfile --file file
18369 tar -c --label='iamalabel' --file iamanarchive file
18370 tar -c --file unlabeled.tar file
18371 decho \"# Display label\"
18372 tar --test-label --file=iamanarchive; echo \$?
18373 decho \"# Display label: unlabeled\"
18374 tar --test-label --file=unlabeled.tar; echo \$?
18375 decho \"# Test label: success\"
18376 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
18377 decho \"# Test label: failure\"
18378 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
18379 decho \"# Test label: unlabeled\"
18380 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
18381 decho \"# Test label, verbose: success\"
18382 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
18383 decho \"# Test label, verbose: failure\"
18384 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
18385 decho \"# Test label: multiple arguments\"
18386 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
18387 decho \"# Test label: wildcards\"
18388 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
18390 at_fn_check_prepare_notrace 'an embedded newline' "label03.at:30"
18394 TEST_TAR_FORMAT=posix
18395 export TEST_TAR_FORMAT
18396 TAR_OPTIONS="-H posix"
18401 genfile --file file
18402 tar -c --label='iamalabel' --file iamanarchive file
18403 tar -c --file unlabeled.tar file
18404 decho "# Display label"
18405 tar --test-label --file=iamanarchive; echo $?
18406 decho "# Display label: unlabeled"
18407 tar --test-label --file=unlabeled.tar; echo $?
18408 decho "# Test label: success"
18409 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
18410 decho "# Test label: failure"
18411 tar --test-label --file=iamanarchive 'amalabel'; echo $?
18412 decho "# Test label: unlabeled"
18413 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
18414 decho "# Test label, verbose: success"
18415 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
18416 decho "# Test label, verbose: failure"
18417 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
18418 decho "# Test label: multiple arguments"
18419 tar --test-label --file=iamanarchive a iamalabel b; echo $?
18420 decho "# Test label: wildcards"
18421 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
18423 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18424 at_status=$? at_failed=false
18426 echo >>"$at_stderr"; $as_echo "# Display label
18427 # Display label: unlabeled
18428 # Test label: success
18429 # Test label: failure
18430 # Test label: unlabeled
18431 # Test label, verbose: success
18432 # Test label, verbose: failure
18433 tar: Archive label mismatch
18434 # Test label: multiple arguments
18435 # Test label: wildcards
18437 $at_diff - "$at_stderr" || at_failed=:
18438 echo >>"$at_stdout"; $as_echo "# Display label
18441 # Display label: unlabeled
18443 # Test label: success
18445 # Test label: failure
18447 # Test label: unlabeled
18449 # Test label, verbose: success
18452 # Test label, verbose: failure
18455 # Test label: multiple arguments
18457 # Test label: wildcards
18460 $at_diff - "$at_stdout" || at_failed=:
18461 at_fn_check_status 0 $at_status "$at_srcdir/label03.at:30"
18462 $at_failed && at_fn_log_failure
18469 $at_times_p && times >"$at_times_file"
18470 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18471 read at_status <"$at_status_file"
18474 at_fn_group_banner 80 'label04.at:27' \
18475 "label with non-create option" " " 10
18477 test -f $XFAILFILE && at_xfail=yes
18479 $as_echo "80. $at_setup_line: testing $at_desc ..."
18487 $as_echo "$at_srcdir/label04.at:30:
18490 TEST_TAR_FORMAT=gnu
18491 export TEST_TAR_FORMAT
18492 TAR_OPTIONS=\"-H gnu\"
18497 genfile --file file
18498 decho \"# Create volume\"
18499 tar -c -f archive --label='New volume' file
18500 decho \"# Update: wrong label\"
18501 tar -rf archive --label='My volume' file; echo \$?
18502 decho \"# Update: right label\"
18503 tar -rf archive --label='New volume' file
18505 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18509 TEST_TAR_FORMAT=gnu
18510 export TEST_TAR_FORMAT
18511 TAR_OPTIONS="-H gnu"
18516 genfile --file file
18517 decho "# Create volume"
18518 tar -c -f archive --label='New volume' file
18519 decho "# Update: wrong label"
18520 tar -rf archive --label='My volume' file; echo $?
18521 decho "# Update: right label"
18522 tar -rf archive --label='New volume' file
18524 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18525 at_status=$? at_failed=false
18527 echo >>"$at_stderr"; $as_echo "# Create volume
18528 # Update: wrong label
18529 tar: Volume 'New volume' does not match 'My volume'
18530 tar: Error is not recoverable: exiting now
18531 # Update: right label
18533 $at_diff - "$at_stderr" || at_failed=:
18534 echo >>"$at_stdout"; $as_echo "# Create volume
18535 # Update: wrong label
18537 # Update: right label
18539 $at_diff - "$at_stdout" || at_failed=:
18540 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18541 $at_failed && at_fn_log_failure
18545 $as_echo "$at_srcdir/label04.at:30:
18548 TEST_TAR_FORMAT=oldgnu
18549 export TEST_TAR_FORMAT
18550 TAR_OPTIONS=\"-H oldgnu\"
18555 genfile --file file
18556 decho \"# Create volume\"
18557 tar -c -f archive --label='New volume' file
18558 decho \"# Update: wrong label\"
18559 tar -rf archive --label='My volume' file; echo \$?
18560 decho \"# Update: right label\"
18561 tar -rf archive --label='New volume' file
18563 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18567 TEST_TAR_FORMAT=oldgnu
18568 export TEST_TAR_FORMAT
18569 TAR_OPTIONS="-H oldgnu"
18574 genfile --file file
18575 decho "# Create volume"
18576 tar -c -f archive --label='New volume' file
18577 decho "# Update: wrong label"
18578 tar -rf archive --label='My volume' file; echo $?
18579 decho "# Update: right label"
18580 tar -rf archive --label='New volume' file
18582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18583 at_status=$? at_failed=false
18585 echo >>"$at_stderr"; $as_echo "# Create volume
18586 # Update: wrong label
18587 tar: Volume 'New volume' does not match 'My volume'
18588 tar: Error is not recoverable: exiting now
18589 # Update: right label
18591 $at_diff - "$at_stderr" || at_failed=:
18592 echo >>"$at_stdout"; $as_echo "# Create volume
18593 # Update: wrong label
18595 # Update: right label
18597 $at_diff - "$at_stdout" || at_failed=:
18598 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18599 $at_failed && at_fn_log_failure
18603 $as_echo "$at_srcdir/label04.at:30:
18606 TEST_TAR_FORMAT=posix
18607 export TEST_TAR_FORMAT
18608 TAR_OPTIONS=\"-H posix\"
18613 genfile --file file
18614 decho \"# Create volume\"
18615 tar -c -f archive --label='New volume' file
18616 decho \"# Update: wrong label\"
18617 tar -rf archive --label='My volume' file; echo \$?
18618 decho \"# Update: right label\"
18619 tar -rf archive --label='New volume' file
18621 at_fn_check_prepare_notrace 'an embedded newline' "label04.at:30"
18625 TEST_TAR_FORMAT=posix
18626 export TEST_TAR_FORMAT
18627 TAR_OPTIONS="-H posix"
18632 genfile --file file
18633 decho "# Create volume"
18634 tar -c -f archive --label='New volume' file
18635 decho "# Update: wrong label"
18636 tar -rf archive --label='My volume' file; echo $?
18637 decho "# Update: right label"
18638 tar -rf archive --label='New volume' file
18640 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18641 at_status=$? at_failed=false
18643 echo >>"$at_stderr"; $as_echo "# Create volume
18644 # Update: wrong label
18645 tar: Volume 'New volume' does not match 'My volume'
18646 tar: Error is not recoverable: exiting now
18647 # Update: right label
18649 $at_diff - "$at_stderr" || at_failed=:
18650 echo >>"$at_stdout"; $as_echo "# Create volume
18651 # Update: wrong label
18653 # Update: right label
18655 $at_diff - "$at_stdout" || at_failed=:
18656 at_fn_check_status 0 $at_status "$at_srcdir/label04.at:30"
18657 $at_failed && at_fn_log_failure
18664 $at_times_p && times >"$at_times_file"
18665 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18666 read at_status <"$at_status_file"
18669 at_fn_group_banner 81 'label05.at:24' \
18670 "label with non-create option" " " 10
18672 test -f $XFAILFILE && at_xfail=yes
18674 $as_echo "81. $at_setup_line: testing $at_desc ..."
18682 $as_echo "$at_srcdir/label05.at:27:
18685 TEST_TAR_FORMAT=gnu
18686 export TEST_TAR_FORMAT
18687 TAR_OPTIONS=\"-H gnu\"
18692 genfile --file file
18693 decho \"# Create volume\"
18694 tar -c -f archive file
18695 decho \"# Update: wrong label\"
18696 tar -rf archive --label='My volume' file; echo \$?
18697 decho \"# Update: right label\"
18698 tar -rf archive file
18700 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18704 TEST_TAR_FORMAT=gnu
18705 export TEST_TAR_FORMAT
18706 TAR_OPTIONS="-H gnu"
18711 genfile --file file
18712 decho "# Create volume"
18713 tar -c -f archive file
18714 decho "# Update: wrong label"
18715 tar -rf archive --label='My volume' file; echo $?
18716 decho "# Update: right label"
18717 tar -rf archive file
18719 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18720 at_status=$? at_failed=false
18722 echo >>"$at_stderr"; $as_echo "# Create volume
18723 # Update: wrong label
18724 tar: Archive not labeled to match 'My volume'
18725 tar: Error is not recoverable: exiting now
18726 # Update: right label
18728 $at_diff - "$at_stderr" || at_failed=:
18729 echo >>"$at_stdout"; $as_echo "# Create volume
18730 # Update: wrong label
18732 # Update: right label
18734 $at_diff - "$at_stdout" || at_failed=:
18735 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18736 $at_failed && at_fn_log_failure
18740 $as_echo "$at_srcdir/label05.at:27:
18743 TEST_TAR_FORMAT=oldgnu
18744 export TEST_TAR_FORMAT
18745 TAR_OPTIONS=\"-H oldgnu\"
18750 genfile --file file
18751 decho \"# Create volume\"
18752 tar -c -f archive file
18753 decho \"# Update: wrong label\"
18754 tar -rf archive --label='My volume' file; echo \$?
18755 decho \"# Update: right label\"
18756 tar -rf archive file
18758 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18762 TEST_TAR_FORMAT=oldgnu
18763 export TEST_TAR_FORMAT
18764 TAR_OPTIONS="-H oldgnu"
18769 genfile --file file
18770 decho "# Create volume"
18771 tar -c -f archive file
18772 decho "# Update: wrong label"
18773 tar -rf archive --label='My volume' file; echo $?
18774 decho "# Update: right label"
18775 tar -rf archive file
18777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18778 at_status=$? at_failed=false
18780 echo >>"$at_stderr"; $as_echo "# Create volume
18781 # Update: wrong label
18782 tar: Archive not labeled to match 'My volume'
18783 tar: Error is not recoverable: exiting now
18784 # Update: right label
18786 $at_diff - "$at_stderr" || at_failed=:
18787 echo >>"$at_stdout"; $as_echo "# Create volume
18788 # Update: wrong label
18790 # Update: right label
18792 $at_diff - "$at_stdout" || at_failed=:
18793 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18794 $at_failed && at_fn_log_failure
18798 $as_echo "$at_srcdir/label05.at:27:
18801 TEST_TAR_FORMAT=posix
18802 export TEST_TAR_FORMAT
18803 TAR_OPTIONS=\"-H posix\"
18808 genfile --file file
18809 decho \"# Create volume\"
18810 tar -c -f archive file
18811 decho \"# Update: wrong label\"
18812 tar -rf archive --label='My volume' file; echo \$?
18813 decho \"# Update: right label\"
18814 tar -rf archive file
18816 at_fn_check_prepare_notrace 'an embedded newline' "label05.at:27"
18820 TEST_TAR_FORMAT=posix
18821 export TEST_TAR_FORMAT
18822 TAR_OPTIONS="-H posix"
18827 genfile --file file
18828 decho "# Create volume"
18829 tar -c -f archive file
18830 decho "# Update: wrong label"
18831 tar -rf archive --label='My volume' file; echo $?
18832 decho "# Update: right label"
18833 tar -rf archive file
18835 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18836 at_status=$? at_failed=false
18838 echo >>"$at_stderr"; $as_echo "# Create volume
18839 # Update: wrong label
18840 tar: Archive not labeled to match 'My volume'
18841 tar: Error is not recoverable: exiting now
18842 # Update: right label
18844 $at_diff - "$at_stderr" || at_failed=:
18845 echo >>"$at_stdout"; $as_echo "# Create volume
18846 # Update: wrong label
18848 # Update: right label
18850 $at_diff - "$at_stdout" || at_failed=:
18851 at_fn_check_status 0 $at_status "$at_srcdir/label05.at:27"
18852 $at_failed && at_fn_log_failure
18859 $at_times_p && times >"$at_times_file"
18860 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18861 read at_status <"$at_status_file"
18864 at_fn_group_banner 82 'incremental.at:23' \
18865 "incremental" " " 11
18867 test -f $XFAILFILE && at_xfail=yes
18869 $as_echo "82. $at_setup_line: testing $at_desc ..."
18877 $as_echo "$at_srcdir/incremental.at:26:
18880 TEST_TAR_FORMAT=gnu
18881 export TEST_TAR_FORMAT
18882 TAR_OPTIONS=\"-H gnu\"
18887 echo x >structure/file
18889 # On Nextstep (and perhaps other 4.3BSD systems),
18890 # a newly created file's ctime isn't updated
18891 # until the next sync or stat operation on the file.
18892 ls -l structure/file >/dev/null
18894 # If the time of an initial backup and the creation time of a file contained
18895 # in that backup are the same, the file will be backed up again when an
18896 # incremental backup is done, because the incremental backup backs up
18897 # files created \"on or after\" the initial backup time. Without the sleep
18898 # command, behaviour of tar becomes variable, depending whether the system
18899 # clock ticked over to the next second between creating the file and
18903 tar cf archive --listed=list structure
18904 tar cfv archive --listed=list structure
18906 # ReiserFS often offsets the timestamps of newly created files
18907 # 1 second to the past. Try to compensate for it, until a better
18908 # solution is found.
18910 echo y >structure/file
18911 tar cfv archive --listed=list structure
18913 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
18917 TEST_TAR_FORMAT=gnu
18918 export TEST_TAR_FORMAT
18919 TAR_OPTIONS="-H gnu"
18924 echo x >structure/file
18926 # On Nextstep (and perhaps other 4.3BSD systems),
18927 # a newly created file's ctime isn't updated
18928 # until the next sync or stat operation on the file.
18929 ls -l structure/file >/dev/null
18931 # If the time of an initial backup and the creation time of a file contained
18932 # in that backup are the same, the file will be backed up again when an
18933 # incremental backup is done, because the incremental backup backs up
18934 # files created "on or after" the initial backup time. Without the sleep
18935 # command, behaviour of tar becomes variable, depending whether the system
18936 # clock ticked over to the next second between creating the file and
18940 tar cf archive --listed=list structure
18941 tar cfv archive --listed=list structure
18943 # ReiserFS often offsets the timestamps of newly created files
18944 # 1 second to the past. Try to compensate for it, until a better
18945 # solution is found.
18947 echo y >structure/file
18948 tar cfv archive --listed=list structure
18950 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18951 at_status=$? at_failed=false
18953 at_fn_diff_devnull "$at_stderr" || at_failed=:
18954 echo >>"$at_stdout"; $as_echo "structure/
18959 $at_diff - "$at_stdout" || at_failed=:
18960 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18961 $at_failed && at_fn_log_failure
18965 $as_echo "$at_srcdir/incremental.at:26:
18968 TEST_TAR_FORMAT=oldgnu
18969 export TEST_TAR_FORMAT
18970 TAR_OPTIONS=\"-H oldgnu\"
18975 echo x >structure/file
18977 # On Nextstep (and perhaps other 4.3BSD systems),
18978 # a newly created file's ctime isn't updated
18979 # until the next sync or stat operation on the file.
18980 ls -l structure/file >/dev/null
18982 # If the time of an initial backup and the creation time of a file contained
18983 # in that backup are the same, the file will be backed up again when an
18984 # incremental backup is done, because the incremental backup backs up
18985 # files created \"on or after\" the initial backup time. Without the sleep
18986 # command, behaviour of tar becomes variable, depending whether the system
18987 # clock ticked over to the next second between creating the file and
18991 tar cf archive --listed=list structure
18992 tar cfv archive --listed=list structure
18994 # ReiserFS often offsets the timestamps of newly created files
18995 # 1 second to the past. Try to compensate for it, until a better
18996 # solution is found.
18998 echo y >structure/file
18999 tar cfv archive --listed=list structure
19001 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
19005 TEST_TAR_FORMAT=oldgnu
19006 export TEST_TAR_FORMAT
19007 TAR_OPTIONS="-H oldgnu"
19012 echo x >structure/file
19014 # On Nextstep (and perhaps other 4.3BSD systems),
19015 # a newly created file's ctime isn't updated
19016 # until the next sync or stat operation on the file.
19017 ls -l structure/file >/dev/null
19019 # If the time of an initial backup and the creation time of a file contained
19020 # in that backup are the same, the file will be backed up again when an
19021 # incremental backup is done, because the incremental backup backs up
19022 # files created "on or after" the initial backup time. Without the sleep
19023 # command, behaviour of tar becomes variable, depending whether the system
19024 # clock ticked over to the next second between creating the file and
19028 tar cf archive --listed=list structure
19029 tar cfv archive --listed=list structure
19031 # ReiserFS often offsets the timestamps of newly created files
19032 # 1 second to the past. Try to compensate for it, until a better
19033 # solution is found.
19035 echo y >structure/file
19036 tar cfv archive --listed=list structure
19038 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19039 at_status=$? at_failed=false
19041 at_fn_diff_devnull "$at_stderr" || at_failed=:
19042 echo >>"$at_stdout"; $as_echo "structure/
19047 $at_diff - "$at_stdout" || at_failed=:
19048 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
19049 $at_failed && at_fn_log_failure
19053 $as_echo "$at_srcdir/incremental.at:26:
19056 TEST_TAR_FORMAT=posix
19057 export TEST_TAR_FORMAT
19058 TAR_OPTIONS=\"-H posix\"
19063 echo x >structure/file
19065 # On Nextstep (and perhaps other 4.3BSD systems),
19066 # a newly created file's ctime isn't updated
19067 # until the next sync or stat operation on the file.
19068 ls -l structure/file >/dev/null
19070 # If the time of an initial backup and the creation time of a file contained
19071 # in that backup are the same, the file will be backed up again when an
19072 # incremental backup is done, because the incremental backup backs up
19073 # files created \"on or after\" the initial backup time. Without the sleep
19074 # command, behaviour of tar becomes variable, depending whether the system
19075 # clock ticked over to the next second between creating the file and
19079 tar cf archive --listed=list structure
19080 tar cfv archive --listed=list structure
19082 # ReiserFS often offsets the timestamps of newly created files
19083 # 1 second to the past. Try to compensate for it, until a better
19084 # solution is found.
19086 echo y >structure/file
19087 tar cfv archive --listed=list structure
19089 at_fn_check_prepare_notrace 'an embedded newline' "incremental.at:26"
19093 TEST_TAR_FORMAT=posix
19094 export TEST_TAR_FORMAT
19095 TAR_OPTIONS="-H posix"
19100 echo x >structure/file
19102 # On Nextstep (and perhaps other 4.3BSD systems),
19103 # a newly created file's ctime isn't updated
19104 # until the next sync or stat operation on the file.
19105 ls -l structure/file >/dev/null
19107 # If the time of an initial backup and the creation time of a file contained
19108 # in that backup are the same, the file will be backed up again when an
19109 # incremental backup is done, because the incremental backup backs up
19110 # files created "on or after" the initial backup time. Without the sleep
19111 # command, behaviour of tar becomes variable, depending whether the system
19112 # clock ticked over to the next second between creating the file and
19116 tar cf archive --listed=list structure
19117 tar cfv archive --listed=list structure
19119 # ReiserFS often offsets the timestamps of newly created files
19120 # 1 second to the past. Try to compensate for it, until a better
19121 # solution is found.
19123 echo y >structure/file
19124 tar cfv archive --listed=list structure
19126 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19127 at_status=$? at_failed=false
19129 at_fn_diff_devnull "$at_stderr" || at_failed=:
19130 echo >>"$at_stdout"; $as_echo "structure/
19135 $at_diff - "$at_stdout" || at_failed=:
19136 at_fn_check_status 0 $at_status "$at_srcdir/incremental.at:26"
19137 $at_failed && at_fn_log_failure
19144 $at_times_p && times >"$at_times_file"
19145 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19146 read at_status <"$at_status_file"
19149 at_fn_group_banner 83 'incr01.at:27' \
19150 "restore broken symlinks from incremental" " " 11
19152 test -f $XFAILFILE && at_xfail=yes
19154 $as_echo "83. $at_setup_line: testing $at_desc ..."
19162 $as_echo "$at_srcdir/incr01.at:30:
19165 TEST_TAR_FORMAT=gnu
19166 export TEST_TAR_FORMAT
19167 TAR_OPTIONS=\"-H gnu\"
19172 \$as_ln_s foo directory/bar
19174 tar -cf archive.0 -g db directory
19176 tar -cf archive.1 -g db directory
19180 tar xvfg archive.0 /dev/null --warning=no-timestamp
19182 tar xvfg archive.1 /dev/null --warning=no-timestamp
19184 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
19188 TEST_TAR_FORMAT=gnu
19189 export TEST_TAR_FORMAT
19190 TAR_OPTIONS="-H gnu"
19195 $as_ln_s foo directory/bar
19197 tar -cf archive.0 -g db directory
19199 tar -cf archive.1 -g db directory
19203 tar xvfg archive.0 /dev/null --warning=no-timestamp
19205 tar xvfg archive.1 /dev/null --warning=no-timestamp
19207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19208 at_status=$? at_failed=false
19210 at_fn_diff_devnull "$at_stderr" || at_failed=:
19211 echo >>"$at_stdout"; $as_echo "directory/
19215 tar: Deleting 'directory/bar'
19217 $at_diff - "$at_stdout" || at_failed=:
19218 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19219 $at_failed && at_fn_log_failure
19223 $as_echo "$at_srcdir/incr01.at:30:
19226 TEST_TAR_FORMAT=oldgnu
19227 export TEST_TAR_FORMAT
19228 TAR_OPTIONS=\"-H oldgnu\"
19233 \$as_ln_s foo directory/bar
19235 tar -cf archive.0 -g db directory
19237 tar -cf archive.1 -g db directory
19241 tar xvfg archive.0 /dev/null --warning=no-timestamp
19243 tar xvfg archive.1 /dev/null --warning=no-timestamp
19245 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
19249 TEST_TAR_FORMAT=oldgnu
19250 export TEST_TAR_FORMAT
19251 TAR_OPTIONS="-H oldgnu"
19256 $as_ln_s foo directory/bar
19258 tar -cf archive.0 -g db directory
19260 tar -cf archive.1 -g db directory
19264 tar xvfg archive.0 /dev/null --warning=no-timestamp
19266 tar xvfg archive.1 /dev/null --warning=no-timestamp
19268 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19269 at_status=$? at_failed=false
19271 at_fn_diff_devnull "$at_stderr" || at_failed=:
19272 echo >>"$at_stdout"; $as_echo "directory/
19276 tar: Deleting 'directory/bar'
19278 $at_diff - "$at_stdout" || at_failed=:
19279 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19280 $at_failed && at_fn_log_failure
19284 $as_echo "$at_srcdir/incr01.at:30:
19287 TEST_TAR_FORMAT=posix
19288 export TEST_TAR_FORMAT
19289 TAR_OPTIONS=\"-H posix\"
19294 \$as_ln_s foo directory/bar
19296 tar -cf archive.0 -g db directory
19298 tar -cf archive.1 -g db directory
19302 tar xvfg archive.0 /dev/null --warning=no-timestamp
19304 tar xvfg archive.1 /dev/null --warning=no-timestamp
19306 at_fn_check_prepare_notrace 'an embedded newline' "incr01.at:30"
19310 TEST_TAR_FORMAT=posix
19311 export TEST_TAR_FORMAT
19312 TAR_OPTIONS="-H posix"
19317 $as_ln_s foo directory/bar
19319 tar -cf archive.0 -g db directory
19321 tar -cf archive.1 -g db directory
19325 tar xvfg archive.0 /dev/null --warning=no-timestamp
19327 tar xvfg archive.1 /dev/null --warning=no-timestamp
19329 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19330 at_status=$? at_failed=false
19332 at_fn_diff_devnull "$at_stderr" || at_failed=:
19333 echo >>"$at_stdout"; $as_echo "directory/
19337 tar: Deleting 'directory/bar'
19339 $at_diff - "$at_stdout" || at_failed=:
19340 at_fn_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19341 $at_failed && at_fn_log_failure
19348 $at_times_p && times >"$at_times_file"
19349 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19350 read at_status <"$at_status_file"
19353 at_fn_group_banner 84 'incr02.at:32' \
19354 "restoring timestamps from incremental" " " 11
19356 test -f $XFAILFILE && at_xfail=yes
19358 $as_echo "84. $at_setup_line: testing $at_desc ..."
19366 $as_echo "$at_srcdir/incr02.at:35:
19369 TEST_TAR_FORMAT=gnu
19370 export TEST_TAR_FORMAT
19371 TAR_OPTIONS=\"-H gnu\"
19375 # Create directory structure
19379 genfile --length 10 --file dir/subdir1/file
19381 # Save mtime for later comparison
19382 genfile --stat=mtime dir/subdir1 > ts
19384 # Create an archive. Using incremental mode makes sure the
19385 # archive will have a directory-first member ordering,
19390 # dir/subdir1/foofile
19392 # When restoring from this directory structure, 'dir/subdir2/' used to
19393 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19394 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19395 # latter clobbered the directory timestamp.
19397 tar -cf archive -g db dir
19399 # Move away the directory
19402 # Wait enough time for timestamps to differ in case of failure.
19405 # Restore the directory
19406 tar -xf archive dir
19408 # Check the timestamp
19409 genfile --stat=mtime dir/subdir1 | diff ts -
19411 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
19415 TEST_TAR_FORMAT=gnu
19416 export TEST_TAR_FORMAT
19417 TAR_OPTIONS="-H gnu"
19421 # Create directory structure
19425 genfile --length 10 --file dir/subdir1/file
19427 # Save mtime for later comparison
19428 genfile --stat=mtime dir/subdir1 > ts
19430 # Create an archive. Using incremental mode makes sure the
19431 # archive will have a directory-first member ordering,
19436 # dir/subdir1/foofile
19438 # When restoring from this directory structure, 'dir/subdir2/' used to
19439 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19440 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19441 # latter clobbered the directory timestamp.
19443 tar -cf archive -g db dir
19445 # Move away the directory
19448 # Wait enough time for timestamps to differ in case of failure.
19451 # Restore the directory
19452 tar -xf archive dir
19454 # Check the timestamp
19455 genfile --stat=mtime dir/subdir1 | diff ts -
19457 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19458 at_status=$? at_failed=false
19460 at_fn_diff_devnull "$at_stderr" || at_failed=:
19461 at_fn_diff_devnull "$at_stdout" || at_failed=:
19462 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19463 $at_failed && at_fn_log_failure
19467 $as_echo "$at_srcdir/incr02.at:35:
19470 TEST_TAR_FORMAT=oldgnu
19471 export TEST_TAR_FORMAT
19472 TAR_OPTIONS=\"-H oldgnu\"
19476 # Create directory structure
19480 genfile --length 10 --file dir/subdir1/file
19482 # Save mtime for later comparison
19483 genfile --stat=mtime dir/subdir1 > ts
19485 # Create an archive. Using incremental mode makes sure the
19486 # archive will have a directory-first member ordering,
19491 # dir/subdir1/foofile
19493 # When restoring from this directory structure, 'dir/subdir2/' used to
19494 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19495 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19496 # latter clobbered the directory timestamp.
19498 tar -cf archive -g db dir
19500 # Move away the directory
19503 # Wait enough time for timestamps to differ in case of failure.
19506 # Restore the directory
19507 tar -xf archive dir
19509 # Check the timestamp
19510 genfile --stat=mtime dir/subdir1 | diff ts -
19512 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
19516 TEST_TAR_FORMAT=oldgnu
19517 export TEST_TAR_FORMAT
19518 TAR_OPTIONS="-H oldgnu"
19522 # Create directory structure
19526 genfile --length 10 --file dir/subdir1/file
19528 # Save mtime for later comparison
19529 genfile --stat=mtime dir/subdir1 > ts
19531 # Create an archive. Using incremental mode makes sure the
19532 # archive will have a directory-first member ordering,
19537 # dir/subdir1/foofile
19539 # When restoring from this directory structure, 'dir/subdir2/' used to
19540 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19541 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19542 # latter clobbered the directory timestamp.
19544 tar -cf archive -g db dir
19546 # Move away the directory
19549 # Wait enough time for timestamps to differ in case of failure.
19552 # Restore the directory
19553 tar -xf archive dir
19555 # Check the timestamp
19556 genfile --stat=mtime dir/subdir1 | diff ts -
19558 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19559 at_status=$? at_failed=false
19561 at_fn_diff_devnull "$at_stderr" || at_failed=:
19562 at_fn_diff_devnull "$at_stdout" || at_failed=:
19563 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19564 $at_failed && at_fn_log_failure
19568 $as_echo "$at_srcdir/incr02.at:35:
19571 TEST_TAR_FORMAT=posix
19572 export TEST_TAR_FORMAT
19573 TAR_OPTIONS=\"-H posix\"
19577 # Create directory structure
19581 genfile --length 10 --file dir/subdir1/file
19583 # Save mtime for later comparison
19584 genfile --stat=mtime dir/subdir1 > ts
19586 # Create an archive. Using incremental mode makes sure the
19587 # archive will have a directory-first member ordering,
19592 # dir/subdir1/foofile
19594 # When restoring from this directory structure, 'dir/subdir2/' used to
19595 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19596 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19597 # latter clobbered the directory timestamp.
19599 tar -cf archive -g db dir
19601 # Move away the directory
19604 # Wait enough time for timestamps to differ in case of failure.
19607 # Restore the directory
19608 tar -xf archive dir
19610 # Check the timestamp
19611 genfile --stat=mtime dir/subdir1 | diff ts -
19613 at_fn_check_prepare_notrace 'an embedded newline' "incr02.at:35"
19617 TEST_TAR_FORMAT=posix
19618 export TEST_TAR_FORMAT
19619 TAR_OPTIONS="-H posix"
19623 # Create directory structure
19627 genfile --length 10 --file dir/subdir1/file
19629 # Save mtime for later comparison
19630 genfile --stat=mtime dir/subdir1 > ts
19632 # Create an archive. Using incremental mode makes sure the
19633 # archive will have a directory-first member ordering,
19638 # dir/subdir1/foofile
19640 # When restoring from this directory structure, 'dir/subdir2/' used to
19641 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19642 # 'subdir1' prior to restoring 'dir/subdir1/foofile'. Then, restoring the
19643 # latter clobbered the directory timestamp.
19645 tar -cf archive -g db dir
19647 # Move away the directory
19650 # Wait enough time for timestamps to differ in case of failure.
19653 # Restore the directory
19654 tar -xf archive dir
19656 # Check the timestamp
19657 genfile --stat=mtime dir/subdir1 | diff ts -
19659 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19660 at_status=$? at_failed=false
19662 at_fn_diff_devnull "$at_stderr" || at_failed=:
19663 at_fn_diff_devnull "$at_stdout" || at_failed=:
19664 at_fn_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19665 $at_failed && at_fn_log_failure
19672 $at_times_p && times >"$at_times_file"
19673 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19674 read at_status <"$at_status_file"
19677 at_fn_group_banner 85 'listed01.at:26' \
19678 "--listed for individual files" " " 11
19680 test -f $XFAILFILE && at_xfail=yes
19682 $as_echo "85. $at_setup_line: testing $at_desc ..."
19690 $as_echo "$at_srcdir/listed01.at:29:
19693 TEST_TAR_FORMAT=gnu
19694 export TEST_TAR_FORMAT
19695 TAR_OPTIONS=\"-H gnu\"
19700 genfile --length 10240 --pattern zeros --file directory/file1
19701 # Let the things settle
19705 --file=archive.1 \\
19706 --listed-incremental=listing \\
19709 tar tf archive.1 || exit 1
19713 genfile --length 10240 --pattern zeros --file directory/file2
19716 cp listing listing.old
19718 --file=archive.2 \\
19719 --listed-incremental=listing \\
19720 directory/file* || exit 1
19722 tar tf archive.2 || exit 1
19724 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:29"
19728 TEST_TAR_FORMAT=gnu
19729 export TEST_TAR_FORMAT
19730 TAR_OPTIONS="-H gnu"
19735 genfile --length 10240 --pattern zeros --file directory/file1
19736 # Let the things settle
19741 --listed-incremental=listing \
19744 tar tf archive.1 || exit 1
19748 genfile --length 10240 --pattern zeros --file directory/file2
19751 cp listing listing.old
19754 --listed-incremental=listing \
19755 directory/file* || exit 1
19757 tar tf archive.2 || exit 1
19759 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19760 at_status=$? at_failed=false
19762 at_fn_diff_devnull "$at_stderr" || at_failed=:
19763 echo >>"$at_stdout"; $as_echo "directory/file1
19767 $at_diff - "$at_stdout" || at_failed=:
19768 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19769 $at_failed && at_fn_log_failure
19773 $as_echo "$at_srcdir/listed01.at:29:
19776 TEST_TAR_FORMAT=oldgnu
19777 export TEST_TAR_FORMAT
19778 TAR_OPTIONS=\"-H oldgnu\"
19783 genfile --length 10240 --pattern zeros --file directory/file1
19784 # Let the things settle
19788 --file=archive.1 \\
19789 --listed-incremental=listing \\
19792 tar tf archive.1 || exit 1
19796 genfile --length 10240 --pattern zeros --file directory/file2
19799 cp listing listing.old
19801 --file=archive.2 \\
19802 --listed-incremental=listing \\
19803 directory/file* || exit 1
19805 tar tf archive.2 || exit 1
19807 at_fn_check_prepare_notrace 'an embedded newline' "listed01.at:29"
19811 TEST_TAR_FORMAT=oldgnu
19812 export TEST_TAR_FORMAT
19813 TAR_OPTIONS="-H oldgnu"
19818 genfile --length 10240 --pattern zeros --file directory/file1
19819 # Let the things settle
19824 --listed-incremental=listing \
19827 tar tf archive.1 || exit 1
19831 genfile --length 10240 --pattern zeros --file directory/file2
19834 cp listing listing.old
19837 --listed-incremental=listing \
19838 directory/file* || exit 1
19840 tar tf archive.2 || exit 1
19842 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19843 at_status=$? at_failed=false
19845 at_fn_diff_devnull "$at_stderr" || at_failed=:
19846 echo >>"$at_stdout"; $as_echo "directory/file1
19850 $at_diff - "$at_stdout" || at_failed=:
19851 at_fn_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19852 $at_failed && at_fn_log_failure
19859 $at_times_p && times >"$at_times_file"
19860 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19861 read at_status <"$at_status_file"
19864 at_fn_group_banner 86 'listed02.at:28' \
19865 "working --listed" " " 11
19867 test -f $XFAILFILE && at_xfail=yes
19869 $as_echo "86. $at_setup_line: testing $at_desc ..."
19877 $as_echo "$at_srcdir/listed02.at:31:
19880 TEST_TAR_FORMAT=gnu
19881 export TEST_TAR_FORMAT
19882 TAR_OPTIONS=\"-H gnu\"
19887 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
19889 echo Create directories
19898 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19900 echo File \$file > \$file
19905 echo Creating main archive
19906 echo >&2 \"Creating main archive\"
19907 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19909 # The above prints two lines to stderr announcing the new directories c0 and c1.
19910 # Ensure that they appear in this script's stderr in sorted order.
19911 sort err 1>&2; rm -f err
19914 echo Modifying filesystem
19921 echo Directory contents
19922 find tart -print | sort 2>/dev/null
19925 echo Creating incremental archive
19926 echo >&2 \"Creating incremental archive\"
19927 cp -p tart.incr1 tart.incr2
19928 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19933 echo Extracting main archive
19934 echo >&2 \"Extracting main archive\"
19935 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19936 echo Extracting incremental archive
19937 # This command should produce three messages about deletion
19938 # of the existing files, that may appear in any order. Piping
19939 # to sort makes sure we don't depend on any particular ordering.
19940 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19943 find tart -print | sort 2>/dev/null
19945 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:31"
19949 TEST_TAR_FORMAT=gnu
19950 export TEST_TAR_FORMAT
19951 TAR_OPTIONS="-H gnu"
19956 test -z "`sort < /dev/null 2>&1`" || exit 77
19958 echo Create directories
19967 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19969 echo File $file > $file
19974 echo Creating main archive
19975 echo >&2 "Creating main archive"
19976 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19978 # The above prints two lines to stderr announcing the new directories c0 and c1.
19979 # Ensure that they appear in this script's stderr in sorted order.
19980 sort err 1>&2; rm -f err
19983 echo Modifying filesystem
19990 echo Directory contents
19991 find tart -print | sort 2>/dev/null
19994 echo Creating incremental archive
19995 echo >&2 "Creating incremental archive"
19996 cp -p tart.incr1 tart.incr2
19997 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20002 echo Extracting main archive
20003 echo >&2 "Extracting main archive"
20004 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20005 echo Extracting incremental archive
20006 # This command should produce three messages about deletion
20007 # of the existing files, that may appear in any order. Piping
20008 # to sort makes sure we don't depend on any particular ordering.
20009 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20012 find tart -print | sort 2>/dev/null
20014 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20015 at_status=$? at_failed=false
20017 echo >>"$at_stderr"; $as_echo "Creating main archive
20018 tar: tart/c0: Directory is new
20019 tar: tart/c1: Directory is new
20020 tar: tart: Directory is new
20021 Creating incremental archive
20022 tar: tart/c2: Directory has been renamed from 'tart/c1'
20023 Extracting main archive
20025 $at_diff - "$at_stderr" || at_failed=:
20026 echo >>"$at_stdout"; $as_echo "Create directories
20027 Creating main archive
20037 Modifying filesystem
20048 Creating incremental archive
20054 Extracting main archive
20064 Extracting incremental archive
20065 tar: Deleting 'tart/a1'
20066 tar: Deleting 'tart/b1'
20083 $at_diff - "$at_stdout" || at_failed=:
20084 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20085 $at_failed && at_fn_log_failure
20089 $as_echo "$at_srcdir/listed02.at:31:
20092 TEST_TAR_FORMAT=oldgnu
20093 export TEST_TAR_FORMAT
20094 TAR_OPTIONS=\"-H oldgnu\"
20099 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20101 echo Create directories
20110 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20112 echo File \$file > \$file
20117 echo Creating main archive
20118 echo >&2 \"Creating main archive\"
20119 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20121 # The above prints two lines to stderr announcing the new directories c0 and c1.
20122 # Ensure that they appear in this script's stderr in sorted order.
20123 sort err 1>&2; rm -f err
20126 echo Modifying filesystem
20133 echo Directory contents
20134 find tart -print | sort 2>/dev/null
20137 echo Creating incremental archive
20138 echo >&2 \"Creating incremental archive\"
20139 cp -p tart.incr1 tart.incr2
20140 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20145 echo Extracting main archive
20146 echo >&2 \"Extracting main archive\"
20147 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20148 echo Extracting incremental archive
20149 # This command should produce three messages about deletion
20150 # of the existing files, that may appear in any order. Piping
20151 # to sort makes sure we don't depend on any particular ordering.
20152 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20155 find tart -print | sort 2>/dev/null
20157 at_fn_check_prepare_notrace 'a `...` command substitution' "listed02.at:31"
20161 TEST_TAR_FORMAT=oldgnu
20162 export TEST_TAR_FORMAT
20163 TAR_OPTIONS="-H oldgnu"
20168 test -z "`sort < /dev/null 2>&1`" || exit 77
20170 echo Create directories
20179 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20181 echo File $file > $file
20186 echo Creating main archive
20187 echo >&2 "Creating main archive"
20188 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20190 # The above prints two lines to stderr announcing the new directories c0 and c1.
20191 # Ensure that they appear in this script's stderr in sorted order.
20192 sort err 1>&2; rm -f err
20195 echo Modifying filesystem
20202 echo Directory contents
20203 find tart -print | sort 2>/dev/null
20206 echo Creating incremental archive
20207 echo >&2 "Creating incremental archive"
20208 cp -p tart.incr1 tart.incr2
20209 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20214 echo Extracting main archive
20215 echo >&2 "Extracting main archive"
20216 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20217 echo Extracting incremental archive
20218 # This command should produce three messages about deletion
20219 # of the existing files, that may appear in any order. Piping
20220 # to sort makes sure we don't depend on any particular ordering.
20221 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20224 find tart -print | sort 2>/dev/null
20226 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20227 at_status=$? at_failed=false
20229 echo >>"$at_stderr"; $as_echo "Creating main archive
20230 tar: tart/c0: Directory is new
20231 tar: tart/c1: Directory is new
20232 tar: tart: Directory is new
20233 Creating incremental archive
20234 tar: tart/c2: Directory has been renamed from 'tart/c1'
20235 Extracting main archive
20237 $at_diff - "$at_stderr" || at_failed=:
20238 echo >>"$at_stdout"; $as_echo "Create directories
20239 Creating main archive
20249 Modifying filesystem
20260 Creating incremental archive
20266 Extracting main archive
20276 Extracting incremental archive
20277 tar: Deleting 'tart/a1'
20278 tar: Deleting 'tart/b1'
20295 $at_diff - "$at_stdout" || at_failed=:
20296 at_fn_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20297 $at_failed && at_fn_log_failure
20304 $at_times_p && times >"$at_times_file"
20305 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20306 read at_status <"$at_status_file"
20309 at_fn_group_banner 87 'listed03.at:24' \
20310 "incremental dump when the parent directory is unreadable" "" 11
20312 test -f $XFAILFILE && at_xfail=yes
20314 $as_echo "87. $at_setup_line: testing $at_desc ..."
20322 $as_echo "$at_srcdir/listed03.at:27:
20325 TEST_TAR_FORMAT=gnu
20326 export TEST_TAR_FORMAT
20327 TAR_OPTIONS=\"-H gnu\"
20332 echo \"test\" > \$\$
20334 cat \$\$ > /dev/null 2>&1
20337 test \$result -eq 0 && exit 77
20343 genfile --file dir/sub/a/file
20347 tar -c -f archive.tar --listed-incremental=db.1 -v a
20352 at_fn_check_prepare_notrace 'an embedded newline' "listed03.at:27"
20356 TEST_TAR_FORMAT=gnu
20357 export TEST_TAR_FORMAT
20358 TAR_OPTIONS="-H gnu"
20365 cat $$ > /dev/null 2>&1
20368 test $result -eq 0 && exit 77
20374 genfile --file dir/sub/a/file
20378 tar -c -f archive.tar --listed-incremental=db.1 -v a
20383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20384 at_status=$? at_failed=false
20386 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20388 $at_diff - "$at_stderr" || at_failed=:
20389 echo >>"$at_stdout"; $as_echo "a/
20392 $at_diff - "$at_stdout" || at_failed=:
20393 at_fn_check_status 0 $at_status "$at_srcdir/listed03.at:27"
20394 $at_failed && at_fn_log_failure
20401 $at_times_p && times >"$at_times_file"
20402 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20403 read at_status <"$at_status_file"
20406 at_fn_group_banner 88 'listed04.at:26' \
20407 "--listed-incremental and --one-file-system" " " 11
20409 test -f $XFAILFILE && at_xfail=yes
20411 $as_echo "88. $at_setup_line: testing $at_desc ..."
20419 $as_echo "$at_srcdir/listed04.at:29:
20422 TEST_TAR_FORMAT=gnu
20423 export TEST_TAR_FORMAT
20424 TAR_OPTIONS=\"-H gnu\"
20433 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
20434 tar -tf archive.tar || exit
20436 at_fn_check_prepare_notrace 'an embedded newline' "listed04.at:29"
20440 TEST_TAR_FORMAT=gnu
20441 export TEST_TAR_FORMAT
20442 TAR_OPTIONS="-H gnu"
20451 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
20452 tar -tf archive.tar || exit
20454 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20455 at_status=$? at_failed=false
20457 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
20459 $at_diff - "$at_stderr" || at_failed=:
20460 echo >>"$at_stdout"; $as_echo "dir/
20467 $at_diff - "$at_stdout" || at_failed=:
20468 at_fn_check_status 0 $at_status "$at_srcdir/listed04.at:29"
20469 $at_failed && at_fn_log_failure
20476 $at_times_p && times >"$at_times_file"
20477 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20478 read at_status <"$at_status_file"
20481 at_fn_group_banner 89 'listed05.at:33' \
20482 "--listed-incremental and remounted directories" " " 11
20484 test -f $XFAILFILE && at_xfail=yes
20486 $as_echo "89. $at_setup_line: testing $at_desc ..."
20494 $as_echo "$at_srcdir/listed05.at:36:
20497 TEST_TAR_FORMAT=gnu
20498 export TEST_TAR_FORMAT
20499 TAR_OPTIONS=\"-H gnu\"
20504 echo \"test\" > \$\$
20506 cat \$\$ > /dev/null 2>&1
20509 test \$result -eq 0 || exit 77
20511 options=\"-C tartest --create --one-file-system --verbose\"
20512 rm -rf archive-01.snar archive-01.tar tartest subdir
20514 # Create initial structure
20516 echo \"hi\" > tartest/top-level-file
20517 mkdir tartest/subdir
20518 echo \"hi\" > tartest/subdir/subdir-file
20521 tar \$options --file archive-0.tar --listed-incremental=archive-0.snar .
20524 mv tartest/subdir .
20525 mkdir tartest/subdir
20526 mount -t ramfs none tartest/subdir || exit 77
20527 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
20530 cp archive-0.snar archive-1.snar
20531 tar \$options --file archive-1.tar --listed-incremental=archive-1.snar .
20533 umount tartest/subdir
20535 at_fn_check_prepare_notrace 'an embedded newline' "listed05.at:36"
20539 TEST_TAR_FORMAT=gnu
20540 export TEST_TAR_FORMAT
20541 TAR_OPTIONS="-H gnu"
20548 cat $$ > /dev/null 2>&1
20551 test $result -eq 0 || exit 77
20553 options="-C tartest --create --one-file-system --verbose"
20554 rm -rf archive-01.snar archive-01.tar tartest subdir
20556 # Create initial structure
20558 echo "hi" > tartest/top-level-file
20559 mkdir tartest/subdir
20560 echo "hi" > tartest/subdir/subdir-file
20563 tar $options --file archive-0.tar --listed-incremental=archive-0.snar .
20566 mv tartest/subdir .
20567 mkdir tartest/subdir
20568 mount -t ramfs none tartest/subdir || exit 77
20569 tar -C subdir -c -f - . | tar -C tartest/subdir -x -f -
20572 cp archive-0.snar archive-1.snar
20573 tar $options --file archive-1.tar --listed-incremental=archive-1.snar .
20575 umount tartest/subdir
20577 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20578 at_status=$? at_failed=false
20580 echo >>"$at_stderr"; $as_echo "tar: .: Directory is new
20581 tar: ./subdir: Directory is new
20582 tar: ./subdir: directory is on a different filesystem; not dumped
20584 $at_diff - "$at_stderr" || at_failed=:
20585 echo >>"$at_stdout"; $as_echo "# Level 0
20589 ./subdir/subdir-file
20595 $at_diff - "$at_stdout" || at_failed=:
20596 at_fn_check_status 0 $at_status "$at_srcdir/listed05.at:36"
20597 $at_failed && at_fn_log_failure
20604 $at_times_p && times >"$at_times_file"
20605 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20606 read at_status <"$at_status_file"
20609 at_fn_group_banner 90 'incr03.at:28' \
20610 "renamed files in incrementals" " " 11
20612 test -f $XFAILFILE && at_xfail=yes
20614 $as_echo "90. $at_setup_line: testing $at_desc ..."
20622 $as_echo "$at_srcdir/incr03.at:31:
20625 TEST_TAR_FORMAT=gnu
20626 export TEST_TAR_FORMAT
20627 TAR_OPTIONS=\"-H gnu\"
20632 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20635 genfile --file=directory/x
20636 genfile --file=directory/y
20640 tar -cf archive.1 -g db directory
20642 mv directory/x directory/z
20644 tar -cf archive.2 -g db directory
20648 echo Listing of archive.1
20649 tar -tf archive.1 | sort
20650 echo Listing of archive.2
20651 tar -tf archive.2 | sort
20653 echo Directory after first restore
20654 tar -xf archive.1 -g db --warning=no-timestamp
20655 find directory | sort
20657 echo Directory after second restore
20658 tar -xf archive.2 -g db --warning=no-timestamp
20659 find directory | sort
20661 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20665 TEST_TAR_FORMAT=gnu
20666 export TEST_TAR_FORMAT
20667 TAR_OPTIONS="-H gnu"
20672 test -z "`sort < /dev/null 2>&1`" || exit 77
20675 genfile --file=directory/x
20676 genfile --file=directory/y
20680 tar -cf archive.1 -g db directory
20682 mv directory/x directory/z
20684 tar -cf archive.2 -g db directory
20688 echo Listing of archive.1
20689 tar -tf archive.1 | sort
20690 echo Listing of archive.2
20691 tar -tf archive.2 | sort
20693 echo Directory after first restore
20694 tar -xf archive.1 -g db --warning=no-timestamp
20695 find directory | sort
20697 echo Directory after second restore
20698 tar -xf archive.2 -g db --warning=no-timestamp
20699 find directory | sort
20701 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20702 at_status=$? at_failed=false
20704 at_fn_diff_devnull "$at_stderr" || at_failed=:
20705 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20709 Listing of archive.2
20712 Directory after first restore
20716 Directory after second restore
20721 $at_diff - "$at_stdout" || at_failed=:
20722 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20723 $at_failed && at_fn_log_failure
20727 $as_echo "$at_srcdir/incr03.at:31:
20730 TEST_TAR_FORMAT=oldgnu
20731 export TEST_TAR_FORMAT
20732 TAR_OPTIONS=\"-H oldgnu\"
20737 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20740 genfile --file=directory/x
20741 genfile --file=directory/y
20745 tar -cf archive.1 -g db directory
20747 mv directory/x directory/z
20749 tar -cf archive.2 -g db directory
20753 echo Listing of archive.1
20754 tar -tf archive.1 | sort
20755 echo Listing of archive.2
20756 tar -tf archive.2 | sort
20758 echo Directory after first restore
20759 tar -xf archive.1 -g db --warning=no-timestamp
20760 find directory | sort
20762 echo Directory after second restore
20763 tar -xf archive.2 -g db --warning=no-timestamp
20764 find directory | sort
20766 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20770 TEST_TAR_FORMAT=oldgnu
20771 export TEST_TAR_FORMAT
20772 TAR_OPTIONS="-H oldgnu"
20777 test -z "`sort < /dev/null 2>&1`" || exit 77
20780 genfile --file=directory/x
20781 genfile --file=directory/y
20785 tar -cf archive.1 -g db directory
20787 mv directory/x directory/z
20789 tar -cf archive.2 -g db directory
20793 echo Listing of archive.1
20794 tar -tf archive.1 | sort
20795 echo Listing of archive.2
20796 tar -tf archive.2 | sort
20798 echo Directory after first restore
20799 tar -xf archive.1 -g db --warning=no-timestamp
20800 find directory | sort
20802 echo Directory after second restore
20803 tar -xf archive.2 -g db --warning=no-timestamp
20804 find directory | sort
20806 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20807 at_status=$? at_failed=false
20809 at_fn_diff_devnull "$at_stderr" || at_failed=:
20810 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20814 Listing of archive.2
20817 Directory after first restore
20821 Directory after second restore
20826 $at_diff - "$at_stdout" || at_failed=:
20827 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20828 $at_failed && at_fn_log_failure
20832 $as_echo "$at_srcdir/incr03.at:31:
20835 TEST_TAR_FORMAT=posix
20836 export TEST_TAR_FORMAT
20837 TAR_OPTIONS=\"-H posix\"
20842 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
20845 genfile --file=directory/x
20846 genfile --file=directory/y
20850 tar -cf archive.1 -g db directory
20852 mv directory/x directory/z
20854 tar -cf archive.2 -g db directory
20858 echo Listing of archive.1
20859 tar -tf archive.1 | sort
20860 echo Listing of archive.2
20861 tar -tf archive.2 | sort
20863 echo Directory after first restore
20864 tar -xf archive.1 -g db --warning=no-timestamp
20865 find directory | sort
20867 echo Directory after second restore
20868 tar -xf archive.2 -g db --warning=no-timestamp
20869 find directory | sort
20871 at_fn_check_prepare_notrace 'a `...` command substitution' "incr03.at:31"
20875 TEST_TAR_FORMAT=posix
20876 export TEST_TAR_FORMAT
20877 TAR_OPTIONS="-H posix"
20882 test -z "`sort < /dev/null 2>&1`" || exit 77
20885 genfile --file=directory/x
20886 genfile --file=directory/y
20890 tar -cf archive.1 -g db directory
20892 mv directory/x directory/z
20894 tar -cf archive.2 -g db directory
20898 echo Listing of archive.1
20899 tar -tf archive.1 | sort
20900 echo Listing of archive.2
20901 tar -tf archive.2 | sort
20903 echo Directory after first restore
20904 tar -xf archive.1 -g db --warning=no-timestamp
20905 find directory | sort
20907 echo Directory after second restore
20908 tar -xf archive.2 -g db --warning=no-timestamp
20909 find directory | sort
20911 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20912 at_status=$? at_failed=false
20914 at_fn_diff_devnull "$at_stderr" || at_failed=:
20915 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20919 Listing of archive.2
20922 Directory after first restore
20926 Directory after second restore
20931 $at_diff - "$at_stdout" || at_failed=:
20932 at_fn_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20933 $at_failed && at_fn_log_failure
20940 $at_times_p && times >"$at_times_file"
20941 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20942 read at_status <"$at_status_file"
20945 at_fn_group_banner 91 'incr04.at:29' \
20946 "proper icontents initialization" " " 11
20948 test -f $XFAILFILE && at_xfail=yes
20950 $as_echo "91. $at_setup_line: testing $at_desc ..."
20960 $as_echo "$at_srcdir/incr04.at:34:
20963 TEST_TAR_FORMAT=gnu
20964 export TEST_TAR_FORMAT
20965 TAR_OPTIONS=\"-H gnu\"
20970 install-sh -d a/b >/dev/null || exit 77
20972 for (i=1;i<=142;i++)
20973 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20974 }' < /dev/null | genfile --files-from -
20978 echo \"Initial dump\"
20979 tar cvf a0.tar -g a.sna a
20981 echo \"Incremental dump\"
20982 tar cvf a1.tar -g a.sna a
20984 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
20988 TEST_TAR_FORMAT=gnu
20989 export TEST_TAR_FORMAT
20990 TAR_OPTIONS="-H gnu"
20995 install-sh -d a/b >/dev/null || exit 77
20997 for (i=1;i<=142;i++)
20998 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20999 }' < /dev/null | genfile --files-from -
21003 echo "Initial dump"
21004 tar cvf a0.tar -g a.sna a
21006 echo "Incremental dump"
21007 tar cvf a1.tar -g a.sna a
21009 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21010 at_status=$? at_failed=false
21012 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21013 tar: a/b: Directory is new
21014 tar: a/c: Directory has been renamed from 'a/b'
21016 $at_diff - "$at_stderr" || at_failed=:
21017 echo >>"$at_stdout"; $as_echo "Initial dump
21020 a/b/one_31_chars_long_file_name_001
21021 a/b/one_31_chars_long_file_name_002
21022 a/b/one_31_chars_long_file_name_003
21023 a/b/one_31_chars_long_file_name_004
21024 a/b/one_31_chars_long_file_name_005
21025 a/b/one_31_chars_long_file_name_006
21026 a/b/one_31_chars_long_file_name_007
21027 a/b/one_31_chars_long_file_name_008
21028 a/b/one_31_chars_long_file_name_009
21029 a/b/one_31_chars_long_file_name_010
21030 a/b/one_31_chars_long_file_name_011
21031 a/b/one_31_chars_long_file_name_012
21032 a/b/one_31_chars_long_file_name_013
21033 a/b/one_31_chars_long_file_name_014
21034 a/b/one_31_chars_long_file_name_015
21035 a/b/one_31_chars_long_file_name_016
21036 a/b/one_31_chars_long_file_name_017
21037 a/b/one_31_chars_long_file_name_018
21038 a/b/one_31_chars_long_file_name_019
21039 a/b/one_31_chars_long_file_name_020
21040 a/b/one_31_chars_long_file_name_021
21041 a/b/one_31_chars_long_file_name_022
21042 a/b/one_31_chars_long_file_name_023
21043 a/b/one_31_chars_long_file_name_024
21044 a/b/one_31_chars_long_file_name_025
21045 a/b/one_31_chars_long_file_name_026
21046 a/b/one_31_chars_long_file_name_027
21047 a/b/one_31_chars_long_file_name_028
21048 a/b/one_31_chars_long_file_name_029
21049 a/b/one_31_chars_long_file_name_030
21050 a/b/one_31_chars_long_file_name_031
21051 a/b/one_31_chars_long_file_name_032
21052 a/b/one_31_chars_long_file_name_033
21053 a/b/one_31_chars_long_file_name_034
21054 a/b/one_31_chars_long_file_name_035
21055 a/b/one_31_chars_long_file_name_036
21056 a/b/one_31_chars_long_file_name_037
21057 a/b/one_31_chars_long_file_name_038
21058 a/b/one_31_chars_long_file_name_039
21059 a/b/one_31_chars_long_file_name_040
21060 a/b/one_31_chars_long_file_name_041
21061 a/b/one_31_chars_long_file_name_042
21062 a/b/one_31_chars_long_file_name_043
21063 a/b/one_31_chars_long_file_name_044
21064 a/b/one_31_chars_long_file_name_045
21065 a/b/one_31_chars_long_file_name_046
21066 a/b/one_31_chars_long_file_name_047
21067 a/b/one_31_chars_long_file_name_048
21068 a/b/one_31_chars_long_file_name_049
21069 a/b/one_31_chars_long_file_name_050
21070 a/b/one_31_chars_long_file_name_051
21071 a/b/one_31_chars_long_file_name_052
21072 a/b/one_31_chars_long_file_name_053
21073 a/b/one_31_chars_long_file_name_054
21074 a/b/one_31_chars_long_file_name_055
21075 a/b/one_31_chars_long_file_name_056
21076 a/b/one_31_chars_long_file_name_057
21077 a/b/one_31_chars_long_file_name_058
21078 a/b/one_31_chars_long_file_name_059
21079 a/b/one_31_chars_long_file_name_060
21080 a/b/one_31_chars_long_file_name_061
21081 a/b/one_31_chars_long_file_name_062
21082 a/b/one_31_chars_long_file_name_063
21083 a/b/one_31_chars_long_file_name_064
21084 a/b/one_31_chars_long_file_name_065
21085 a/b/one_31_chars_long_file_name_066
21086 a/b/one_31_chars_long_file_name_067
21087 a/b/one_31_chars_long_file_name_068
21088 a/b/one_31_chars_long_file_name_069
21089 a/b/one_31_chars_long_file_name_070
21090 a/b/one_31_chars_long_file_name_071
21091 a/b/one_31_chars_long_file_name_072
21092 a/b/one_31_chars_long_file_name_073
21093 a/b/one_31_chars_long_file_name_074
21094 a/b/one_31_chars_long_file_name_075
21095 a/b/one_31_chars_long_file_name_076
21096 a/b/one_31_chars_long_file_name_077
21097 a/b/one_31_chars_long_file_name_078
21098 a/b/one_31_chars_long_file_name_079
21099 a/b/one_31_chars_long_file_name_080
21100 a/b/one_31_chars_long_file_name_081
21101 a/b/one_31_chars_long_file_name_082
21102 a/b/one_31_chars_long_file_name_083
21103 a/b/one_31_chars_long_file_name_084
21104 a/b/one_31_chars_long_file_name_085
21105 a/b/one_31_chars_long_file_name_086
21106 a/b/one_31_chars_long_file_name_087
21107 a/b/one_31_chars_long_file_name_088
21108 a/b/one_31_chars_long_file_name_089
21109 a/b/one_31_chars_long_file_name_090
21110 a/b/one_31_chars_long_file_name_091
21111 a/b/one_31_chars_long_file_name_092
21112 a/b/one_31_chars_long_file_name_093
21113 a/b/one_31_chars_long_file_name_094
21114 a/b/one_31_chars_long_file_name_095
21115 a/b/one_31_chars_long_file_name_096
21116 a/b/one_31_chars_long_file_name_097
21117 a/b/one_31_chars_long_file_name_098
21118 a/b/one_31_chars_long_file_name_099
21119 a/b/one_31_chars_long_file_name_100
21120 a/b/one_31_chars_long_file_name_101
21121 a/b/one_31_chars_long_file_name_102
21122 a/b/one_31_chars_long_file_name_103
21123 a/b/one_31_chars_long_file_name_104
21124 a/b/one_31_chars_long_file_name_105
21125 a/b/one_31_chars_long_file_name_106
21126 a/b/one_31_chars_long_file_name_107
21127 a/b/one_31_chars_long_file_name_108
21128 a/b/one_31_chars_long_file_name_109
21129 a/b/one_31_chars_long_file_name_110
21130 a/b/one_31_chars_long_file_name_111
21131 a/b/one_31_chars_long_file_name_112
21132 a/b/one_31_chars_long_file_name_113
21133 a/b/one_31_chars_long_file_name_114
21134 a/b/one_31_chars_long_file_name_115
21135 a/b/one_31_chars_long_file_name_116
21136 a/b/one_31_chars_long_file_name_117
21137 a/b/one_31_chars_long_file_name_118
21138 a/b/one_31_chars_long_file_name_119
21139 a/b/one_31_chars_long_file_name_120
21140 a/b/one_31_chars_long_file_name_121
21141 a/b/one_31_chars_long_file_name_122
21142 a/b/one_31_chars_long_file_name_123
21143 a/b/one_31_chars_long_file_name_124
21144 a/b/one_31_chars_long_file_name_125
21145 a/b/one_31_chars_long_file_name_126
21146 a/b/one_31_chars_long_file_name_127
21147 a/b/one_31_chars_long_file_name_128
21148 a/b/one_31_chars_long_file_name_129
21149 a/b/one_31_chars_long_file_name_130
21150 a/b/one_31_chars_long_file_name_131
21151 a/b/one_31_chars_long_file_name_132
21152 a/b/one_31_chars_long_file_name_133
21153 a/b/one_31_chars_long_file_name_134
21154 a/b/one_31_chars_long_file_name_135
21155 a/b/one_31_chars_long_file_name_136
21156 a/b/one_31_chars_long_file_name_137
21157 a/b/one_31_chars_long_file_name_138
21158 a/b/one_31_chars_long_file_name_139
21159 a/b/one_31_chars_long_file_name_140
21160 a/b/one_31_chars_long_file_name_141
21161 a/b/one_31_chars_long_file_name_142
21166 $at_diff - "$at_stdout" || at_failed=:
21167 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21168 $at_failed && at_fn_log_failure
21172 $as_echo "$at_srcdir/incr04.at:34:
21175 TEST_TAR_FORMAT=oldgnu
21176 export TEST_TAR_FORMAT
21177 TAR_OPTIONS=\"-H oldgnu\"
21182 install-sh -d a/b >/dev/null || exit 77
21184 for (i=1;i<=142;i++)
21185 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21186 }' < /dev/null | genfile --files-from -
21190 echo \"Initial dump\"
21191 tar cvf a0.tar -g a.sna a
21193 echo \"Incremental dump\"
21194 tar cvf a1.tar -g a.sna a
21196 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
21200 TEST_TAR_FORMAT=oldgnu
21201 export TEST_TAR_FORMAT
21202 TAR_OPTIONS="-H oldgnu"
21207 install-sh -d a/b >/dev/null || exit 77
21209 for (i=1;i<=142;i++)
21210 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21211 }' < /dev/null | genfile --files-from -
21215 echo "Initial dump"
21216 tar cvf a0.tar -g a.sna a
21218 echo "Incremental dump"
21219 tar cvf a1.tar -g a.sna a
21221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21222 at_status=$? at_failed=false
21224 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21225 tar: a/b: Directory is new
21226 tar: a/c: Directory has been renamed from 'a/b'
21228 $at_diff - "$at_stderr" || at_failed=:
21229 echo >>"$at_stdout"; $as_echo "Initial dump
21232 a/b/one_31_chars_long_file_name_001
21233 a/b/one_31_chars_long_file_name_002
21234 a/b/one_31_chars_long_file_name_003
21235 a/b/one_31_chars_long_file_name_004
21236 a/b/one_31_chars_long_file_name_005
21237 a/b/one_31_chars_long_file_name_006
21238 a/b/one_31_chars_long_file_name_007
21239 a/b/one_31_chars_long_file_name_008
21240 a/b/one_31_chars_long_file_name_009
21241 a/b/one_31_chars_long_file_name_010
21242 a/b/one_31_chars_long_file_name_011
21243 a/b/one_31_chars_long_file_name_012
21244 a/b/one_31_chars_long_file_name_013
21245 a/b/one_31_chars_long_file_name_014
21246 a/b/one_31_chars_long_file_name_015
21247 a/b/one_31_chars_long_file_name_016
21248 a/b/one_31_chars_long_file_name_017
21249 a/b/one_31_chars_long_file_name_018
21250 a/b/one_31_chars_long_file_name_019
21251 a/b/one_31_chars_long_file_name_020
21252 a/b/one_31_chars_long_file_name_021
21253 a/b/one_31_chars_long_file_name_022
21254 a/b/one_31_chars_long_file_name_023
21255 a/b/one_31_chars_long_file_name_024
21256 a/b/one_31_chars_long_file_name_025
21257 a/b/one_31_chars_long_file_name_026
21258 a/b/one_31_chars_long_file_name_027
21259 a/b/one_31_chars_long_file_name_028
21260 a/b/one_31_chars_long_file_name_029
21261 a/b/one_31_chars_long_file_name_030
21262 a/b/one_31_chars_long_file_name_031
21263 a/b/one_31_chars_long_file_name_032
21264 a/b/one_31_chars_long_file_name_033
21265 a/b/one_31_chars_long_file_name_034
21266 a/b/one_31_chars_long_file_name_035
21267 a/b/one_31_chars_long_file_name_036
21268 a/b/one_31_chars_long_file_name_037
21269 a/b/one_31_chars_long_file_name_038
21270 a/b/one_31_chars_long_file_name_039
21271 a/b/one_31_chars_long_file_name_040
21272 a/b/one_31_chars_long_file_name_041
21273 a/b/one_31_chars_long_file_name_042
21274 a/b/one_31_chars_long_file_name_043
21275 a/b/one_31_chars_long_file_name_044
21276 a/b/one_31_chars_long_file_name_045
21277 a/b/one_31_chars_long_file_name_046
21278 a/b/one_31_chars_long_file_name_047
21279 a/b/one_31_chars_long_file_name_048
21280 a/b/one_31_chars_long_file_name_049
21281 a/b/one_31_chars_long_file_name_050
21282 a/b/one_31_chars_long_file_name_051
21283 a/b/one_31_chars_long_file_name_052
21284 a/b/one_31_chars_long_file_name_053
21285 a/b/one_31_chars_long_file_name_054
21286 a/b/one_31_chars_long_file_name_055
21287 a/b/one_31_chars_long_file_name_056
21288 a/b/one_31_chars_long_file_name_057
21289 a/b/one_31_chars_long_file_name_058
21290 a/b/one_31_chars_long_file_name_059
21291 a/b/one_31_chars_long_file_name_060
21292 a/b/one_31_chars_long_file_name_061
21293 a/b/one_31_chars_long_file_name_062
21294 a/b/one_31_chars_long_file_name_063
21295 a/b/one_31_chars_long_file_name_064
21296 a/b/one_31_chars_long_file_name_065
21297 a/b/one_31_chars_long_file_name_066
21298 a/b/one_31_chars_long_file_name_067
21299 a/b/one_31_chars_long_file_name_068
21300 a/b/one_31_chars_long_file_name_069
21301 a/b/one_31_chars_long_file_name_070
21302 a/b/one_31_chars_long_file_name_071
21303 a/b/one_31_chars_long_file_name_072
21304 a/b/one_31_chars_long_file_name_073
21305 a/b/one_31_chars_long_file_name_074
21306 a/b/one_31_chars_long_file_name_075
21307 a/b/one_31_chars_long_file_name_076
21308 a/b/one_31_chars_long_file_name_077
21309 a/b/one_31_chars_long_file_name_078
21310 a/b/one_31_chars_long_file_name_079
21311 a/b/one_31_chars_long_file_name_080
21312 a/b/one_31_chars_long_file_name_081
21313 a/b/one_31_chars_long_file_name_082
21314 a/b/one_31_chars_long_file_name_083
21315 a/b/one_31_chars_long_file_name_084
21316 a/b/one_31_chars_long_file_name_085
21317 a/b/one_31_chars_long_file_name_086
21318 a/b/one_31_chars_long_file_name_087
21319 a/b/one_31_chars_long_file_name_088
21320 a/b/one_31_chars_long_file_name_089
21321 a/b/one_31_chars_long_file_name_090
21322 a/b/one_31_chars_long_file_name_091
21323 a/b/one_31_chars_long_file_name_092
21324 a/b/one_31_chars_long_file_name_093
21325 a/b/one_31_chars_long_file_name_094
21326 a/b/one_31_chars_long_file_name_095
21327 a/b/one_31_chars_long_file_name_096
21328 a/b/one_31_chars_long_file_name_097
21329 a/b/one_31_chars_long_file_name_098
21330 a/b/one_31_chars_long_file_name_099
21331 a/b/one_31_chars_long_file_name_100
21332 a/b/one_31_chars_long_file_name_101
21333 a/b/one_31_chars_long_file_name_102
21334 a/b/one_31_chars_long_file_name_103
21335 a/b/one_31_chars_long_file_name_104
21336 a/b/one_31_chars_long_file_name_105
21337 a/b/one_31_chars_long_file_name_106
21338 a/b/one_31_chars_long_file_name_107
21339 a/b/one_31_chars_long_file_name_108
21340 a/b/one_31_chars_long_file_name_109
21341 a/b/one_31_chars_long_file_name_110
21342 a/b/one_31_chars_long_file_name_111
21343 a/b/one_31_chars_long_file_name_112
21344 a/b/one_31_chars_long_file_name_113
21345 a/b/one_31_chars_long_file_name_114
21346 a/b/one_31_chars_long_file_name_115
21347 a/b/one_31_chars_long_file_name_116
21348 a/b/one_31_chars_long_file_name_117
21349 a/b/one_31_chars_long_file_name_118
21350 a/b/one_31_chars_long_file_name_119
21351 a/b/one_31_chars_long_file_name_120
21352 a/b/one_31_chars_long_file_name_121
21353 a/b/one_31_chars_long_file_name_122
21354 a/b/one_31_chars_long_file_name_123
21355 a/b/one_31_chars_long_file_name_124
21356 a/b/one_31_chars_long_file_name_125
21357 a/b/one_31_chars_long_file_name_126
21358 a/b/one_31_chars_long_file_name_127
21359 a/b/one_31_chars_long_file_name_128
21360 a/b/one_31_chars_long_file_name_129
21361 a/b/one_31_chars_long_file_name_130
21362 a/b/one_31_chars_long_file_name_131
21363 a/b/one_31_chars_long_file_name_132
21364 a/b/one_31_chars_long_file_name_133
21365 a/b/one_31_chars_long_file_name_134
21366 a/b/one_31_chars_long_file_name_135
21367 a/b/one_31_chars_long_file_name_136
21368 a/b/one_31_chars_long_file_name_137
21369 a/b/one_31_chars_long_file_name_138
21370 a/b/one_31_chars_long_file_name_139
21371 a/b/one_31_chars_long_file_name_140
21372 a/b/one_31_chars_long_file_name_141
21373 a/b/one_31_chars_long_file_name_142
21378 $at_diff - "$at_stdout" || at_failed=:
21379 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21380 $at_failed && at_fn_log_failure
21384 $as_echo "$at_srcdir/incr04.at:34:
21387 TEST_TAR_FORMAT=posix
21388 export TEST_TAR_FORMAT
21389 TAR_OPTIONS=\"-H posix\"
21394 install-sh -d a/b >/dev/null || exit 77
21396 for (i=1;i<=142;i++)
21397 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21398 }' < /dev/null | genfile --files-from -
21402 echo \"Initial dump\"
21403 tar cvf a0.tar -g a.sna a
21405 echo \"Incremental dump\"
21406 tar cvf a1.tar -g a.sna a
21408 at_fn_check_prepare_notrace 'an embedded newline' "incr04.at:34"
21412 TEST_TAR_FORMAT=posix
21413 export TEST_TAR_FORMAT
21414 TAR_OPTIONS="-H posix"
21419 install-sh -d a/b >/dev/null || exit 77
21421 for (i=1;i<=142;i++)
21422 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21423 }' < /dev/null | genfile --files-from -
21427 echo "Initial dump"
21428 tar cvf a0.tar -g a.sna a
21430 echo "Incremental dump"
21431 tar cvf a1.tar -g a.sna a
21433 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21434 at_status=$? at_failed=false
21436 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21437 tar: a/b: Directory is new
21438 tar: a/c: Directory has been renamed from 'a/b'
21440 $at_diff - "$at_stderr" || at_failed=:
21441 echo >>"$at_stdout"; $as_echo "Initial dump
21444 a/b/one_31_chars_long_file_name_001
21445 a/b/one_31_chars_long_file_name_002
21446 a/b/one_31_chars_long_file_name_003
21447 a/b/one_31_chars_long_file_name_004
21448 a/b/one_31_chars_long_file_name_005
21449 a/b/one_31_chars_long_file_name_006
21450 a/b/one_31_chars_long_file_name_007
21451 a/b/one_31_chars_long_file_name_008
21452 a/b/one_31_chars_long_file_name_009
21453 a/b/one_31_chars_long_file_name_010
21454 a/b/one_31_chars_long_file_name_011
21455 a/b/one_31_chars_long_file_name_012
21456 a/b/one_31_chars_long_file_name_013
21457 a/b/one_31_chars_long_file_name_014
21458 a/b/one_31_chars_long_file_name_015
21459 a/b/one_31_chars_long_file_name_016
21460 a/b/one_31_chars_long_file_name_017
21461 a/b/one_31_chars_long_file_name_018
21462 a/b/one_31_chars_long_file_name_019
21463 a/b/one_31_chars_long_file_name_020
21464 a/b/one_31_chars_long_file_name_021
21465 a/b/one_31_chars_long_file_name_022
21466 a/b/one_31_chars_long_file_name_023
21467 a/b/one_31_chars_long_file_name_024
21468 a/b/one_31_chars_long_file_name_025
21469 a/b/one_31_chars_long_file_name_026
21470 a/b/one_31_chars_long_file_name_027
21471 a/b/one_31_chars_long_file_name_028
21472 a/b/one_31_chars_long_file_name_029
21473 a/b/one_31_chars_long_file_name_030
21474 a/b/one_31_chars_long_file_name_031
21475 a/b/one_31_chars_long_file_name_032
21476 a/b/one_31_chars_long_file_name_033
21477 a/b/one_31_chars_long_file_name_034
21478 a/b/one_31_chars_long_file_name_035
21479 a/b/one_31_chars_long_file_name_036
21480 a/b/one_31_chars_long_file_name_037
21481 a/b/one_31_chars_long_file_name_038
21482 a/b/one_31_chars_long_file_name_039
21483 a/b/one_31_chars_long_file_name_040
21484 a/b/one_31_chars_long_file_name_041
21485 a/b/one_31_chars_long_file_name_042
21486 a/b/one_31_chars_long_file_name_043
21487 a/b/one_31_chars_long_file_name_044
21488 a/b/one_31_chars_long_file_name_045
21489 a/b/one_31_chars_long_file_name_046
21490 a/b/one_31_chars_long_file_name_047
21491 a/b/one_31_chars_long_file_name_048
21492 a/b/one_31_chars_long_file_name_049
21493 a/b/one_31_chars_long_file_name_050
21494 a/b/one_31_chars_long_file_name_051
21495 a/b/one_31_chars_long_file_name_052
21496 a/b/one_31_chars_long_file_name_053
21497 a/b/one_31_chars_long_file_name_054
21498 a/b/one_31_chars_long_file_name_055
21499 a/b/one_31_chars_long_file_name_056
21500 a/b/one_31_chars_long_file_name_057
21501 a/b/one_31_chars_long_file_name_058
21502 a/b/one_31_chars_long_file_name_059
21503 a/b/one_31_chars_long_file_name_060
21504 a/b/one_31_chars_long_file_name_061
21505 a/b/one_31_chars_long_file_name_062
21506 a/b/one_31_chars_long_file_name_063
21507 a/b/one_31_chars_long_file_name_064
21508 a/b/one_31_chars_long_file_name_065
21509 a/b/one_31_chars_long_file_name_066
21510 a/b/one_31_chars_long_file_name_067
21511 a/b/one_31_chars_long_file_name_068
21512 a/b/one_31_chars_long_file_name_069
21513 a/b/one_31_chars_long_file_name_070
21514 a/b/one_31_chars_long_file_name_071
21515 a/b/one_31_chars_long_file_name_072
21516 a/b/one_31_chars_long_file_name_073
21517 a/b/one_31_chars_long_file_name_074
21518 a/b/one_31_chars_long_file_name_075
21519 a/b/one_31_chars_long_file_name_076
21520 a/b/one_31_chars_long_file_name_077
21521 a/b/one_31_chars_long_file_name_078
21522 a/b/one_31_chars_long_file_name_079
21523 a/b/one_31_chars_long_file_name_080
21524 a/b/one_31_chars_long_file_name_081
21525 a/b/one_31_chars_long_file_name_082
21526 a/b/one_31_chars_long_file_name_083
21527 a/b/one_31_chars_long_file_name_084
21528 a/b/one_31_chars_long_file_name_085
21529 a/b/one_31_chars_long_file_name_086
21530 a/b/one_31_chars_long_file_name_087
21531 a/b/one_31_chars_long_file_name_088
21532 a/b/one_31_chars_long_file_name_089
21533 a/b/one_31_chars_long_file_name_090
21534 a/b/one_31_chars_long_file_name_091
21535 a/b/one_31_chars_long_file_name_092
21536 a/b/one_31_chars_long_file_name_093
21537 a/b/one_31_chars_long_file_name_094
21538 a/b/one_31_chars_long_file_name_095
21539 a/b/one_31_chars_long_file_name_096
21540 a/b/one_31_chars_long_file_name_097
21541 a/b/one_31_chars_long_file_name_098
21542 a/b/one_31_chars_long_file_name_099
21543 a/b/one_31_chars_long_file_name_100
21544 a/b/one_31_chars_long_file_name_101
21545 a/b/one_31_chars_long_file_name_102
21546 a/b/one_31_chars_long_file_name_103
21547 a/b/one_31_chars_long_file_name_104
21548 a/b/one_31_chars_long_file_name_105
21549 a/b/one_31_chars_long_file_name_106
21550 a/b/one_31_chars_long_file_name_107
21551 a/b/one_31_chars_long_file_name_108
21552 a/b/one_31_chars_long_file_name_109
21553 a/b/one_31_chars_long_file_name_110
21554 a/b/one_31_chars_long_file_name_111
21555 a/b/one_31_chars_long_file_name_112
21556 a/b/one_31_chars_long_file_name_113
21557 a/b/one_31_chars_long_file_name_114
21558 a/b/one_31_chars_long_file_name_115
21559 a/b/one_31_chars_long_file_name_116
21560 a/b/one_31_chars_long_file_name_117
21561 a/b/one_31_chars_long_file_name_118
21562 a/b/one_31_chars_long_file_name_119
21563 a/b/one_31_chars_long_file_name_120
21564 a/b/one_31_chars_long_file_name_121
21565 a/b/one_31_chars_long_file_name_122
21566 a/b/one_31_chars_long_file_name_123
21567 a/b/one_31_chars_long_file_name_124
21568 a/b/one_31_chars_long_file_name_125
21569 a/b/one_31_chars_long_file_name_126
21570 a/b/one_31_chars_long_file_name_127
21571 a/b/one_31_chars_long_file_name_128
21572 a/b/one_31_chars_long_file_name_129
21573 a/b/one_31_chars_long_file_name_130
21574 a/b/one_31_chars_long_file_name_131
21575 a/b/one_31_chars_long_file_name_132
21576 a/b/one_31_chars_long_file_name_133
21577 a/b/one_31_chars_long_file_name_134
21578 a/b/one_31_chars_long_file_name_135
21579 a/b/one_31_chars_long_file_name_136
21580 a/b/one_31_chars_long_file_name_137
21581 a/b/one_31_chars_long_file_name_138
21582 a/b/one_31_chars_long_file_name_139
21583 a/b/one_31_chars_long_file_name_140
21584 a/b/one_31_chars_long_file_name_141
21585 a/b/one_31_chars_long_file_name_142
21590 $at_diff - "$at_stdout" || at_failed=:
21591 at_fn_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21592 $at_failed && at_fn_log_failure
21600 $at_times_p && times >"$at_times_file"
21601 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21602 read at_status <"$at_status_file"
21605 at_fn_group_banner 92 'incr05.at:21' \
21606 "incremental dumps with -C" " " 11
21608 test -f $XFAILFILE && at_xfail=yes
21610 $as_echo "92. $at_setup_line: testing $at_desc ..."
21618 $as_echo "$at_srcdir/incr05.at:24:
21621 TEST_TAR_FORMAT=gnu
21622 export TEST_TAR_FORMAT
21623 TAR_OPTIONS=\"-H gnu\"
21629 genfile --file dir/file1
21630 genfile --file dir/sub/file2
21633 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21635 genfile --file dir/file3
21637 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21639 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21643 TEST_TAR_FORMAT=gnu
21644 export TEST_TAR_FORMAT
21645 TAR_OPTIONS="-H gnu"
21651 genfile --file dir/file1
21652 genfile --file dir/sub/file2
21655 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21657 genfile --file dir/file3
21659 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21662 at_status=$? at_failed=false
21664 at_fn_diff_devnull "$at_stderr" || at_failed=:
21665 echo >>"$at_stdout"; $as_echo "Level 0
21675 $at_diff - "$at_stdout" || at_failed=:
21676 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
21677 $at_failed && at_fn_log_failure
21681 $as_echo "$at_srcdir/incr05.at:24:
21684 TEST_TAR_FORMAT=oldgnu
21685 export TEST_TAR_FORMAT
21686 TAR_OPTIONS=\"-H oldgnu\"
21692 genfile --file dir/file1
21693 genfile --file dir/sub/file2
21696 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21698 genfile --file dir/file3
21700 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21702 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21706 TEST_TAR_FORMAT=oldgnu
21707 export TEST_TAR_FORMAT
21708 TAR_OPTIONS="-H oldgnu"
21714 genfile --file dir/file1
21715 genfile --file dir/sub/file2
21718 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21720 genfile --file dir/file3
21722 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21725 at_status=$? at_failed=false
21727 at_fn_diff_devnull "$at_stderr" || at_failed=:
21728 echo >>"$at_stdout"; $as_echo "Level 0
21738 $at_diff - "$at_stdout" || at_failed=:
21739 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
21740 $at_failed && at_fn_log_failure
21744 $as_echo "$at_srcdir/incr05.at:24:
21747 TEST_TAR_FORMAT=posix
21748 export TEST_TAR_FORMAT
21749 TAR_OPTIONS=\"-H posix\"
21755 genfile --file dir/file1
21756 genfile --file dir/sub/file2
21759 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21761 genfile --file dir/file3
21763 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21765 at_fn_check_prepare_notrace 'an embedded newline' "incr05.at:24"
21769 TEST_TAR_FORMAT=posix
21770 export TEST_TAR_FORMAT
21771 TAR_OPTIONS="-H posix"
21777 genfile --file dir/file1
21778 genfile --file dir/sub/file2
21781 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21783 genfile --file dir/file3
21785 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21787 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21788 at_status=$? at_failed=false
21790 at_fn_diff_devnull "$at_stderr" || at_failed=:
21791 echo >>"$at_stdout"; $as_echo "Level 0
21801 $at_diff - "$at_stdout" || at_failed=:
21802 at_fn_check_status 0 $at_status "$at_srcdir/incr05.at:24"
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 93 'incr06.at:21' \
21816 "incremental dumps of nested directories" " " 11
21818 test -f $XFAILFILE && at_xfail=yes
21820 $as_echo "93. $at_setup_line: testing $at_desc ..."
21828 $as_echo "$at_srcdir/incr06.at:24:
21831 TEST_TAR_FORMAT=gnu
21832 export TEST_TAR_FORMAT
21833 TAR_OPTIONS=\"-H gnu\"
21841 genfile --file dir/file1
21842 genfile --file dir/sub/file2
21843 genfile --file dir/sub/a/file3
21846 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21848 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21851 genfile --file dir/sub/b/file4
21854 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21856 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21858 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
21862 TEST_TAR_FORMAT=gnu
21863 export TEST_TAR_FORMAT
21864 TAR_OPTIONS="-H gnu"
21872 genfile --file dir/file1
21873 genfile --file dir/sub/file2
21874 genfile --file dir/sub/a/file3
21877 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21879 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21882 genfile --file dir/sub/b/file4
21885 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21887 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21889 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21890 at_status=$? at_failed=false
21892 at_fn_diff_devnull "$at_stderr" || at_failed=:
21893 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21924 $at_diff - "$at_stdout" || at_failed=:
21925 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
21926 $at_failed && at_fn_log_failure
21930 $as_echo "$at_srcdir/incr06.at:24:
21933 TEST_TAR_FORMAT=oldgnu
21934 export TEST_TAR_FORMAT
21935 TAR_OPTIONS=\"-H oldgnu\"
21943 genfile --file dir/file1
21944 genfile --file dir/sub/file2
21945 genfile --file dir/sub/a/file3
21948 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21950 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21953 genfile --file dir/sub/b/file4
21956 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21958 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21960 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
21964 TEST_TAR_FORMAT=oldgnu
21965 export TEST_TAR_FORMAT
21966 TAR_OPTIONS="-H oldgnu"
21974 genfile --file dir/file1
21975 genfile --file dir/sub/file2
21976 genfile --file dir/sub/a/file3
21979 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21981 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21984 genfile --file dir/sub/b/file4
21987 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21989 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21991 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21992 at_status=$? at_failed=false
21994 at_fn_diff_devnull "$at_stderr" || at_failed=:
21995 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22026 $at_diff - "$at_stdout" || at_failed=:
22027 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
22028 $at_failed && at_fn_log_failure
22032 $as_echo "$at_srcdir/incr06.at:24:
22035 TEST_TAR_FORMAT=posix
22036 export TEST_TAR_FORMAT
22037 TAR_OPTIONS=\"-H posix\"
22045 genfile --file dir/file1
22046 genfile --file dir/sub/file2
22047 genfile --file dir/sub/a/file3
22050 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22052 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22055 genfile --file dir/sub/b/file4
22058 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22060 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22062 at_fn_check_prepare_notrace 'an embedded newline' "incr06.at:24"
22066 TEST_TAR_FORMAT=posix
22067 export TEST_TAR_FORMAT
22068 TAR_OPTIONS="-H posix"
22076 genfile --file dir/file1
22077 genfile --file dir/sub/file2
22078 genfile --file dir/sub/a/file3
22081 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22083 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22086 genfile --file dir/sub/b/file4
22089 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22091 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22093 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22094 at_status=$? at_failed=false
22096 at_fn_diff_devnull "$at_stderr" || at_failed=:
22097 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22128 $at_diff - "$at_stdout" || at_failed=:
22129 at_fn_check_status 0 $at_status "$at_srcdir/incr06.at:24"
22130 $at_failed && at_fn_log_failure
22137 $at_times_p && times >"$at_times_file"
22138 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22139 read at_status <"$at_status_file"
22142 at_fn_group_banner 94 'incr07.at:18' \
22143 "incremental restores with -C" " " 11
22145 test -f $XFAILFILE && at_xfail=yes
22147 $as_echo "94. $at_setup_line: testing $at_desc ..."
22152 # Tar 1.26 had problems extracting from incremental restores when given
22153 # the -C option. The code in incremen.c:try_purge_directory and
22154 # misc.c:remove_any_file was using savedir(), which ignored eventual changes
22155 # in the current working directory and caused the malfunctioning.
22157 # The problem was reported by Piotr Rotter on 2013-03-22.
22159 # This testcase is based on scripts provided by Piotr Rotter and Nathan
22160 # Stratton Treadway.
22162 # References: <514C8F56.90900@active24.pl>,
22163 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00036.html,
22164 # <20130326181922.GZ3732@shire.ontko.com>,
22165 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00042.html,
22166 # <20130327051828.GA3732@shire.ontko.com>,
22167 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00043.html,
22168 # <20130327054957.GB3732@shire.ontko.com>,
22169 # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00044.html
22174 $as_echo "$at_srcdir/incr07.at:40:
22177 TEST_TAR_FORMAT=gnu
22178 export TEST_TAR_FORMAT
22179 TAR_OPTIONS=\"-H gnu\"
22188 tar -g test.snar -vcf test.0.tar dirA
22192 tar -g test.snar -vcf test.1.tar dirA
22196 tar -g test.snar -vcf test.2.tar dirA
22202 tar -g test.snar -vxf test.0.tar -C ext/
22204 tar -g test.snar -vxf test.1.tar -C ext/
22207 tar -g test.snar -vxf test.2.tar -C ext/
22209 mkdir ext/dirA/dirB
22210 touch ext/dirA/dirB/file
22213 tar -g test.snar -vxf test.2.tar -C ext/
22216 test -d dirA && echo >&2 \"toplevel dirA exists\"
22219 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
22223 TEST_TAR_FORMAT=gnu
22224 export TEST_TAR_FORMAT
22225 TAR_OPTIONS="-H gnu"
22234 tar -g test.snar -vcf test.0.tar dirA
22238 tar -g test.snar -vcf test.1.tar dirA
22242 tar -g test.snar -vcf test.2.tar dirA
22248 tar -g test.snar -vxf test.0.tar -C ext/
22250 tar -g test.snar -vxf test.1.tar -C ext/
22253 tar -g test.snar -vxf test.2.tar -C ext/
22255 mkdir ext/dirA/dirB
22256 touch ext/dirA/dirB/file
22259 tar -g test.snar -vxf test.2.tar -C ext/
22262 test -d dirA && echo >&2 "toplevel dirA exists"
22265 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22266 at_status=$? at_failed=false
22268 echo >>"$at_stderr"; $as_echo "C0
22269 tar: dirA: Directory is new
22277 $at_diff - "$at_stderr" || at_failed=:
22278 echo >>"$at_stdout"; $as_echo "C0
22296 tar: Deleting 'dirA/a'
22299 tar: Deleting 'dirA/dirB'
22302 $at_diff - "$at_stdout" || at_failed=:
22303 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
22304 $at_failed && at_fn_log_failure
22308 $as_echo "$at_srcdir/incr07.at:40:
22311 TEST_TAR_FORMAT=oldgnu
22312 export TEST_TAR_FORMAT
22313 TAR_OPTIONS=\"-H oldgnu\"
22322 tar -g test.snar -vcf test.0.tar dirA
22326 tar -g test.snar -vcf test.1.tar dirA
22330 tar -g test.snar -vcf test.2.tar dirA
22336 tar -g test.snar -vxf test.0.tar -C ext/
22338 tar -g test.snar -vxf test.1.tar -C ext/
22341 tar -g test.snar -vxf test.2.tar -C ext/
22343 mkdir ext/dirA/dirB
22344 touch ext/dirA/dirB/file
22347 tar -g test.snar -vxf test.2.tar -C ext/
22350 test -d dirA && echo >&2 \"toplevel dirA exists\"
22353 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
22357 TEST_TAR_FORMAT=oldgnu
22358 export TEST_TAR_FORMAT
22359 TAR_OPTIONS="-H oldgnu"
22368 tar -g test.snar -vcf test.0.tar dirA
22372 tar -g test.snar -vcf test.1.tar dirA
22376 tar -g test.snar -vcf test.2.tar dirA
22382 tar -g test.snar -vxf test.0.tar -C ext/
22384 tar -g test.snar -vxf test.1.tar -C ext/
22387 tar -g test.snar -vxf test.2.tar -C ext/
22389 mkdir ext/dirA/dirB
22390 touch ext/dirA/dirB/file
22393 tar -g test.snar -vxf test.2.tar -C ext/
22396 test -d dirA && echo >&2 "toplevel dirA exists"
22399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22400 at_status=$? at_failed=false
22402 echo >>"$at_stderr"; $as_echo "C0
22403 tar: dirA: Directory is new
22411 $at_diff - "$at_stderr" || at_failed=:
22412 echo >>"$at_stdout"; $as_echo "C0
22430 tar: Deleting 'dirA/a'
22433 tar: Deleting 'dirA/dirB'
22436 $at_diff - "$at_stdout" || at_failed=:
22437 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
22438 $at_failed && at_fn_log_failure
22442 $as_echo "$at_srcdir/incr07.at:40:
22445 TEST_TAR_FORMAT=posix
22446 export TEST_TAR_FORMAT
22447 TAR_OPTIONS=\"-H posix\"
22456 tar -g test.snar -vcf test.0.tar dirA
22460 tar -g test.snar -vcf test.1.tar dirA
22464 tar -g test.snar -vcf test.2.tar dirA
22470 tar -g test.snar -vxf test.0.tar -C ext/
22472 tar -g test.snar -vxf test.1.tar -C ext/
22475 tar -g test.snar -vxf test.2.tar -C ext/
22477 mkdir ext/dirA/dirB
22478 touch ext/dirA/dirB/file
22481 tar -g test.snar -vxf test.2.tar -C ext/
22484 test -d dirA && echo >&2 \"toplevel dirA exists\"
22487 at_fn_check_prepare_notrace 'an embedded newline' "incr07.at:40"
22491 TEST_TAR_FORMAT=posix
22492 export TEST_TAR_FORMAT
22493 TAR_OPTIONS="-H posix"
22502 tar -g test.snar -vcf test.0.tar dirA
22506 tar -g test.snar -vcf test.1.tar dirA
22510 tar -g test.snar -vcf test.2.tar dirA
22516 tar -g test.snar -vxf test.0.tar -C ext/
22518 tar -g test.snar -vxf test.1.tar -C ext/
22521 tar -g test.snar -vxf test.2.tar -C ext/
22523 mkdir ext/dirA/dirB
22524 touch ext/dirA/dirB/file
22527 tar -g test.snar -vxf test.2.tar -C ext/
22530 test -d dirA && echo >&2 "toplevel dirA exists"
22533 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22534 at_status=$? at_failed=false
22536 echo >>"$at_stderr"; $as_echo "C0
22537 tar: dirA: Directory is new
22545 $at_diff - "$at_stderr" || at_failed=:
22546 echo >>"$at_stdout"; $as_echo "C0
22564 tar: Deleting 'dirA/a'
22567 tar: Deleting 'dirA/dirB'
22570 $at_diff - "$at_stdout" || at_failed=:
22571 at_fn_check_status 0 $at_status "$at_srcdir/incr07.at:40"
22572 $at_failed && at_fn_log_failure
22579 $at_times_p && times >"$at_times_file"
22580 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22581 read at_status <"$at_status_file"
22584 at_fn_group_banner 95 'incr08.at:38' \
22585 "filename normalization" " " 11
22587 test -f $XFAILFILE && at_xfail=yes
22589 $as_echo "95. $at_setup_line: testing $at_desc ..."
22597 $as_echo "$at_srcdir/incr08.at:41:
22600 TEST_TAR_FORMAT=gnu
22601 export TEST_TAR_FORMAT
22602 TAR_OPTIONS=\"-H gnu\"
22607 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22613 mkdir foo/subdir/dir1
22621 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . \$DIR 2>../err |\\
22622 sed \"s|\$DIR|ABSPATH|\"
22623 sed \"s|\$DIR|ABSPATH|\" ../err >&2
22625 at_fn_check_prepare_notrace 'a `...` command substitution' "incr08.at:41"
22629 TEST_TAR_FORMAT=gnu
22630 export TEST_TAR_FORMAT
22631 TAR_OPTIONS="-H gnu"
22636 test -z "`sort < /dev/null 2>&1`" || exit 77
22642 mkdir foo/subdir/dir1
22650 tar -cvf ../foo.tar --listed-incremental=../foo.snar -C foo . $DIR 2>../err |\
22651 sed "s|$DIR|ABSPATH|"
22652 sed "s|$DIR|ABSPATH|" ../err >&2
22654 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22655 at_status=$? at_failed=false
22657 echo >>"$at_stderr"; $as_echo "A
22659 tar: .: Directory is new
22660 tar: ./subdir: Directory is new
22661 tar: ./subdir/dir1: Directory is new
22662 tar: ABSPATH: Directory is new
22663 tar: ABSPATH/subdir: Directory is new
22664 tar: ABSPATH/subdir/dir2: Directory is new
22665 tar: Removing leading \`/' from member names
22667 $at_diff - "$at_stderr" || at_failed=:
22668 echo >>"$at_stdout"; $as_echo "A
22681 ABSPATH/subdir/dir2/
22683 $at_diff - "$at_stdout" || at_failed=:
22684 at_fn_check_status 0 $at_status "$at_srcdir/incr08.at:41"
22685 $at_failed && at_fn_log_failure
22692 $at_times_p && times >"$at_times_file"
22693 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22694 read at_status <"$at_status_file"
22697 at_fn_group_banner 96 'incr09.at:26' \
22698 "incremental with alternating -C" " " 11
22700 test -f $XFAILFILE && at_xfail=yes
22702 $as_echo "96. $at_setup_line: testing $at_desc ..."
22710 $as_echo "$at_srcdir/incr09.at:29:
22713 TEST_TAR_FORMAT=gnu
22714 export TEST_TAR_FORMAT
22715 TAR_OPTIONS=\"-H gnu\"
22720 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
22722 mkdir foo bar middle
22723 echo foo/foo_file > foo/foo_file
22724 echo bar/bar_file > bar/bar_file
22725 echo middle/file > middle/middle_file
22727 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` middle -C bar .
22732 tar -cvf foo.tar --incremental -C foo . -C \`pwd\` toplevel_file -C bar .
22734 at_fn_check_prepare_notrace 'a `...` command substitution' "incr09.at:29"
22738 TEST_TAR_FORMAT=gnu
22739 export TEST_TAR_FORMAT
22740 TAR_OPTIONS="-H gnu"
22745 test -z "`sort < /dev/null 2>&1`" || exit 77
22747 mkdir foo bar middle
22748 echo foo/foo_file > foo/foo_file
22749 echo bar/bar_file > bar/bar_file
22750 echo middle/file > middle/middle_file
22752 tar -cvf foo.tar --incremental -C foo . -C `pwd` middle -C bar .
22757 tar -cvf foo.tar --incremental -C foo . -C `pwd` toplevel_file -C bar .
22759 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22760 at_status=$? at_failed=false
22762 echo >>"$at_stderr"; $as_echo "A
22763 tar: .: Directory is new
22764 tar: middle: Directory is new
22765 tar: .: Directory is new
22767 tar: .: Directory is new
22768 tar: .: Directory is new
22770 $at_diff - "$at_stderr" || at_failed=:
22771 echo >>"$at_stdout"; $as_echo "A
22785 $at_diff - "$at_stdout" || at_failed=:
22786 at_fn_check_status 0 $at_status "$at_srcdir/incr09.at:29"
22787 $at_failed && at_fn_log_failure
22794 $at_times_p && times >"$at_times_file"
22795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22796 read at_status <"$at_status_file"
22799 at_fn_group_banner 97 'filerem01.at:36' \
22800 "file removed as we read it (ca. 22 seconds)" " " 12
22802 test -f $XFAILFILE && at_xfail=yes
22804 $as_echo "97. $at_setup_line: testing $at_desc ..."
22812 $as_echo "$at_srcdir/filerem01.at:39:
22815 TEST_TAR_FORMAT=gnu
22816 export TEST_TAR_FORMAT
22817 TAR_OPTIONS=\"-H gnu\"
22823 genfile --file dir/file1
22824 genfile --file dir/sub/file2
22826 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22827 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22828 --checkpoint-action='echo' -c -f archive.tar \\
22829 --listed-incremental db -v dir >/dev/null
22831 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
22835 TEST_TAR_FORMAT=gnu
22836 export TEST_TAR_FORMAT
22837 TAR_OPTIONS="-H gnu"
22843 genfile --file dir/file1
22844 genfile --file dir/sub/file2
22846 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22847 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22848 --checkpoint-action='echo' -c -f archive.tar \
22849 --listed-incremental db -v dir >/dev/null
22851 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22852 at_status=$? at_failed=false
22854 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22855 tar: dir/sub: Directory is new
22856 tar: dir/file1: File removed before we read it
22858 $at_diff - "$at_stderr" || at_failed=:
22859 echo stdout:; cat "$at_stdout"
22860 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
22861 $at_failed && at_fn_log_failure
22865 $as_echo "$at_srcdir/filerem01.at:39:
22868 TEST_TAR_FORMAT=posix
22869 export TEST_TAR_FORMAT
22870 TAR_OPTIONS=\"-H posix\"
22876 genfile --file dir/file1
22877 genfile --file dir/sub/file2
22879 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22880 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22881 --checkpoint-action='echo' -c -f archive.tar \\
22882 --listed-incremental db -v dir >/dev/null
22884 at_fn_check_prepare_notrace 'an embedded newline' "filerem01.at:39"
22888 TEST_TAR_FORMAT=posix
22889 export TEST_TAR_FORMAT
22890 TAR_OPTIONS="-H posix"
22896 genfile --file dir/file1
22897 genfile --file dir/sub/file2
22899 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22900 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22901 --checkpoint-action='echo' -c -f archive.tar \
22902 --listed-incremental db -v dir >/dev/null
22904 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22905 at_status=$? at_failed=false
22907 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22908 tar: dir/sub: Directory is new
22909 tar: dir/file1: File removed before we read it
22911 $at_diff - "$at_stderr" || at_failed=:
22912 echo stdout:; cat "$at_stdout"
22913 at_fn_check_status 1 $at_status "$at_srcdir/filerem01.at:39"
22914 $at_failed && at_fn_log_failure
22920 # Timing information:
22922 # For -Hgnu the above command line takes about 8 seconds to execute and
22925 # tar: dir: Directory is new
22926 # tar: dir/sub: Directory is new
22928 # tar: Write checkpoint 1
22929 # tar: Write checkpoint 2
22931 # tar: Write checkpoint 3
22932 # tar: Write checkpoint 4
22934 # tar: Write checkpoint 5
22936 # tar: Write checkpoint 6
22937 # tar: Write checkpoint 7
22938 # tar: Write checkpoint 8
22940 # For -Hposix the above command line takes about 14 seconds to execute and
22943 # ./tar: dir: Directory is new
22944 # ./tar: dir/sub: Directory is new
22946 # ./tar: Write checkpoint 1
22947 # ./tar: Write checkpoint 2
22948 # ./tar: Write checkpoint 3
22950 # ./tar: Write checkpoint 4
22951 # ./tar: Write checkpoint 5
22952 # ./tar: Write checkpoint 6
22954 # ./tar: Write checkpoint 7
22955 # ./tar: Write checkpoint 8
22956 # ./tar: Write checkpoint 9
22958 # ./tar: Write checkpoint 10
22959 # ./tar: Write checkpoint 11
22960 # ./tar: Write checkpoint 12
22961 # ./tar: Write checkpoint 13
22962 # ./tar: Write checkpoint 14
22966 $at_times_p && times >"$at_times_file"
22967 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22968 read at_status <"$at_status_file"
22971 at_fn_group_banner 98 'filerem02.at:26' \
22972 "toplevel file removed (ca. 24 seconds)" " " 12
22974 test -f $XFAILFILE && at_xfail=yes
22976 $as_echo "98. $at_setup_line: testing $at_desc ..."
22984 $as_echo "$at_srcdir/filerem02.at:29:
22987 TEST_TAR_FORMAT=gnu
22988 export TEST_TAR_FORMAT
22989 TAR_OPTIONS=\"-H gnu\"
22995 genfile --file dir/file1
22996 genfile --file dir/sub/file2
22998 genfile --file dir2/file1
23000 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
23001 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
23002 --checkpoint-action='echo' -c -f archive.tar \\
23003 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23005 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
23009 TEST_TAR_FORMAT=gnu
23010 export TEST_TAR_FORMAT
23011 TAR_OPTIONS="-H gnu"
23017 genfile --file dir/file1
23018 genfile --file dir/sub/file2
23020 genfile --file dir2/file1
23022 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23023 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23024 --checkpoint-action='echo' -c -f archive.tar \
23025 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23027 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23028 at_status=$? at_failed=false
23030 echo stderr:; cat "$at_stderr"
23031 echo stdout:; cat "$at_stdout"
23032 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
23033 $at_failed && at_fn_log_failure
23037 $as_echo "$at_srcdir/filerem02.at:29:
23040 TEST_TAR_FORMAT=posix
23041 export TEST_TAR_FORMAT
23042 TAR_OPTIONS=\"-H posix\"
23048 genfile --file dir/file1
23049 genfile --file dir/sub/file2
23051 genfile --file dir2/file1
23053 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
23054 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
23055 --checkpoint-action='echo' -c -f archive.tar \\
23056 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23058 at_fn_check_prepare_notrace 'an embedded newline' "filerem02.at:29"
23062 TEST_TAR_FORMAT=posix
23063 export TEST_TAR_FORMAT
23064 TAR_OPTIONS="-H posix"
23070 genfile --file dir/file1
23071 genfile --file dir/sub/file2
23073 genfile --file dir2/file1
23075 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23076 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23077 --checkpoint-action='echo' -c -f archive.tar \
23078 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23080 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23081 at_status=$? at_failed=false
23083 echo stderr:; cat "$at_stderr"
23084 echo stdout:; cat "$at_stdout"
23085 at_fn_check_status 2 $at_status "$at_srcdir/filerem02.at:29"
23086 $at_failed && at_fn_log_failure
23092 # Ignore stdout and stderr because their contents depend on
23093 # the file system implementation.
23095 # Timing information: see filerem01.at
23098 $at_times_p && times >"$at_times_file"
23099 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23100 read at_status <"$at_status_file"
23103 at_fn_group_banner 99 'rename01.at:24' \
23104 "renamed dirs in incrementals" " " 13
23106 test -f $XFAILFILE && at_xfail=yes
23108 $as_echo "99. $at_setup_line: testing $at_desc ..."
23116 $as_echo "$at_srcdir/rename01.at:27:
23119 TEST_TAR_FORMAT=gnu
23120 export TEST_TAR_FORMAT
23121 TAR_OPTIONS=\"-H gnu\"
23126 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23130 genfile --file foo/file1
23131 genfile --file foo/file2
23133 genfile --file foo/bar/file
23135 echo \"Creating base archive\"
23136 tar -g incr -cf arch.1 -v foo
23140 echo \"Creating incremental archive\"
23141 tar -g incr -cf arch.2 -v foo
23145 tar xfg arch.1 /dev/null
23147 echo \"Begin directory listing 1\"
23149 echo \"End directory listing 1\"
23151 tar xfg arch.2 /dev/null
23152 echo Begin directory listing 2
23154 echo End directory listing 2
23156 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
23160 TEST_TAR_FORMAT=gnu
23161 export TEST_TAR_FORMAT
23162 TAR_OPTIONS="-H gnu"
23167 test -z "`sort < /dev/null 2>&1`" || exit 77
23171 genfile --file foo/file1
23172 genfile --file foo/file2
23174 genfile --file foo/bar/file
23176 echo "Creating base archive"
23177 tar -g incr -cf arch.1 -v foo
23181 echo "Creating incremental archive"
23182 tar -g incr -cf arch.2 -v foo
23186 tar xfg arch.1 /dev/null
23188 echo "Begin directory listing 1"
23190 echo "End directory listing 1"
23192 tar xfg arch.2 /dev/null
23193 echo Begin directory listing 2
23195 echo End directory listing 2
23197 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23198 at_status=$? at_failed=false
23200 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23201 tar: foo/bar: Directory is new
23202 tar: foo/baz: Directory has been renamed from 'foo/bar'
23204 $at_diff - "$at_stderr" || at_failed=:
23205 echo >>"$at_stdout"; $as_echo "Creating base archive
23211 Creating incremental archive
23214 Begin directory listing 1
23220 End directory listing 1
23221 Begin directory listing 2
23227 End directory listing 2
23229 $at_diff - "$at_stdout" || at_failed=:
23230 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23231 $at_failed && at_fn_log_failure
23235 $as_echo "$at_srcdir/rename01.at:27:
23238 TEST_TAR_FORMAT=oldgnu
23239 export TEST_TAR_FORMAT
23240 TAR_OPTIONS=\"-H oldgnu\"
23245 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23249 genfile --file foo/file1
23250 genfile --file foo/file2
23252 genfile --file foo/bar/file
23254 echo \"Creating base archive\"
23255 tar -g incr -cf arch.1 -v foo
23259 echo \"Creating incremental archive\"
23260 tar -g incr -cf arch.2 -v foo
23264 tar xfg arch.1 /dev/null
23266 echo \"Begin directory listing 1\"
23268 echo \"End directory listing 1\"
23270 tar xfg arch.2 /dev/null
23271 echo Begin directory listing 2
23273 echo End directory listing 2
23275 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
23279 TEST_TAR_FORMAT=oldgnu
23280 export TEST_TAR_FORMAT
23281 TAR_OPTIONS="-H oldgnu"
23286 test -z "`sort < /dev/null 2>&1`" || exit 77
23290 genfile --file foo/file1
23291 genfile --file foo/file2
23293 genfile --file foo/bar/file
23295 echo "Creating base archive"
23296 tar -g incr -cf arch.1 -v foo
23300 echo "Creating incremental archive"
23301 tar -g incr -cf arch.2 -v foo
23305 tar xfg arch.1 /dev/null
23307 echo "Begin directory listing 1"
23309 echo "End directory listing 1"
23311 tar xfg arch.2 /dev/null
23312 echo Begin directory listing 2
23314 echo End directory listing 2
23316 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23317 at_status=$? at_failed=false
23319 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23320 tar: foo/bar: Directory is new
23321 tar: foo/baz: Directory has been renamed from 'foo/bar'
23323 $at_diff - "$at_stderr" || at_failed=:
23324 echo >>"$at_stdout"; $as_echo "Creating base archive
23330 Creating incremental archive
23333 Begin directory listing 1
23339 End directory listing 1
23340 Begin directory listing 2
23346 End directory listing 2
23348 $at_diff - "$at_stdout" || at_failed=:
23349 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23350 $at_failed && at_fn_log_failure
23354 $as_echo "$at_srcdir/rename01.at:27:
23357 TEST_TAR_FORMAT=posix
23358 export TEST_TAR_FORMAT
23359 TAR_OPTIONS=\"-H posix\"
23364 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23368 genfile --file foo/file1
23369 genfile --file foo/file2
23371 genfile --file foo/bar/file
23373 echo \"Creating base archive\"
23374 tar -g incr -cf arch.1 -v foo
23378 echo \"Creating incremental archive\"
23379 tar -g incr -cf arch.2 -v foo
23383 tar xfg arch.1 /dev/null
23385 echo \"Begin directory listing 1\"
23387 echo \"End directory listing 1\"
23389 tar xfg arch.2 /dev/null
23390 echo Begin directory listing 2
23392 echo End directory listing 2
23394 at_fn_check_prepare_notrace 'a `...` command substitution' "rename01.at:27"
23398 TEST_TAR_FORMAT=posix
23399 export TEST_TAR_FORMAT
23400 TAR_OPTIONS="-H posix"
23405 test -z "`sort < /dev/null 2>&1`" || exit 77
23409 genfile --file foo/file1
23410 genfile --file foo/file2
23412 genfile --file foo/bar/file
23414 echo "Creating base archive"
23415 tar -g incr -cf arch.1 -v foo
23419 echo "Creating incremental archive"
23420 tar -g incr -cf arch.2 -v foo
23424 tar xfg arch.1 /dev/null
23426 echo "Begin directory listing 1"
23428 echo "End directory listing 1"
23430 tar xfg arch.2 /dev/null
23431 echo Begin directory listing 2
23433 echo End directory listing 2
23435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23436 at_status=$? at_failed=false
23438 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23439 tar: foo/bar: Directory is new
23440 tar: foo/baz: Directory has been renamed from 'foo/bar'
23442 $at_diff - "$at_stderr" || at_failed=:
23443 echo >>"$at_stdout"; $as_echo "Creating base archive
23449 Creating incremental archive
23452 Begin directory listing 1
23458 End directory listing 1
23459 Begin directory listing 2
23465 End directory listing 2
23467 $at_diff - "$at_stdout" || at_failed=:
23468 at_fn_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23469 $at_failed && at_fn_log_failure
23476 $at_times_p && times >"$at_times_file"
23477 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23478 read at_status <"$at_status_file"
23481 at_fn_group_banner 100 'rename02.at:24' \
23482 "move between hierarchies" " " 13
23484 test -f $XFAILFILE && at_xfail=yes
23486 $as_echo "100. $at_setup_line: testing $at_desc ..."
23494 $as_echo "$at_srcdir/rename02.at:27:
23497 TEST_TAR_FORMAT=gnu
23498 export TEST_TAR_FORMAT
23499 TAR_OPTIONS=\"-H gnu\"
23504 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23507 genfile --file foo/file1
23508 genfile --file foo/file2
23510 genfile --file foo/bar/file.r
23512 genfile --file foo/bar/baz/file.z
23516 echo \"Creating base archive\"
23517 tar -g incr -cf arch.1 -v foo
23521 echo \"Creating incremental archive\"
23522 tar -g incr -cf arch.2 -v foo
23526 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23529 echo \"Begin directory listing 1\"
23531 echo \"End directory listing 1\"
23533 tar xfgv arch.2 /dev/null --warning=no-timestamp
23534 echo Begin directory listing 2
23536 echo End directory listing 2
23538 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23542 TEST_TAR_FORMAT=gnu
23543 export TEST_TAR_FORMAT
23544 TAR_OPTIONS="-H gnu"
23549 test -z "`sort < /dev/null 2>&1`" || exit 77
23552 genfile --file foo/file1
23553 genfile --file foo/file2
23555 genfile --file foo/bar/file.r
23557 genfile --file foo/bar/baz/file.z
23561 echo "Creating base archive"
23562 tar -g incr -cf arch.1 -v foo
23566 echo "Creating incremental archive"
23567 tar -g incr -cf arch.2 -v foo
23571 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23574 echo "Begin directory listing 1"
23576 echo "End directory listing 1"
23578 tar xfgv arch.2 /dev/null --warning=no-timestamp
23579 echo Begin directory listing 2
23581 echo End directory listing 2
23583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23584 at_status=$? at_failed=false
23586 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23587 tar: foo/bar: Directory is new
23588 tar: foo/bar/baz: Directory is new
23589 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23591 $at_diff - "$at_stderr" || at_failed=:
23592 echo >>"$at_stdout"; $as_echo "Creating base archive
23600 Creating incremental archive
23604 Begin directory listing 1
23612 End directory listing 1
23616 Begin directory listing 2
23624 End directory listing 2
23626 $at_diff - "$at_stdout" || at_failed=:
23627 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23628 $at_failed && at_fn_log_failure
23632 $as_echo "$at_srcdir/rename02.at:27:
23635 TEST_TAR_FORMAT=oldgnu
23636 export TEST_TAR_FORMAT
23637 TAR_OPTIONS=\"-H oldgnu\"
23642 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23645 genfile --file foo/file1
23646 genfile --file foo/file2
23648 genfile --file foo/bar/file.r
23650 genfile --file foo/bar/baz/file.z
23654 echo \"Creating base archive\"
23655 tar -g incr -cf arch.1 -v foo
23659 echo \"Creating incremental archive\"
23660 tar -g incr -cf arch.2 -v foo
23664 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23667 echo \"Begin directory listing 1\"
23669 echo \"End directory listing 1\"
23671 tar xfgv arch.2 /dev/null --warning=no-timestamp
23672 echo Begin directory listing 2
23674 echo End directory listing 2
23676 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23680 TEST_TAR_FORMAT=oldgnu
23681 export TEST_TAR_FORMAT
23682 TAR_OPTIONS="-H oldgnu"
23687 test -z "`sort < /dev/null 2>&1`" || exit 77
23690 genfile --file foo/file1
23691 genfile --file foo/file2
23693 genfile --file foo/bar/file.r
23695 genfile --file foo/bar/baz/file.z
23699 echo "Creating base archive"
23700 tar -g incr -cf arch.1 -v foo
23704 echo "Creating incremental archive"
23705 tar -g incr -cf arch.2 -v foo
23709 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23712 echo "Begin directory listing 1"
23714 echo "End directory listing 1"
23716 tar xfgv arch.2 /dev/null --warning=no-timestamp
23717 echo Begin directory listing 2
23719 echo End directory listing 2
23721 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23722 at_status=$? at_failed=false
23724 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23725 tar: foo/bar: Directory is new
23726 tar: foo/bar/baz: Directory is new
23727 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23729 $at_diff - "$at_stderr" || at_failed=:
23730 echo >>"$at_stdout"; $as_echo "Creating base archive
23738 Creating incremental archive
23742 Begin directory listing 1
23750 End directory listing 1
23754 Begin directory listing 2
23762 End directory listing 2
23764 $at_diff - "$at_stdout" || at_failed=:
23765 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23766 $at_failed && at_fn_log_failure
23770 $as_echo "$at_srcdir/rename02.at:27:
23773 TEST_TAR_FORMAT=posix
23774 export TEST_TAR_FORMAT
23775 TAR_OPTIONS=\"-H posix\"
23780 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23783 genfile --file foo/file1
23784 genfile --file foo/file2
23786 genfile --file foo/bar/file.r
23788 genfile --file foo/bar/baz/file.z
23792 echo \"Creating base archive\"
23793 tar -g incr -cf arch.1 -v foo
23797 echo \"Creating incremental archive\"
23798 tar -g incr -cf arch.2 -v foo
23802 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23805 echo \"Begin directory listing 1\"
23807 echo \"End directory listing 1\"
23809 tar xfgv arch.2 /dev/null --warning=no-timestamp
23810 echo Begin directory listing 2
23812 echo End directory listing 2
23814 at_fn_check_prepare_notrace 'a `...` command substitution' "rename02.at:27"
23818 TEST_TAR_FORMAT=posix
23819 export TEST_TAR_FORMAT
23820 TAR_OPTIONS="-H posix"
23825 test -z "`sort < /dev/null 2>&1`" || exit 77
23828 genfile --file foo/file1
23829 genfile --file foo/file2
23831 genfile --file foo/bar/file.r
23833 genfile --file foo/bar/baz/file.z
23837 echo "Creating base archive"
23838 tar -g incr -cf arch.1 -v foo
23842 echo "Creating incremental archive"
23843 tar -g incr -cf arch.2 -v foo
23847 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23850 echo "Begin directory listing 1"
23852 echo "End directory listing 1"
23854 tar xfgv arch.2 /dev/null --warning=no-timestamp
23855 echo Begin directory listing 2
23857 echo End directory listing 2
23859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23860 at_status=$? at_failed=false
23862 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23863 tar: foo/bar: Directory is new
23864 tar: foo/bar/baz: Directory is new
23865 tar: foo/baz: Directory has been renamed from 'foo/bar/baz'
23867 $at_diff - "$at_stderr" || at_failed=:
23868 echo >>"$at_stdout"; $as_echo "Creating base archive
23876 Creating incremental archive
23880 Begin directory listing 1
23888 End directory listing 1
23892 Begin directory listing 2
23900 End directory listing 2
23902 $at_diff - "$at_stdout" || at_failed=:
23903 at_fn_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23904 $at_failed && at_fn_log_failure
23911 $at_times_p && times >"$at_times_file"
23912 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23913 read at_status <"$at_status_file"
23916 at_fn_group_banner 101 'rename03.at:23' \
23917 "cyclic renames" " " 13
23919 test -f $XFAILFILE && at_xfail=yes
23921 $as_echo "101. $at_setup_line: testing $at_desc ..."
23929 $as_echo "$at_srcdir/rename03.at:26:
23932 TEST_TAR_FORMAT=gnu
23933 export TEST_TAR_FORMAT
23934 TAR_OPTIONS=\"-H gnu\"
23939 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
23943 genfile --file foo/file1
23944 genfile --file foo/file2
23947 genfile --file foo/a/filea
23950 genfile --file foo/b/fileb
23953 genfile --file foo/c/filec
23957 echo \"First dump\"
23958 echo \"First dump\">&2
23959 tar -g incr -cf arch.1 -v foo 2>tmperr
23962 # Shuffle directories:
23969 echo \"Second dump\"
23970 echo \"Second dump\" >&2
23971 tar -g incr -cf arch.2 -v foo 2>tmperr
23974 tar xfg arch.1 /dev/null --warning=no-timestamp
23976 echo \"Begin directory listing 1\"
23978 echo \"End directory listing 1\"
23980 tar xfgv arch.2 /dev/null --warning=no-timestamp
23981 echo Begin directory listing 2
23983 echo End directory listing 2
23985 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
23989 TEST_TAR_FORMAT=gnu
23990 export TEST_TAR_FORMAT
23991 TAR_OPTIONS="-H gnu"
23996 test -z "`sort < /dev/null 2>&1`" || exit 77
24000 genfile --file foo/file1
24001 genfile --file foo/file2
24004 genfile --file foo/a/filea
24007 genfile --file foo/b/fileb
24010 genfile --file foo/c/filec
24015 echo "First dump">&2
24016 tar -g incr -cf arch.1 -v foo 2>tmperr
24019 # Shuffle directories:
24027 echo "Second dump" >&2
24028 tar -g incr -cf arch.2 -v foo 2>tmperr
24031 tar xfg arch.1 /dev/null --warning=no-timestamp
24033 echo "Begin directory listing 1"
24035 echo "End directory listing 1"
24037 tar xfgv arch.2 /dev/null --warning=no-timestamp
24038 echo Begin directory listing 2
24040 echo End directory listing 2
24042 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24043 at_status=$? at_failed=false
24045 echo >>"$at_stderr"; $as_echo "First dump
24046 tar: foo/a: Directory is new
24047 tar: foo/b: Directory is new
24048 tar: foo/c: Directory is new
24049 tar: foo: Directory is new
24051 tar: foo/a: Directory has been renamed from 'foo/c'
24052 tar: foo/b: Directory has been renamed from 'foo/a'
24053 tar: foo/c: Directory has been renamed from 'foo/b'
24055 $at_diff - "$at_stderr" || at_failed=:
24056 echo >>"$at_stdout"; $as_echo "First dump
24071 Begin directory listing 1
24081 End directory listing 1
24086 Begin directory listing 2
24096 End directory listing 2
24098 $at_diff - "$at_stdout" || at_failed=:
24099 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24100 $at_failed && at_fn_log_failure
24104 $as_echo "$at_srcdir/rename03.at:26:
24107 TEST_TAR_FORMAT=oldgnu
24108 export TEST_TAR_FORMAT
24109 TAR_OPTIONS=\"-H oldgnu\"
24114 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24118 genfile --file foo/file1
24119 genfile --file foo/file2
24122 genfile --file foo/a/filea
24125 genfile --file foo/b/fileb
24128 genfile --file foo/c/filec
24132 echo \"First dump\"
24133 echo \"First dump\">&2
24134 tar -g incr -cf arch.1 -v foo 2>tmperr
24137 # Shuffle directories:
24144 echo \"Second dump\"
24145 echo \"Second dump\" >&2
24146 tar -g incr -cf arch.2 -v foo 2>tmperr
24149 tar xfg arch.1 /dev/null --warning=no-timestamp
24151 echo \"Begin directory listing 1\"
24153 echo \"End directory listing 1\"
24155 tar xfgv arch.2 /dev/null --warning=no-timestamp
24156 echo Begin directory listing 2
24158 echo End directory listing 2
24160 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
24164 TEST_TAR_FORMAT=oldgnu
24165 export TEST_TAR_FORMAT
24166 TAR_OPTIONS="-H oldgnu"
24171 test -z "`sort < /dev/null 2>&1`" || exit 77
24175 genfile --file foo/file1
24176 genfile --file foo/file2
24179 genfile --file foo/a/filea
24182 genfile --file foo/b/fileb
24185 genfile --file foo/c/filec
24190 echo "First dump">&2
24191 tar -g incr -cf arch.1 -v foo 2>tmperr
24194 # Shuffle directories:
24202 echo "Second dump" >&2
24203 tar -g incr -cf arch.2 -v foo 2>tmperr
24206 tar xfg arch.1 /dev/null --warning=no-timestamp
24208 echo "Begin directory listing 1"
24210 echo "End directory listing 1"
24212 tar xfgv arch.2 /dev/null --warning=no-timestamp
24213 echo Begin directory listing 2
24215 echo End directory listing 2
24217 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24218 at_status=$? at_failed=false
24220 echo >>"$at_stderr"; $as_echo "First dump
24221 tar: foo/a: Directory is new
24222 tar: foo/b: Directory is new
24223 tar: foo/c: Directory is new
24224 tar: foo: Directory is new
24226 tar: foo/a: Directory has been renamed from 'foo/c'
24227 tar: foo/b: Directory has been renamed from 'foo/a'
24228 tar: foo/c: Directory has been renamed from 'foo/b'
24230 $at_diff - "$at_stderr" || at_failed=:
24231 echo >>"$at_stdout"; $as_echo "First dump
24246 Begin directory listing 1
24256 End directory listing 1
24261 Begin directory listing 2
24271 End directory listing 2
24273 $at_diff - "$at_stdout" || at_failed=:
24274 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24275 $at_failed && at_fn_log_failure
24279 $as_echo "$at_srcdir/rename03.at:26:
24282 TEST_TAR_FORMAT=posix
24283 export TEST_TAR_FORMAT
24284 TAR_OPTIONS=\"-H posix\"
24289 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24293 genfile --file foo/file1
24294 genfile --file foo/file2
24297 genfile --file foo/a/filea
24300 genfile --file foo/b/fileb
24303 genfile --file foo/c/filec
24307 echo \"First dump\"
24308 echo \"First dump\">&2
24309 tar -g incr -cf arch.1 -v foo 2>tmperr
24312 # Shuffle directories:
24319 echo \"Second dump\"
24320 echo \"Second dump\" >&2
24321 tar -g incr -cf arch.2 -v foo 2>tmperr
24324 tar xfg arch.1 /dev/null --warning=no-timestamp
24326 echo \"Begin directory listing 1\"
24328 echo \"End directory listing 1\"
24330 tar xfgv arch.2 /dev/null --warning=no-timestamp
24331 echo Begin directory listing 2
24333 echo End directory listing 2
24335 at_fn_check_prepare_notrace 'a `...` command substitution' "rename03.at:26"
24339 TEST_TAR_FORMAT=posix
24340 export TEST_TAR_FORMAT
24341 TAR_OPTIONS="-H posix"
24346 test -z "`sort < /dev/null 2>&1`" || exit 77
24350 genfile --file foo/file1
24351 genfile --file foo/file2
24354 genfile --file foo/a/filea
24357 genfile --file foo/b/fileb
24360 genfile --file foo/c/filec
24365 echo "First dump">&2
24366 tar -g incr -cf arch.1 -v foo 2>tmperr
24369 # Shuffle directories:
24377 echo "Second dump" >&2
24378 tar -g incr -cf arch.2 -v foo 2>tmperr
24381 tar xfg arch.1 /dev/null --warning=no-timestamp
24383 echo "Begin directory listing 1"
24385 echo "End directory listing 1"
24387 tar xfgv arch.2 /dev/null --warning=no-timestamp
24388 echo Begin directory listing 2
24390 echo End directory listing 2
24392 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24393 at_status=$? at_failed=false
24395 echo >>"$at_stderr"; $as_echo "First dump
24396 tar: foo/a: Directory is new
24397 tar: foo/b: Directory is new
24398 tar: foo/c: Directory is new
24399 tar: foo: Directory is new
24401 tar: foo/a: Directory has been renamed from 'foo/c'
24402 tar: foo/b: Directory has been renamed from 'foo/a'
24403 tar: foo/c: Directory has been renamed from 'foo/b'
24405 $at_diff - "$at_stderr" || at_failed=:
24406 echo >>"$at_stdout"; $as_echo "First dump
24421 Begin directory listing 1
24431 End directory listing 1
24436 Begin directory listing 2
24446 End directory listing 2
24448 $at_diff - "$at_stdout" || at_failed=:
24449 at_fn_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24450 $at_failed && at_fn_log_failure
24457 $at_times_p && times >"$at_times_file"
24458 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24459 read at_status <"$at_status_file"
24462 at_fn_group_banner 102 'rename04.at:27' \
24463 "renamed directory containing subdirectories" " " 13
24465 test -f $XFAILFILE && at_xfail=yes
24467 $as_echo "102. $at_setup_line: testing $at_desc ..."
24475 $as_echo "$at_srcdir/rename04.at:30:
24478 TEST_TAR_FORMAT=gnu
24479 export TEST_TAR_FORMAT
24480 TAR_OPTIONS=\"-H gnu\"
24485 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24488 decho Creating directory structure
24490 mkdir directory/subdir
24491 genfile --file=directory/file
24493 decho Creating initial archive
24494 tar -cf archive.1 -g db.1 directory
24499 decho Creating incremental archive
24501 tar -cf archive.2 -g db.2 dir
24505 decho First restore
24506 tar -xf archive.1 -g db.1
24507 find directory | sort
24509 decho Second restore
24510 tar -xf archive.2 -g db.2
24513 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24517 TEST_TAR_FORMAT=gnu
24518 export TEST_TAR_FORMAT
24519 TAR_OPTIONS="-H gnu"
24524 test -z "`sort < /dev/null 2>&1`" || exit 77
24527 decho Creating directory structure
24529 mkdir directory/subdir
24530 genfile --file=directory/file
24532 decho Creating initial archive
24533 tar -cf archive.1 -g db.1 directory
24538 decho Creating incremental archive
24540 tar -cf archive.2 -g db.2 dir
24544 decho First restore
24545 tar -xf archive.1 -g db.1
24546 find directory | sort
24548 decho Second restore
24549 tar -xf archive.2 -g db.2
24552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24553 at_status=$? at_failed=false
24555 echo >>"$at_stderr"; $as_echo "Creating directory structure
24556 Creating initial archive
24558 Creating incremental archive
24562 $at_diff - "$at_stderr" || at_failed=:
24563 echo >>"$at_stdout"; $as_echo "Creating directory structure
24564 Creating initial archive
24566 Creating incremental archive
24575 $at_diff - "$at_stdout" || at_failed=:
24576 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24577 $at_failed && at_fn_log_failure
24581 $as_echo "$at_srcdir/rename04.at:30:
24584 TEST_TAR_FORMAT=oldgnu
24585 export TEST_TAR_FORMAT
24586 TAR_OPTIONS=\"-H oldgnu\"
24591 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24594 decho Creating directory structure
24596 mkdir directory/subdir
24597 genfile --file=directory/file
24599 decho Creating initial archive
24600 tar -cf archive.1 -g db.1 directory
24605 decho Creating incremental archive
24607 tar -cf archive.2 -g db.2 dir
24611 decho First restore
24612 tar -xf archive.1 -g db.1
24613 find directory | sort
24615 decho Second restore
24616 tar -xf archive.2 -g db.2
24619 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24623 TEST_TAR_FORMAT=oldgnu
24624 export TEST_TAR_FORMAT
24625 TAR_OPTIONS="-H oldgnu"
24630 test -z "`sort < /dev/null 2>&1`" || exit 77
24633 decho Creating directory structure
24635 mkdir directory/subdir
24636 genfile --file=directory/file
24638 decho Creating initial archive
24639 tar -cf archive.1 -g db.1 directory
24644 decho Creating incremental archive
24646 tar -cf archive.2 -g db.2 dir
24650 decho First restore
24651 tar -xf archive.1 -g db.1
24652 find directory | sort
24654 decho Second restore
24655 tar -xf archive.2 -g db.2
24658 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24659 at_status=$? at_failed=false
24661 echo >>"$at_stderr"; $as_echo "Creating directory structure
24662 Creating initial archive
24664 Creating incremental archive
24668 $at_diff - "$at_stderr" || at_failed=:
24669 echo >>"$at_stdout"; $as_echo "Creating directory structure
24670 Creating initial archive
24672 Creating incremental archive
24681 $at_diff - "$at_stdout" || at_failed=:
24682 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24683 $at_failed && at_fn_log_failure
24687 $as_echo "$at_srcdir/rename04.at:30:
24690 TEST_TAR_FORMAT=posix
24691 export TEST_TAR_FORMAT
24692 TAR_OPTIONS=\"-H posix\"
24697 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24700 decho Creating directory structure
24702 mkdir directory/subdir
24703 genfile --file=directory/file
24705 decho Creating initial archive
24706 tar -cf archive.1 -g db.1 directory
24711 decho Creating incremental archive
24713 tar -cf archive.2 -g db.2 dir
24717 decho First restore
24718 tar -xf archive.1 -g db.1
24719 find directory | sort
24721 decho Second restore
24722 tar -xf archive.2 -g db.2
24725 at_fn_check_prepare_notrace 'a `...` command substitution' "rename04.at:30"
24729 TEST_TAR_FORMAT=posix
24730 export TEST_TAR_FORMAT
24731 TAR_OPTIONS="-H posix"
24736 test -z "`sort < /dev/null 2>&1`" || exit 77
24739 decho Creating directory structure
24741 mkdir directory/subdir
24742 genfile --file=directory/file
24744 decho Creating initial archive
24745 tar -cf archive.1 -g db.1 directory
24750 decho Creating incremental archive
24752 tar -cf archive.2 -g db.2 dir
24756 decho First restore
24757 tar -xf archive.1 -g db.1
24758 find directory | sort
24760 decho Second restore
24761 tar -xf archive.2 -g db.2
24764 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24765 at_status=$? at_failed=false
24767 echo >>"$at_stderr"; $as_echo "Creating directory structure
24768 Creating initial archive
24770 Creating incremental archive
24774 $at_diff - "$at_stderr" || at_failed=:
24775 echo >>"$at_stdout"; $as_echo "Creating directory structure
24776 Creating initial archive
24778 Creating incremental archive
24787 $at_diff - "$at_stdout" || at_failed=:
24788 at_fn_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24789 $at_failed && at_fn_log_failure
24796 $at_times_p && times >"$at_times_file"
24797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24798 read at_status <"$at_status_file"
24801 at_fn_group_banner 103 'rename05.at:24' \
24802 "renamed subdirectories" " " 13
24804 test -f $XFAILFILE && at_xfail=yes
24806 $as_echo "103. $at_setup_line: testing $at_desc ..."
24814 $as_echo "$at_srcdir/rename05.at:27:
24817 TEST_TAR_FORMAT=gnu
24818 export TEST_TAR_FORMAT
24819 TAR_OPTIONS=\"-H gnu\"
24824 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24827 decho Creating directory structure
24829 mkdir directory/subdir
24830 genfile --file=directory/file
24832 decho Creating initial archive
24833 tar -cf archive.1 -g db.1 directory
24836 mv directory/subdir directory/subdir.0
24839 decho Creating incremental archive
24841 tar -cf archive.2 -g db.2 dir
24845 decho First restore
24846 tar -xf archive.1 -g db.1 --warning=no-timestamp
24847 find directory | sort
24849 decho Second restore
24850 tar -xf archive.2 -g db.2 --warning=no-timestamp
24853 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
24857 TEST_TAR_FORMAT=gnu
24858 export TEST_TAR_FORMAT
24859 TAR_OPTIONS="-H gnu"
24864 test -z "`sort < /dev/null 2>&1`" || exit 77
24867 decho Creating directory structure
24869 mkdir directory/subdir
24870 genfile --file=directory/file
24872 decho Creating initial archive
24873 tar -cf archive.1 -g db.1 directory
24876 mv directory/subdir directory/subdir.0
24879 decho Creating incremental archive
24881 tar -cf archive.2 -g db.2 dir
24885 decho First restore
24886 tar -xf archive.1 -g db.1 --warning=no-timestamp
24887 find directory | sort
24889 decho Second restore
24890 tar -xf archive.2 -g db.2 --warning=no-timestamp
24893 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24894 at_status=$? at_failed=false
24896 echo >>"$at_stderr"; $as_echo "Creating directory structure
24897 Creating initial archive
24899 Creating incremental archive
24903 $at_diff - "$at_stderr" || at_failed=:
24904 echo >>"$at_stdout"; $as_echo "Creating directory structure
24905 Creating initial archive
24907 Creating incremental archive
24916 $at_diff - "$at_stdout" || at_failed=:
24917 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24918 $at_failed && at_fn_log_failure
24922 $as_echo "$at_srcdir/rename05.at:27:
24925 TEST_TAR_FORMAT=oldgnu
24926 export TEST_TAR_FORMAT
24927 TAR_OPTIONS=\"-H oldgnu\"
24932 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
24935 decho Creating directory structure
24937 mkdir directory/subdir
24938 genfile --file=directory/file
24940 decho Creating initial archive
24941 tar -cf archive.1 -g db.1 directory
24944 mv directory/subdir directory/subdir.0
24947 decho Creating incremental archive
24949 tar -cf archive.2 -g db.2 dir
24953 decho First restore
24954 tar -xf archive.1 -g db.1 --warning=no-timestamp
24955 find directory | sort
24957 decho Second restore
24958 tar -xf archive.2 -g db.2 --warning=no-timestamp
24961 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
24965 TEST_TAR_FORMAT=oldgnu
24966 export TEST_TAR_FORMAT
24967 TAR_OPTIONS="-H oldgnu"
24972 test -z "`sort < /dev/null 2>&1`" || exit 77
24975 decho Creating directory structure
24977 mkdir directory/subdir
24978 genfile --file=directory/file
24980 decho Creating initial archive
24981 tar -cf archive.1 -g db.1 directory
24984 mv directory/subdir directory/subdir.0
24987 decho Creating incremental archive
24989 tar -cf archive.2 -g db.2 dir
24993 decho First restore
24994 tar -xf archive.1 -g db.1 --warning=no-timestamp
24995 find directory | sort
24997 decho Second restore
24998 tar -xf archive.2 -g db.2 --warning=no-timestamp
25001 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25002 at_status=$? at_failed=false
25004 echo >>"$at_stderr"; $as_echo "Creating directory structure
25005 Creating initial archive
25007 Creating incremental archive
25011 $at_diff - "$at_stderr" || at_failed=:
25012 echo >>"$at_stdout"; $as_echo "Creating directory structure
25013 Creating initial archive
25015 Creating incremental archive
25024 $at_diff - "$at_stdout" || at_failed=:
25025 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25026 $at_failed && at_fn_log_failure
25030 $as_echo "$at_srcdir/rename05.at:27:
25033 TEST_TAR_FORMAT=posix
25034 export TEST_TAR_FORMAT
25035 TAR_OPTIONS=\"-H posix\"
25040 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25043 decho Creating directory structure
25045 mkdir directory/subdir
25046 genfile --file=directory/file
25048 decho Creating initial archive
25049 tar -cf archive.1 -g db.1 directory
25052 mv directory/subdir directory/subdir.0
25055 decho Creating incremental archive
25057 tar -cf archive.2 -g db.2 dir
25061 decho First restore
25062 tar -xf archive.1 -g db.1 --warning=no-timestamp
25063 find directory | sort
25065 decho Second restore
25066 tar -xf archive.2 -g db.2 --warning=no-timestamp
25069 at_fn_check_prepare_notrace 'a `...` command substitution' "rename05.at:27"
25073 TEST_TAR_FORMAT=posix
25074 export TEST_TAR_FORMAT
25075 TAR_OPTIONS="-H posix"
25080 test -z "`sort < /dev/null 2>&1`" || exit 77
25083 decho Creating directory structure
25085 mkdir directory/subdir
25086 genfile --file=directory/file
25088 decho Creating initial archive
25089 tar -cf archive.1 -g db.1 directory
25092 mv directory/subdir directory/subdir.0
25095 decho Creating incremental archive
25097 tar -cf archive.2 -g db.2 dir
25101 decho First restore
25102 tar -xf archive.1 -g db.1 --warning=no-timestamp
25103 find directory | sort
25105 decho Second restore
25106 tar -xf archive.2 -g db.2 --warning=no-timestamp
25109 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25110 at_status=$? at_failed=false
25112 echo >>"$at_stderr"; $as_echo "Creating directory structure
25113 Creating initial archive
25115 Creating incremental archive
25119 $at_diff - "$at_stderr" || at_failed=:
25120 echo >>"$at_stdout"; $as_echo "Creating directory structure
25121 Creating initial archive
25123 Creating incremental archive
25132 $at_diff - "$at_stdout" || at_failed=:
25133 at_fn_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25134 $at_failed && at_fn_log_failure
25141 $at_times_p && times >"$at_times_file"
25142 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25143 read at_status <"$at_status_file"
25146 at_fn_group_banner 104 'chtype.at:27' \
25147 "changed file types in incrementals" " " 13
25149 test -f $XFAILFILE && at_xfail=yes
25151 $as_echo "104. $at_setup_line: testing $at_desc ..."
25159 $as_echo "$at_srcdir/chtype.at:30:
25162 TEST_TAR_FORMAT=gnu
25163 export TEST_TAR_FORMAT
25164 TAR_OPTIONS=\"-H gnu\"
25169 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25172 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25174 genfile --file directory/a/a
25177 tar --create --file=archive.1 --listed-incremental=db.1 directory
25181 # Remove directory b and create a file with this name.
25182 # Previous versions were not able to restore over this file.
25184 genfile --file directory/b
25185 genfile --file directory/a/b
25188 tar --create --file=archive.2 --listed-incremental=db.2 directory
25193 echo Restore archive.1
25194 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25195 echo Restore archive.2
25196 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25197 find directory | sort
25199 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
25203 TEST_TAR_FORMAT=gnu
25204 export TEST_TAR_FORMAT
25205 TAR_OPTIONS="-H gnu"
25210 test -z "`sort < /dev/null 2>&1`" || exit 77
25213 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25215 genfile --file directory/a/a
25218 tar --create --file=archive.1 --listed-incremental=db.1 directory
25222 # Remove directory b and create a file with this name.
25223 # Previous versions were not able to restore over this file.
25225 genfile --file directory/b
25226 genfile --file directory/a/b
25229 tar --create --file=archive.2 --listed-incremental=db.2 directory
25234 echo Restore archive.1
25235 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25236 echo Restore archive.2
25237 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25238 find directory | sort
25240 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25241 at_status=$? at_failed=false
25243 at_fn_diff_devnull "$at_stderr" || at_failed=:
25244 echo >>"$at_stdout"; $as_echo "First backup
25254 $at_diff - "$at_stdout" || at_failed=:
25255 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25256 $at_failed && at_fn_log_failure
25260 $as_echo "$at_srcdir/chtype.at:30:
25263 TEST_TAR_FORMAT=oldgnu
25264 export TEST_TAR_FORMAT
25265 TAR_OPTIONS=\"-H oldgnu\"
25270 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25273 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25275 genfile --file directory/a/a
25278 tar --create --file=archive.1 --listed-incremental=db.1 directory
25282 # Remove directory b and create a file with this name.
25283 # Previous versions were not able to restore over this file.
25285 genfile --file directory/b
25286 genfile --file directory/a/b
25289 tar --create --file=archive.2 --listed-incremental=db.2 directory
25294 echo Restore archive.1
25295 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25296 echo Restore archive.2
25297 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25298 find directory | sort
25300 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
25304 TEST_TAR_FORMAT=oldgnu
25305 export TEST_TAR_FORMAT
25306 TAR_OPTIONS="-H oldgnu"
25311 test -z "`sort < /dev/null 2>&1`" || exit 77
25314 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25316 genfile --file directory/a/a
25319 tar --create --file=archive.1 --listed-incremental=db.1 directory
25323 # Remove directory b and create a file with this name.
25324 # Previous versions were not able to restore over this file.
25326 genfile --file directory/b
25327 genfile --file directory/a/b
25330 tar --create --file=archive.2 --listed-incremental=db.2 directory
25335 echo Restore archive.1
25336 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25337 echo Restore archive.2
25338 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25339 find directory | sort
25341 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25342 at_status=$? at_failed=false
25344 at_fn_diff_devnull "$at_stderr" || at_failed=:
25345 echo >>"$at_stdout"; $as_echo "First backup
25355 $at_diff - "$at_stdout" || at_failed=:
25356 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25357 $at_failed && at_fn_log_failure
25361 $as_echo "$at_srcdir/chtype.at:30:
25364 TEST_TAR_FORMAT=posix
25365 export TEST_TAR_FORMAT
25366 TAR_OPTIONS=\"-H posix\"
25371 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
25374 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25376 genfile --file directory/a/a
25379 tar --create --file=archive.1 --listed-incremental=db.1 directory
25383 # Remove directory b and create a file with this name.
25384 # Previous versions were not able to restore over this file.
25386 genfile --file directory/b
25387 genfile --file directory/a/b
25390 tar --create --file=archive.2 --listed-incremental=db.2 directory
25395 echo Restore archive.1
25396 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25397 echo Restore archive.2
25398 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25399 find directory | sort
25401 at_fn_check_prepare_notrace 'a `...` command substitution' "chtype.at:30"
25405 TEST_TAR_FORMAT=posix
25406 export TEST_TAR_FORMAT
25407 TAR_OPTIONS="-H posix"
25412 test -z "`sort < /dev/null 2>&1`" || exit 77
25415 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25417 genfile --file directory/a/a
25420 tar --create --file=archive.1 --listed-incremental=db.1 directory
25424 # Remove directory b and create a file with this name.
25425 # Previous versions were not able to restore over this file.
25427 genfile --file directory/b
25428 genfile --file directory/a/b
25431 tar --create --file=archive.2 --listed-incremental=db.2 directory
25436 echo Restore archive.1
25437 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25438 echo Restore archive.2
25439 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25440 find directory | sort
25442 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25443 at_status=$? at_failed=false
25445 at_fn_diff_devnull "$at_stderr" || at_failed=:
25446 echo >>"$at_stdout"; $as_echo "First backup
25456 $at_diff - "$at_stdout" || at_failed=:
25457 at_fn_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25458 $at_failed && at_fn_log_failure
25465 $at_times_p && times >"$at_times_file"
25466 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25467 read at_status <"$at_status_file"
25470 at_fn_group_banner 105 'ignfail.at:23' \
25473 test -f $XFAILFILE && at_xfail=yes
25475 $as_echo "105. $at_setup_line: testing $at_desc ..."
25483 $as_echo "$at_srcdir/ignfail.at:26:
25487 export TEST_TAR_FORMAT
25488 TAR_OPTIONS=\"-H v7\"
25492 # The test is meaningless for super-user.
25494 echo \"test\" > \$\$
25496 cat \$\$ > /dev/null 2>&1
25499 test \$result -eq 0 && exit 77
25504 touch directory/file
25508 tar cf archive file
25511 test \$status = 2 || exit 1
25515 tar cf archive --ignore-failed-read file || exit 1
25518 test \$status = 0 || exit 1
25521 chmod 000 directory
25522 tar cf archive directory
25524 chmod 700 directory
25525 test \$status = 2 || exit 1
25528 chmod 000 directory
25529 tar cf archive --ignore-failed-read directory || exit 1
25531 chmod 700 directory
25534 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25539 export TEST_TAR_FORMAT
25540 TAR_OPTIONS="-H v7"
25544 # The test is meaningless for super-user.
25548 cat $$ > /dev/null 2>&1
25551 test $result -eq 0 && exit 77
25556 touch directory/file
25560 tar cf archive file
25563 test $status = 2 || exit 1
25567 tar cf archive --ignore-failed-read file || exit 1
25570 test $status = 0 || exit 1
25573 chmod 000 directory
25574 tar cf archive directory
25576 chmod 700 directory
25577 test $status = 2 || exit 1
25580 chmod 000 directory
25581 tar cf archive --ignore-failed-read directory || exit 1
25583 chmod 700 directory
25586 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25587 at_status=$? at_failed=false
25589 echo >>"$at_stderr"; $as_echo "-----
25590 tar: file: Cannot open: Permission denied
25591 tar: Exiting with failure status due to previous errors
25593 tar: file: Warning: Cannot open: Permission denied
25595 tar: directory: Cannot open: Permission denied
25596 tar: Exiting with failure status due to previous errors
25598 tar: directory: Warning: Cannot open: Permission denied
25600 $at_diff - "$at_stderr" || at_failed=:
25601 at_fn_diff_devnull "$at_stdout" || at_failed=:
25602 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25603 $at_failed && at_fn_log_failure
25607 $as_echo "$at_srcdir/ignfail.at:26:
25610 TEST_TAR_FORMAT=oldgnu
25611 export TEST_TAR_FORMAT
25612 TAR_OPTIONS=\"-H oldgnu\"
25616 # The test is meaningless for super-user.
25618 echo \"test\" > \$\$
25620 cat \$\$ > /dev/null 2>&1
25623 test \$result -eq 0 && exit 77
25628 touch directory/file
25632 tar cf archive file
25635 test \$status = 2 || exit 1
25639 tar cf archive --ignore-failed-read file || exit 1
25642 test \$status = 0 || exit 1
25645 chmod 000 directory
25646 tar cf archive directory
25648 chmod 700 directory
25649 test \$status = 2 || exit 1
25652 chmod 000 directory
25653 tar cf archive --ignore-failed-read directory || exit 1
25655 chmod 700 directory
25658 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25662 TEST_TAR_FORMAT=oldgnu
25663 export TEST_TAR_FORMAT
25664 TAR_OPTIONS="-H oldgnu"
25668 # The test is meaningless for super-user.
25672 cat $$ > /dev/null 2>&1
25675 test $result -eq 0 && exit 77
25680 touch directory/file
25684 tar cf archive file
25687 test $status = 2 || exit 1
25691 tar cf archive --ignore-failed-read file || exit 1
25694 test $status = 0 || exit 1
25697 chmod 000 directory
25698 tar cf archive directory
25700 chmod 700 directory
25701 test $status = 2 || exit 1
25704 chmod 000 directory
25705 tar cf archive --ignore-failed-read directory || exit 1
25707 chmod 700 directory
25710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25711 at_status=$? at_failed=false
25713 echo >>"$at_stderr"; $as_echo "-----
25714 tar: file: Cannot open: Permission denied
25715 tar: Exiting with failure status due to previous errors
25717 tar: file: Warning: Cannot open: Permission denied
25719 tar: directory: Cannot open: Permission denied
25720 tar: Exiting with failure status due to previous errors
25722 tar: directory: Warning: Cannot open: Permission denied
25724 $at_diff - "$at_stderr" || at_failed=:
25725 at_fn_diff_devnull "$at_stdout" || at_failed=:
25726 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25727 $at_failed && at_fn_log_failure
25731 $as_echo "$at_srcdir/ignfail.at:26:
25734 TEST_TAR_FORMAT=ustar
25735 export TEST_TAR_FORMAT
25736 TAR_OPTIONS=\"-H ustar\"
25740 # The test is meaningless for super-user.
25742 echo \"test\" > \$\$
25744 cat \$\$ > /dev/null 2>&1
25747 test \$result -eq 0 && exit 77
25752 touch directory/file
25756 tar cf archive file
25759 test \$status = 2 || exit 1
25763 tar cf archive --ignore-failed-read file || exit 1
25766 test \$status = 0 || exit 1
25769 chmod 000 directory
25770 tar cf archive directory
25772 chmod 700 directory
25773 test \$status = 2 || exit 1
25776 chmod 000 directory
25777 tar cf archive --ignore-failed-read directory || exit 1
25779 chmod 700 directory
25782 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25786 TEST_TAR_FORMAT=ustar
25787 export TEST_TAR_FORMAT
25788 TAR_OPTIONS="-H ustar"
25792 # The test is meaningless for super-user.
25796 cat $$ > /dev/null 2>&1
25799 test $result -eq 0 && exit 77
25804 touch directory/file
25808 tar cf archive file
25811 test $status = 2 || exit 1
25815 tar cf archive --ignore-failed-read file || exit 1
25818 test $status = 0 || exit 1
25821 chmod 000 directory
25822 tar cf archive directory
25824 chmod 700 directory
25825 test $status = 2 || exit 1
25828 chmod 000 directory
25829 tar cf archive --ignore-failed-read directory || exit 1
25831 chmod 700 directory
25834 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25835 at_status=$? at_failed=false
25837 echo >>"$at_stderr"; $as_echo "-----
25838 tar: file: Cannot open: Permission denied
25839 tar: Exiting with failure status due to previous errors
25841 tar: file: Warning: Cannot open: Permission denied
25843 tar: directory: Cannot open: Permission denied
25844 tar: Exiting with failure status due to previous errors
25846 tar: directory: Warning: Cannot open: Permission denied
25848 $at_diff - "$at_stderr" || at_failed=:
25849 at_fn_diff_devnull "$at_stdout" || at_failed=:
25850 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25851 $at_failed && at_fn_log_failure
25855 $as_echo "$at_srcdir/ignfail.at:26:
25858 TEST_TAR_FORMAT=posix
25859 export TEST_TAR_FORMAT
25860 TAR_OPTIONS=\"-H posix\"
25864 # The test is meaningless for super-user.
25866 echo \"test\" > \$\$
25868 cat \$\$ > /dev/null 2>&1
25871 test \$result -eq 0 && exit 77
25876 touch directory/file
25880 tar cf archive file
25883 test \$status = 2 || exit 1
25887 tar cf archive --ignore-failed-read file || exit 1
25890 test \$status = 0 || exit 1
25893 chmod 000 directory
25894 tar cf archive directory
25896 chmod 700 directory
25897 test \$status = 2 || exit 1
25900 chmod 000 directory
25901 tar cf archive --ignore-failed-read directory || exit 1
25903 chmod 700 directory
25906 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
25910 TEST_TAR_FORMAT=posix
25911 export TEST_TAR_FORMAT
25912 TAR_OPTIONS="-H posix"
25916 # The test is meaningless for super-user.
25920 cat $$ > /dev/null 2>&1
25923 test $result -eq 0 && exit 77
25928 touch directory/file
25932 tar cf archive file
25935 test $status = 2 || exit 1
25939 tar cf archive --ignore-failed-read file || exit 1
25942 test $status = 0 || exit 1
25945 chmod 000 directory
25946 tar cf archive directory
25948 chmod 700 directory
25949 test $status = 2 || exit 1
25952 chmod 000 directory
25953 tar cf archive --ignore-failed-read directory || exit 1
25955 chmod 700 directory
25958 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25959 at_status=$? at_failed=false
25961 echo >>"$at_stderr"; $as_echo "-----
25962 tar: file: Cannot open: Permission denied
25963 tar: Exiting with failure status due to previous errors
25965 tar: file: Warning: Cannot open: Permission denied
25967 tar: directory: Cannot open: Permission denied
25968 tar: Exiting with failure status due to previous errors
25970 tar: directory: Warning: Cannot open: Permission denied
25972 $at_diff - "$at_stderr" || at_failed=:
25973 at_fn_diff_devnull "$at_stdout" || at_failed=:
25974 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25975 $at_failed && at_fn_log_failure
25979 $as_echo "$at_srcdir/ignfail.at:26:
25982 TEST_TAR_FORMAT=gnu
25983 export TEST_TAR_FORMAT
25984 TAR_OPTIONS=\"-H gnu\"
25988 # The test is meaningless for super-user.
25990 echo \"test\" > \$\$
25992 cat \$\$ > /dev/null 2>&1
25995 test \$result -eq 0 && exit 77
26000 touch directory/file
26004 tar cf archive file
26007 test \$status = 2 || exit 1
26011 tar cf archive --ignore-failed-read file || exit 1
26014 test \$status = 0 || exit 1
26017 chmod 000 directory
26018 tar cf archive directory
26020 chmod 700 directory
26021 test \$status = 2 || exit 1
26024 chmod 000 directory
26025 tar cf archive --ignore-failed-read directory || exit 1
26027 chmod 700 directory
26030 at_fn_check_prepare_notrace 'an embedded newline' "ignfail.at:26"
26034 TEST_TAR_FORMAT=gnu
26035 export TEST_TAR_FORMAT
26036 TAR_OPTIONS="-H gnu"
26040 # The test is meaningless for super-user.
26044 cat $$ > /dev/null 2>&1
26047 test $result -eq 0 && exit 77
26052 touch directory/file
26056 tar cf archive file
26059 test $status = 2 || exit 1
26063 tar cf archive --ignore-failed-read file || exit 1
26066 test $status = 0 || exit 1
26069 chmod 000 directory
26070 tar cf archive directory
26072 chmod 700 directory
26073 test $status = 2 || exit 1
26076 chmod 000 directory
26077 tar cf archive --ignore-failed-read directory || exit 1
26079 chmod 700 directory
26082 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26083 at_status=$? at_failed=false
26085 echo >>"$at_stderr"; $as_echo "-----
26086 tar: file: Cannot open: Permission denied
26087 tar: Exiting with failure status due to previous errors
26089 tar: file: Warning: Cannot open: Permission denied
26091 tar: directory: Cannot open: Permission denied
26092 tar: Exiting with failure status due to previous errors
26094 tar: directory: Warning: Cannot open: Permission denied
26096 $at_diff - "$at_stderr" || at_failed=:
26097 at_fn_diff_devnull "$at_stdout" || at_failed=:
26098 at_fn_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26099 $at_failed && at_fn_log_failure
26106 $at_times_p && times >"$at_times_file"
26107 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26108 read at_status <"$at_status_file"
26111 at_fn_group_banner 106 'link01.at:33' \
26112 "link count gt 2" " " 15
26114 test -f $XFAILFILE && at_xfail=yes
26116 $as_echo "106. $at_setup_line: testing $at_desc ..."
26124 $as_echo "$at_srcdir/link01.at:36:
26128 export TEST_TAR_FORMAT
26129 TAR_OPTIONS=\"-H v7\"
26134 mkdir directory/test1
26135 mkdir directory/test2
26137 echo TEST > directory/test1/test.txt
26138 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26140 tar cf archive directory/test1/test.txt directory/test1/test.txt
26143 tar xf archive --warning=no-timestamp
26147 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
26152 export TEST_TAR_FORMAT
26153 TAR_OPTIONS="-H v7"
26158 mkdir directory/test1
26159 mkdir directory/test2
26161 echo TEST > directory/test1/test.txt
26162 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26164 tar cf archive directory/test1/test.txt directory/test1/test.txt
26167 tar xf archive --warning=no-timestamp
26171 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26172 at_status=$? at_failed=false
26174 at_fn_diff_devnull "$at_stderr" || at_failed=:
26175 echo >>"$at_stdout"; $as_echo "test.txt
26177 $at_diff - "$at_stdout" || at_failed=:
26178 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
26179 $at_failed && at_fn_log_failure
26183 $as_echo "$at_srcdir/link01.at:36:
26186 TEST_TAR_FORMAT=oldgnu
26187 export TEST_TAR_FORMAT
26188 TAR_OPTIONS=\"-H oldgnu\"
26193 mkdir directory/test1
26194 mkdir directory/test2
26196 echo TEST > directory/test1/test.txt
26197 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26199 tar cf archive directory/test1/test.txt directory/test1/test.txt
26202 tar xf archive --warning=no-timestamp
26206 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
26210 TEST_TAR_FORMAT=oldgnu
26211 export TEST_TAR_FORMAT
26212 TAR_OPTIONS="-H oldgnu"
26217 mkdir directory/test1
26218 mkdir directory/test2
26220 echo TEST > directory/test1/test.txt
26221 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26223 tar cf archive directory/test1/test.txt directory/test1/test.txt
26226 tar xf archive --warning=no-timestamp
26230 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26231 at_status=$? at_failed=false
26233 at_fn_diff_devnull "$at_stderr" || at_failed=:
26234 echo >>"$at_stdout"; $as_echo "test.txt
26236 $at_diff - "$at_stdout" || at_failed=:
26237 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
26238 $at_failed && at_fn_log_failure
26242 $as_echo "$at_srcdir/link01.at:36:
26245 TEST_TAR_FORMAT=ustar
26246 export TEST_TAR_FORMAT
26247 TAR_OPTIONS=\"-H ustar\"
26252 mkdir directory/test1
26253 mkdir directory/test2
26255 echo TEST > directory/test1/test.txt
26256 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26258 tar cf archive directory/test1/test.txt directory/test1/test.txt
26261 tar xf archive --warning=no-timestamp
26265 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
26269 TEST_TAR_FORMAT=ustar
26270 export TEST_TAR_FORMAT
26271 TAR_OPTIONS="-H ustar"
26276 mkdir directory/test1
26277 mkdir directory/test2
26279 echo TEST > directory/test1/test.txt
26280 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26282 tar cf archive directory/test1/test.txt directory/test1/test.txt
26285 tar xf archive --warning=no-timestamp
26289 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26290 at_status=$? at_failed=false
26292 at_fn_diff_devnull "$at_stderr" || at_failed=:
26293 echo >>"$at_stdout"; $as_echo "test.txt
26295 $at_diff - "$at_stdout" || at_failed=:
26296 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
26297 $at_failed && at_fn_log_failure
26301 $as_echo "$at_srcdir/link01.at:36:
26304 TEST_TAR_FORMAT=posix
26305 export TEST_TAR_FORMAT
26306 TAR_OPTIONS=\"-H posix\"
26311 mkdir directory/test1
26312 mkdir directory/test2
26314 echo TEST > directory/test1/test.txt
26315 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26317 tar cf archive directory/test1/test.txt directory/test1/test.txt
26320 tar xf archive --warning=no-timestamp
26324 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
26328 TEST_TAR_FORMAT=posix
26329 export TEST_TAR_FORMAT
26330 TAR_OPTIONS="-H posix"
26335 mkdir directory/test1
26336 mkdir directory/test2
26338 echo TEST > directory/test1/test.txt
26339 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26341 tar cf archive directory/test1/test.txt directory/test1/test.txt
26344 tar xf archive --warning=no-timestamp
26348 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26349 at_status=$? at_failed=false
26351 at_fn_diff_devnull "$at_stderr" || at_failed=:
26352 echo >>"$at_stdout"; $as_echo "test.txt
26354 $at_diff - "$at_stdout" || at_failed=:
26355 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
26356 $at_failed && at_fn_log_failure
26360 $as_echo "$at_srcdir/link01.at:36:
26363 TEST_TAR_FORMAT=gnu
26364 export TEST_TAR_FORMAT
26365 TAR_OPTIONS=\"-H gnu\"
26370 mkdir directory/test1
26371 mkdir directory/test2
26373 echo TEST > directory/test1/test.txt
26374 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26376 tar cf archive directory/test1/test.txt directory/test1/test.txt
26379 tar xf archive --warning=no-timestamp
26383 at_fn_check_prepare_notrace 'an embedded newline' "link01.at:36"
26387 TEST_TAR_FORMAT=gnu
26388 export TEST_TAR_FORMAT
26389 TAR_OPTIONS="-H gnu"
26394 mkdir directory/test1
26395 mkdir directory/test2
26397 echo TEST > directory/test1/test.txt
26398 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26400 tar cf archive directory/test1/test.txt directory/test1/test.txt
26403 tar xf archive --warning=no-timestamp
26407 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26408 at_status=$? at_failed=false
26410 at_fn_diff_devnull "$at_stderr" || at_failed=:
26411 echo >>"$at_stdout"; $as_echo "test.txt
26413 $at_diff - "$at_stdout" || at_failed=:
26414 at_fn_check_status 0 $at_status "$at_srcdir/link01.at:36"
26415 $at_failed && at_fn_log_failure
26422 $at_times_p && times >"$at_times_file"
26423 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26424 read at_status <"$at_status_file"
26427 at_fn_group_banner 107 'link02.at:32' \
26428 "preserve hard links with --remove-files" " " 15
26430 test -f $XFAILFILE && at_xfail=yes
26432 $as_echo "107. $at_setup_line: testing $at_desc ..."
26440 $as_echo "$at_srcdir/link02.at:35:
26444 export TEST_TAR_FORMAT
26445 TAR_OPTIONS=\"-H v7\"
26449 genfile -l 64 -f file1
26453 tar -c -f archive --remove-files file1 file2 file3 file4
26454 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26456 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26461 export TEST_TAR_FORMAT
26462 TAR_OPTIONS="-H v7"
26466 genfile -l 64 -f file1
26470 tar -c -f archive --remove-files file1 file2 file3 file4
26471 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26473 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26474 at_status=$? at_failed=false
26476 at_fn_diff_devnull "$at_stderr" || at_failed=:
26477 echo >>"$at_stdout"; $as_echo "file1
26481 $at_diff - "$at_stdout" || at_failed=:
26482 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26483 $at_failed && at_fn_log_failure
26487 $as_echo "$at_srcdir/link02.at:35:
26490 TEST_TAR_FORMAT=oldgnu
26491 export TEST_TAR_FORMAT
26492 TAR_OPTIONS=\"-H oldgnu\"
26496 genfile -l 64 -f file1
26500 tar -c -f archive --remove-files file1 file2 file3 file4
26501 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26503 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26507 TEST_TAR_FORMAT=oldgnu
26508 export TEST_TAR_FORMAT
26509 TAR_OPTIONS="-H oldgnu"
26513 genfile -l 64 -f file1
26517 tar -c -f archive --remove-files file1 file2 file3 file4
26518 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26521 at_status=$? at_failed=false
26523 at_fn_diff_devnull "$at_stderr" || at_failed=:
26524 echo >>"$at_stdout"; $as_echo "file1
26528 $at_diff - "$at_stdout" || at_failed=:
26529 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26530 $at_failed && at_fn_log_failure
26534 $as_echo "$at_srcdir/link02.at:35:
26537 TEST_TAR_FORMAT=ustar
26538 export TEST_TAR_FORMAT
26539 TAR_OPTIONS=\"-H ustar\"
26543 genfile -l 64 -f file1
26547 tar -c -f archive --remove-files file1 file2 file3 file4
26548 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26550 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26554 TEST_TAR_FORMAT=ustar
26555 export TEST_TAR_FORMAT
26556 TAR_OPTIONS="-H ustar"
26560 genfile -l 64 -f file1
26564 tar -c -f archive --remove-files file1 file2 file3 file4
26565 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26567 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26568 at_status=$? at_failed=false
26570 at_fn_diff_devnull "$at_stderr" || at_failed=:
26571 echo >>"$at_stdout"; $as_echo "file1
26575 $at_diff - "$at_stdout" || at_failed=:
26576 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26577 $at_failed && at_fn_log_failure
26581 $as_echo "$at_srcdir/link02.at:35:
26584 TEST_TAR_FORMAT=posix
26585 export TEST_TAR_FORMAT
26586 TAR_OPTIONS=\"-H posix\"
26590 genfile -l 64 -f file1
26594 tar -c -f archive --remove-files file1 file2 file3 file4
26595 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26597 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26601 TEST_TAR_FORMAT=posix
26602 export TEST_TAR_FORMAT
26603 TAR_OPTIONS="-H posix"
26607 genfile -l 64 -f file1
26611 tar -c -f archive --remove-files file1 file2 file3 file4
26612 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26614 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26615 at_status=$? at_failed=false
26617 at_fn_diff_devnull "$at_stderr" || at_failed=:
26618 echo >>"$at_stdout"; $as_echo "file1
26622 $at_diff - "$at_stdout" || at_failed=:
26623 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26624 $at_failed && at_fn_log_failure
26628 $as_echo "$at_srcdir/link02.at:35:
26631 TEST_TAR_FORMAT=gnu
26632 export TEST_TAR_FORMAT
26633 TAR_OPTIONS=\"-H gnu\"
26637 genfile -l 64 -f file1
26641 tar -c -f archive --remove-files file1 file2 file3 file4
26642 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26644 at_fn_check_prepare_notrace 'an embedded newline' "link02.at:35"
26648 TEST_TAR_FORMAT=gnu
26649 export TEST_TAR_FORMAT
26650 TAR_OPTIONS="-H gnu"
26654 genfile -l 64 -f file1
26658 tar -c -f archive --remove-files file1 file2 file3 file4
26659 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26662 at_status=$? at_failed=false
26664 at_fn_diff_devnull "$at_stderr" || at_failed=:
26665 echo >>"$at_stdout"; $as_echo "file1
26669 $at_diff - "$at_stdout" || at_failed=:
26670 at_fn_check_status 0 $at_status "$at_srcdir/link02.at:35"
26671 $at_failed && at_fn_log_failure
26678 $at_times_p && times >"$at_times_file"
26679 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26680 read at_status <"$at_status_file"
26683 at_fn_group_banner 108 'link03.at:24' \
26684 "working -l with --remove-files" " " 15
26686 test -f $XFAILFILE && at_xfail=yes
26688 $as_echo "108. $at_setup_line: testing $at_desc ..."
26698 $as_echo "$at_srcdir/link03.at:34:
26702 export TEST_TAR_FORMAT
26703 TAR_OPTIONS=\"-H v7\"
26708 genfile -l 64 -f file1
26714 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26716 genfile -l 64 -f file1
26722 tar -c -f archive.2 -l --remove-files file1 file2 file3
26723 echo testing archive.2
26724 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26726 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26731 export TEST_TAR_FORMAT
26732 TAR_OPTIONS="-H v7"
26737 genfile -l 64 -f file1
26743 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26745 genfile -l 64 -f file1
26751 tar -c -f archive.2 -l --remove-files file1 file2 file3
26752 echo testing archive.2
26753 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26756 at_status=$? at_failed=false
26758 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26760 $at_diff - "$at_stderr" || at_failed=:
26761 echo >>"$at_stdout"; $as_echo "archive.1
26767 $at_diff - "$at_stdout" || at_failed=:
26768 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26769 $at_failed && at_fn_log_failure
26773 $as_echo "$at_srcdir/link03.at:34:
26776 TEST_TAR_FORMAT=oldgnu
26777 export TEST_TAR_FORMAT
26778 TAR_OPTIONS=\"-H oldgnu\"
26783 genfile -l 64 -f file1
26789 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26791 genfile -l 64 -f file1
26797 tar -c -f archive.2 -l --remove-files file1 file2 file3
26798 echo testing archive.2
26799 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26801 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26805 TEST_TAR_FORMAT=oldgnu
26806 export TEST_TAR_FORMAT
26807 TAR_OPTIONS="-H oldgnu"
26812 genfile -l 64 -f file1
26818 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26820 genfile -l 64 -f file1
26826 tar -c -f archive.2 -l --remove-files file1 file2 file3
26827 echo testing archive.2
26828 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26830 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26831 at_status=$? at_failed=false
26833 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26835 $at_diff - "$at_stderr" || at_failed=:
26836 echo >>"$at_stdout"; $as_echo "archive.1
26842 $at_diff - "$at_stdout" || at_failed=:
26843 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26844 $at_failed && at_fn_log_failure
26848 $as_echo "$at_srcdir/link03.at:34:
26851 TEST_TAR_FORMAT=ustar
26852 export TEST_TAR_FORMAT
26853 TAR_OPTIONS=\"-H ustar\"
26858 genfile -l 64 -f file1
26864 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26866 genfile -l 64 -f file1
26872 tar -c -f archive.2 -l --remove-files file1 file2 file3
26873 echo testing archive.2
26874 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26876 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26880 TEST_TAR_FORMAT=ustar
26881 export TEST_TAR_FORMAT
26882 TAR_OPTIONS="-H ustar"
26887 genfile -l 64 -f file1
26893 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26895 genfile -l 64 -f file1
26901 tar -c -f archive.2 -l --remove-files file1 file2 file3
26902 echo testing archive.2
26903 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26905 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26906 at_status=$? at_failed=false
26908 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26910 $at_diff - "$at_stderr" || at_failed=:
26911 echo >>"$at_stdout"; $as_echo "archive.1
26917 $at_diff - "$at_stdout" || at_failed=:
26918 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26919 $at_failed && at_fn_log_failure
26923 $as_echo "$at_srcdir/link03.at:34:
26926 TEST_TAR_FORMAT=posix
26927 export TEST_TAR_FORMAT
26928 TAR_OPTIONS=\"-H posix\"
26933 genfile -l 64 -f file1
26939 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26941 genfile -l 64 -f file1
26947 tar -c -f archive.2 -l --remove-files file1 file2 file3
26948 echo testing archive.2
26949 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26951 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
26955 TEST_TAR_FORMAT=posix
26956 export TEST_TAR_FORMAT
26957 TAR_OPTIONS="-H posix"
26962 genfile -l 64 -f file1
26968 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
26970 genfile -l 64 -f file1
26976 tar -c -f archive.2 -l --remove-files file1 file2 file3
26977 echo testing archive.2
26978 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
26980 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26981 at_status=$? at_failed=false
26983 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
26985 $at_diff - "$at_stderr" || at_failed=:
26986 echo >>"$at_stdout"; $as_echo "archive.1
26992 $at_diff - "$at_stdout" || at_failed=:
26993 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
26994 $at_failed && at_fn_log_failure
26998 $as_echo "$at_srcdir/link03.at:34:
27001 TEST_TAR_FORMAT=gnu
27002 export TEST_TAR_FORMAT
27003 TAR_OPTIONS=\"-H gnu\"
27008 genfile -l 64 -f file1
27014 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27016 genfile -l 64 -f file1
27022 tar -c -f archive.2 -l --remove-files file1 file2 file3
27023 echo testing archive.2
27024 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27026 at_fn_check_prepare_notrace 'an embedded newline' "link03.at:34"
27030 TEST_TAR_FORMAT=gnu
27031 export TEST_TAR_FORMAT
27032 TAR_OPTIONS="-H gnu"
27037 genfile -l 64 -f file1
27043 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27045 genfile -l 64 -f file1
27051 tar -c -f archive.2 -l --remove-files file1 file2 file3
27052 echo testing archive.2
27053 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27056 at_status=$? at_failed=false
27058 echo >>"$at_stderr"; $as_echo "tar: Missing links to 'file1'.
27060 $at_diff - "$at_stderr" || at_failed=:
27061 echo >>"$at_stdout"; $as_echo "archive.1
27067 $at_diff - "$at_stdout" || at_failed=:
27068 at_fn_check_status 0 $at_status "$at_srcdir/link03.at:34"
27069 $at_failed && at_fn_log_failure
27077 $at_times_p && times >"$at_times_file"
27078 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27079 read at_status <"$at_status_file"
27082 at_fn_group_banner 109 'link04.at:29' \
27083 "link count is 1 but multiple occurrences" " " 15
27085 test -f $XFAILFILE && at_xfail=yes
27087 $as_echo "109. $at_setup_line: testing $at_desc ..."
27095 $as_echo "$at_srcdir/link04.at:32:
27099 export TEST_TAR_FORMAT
27100 TAR_OPTIONS=\"-H v7\"
27105 echo TEST > dir/file
27106 ln -s file dir/symlink || exit 77
27108 tar cf archive dir dir
27109 tar tvf archive | sed '
27110 s,.*[0-9] dir/,dir/,
27115 tar chf archive dir
27116 tar tvf archive | sed '
27117 s,.*[0-9] dir/,dir/,
27122 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
27127 export TEST_TAR_FORMAT
27128 TAR_OPTIONS="-H v7"
27133 echo TEST > dir/file
27134 ln -s file dir/symlink || exit 77
27136 tar cf archive dir dir
27137 tar tvf archive | sed '
27138 s,.*[0-9] dir/,dir/,
27143 tar chf archive dir
27144 tar tvf archive | sed '
27145 s,.*[0-9] dir/,dir/,
27150 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27151 at_status=$? at_failed=false
27153 at_fn_diff_devnull "$at_stderr" || at_failed=:
27154 echo >>"$at_stdout"; $as_echo "dir/
27157 dir/file link to dir/file
27158 dir/symlink -> file
27159 dir/symlink link to dir/symlink
27163 dir/FOO link to dir/FOO
27165 $at_diff - "$at_stdout" || at_failed=:
27166 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27167 $at_failed && at_fn_log_failure
27171 $as_echo "$at_srcdir/link04.at:32:
27174 TEST_TAR_FORMAT=oldgnu
27175 export TEST_TAR_FORMAT
27176 TAR_OPTIONS=\"-H oldgnu\"
27181 echo TEST > dir/file
27182 ln -s file dir/symlink || exit 77
27184 tar cf archive dir dir
27185 tar tvf archive | sed '
27186 s,.*[0-9] dir/,dir/,
27191 tar chf archive dir
27192 tar tvf archive | sed '
27193 s,.*[0-9] dir/,dir/,
27198 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
27202 TEST_TAR_FORMAT=oldgnu
27203 export TEST_TAR_FORMAT
27204 TAR_OPTIONS="-H oldgnu"
27209 echo TEST > dir/file
27210 ln -s file dir/symlink || exit 77
27212 tar cf archive dir dir
27213 tar tvf archive | sed '
27214 s,.*[0-9] dir/,dir/,
27219 tar chf archive dir
27220 tar tvf archive | sed '
27221 s,.*[0-9] dir/,dir/,
27226 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27227 at_status=$? at_failed=false
27229 at_fn_diff_devnull "$at_stderr" || at_failed=:
27230 echo >>"$at_stdout"; $as_echo "dir/
27233 dir/file link to dir/file
27234 dir/symlink -> file
27235 dir/symlink link to dir/symlink
27239 dir/FOO link to dir/FOO
27241 $at_diff - "$at_stdout" || at_failed=:
27242 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27243 $at_failed && at_fn_log_failure
27247 $as_echo "$at_srcdir/link04.at:32:
27250 TEST_TAR_FORMAT=ustar
27251 export TEST_TAR_FORMAT
27252 TAR_OPTIONS=\"-H ustar\"
27257 echo TEST > dir/file
27258 ln -s file dir/symlink || exit 77
27260 tar cf archive dir dir
27261 tar tvf archive | sed '
27262 s,.*[0-9] dir/,dir/,
27267 tar chf archive dir
27268 tar tvf archive | sed '
27269 s,.*[0-9] dir/,dir/,
27274 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
27278 TEST_TAR_FORMAT=ustar
27279 export TEST_TAR_FORMAT
27280 TAR_OPTIONS="-H ustar"
27285 echo TEST > dir/file
27286 ln -s file dir/symlink || exit 77
27288 tar cf archive dir dir
27289 tar tvf archive | sed '
27290 s,.*[0-9] dir/,dir/,
27295 tar chf archive dir
27296 tar tvf archive | sed '
27297 s,.*[0-9] dir/,dir/,
27302 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27303 at_status=$? at_failed=false
27305 at_fn_diff_devnull "$at_stderr" || at_failed=:
27306 echo >>"$at_stdout"; $as_echo "dir/
27309 dir/file link to dir/file
27310 dir/symlink -> file
27311 dir/symlink link to dir/symlink
27315 dir/FOO link to dir/FOO
27317 $at_diff - "$at_stdout" || at_failed=:
27318 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27319 $at_failed && at_fn_log_failure
27323 $as_echo "$at_srcdir/link04.at:32:
27326 TEST_TAR_FORMAT=posix
27327 export TEST_TAR_FORMAT
27328 TAR_OPTIONS=\"-H posix\"
27333 echo TEST > dir/file
27334 ln -s file dir/symlink || exit 77
27336 tar cf archive dir dir
27337 tar tvf archive | sed '
27338 s,.*[0-9] dir/,dir/,
27343 tar chf archive dir
27344 tar tvf archive | sed '
27345 s,.*[0-9] dir/,dir/,
27350 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
27354 TEST_TAR_FORMAT=posix
27355 export TEST_TAR_FORMAT
27356 TAR_OPTIONS="-H posix"
27361 echo TEST > dir/file
27362 ln -s file dir/symlink || exit 77
27364 tar cf archive dir dir
27365 tar tvf archive | sed '
27366 s,.*[0-9] dir/,dir/,
27371 tar chf archive dir
27372 tar tvf archive | sed '
27373 s,.*[0-9] dir/,dir/,
27378 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27379 at_status=$? at_failed=false
27381 at_fn_diff_devnull "$at_stderr" || at_failed=:
27382 echo >>"$at_stdout"; $as_echo "dir/
27385 dir/file link to dir/file
27386 dir/symlink -> file
27387 dir/symlink link to dir/symlink
27391 dir/FOO link to dir/FOO
27393 $at_diff - "$at_stdout" || at_failed=:
27394 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27395 $at_failed && at_fn_log_failure
27399 $as_echo "$at_srcdir/link04.at:32:
27402 TEST_TAR_FORMAT=gnu
27403 export TEST_TAR_FORMAT
27404 TAR_OPTIONS=\"-H gnu\"
27409 echo TEST > dir/file
27410 ln -s file dir/symlink || exit 77
27412 tar cf archive dir dir
27413 tar tvf archive | sed '
27414 s,.*[0-9] dir/,dir/,
27419 tar chf archive dir
27420 tar tvf archive | sed '
27421 s,.*[0-9] dir/,dir/,
27426 at_fn_check_prepare_notrace 'an embedded newline' "link04.at:32"
27430 TEST_TAR_FORMAT=gnu
27431 export TEST_TAR_FORMAT
27432 TAR_OPTIONS="-H gnu"
27437 echo TEST > dir/file
27438 ln -s file dir/symlink || exit 77
27440 tar cf archive dir dir
27441 tar tvf archive | sed '
27442 s,.*[0-9] dir/,dir/,
27447 tar chf archive dir
27448 tar tvf archive | sed '
27449 s,.*[0-9] dir/,dir/,
27454 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27455 at_status=$? at_failed=false
27457 at_fn_diff_devnull "$at_stderr" || at_failed=:
27458 echo >>"$at_stdout"; $as_echo "dir/
27461 dir/file link to dir/file
27462 dir/symlink -> file
27463 dir/symlink link to dir/symlink
27467 dir/FOO link to dir/FOO
27469 $at_diff - "$at_stdout" || at_failed=:
27470 at_fn_check_status 0 $at_status "$at_srcdir/link04.at:32"
27471 $at_failed && at_fn_log_failure
27478 $at_times_p && times >"$at_times_file"
27479 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27480 read at_status <"$at_status_file"
27483 at_fn_group_banner 110 'longv7.at:24' \
27484 "long names in V7 archives" " " 16
27486 test -f $XFAILFILE && at_xfail=yes
27488 $as_echo "110. $at_setup_line: testing $at_desc ..."
27499 $as_echo "$at_srcdir/longv7.at:30:
27503 export TEST_TAR_FORMAT
27504 TAR_OPTIONS=\"-H v7\"
27508 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
27509 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
27511 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
27515 at_fn_check_prepare_notrace 'an embedded newline' "longv7.at:30"
27520 export TEST_TAR_FORMAT
27521 TAR_OPTIONS="-H v7"
27525 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
27526 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
27528 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
27532 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27533 at_status=$? at_failed=false
27535 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
27536 tar: Exiting with failure status due to previous errors
27538 $at_diff - "$at_stderr" || at_failed=:
27539 echo >>"$at_stdout"; $as_echo "separator
27540 this_is_a_very_long_name_for_a_directory_which_causes_problems/
27542 $at_diff - "$at_stdout" || at_failed=:
27543 at_fn_check_status 0 $at_status "$at_srcdir/longv7.at:30"
27544 $at_failed && at_fn_log_failure
27553 $at_times_p && times >"$at_times_file"
27554 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27555 read at_status <"$at_status_file"
27558 at_fn_group_banner 111 'long01.at:28' \
27559 "long file names divisible by block size" " " 16
27561 test -f $XFAILFILE && at_xfail=yes
27563 $as_echo "111. $at_setup_line: testing $at_desc ..."
27575 $as_echo "$at_srcdir/long01.at:36:
27578 TEST_TAR_FORMAT=gnu
27579 export TEST_TAR_FORMAT
27580 TAR_OPTIONS=\"-H gnu\"
27585 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
27586 echo test > endfile
27588 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
27590 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
27594 TEST_TAR_FORMAT=gnu
27595 export TEST_TAR_FORMAT
27596 TAR_OPTIONS="-H gnu"
27601 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
27602 echo test > endfile
27604 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
27606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27607 at_status=$? at_failed=false
27609 at_fn_diff_devnull "$at_stderr" || at_failed=:
27610 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
27613 $at_diff - "$at_stdout" || at_failed=:
27614 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
27615 $at_failed && at_fn_log_failure
27619 $as_echo "$at_srcdir/long01.at:36:
27622 TEST_TAR_FORMAT=oldgnu
27623 export TEST_TAR_FORMAT
27624 TAR_OPTIONS=\"-H oldgnu\"
27629 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
27630 echo test > endfile
27632 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
27634 at_fn_check_prepare_notrace 'an embedded newline' "long01.at:36"
27638 TEST_TAR_FORMAT=oldgnu
27639 export TEST_TAR_FORMAT
27640 TAR_OPTIONS="-H oldgnu"
27645 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
27646 echo test > endfile
27648 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
27650 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27651 at_status=$? at_failed=false
27653 at_fn_diff_devnull "$at_stderr" || at_failed=:
27654 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
27657 $at_diff - "$at_stdout" || at_failed=:
27658 at_fn_check_status 0 $at_status "$at_srcdir/long01.at:36"
27659 $at_failed && at_fn_log_failure
27668 $at_times_p && times >"$at_times_file"
27669 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27670 read at_status <"$at_status_file"
27673 at_fn_group_banner 112 'lustar01.at:21' \
27674 "ustar: unsplittable file name" " " 16
27676 test -f $XFAILFILE && at_xfail=yes
27678 $as_echo "112. $at_setup_line: testing $at_desc ..."
27688 $as_echo "$at_srcdir/lustar01.at:27:
27691 TEST_TAR_FORMAT=ustar
27692 export TEST_TAR_FORMAT
27693 TAR_OPTIONS=\"-H ustar\"
27697 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
27698 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
27700 at_fn_check_prepare_notrace 'an embedded newline' "lustar01.at:27"
27704 TEST_TAR_FORMAT=ustar
27705 export TEST_TAR_FORMAT
27706 TAR_OPTIONS="-H ustar"
27710 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
27711 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
27713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27714 at_status=$? at_failed=false
27716 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
27717 tar: Exiting with failure status due to previous errors
27719 $at_diff - "$at_stderr" || at_failed=:
27720 at_fn_diff_devnull "$at_stdout" || at_failed=:
27721 at_fn_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
27722 $at_failed && at_fn_log_failure
27730 $at_times_p && times >"$at_times_file"
27731 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27732 read at_status <"$at_status_file"
27735 at_fn_group_banner 113 'lustar02.at:21' \
27736 "ustar: unsplittable path name" " " 16
27738 test -f $XFAILFILE && at_xfail=yes
27740 $as_echo "113. $at_setup_line: testing $at_desc ..."
27754 $as_echo "$at_srcdir/lustar02.at:32:
27757 TEST_TAR_FORMAT=ustar
27758 export TEST_TAR_FORMAT
27759 TAR_OPTIONS=\"-H ustar\"
27764 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
27765 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
27767 at_fn_check_prepare_notrace 'an embedded newline' "lustar02.at:32"
27771 TEST_TAR_FORMAT=ustar
27772 export TEST_TAR_FORMAT
27773 TAR_OPTIONS="-H ustar"
27778 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
27779 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
27781 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27782 at_status=$? at_failed=false
27784 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
27785 tar: Exiting with failure status due to previous errors
27787 $at_diff - "$at_stderr" || at_failed=:
27788 at_fn_diff_devnull "$at_stdout" || at_failed=:
27789 at_fn_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
27790 $at_failed && at_fn_log_failure
27801 $at_times_p && times >"$at_times_file"
27802 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27803 read at_status <"$at_status_file"
27806 at_fn_group_banner 114 'lustar03.at:21' \
27807 "ustar: splitting long names" " " 16
27809 test -f $XFAILFILE && at_xfail=yes
27811 $as_echo "114. $at_setup_line: testing $at_desc ..."
27823 $as_echo "$at_srcdir/lustar03.at:29:
27826 TEST_TAR_FORMAT=ustar
27827 export TEST_TAR_FORMAT
27828 TAR_OPTIONS=\"-H ustar\"
27833 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
27834 echo \"Create archive\"
27835 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
27836 echo \"List archive\"
27838 at_fn_check_prepare_notrace 'an embedded newline' "lustar03.at:29"
27842 TEST_TAR_FORMAT=ustar
27843 export TEST_TAR_FORMAT
27844 TAR_OPTIONS="-H ustar"
27849 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
27850 echo "Create archive"
27851 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
27852 echo "List archive"
27854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27855 at_status=$? at_failed=false
27857 at_fn_diff_devnull "$at_stderr" || at_failed=:
27858 echo >>"$at_stdout"; $as_echo "Create archive
27860 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/
27861 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
27863 $at_diff - "$at_stdout" || at_failed=:
27864 at_fn_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
27865 $at_failed && at_fn_log_failure
27874 $at_times_p && times >"$at_times_file"
27875 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27876 read at_status <"$at_status_file"
27879 at_fn_group_banner 115 'old.at:23' \
27880 "old archives" " " 16
27883 $as_echo "115. $at_setup_line: testing $at_desc ..."
27890 $as_echo "$at_srcdir/old.at:27:
27892 tar cfvo archive directory || exit 1
27895 at_fn_check_prepare_notrace 'an embedded newline' "old.at:27"
27898 tar cfvo archive directory || exit 1
27901 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27902 at_status=$? at_failed=false
27904 at_fn_diff_devnull "$at_stderr" || at_failed=:
27905 echo >>"$at_stdout"; $as_echo "directory/
27908 $at_diff - "$at_stdout" || at_failed=:
27909 at_fn_check_status 0 $at_status "$at_srcdir/old.at:27"
27910 $at_failed && at_fn_log_failure
27915 $at_times_p && times >"$at_times_file"
27916 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27917 read at_status <"$at_status_file"
27920 at_fn_group_banner 116 'time01.at:20' \
27921 "time: tricky time stamps" " " 16
27923 test -f $XFAILFILE && at_xfail=yes
27925 $as_echo "116. $at_setup_line: testing $at_desc ..."
27933 $as_echo "$at_srcdir/time01.at:23:
27936 TEST_TAR_FORMAT=pax
27937 export TEST_TAR_FORMAT
27938 TAR_OPTIONS=\"-H pax\"
27945 # Test files with time stamps that are near common sources of error,
27946 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
27947 # Use GNU-style @ notation for very large time stamps, since they
27948 # typically don't render into years correctly due to int overflow.
27950 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \\
27951 0000-01-01T00:00:00 0000-01-01T00:00:01 \\
27952 0000-01-02T00:00:00 \\
27953 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \\
27954 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \\
27955 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \\
27956 1901-12-14T20:45:51 \\
27957 1969-12-31T23:59:58 1969-12-31T23:59:59 \\
27958 1970-01-01T00:00:00 1970-01-01T00:00:01 \\
27959 2038-01-18T03:14:07 \\
27960 2038-01-19T03:14:07 2038-01-19T03:14:08 \\
27961 2106-02-07T06:28:15 2106-02-07T06:28:16 \\
27962 2242-03-16T12:56:31 2242-03-16T12:56:32 \\
27963 9999-12-31T23:59:58 9999-12-31T23:59:59 \\
27964 @9223372036854775807 @9223372036854775808
27966 # Skip a time stamp \$s if it's out of range for this platform,
27967 # of if it uses a notation that this platform does not recognize.
27968 touch -d \$s dir/f\$s >/dev/null 2>&1 || continue
27970 # Likewise for \$s.1. If \$s is the most negative time stamp and
27971 # time stamps are signed, then \$s.1 is out of range.
27972 touch -d \$s.1 dir/f\$s.\$ns >/dev/null 2>&1 || continue
27974 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \\
27975 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
27977 touch -d \$s.\$frac dir/f\$s.\$frac
27981 tar -c -f archive.tar dir
27982 tar -d -f archive.tar dir
27984 at_fn_check_prepare_notrace 'an embedded newline' "time01.at:23"
27988 TEST_TAR_FORMAT=pax
27989 export TEST_TAR_FORMAT
27990 TAR_OPTIONS="-H pax"
27997 # Test files with time stamps that are near common sources of error,
27998 # typically near powers of 2 (for seconds) or near 0, 1970, or 9999 (years).
27999 # Use GNU-style @ notation for very large time stamps, since they
28000 # typically don't render into years correctly due to int overflow.
28002 @-9223372036854775809 @-9223372036854775808 @-9223372036854775807 \
28003 0000-01-01T00:00:00 0000-01-01T00:00:01 \
28004 0000-01-02T00:00:00 \
28005 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 \
28006 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 \
28007 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 \
28008 1901-12-14T20:45:51 \
28009 1969-12-31T23:59:58 1969-12-31T23:59:59 \
28010 1970-01-01T00:00:00 1970-01-01T00:00:01 \
28011 2038-01-18T03:14:07 \
28012 2038-01-19T03:14:07 2038-01-19T03:14:08 \
28013 2106-02-07T06:28:15 2106-02-07T06:28:16 \
28014 2242-03-16T12:56:31 2242-03-16T12:56:32 \
28015 9999-12-31T23:59:58 9999-12-31T23:59:59 \
28016 @9223372036854775807 @9223372036854775808
28018 # Skip a time stamp $s if it's out of range for this platform,
28019 # of if it uses a notation that this platform does not recognize.
28020 touch -d $s dir/f$s >/dev/null 2>&1 || continue
28022 # Likewise for $s.1. If $s is the most negative time stamp and
28023 # time stamps are signed, then $s.1 is out of range.
28024 touch -d $s.1 dir/f$s.$ns >/dev/null 2>&1 || continue
28026 for frac in 01 001 00001 000001 0000001 00000001 000000001 0000000001 \
28027 9 99 999 99999 999999 9999999 99999999 999999999 9999999999
28029 touch -d $s.$frac dir/f$s.$frac
28033 tar -c -f archive.tar dir
28034 tar -d -f archive.tar dir
28036 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28037 at_status=$? at_failed=false
28039 at_fn_diff_devnull "$at_stderr" || at_failed=:
28040 at_fn_diff_devnull "$at_stdout" || at_failed=:
28041 at_fn_check_status 0 $at_status "$at_srcdir/time01.at:23"
28042 $at_failed && at_fn_log_failure
28049 $at_times_p && times >"$at_times_file"
28050 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28051 read at_status <"$at_status_file"
28054 at_fn_group_banner 117 'multiv01.at:24' \
28055 "multivolume dumps from pipes" " " 17
28057 test -f $XFAILFILE && at_xfail=yes
28059 $as_echo "117. $at_setup_line: testing $at_desc ..."
28064 # Fixme: should be configurable
28065 # TRUSS=truss -o /tmp/tr
28071 $as_echo "$at_srcdir/multiv01.at:31:
28074 TEST_TAR_FORMAT=gnu
28075 export TEST_TAR_FORMAT
28076 TAR_OPTIONS=\"-H gnu\"
28081 genfile --length 7168 --file file1
28083 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
28084 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
28085 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28086 for count in 2 3 4 5 6 7 8 ; do
28087 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28091 if test \$TEST_TAR_FORMAT = pax; then
28097 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
28098 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28100 mkdir extract-dir-pipe
28101 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28102 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
28103 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
28104 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
28106 cmp file1 extract-dir-pipe/file1
28107 cmp file2 extract-dir-pipe/file2
28109 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
28113 TEST_TAR_FORMAT=gnu
28114 export TEST_TAR_FORMAT
28115 TAR_OPTIONS="-H gnu"
28120 genfile --length 7168 --file file1
28122 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
28123 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
28124 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28125 for count in 2 3 4 5 6 7 8 ; do
28126 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28130 if test $TEST_TAR_FORMAT = pax; then
28136 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
28137 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28139 mkdir extract-dir-pipe
28140 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28141 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
28142 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
28143 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
28145 cmp file1 extract-dir-pipe/file1
28146 cmp file2 extract-dir-pipe/file2
28148 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28149 at_status=$? at_failed=false
28151 at_fn_diff_devnull "$at_stderr" || at_failed=:
28152 at_fn_diff_devnull "$at_stdout" || at_failed=:
28153 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
28154 $at_failed && at_fn_log_failure
28158 $as_echo "$at_srcdir/multiv01.at:31:
28161 TEST_TAR_FORMAT=oldgnu
28162 export TEST_TAR_FORMAT
28163 TAR_OPTIONS=\"-H oldgnu\"
28168 genfile --length 7168 --file file1
28170 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
28171 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
28172 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28173 for count in 2 3 4 5 6 7 8 ; do
28174 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28178 if test \$TEST_TAR_FORMAT = pax; then
28184 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
28185 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28187 mkdir extract-dir-pipe
28188 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28189 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
28190 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
28191 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
28193 cmp file1 extract-dir-pipe/file1
28194 cmp file2 extract-dir-pipe/file2
28196 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
28200 TEST_TAR_FORMAT=oldgnu
28201 export TEST_TAR_FORMAT
28202 TAR_OPTIONS="-H oldgnu"
28207 genfile --length 7168 --file file1
28209 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
28210 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
28211 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28212 for count in 2 3 4 5 6 7 8 ; do
28213 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28217 if test $TEST_TAR_FORMAT = pax; then
28223 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
28224 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28226 mkdir extract-dir-pipe
28227 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28228 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
28229 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
28230 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
28232 cmp file1 extract-dir-pipe/file1
28233 cmp file2 extract-dir-pipe/file2
28235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28236 at_status=$? at_failed=false
28238 at_fn_diff_devnull "$at_stderr" || at_failed=:
28239 at_fn_diff_devnull "$at_stdout" || at_failed=:
28240 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
28241 $at_failed && at_fn_log_failure
28245 $as_echo "$at_srcdir/multiv01.at:31:
28248 TEST_TAR_FORMAT=pax
28249 export TEST_TAR_FORMAT
28250 TAR_OPTIONS=\"-H pax\"
28255 genfile --length 7168 --file file1
28257 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
28258 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
28259 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28260 for count in 2 3 4 5 6 7 8 ; do
28261 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28265 if test \$TEST_TAR_FORMAT = pax; then
28271 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
28272 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28274 mkdir extract-dir-pipe
28275 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28276 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
28277 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
28278 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
28280 cmp file1 extract-dir-pipe/file1
28281 cmp file2 extract-dir-pipe/file2
28283 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "multiv01.at:31"
28287 TEST_TAR_FORMAT=pax
28288 export TEST_TAR_FORMAT
28289 TAR_OPTIONS="-H pax"
28294 genfile --length 7168 --file file1
28296 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
28297 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
28298 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28299 for count in 2 3 4 5 6 7 8 ; do
28300 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28304 if test $TEST_TAR_FORMAT = pax; then
28310 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
28311 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28313 mkdir extract-dir-pipe
28314 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28315 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
28316 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
28317 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
28319 cmp file1 extract-dir-pipe/file1
28320 cmp file2 extract-dir-pipe/file2
28322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28323 at_status=$? at_failed=false
28325 at_fn_diff_devnull "$at_stderr" || at_failed=:
28326 at_fn_diff_devnull "$at_stdout" || at_failed=:
28327 at_fn_check_status 0 $at_status "$at_srcdir/multiv01.at:31"
28328 $at_failed && at_fn_log_failure
28335 $at_times_p && times >"$at_times_file"
28336 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28337 read at_status <"$at_status_file"
28340 at_fn_group_banner 118 'multiv02.at:28' \
28341 "skipping a straddling member" " " 17
28343 test -f $XFAILFILE && at_xfail=yes
28345 $as_echo "118. $at_setup_line: testing $at_desc ..."
28353 $as_echo "$at_srcdir/multiv02.at:31:
28356 TEST_TAR_FORMAT=gnu
28357 export TEST_TAR_FORMAT
28358 TAR_OPTIONS=\"-H gnu\"
28362 genfile --length 10240 --file en
28363 genfile --length 20000 --file to
28364 genfile --length 20000 --file tre
28365 genfile --length 10240 --file fire
28369 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28371 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28373 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
28377 TEST_TAR_FORMAT=gnu
28378 export TEST_TAR_FORMAT
28379 TAR_OPTIONS="-H gnu"
28383 genfile --length 10240 --file en
28384 genfile --length 20000 --file to
28385 genfile --length 20000 --file tre
28386 genfile --length 10240 --file fire
28390 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28392 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28394 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28395 at_status=$? at_failed=false
28397 at_fn_diff_devnull "$at_stderr" || at_failed=:
28398 echo >>"$at_stdout"; $as_echo "separator
28401 $at_diff - "$at_stdout" || at_failed=:
28402 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
28403 $at_failed && at_fn_log_failure
28407 $as_echo "$at_srcdir/multiv02.at:31:
28410 TEST_TAR_FORMAT=oldgnu
28411 export TEST_TAR_FORMAT
28412 TAR_OPTIONS=\"-H oldgnu\"
28416 genfile --length 10240 --file en
28417 genfile --length 20000 --file to
28418 genfile --length 20000 --file tre
28419 genfile --length 10240 --file fire
28423 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28425 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28427 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
28431 TEST_TAR_FORMAT=oldgnu
28432 export TEST_TAR_FORMAT
28433 TAR_OPTIONS="-H oldgnu"
28437 genfile --length 10240 --file en
28438 genfile --length 20000 --file to
28439 genfile --length 20000 --file tre
28440 genfile --length 10240 --file fire
28444 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28446 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28448 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28449 at_status=$? at_failed=false
28451 at_fn_diff_devnull "$at_stderr" || at_failed=:
28452 echo >>"$at_stdout"; $as_echo "separator
28455 $at_diff - "$at_stdout" || at_failed=:
28456 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
28457 $at_failed && at_fn_log_failure
28461 $as_echo "$at_srcdir/multiv02.at:31:
28464 TEST_TAR_FORMAT=pax
28465 export TEST_TAR_FORMAT
28466 TAR_OPTIONS=\"-H pax\"
28470 genfile --length 10240 --file en
28471 genfile --length 20000 --file to
28472 genfile --length 20000 --file tre
28473 genfile --length 10240 --file fire
28477 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28479 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28481 at_fn_check_prepare_notrace 'an embedded newline' "multiv02.at:31"
28485 TEST_TAR_FORMAT=pax
28486 export TEST_TAR_FORMAT
28487 TAR_OPTIONS="-H pax"
28491 genfile --length 10240 --file en
28492 genfile --length 20000 --file to
28493 genfile --length 20000 --file tre
28494 genfile --length 10240 --file fire
28498 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
28500 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
28502 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28503 at_status=$? at_failed=false
28505 at_fn_diff_devnull "$at_stderr" || at_failed=:
28506 echo >>"$at_stdout"; $as_echo "separator
28509 $at_diff - "$at_stdout" || at_failed=:
28510 at_fn_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
28511 $at_failed && at_fn_log_failure
28518 $at_times_p && times >"$at_times_file"
28519 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28520 read at_status <"$at_status_file"
28523 at_fn_group_banner 119 'multiv03.at:30' \
28524 "MV archive & long filenames" " " 17
28526 test -f $XFAILFILE && at_xfail=yes
28528 $as_echo "119. $at_setup_line: testing $at_desc ..."
28536 $as_echo "$at_srcdir/multiv03.at:33:
28539 TEST_TAR_FORMAT=gnu
28540 export TEST_TAR_FORMAT
28541 TAR_OPTIONS=\"-H gnu\"
28545 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
28546 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
28548 cat > ../experr <<EOF
28549 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
28550 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
28553 cat > ../expout <<EOF
28559 genfile --length 15360 --file \$AFILE
28563 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
28564 tar -tM -f arch.1 -f arch.2 || exit 1
28568 genfile --length 15360 --file \$BFILE
28569 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
28573 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28576 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
28580 TEST_TAR_FORMAT=gnu
28581 export TEST_TAR_FORMAT
28582 TAR_OPTIONS="-H gnu"
28586 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
28587 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
28589 cat > ../experr <<EOF
28590 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
28591 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
28594 cat > ../expout <<EOF
28600 genfile --length 15360 --file $AFILE
28604 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
28605 tar -tM -f arch.1 -f arch.2 || exit 1
28609 genfile --length 15360 --file $BFILE
28610 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
28614 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28617 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28618 at_status=$? at_failed=false
28620 $at_diff experr "$at_stderr" || at_failed=:
28621 $at_diff expout "$at_stdout" || at_failed=:
28622 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
28623 $at_failed && at_fn_log_failure
28627 $as_echo "$at_srcdir/multiv03.at:33:
28630 TEST_TAR_FORMAT=oldgnu
28631 export TEST_TAR_FORMAT
28632 TAR_OPTIONS=\"-H oldgnu\"
28636 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
28637 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
28639 cat > ../experr <<EOF
28640 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
28641 tar: '\$BFILE' is possibly continued on this volume: header contains truncated name
28644 cat > ../expout <<EOF
28650 genfile --length 15360 --file \$AFILE
28654 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
28655 tar -tM -f arch.1 -f arch.2 || exit 1
28659 genfile --length 15360 --file \$BFILE
28660 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
28664 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28667 at_fn_check_prepare_notrace 'a `...` command substitution' "multiv03.at:33"
28671 TEST_TAR_FORMAT=oldgnu
28672 export TEST_TAR_FORMAT
28673 TAR_OPTIONS="-H oldgnu"
28677 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
28678 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
28680 cat > ../experr <<EOF
28681 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
28682 tar: '$BFILE' is possibly continued on this volume: header contains truncated name
28685 cat > ../expout <<EOF
28691 genfile --length 15360 --file $AFILE
28695 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
28696 tar -tM -f arch.1 -f arch.2 || exit 1
28700 genfile --length 15360 --file $BFILE
28701 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
28705 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
28708 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28709 at_status=$? at_failed=false
28711 $at_diff experr "$at_stderr" || at_failed=:
28712 $at_diff expout "$at_stdout" || at_failed=:
28713 at_fn_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
28714 $at_failed && at_fn_log_failure
28721 $at_times_p && times >"$at_times_file"
28722 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28723 read at_status <"$at_status_file"
28726 at_fn_group_banner 120 'multiv04.at:36' \
28727 "split directory members in a MV archive" " " 17
28729 test -f $XFAILFILE && at_xfail=yes
28731 $as_echo "120. $at_setup_line: testing $at_desc ..."
28739 $as_echo "$at_srcdir/multiv04.at:39:
28742 TEST_TAR_FORMAT=gnu
28743 export TEST_TAR_FORMAT
28744 TAR_OPTIONS=\"-H gnu\"
28750 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
28756 tar --listed-incremental=list -c -f archive.a directory
28760 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28764 tar -MRt -f arc.1 -f arc.2)"
28765 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
28769 TEST_TAR_FORMAT=gnu
28770 export TEST_TAR_FORMAT
28771 TAR_OPTIONS="-H gnu"
28777 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
28783 tar --listed-incremental=list -c -f archive.a directory
28787 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28791 tar -MRt -f arc.1 -f arc.2)
28792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28793 at_status=$? at_failed=false
28795 at_fn_diff_devnull "$at_stderr" || at_failed=:
28796 echo >>"$at_stdout"; $as_echo "directory/
28798 block 0: directory/
28799 block 35: ** Block of NULs **
28801 $at_diff - "$at_stdout" || at_failed=:
28802 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
28803 $at_failed && at_fn_log_failure
28807 $as_echo "$at_srcdir/multiv04.at:39:
28810 TEST_TAR_FORMAT=oldgnu
28811 export TEST_TAR_FORMAT
28812 TAR_OPTIONS=\"-H oldgnu\"
28818 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
28824 tar --listed-incremental=list -c -f archive.a directory
28828 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28832 tar -MRt -f arc.1 -f arc.2)"
28833 at_fn_check_prepare_notrace 'an embedded newline' "multiv04.at:39"
28837 TEST_TAR_FORMAT=oldgnu
28838 export TEST_TAR_FORMAT
28839 TAR_OPTIONS="-H oldgnu"
28845 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
28851 tar --listed-incremental=list -c -f archive.a directory
28855 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
28859 tar -MRt -f arc.1 -f arc.2)
28860 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28861 at_status=$? at_failed=false
28863 at_fn_diff_devnull "$at_stderr" || at_failed=:
28864 echo >>"$at_stdout"; $as_echo "directory/
28866 block 0: directory/
28867 block 35: ** Block of NULs **
28869 $at_diff - "$at_stdout" || at_failed=:
28870 at_fn_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
28871 $at_failed && at_fn_log_failure
28878 $at_times_p && times >"$at_times_file"
28879 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28880 read at_status <"$at_status_file"
28883 at_fn_group_banner 121 'multiv05.at:26' \
28884 "Restoring after an out of sync volume" " " 17
28886 test -f $XFAILFILE && at_xfail=yes
28888 $as_echo "121. $at_setup_line: testing $at_desc ..."
28897 $as_echo "$at_srcdir/multiv05.at:30:
28900 TEST_TAR_FORMAT=gnu
28901 export TEST_TAR_FORMAT
28902 TAR_OPTIONS=\"-H gnu\"
28908 genfile --length 250k --file jeden
28909 genfile --length 250k --file dwa
28910 genfile --length 250k --file trzy
28911 genfile --length 250k --file cztery
28912 genfile --length 250k --file piec
28913 genfile --length 250k --file szesc
28916 echo Creating archive
28917 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
28920 mv jeden dwa trzy cztery piec szesc bak
28921 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
28923 cmp bak/jeden jeden || exit 1
28925 cmp bak/dwa dwa || exit 1
28927 cmp bak/trzy trzy || exit 1
28928 echo Diffing cztery
28929 cmp bak/cztery cztery || exit 1
28931 cmp bak/piec piec || exit 1
28933 cmp bak/szesc szesc || exit 1
28935 at_fn_check_prepare_notrace 'an embedded newline' "multiv05.at:30"
28939 TEST_TAR_FORMAT=gnu
28940 export TEST_TAR_FORMAT
28941 TAR_OPTIONS="-H gnu"
28947 genfile --length 250k --file jeden
28948 genfile --length 250k --file dwa
28949 genfile --length 250k --file trzy
28950 genfile --length 250k --file cztery
28951 genfile --length 250k --file piec
28952 genfile --length 250k --file szesc
28955 echo Creating archive
28956 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
28959 mv jeden dwa trzy cztery piec szesc bak
28960 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
28962 cmp bak/jeden jeden || exit 1
28964 cmp bak/dwa dwa || exit 1
28966 cmp bak/trzy trzy || exit 1
28967 echo Diffing cztery
28968 cmp bak/cztery cztery || exit 1
28970 cmp bak/piec piec || exit 1
28972 cmp bak/szesc szesc || exit 1
28974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28975 at_status=$? at_failed=false
28977 echo >>"$at_stderr"; $as_echo "tar: 'trzy' is not continued on this volume
28979 $at_diff - "$at_stderr" || at_failed=:
28980 echo >>"$at_stdout"; $as_echo "Creating archive
28995 $at_diff - "$at_stdout" || at_failed=:
28996 at_fn_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
28997 $at_failed && at_fn_log_failure
29005 $at_times_p && times >"$at_times_file"
29006 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29007 read at_status <"$at_status_file"
29010 at_fn_group_banner 122 'multiv06.at:27' \
29011 "Multivolumes with L=record_size" " " 17
29013 test -f $XFAILFILE && at_xfail=yes
29015 $as_echo "122. $at_setup_line: testing $at_desc ..."
29023 $as_echo "$at_srcdir/multiv06.at:30:
29026 TEST_TAR_FORMAT=gnu
29027 export TEST_TAR_FORMAT
29028 TAR_OPTIONS=\"-H gnu\"
29033 decho Creating file
29034 genfile --length 20139 --file file
29035 decho Creating archive
29036 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
29037 decho Testing archive
29038 tar -t -M -farc.1 -farc.2 -farc.3)"
29039 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
29043 TEST_TAR_FORMAT=gnu
29044 export TEST_TAR_FORMAT
29045 TAR_OPTIONS="-H gnu"
29050 decho Creating file
29051 genfile --length 20139 --file file
29052 decho Creating archive
29053 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
29054 decho Testing archive
29055 tar -t -M -farc.1 -farc.2 -farc.3)
29056 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29057 at_status=$? at_failed=false
29059 echo >>"$at_stderr"; $as_echo "Creating file
29063 $at_diff - "$at_stderr" || at_failed=:
29064 echo >>"$at_stdout"; $as_echo "Creating file
29069 $at_diff - "$at_stdout" || at_failed=:
29070 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
29071 $at_failed && at_fn_log_failure
29075 $as_echo "$at_srcdir/multiv06.at:30:
29078 TEST_TAR_FORMAT=pax
29079 export TEST_TAR_FORMAT
29080 TAR_OPTIONS=\"-H pax\"
29085 decho Creating file
29086 genfile --length 20139 --file file
29087 decho Creating archive
29088 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
29089 decho Testing archive
29090 tar -t -M -farc.1 -farc.2 -farc.3)"
29091 at_fn_check_prepare_notrace 'an embedded newline' "multiv06.at:30"
29095 TEST_TAR_FORMAT=pax
29096 export TEST_TAR_FORMAT
29097 TAR_OPTIONS="-H pax"
29102 decho Creating file
29103 genfile --length 20139 --file file
29104 decho Creating archive
29105 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
29106 decho Testing archive
29107 tar -t -M -farc.1 -farc.2 -farc.3)
29108 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29109 at_status=$? at_failed=false
29111 echo >>"$at_stderr"; $as_echo "Creating file
29115 $at_diff - "$at_stderr" || at_failed=:
29116 echo >>"$at_stdout"; $as_echo "Creating file
29121 $at_diff - "$at_stdout" || at_failed=:
29122 at_fn_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
29123 $at_failed && at_fn_log_failure
29130 $at_times_p && times >"$at_times_file"
29131 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29132 read at_status <"$at_status_file"
29135 at_fn_group_banner 123 'multiv07.at:28' \
29136 "volumes split at an extended header" " " 17
29138 test -f $XFAILFILE && at_xfail=yes
29140 $as_echo "123. $at_setup_line: testing $at_desc ..."
29146 $as_echo "$at_srcdir/multiv07.at:31:
29149 test -z \"\$TEST_DATA_DIR\" && exit 77
29150 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
29152 test -z \"\$TEST_DATA_DIR\" && exit 77
29153 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
29158 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
29160 at_fn_check_prepare_notrace 'an embedded newline' "multiv07.at:31"
29164 test -z "$TEST_DATA_DIR" && exit 77
29165 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
29167 test -z "$TEST_DATA_DIR" && exit 77
29168 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
29173 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
29175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29176 at_status=$? at_failed=false
29178 at_fn_diff_devnull "$at_stderr" || at_failed=:
29179 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
29183 $at_diff - "$at_stdout" || at_failed=:
29184 at_fn_check_status 0 $at_status "$at_srcdir/multiv07.at:31"
29185 $at_failed && at_fn_log_failure
29190 $at_times_p && times >"$at_times_file"
29191 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29192 read at_status <"$at_status_file"
29195 at_fn_group_banner 124 'multiv08.at:25' \
29196 "multivolume header creation" " " 17
29198 test -f $XFAILFILE && at_xfail=yes
29200 $as_echo "124. $at_setup_line: testing $at_desc ..."
29208 $as_echo "$at_srcdir/multiv08.at:28:
29211 TEST_TAR_FORMAT=gnu
29212 export TEST_TAR_FORMAT
29213 TAR_OPTIONS=\"-H gnu\"
29217 genfile --length 9472 --file a
29218 genfile --length 9984 --file b
29220 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
29222 tar -tMR -f A.tar -f B.tar -f C.tar
29224 at_fn_check_prepare_notrace 'an embedded newline' "multiv08.at:28"
29228 TEST_TAR_FORMAT=gnu
29229 export TEST_TAR_FORMAT
29230 TAR_OPTIONS="-H gnu"
29234 genfile --length 9472 --file a
29235 genfile --length 9984 --file b
29237 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
29239 tar -tMR -f A.tar -f B.tar -f C.tar
29241 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29242 at_status=$? at_failed=false
29244 echo >>"$at_stderr"; $as_echo "Creating
29247 $at_diff - "$at_stderr" || at_failed=:
29248 echo >>"$at_stdout"; $as_echo "Creating
29252 block 43: ** Block of NULs **
29254 $at_diff - "$at_stdout" || at_failed=:
29255 at_fn_check_status 0 $at_status "$at_srcdir/multiv08.at:28"
29256 $at_failed && at_fn_log_failure
29263 $at_times_p && times >"$at_times_file"
29264 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29265 read at_status <"$at_status_file"
29268 at_fn_group_banner 125 'owner.at:21' \
29269 "--owner and --group" " " 18
29271 test -f $XFAILFILE && at_xfail=yes
29273 $as_echo "125. $at_setup_line: testing $at_desc ..."
29281 $as_echo "$at_srcdir/owner.at:24:
29284 TEST_TAR_FORMAT=gnu
29285 export TEST_TAR_FORMAT
29286 TAR_OPTIONS=\"-H gnu\"
29294 tar --owner=\"Joe the Plumber:1234\" \\
29295 --group=\"Plumber's Union:5678\" \\
29297 --mode='u=rw,go=r' \\
29301 tar --numeric-owner -tvf arc
29303 at_fn_check_prepare_notrace 'an embedded newline' "owner.at:24"
29307 TEST_TAR_FORMAT=gnu
29308 export TEST_TAR_FORMAT
29309 TAR_OPTIONS="-H gnu"
29317 tar --owner="Joe the Plumber:1234" \
29318 --group="Plumber's Union:5678" \
29320 --mode='u=rw,go=r' \
29324 tar --numeric-owner -tvf arc
29326 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29327 at_status=$? at_failed=false
29329 at_fn_diff_devnull "$at_stderr" || at_failed=:
29330 echo >>"$at_stdout"; $as_echo "-rw-r--r-- Joe the Plumber/Plumber's Union 0 1970-01-01 00:00 a
29331 -rw-r--r-- 1234/5678 0 1970-01-01 00:00 a
29333 $at_diff - "$at_stdout" || at_failed=:
29334 at_fn_check_status 0 $at_status "$at_srcdir/owner.at:24"
29335 $at_failed && at_fn_log_failure
29342 $at_times_p && times >"$at_times_file"
29343 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29344 read at_status <"$at_status_file"
29347 at_fn_group_banner 126 'sparse01.at:21' \
29348 "sparse files" " " 19
29350 test -f $XFAILFILE && at_xfail=yes
29352 $as_echo "126. $at_setup_line: testing $at_desc ..."
29360 $as_echo "$at_srcdir/sparse01.at:24:
29363 TEST_TAR_FORMAT=posix
29364 export TEST_TAR_FORMAT
29365 TAR_OPTIONS=\"-H posix\"
29369 genfile --length 1000 -f begin
29370 genfile --length 1000 -f end
29371 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29372 tar -c -f archive --sparse begin sparsefile end || exit 1
29378 tar Cxf directory archive --warning=no-timestamp
29379 genfile --stat=name,size sparsefile
29380 cmp sparsefile directory/sparsefile
29382 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
29386 TEST_TAR_FORMAT=posix
29387 export TEST_TAR_FORMAT
29388 TAR_OPTIONS="-H posix"
29392 genfile --length 1000 -f begin
29393 genfile --length 1000 -f end
29394 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29395 tar -c -f archive --sparse begin sparsefile end || exit 1
29401 tar Cxf directory archive --warning=no-timestamp
29402 genfile --stat=name,size sparsefile
29403 cmp sparsefile directory/sparsefile
29405 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29406 at_status=$? at_failed=false
29408 at_fn_diff_devnull "$at_stderr" || at_failed=:
29409 echo stdout:; tee stdout <"$at_stdout"
29410 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29411 $at_failed && at_fn_log_failure
29415 $as_echo "$at_srcdir/sparse01.at:24:
29418 TEST_TAR_FORMAT=gnu
29419 export TEST_TAR_FORMAT
29420 TAR_OPTIONS=\"-H gnu\"
29424 genfile --length 1000 -f begin
29425 genfile --length 1000 -f end
29426 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29427 tar -c -f archive --sparse begin sparsefile end || exit 1
29433 tar Cxf directory archive --warning=no-timestamp
29434 genfile --stat=name,size sparsefile
29435 cmp sparsefile directory/sparsefile
29437 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
29441 TEST_TAR_FORMAT=gnu
29442 export TEST_TAR_FORMAT
29443 TAR_OPTIONS="-H gnu"
29447 genfile --length 1000 -f begin
29448 genfile --length 1000 -f end
29449 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29450 tar -c -f archive --sparse begin sparsefile end || exit 1
29456 tar Cxf directory archive --warning=no-timestamp
29457 genfile --stat=name,size sparsefile
29458 cmp sparsefile directory/sparsefile
29460 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29461 at_status=$? at_failed=false
29463 at_fn_diff_devnull "$at_stderr" || at_failed=:
29464 echo stdout:; tee stdout <"$at_stdout"
29465 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29466 $at_failed && at_fn_log_failure
29470 $as_echo "$at_srcdir/sparse01.at:24:
29473 TEST_TAR_FORMAT=oldgnu
29474 export TEST_TAR_FORMAT
29475 TAR_OPTIONS=\"-H oldgnu\"
29479 genfile --length 1000 -f begin
29480 genfile --length 1000 -f end
29481 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29482 tar -c -f archive --sparse begin sparsefile end || exit 1
29488 tar Cxf directory archive --warning=no-timestamp
29489 genfile --stat=name,size sparsefile
29490 cmp sparsefile directory/sparsefile
29492 at_fn_check_prepare_notrace 'an embedded newline' "sparse01.at:24"
29496 TEST_TAR_FORMAT=oldgnu
29497 export TEST_TAR_FORMAT
29498 TAR_OPTIONS="-H oldgnu"
29502 genfile --length 1000 -f begin
29503 genfile --length 1000 -f end
29504 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29505 tar -c -f archive --sparse begin sparsefile end || exit 1
29511 tar Cxf directory archive --warning=no-timestamp
29512 genfile --stat=name,size sparsefile
29513 cmp sparsefile directory/sparsefile
29515 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29516 at_status=$? at_failed=false
29518 at_fn_diff_devnull "$at_stderr" || at_failed=:
29519 echo stdout:; tee stdout <"$at_stdout"
29520 at_fn_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29521 $at_failed && at_fn_log_failure
29528 cat >stdout.re <<'_ATEOF'
29530 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
29531 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
29532 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
29534 sparsefile 10344448
29537 awk '{print NR " " $0}' stdout > $$.1
29538 awk '{print NR " " $0}' stdout.re | join - $$.1 |
29539 while read NUM RE LINE
29541 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29546 $at_times_p && times >"$at_times_file"
29547 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29548 read at_status <"$at_status_file"
29551 at_fn_group_banner 127 'sparse02.at:21' \
29552 "extracting sparse file over a pipe" " " 19
29554 test -f $XFAILFILE && at_xfail=yes
29556 $as_echo "127. $at_setup_line: testing $at_desc ..."
29561 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
29562 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
29563 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
29568 $as_echo "$at_srcdir/sparse02.at:28:
29571 TEST_TAR_FORMAT=posix
29572 export TEST_TAR_FORMAT
29573 TAR_OPTIONS=\"-H posix\"
29577 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29578 tar -c -f archive --sparse sparsefile || exit 1
29581 tar xfO archive | cat - > sparsecopy || exit 1
29582 cmp sparsefile sparsecopy
29584 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29588 TEST_TAR_FORMAT=posix
29589 export TEST_TAR_FORMAT
29590 TAR_OPTIONS="-H posix"
29594 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29595 tar -c -f archive --sparse sparsefile || exit 1
29598 tar xfO archive | cat - > sparsecopy || exit 1
29599 cmp sparsefile sparsecopy
29601 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29602 at_status=$? at_failed=false
29604 at_fn_diff_devnull "$at_stderr" || at_failed=:
29605 echo >>"$at_stdout"; $as_echo "separator
29607 $at_diff - "$at_stdout" || at_failed=:
29608 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29609 $at_failed && at_fn_log_failure
29613 $as_echo "$at_srcdir/sparse02.at:28:
29616 TEST_TAR_FORMAT=gnu
29617 export TEST_TAR_FORMAT
29618 TAR_OPTIONS=\"-H gnu\"
29622 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29623 tar -c -f archive --sparse sparsefile || exit 1
29626 tar xfO archive | cat - > sparsecopy || exit 1
29627 cmp sparsefile sparsecopy
29629 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29633 TEST_TAR_FORMAT=gnu
29634 export TEST_TAR_FORMAT
29635 TAR_OPTIONS="-H gnu"
29639 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29640 tar -c -f archive --sparse sparsefile || exit 1
29643 tar xfO archive | cat - > sparsecopy || exit 1
29644 cmp sparsefile sparsecopy
29646 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29647 at_status=$? at_failed=false
29649 at_fn_diff_devnull "$at_stderr" || at_failed=:
29650 echo >>"$at_stdout"; $as_echo "separator
29652 $at_diff - "$at_stdout" || at_failed=:
29653 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29654 $at_failed && at_fn_log_failure
29658 $as_echo "$at_srcdir/sparse02.at:28:
29661 TEST_TAR_FORMAT=oldgnu
29662 export TEST_TAR_FORMAT
29663 TAR_OPTIONS=\"-H oldgnu\"
29667 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29668 tar -c -f archive --sparse sparsefile || exit 1
29671 tar xfO archive | cat - > sparsecopy || exit 1
29672 cmp sparsefile sparsecopy
29674 at_fn_check_prepare_notrace 'an embedded newline' "sparse02.at:28"
29678 TEST_TAR_FORMAT=oldgnu
29679 export TEST_TAR_FORMAT
29680 TAR_OPTIONS="-H oldgnu"
29684 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29685 tar -c -f archive --sparse sparsefile || exit 1
29688 tar xfO archive | cat - > sparsecopy || exit 1
29689 cmp sparsefile sparsecopy
29691 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29692 at_status=$? at_failed=false
29694 at_fn_diff_devnull "$at_stderr" || at_failed=:
29695 echo >>"$at_stdout"; $as_echo "separator
29697 $at_diff - "$at_stdout" || at_failed=:
29698 at_fn_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
29699 $at_failed && at_fn_log_failure
29706 $at_times_p && times >"$at_times_file"
29707 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29708 read at_status <"$at_status_file"
29711 at_fn_group_banner 128 'sparse03.at:21' \
29712 "storing sparse files > 8G" " " 19
29714 test -f $XFAILFILE && at_xfail=yes
29716 $as_echo "128. $at_setup_line: testing $at_desc ..."
29721 # Tar 1.15.1 incorrectly computed sparse member size if the extended
29722 # PAX header contained size keyword.
29723 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
29724 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
29729 $as_echo "$at_srcdir/sparse03.at:29:
29732 TEST_TAR_FORMAT=posix
29733 export TEST_TAR_FORMAT
29734 TAR_OPTIONS=\"-H posix\"
29738 genfile --length 1000 --file begin
29739 genfile --length 1000 --file end
29740 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
29741 tar -c -f archive --sparse begin sparsefile end || exit 1
29747 tar Cxf directory archive
29748 genfile --stat=name,size sparsefile
29749 cmp sparsefile directory/sparsefile
29751 at_fn_check_prepare_notrace 'an embedded newline' "sparse03.at:29"
29755 TEST_TAR_FORMAT=posix
29756 export TEST_TAR_FORMAT
29757 TAR_OPTIONS="-H posix"
29761 genfile --length 1000 --file begin
29762 genfile --length 1000 --file end
29763 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
29764 tar -c -f archive --sparse begin sparsefile end || exit 1
29770 tar Cxf directory archive
29771 genfile --stat=name,size sparsefile
29772 cmp sparsefile directory/sparsefile
29774 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29775 at_status=$? at_failed=false
29777 at_fn_diff_devnull "$at_stderr" || at_failed=:
29778 echo stdout:; tee stdout <"$at_stdout"
29779 at_fn_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
29780 $at_failed && at_fn_log_failure
29787 cat >stdout.re <<'_ATEOF'
29789 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
29790 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
29791 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
29793 sparsefile 8589935104
29796 awk '{print NR " " $0}' stdout > $$.1
29797 awk '{print NR " " $0}' stdout.re | join - $$.1 |
29798 while read NUM RE LINE
29800 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29805 $at_times_p && times >"$at_times_file"
29806 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29807 read at_status <"$at_status_file"
29810 at_fn_group_banner 129 'sparse04.at:21' \
29811 "storing long sparse file names" " " 19
29813 test -f $XFAILFILE && at_xfail=yes
29815 $as_echo "129. $at_setup_line: testing $at_desc ..."
29820 # Description: Tar versions from 1.15.92 to 1.25 would incorrectly
29821 # store sparse file names longer than 100 characters in pax mode.
29822 # Namely, the 'path' keyword of the produced PAX header would contain the
29823 # crafted name of the header itself, instead of that of the file.
29824 # Reported by: Kamil Dudka <kdudka@redhat.com>
29825 # References: <201011250026.44908.kdudka@redhat.com>,
29826 # http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00099.html
29833 $as_echo "$at_srcdir/sparse04.at:35:
29836 TEST_TAR_FORMAT=pax
29837 export TEST_TAR_FORMAT
29838 TAR_OPTIONS=\"-H pax\"
29842 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
29843 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
29845 at_fn_check_prepare_notrace 'an embedded newline' "sparse04.at:35"
29849 TEST_TAR_FORMAT=pax
29850 export TEST_TAR_FORMAT
29851 TAR_OPTIONS="-H pax"
29855 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
29856 tar -f - -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar tf -
29858 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29859 at_status=$? at_failed=false
29861 at_fn_diff_devnull "$at_stderr" || at_failed=:
29862 echo >>"$at_stdout"; $as_echo "123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
29864 $at_diff - "$at_stdout" || at_failed=:
29865 at_fn_check_status 0 $at_status "$at_srcdir/sparse04.at:35"
29866 $at_failed && at_fn_log_failure
29874 $at_times_p && times >"$at_times_file"
29875 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29876 read at_status <"$at_status_file"
29879 at_fn_group_banner 130 'sparsemv.at:21' \
29880 "sparse files in MV archives" " " 19
29882 test -f $XFAILFILE && at_xfail=yes
29884 $as_echo "130. $at_setup_line: testing $at_desc ..."
29889 # Check if sparse files are correctly split between GNU multi-volume
29891 # There are two cases: the file can be split within an empty (null) block,
29892 # or within a data block. Since null blocks are not archived, the first
29893 # case means the file is split between two consecutive data blocks.
29899 $as_echo "$at_srcdir/sparsemv.at:31:
29902 TEST_TAR_FORMAT=gnu
29903 export TEST_TAR_FORMAT
29904 TAR_OPTIONS=\"-H gnu\"
29909 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29910 echo \"Pass 1: Split between data blocks\"
29911 echo \"Create archive\"
29912 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29913 echo \"Test archive\"
29914 tar --record-size=512 -t -M -f arc.1 -f arc.2
29915 echo \"Compare archive\"
29916 tar --record-size=512 -d -M -f arc.1 -f arc.2
29918 echo \"Pass 2: Split within a data block\"
29919 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29920 echo \"Create archive\"
29921 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29922 echo \"Test archive\"
29923 tar --record-size=512 -t -M -f arc.1 -f arc.2
29924 echo \"Compare archive\"
29925 tar --record-size=512 -d -M -f arc.1 -f arc.2
29927 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
29931 TEST_TAR_FORMAT=gnu
29932 export TEST_TAR_FORMAT
29933 TAR_OPTIONS="-H gnu"
29938 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29939 echo "Pass 1: Split between data blocks"
29940 echo "Create archive"
29941 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29942 echo "Test archive"
29943 tar --record-size=512 -t -M -f arc.1 -f arc.2
29944 echo "Compare archive"
29945 tar --record-size=512 -d -M -f arc.1 -f arc.2
29947 echo "Pass 2: Split within a data block"
29948 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29949 echo "Create archive"
29950 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29951 echo "Test archive"
29952 tar --record-size=512 -t -M -f arc.1 -f arc.2
29953 echo "Compare archive"
29954 tar --record-size=512 -d -M -f arc.1 -f arc.2
29956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29957 at_status=$? at_failed=false
29959 at_fn_diff_devnull "$at_stderr" || at_failed=:
29960 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
29965 Pass 2: Split within a data block
29971 $at_diff - "$at_stdout" || at_failed=:
29972 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
29973 $at_failed && at_fn_log_failure
29977 $as_echo "$at_srcdir/sparsemv.at:31:
29980 TEST_TAR_FORMAT=oldgnu
29981 export TEST_TAR_FORMAT
29982 TAR_OPTIONS=\"-H oldgnu\"
29987 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
29988 echo \"Pass 1: Split between data blocks\"
29989 echo \"Create archive\"
29990 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
29991 echo \"Test archive\"
29992 tar --record-size=512 -t -M -f arc.1 -f arc.2
29993 echo \"Compare archive\"
29994 tar --record-size=512 -d -M -f arc.1 -f arc.2
29996 echo \"Pass 2: Split within a data block\"
29997 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
29998 echo \"Create archive\"
29999 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30000 echo \"Test archive\"
30001 tar --record-size=512 -t -M -f arc.1 -f arc.2
30002 echo \"Compare archive\"
30003 tar --record-size=512 -d -M -f arc.1 -f arc.2
30005 at_fn_check_prepare_notrace 'an embedded newline' "sparsemv.at:31"
30009 TEST_TAR_FORMAT=oldgnu
30010 export TEST_TAR_FORMAT
30011 TAR_OPTIONS="-H oldgnu"
30016 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30017 echo "Pass 1: Split between data blocks"
30018 echo "Create archive"
30019 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30020 echo "Test archive"
30021 tar --record-size=512 -t -M -f arc.1 -f arc.2
30022 echo "Compare archive"
30023 tar --record-size=512 -d -M -f arc.1 -f arc.2
30025 echo "Pass 2: Split within a data block"
30026 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30027 echo "Create archive"
30028 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30029 echo "Test archive"
30030 tar --record-size=512 -t -M -f arc.1 -f arc.2
30031 echo "Compare archive"
30032 tar --record-size=512 -d -M -f arc.1 -f arc.2
30034 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30035 at_status=$? at_failed=false
30037 at_fn_diff_devnull "$at_stderr" || at_failed=:
30038 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30043 Pass 2: Split within a data block
30049 $at_diff - "$at_stdout" || at_failed=:
30050 at_fn_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
30051 $at_failed && at_fn_log_failure
30058 $at_times_p && times >"$at_times_file"
30059 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30060 read at_status <"$at_status_file"
30063 at_fn_group_banner 131 'spmvp00.at:21' \
30064 "sparse files in PAX MV archives, v.0.0" " " 19
30066 test -f $XFAILFILE && at_xfail=yes
30068 $as_echo "131. $at_setup_line: testing $at_desc ..."
30077 $as_echo "$at_srcdir/spmvp00.at:24:
30080 TEST_TAR_FORMAT=pax
30081 export TEST_TAR_FORMAT
30082 TAR_OPTIONS=\"-H pax\"
30087 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
30088 echo \"Pass 1: Split between data blocks\"
30089 echo \"Create archive\"
30090 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30091 echo \"Test archive\"
30092 tar -t -M -f arc.1 -f arc.2 -f arc.3
30093 echo \"Compare archive\"
30094 tar -d -M -f arc.1 -f arc.2 -f arc.3
30096 echo \"Pass 2: Split within a data block\"
30097 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30098 echo \"Create archive\"
30099 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30100 echo \"Test archive\"
30101 tar -t -M -f arc.1 -f arc.2 -f arc.3
30102 echo \"Compare archive\"
30103 tar -d -M -f arc.1 -f arc.2 -f arc.3
30105 at_fn_check_prepare_notrace 'an embedded newline' "spmvp00.at:24"
30109 TEST_TAR_FORMAT=pax
30110 export TEST_TAR_FORMAT
30111 TAR_OPTIONS="-H pax"
30116 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
30117 echo "Pass 1: Split between data blocks"
30118 echo "Create archive"
30119 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30120 echo "Test archive"
30121 tar -t -M -f arc.1 -f arc.2 -f arc.3
30122 echo "Compare archive"
30123 tar -d -M -f arc.1 -f arc.2 -f arc.3
30125 echo "Pass 2: Split within a data block"
30126 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30127 echo "Create archive"
30128 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30129 echo "Test archive"
30130 tar -t -M -f arc.1 -f arc.2 -f arc.3
30131 echo "Compare archive"
30132 tar -d -M -f arc.1 -f arc.2 -f arc.3
30134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30135 at_status=$? at_failed=false
30137 at_fn_diff_devnull "$at_stderr" || at_failed=:
30138 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30143 Pass 2: Split within a data block
30149 $at_diff - "$at_stdout" || at_failed=:
30150 at_fn_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
30151 $at_failed && at_fn_log_failure
30158 $at_times_p && times >"$at_times_file"
30159 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30160 read at_status <"$at_status_file"
30163 at_fn_group_banner 132 'spmvp01.at:21' \
30164 "sparse files in PAX MV archives, v.0.1" " " 19
30166 test -f $XFAILFILE && at_xfail=yes
30168 $as_echo "132. $at_setup_line: testing $at_desc ..."
30177 $as_echo "$at_srcdir/spmvp01.at:24:
30180 TEST_TAR_FORMAT=pax
30181 export TEST_TAR_FORMAT
30182 TAR_OPTIONS=\"-H pax\"
30187 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30188 echo \"Pass 1: Split between data blocks\"
30189 echo \"Create archive\"
30190 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30191 echo \"Test archive\"
30192 tar -t -M -f arc.1 -f arc.2 -f arc.3
30193 echo \"Compare archive\"
30194 tar -d -M -f arc.1 -f arc.2 -f arc.3
30196 echo \"Pass 2: Split within a data block\"
30197 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30198 echo \"Create archive\"
30199 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30200 echo \"Test archive\"
30201 tar -t -M -f arc.1 -f arc.2 -f arc.3
30202 echo \"Compare archive\"
30203 tar -d -M -f arc.1 -f arc.2 -f arc.3
30205 at_fn_check_prepare_notrace 'an embedded newline' "spmvp01.at:24"
30209 TEST_TAR_FORMAT=pax
30210 export TEST_TAR_FORMAT
30211 TAR_OPTIONS="-H pax"
30216 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30217 echo "Pass 1: Split between data blocks"
30218 echo "Create archive"
30219 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30220 echo "Test archive"
30221 tar -t -M -f arc.1 -f arc.2 -f arc.3
30222 echo "Compare archive"
30223 tar -d -M -f arc.1 -f arc.2 -f arc.3
30225 echo "Pass 2: Split within a data block"
30226 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30227 echo "Create archive"
30228 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30229 echo "Test archive"
30230 tar -t -M -f arc.1 -f arc.2 -f arc.3
30231 echo "Compare archive"
30232 tar -d -M -f arc.1 -f arc.2 -f arc.3
30234 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30235 at_status=$? at_failed=false
30237 at_fn_diff_devnull "$at_stderr" || at_failed=:
30238 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30243 Pass 2: Split within a data block
30249 $at_diff - "$at_stdout" || at_failed=:
30250 at_fn_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
30251 $at_failed && at_fn_log_failure
30258 $at_times_p && times >"$at_times_file"
30259 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30260 read at_status <"$at_status_file"
30263 at_fn_group_banner 133 'spmvp10.at:21' \
30264 "sparse files in PAX MV archives, v.1.0" " " 19
30266 test -f $XFAILFILE && at_xfail=yes
30268 $as_echo "133. $at_setup_line: testing $at_desc ..."
30277 $as_echo "$at_srcdir/spmvp10.at:24:
30280 TEST_TAR_FORMAT=pax
30281 export TEST_TAR_FORMAT
30282 TAR_OPTIONS=\"-H pax\"
30287 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30288 echo \"Pass 1: Split between data blocks\"
30289 echo \"Create archive\"
30290 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30291 echo \"Test archive\"
30292 tar -t -M -f arc.1 -f arc.2 -f arc.3
30293 echo \"Compare archive\"
30294 tar -d -M -f arc.1 -f arc.2 -f arc.3
30296 echo \"Pass 2: Split within a data block\"
30297 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
30298 echo \"Create archive\"
30299 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30300 echo \"Test archive\"
30301 tar -t -M -f arc.1 -f arc.2 -f arc.3
30302 echo \"Compare archive\"
30303 tar -d -M -f arc.1 -f arc.2 -f arc.3
30305 at_fn_check_prepare_notrace 'an embedded newline' "spmvp10.at:24"
30309 TEST_TAR_FORMAT=pax
30310 export TEST_TAR_FORMAT
30311 TAR_OPTIONS="-H pax"
30316 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30317 echo "Pass 1: Split between data blocks"
30318 echo "Create archive"
30319 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30320 echo "Test archive"
30321 tar -t -M -f arc.1 -f arc.2 -f arc.3
30322 echo "Compare archive"
30323 tar -d -M -f arc.1 -f arc.2 -f arc.3
30325 echo "Pass 2: Split within a data block"
30326 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
30327 echo "Create archive"
30328 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30329 echo "Test archive"
30330 tar -t -M -f arc.1 -f arc.2 -f arc.3
30331 echo "Compare archive"
30332 tar -d -M -f arc.1 -f arc.2 -f arc.3
30334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30335 at_status=$? at_failed=false
30337 at_fn_diff_devnull "$at_stderr" || at_failed=:
30338 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30343 Pass 2: Split within a data block
30349 $at_diff - "$at_stdout" || at_failed=:
30350 at_fn_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
30351 $at_failed && at_fn_log_failure
30358 $at_times_p && times >"$at_times_file"
30359 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30360 read at_status <"$at_status_file"
30363 at_fn_group_banner 134 'update.at:28' \
30364 "update unchanged directories" " " 20
30366 test -f $XFAILFILE && at_xfail=yes
30368 $as_echo "134. $at_setup_line: testing $at_desc ..."
30376 $as_echo "$at_srcdir/update.at:31:
30380 export TEST_TAR_FORMAT
30381 TAR_OPTIONS=\"-H v7\"
30386 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30389 genfile --length 10240 --pattern zeros --file directory/file1
30390 genfile --length 10240 --pattern default --file directory/file2
30392 tar cf archive directory || exit 1
30394 tar uf archive directory || exit 1
30396 tar tf archive | sort || exit 1
30398 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30403 export TEST_TAR_FORMAT
30404 TAR_OPTIONS="-H v7"
30409 test -z "`sort < /dev/null 2>&1`" || exit 77
30412 genfile --length 10240 --pattern zeros --file directory/file1
30413 genfile --length 10240 --pattern default --file directory/file2
30415 tar cf archive directory || exit 1
30417 tar uf archive directory || exit 1
30419 tar tf archive | sort || exit 1
30421 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30422 at_status=$? at_failed=false
30424 at_fn_diff_devnull "$at_stderr" || at_failed=:
30425 echo >>"$at_stdout"; $as_echo "separator
30431 $at_diff - "$at_stdout" || at_failed=:
30432 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30433 $at_failed && at_fn_log_failure
30437 $as_echo "$at_srcdir/update.at:31:
30440 TEST_TAR_FORMAT=oldgnu
30441 export TEST_TAR_FORMAT
30442 TAR_OPTIONS=\"-H oldgnu\"
30447 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30450 genfile --length 10240 --pattern zeros --file directory/file1
30451 genfile --length 10240 --pattern default --file directory/file2
30453 tar cf archive directory || exit 1
30455 tar uf archive directory || exit 1
30457 tar tf archive | sort || exit 1
30459 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30463 TEST_TAR_FORMAT=oldgnu
30464 export TEST_TAR_FORMAT
30465 TAR_OPTIONS="-H oldgnu"
30470 test -z "`sort < /dev/null 2>&1`" || exit 77
30473 genfile --length 10240 --pattern zeros --file directory/file1
30474 genfile --length 10240 --pattern default --file directory/file2
30476 tar cf archive directory || exit 1
30478 tar uf archive directory || exit 1
30480 tar tf archive | sort || exit 1
30482 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30483 at_status=$? at_failed=false
30485 at_fn_diff_devnull "$at_stderr" || at_failed=:
30486 echo >>"$at_stdout"; $as_echo "separator
30492 $at_diff - "$at_stdout" || at_failed=:
30493 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30494 $at_failed && at_fn_log_failure
30498 $as_echo "$at_srcdir/update.at:31:
30501 TEST_TAR_FORMAT=ustar
30502 export TEST_TAR_FORMAT
30503 TAR_OPTIONS=\"-H ustar\"
30508 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30511 genfile --length 10240 --pattern zeros --file directory/file1
30512 genfile --length 10240 --pattern default --file directory/file2
30514 tar cf archive directory || exit 1
30516 tar uf archive directory || exit 1
30518 tar tf archive | sort || exit 1
30520 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30524 TEST_TAR_FORMAT=ustar
30525 export TEST_TAR_FORMAT
30526 TAR_OPTIONS="-H ustar"
30531 test -z "`sort < /dev/null 2>&1`" || exit 77
30534 genfile --length 10240 --pattern zeros --file directory/file1
30535 genfile --length 10240 --pattern default --file directory/file2
30537 tar cf archive directory || exit 1
30539 tar uf archive directory || exit 1
30541 tar tf archive | sort || exit 1
30543 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30544 at_status=$? at_failed=false
30546 at_fn_diff_devnull "$at_stderr" || at_failed=:
30547 echo >>"$at_stdout"; $as_echo "separator
30553 $at_diff - "$at_stdout" || at_failed=:
30554 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30555 $at_failed && at_fn_log_failure
30559 $as_echo "$at_srcdir/update.at:31:
30562 TEST_TAR_FORMAT=posix
30563 export TEST_TAR_FORMAT
30564 TAR_OPTIONS=\"-H posix\"
30569 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30572 genfile --length 10240 --pattern zeros --file directory/file1
30573 genfile --length 10240 --pattern default --file directory/file2
30575 tar cf archive directory || exit 1
30577 tar uf archive directory || exit 1
30579 tar tf archive | sort || exit 1
30581 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30585 TEST_TAR_FORMAT=posix
30586 export TEST_TAR_FORMAT
30587 TAR_OPTIONS="-H posix"
30592 test -z "`sort < /dev/null 2>&1`" || exit 77
30595 genfile --length 10240 --pattern zeros --file directory/file1
30596 genfile --length 10240 --pattern default --file directory/file2
30598 tar cf archive directory || exit 1
30600 tar uf archive directory || exit 1
30602 tar tf archive | sort || exit 1
30604 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30605 at_status=$? at_failed=false
30607 at_fn_diff_devnull "$at_stderr" || at_failed=:
30608 echo >>"$at_stdout"; $as_echo "separator
30614 $at_diff - "$at_stdout" || at_failed=:
30615 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30616 $at_failed && at_fn_log_failure
30620 $as_echo "$at_srcdir/update.at:31:
30623 TEST_TAR_FORMAT=gnu
30624 export TEST_TAR_FORMAT
30625 TAR_OPTIONS=\"-H gnu\"
30630 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30633 genfile --length 10240 --pattern zeros --file directory/file1
30634 genfile --length 10240 --pattern default --file directory/file2
30636 tar cf archive directory || exit 1
30638 tar uf archive directory || exit 1
30640 tar tf archive | sort || exit 1
30642 at_fn_check_prepare_notrace 'a `...` command substitution' "update.at:31"
30646 TEST_TAR_FORMAT=gnu
30647 export TEST_TAR_FORMAT
30648 TAR_OPTIONS="-H gnu"
30653 test -z "`sort < /dev/null 2>&1`" || exit 77
30656 genfile --length 10240 --pattern zeros --file directory/file1
30657 genfile --length 10240 --pattern default --file directory/file2
30659 tar cf archive directory || exit 1
30661 tar uf archive directory || exit 1
30663 tar tf archive | sort || exit 1
30665 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30666 at_status=$? at_failed=false
30668 at_fn_diff_devnull "$at_stderr" || at_failed=:
30669 echo >>"$at_stdout"; $as_echo "separator
30675 $at_diff - "$at_stdout" || at_failed=:
30676 at_fn_check_status 0 $at_status "$at_srcdir/update.at:31"
30677 $at_failed && at_fn_log_failure
30684 $at_times_p && times >"$at_times_file"
30685 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30686 read at_status <"$at_status_file"
30689 at_fn_group_banner 135 'update01.at:29' \
30690 "update directories" " " 20
30692 test -f $XFAILFILE && at_xfail=yes
30694 $as_echo "135. $at_setup_line: testing $at_desc ..."
30702 $as_echo "$at_srcdir/update01.at:32:
30706 export TEST_TAR_FORMAT
30707 TAR_OPTIONS=\"-H v7\"
30712 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30726 tar tf arc | sort || exit 1
30728 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30733 export TEST_TAR_FORMAT
30734 TAR_OPTIONS="-H v7"
30739 test -z "`sort < /dev/null 2>&1`" || exit 77
30753 tar tf arc | sort || exit 1
30755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30756 at_status=$? at_failed=false
30758 at_fn_diff_devnull "$at_stderr" || at_failed=:
30759 echo >>"$at_stdout"; $as_echo "separator
30766 $at_diff - "$at_stdout" || at_failed=:
30767 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30768 $at_failed && at_fn_log_failure
30772 $as_echo "$at_srcdir/update01.at:32:
30775 TEST_TAR_FORMAT=oldgnu
30776 export TEST_TAR_FORMAT
30777 TAR_OPTIONS=\"-H oldgnu\"
30782 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30796 tar tf arc | sort || exit 1
30798 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30802 TEST_TAR_FORMAT=oldgnu
30803 export TEST_TAR_FORMAT
30804 TAR_OPTIONS="-H oldgnu"
30809 test -z "`sort < /dev/null 2>&1`" || exit 77
30823 tar tf arc | sort || exit 1
30825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30826 at_status=$? at_failed=false
30828 at_fn_diff_devnull "$at_stderr" || at_failed=:
30829 echo >>"$at_stdout"; $as_echo "separator
30836 $at_diff - "$at_stdout" || at_failed=:
30837 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30838 $at_failed && at_fn_log_failure
30842 $as_echo "$at_srcdir/update01.at:32:
30845 TEST_TAR_FORMAT=ustar
30846 export TEST_TAR_FORMAT
30847 TAR_OPTIONS=\"-H ustar\"
30852 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30866 tar tf arc | sort || exit 1
30868 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30872 TEST_TAR_FORMAT=ustar
30873 export TEST_TAR_FORMAT
30874 TAR_OPTIONS="-H ustar"
30879 test -z "`sort < /dev/null 2>&1`" || exit 77
30893 tar tf arc | sort || exit 1
30895 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30896 at_status=$? at_failed=false
30898 at_fn_diff_devnull "$at_stderr" || at_failed=:
30899 echo >>"$at_stdout"; $as_echo "separator
30906 $at_diff - "$at_stdout" || at_failed=:
30907 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30908 $at_failed && at_fn_log_failure
30912 $as_echo "$at_srcdir/update01.at:32:
30915 TEST_TAR_FORMAT=posix
30916 export TEST_TAR_FORMAT
30917 TAR_OPTIONS=\"-H posix\"
30922 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
30936 tar tf arc | sort || exit 1
30938 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
30942 TEST_TAR_FORMAT=posix
30943 export TEST_TAR_FORMAT
30944 TAR_OPTIONS="-H posix"
30949 test -z "`sort < /dev/null 2>&1`" || exit 77
30963 tar tf arc | sort || exit 1
30965 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30966 at_status=$? at_failed=false
30968 at_fn_diff_devnull "$at_stderr" || at_failed=:
30969 echo >>"$at_stdout"; $as_echo "separator
30976 $at_diff - "$at_stdout" || at_failed=:
30977 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
30978 $at_failed && at_fn_log_failure
30982 $as_echo "$at_srcdir/update01.at:32:
30985 TEST_TAR_FORMAT=gnu
30986 export TEST_TAR_FORMAT
30987 TAR_OPTIONS=\"-H gnu\"
30992 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31006 tar tf arc | sort || exit 1
31008 at_fn_check_prepare_notrace 'a `...` command substitution' "update01.at:32"
31012 TEST_TAR_FORMAT=gnu
31013 export TEST_TAR_FORMAT
31014 TAR_OPTIONS="-H gnu"
31019 test -z "`sort < /dev/null 2>&1`" || exit 77
31033 tar tf arc | sort || exit 1
31035 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31036 at_status=$? at_failed=false
31038 at_fn_diff_devnull "$at_stderr" || at_failed=:
31039 echo >>"$at_stdout"; $as_echo "separator
31046 $at_diff - "$at_stdout" || at_failed=:
31047 at_fn_check_status 0 $at_status "$at_srcdir/update01.at:32"
31048 $at_failed && at_fn_log_failure
31055 $at_times_p && times >"$at_times_file"
31056 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31057 read at_status <"$at_status_file"
31060 at_fn_group_banner 136 'update02.at:26' \
31061 "update changed files" " " 20
31063 test -f $XFAILFILE && at_xfail=yes
31065 $as_echo "136. $at_setup_line: testing $at_desc ..."
31073 $as_echo "$at_srcdir/update02.at:29:
31077 export TEST_TAR_FORMAT
31078 TAR_OPTIONS=\"-H v7\"
31083 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31097 tar tf arc | sort || exit 1
31099 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
31104 export TEST_TAR_FORMAT
31105 TAR_OPTIONS="-H v7"
31110 test -z "`sort < /dev/null 2>&1`" || exit 77
31124 tar tf arc | sort || exit 1
31126 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31127 at_status=$? at_failed=false
31129 at_fn_diff_devnull "$at_stderr" || at_failed=:
31130 echo >>"$at_stdout"; $as_echo "separator
31137 $at_diff - "$at_stdout" || at_failed=:
31138 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
31139 $at_failed && at_fn_log_failure
31143 $as_echo "$at_srcdir/update02.at:29:
31146 TEST_TAR_FORMAT=oldgnu
31147 export TEST_TAR_FORMAT
31148 TAR_OPTIONS=\"-H oldgnu\"
31153 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31167 tar tf arc | sort || exit 1
31169 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
31173 TEST_TAR_FORMAT=oldgnu
31174 export TEST_TAR_FORMAT
31175 TAR_OPTIONS="-H oldgnu"
31180 test -z "`sort < /dev/null 2>&1`" || exit 77
31194 tar tf arc | sort || exit 1
31196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31197 at_status=$? at_failed=false
31199 at_fn_diff_devnull "$at_stderr" || at_failed=:
31200 echo >>"$at_stdout"; $as_echo "separator
31207 $at_diff - "$at_stdout" || at_failed=:
31208 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
31209 $at_failed && at_fn_log_failure
31213 $as_echo "$at_srcdir/update02.at:29:
31216 TEST_TAR_FORMAT=ustar
31217 export TEST_TAR_FORMAT
31218 TAR_OPTIONS=\"-H ustar\"
31223 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31237 tar tf arc | sort || exit 1
31239 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
31243 TEST_TAR_FORMAT=ustar
31244 export TEST_TAR_FORMAT
31245 TAR_OPTIONS="-H ustar"
31250 test -z "`sort < /dev/null 2>&1`" || exit 77
31264 tar tf arc | sort || exit 1
31266 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31267 at_status=$? at_failed=false
31269 at_fn_diff_devnull "$at_stderr" || at_failed=:
31270 echo >>"$at_stdout"; $as_echo "separator
31277 $at_diff - "$at_stdout" || at_failed=:
31278 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
31279 $at_failed && at_fn_log_failure
31283 $as_echo "$at_srcdir/update02.at:29:
31286 TEST_TAR_FORMAT=posix
31287 export TEST_TAR_FORMAT
31288 TAR_OPTIONS=\"-H posix\"
31293 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31307 tar tf arc | sort || exit 1
31309 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
31313 TEST_TAR_FORMAT=posix
31314 export TEST_TAR_FORMAT
31315 TAR_OPTIONS="-H posix"
31320 test -z "`sort < /dev/null 2>&1`" || exit 77
31334 tar tf arc | sort || exit 1
31336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31337 at_status=$? at_failed=false
31339 at_fn_diff_devnull "$at_stderr" || at_failed=:
31340 echo >>"$at_stdout"; $as_echo "separator
31347 $at_diff - "$at_stdout" || at_failed=:
31348 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
31349 $at_failed && at_fn_log_failure
31353 $as_echo "$at_srcdir/update02.at:29:
31356 TEST_TAR_FORMAT=gnu
31357 export TEST_TAR_FORMAT
31358 TAR_OPTIONS=\"-H gnu\"
31363 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31377 tar tf arc | sort || exit 1
31379 at_fn_check_prepare_notrace 'a `...` command substitution' "update02.at:29"
31383 TEST_TAR_FORMAT=gnu
31384 export TEST_TAR_FORMAT
31385 TAR_OPTIONS="-H gnu"
31390 test -z "`sort < /dev/null 2>&1`" || exit 77
31404 tar tf arc | sort || exit 1
31406 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31407 at_status=$? at_failed=false
31409 at_fn_diff_devnull "$at_stderr" || at_failed=:
31410 echo >>"$at_stdout"; $as_echo "separator
31417 $at_diff - "$at_stdout" || at_failed=:
31418 at_fn_check_status 0 $at_status "$at_srcdir/update02.at:29"
31419 $at_failed && at_fn_log_failure
31426 $at_times_p && times >"$at_times_file"
31427 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31428 read at_status <"$at_status_file"
31431 at_fn_group_banner 137 'verify.at:25' \
31434 test -f $XFAILFILE && at_xfail=yes
31436 $as_echo "137. $at_setup_line: testing $at_desc ..."
31444 $as_echo "$at_srcdir/verify.at:28:
31448 export TEST_TAR_FORMAT
31449 TAR_OPTIONS=\"-H v7\"
31454 tar -cvf archive.tar --verify foo
31456 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31461 export TEST_TAR_FORMAT
31462 TAR_OPTIONS="-H v7"
31467 tar -cvf archive.tar --verify foo
31469 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31470 at_status=$? at_failed=false
31472 at_fn_diff_devnull "$at_stderr" || at_failed=:
31473 echo >>"$at_stdout"; $as_echo "foo
31476 $at_diff - "$at_stdout" || at_failed=:
31477 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31478 $at_failed && at_fn_log_failure
31482 $as_echo "$at_srcdir/verify.at:28:
31485 TEST_TAR_FORMAT=oldgnu
31486 export TEST_TAR_FORMAT
31487 TAR_OPTIONS=\"-H oldgnu\"
31492 tar -cvf archive.tar --verify foo
31494 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31498 TEST_TAR_FORMAT=oldgnu
31499 export TEST_TAR_FORMAT
31500 TAR_OPTIONS="-H oldgnu"
31505 tar -cvf archive.tar --verify foo
31507 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31508 at_status=$? at_failed=false
31510 at_fn_diff_devnull "$at_stderr" || at_failed=:
31511 echo >>"$at_stdout"; $as_echo "foo
31514 $at_diff - "$at_stdout" || at_failed=:
31515 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31516 $at_failed && at_fn_log_failure
31520 $as_echo "$at_srcdir/verify.at:28:
31523 TEST_TAR_FORMAT=ustar
31524 export TEST_TAR_FORMAT
31525 TAR_OPTIONS=\"-H ustar\"
31530 tar -cvf archive.tar --verify foo
31532 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31536 TEST_TAR_FORMAT=ustar
31537 export TEST_TAR_FORMAT
31538 TAR_OPTIONS="-H ustar"
31543 tar -cvf archive.tar --verify foo
31545 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31546 at_status=$? at_failed=false
31548 at_fn_diff_devnull "$at_stderr" || at_failed=:
31549 echo >>"$at_stdout"; $as_echo "foo
31552 $at_diff - "$at_stdout" || at_failed=:
31553 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31554 $at_failed && at_fn_log_failure
31558 $as_echo "$at_srcdir/verify.at:28:
31561 TEST_TAR_FORMAT=posix
31562 export TEST_TAR_FORMAT
31563 TAR_OPTIONS=\"-H posix\"
31568 tar -cvf archive.tar --verify foo
31570 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31574 TEST_TAR_FORMAT=posix
31575 export TEST_TAR_FORMAT
31576 TAR_OPTIONS="-H posix"
31581 tar -cvf archive.tar --verify foo
31583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31584 at_status=$? at_failed=false
31586 at_fn_diff_devnull "$at_stderr" || at_failed=:
31587 echo >>"$at_stdout"; $as_echo "foo
31590 $at_diff - "$at_stdout" || at_failed=:
31591 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31592 $at_failed && at_fn_log_failure
31596 $as_echo "$at_srcdir/verify.at:28:
31599 TEST_TAR_FORMAT=gnu
31600 export TEST_TAR_FORMAT
31601 TAR_OPTIONS=\"-H gnu\"
31606 tar -cvf archive.tar --verify foo
31608 at_fn_check_prepare_notrace 'an embedded newline' "verify.at:28"
31612 TEST_TAR_FORMAT=gnu
31613 export TEST_TAR_FORMAT
31614 TAR_OPTIONS="-H gnu"
31619 tar -cvf archive.tar --verify foo
31621 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31622 at_status=$? at_failed=false
31624 at_fn_diff_devnull "$at_stderr" || at_failed=:
31625 echo >>"$at_stdout"; $as_echo "foo
31628 $at_diff - "$at_stdout" || at_failed=:
31629 at_fn_check_status 0 $at_status "$at_srcdir/verify.at:28"
31630 $at_failed && at_fn_log_failure
31637 $at_times_p && times >"$at_times_file"
31638 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31639 read at_status <"$at_status_file"
31642 at_fn_group_banner 138 'volume.at:23' \
31645 test -f $XFAILFILE && at_xfail=yes
31647 $as_echo "138. $at_setup_line: testing $at_desc ..."
31655 $as_echo "$at_srcdir/volume.at:26:
31658 TEST_TAR_FORMAT=gnu
31659 export TEST_TAR_FORMAT
31660 TAR_OPTIONS=\"-H gnu\"
31664 tar -cf archive -V label -T /dev/null || exit 1
31666 tar xfV archive label || exit 1
31667 tar xfV archive 'la?el' || exit 1
31668 tar xfV archive 'l*l' || exit 1
31671 tar xfV archive lab
31672 test \$? = 2 || exit 1
31674 tar xfV archive bel
31675 test \$? = 2 || exit 1
31677 tar xfV archive babel
31680 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:26"
31684 TEST_TAR_FORMAT=gnu
31685 export TEST_TAR_FORMAT
31686 TAR_OPTIONS="-H gnu"
31690 tar -cf archive -V label -T /dev/null || exit 1
31692 tar xfV archive label || exit 1
31693 tar xfV archive 'la?el' || exit 1
31694 tar xfV archive 'l*l' || exit 1
31697 tar xfV archive lab
31698 test $? = 2 || exit 1
31700 tar xfV archive bel
31701 test $? = 2 || exit 1
31703 tar xfV archive babel
31706 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31707 at_status=$? at_failed=false
31709 echo >>"$at_stderr"; $as_echo "-----
31710 tar: Volume 'label' does not match 'lab'
31711 tar: Error is not recoverable: exiting now
31713 tar: Volume 'label' does not match 'bel'
31714 tar: Error is not recoverable: exiting now
31716 tar: Volume 'label' does not match 'babel'
31717 tar: Error is not recoverable: exiting now
31719 $at_diff - "$at_stderr" || at_failed=:
31720 at_fn_diff_devnull "$at_stdout" || at_failed=:
31721 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:26"
31722 $at_failed && at_fn_log_failure
31726 $as_echo "$at_srcdir/volume.at:26:
31729 TEST_TAR_FORMAT=oldgnu
31730 export TEST_TAR_FORMAT
31731 TAR_OPTIONS=\"-H oldgnu\"
31735 tar -cf archive -V label -T /dev/null || exit 1
31737 tar xfV archive label || exit 1
31738 tar xfV archive 'la?el' || exit 1
31739 tar xfV archive 'l*l' || exit 1
31742 tar xfV archive lab
31743 test \$? = 2 || exit 1
31745 tar xfV archive bel
31746 test \$? = 2 || exit 1
31748 tar xfV archive babel
31751 at_fn_check_prepare_notrace 'an embedded newline' "volume.at:26"
31755 TEST_TAR_FORMAT=oldgnu
31756 export TEST_TAR_FORMAT
31757 TAR_OPTIONS="-H oldgnu"
31761 tar -cf archive -V label -T /dev/null || exit 1
31763 tar xfV archive label || exit 1
31764 tar xfV archive 'la?el' || exit 1
31765 tar xfV archive 'l*l' || exit 1
31768 tar xfV archive lab
31769 test $? = 2 || exit 1
31771 tar xfV archive bel
31772 test $? = 2 || exit 1
31774 tar xfV archive babel
31777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31778 at_status=$? at_failed=false
31780 echo >>"$at_stderr"; $as_echo "-----
31781 tar: Volume 'label' does not match 'lab'
31782 tar: Error is not recoverable: exiting now
31784 tar: Volume 'label' does not match 'bel'
31785 tar: Error is not recoverable: exiting now
31787 tar: Volume 'label' does not match 'babel'
31788 tar: Error is not recoverable: exiting now
31790 $at_diff - "$at_stderr" || at_failed=:
31791 at_fn_diff_devnull "$at_stdout" || at_failed=:
31792 at_fn_check_status 0 $at_status "$at_srcdir/volume.at:26"
31793 $at_failed && at_fn_log_failure
31800 $at_times_p && times >"$at_times_file"
31801 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
31802 read at_status <"$at_status_file"
31805 at_fn_group_banner 139 'volsize.at:29' \
31806 "volume header size" " " 22
31808 test -f $XFAILFILE && at_xfail=yes
31810 $as_echo "139. $at_setup_line: testing $at_desc ..."
31818 $as_echo "$at_srcdir/volsize.at:32:
31822 export TEST_TAR_FORMAT
31823 TAR_OPTIONS=\"-H v7\"
31828 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31831 test -z \"\$TEST_DATA_DIR\" && exit 77
31832 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31835 tar tf \$TEST_DATA_DIR/abc.tar
31836 echo Verbose Listing
31837 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31838 echo Extracted directory
31839 tar xf \$TEST_DATA_DIR/abc.tar
31842 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31847 export TEST_TAR_FORMAT
31848 TAR_OPTIONS="-H v7"
31853 test -z "`sort < /dev/null 2>&1`" || exit 77
31856 test -z "$TEST_DATA_DIR" && exit 77
31857 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31860 tar tf $TEST_DATA_DIR/abc.tar
31861 echo Verbose Listing
31862 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31863 echo Extracted directory
31864 tar xf $TEST_DATA_DIR/abc.tar
31867 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31868 at_status=$? at_failed=false
31870 at_fn_diff_devnull "$at_stderr" || at_failed=:
31871 echo >>"$at_stdout"; $as_echo "Short Listing
31875 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31876 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31877 Extracted directory
31881 $at_diff - "$at_stdout" || at_failed=:
31882 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31883 $at_failed && at_fn_log_failure
31887 $as_echo "$at_srcdir/volsize.at:32:
31890 TEST_TAR_FORMAT=oldgnu
31891 export TEST_TAR_FORMAT
31892 TAR_OPTIONS=\"-H oldgnu\"
31897 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31900 test -z \"\$TEST_DATA_DIR\" && exit 77
31901 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31904 tar tf \$TEST_DATA_DIR/abc.tar
31905 echo Verbose Listing
31906 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31907 echo Extracted directory
31908 tar xf \$TEST_DATA_DIR/abc.tar
31911 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31915 TEST_TAR_FORMAT=oldgnu
31916 export TEST_TAR_FORMAT
31917 TAR_OPTIONS="-H oldgnu"
31922 test -z "`sort < /dev/null 2>&1`" || exit 77
31925 test -z "$TEST_DATA_DIR" && exit 77
31926 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31929 tar tf $TEST_DATA_DIR/abc.tar
31930 echo Verbose Listing
31931 tar --utc -tvf $TEST_DATA_DIR/abc.tar
31932 echo Extracted directory
31933 tar xf $TEST_DATA_DIR/abc.tar
31936 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
31937 at_status=$? at_failed=false
31939 at_fn_diff_devnull "$at_stderr" || at_failed=:
31940 echo >>"$at_stdout"; $as_echo "Short Listing
31944 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
31945 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
31946 Extracted directory
31950 $at_diff - "$at_stdout" || at_failed=:
31951 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
31952 $at_failed && at_fn_log_failure
31956 $as_echo "$at_srcdir/volsize.at:32:
31959 TEST_TAR_FORMAT=ustar
31960 export TEST_TAR_FORMAT
31961 TAR_OPTIONS=\"-H ustar\"
31966 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
31969 test -z \"\$TEST_DATA_DIR\" && exit 77
31970 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
31973 tar tf \$TEST_DATA_DIR/abc.tar
31974 echo Verbose Listing
31975 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
31976 echo Extracted directory
31977 tar xf \$TEST_DATA_DIR/abc.tar
31980 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
31984 TEST_TAR_FORMAT=ustar
31985 export TEST_TAR_FORMAT
31986 TAR_OPTIONS="-H ustar"
31991 test -z "`sort < /dev/null 2>&1`" || exit 77
31994 test -z "$TEST_DATA_DIR" && exit 77
31995 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31998 tar tf $TEST_DATA_DIR/abc.tar
31999 echo Verbose Listing
32000 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32001 echo Extracted directory
32002 tar xf $TEST_DATA_DIR/abc.tar
32005 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32006 at_status=$? at_failed=false
32008 at_fn_diff_devnull "$at_stderr" || at_failed=:
32009 echo >>"$at_stdout"; $as_echo "Short Listing
32013 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
32014 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
32015 Extracted directory
32019 $at_diff - "$at_stdout" || at_failed=:
32020 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
32021 $at_failed && at_fn_log_failure
32025 $as_echo "$at_srcdir/volsize.at:32:
32028 TEST_TAR_FORMAT=posix
32029 export TEST_TAR_FORMAT
32030 TAR_OPTIONS=\"-H posix\"
32035 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
32038 test -z \"\$TEST_DATA_DIR\" && exit 77
32039 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
32042 tar tf \$TEST_DATA_DIR/abc.tar
32043 echo Verbose Listing
32044 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
32045 echo Extracted directory
32046 tar xf \$TEST_DATA_DIR/abc.tar
32049 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
32053 TEST_TAR_FORMAT=posix
32054 export TEST_TAR_FORMAT
32055 TAR_OPTIONS="-H posix"
32060 test -z "`sort < /dev/null 2>&1`" || exit 77
32063 test -z "$TEST_DATA_DIR" && exit 77
32064 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32067 tar tf $TEST_DATA_DIR/abc.tar
32068 echo Verbose Listing
32069 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32070 echo Extracted directory
32071 tar xf $TEST_DATA_DIR/abc.tar
32074 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32075 at_status=$? at_failed=false
32077 at_fn_diff_devnull "$at_stderr" || at_failed=:
32078 echo >>"$at_stdout"; $as_echo "Short Listing
32082 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
32083 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
32084 Extracted directory
32088 $at_diff - "$at_stdout" || at_failed=:
32089 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
32090 $at_failed && at_fn_log_failure
32094 $as_echo "$at_srcdir/volsize.at:32:
32097 TEST_TAR_FORMAT=gnu
32098 export TEST_TAR_FORMAT
32099 TAR_OPTIONS=\"-H gnu\"
32104 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
32107 test -z \"\$TEST_DATA_DIR\" && exit 77
32108 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 \$TEST_DATA_DIR \$TEST_DATA_URL || exit 77
32111 tar tf \$TEST_DATA_DIR/abc.tar
32112 echo Verbose Listing
32113 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
32114 echo Extracted directory
32115 tar xf \$TEST_DATA_DIR/abc.tar
32118 at_fn_check_prepare_notrace 'a `...` command substitution' "volsize.at:32"
32122 TEST_TAR_FORMAT=gnu
32123 export TEST_TAR_FORMAT
32124 TAR_OPTIONS="-H gnu"
32129 test -z "`sort < /dev/null 2>&1`" || exit 77
32132 test -z "$TEST_DATA_DIR" && exit 77
32133 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32136 tar tf $TEST_DATA_DIR/abc.tar
32137 echo Verbose Listing
32138 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32139 echo Extracted directory
32140 tar xf $TEST_DATA_DIR/abc.tar
32143 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32144 at_status=$? at_failed=false
32146 at_fn_diff_devnull "$at_stderr" || at_failed=:
32147 echo >>"$at_stdout"; $as_echo "Short Listing
32151 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
32152 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
32153 Extracted directory
32157 $at_diff - "$at_stdout" || at_failed=:
32158 at_fn_check_status 0 $at_status "$at_srcdir/volsize.at:32"
32159 $at_failed && at_fn_log_failure
32166 $at_times_p && times >"$at_times_file"
32167 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32168 read at_status <"$at_status_file"
32171 at_fn_group_banner 140 'comprec.at:21' \
32172 "compressed format recognition" " " 23
32174 test -f $XFAILFILE && at_xfail=yes
32176 $as_echo "140. $at_setup_line: testing $at_desc ..."
32185 $as_echo "$at_srcdir/comprec.at:25:
32189 export TEST_TAR_FORMAT
32190 TAR_OPTIONS=\"-H v7\"
32195 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32197 genfile --length 10240 --file file1
32199 tar cfz archive file1
32202 tar xfv archive --warning=no-timestamp
32205 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
32210 export TEST_TAR_FORMAT
32211 TAR_OPTIONS="-H v7"
32216 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32218 genfile --length 10240 --file file1
32220 tar cfz archive file1
32223 tar xfv archive --warning=no-timestamp
32226 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32227 at_status=$? at_failed=false
32229 at_fn_diff_devnull "$at_stderr" || at_failed=:
32230 echo >>"$at_stdout"; $as_echo "separator
32234 $at_diff - "$at_stdout" || at_failed=:
32235 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
32236 $at_failed && at_fn_log_failure
32240 $as_echo "$at_srcdir/comprec.at:25:
32243 TEST_TAR_FORMAT=oldgnu
32244 export TEST_TAR_FORMAT
32245 TAR_OPTIONS=\"-H oldgnu\"
32250 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32252 genfile --length 10240 --file file1
32254 tar cfz archive file1
32257 tar xfv archive --warning=no-timestamp
32260 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
32264 TEST_TAR_FORMAT=oldgnu
32265 export TEST_TAR_FORMAT
32266 TAR_OPTIONS="-H oldgnu"
32271 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32273 genfile --length 10240 --file file1
32275 tar cfz archive file1
32278 tar xfv archive --warning=no-timestamp
32281 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32282 at_status=$? at_failed=false
32284 at_fn_diff_devnull "$at_stderr" || at_failed=:
32285 echo >>"$at_stdout"; $as_echo "separator
32289 $at_diff - "$at_stdout" || at_failed=:
32290 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
32291 $at_failed && at_fn_log_failure
32295 $as_echo "$at_srcdir/comprec.at:25:
32298 TEST_TAR_FORMAT=ustar
32299 export TEST_TAR_FORMAT
32300 TAR_OPTIONS=\"-H ustar\"
32305 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32307 genfile --length 10240 --file file1
32309 tar cfz archive file1
32312 tar xfv archive --warning=no-timestamp
32315 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
32319 TEST_TAR_FORMAT=ustar
32320 export TEST_TAR_FORMAT
32321 TAR_OPTIONS="-H ustar"
32326 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32328 genfile --length 10240 --file file1
32330 tar cfz archive file1
32333 tar xfv archive --warning=no-timestamp
32336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32337 at_status=$? at_failed=false
32339 at_fn_diff_devnull "$at_stderr" || at_failed=:
32340 echo >>"$at_stdout"; $as_echo "separator
32344 $at_diff - "$at_stdout" || at_failed=:
32345 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
32346 $at_failed && at_fn_log_failure
32350 $as_echo "$at_srcdir/comprec.at:25:
32353 TEST_TAR_FORMAT=posix
32354 export TEST_TAR_FORMAT
32355 TAR_OPTIONS=\"-H posix\"
32360 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32362 genfile --length 10240 --file file1
32364 tar cfz archive file1
32367 tar xfv archive --warning=no-timestamp
32370 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
32374 TEST_TAR_FORMAT=posix
32375 export TEST_TAR_FORMAT
32376 TAR_OPTIONS="-H posix"
32381 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32383 genfile --length 10240 --file file1
32385 tar cfz archive file1
32388 tar xfv archive --warning=no-timestamp
32391 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32392 at_status=$? at_failed=false
32394 at_fn_diff_devnull "$at_stderr" || at_failed=:
32395 echo >>"$at_stdout"; $as_echo "separator
32399 $at_diff - "$at_stdout" || at_failed=:
32400 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
32401 $at_failed && at_fn_log_failure
32405 $as_echo "$at_srcdir/comprec.at:25:
32408 TEST_TAR_FORMAT=gnu
32409 export TEST_TAR_FORMAT
32410 TAR_OPTIONS=\"-H gnu\"
32415 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32417 genfile --length 10240 --file file1
32419 tar cfz archive file1
32422 tar xfv archive --warning=no-timestamp
32425 at_fn_check_prepare_notrace 'an embedded newline' "comprec.at:25"
32429 TEST_TAR_FORMAT=gnu
32430 export TEST_TAR_FORMAT
32431 TAR_OPTIONS="-H gnu"
32436 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
32438 genfile --length 10240 --file file1
32440 tar cfz archive file1
32443 tar xfv archive --warning=no-timestamp
32446 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32447 at_status=$? at_failed=false
32449 at_fn_diff_devnull "$at_stderr" || at_failed=:
32450 echo >>"$at_stdout"; $as_echo "separator
32454 $at_diff - "$at_stdout" || at_failed=:
32455 at_fn_check_status 0 $at_status "$at_srcdir/comprec.at:25"
32456 $at_failed && at_fn_log_failure
32463 $at_times_p && times >"$at_times_file"
32464 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32465 read at_status <"$at_status_file"
32468 at_fn_group_banner 141 'shortfile.at:26' \
32469 "short input files" " " 23
32471 test -f $XFAILFILE && at_xfail=yes
32473 $as_echo "141. $at_setup_line: testing $at_desc ..."
32481 $as_echo "$at_srcdir/shortfile.at:29:
32484 TEST_TAR_FORMAT=gnu
32485 export TEST_TAR_FORMAT
32486 TAR_OPTIONS=\"-H gnu\"
32490 genfile --length 511 --file foo || exit 5
32493 at_fn_check_prepare_notrace 'an embedded newline' "shortfile.at:29"
32497 TEST_TAR_FORMAT=gnu
32498 export TEST_TAR_FORMAT
32499 TAR_OPTIONS="-H gnu"
32503 genfile --length 511 --file foo || exit 5
32506 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32507 at_status=$? at_failed=false
32509 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
32510 tar: Exiting with failure status due to previous errors
32512 $at_diff - "$at_stderr" || at_failed=:
32513 at_fn_diff_devnull "$at_stdout" || at_failed=:
32514 at_fn_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
32515 $at_failed && at_fn_log_failure
32522 $at_times_p && times >"$at_times_file"
32523 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32524 read at_status <"$at_status_file"
32527 at_fn_group_banner 142 'shortupd.at:31' \
32528 "updating short archives" " " 23
32530 test -f $XFAILFILE && at_xfail=yes
32532 $as_echo "142. $at_setup_line: testing $at_desc ..."
32540 $as_echo "$at_srcdir/shortupd.at:34:
32544 export TEST_TAR_FORMAT
32545 TAR_OPTIONS=\"-H v7\"
32552 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32557 export TEST_TAR_FORMAT
32558 TAR_OPTIONS="-H v7"
32565 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32566 at_status=$? at_failed=false
32568 at_fn_diff_devnull "$at_stderr" || at_failed=:
32569 at_fn_diff_devnull "$at_stdout" || at_failed=:
32570 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32571 $at_failed && at_fn_log_failure
32575 $as_echo "$at_srcdir/shortupd.at:34:
32578 TEST_TAR_FORMAT=oldgnu
32579 export TEST_TAR_FORMAT
32580 TAR_OPTIONS=\"-H oldgnu\"
32587 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32591 TEST_TAR_FORMAT=oldgnu
32592 export TEST_TAR_FORMAT
32593 TAR_OPTIONS="-H oldgnu"
32600 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32601 at_status=$? at_failed=false
32603 at_fn_diff_devnull "$at_stderr" || at_failed=:
32604 at_fn_diff_devnull "$at_stdout" || at_failed=:
32605 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32606 $at_failed && at_fn_log_failure
32610 $as_echo "$at_srcdir/shortupd.at:34:
32613 TEST_TAR_FORMAT=ustar
32614 export TEST_TAR_FORMAT
32615 TAR_OPTIONS=\"-H ustar\"
32622 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32626 TEST_TAR_FORMAT=ustar
32627 export TEST_TAR_FORMAT
32628 TAR_OPTIONS="-H ustar"
32635 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32636 at_status=$? at_failed=false
32638 at_fn_diff_devnull "$at_stderr" || at_failed=:
32639 at_fn_diff_devnull "$at_stdout" || at_failed=:
32640 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32641 $at_failed && at_fn_log_failure
32645 $as_echo "$at_srcdir/shortupd.at:34:
32648 TEST_TAR_FORMAT=posix
32649 export TEST_TAR_FORMAT
32650 TAR_OPTIONS=\"-H posix\"
32657 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32661 TEST_TAR_FORMAT=posix
32662 export TEST_TAR_FORMAT
32663 TAR_OPTIONS="-H posix"
32670 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32671 at_status=$? at_failed=false
32673 at_fn_diff_devnull "$at_stderr" || at_failed=:
32674 at_fn_diff_devnull "$at_stdout" || at_failed=:
32675 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32676 $at_failed && at_fn_log_failure
32680 $as_echo "$at_srcdir/shortupd.at:34:
32683 TEST_TAR_FORMAT=gnu
32684 export TEST_TAR_FORMAT
32685 TAR_OPTIONS=\"-H gnu\"
32692 at_fn_check_prepare_notrace 'an embedded newline' "shortupd.at:34"
32696 TEST_TAR_FORMAT=gnu
32697 export TEST_TAR_FORMAT
32698 TAR_OPTIONS="-H gnu"
32705 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32706 at_status=$? at_failed=false
32708 at_fn_diff_devnull "$at_stderr" || at_failed=:
32709 at_fn_diff_devnull "$at_stdout" || at_failed=:
32710 at_fn_check_status 0 $at_status "$at_srcdir/shortupd.at:34"
32711 $at_failed && at_fn_log_failure
32718 $at_times_p && times >"$at_times_file"
32719 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
32720 read at_status <"$at_status_file"
32723 at_fn_group_banner 143 'truncate.at:29' \
32726 test -f $XFAILFILE && at_xfail=yes
32728 $as_echo "143. $at_setup_line: testing $at_desc ..."
32736 $as_echo "$at_srcdir/truncate.at:32:
32740 export TEST_TAR_FORMAT
32741 TAR_OPTIONS=\"-H v7\"
32745 genfile --file foo --length 200k
32747 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32748 echo Exit status: \$?
32750 genfile --file foo --seek 195k --length 5k --pattern=zeros
32752 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32757 export TEST_TAR_FORMAT
32758 TAR_OPTIONS="-H v7"
32762 genfile --file foo --length 200k
32764 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32765 echo Exit status: $?
32767 genfile --file foo --seek 195k --length 5k --pattern=zeros
32769 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32770 at_status=$? at_failed=false
32772 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32774 $at_diff - "$at_stderr" || at_failed=:
32775 echo >>"$at_stdout"; $as_echo "foo
32780 foo: Mod time differs
32783 $at_diff - "$at_stdout" || at_failed=:
32784 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32785 $at_failed && at_fn_log_failure
32789 $as_echo "$at_srcdir/truncate.at:32:
32792 TEST_TAR_FORMAT=oldgnu
32793 export TEST_TAR_FORMAT
32794 TAR_OPTIONS=\"-H oldgnu\"
32798 genfile --file foo --length 200k
32800 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32801 echo Exit status: \$?
32803 genfile --file foo --seek 195k --length 5k --pattern=zeros
32805 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32809 TEST_TAR_FORMAT=oldgnu
32810 export TEST_TAR_FORMAT
32811 TAR_OPTIONS="-H oldgnu"
32815 genfile --file foo --length 200k
32817 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32818 echo Exit status: $?
32820 genfile --file foo --seek 195k --length 5k --pattern=zeros
32822 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32823 at_status=$? at_failed=false
32825 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32827 $at_diff - "$at_stderr" || at_failed=:
32828 echo >>"$at_stdout"; $as_echo "foo
32833 foo: Mod time differs
32836 $at_diff - "$at_stdout" || at_failed=:
32837 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32838 $at_failed && at_fn_log_failure
32842 $as_echo "$at_srcdir/truncate.at:32:
32845 TEST_TAR_FORMAT=ustar
32846 export TEST_TAR_FORMAT
32847 TAR_OPTIONS=\"-H ustar\"
32851 genfile --file foo --length 200k
32853 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32854 echo Exit status: \$?
32856 genfile --file foo --seek 195k --length 5k --pattern=zeros
32858 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32862 TEST_TAR_FORMAT=ustar
32863 export TEST_TAR_FORMAT
32864 TAR_OPTIONS="-H ustar"
32868 genfile --file foo --length 200k
32870 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32871 echo Exit status: $?
32873 genfile --file foo --seek 195k --length 5k --pattern=zeros
32875 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32876 at_status=$? at_failed=false
32878 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32880 $at_diff - "$at_stderr" || at_failed=:
32881 echo >>"$at_stdout"; $as_echo "foo
32886 foo: Mod time differs
32889 $at_diff - "$at_stdout" || at_failed=:
32890 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32891 $at_failed && at_fn_log_failure
32895 $as_echo "$at_srcdir/truncate.at:32:
32898 TEST_TAR_FORMAT=posix
32899 export TEST_TAR_FORMAT
32900 TAR_OPTIONS=\"-H posix\"
32904 genfile --file foo --length 200k
32906 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32907 echo Exit status: \$?
32909 genfile --file foo --seek 195k --length 5k --pattern=zeros
32911 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32915 TEST_TAR_FORMAT=posix
32916 export TEST_TAR_FORMAT
32917 TAR_OPTIONS="-H posix"
32921 genfile --file foo --length 200k
32923 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32924 echo Exit status: $?
32926 genfile --file foo --seek 195k --length 5k --pattern=zeros
32928 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32929 at_status=$? at_failed=false
32931 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32933 $at_diff - "$at_stderr" || at_failed=:
32934 echo >>"$at_stdout"; $as_echo "foo
32939 foo: Mod time differs
32942 $at_diff - "$at_stdout" || at_failed=:
32943 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32944 $at_failed && at_fn_log_failure
32948 $as_echo "$at_srcdir/truncate.at:32:
32951 TEST_TAR_FORMAT=gnu
32952 export TEST_TAR_FORMAT
32953 TAR_OPTIONS=\"-H gnu\"
32957 genfile --file foo --length 200k
32959 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32960 echo Exit status: \$?
32962 genfile --file foo --seek 195k --length 5k --pattern=zeros
32964 at_fn_check_prepare_notrace 'an embedded newline' "truncate.at:32"
32968 TEST_TAR_FORMAT=gnu
32969 export TEST_TAR_FORMAT
32970 TAR_OPTIONS="-H gnu"
32974 genfile --file foo --length 200k
32976 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
32977 echo Exit status: $?
32979 genfile --file foo --seek 195k --length 5k --pattern=zeros
32981 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
32982 at_status=$? at_failed=false
32984 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
32986 $at_diff - "$at_stderr" || at_failed=:
32987 echo >>"$at_stdout"; $as_echo "foo
32992 foo: Mod time differs
32995 $at_diff - "$at_stdout" || at_failed=:
32996 at_fn_check_status 1 $at_status "$at_srcdir/truncate.at:32"
32997 $at_failed && at_fn_log_failure
33004 $at_times_p && times >"$at_times_file"
33005 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33006 read at_status <"$at_status_file"
33009 at_fn_group_banner 144 'grow.at:24' \
33012 test -f $XFAILFILE && at_xfail=yes
33014 $as_echo "144. $at_setup_line: testing $at_desc ..."
33022 $as_echo "$at_srcdir/grow.at:27:
33026 export TEST_TAR_FORMAT
33027 TAR_OPTIONS=\"-H v7\"
33031 genfile --file foo --length 50000k
33033 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33035 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
33040 export TEST_TAR_FORMAT
33041 TAR_OPTIONS="-H v7"
33045 genfile --file foo --length 50000k
33047 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33049 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33050 at_status=$? at_failed=false
33052 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
33054 $at_diff - "$at_stderr" || at_failed=:
33055 echo >>"$at_stdout"; $as_echo "foo
33058 $at_diff - "$at_stdout" || at_failed=:
33059 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
33060 $at_failed && at_fn_log_failure
33064 $as_echo "$at_srcdir/grow.at:27:
33067 TEST_TAR_FORMAT=oldgnu
33068 export TEST_TAR_FORMAT
33069 TAR_OPTIONS=\"-H oldgnu\"
33073 genfile --file foo --length 50000k
33075 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33077 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
33081 TEST_TAR_FORMAT=oldgnu
33082 export TEST_TAR_FORMAT
33083 TAR_OPTIONS="-H oldgnu"
33087 genfile --file foo --length 50000k
33089 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33091 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33092 at_status=$? at_failed=false
33094 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
33096 $at_diff - "$at_stderr" || at_failed=:
33097 echo >>"$at_stdout"; $as_echo "foo
33100 $at_diff - "$at_stdout" || at_failed=:
33101 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
33102 $at_failed && at_fn_log_failure
33106 $as_echo "$at_srcdir/grow.at:27:
33109 TEST_TAR_FORMAT=ustar
33110 export TEST_TAR_FORMAT
33111 TAR_OPTIONS=\"-H ustar\"
33115 genfile --file foo --length 50000k
33117 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33119 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
33123 TEST_TAR_FORMAT=ustar
33124 export TEST_TAR_FORMAT
33125 TAR_OPTIONS="-H ustar"
33129 genfile --file foo --length 50000k
33131 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33133 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33134 at_status=$? at_failed=false
33136 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
33138 $at_diff - "$at_stderr" || at_failed=:
33139 echo >>"$at_stdout"; $as_echo "foo
33142 $at_diff - "$at_stdout" || at_failed=:
33143 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
33144 $at_failed && at_fn_log_failure
33148 $as_echo "$at_srcdir/grow.at:27:
33151 TEST_TAR_FORMAT=posix
33152 export TEST_TAR_FORMAT
33153 TAR_OPTIONS=\"-H posix\"
33157 genfile --file foo --length 50000k
33159 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33161 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
33165 TEST_TAR_FORMAT=posix
33166 export TEST_TAR_FORMAT
33167 TAR_OPTIONS="-H posix"
33171 genfile --file foo --length 50000k
33173 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33176 at_status=$? at_failed=false
33178 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
33180 $at_diff - "$at_stderr" || at_failed=:
33181 echo >>"$at_stdout"; $as_echo "foo
33184 $at_diff - "$at_stdout" || at_failed=:
33185 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
33186 $at_failed && at_fn_log_failure
33190 $as_echo "$at_srcdir/grow.at:27:
33193 TEST_TAR_FORMAT=gnu
33194 export TEST_TAR_FORMAT
33195 TAR_OPTIONS=\"-H gnu\"
33199 genfile --file foo --length 50000k
33201 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33203 at_fn_check_prepare_notrace 'an embedded newline' "grow.at:27"
33207 TEST_TAR_FORMAT=gnu
33208 export TEST_TAR_FORMAT
33209 TAR_OPTIONS="-H gnu"
33213 genfile --file foo --length 50000k
33215 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
33217 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33218 at_status=$? at_failed=false
33220 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
33222 $at_diff - "$at_stderr" || at_failed=:
33223 echo >>"$at_stdout"; $as_echo "foo
33226 $at_diff - "$at_stdout" || at_failed=:
33227 at_fn_check_status 1 $at_status "$at_srcdir/grow.at:27"
33228 $at_failed && at_fn_log_failure
33235 $at_times_p && times >"$at_times_file"
33236 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33237 read at_status <"$at_status_file"
33240 at_fn_group_banner 145 'sigpipe.at:21' \
33241 "sigpipe handling" " " 23
33244 $as_echo "145. $at_setup_line: testing $at_desc ..."
33249 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
33250 # error" diagnostics when piping output to another programs.
33251 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
33252 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
33253 # <20100319184141.GC30047@wo.int.altlinux.org>
33256 $as_echo "$at_srcdir/sigpipe.at:30:
33258 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
33263 genfile --length 2048 --file first
33264 genfile --length 2048 --file second
33265 genfile --length 2049 --file third
33267 tar cf archive first second third
33269 # Discard diagnostics that some shells generate about broken pipes.
33270 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
33272 at_fn_check_prepare_notrace 'a `...` command substitution' "sigpipe.at:30"
33275 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
33280 genfile --length 2048 --file first
33281 genfile --length 2048 --file second
33282 genfile --length 2049 --file third
33284 tar cf archive first second third
33286 # Discard diagnostics that some shells generate about broken pipes.
33287 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
33289 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33290 at_status=$? at_failed=false
33292 at_fn_diff_devnull "$at_stderr" || at_failed=:
33293 at_fn_diff_devnull "$at_stdout" || at_failed=:
33294 at_fn_check_status 0 $at_status "$at_srcdir/sigpipe.at:30"
33295 $at_failed && at_fn_log_failure
33300 $at_times_p && times >"$at_times_file"
33301 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33302 read at_status <"$at_status_file"
33305 at_fn_group_banner 146 'remfiles01.at:28' \
33306 "remove-files with compression" " " 24
33309 $as_echo "146. $at_setup_line: testing $at_desc ..."
33316 $as_echo "$at_srcdir/remfiles01.at:32:
33318 echo \"test\" > \$\$
33320 cat \$\$ > /dev/null 2>&1
33323 test \$result -eq 0 && exit 77
33326 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33329 case \`(cat \"\$at_myself\" 2>&3 | :) 3>&1 >/dev/null\` in #(
33334 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33339 genfile --file a --length 0
33344 # Depending on when the SIGPIPE gets delivered, the invocation below
33345 # may finish with either
33346 # tar: a: Cannot write: Broken pipe
33348 # tar: Child returned status 2
33350 # Discard diagnostics that some shells generate about broken pipes,
33351 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
33352 # Gzip's exit code is propagated to the shell. Usually it is 141.
33353 # Convert all non-zero exits to 2 to make it predictable.
33354 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
33356 sed -n '/(child)/p' err >&2
33361 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles01.at:32"
33366 cat $$ > /dev/null 2>&1
33369 test $result -eq 0 && exit 77
33372 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33375 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
33380 test -z "`sort < /dev/null 2>&1`" || exit 77
33385 genfile --file a --length 0
33390 # Depending on when the SIGPIPE gets delivered, the invocation below
33391 # may finish with either
33392 # tar: a: Cannot write: Broken pipe
33394 # tar: Child returned status 2
33396 # Discard diagnostics that some shells generate about broken pipes,
33397 # and discard all of tar's diagnostics except for the ones saying "(child)".
33398 # Gzip's exit code is propagated to the shell. Usually it is 141.
33399 # Convert all non-zero exits to 2 to make it predictable.
33400 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
33402 sed -n '/(child)/p' err >&2
33407 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33408 at_status=$? at_failed=false
33410 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
33411 tar (child): Error is not recoverable: exiting now
33413 $at_diff - "$at_stderr" || at_failed=:
33414 echo >>"$at_stdout"; $as_echo ".
33419 $at_diff - "$at_stdout" || at_failed=:
33420 at_fn_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
33421 $at_failed && at_fn_log_failure
33426 $at_times_p && times >"$at_times_file"
33427 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33428 read at_status <"$at_status_file"
33431 at_fn_group_banner 147 'remfiles02.at:28' \
33432 "remove-files with compression: grand-child" " " 24
33435 $as_echo "147. $at_setup_line: testing $at_desc ..."
33442 $as_echo "$at_srcdir/remfiles02.at:32:
33444 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33447 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33456 tar -c -f a -z --remove-files b c 2>err
33458 sed -n '/(child)/p' err >&2
33463 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles02.at:32"
33466 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33469 test -z "`sort < /dev/null 2>&1`" || exit 77
33478 tar -c -f a -z --remove-files b c 2>err
33480 sed -n '/(child)/p' err >&2
33485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33486 at_status=$? at_failed=false
33488 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
33489 tar (child): Error is not recoverable: exiting now
33491 $at_diff - "$at_stderr" || at_failed=:
33492 echo >>"$at_stdout"; $as_echo ".
33497 $at_diff - "$at_stdout" || at_failed=:
33498 at_fn_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
33499 $at_failed && at_fn_log_failure
33504 $at_times_p && times >"$at_times_file"
33505 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33506 read at_status <"$at_status_file"
33509 at_fn_group_banner 148 'remfiles03.at:28' \
33510 "remove-files with symbolic links" " " 24
33513 $as_echo "148. $at_setup_line: testing $at_desc ..."
33519 $as_echo "$at_srcdir/remfiles03.at:31:
33522 ln -s b a/c || exit 77
33523 tar --remove-files -cf a.tar a
33526 at_fn_check_prepare_notrace 'an embedded newline' "remfiles03.at:31"
33530 ln -s b a/c || exit 77
33531 tar --remove-files -cf a.tar a
33534 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33535 at_status=$? at_failed=false
33537 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
33539 $at_diff - "$at_stderr" || at_failed=:
33540 at_fn_diff_devnull "$at_stdout" || at_failed=:
33541 at_fn_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
33542 $at_failed && at_fn_log_failure
33547 $at_times_p && times >"$at_times_file"
33548 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33549 read at_status <"$at_status_file"
33552 at_fn_group_banner 149 'remfiles04a.at:25' \
33553 "remove-files with -C:rel in -c/non-incr. mode" " " 24
33555 test -f $XFAILFILE && at_xfail=yes
33557 $as_echo "149. $at_setup_line: testing $at_desc ..."
33565 $as_echo "$at_srcdir/remfiles04a.at:28:
33568 TEST_TAR_FORMAT=gnu
33569 export TEST_TAR_FORMAT
33570 TAR_OPTIONS=\"-H gnu\"
33575 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33579 echo foobar > foo/bar
33580 tar -cf foo.tar --remove-files -C foo bar
33584 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04a.at:28"
33588 TEST_TAR_FORMAT=gnu
33589 export TEST_TAR_FORMAT
33590 TAR_OPTIONS="-H gnu"
33595 test -z "`sort < /dev/null 2>&1`" || exit 77
33599 echo foobar > foo/bar
33600 tar -cf foo.tar --remove-files -C foo bar
33604 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33605 at_status=$? at_failed=false
33607 at_fn_diff_devnull "$at_stderr" || at_failed=:
33608 echo >>"$at_stdout"; $as_echo "A
33614 $at_diff - "$at_stdout" || at_failed=:
33615 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04a.at:28"
33616 $at_failed && at_fn_log_failure
33623 $at_times_p && times >"$at_times_file"
33624 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33625 read at_status <"$at_status_file"
33628 at_fn_group_banner 150 'remfiles04b.at:33' \
33629 "remove-files with -C:rel in -c/incr. mode" " " 24
33631 test -f $XFAILFILE && at_xfail=yes
33633 $as_echo "150. $at_setup_line: testing $at_desc ..."
33641 $as_echo "$at_srcdir/remfiles04b.at:36:
33644 TEST_TAR_FORMAT=gnu
33645 export TEST_TAR_FORMAT
33646 TAR_OPTIONS=\"-H gnu\"
33651 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33655 echo foobar > foo/bar
33656 tar -cf foo.tar --incremental --remove-files -C foo bar
33660 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04b.at:36"
33664 TEST_TAR_FORMAT=gnu
33665 export TEST_TAR_FORMAT
33666 TAR_OPTIONS="-H gnu"
33671 test -z "`sort < /dev/null 2>&1`" || exit 77
33675 echo foobar > foo/bar
33676 tar -cf foo.tar --incremental --remove-files -C foo bar
33680 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33681 at_status=$? at_failed=false
33683 at_fn_diff_devnull "$at_stderr" || at_failed=:
33684 echo >>"$at_stdout"; $as_echo "A
33690 $at_diff - "$at_stdout" || at_failed=:
33691 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04b.at:36"
33692 $at_failed && at_fn_log_failure
33699 $at_times_p && times >"$at_times_file"
33700 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33701 read at_status <"$at_status_file"
33704 at_fn_group_banner 151 'remfiles04c.at:33' \
33705 "remove-files with -C:rel in -r mode" " " 24
33707 test -f $XFAILFILE && at_xfail=yes
33709 $as_echo "151. $at_setup_line: testing $at_desc ..."
33717 $as_echo "$at_srcdir/remfiles04c.at:36:
33720 TEST_TAR_FORMAT=gnu
33721 export TEST_TAR_FORMAT
33722 TAR_OPTIONS=\"-H gnu\"
33727 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33731 echo foobar > foo/bar
33732 tar -cf foo.tar -C foo bar
33735 tar -rf foo.tar --remove-files -C foo bar
33739 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles04c.at:36"
33743 TEST_TAR_FORMAT=gnu
33744 export TEST_TAR_FORMAT
33745 TAR_OPTIONS="-H gnu"
33750 test -z "`sort < /dev/null 2>&1`" || exit 77
33754 echo foobar > foo/bar
33755 tar -cf foo.tar -C foo bar
33758 tar -rf foo.tar --remove-files -C foo bar
33762 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33763 at_status=$? at_failed=false
33765 at_fn_diff_devnull "$at_stderr" || at_failed=:
33766 echo >>"$at_stdout"; $as_echo "A
33778 $at_diff - "$at_stdout" || at_failed=:
33779 at_fn_check_status 0 $at_status "$at_srcdir/remfiles04c.at:36"
33780 $at_failed && at_fn_log_failure
33787 $at_times_p && times >"$at_times_file"
33788 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33789 read at_status <"$at_status_file"
33792 at_fn_group_banner 152 'remfiles05a.at:34' \
33793 "remove-files with -C:rel,rel in -c/non-incr. mode" "" 24
33795 test -f $XFAILFILE && at_xfail=yes
33797 $as_echo "152. $at_setup_line: testing $at_desc ..."
33805 $as_echo "$at_srcdir/remfiles05a.at:37:
33808 TEST_TAR_FORMAT=gnu
33809 export TEST_TAR_FORMAT
33810 TAR_OPTIONS=\"-H gnu\"
33815 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33820 echo foo/file > foo/file
33821 echo bar/file > bar/file
33823 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
33827 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05a.at:37"
33831 TEST_TAR_FORMAT=gnu
33832 export TEST_TAR_FORMAT
33833 TAR_OPTIONS="-H gnu"
33838 test -z "`sort < /dev/null 2>&1`" || exit 77
33843 echo foo/file > foo/file
33844 echo bar/file > bar/file
33846 tar -cvf foo.tar --remove-files -C foo file -C ../bar file
33850 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33851 at_status=$? at_failed=false
33853 echo >>"$at_stderr"; $as_echo "A
33856 $at_diff - "$at_stderr" || at_failed=:
33857 echo >>"$at_stdout"; $as_echo "A
33867 $at_diff - "$at_stdout" || at_failed=:
33868 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05a.at:37"
33869 $at_failed && at_fn_log_failure
33876 $at_times_p && times >"$at_times_file"
33877 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33878 read at_status <"$at_status_file"
33881 at_fn_group_banner 153 'remfiles05b.at:25' \
33882 "remove-files with -C:rel,rel in -c/incr. mode" " " 24
33884 test -f $XFAILFILE && at_xfail=yes
33886 $as_echo "153. $at_setup_line: testing $at_desc ..."
33894 $as_echo "$at_srcdir/remfiles05b.at:28:
33897 TEST_TAR_FORMAT=gnu
33898 export TEST_TAR_FORMAT
33899 TAR_OPTIONS=\"-H gnu\"
33904 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33909 echo foo/file > foo/file
33910 echo bar/file > bar/file
33912 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
33916 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05b.at:28"
33920 TEST_TAR_FORMAT=gnu
33921 export TEST_TAR_FORMAT
33922 TAR_OPTIONS="-H gnu"
33927 test -z "`sort < /dev/null 2>&1`" || exit 77
33932 echo foo/file > foo/file
33933 echo bar/file > bar/file
33935 tar -cvf foo.tar --incremental --remove-files -C foo file -C ../bar file
33939 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
33940 at_status=$? at_failed=false
33942 echo >>"$at_stderr"; $as_echo "A
33945 $at_diff - "$at_stderr" || at_failed=:
33946 echo >>"$at_stdout"; $as_echo "A
33956 $at_diff - "$at_stdout" || at_failed=:
33957 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05b.at:28"
33958 $at_failed && at_fn_log_failure
33965 $at_times_p && times >"$at_times_file"
33966 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
33967 read at_status <"$at_status_file"
33970 at_fn_group_banner 154 'remfiles05c.at:25' \
33971 "remove-files with -C:rel,rel in -r mode" " " 24
33973 test -f $XFAILFILE && at_xfail=yes
33975 $as_echo "154. $at_setup_line: testing $at_desc ..."
33983 $as_echo "$at_srcdir/remfiles05c.at:28:
33986 TEST_TAR_FORMAT=gnu
33987 export TEST_TAR_FORMAT
33988 TAR_OPTIONS=\"-H gnu\"
33993 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
33998 echo foo/file > foo/file
33999 echo bar/file > bar/file
34000 tar -cf foo.tar -C foo file -C ../bar file
34004 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
34008 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles05c.at:28"
34012 TEST_TAR_FORMAT=gnu
34013 export TEST_TAR_FORMAT
34014 TAR_OPTIONS="-H gnu"
34019 test -z "`sort < /dev/null 2>&1`" || exit 77
34024 echo foo/file > foo/file
34025 echo bar/file > bar/file
34026 tar -cf foo.tar -C foo file -C ../bar file
34030 tar -rvf foo.tar --remove-files -C foo file -C ../bar file
34034 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34035 at_status=$? at_failed=false
34037 echo >>"$at_stderr"; $as_echo "A
34041 $at_diff - "$at_stderr" || at_failed=:
34042 echo >>"$at_stdout"; $as_echo "A
34060 $at_diff - "$at_stdout" || at_failed=:
34061 at_fn_check_status 0 $at_status "$at_srcdir/remfiles05c.at:28"
34062 $at_failed && at_fn_log_failure
34069 $at_times_p && times >"$at_times_file"
34070 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34071 read at_status <"$at_status_file"
34074 at_fn_group_banner 155 'remfiles06a.at:25' \
34075 "remove-files with -C:rel,abs in -c/non-incr. mode" "" 24
34077 test -f $XFAILFILE && at_xfail=yes
34079 $as_echo "155. $at_setup_line: testing $at_desc ..."
34087 $as_echo "$at_srcdir/remfiles06a.at:28:
34090 TEST_TAR_FORMAT=gnu
34091 export TEST_TAR_FORMAT
34092 TAR_OPTIONS=\"-H gnu\"
34097 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34102 echo foo/file > foo/file
34103 echo bar/file > bar/file
34106 tar -cvf foo.tar --remove-files -C foo file -C \$DIR/bar file
34110 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06a.at:28"
34114 TEST_TAR_FORMAT=gnu
34115 export TEST_TAR_FORMAT
34116 TAR_OPTIONS="-H gnu"
34121 test -z "`sort < /dev/null 2>&1`" || exit 77
34126 echo foo/file > foo/file
34127 echo bar/file > bar/file
34130 tar -cvf foo.tar --remove-files -C foo file -C $DIR/bar file
34134 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34135 at_status=$? at_failed=false
34137 echo >>"$at_stderr"; $as_echo "A
34140 $at_diff - "$at_stderr" || at_failed=:
34141 echo >>"$at_stdout"; $as_echo "A
34151 $at_diff - "$at_stdout" || at_failed=:
34152 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06a.at:28"
34153 $at_failed && at_fn_log_failure
34160 $at_times_p && times >"$at_times_file"
34161 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34162 read at_status <"$at_status_file"
34165 at_fn_group_banner 156 'remfiles06b.at:25' \
34166 "remove-files with -C:rel,abs in -c/incr. mode" " " 24
34168 test -f $XFAILFILE && at_xfail=yes
34170 $as_echo "156. $at_setup_line: testing $at_desc ..."
34178 $as_echo "$at_srcdir/remfiles06b.at:28:
34181 TEST_TAR_FORMAT=gnu
34182 export TEST_TAR_FORMAT
34183 TAR_OPTIONS=\"-H gnu\"
34188 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34193 echo foo/file > foo/file
34194 echo bar/file > bar/file
34197 tar -cvf foo.tar --incremental --remove-files -C foo file -C \$DIR/bar file
34201 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06b.at:28"
34205 TEST_TAR_FORMAT=gnu
34206 export TEST_TAR_FORMAT
34207 TAR_OPTIONS="-H gnu"
34212 test -z "`sort < /dev/null 2>&1`" || exit 77
34217 echo foo/file > foo/file
34218 echo bar/file > bar/file
34221 tar -cvf foo.tar --incremental --remove-files -C foo file -C $DIR/bar file
34225 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34226 at_status=$? at_failed=false
34228 echo >>"$at_stderr"; $as_echo "A
34231 $at_diff - "$at_stderr" || at_failed=:
34232 echo >>"$at_stdout"; $as_echo "A
34242 $at_diff - "$at_stdout" || at_failed=:
34243 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06b.at:28"
34244 $at_failed && at_fn_log_failure
34251 $at_times_p && times >"$at_times_file"
34252 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34253 read at_status <"$at_status_file"
34256 at_fn_group_banner 157 'remfiles06c.at:25' \
34257 "remove-files with -C:rel,abs in -r mode" " " 24
34259 test -f $XFAILFILE && at_xfail=yes
34261 $as_echo "157. $at_setup_line: testing $at_desc ..."
34269 $as_echo "$at_srcdir/remfiles06c.at:28:
34272 TEST_TAR_FORMAT=gnu
34273 export TEST_TAR_FORMAT
34274 TAR_OPTIONS=\"-H gnu\"
34279 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34284 echo foo/file > foo/file
34285 echo bar/file > bar/file
34287 tar -cf foo.tar -C foo file -C \$DIR/bar file
34291 tar -rvf foo.tar --remove-files -C foo file -C \$DIR/bar file
34295 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles06c.at:28"
34299 TEST_TAR_FORMAT=gnu
34300 export TEST_TAR_FORMAT
34301 TAR_OPTIONS="-H gnu"
34306 test -z "`sort < /dev/null 2>&1`" || exit 77
34311 echo foo/file > foo/file
34312 echo bar/file > bar/file
34314 tar -cf foo.tar -C foo file -C $DIR/bar file
34318 tar -rvf foo.tar --remove-files -C foo file -C $DIR/bar file
34322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34323 at_status=$? at_failed=false
34325 echo >>"$at_stderr"; $as_echo "A
34329 $at_diff - "$at_stderr" || at_failed=:
34330 echo >>"$at_stdout"; $as_echo "A
34348 $at_diff - "$at_stdout" || at_failed=:
34349 at_fn_check_status 0 $at_status "$at_srcdir/remfiles06c.at:28"
34350 $at_failed && at_fn_log_failure
34357 $at_times_p && times >"$at_times_file"
34358 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34359 read at_status <"$at_status_file"
34362 at_fn_group_banner 158 'remfiles07a.at:25' \
34363 "remove-files with -C:abs,rel in -c/non-incr. mode" "" 24
34365 test -f $XFAILFILE && at_xfail=yes
34367 $as_echo "158. $at_setup_line: testing $at_desc ..."
34375 $as_echo "$at_srcdir/remfiles07a.at:28:
34378 TEST_TAR_FORMAT=gnu
34379 export TEST_TAR_FORMAT
34380 TAR_OPTIONS=\"-H gnu\"
34385 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34390 echo foo/file > foo/file
34391 echo bar/file > bar/file
34394 tar -cvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
34398 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07a.at:28"
34402 TEST_TAR_FORMAT=gnu
34403 export TEST_TAR_FORMAT
34404 TAR_OPTIONS="-H gnu"
34409 test -z "`sort < /dev/null 2>&1`" || exit 77
34414 echo foo/file > foo/file
34415 echo bar/file > bar/file
34418 tar -cvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
34422 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34423 at_status=$? at_failed=false
34425 echo >>"$at_stderr"; $as_echo "A
34428 $at_diff - "$at_stderr" || at_failed=:
34429 echo >>"$at_stdout"; $as_echo "A
34439 $at_diff - "$at_stdout" || at_failed=:
34440 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07a.at:28"
34441 $at_failed && at_fn_log_failure
34448 $at_times_p && times >"$at_times_file"
34449 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34450 read at_status <"$at_status_file"
34453 at_fn_group_banner 159 'remfiles07b.at:25' \
34454 "remove-files with -C:abs,rel in -c/incr. mode" " " 24
34456 test -f $XFAILFILE && at_xfail=yes
34458 $as_echo "159. $at_setup_line: testing $at_desc ..."
34466 $as_echo "$at_srcdir/remfiles07b.at:28:
34469 TEST_TAR_FORMAT=gnu
34470 export TEST_TAR_FORMAT
34471 TAR_OPTIONS=\"-H gnu\"
34476 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34481 echo foo/file > foo/file
34482 echo bar/file > bar/file
34485 tar -cvf foo.tar --incremental --remove-files -C \$DIR/foo file -C ../bar file
34489 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07b.at:28"
34493 TEST_TAR_FORMAT=gnu
34494 export TEST_TAR_FORMAT
34495 TAR_OPTIONS="-H gnu"
34500 test -z "`sort < /dev/null 2>&1`" || exit 77
34505 echo foo/file > foo/file
34506 echo bar/file > bar/file
34509 tar -cvf foo.tar --incremental --remove-files -C $DIR/foo file -C ../bar file
34513 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34514 at_status=$? at_failed=false
34516 echo >>"$at_stderr"; $as_echo "A
34519 $at_diff - "$at_stderr" || at_failed=:
34520 echo >>"$at_stdout"; $as_echo "A
34530 $at_diff - "$at_stdout" || at_failed=:
34531 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07b.at:28"
34532 $at_failed && at_fn_log_failure
34539 $at_times_p && times >"$at_times_file"
34540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34541 read at_status <"$at_status_file"
34544 at_fn_group_banner 160 'remfiles07c.at:25' \
34545 "remove-files with -C:abs,rel in -r mode" " " 24
34547 test -f $XFAILFILE && at_xfail=yes
34549 $as_echo "160. $at_setup_line: testing $at_desc ..."
34557 $as_echo "$at_srcdir/remfiles07c.at:28:
34560 TEST_TAR_FORMAT=gnu
34561 export TEST_TAR_FORMAT
34562 TAR_OPTIONS=\"-H gnu\"
34567 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34572 echo foo/file > foo/file
34573 echo bar/file > bar/file
34575 tar -cf foo.tar -C \$DIR/foo file -C ../bar file
34579 tar -rvf foo.tar --remove-files -C \$DIR/foo file -C ../bar file
34583 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles07c.at:28"
34587 TEST_TAR_FORMAT=gnu
34588 export TEST_TAR_FORMAT
34589 TAR_OPTIONS="-H gnu"
34594 test -z "`sort < /dev/null 2>&1`" || exit 77
34599 echo foo/file > foo/file
34600 echo bar/file > bar/file
34602 tar -cf foo.tar -C $DIR/foo file -C ../bar file
34606 tar -rvf foo.tar --remove-files -C $DIR/foo file -C ../bar file
34610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34611 at_status=$? at_failed=false
34613 echo >>"$at_stderr"; $as_echo "A
34617 $at_diff - "$at_stderr" || at_failed=:
34618 echo >>"$at_stdout"; $as_echo "A
34636 $at_diff - "$at_stdout" || at_failed=:
34637 at_fn_check_status 0 $at_status "$at_srcdir/remfiles07c.at:28"
34638 $at_failed && at_fn_log_failure
34645 $at_times_p && times >"$at_times_file"
34646 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34647 read at_status <"$at_status_file"
34650 at_fn_group_banner 161 'remfiles08a.at:28' \
34651 "remove-files deleting two subdirs in -c/non-incr. mode" "" 24
34653 test -f $XFAILFILE && at_xfail=yes
34655 $as_echo "161. $at_setup_line: testing $at_desc ..."
34663 $as_echo "$at_srcdir/remfiles08a.at:31:
34666 TEST_TAR_FORMAT=gnu
34667 export TEST_TAR_FORMAT
34668 TAR_OPTIONS=\"-H gnu\"
34674 echo foo/foo_file > foo/foo_file
34675 echo bar/bar_file > bar/bar_file
34677 tar -cvf foo.tar --remove-files -C foo . -C ../bar .
34681 at_fn_check_prepare_notrace 'an embedded newline' "remfiles08a.at:31"
34685 TEST_TAR_FORMAT=gnu
34686 export TEST_TAR_FORMAT
34687 TAR_OPTIONS="-H gnu"
34693 echo foo/foo_file > foo/foo_file
34694 echo bar/bar_file > bar/bar_file
34696 tar -cvf foo.tar --remove-files -C foo . -C ../bar .
34700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34701 at_status=$? at_failed=false
34703 echo >>"$at_stderr"; $as_echo "A
34706 $at_diff - "$at_stderr" || at_failed=:
34707 echo >>"$at_stdout"; $as_echo "A
34716 $at_diff - "$at_stdout" || at_failed=:
34717 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08a.at:31"
34718 $at_failed && at_fn_log_failure
34725 $at_times_p && times >"$at_times_file"
34726 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34727 read at_status <"$at_status_file"
34730 at_fn_group_banner 162 'remfiles08b.at:31' \
34731 "remove-files deleting two subdirs in -c/incr. mode" "" 24
34733 test -f $XFAILFILE && at_xfail=yes
34735 $as_echo "162. $at_setup_line: testing $at_desc ..."
34740 # we expect to fail in tar 1.27
34745 $as_echo "$at_srcdir/remfiles08b.at:36:
34748 TEST_TAR_FORMAT=gnu
34749 export TEST_TAR_FORMAT
34750 TAR_OPTIONS=\"-H gnu\"
34756 echo foo/foo_file > foo/foo_file
34757 echo bar/bar_file > bar/bar_file
34759 tar -cvf foo.tar --incremental --remove-files -C foo . -C ../bar .
34763 at_fn_check_prepare_notrace 'an embedded newline' "remfiles08b.at:36"
34767 TEST_TAR_FORMAT=gnu
34768 export TEST_TAR_FORMAT
34769 TAR_OPTIONS="-H gnu"
34775 echo foo/foo_file > foo/foo_file
34776 echo bar/bar_file > bar/bar_file
34778 tar -cvf foo.tar --incremental --remove-files -C foo . -C ../bar .
34782 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34783 at_status=$? at_failed=false
34785 echo >>"$at_stderr"; $as_echo "A
34786 tar: .: Directory is new
34787 tar: .: Directory is new
34790 $at_diff - "$at_stderr" || at_failed=:
34791 echo >>"$at_stdout"; $as_echo "A
34800 $at_diff - "$at_stdout" || at_failed=:
34801 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08b.at:36"
34802 $at_failed && at_fn_log_failure
34809 $at_times_p && times >"$at_times_file"
34810 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34811 read at_status <"$at_status_file"
34814 at_fn_group_banner 163 'remfiles08c.at:28' \
34815 "remove-files deleting two subdirs in -r mode" " " 24
34817 test -f $XFAILFILE && at_xfail=yes
34819 $as_echo "163. $at_setup_line: testing $at_desc ..."
34827 $as_echo "$at_srcdir/remfiles08c.at:31:
34830 TEST_TAR_FORMAT=gnu
34831 export TEST_TAR_FORMAT
34832 TAR_OPTIONS=\"-H gnu\"
34837 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
34841 echo foo/foo_file > foo/foo_file
34842 echo bar/bar_file > bar/bar_file
34843 tar -cf foo.tar -C foo . -C ../bar .
34847 tar -rvf foo.tar --remove-files -C foo . -C ../bar .
34851 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles08c.at:31"
34855 TEST_TAR_FORMAT=gnu
34856 export TEST_TAR_FORMAT
34857 TAR_OPTIONS="-H gnu"
34862 test -z "`sort < /dev/null 2>&1`" || exit 77
34866 echo foo/foo_file > foo/foo_file
34867 echo bar/bar_file > bar/bar_file
34868 tar -cf foo.tar -C foo . -C ../bar .
34872 tar -rvf foo.tar --remove-files -C foo . -C ../bar .
34876 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34877 at_status=$? at_failed=false
34879 echo >>"$at_stderr"; $as_echo "A
34883 $at_diff - "$at_stderr" || at_failed=:
34884 echo >>"$at_stdout"; $as_echo "A
34900 $at_diff - "$at_stdout" || at_failed=:
34901 at_fn_check_status 0 $at_status "$at_srcdir/remfiles08c.at:31"
34902 $at_failed && at_fn_log_failure
34909 $at_times_p && times >"$at_times_file"
34910 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34911 read at_status <"$at_status_file"
34914 at_fn_group_banner 164 'remfiles09a.at:25' \
34915 "remove-files on full directory in -c/non-incr. mode" "" 24
34917 test -f $XFAILFILE && at_xfail=yes
34919 $as_echo "164. $at_setup_line: testing $at_desc ..."
34927 $as_echo "$at_srcdir/remfiles09a.at:28:
34930 TEST_TAR_FORMAT=gnu
34931 export TEST_TAR_FORMAT
34932 TAR_OPTIONS=\"-H gnu\"
34937 echo foo/file > foo/file
34939 tar -cvf foo.tar --remove-files foo
34943 at_fn_check_prepare_notrace 'an embedded newline' "remfiles09a.at:28"
34947 TEST_TAR_FORMAT=gnu
34948 export TEST_TAR_FORMAT
34949 TAR_OPTIONS="-H gnu"
34954 echo foo/file > foo/file
34956 tar -cvf foo.tar --remove-files foo
34960 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
34961 at_status=$? at_failed=false
34963 echo >>"$at_stderr"; $as_echo "A
34966 $at_diff - "$at_stderr" || at_failed=:
34967 echo >>"$at_stdout"; $as_echo "A
34974 $at_diff - "$at_stdout" || at_failed=:
34975 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09a.at:28"
34976 $at_failed && at_fn_log_failure
34983 $at_times_p && times >"$at_times_file"
34984 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
34985 read at_status <"$at_status_file"
34988 at_fn_group_banner 165 'remfiles09b.at:29' \
34989 "remove-files on full directory in -c/incr. mode" "" 24
34991 test -f $XFAILFILE && at_xfail=yes
34993 $as_echo "165. $at_setup_line: testing $at_desc ..."
34998 # we expect to fail in tar 1.27
35003 $as_echo "$at_srcdir/remfiles09b.at:34:
35006 TEST_TAR_FORMAT=gnu
35007 export TEST_TAR_FORMAT
35008 TAR_OPTIONS=\"-H gnu\"
35013 echo foo/file > foo/file
35015 tar -cvf foo.tar --incremental --remove-files foo
35019 at_fn_check_prepare_notrace 'an embedded newline' "remfiles09b.at:34"
35023 TEST_TAR_FORMAT=gnu
35024 export TEST_TAR_FORMAT
35025 TAR_OPTIONS="-H gnu"
35030 echo foo/file > foo/file
35032 tar -cvf foo.tar --incremental --remove-files foo
35036 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35037 at_status=$? at_failed=false
35039 echo >>"$at_stderr"; $as_echo "A
35040 tar: foo: Directory is new
35043 $at_diff - "$at_stderr" || at_failed=:
35044 echo >>"$at_stdout"; $as_echo "A
35051 $at_diff - "$at_stdout" || at_failed=:
35052 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09b.at:34"
35053 $at_failed && at_fn_log_failure
35060 $at_times_p && times >"$at_times_file"
35061 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35062 read at_status <"$at_status_file"
35065 at_fn_group_banner 166 'remfiles09c.at:25' \
35066 "remove-files on full directory in -r mode" " " 24
35068 test -f $XFAILFILE && at_xfail=yes
35070 $as_echo "166. $at_setup_line: testing $at_desc ..."
35078 $as_echo "$at_srcdir/remfiles09c.at:28:
35081 TEST_TAR_FORMAT=gnu
35082 export TEST_TAR_FORMAT
35083 TAR_OPTIONS=\"-H gnu\"
35088 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
35091 echo foo/file > foo/file
35092 tar -cf foo.tar foo
35096 tar -rvf foo.tar --remove-files foo
35100 at_fn_check_prepare_notrace 'a `...` command substitution' "remfiles09c.at:28"
35104 TEST_TAR_FORMAT=gnu
35105 export TEST_TAR_FORMAT
35106 TAR_OPTIONS="-H gnu"
35111 test -z "`sort < /dev/null 2>&1`" || exit 77
35114 echo foo/file > foo/file
35115 tar -cf foo.tar foo
35119 tar -rvf foo.tar --remove-files foo
35123 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35124 at_status=$? at_failed=false
35126 echo >>"$at_stderr"; $as_echo "A
35130 $at_diff - "$at_stderr" || at_failed=:
35131 echo >>"$at_stdout"; $as_echo "A
35143 $at_diff - "$at_stdout" || at_failed=:
35144 at_fn_check_status 0 $at_status "$at_srcdir/remfiles09c.at:28"
35145 $at_failed && at_fn_log_failure
35152 $at_times_p && times >"$at_times_file"
35153 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35154 read at_status <"$at_status_file"
35157 at_fn_group_banner 167 'remfiles10.at:20' \
35158 "remove-files" " " 24
35160 test -f $XFAILFILE && at_xfail=yes
35162 $as_echo "167. $at_setup_line: testing $at_desc ..."
35170 $as_echo "$at_srcdir/remfiles10.at:23:
35173 TEST_TAR_FORMAT=gnu
35174 export TEST_TAR_FORMAT
35175 TAR_OPTIONS=\"-H gnu\"
35180 echo foo/file > foo/file
35182 (cd foo && tar -cvf ../foo.tar --remove-files .)
35188 at_fn_check_prepare_notrace 'an embedded newline' "remfiles10.at:23"
35192 TEST_TAR_FORMAT=gnu
35193 export TEST_TAR_FORMAT
35194 TAR_OPTIONS="-H gnu"
35199 echo foo/file > foo/file
35201 (cd foo && tar -cvf ../foo.tar --remove-files .)
35207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35208 at_status=$? at_failed=false
35210 echo >>"$at_stderr"; $as_echo "A
35211 tar: .: Cannot rmdir: Invalid argument
35212 tar: Exiting with failure status due to previous errors
35215 $at_diff - "$at_stderr" || at_failed=:
35216 echo >>"$at_stdout"; $as_echo "A
35222 $at_diff - "$at_stdout" || at_failed=:
35223 at_fn_check_status 2 $at_status "$at_srcdir/remfiles10.at:23"
35224 $at_failed && at_fn_log_failure
35231 $at_times_p && times >"$at_times_file"
35232 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35233 read at_status <"$at_status_file"
35236 at_fn_group_banner 168 'xattr01.at:25' \
35237 "xattrs: basic functionality" " " 25
35239 test -f $XFAILFILE && at_xfail=yes
35241 $as_echo "168. $at_setup_line: testing $at_desc ..."
35249 $as_echo "$at_srcdir/xattr01.at:28:
35253 export TEST_TAR_FORMAT
35254 TAR_OPTIONS=\"-H v7\"
35260 file=\$(TMPDIR=. mktemp fiXXXXXX)
35262 setfattr -n user.test -v test \$file &> /dev/null
35263 if test \"\$?\" != 0; then
35268 getfattr \$file &> /dev/null
35269 if test \"\$?\" != 0; then
35274 file=\$(TMPDIR=. mktemp fiXXXXXX)
35275 setfattr -n user.test -v ahoj \$file
35276 # check whether tar fails to store xattrs
35277 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35278 if test \"\$err\" != \"0\"; then
35283 genfile --file dir/file
35285 setfattr -n user.test -v OurDirValue dir
35286 setfattr -n user.test -v OurFileValue dir/file
35288 tar --xattrs -cf archive.tar dir
35291 tar --xattrs -xf archive.tar
35293 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35294 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35296 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35301 export TEST_TAR_FORMAT
35302 TAR_OPTIONS="-H v7"
35308 file=$(TMPDIR=. mktemp fiXXXXXX)
35310 setfattr -n user.test -v test $file &> /dev/null
35311 if test "$?" != 0; then
35316 getfattr $file &> /dev/null
35317 if test "$?" != 0; then
35322 file=$(TMPDIR=. mktemp fiXXXXXX)
35323 setfattr -n user.test -v ahoj $file
35324 # check whether tar fails to store xattrs
35325 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35326 if test "$err" != "0"; then
35331 genfile --file dir/file
35333 setfattr -n user.test -v OurDirValue dir
35334 setfattr -n user.test -v OurFileValue dir/file
35336 tar --xattrs -cf archive.tar dir
35339 tar --xattrs -xf archive.tar
35341 getfattr -h -d dir | grep -v -e '^#' -e ^$
35342 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35345 at_status=$? at_failed=false
35347 at_fn_diff_devnull "$at_stderr" || at_failed=:
35348 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35349 user.test=\"OurFileValue\"
35351 $at_diff - "$at_stdout" || at_failed=:
35352 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35353 $at_failed && at_fn_log_failure
35357 $as_echo "$at_srcdir/xattr01.at:28:
35360 TEST_TAR_FORMAT=oldgnu
35361 export TEST_TAR_FORMAT
35362 TAR_OPTIONS=\"-H oldgnu\"
35368 file=\$(TMPDIR=. mktemp fiXXXXXX)
35370 setfattr -n user.test -v test \$file &> /dev/null
35371 if test \"\$?\" != 0; then
35376 getfattr \$file &> /dev/null
35377 if test \"\$?\" != 0; then
35382 file=\$(TMPDIR=. mktemp fiXXXXXX)
35383 setfattr -n user.test -v ahoj \$file
35384 # check whether tar fails to store xattrs
35385 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35386 if test \"\$err\" != \"0\"; then
35391 genfile --file dir/file
35393 setfattr -n user.test -v OurDirValue dir
35394 setfattr -n user.test -v OurFileValue dir/file
35396 tar --xattrs -cf archive.tar dir
35399 tar --xattrs -xf archive.tar
35401 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35402 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35404 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35408 TEST_TAR_FORMAT=oldgnu
35409 export TEST_TAR_FORMAT
35410 TAR_OPTIONS="-H oldgnu"
35416 file=$(TMPDIR=. mktemp fiXXXXXX)
35418 setfattr -n user.test -v test $file &> /dev/null
35419 if test "$?" != 0; then
35424 getfattr $file &> /dev/null
35425 if test "$?" != 0; then
35430 file=$(TMPDIR=. mktemp fiXXXXXX)
35431 setfattr -n user.test -v ahoj $file
35432 # check whether tar fails to store xattrs
35433 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35434 if test "$err" != "0"; then
35439 genfile --file dir/file
35441 setfattr -n user.test -v OurDirValue dir
35442 setfattr -n user.test -v OurFileValue dir/file
35444 tar --xattrs -cf archive.tar dir
35447 tar --xattrs -xf archive.tar
35449 getfattr -h -d dir | grep -v -e '^#' -e ^$
35450 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35452 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35453 at_status=$? at_failed=false
35455 at_fn_diff_devnull "$at_stderr" || at_failed=:
35456 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35457 user.test=\"OurFileValue\"
35459 $at_diff - "$at_stdout" || at_failed=:
35460 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35461 $at_failed && at_fn_log_failure
35465 $as_echo "$at_srcdir/xattr01.at:28:
35468 TEST_TAR_FORMAT=ustar
35469 export TEST_TAR_FORMAT
35470 TAR_OPTIONS=\"-H ustar\"
35476 file=\$(TMPDIR=. mktemp fiXXXXXX)
35478 setfattr -n user.test -v test \$file &> /dev/null
35479 if test \"\$?\" != 0; then
35484 getfattr \$file &> /dev/null
35485 if test \"\$?\" != 0; then
35490 file=\$(TMPDIR=. mktemp fiXXXXXX)
35491 setfattr -n user.test -v ahoj \$file
35492 # check whether tar fails to store xattrs
35493 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35494 if test \"\$err\" != \"0\"; then
35499 genfile --file dir/file
35501 setfattr -n user.test -v OurDirValue dir
35502 setfattr -n user.test -v OurFileValue dir/file
35504 tar --xattrs -cf archive.tar dir
35507 tar --xattrs -xf archive.tar
35509 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35510 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35512 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35516 TEST_TAR_FORMAT=ustar
35517 export TEST_TAR_FORMAT
35518 TAR_OPTIONS="-H ustar"
35524 file=$(TMPDIR=. mktemp fiXXXXXX)
35526 setfattr -n user.test -v test $file &> /dev/null
35527 if test "$?" != 0; then
35532 getfattr $file &> /dev/null
35533 if test "$?" != 0; then
35538 file=$(TMPDIR=. mktemp fiXXXXXX)
35539 setfattr -n user.test -v ahoj $file
35540 # check whether tar fails to store xattrs
35541 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35542 if test "$err" != "0"; then
35547 genfile --file dir/file
35549 setfattr -n user.test -v OurDirValue dir
35550 setfattr -n user.test -v OurFileValue dir/file
35552 tar --xattrs -cf archive.tar dir
35555 tar --xattrs -xf archive.tar
35557 getfattr -h -d dir | grep -v -e '^#' -e ^$
35558 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35560 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35561 at_status=$? at_failed=false
35563 at_fn_diff_devnull "$at_stderr" || at_failed=:
35564 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35565 user.test=\"OurFileValue\"
35567 $at_diff - "$at_stdout" || at_failed=:
35568 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35569 $at_failed && at_fn_log_failure
35573 $as_echo "$at_srcdir/xattr01.at:28:
35576 TEST_TAR_FORMAT=posix
35577 export TEST_TAR_FORMAT
35578 TAR_OPTIONS=\"-H posix\"
35584 file=\$(TMPDIR=. mktemp fiXXXXXX)
35586 setfattr -n user.test -v test \$file &> /dev/null
35587 if test \"\$?\" != 0; then
35592 getfattr \$file &> /dev/null
35593 if test \"\$?\" != 0; then
35598 file=\$(TMPDIR=. mktemp fiXXXXXX)
35599 setfattr -n user.test -v ahoj \$file
35600 # check whether tar fails to store xattrs
35601 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35602 if test \"\$err\" != \"0\"; then
35607 genfile --file dir/file
35609 setfattr -n user.test -v OurDirValue dir
35610 setfattr -n user.test -v OurFileValue dir/file
35612 tar --xattrs -cf archive.tar dir
35615 tar --xattrs -xf archive.tar
35617 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35618 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35620 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35624 TEST_TAR_FORMAT=posix
35625 export TEST_TAR_FORMAT
35626 TAR_OPTIONS="-H posix"
35632 file=$(TMPDIR=. mktemp fiXXXXXX)
35634 setfattr -n user.test -v test $file &> /dev/null
35635 if test "$?" != 0; then
35640 getfattr $file &> /dev/null
35641 if test "$?" != 0; then
35646 file=$(TMPDIR=. mktemp fiXXXXXX)
35647 setfattr -n user.test -v ahoj $file
35648 # check whether tar fails to store xattrs
35649 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35650 if test "$err" != "0"; then
35655 genfile --file dir/file
35657 setfattr -n user.test -v OurDirValue dir
35658 setfattr -n user.test -v OurFileValue dir/file
35660 tar --xattrs -cf archive.tar dir
35663 tar --xattrs -xf archive.tar
35665 getfattr -h -d dir | grep -v -e '^#' -e ^$
35666 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35669 at_status=$? at_failed=false
35671 at_fn_diff_devnull "$at_stderr" || at_failed=:
35672 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35673 user.test=\"OurFileValue\"
35675 $at_diff - "$at_stdout" || at_failed=:
35676 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35677 $at_failed && at_fn_log_failure
35681 $as_echo "$at_srcdir/xattr01.at:28:
35684 TEST_TAR_FORMAT=gnu
35685 export TEST_TAR_FORMAT
35686 TAR_OPTIONS=\"-H gnu\"
35692 file=\$(TMPDIR=. mktemp fiXXXXXX)
35694 setfattr -n user.test -v test \$file &> /dev/null
35695 if test \"\$?\" != 0; then
35700 getfattr \$file &> /dev/null
35701 if test \"\$?\" != 0; then
35706 file=\$(TMPDIR=. mktemp fiXXXXXX)
35707 setfattr -n user.test -v ahoj \$file
35708 # check whether tar fails to store xattrs
35709 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35710 if test \"\$err\" != \"0\"; then
35715 genfile --file dir/file
35717 setfattr -n user.test -v OurDirValue dir
35718 setfattr -n user.test -v OurFileValue dir/file
35720 tar --xattrs -cf archive.tar dir
35723 tar --xattrs -xf archive.tar
35725 getfattr -h -d dir | grep -v -e '^#' -e ^\$
35726 getfattr -h -d dir/file | grep -v -e '^#' -e ^\$
35728 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr01.at:28"
35732 TEST_TAR_FORMAT=gnu
35733 export TEST_TAR_FORMAT
35734 TAR_OPTIONS="-H gnu"
35740 file=$(TMPDIR=. mktemp fiXXXXXX)
35742 setfattr -n user.test -v test $file &> /dev/null
35743 if test "$?" != 0; then
35748 getfattr $file &> /dev/null
35749 if test "$?" != 0; then
35754 file=$(TMPDIR=. mktemp fiXXXXXX)
35755 setfattr -n user.test -v ahoj $file
35756 # check whether tar fails to store xattrs
35757 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35758 if test "$err" != "0"; then
35763 genfile --file dir/file
35765 setfattr -n user.test -v OurDirValue dir
35766 setfattr -n user.test -v OurFileValue dir/file
35768 tar --xattrs -cf archive.tar dir
35771 tar --xattrs -xf archive.tar
35773 getfattr -h -d dir | grep -v -e '^#' -e ^$
35774 getfattr -h -d dir/file | grep -v -e '^#' -e ^$
35776 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35777 at_status=$? at_failed=false
35779 at_fn_diff_devnull "$at_stderr" || at_failed=:
35780 echo >>"$at_stdout"; $as_echo "user.test=\"OurDirValue\"
35781 user.test=\"OurFileValue\"
35783 $at_diff - "$at_stdout" || at_failed=:
35784 at_fn_check_status 0 $at_status "$at_srcdir/xattr01.at:28"
35785 $at_failed && at_fn_log_failure
35792 $at_times_p && times >"$at_times_file"
35793 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
35794 read at_status <"$at_status_file"
35797 at_fn_group_banner 169 'xattr02.at:25' \
35798 "xattrs: change directory with -C option" " " 25
35800 test -f $XFAILFILE && at_xfail=yes
35802 $as_echo "169. $at_setup_line: testing $at_desc ..."
35810 $as_echo "$at_srcdir/xattr02.at:28:
35814 export TEST_TAR_FORMAT
35815 TAR_OPTIONS=\"-H v7\"
35821 file=\$(TMPDIR=. mktemp fiXXXXXX)
35823 setfattr -n user.test -v test \$file &> /dev/null
35824 if test \"\$?\" != 0; then
35829 getfattr \$file &> /dev/null
35830 if test \"\$?\" != 0; then
35835 file=\$(TMPDIR=. mktemp fiXXXXXX)
35836 setfattr -n user.test -v ahoj \$file
35837 # check whether tar fails to store xattrs
35838 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35839 if test \"\$err\" != \"0\"; then
35846 mkdir dir/subdir/subsubdir
35847 genfile --file dir/file1
35848 genfile --file dir/subdir/file2
35850 setfattr -n user.test -v OurFile1Value dir/file1
35851 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35852 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35854 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35858 tar --xattrs -xf archive.tar
35860 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35861 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35862 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35864 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35869 export TEST_TAR_FORMAT
35870 TAR_OPTIONS="-H v7"
35876 file=$(TMPDIR=. mktemp fiXXXXXX)
35878 setfattr -n user.test -v test $file &> /dev/null
35879 if test "$?" != 0; then
35884 getfattr $file &> /dev/null
35885 if test "$?" != 0; then
35890 file=$(TMPDIR=. mktemp fiXXXXXX)
35891 setfattr -n user.test -v ahoj $file
35892 # check whether tar fails to store xattrs
35893 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
35894 if test "$err" != "0"; then
35901 mkdir dir/subdir/subsubdir
35902 genfile --file dir/file1
35903 genfile --file dir/subdir/file2
35905 setfattr -n user.test -v OurFile1Value dir/file1
35906 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35907 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35909 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35913 tar --xattrs -xf archive.tar
35915 getfattr -h -d file1 | grep -v -e '^#' -e ^$
35916 getfattr -h -d file2 | grep -v -e '^#' -e ^$
35917 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
35919 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
35920 at_status=$? at_failed=false
35922 at_fn_diff_devnull "$at_stderr" || at_failed=:
35923 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
35924 user.test=\"OurFile2Value\"
35925 user.test=\"OurDirValue\"
35927 $at_diff - "$at_stdout" || at_failed=:
35928 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
35929 $at_failed && at_fn_log_failure
35933 $as_echo "$at_srcdir/xattr02.at:28:
35936 TEST_TAR_FORMAT=oldgnu
35937 export TEST_TAR_FORMAT
35938 TAR_OPTIONS=\"-H oldgnu\"
35944 file=\$(TMPDIR=. mktemp fiXXXXXX)
35946 setfattr -n user.test -v test \$file &> /dev/null
35947 if test \"\$?\" != 0; then
35952 getfattr \$file &> /dev/null
35953 if test \"\$?\" != 0; then
35958 file=\$(TMPDIR=. mktemp fiXXXXXX)
35959 setfattr -n user.test -v ahoj \$file
35960 # check whether tar fails to store xattrs
35961 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
35962 if test \"\$err\" != \"0\"; then
35969 mkdir dir/subdir/subsubdir
35970 genfile --file dir/file1
35971 genfile --file dir/subdir/file2
35973 setfattr -n user.test -v OurFile1Value dir/file1
35974 setfattr -n user.test -v OurFile2Value dir/subdir/file2
35975 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
35977 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
35981 tar --xattrs -xf archive.tar
35983 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
35984 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
35985 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
35987 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
35991 TEST_TAR_FORMAT=oldgnu
35992 export TEST_TAR_FORMAT
35993 TAR_OPTIONS="-H oldgnu"
35999 file=$(TMPDIR=. mktemp fiXXXXXX)
36001 setfattr -n user.test -v test $file &> /dev/null
36002 if test "$?" != 0; then
36007 getfattr $file &> /dev/null
36008 if test "$?" != 0; then
36013 file=$(TMPDIR=. mktemp fiXXXXXX)
36014 setfattr -n user.test -v ahoj $file
36015 # check whether tar fails to store xattrs
36016 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36017 if test "$err" != "0"; then
36024 mkdir dir/subdir/subsubdir
36025 genfile --file dir/file1
36026 genfile --file dir/subdir/file2
36028 setfattr -n user.test -v OurFile1Value dir/file1
36029 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36030 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36032 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36036 tar --xattrs -xf archive.tar
36038 getfattr -h -d file1 | grep -v -e '^#' -e ^$
36039 getfattr -h -d file2 | grep -v -e '^#' -e ^$
36040 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
36042 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36043 at_status=$? at_failed=false
36045 at_fn_diff_devnull "$at_stderr" || at_failed=:
36046 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
36047 user.test=\"OurFile2Value\"
36048 user.test=\"OurDirValue\"
36050 $at_diff - "$at_stdout" || at_failed=:
36051 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
36052 $at_failed && at_fn_log_failure
36056 $as_echo "$at_srcdir/xattr02.at:28:
36059 TEST_TAR_FORMAT=ustar
36060 export TEST_TAR_FORMAT
36061 TAR_OPTIONS=\"-H ustar\"
36067 file=\$(TMPDIR=. mktemp fiXXXXXX)
36069 setfattr -n user.test -v test \$file &> /dev/null
36070 if test \"\$?\" != 0; then
36075 getfattr \$file &> /dev/null
36076 if test \"\$?\" != 0; then
36081 file=\$(TMPDIR=. mktemp fiXXXXXX)
36082 setfattr -n user.test -v ahoj \$file
36083 # check whether tar fails to store xattrs
36084 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36085 if test \"\$err\" != \"0\"; then
36092 mkdir dir/subdir/subsubdir
36093 genfile --file dir/file1
36094 genfile --file dir/subdir/file2
36096 setfattr -n user.test -v OurFile1Value dir/file1
36097 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36098 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36100 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36104 tar --xattrs -xf archive.tar
36106 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
36107 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
36108 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
36110 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
36114 TEST_TAR_FORMAT=ustar
36115 export TEST_TAR_FORMAT
36116 TAR_OPTIONS="-H ustar"
36122 file=$(TMPDIR=. mktemp fiXXXXXX)
36124 setfattr -n user.test -v test $file &> /dev/null
36125 if test "$?" != 0; then
36130 getfattr $file &> /dev/null
36131 if test "$?" != 0; then
36136 file=$(TMPDIR=. mktemp fiXXXXXX)
36137 setfattr -n user.test -v ahoj $file
36138 # check whether tar fails to store xattrs
36139 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36140 if test "$err" != "0"; then
36147 mkdir dir/subdir/subsubdir
36148 genfile --file dir/file1
36149 genfile --file dir/subdir/file2
36151 setfattr -n user.test -v OurFile1Value dir/file1
36152 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36153 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36155 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36159 tar --xattrs -xf archive.tar
36161 getfattr -h -d file1 | grep -v -e '^#' -e ^$
36162 getfattr -h -d file2 | grep -v -e '^#' -e ^$
36163 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
36165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36166 at_status=$? at_failed=false
36168 at_fn_diff_devnull "$at_stderr" || at_failed=:
36169 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
36170 user.test=\"OurFile2Value\"
36171 user.test=\"OurDirValue\"
36173 $at_diff - "$at_stdout" || at_failed=:
36174 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
36175 $at_failed && at_fn_log_failure
36179 $as_echo "$at_srcdir/xattr02.at:28:
36182 TEST_TAR_FORMAT=posix
36183 export TEST_TAR_FORMAT
36184 TAR_OPTIONS=\"-H posix\"
36190 file=\$(TMPDIR=. mktemp fiXXXXXX)
36192 setfattr -n user.test -v test \$file &> /dev/null
36193 if test \"\$?\" != 0; then
36198 getfattr \$file &> /dev/null
36199 if test \"\$?\" != 0; then
36204 file=\$(TMPDIR=. mktemp fiXXXXXX)
36205 setfattr -n user.test -v ahoj \$file
36206 # check whether tar fails to store xattrs
36207 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36208 if test \"\$err\" != \"0\"; then
36215 mkdir dir/subdir/subsubdir
36216 genfile --file dir/file1
36217 genfile --file dir/subdir/file2
36219 setfattr -n user.test -v OurFile1Value dir/file1
36220 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36221 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36223 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36227 tar --xattrs -xf archive.tar
36229 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
36230 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
36231 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
36233 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
36237 TEST_TAR_FORMAT=posix
36238 export TEST_TAR_FORMAT
36239 TAR_OPTIONS="-H posix"
36245 file=$(TMPDIR=. mktemp fiXXXXXX)
36247 setfattr -n user.test -v test $file &> /dev/null
36248 if test "$?" != 0; then
36253 getfattr $file &> /dev/null
36254 if test "$?" != 0; then
36259 file=$(TMPDIR=. mktemp fiXXXXXX)
36260 setfattr -n user.test -v ahoj $file
36261 # check whether tar fails to store xattrs
36262 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36263 if test "$err" != "0"; then
36270 mkdir dir/subdir/subsubdir
36271 genfile --file dir/file1
36272 genfile --file dir/subdir/file2
36274 setfattr -n user.test -v OurFile1Value dir/file1
36275 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36276 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36278 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36282 tar --xattrs -xf archive.tar
36284 getfattr -h -d file1 | grep -v -e '^#' -e ^$
36285 getfattr -h -d file2 | grep -v -e '^#' -e ^$
36286 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
36288 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36289 at_status=$? at_failed=false
36291 at_fn_diff_devnull "$at_stderr" || at_failed=:
36292 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
36293 user.test=\"OurFile2Value\"
36294 user.test=\"OurDirValue\"
36296 $at_diff - "$at_stdout" || at_failed=:
36297 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
36298 $at_failed && at_fn_log_failure
36302 $as_echo "$at_srcdir/xattr02.at:28:
36305 TEST_TAR_FORMAT=gnu
36306 export TEST_TAR_FORMAT
36307 TAR_OPTIONS=\"-H gnu\"
36313 file=\$(TMPDIR=. mktemp fiXXXXXX)
36315 setfattr -n user.test -v test \$file &> /dev/null
36316 if test \"\$?\" != 0; then
36321 getfattr \$file &> /dev/null
36322 if test \"\$?\" != 0; then
36327 file=\$(TMPDIR=. mktemp fiXXXXXX)
36328 setfattr -n user.test -v ahoj \$file
36329 # check whether tar fails to store xattrs
36330 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36331 if test \"\$err\" != \"0\"; then
36338 mkdir dir/subdir/subsubdir
36339 genfile --file dir/file1
36340 genfile --file dir/subdir/file2
36342 setfattr -n user.test -v OurFile1Value dir/file1
36343 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36344 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36346 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36350 tar --xattrs -xf archive.tar
36352 getfattr -h -d file1 | grep -v -e '^#' -e ^\$
36353 getfattr -h -d file2 | grep -v -e '^#' -e ^\$
36354 getfattr -h -d subsubdir | grep -v -e '^#' -e ^\$
36356 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr02.at:28"
36360 TEST_TAR_FORMAT=gnu
36361 export TEST_TAR_FORMAT
36362 TAR_OPTIONS="-H gnu"
36368 file=$(TMPDIR=. mktemp fiXXXXXX)
36370 setfattr -n user.test -v test $file &> /dev/null
36371 if test "$?" != 0; then
36376 getfattr $file &> /dev/null
36377 if test "$?" != 0; then
36382 file=$(TMPDIR=. mktemp fiXXXXXX)
36383 setfattr -n user.test -v ahoj $file
36384 # check whether tar fails to store xattrs
36385 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36386 if test "$err" != "0"; then
36393 mkdir dir/subdir/subsubdir
36394 genfile --file dir/file1
36395 genfile --file dir/subdir/file2
36397 setfattr -n user.test -v OurFile1Value dir/file1
36398 setfattr -n user.test -v OurFile2Value dir/subdir/file2
36399 setfattr -n user.test -v OurDirValue dir/subdir/subsubdir
36401 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36405 tar --xattrs -xf archive.tar
36407 getfattr -h -d file1 | grep -v -e '^#' -e ^$
36408 getfattr -h -d file2 | grep -v -e '^#' -e ^$
36409 getfattr -h -d subsubdir | grep -v -e '^#' -e ^$
36411 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36412 at_status=$? at_failed=false
36414 at_fn_diff_devnull "$at_stderr" || at_failed=:
36415 echo >>"$at_stdout"; $as_echo "user.test=\"OurFile1Value\"
36416 user.test=\"OurFile2Value\"
36417 user.test=\"OurDirValue\"
36419 $at_diff - "$at_stdout" || at_failed=:
36420 at_fn_check_status 0 $at_status "$at_srcdir/xattr02.at:28"
36421 $at_failed && at_fn_log_failure
36428 $at_times_p && times >"$at_times_file"
36429 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
36430 read at_status <"$at_status_file"
36433 at_fn_group_banner 170 'xattr03.at:25' \
36434 "xattrs: trusted.* attributes" " " 25
36436 test -f $XFAILFILE && at_xfail=yes
36438 $as_echo "170. $at_setup_line: testing $at_desc ..."
36446 $as_echo "$at_srcdir/xattr03.at:28:
36450 export TEST_TAR_FORMAT
36451 TAR_OPTIONS=\"-H v7\"
36456 echo \"test\" > \$\$
36458 cat \$\$ > /dev/null 2>&1
36461 test \$result -eq 0 || exit 77
36465 file=\$(TMPDIR=. mktemp fiXXXXXX)
36467 setfattr -n user.test -v test \$file &> /dev/null
36468 if test \"\$?\" != 0; then
36473 getfattr \$file &> /dev/null
36474 if test \"\$?\" != 0; then
36479 file=\$(TMPDIR=. mktemp fiXXXXXX)
36480 setfattr -n user.test -v ahoj \$file
36481 # check whether tar fails to store xattrs
36482 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36483 if test \"\$err\" != \"0\"; then
36490 mkdir dir/subdir/subsubdir
36491 genfile --file dir/file1
36492 genfile --file dir/subdir/file2
36494 setfattr -n trusted.test -v OurFile1Value dir/file1
36495 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36496 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36498 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36502 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36504 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36505 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36506 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36508 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36513 export TEST_TAR_FORMAT
36514 TAR_OPTIONS="-H v7"
36521 cat $$ > /dev/null 2>&1
36524 test $result -eq 0 || exit 77
36528 file=$(TMPDIR=. mktemp fiXXXXXX)
36530 setfattr -n user.test -v test $file &> /dev/null
36531 if test "$?" != 0; then
36536 getfattr $file &> /dev/null
36537 if test "$?" != 0; then
36542 file=$(TMPDIR=. mktemp fiXXXXXX)
36543 setfattr -n user.test -v ahoj $file
36544 # check whether tar fails to store xattrs
36545 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36546 if test "$err" != "0"; then
36553 mkdir dir/subdir/subsubdir
36554 genfile --file dir/file1
36555 genfile --file dir/subdir/file2
36557 setfattr -n trusted.test -v OurFile1Value dir/file1
36558 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36559 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36561 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36565 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36567 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36568 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36569 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36571 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36572 at_status=$? at_failed=false
36574 at_fn_diff_devnull "$at_stderr" || at_failed=:
36575 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36576 trusted.test=\"OurFile2Value\"
36577 trusted.test=\"OurDirValue\"
36579 $at_diff - "$at_stdout" || at_failed=:
36580 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36581 $at_failed && at_fn_log_failure
36585 $as_echo "$at_srcdir/xattr03.at:28:
36588 TEST_TAR_FORMAT=oldgnu
36589 export TEST_TAR_FORMAT
36590 TAR_OPTIONS=\"-H oldgnu\"
36595 echo \"test\" > \$\$
36597 cat \$\$ > /dev/null 2>&1
36600 test \$result -eq 0 || exit 77
36604 file=\$(TMPDIR=. mktemp fiXXXXXX)
36606 setfattr -n user.test -v test \$file &> /dev/null
36607 if test \"\$?\" != 0; then
36612 getfattr \$file &> /dev/null
36613 if test \"\$?\" != 0; then
36618 file=\$(TMPDIR=. mktemp fiXXXXXX)
36619 setfattr -n user.test -v ahoj \$file
36620 # check whether tar fails to store xattrs
36621 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36622 if test \"\$err\" != \"0\"; then
36629 mkdir dir/subdir/subsubdir
36630 genfile --file dir/file1
36631 genfile --file dir/subdir/file2
36633 setfattr -n trusted.test -v OurFile1Value dir/file1
36634 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36635 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36637 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36641 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36643 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36644 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36645 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36647 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36651 TEST_TAR_FORMAT=oldgnu
36652 export TEST_TAR_FORMAT
36653 TAR_OPTIONS="-H oldgnu"
36660 cat $$ > /dev/null 2>&1
36663 test $result -eq 0 || exit 77
36667 file=$(TMPDIR=. mktemp fiXXXXXX)
36669 setfattr -n user.test -v test $file &> /dev/null
36670 if test "$?" != 0; then
36675 getfattr $file &> /dev/null
36676 if test "$?" != 0; then
36681 file=$(TMPDIR=. mktemp fiXXXXXX)
36682 setfattr -n user.test -v ahoj $file
36683 # check whether tar fails to store xattrs
36684 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36685 if test "$err" != "0"; then
36692 mkdir dir/subdir/subsubdir
36693 genfile --file dir/file1
36694 genfile --file dir/subdir/file2
36696 setfattr -n trusted.test -v OurFile1Value dir/file1
36697 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36698 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36700 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36704 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36706 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36707 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36708 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36710 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36711 at_status=$? at_failed=false
36713 at_fn_diff_devnull "$at_stderr" || at_failed=:
36714 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36715 trusted.test=\"OurFile2Value\"
36716 trusted.test=\"OurDirValue\"
36718 $at_diff - "$at_stdout" || at_failed=:
36719 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36720 $at_failed && at_fn_log_failure
36724 $as_echo "$at_srcdir/xattr03.at:28:
36727 TEST_TAR_FORMAT=ustar
36728 export TEST_TAR_FORMAT
36729 TAR_OPTIONS=\"-H ustar\"
36734 echo \"test\" > \$\$
36736 cat \$\$ > /dev/null 2>&1
36739 test \$result -eq 0 || exit 77
36743 file=\$(TMPDIR=. mktemp fiXXXXXX)
36745 setfattr -n user.test -v test \$file &> /dev/null
36746 if test \"\$?\" != 0; then
36751 getfattr \$file &> /dev/null
36752 if test \"\$?\" != 0; then
36757 file=\$(TMPDIR=. mktemp fiXXXXXX)
36758 setfattr -n user.test -v ahoj \$file
36759 # check whether tar fails to store xattrs
36760 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36761 if test \"\$err\" != \"0\"; then
36768 mkdir dir/subdir/subsubdir
36769 genfile --file dir/file1
36770 genfile --file dir/subdir/file2
36772 setfattr -n trusted.test -v OurFile1Value dir/file1
36773 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36774 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36776 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36780 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36782 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36783 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36784 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36786 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36790 TEST_TAR_FORMAT=ustar
36791 export TEST_TAR_FORMAT
36792 TAR_OPTIONS="-H ustar"
36799 cat $$ > /dev/null 2>&1
36802 test $result -eq 0 || exit 77
36806 file=$(TMPDIR=. mktemp fiXXXXXX)
36808 setfattr -n user.test -v test $file &> /dev/null
36809 if test "$?" != 0; then
36814 getfattr $file &> /dev/null
36815 if test "$?" != 0; then
36820 file=$(TMPDIR=. mktemp fiXXXXXX)
36821 setfattr -n user.test -v ahoj $file
36822 # check whether tar fails to store xattrs
36823 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36824 if test "$err" != "0"; then
36831 mkdir dir/subdir/subsubdir
36832 genfile --file dir/file1
36833 genfile --file dir/subdir/file2
36835 setfattr -n trusted.test -v OurFile1Value dir/file1
36836 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36837 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36839 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36843 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36845 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36846 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36847 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36849 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36850 at_status=$? at_failed=false
36852 at_fn_diff_devnull "$at_stderr" || at_failed=:
36853 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36854 trusted.test=\"OurFile2Value\"
36855 trusted.test=\"OurDirValue\"
36857 $at_diff - "$at_stdout" || at_failed=:
36858 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36859 $at_failed && at_fn_log_failure
36863 $as_echo "$at_srcdir/xattr03.at:28:
36866 TEST_TAR_FORMAT=posix
36867 export TEST_TAR_FORMAT
36868 TAR_OPTIONS=\"-H posix\"
36873 echo \"test\" > \$\$
36875 cat \$\$ > /dev/null 2>&1
36878 test \$result -eq 0 || exit 77
36882 file=\$(TMPDIR=. mktemp fiXXXXXX)
36884 setfattr -n user.test -v test \$file &> /dev/null
36885 if test \"\$?\" != 0; then
36890 getfattr \$file &> /dev/null
36891 if test \"\$?\" != 0; then
36896 file=\$(TMPDIR=. mktemp fiXXXXXX)
36897 setfattr -n user.test -v ahoj \$file
36898 # check whether tar fails to store xattrs
36899 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
36900 if test \"\$err\" != \"0\"; then
36907 mkdir dir/subdir/subsubdir
36908 genfile --file dir/file1
36909 genfile --file dir/subdir/file2
36911 setfattr -n trusted.test -v OurFile1Value dir/file1
36912 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36913 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36915 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36919 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36921 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
36922 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
36923 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
36925 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
36929 TEST_TAR_FORMAT=posix
36930 export TEST_TAR_FORMAT
36931 TAR_OPTIONS="-H posix"
36938 cat $$ > /dev/null 2>&1
36941 test $result -eq 0 || exit 77
36945 file=$(TMPDIR=. mktemp fiXXXXXX)
36947 setfattr -n user.test -v test $file &> /dev/null
36948 if test "$?" != 0; then
36953 getfattr $file &> /dev/null
36954 if test "$?" != 0; then
36959 file=$(TMPDIR=. mktemp fiXXXXXX)
36960 setfattr -n user.test -v ahoj $file
36961 # check whether tar fails to store xattrs
36962 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
36963 if test "$err" != "0"; then
36970 mkdir dir/subdir/subsubdir
36971 genfile --file dir/file1
36972 genfile --file dir/subdir/file2
36974 setfattr -n trusted.test -v OurFile1Value dir/file1
36975 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
36976 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
36978 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
36982 tar --xattrs --xattrs-include=trusted* -xf archive.tar
36984 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
36985 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
36986 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
36988 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
36989 at_status=$? at_failed=false
36991 at_fn_diff_devnull "$at_stderr" || at_failed=:
36992 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
36993 trusted.test=\"OurFile2Value\"
36994 trusted.test=\"OurDirValue\"
36996 $at_diff - "$at_stdout" || at_failed=:
36997 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
36998 $at_failed && at_fn_log_failure
37002 $as_echo "$at_srcdir/xattr03.at:28:
37005 TEST_TAR_FORMAT=gnu
37006 export TEST_TAR_FORMAT
37007 TAR_OPTIONS=\"-H gnu\"
37012 echo \"test\" > \$\$
37014 cat \$\$ > /dev/null 2>&1
37017 test \$result -eq 0 || exit 77
37021 file=\$(TMPDIR=. mktemp fiXXXXXX)
37023 setfattr -n user.test -v test \$file &> /dev/null
37024 if test \"\$?\" != 0; then
37029 getfattr \$file &> /dev/null
37030 if test \"\$?\" != 0; then
37035 file=\$(TMPDIR=. mktemp fiXXXXXX)
37036 setfattr -n user.test -v ahoj \$file
37037 # check whether tar fails to store xattrs
37038 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37039 if test \"\$err\" != \"0\"; then
37046 mkdir dir/subdir/subsubdir
37047 genfile --file dir/file1
37048 genfile --file dir/subdir/file2
37050 setfattr -n trusted.test -v OurFile1Value dir/file1
37051 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
37052 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
37054 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
37058 tar --xattrs --xattrs-include=trusted* -xf archive.tar
37060 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^\$
37061 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^\$
37062 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^\$
37064 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr03.at:28"
37068 TEST_TAR_FORMAT=gnu
37069 export TEST_TAR_FORMAT
37070 TAR_OPTIONS="-H gnu"
37077 cat $$ > /dev/null 2>&1
37080 test $result -eq 0 || exit 77
37084 file=$(TMPDIR=. mktemp fiXXXXXX)
37086 setfattr -n user.test -v test $file &> /dev/null
37087 if test "$?" != 0; then
37092 getfattr $file &> /dev/null
37093 if test "$?" != 0; then
37098 file=$(TMPDIR=. mktemp fiXXXXXX)
37099 setfattr -n user.test -v ahoj $file
37100 # check whether tar fails to store xattrs
37101 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37102 if test "$err" != "0"; then
37109 mkdir dir/subdir/subsubdir
37110 genfile --file dir/file1
37111 genfile --file dir/subdir/file2
37113 setfattr -n trusted.test -v OurFile1Value dir/file1
37114 setfattr -n trusted.test -v OurFile2Value dir/subdir/file2
37115 setfattr -n trusted.test -v OurDirValue dir/subdir/subsubdir
37117 tar --xattrs -cf archive.tar -C dir file1 -C subdir file2 subsubdir
37121 tar --xattrs --xattrs-include=trusted* -xf archive.tar
37123 getfattr -mtrusted. -d file1 | grep -v -e '^#' -e ^$
37124 getfattr -mtrusted. -d file2 | grep -v -e '^#' -e ^$
37125 getfattr -mtrusted. -d subsubdir | grep -v -e '^#' -e ^$
37127 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37128 at_status=$? at_failed=false
37130 at_fn_diff_devnull "$at_stderr" || at_failed=:
37131 echo >>"$at_stdout"; $as_echo "trusted.test=\"OurFile1Value\"
37132 trusted.test=\"OurFile2Value\"
37133 trusted.test=\"OurDirValue\"
37135 $at_diff - "$at_stdout" || at_failed=:
37136 at_fn_check_status 0 $at_status "$at_srcdir/xattr03.at:28"
37137 $at_failed && at_fn_log_failure
37144 $at_times_p && times >"$at_times_file"
37145 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37146 read at_status <"$at_status_file"
37149 at_fn_group_banner 171 'xattr04.at:26' \
37150 "xattrs: s/open/openat/ regression" " " 25
37152 test -f $XFAILFILE && at_xfail=yes
37154 $as_echo "171. $at_setup_line: testing $at_desc ..."
37162 $as_echo "$at_srcdir/xattr04.at:29:
37166 export TEST_TAR_FORMAT
37167 TAR_OPTIONS=\"-H v7\"
37173 file=\$(TMPDIR=. mktemp fiXXXXXX)
37175 setfattr -n user.test -v test \$file &> /dev/null
37176 if test \"\$?\" != 0; then
37181 getfattr \$file &> /dev/null
37182 if test \"\$?\" != 0; then
37187 file=\$(TMPDIR=. mktemp fiXXXXXX)
37188 setfattr -n user.test -v ahoj \$file
37189 # check whether tar fails to store xattrs
37190 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37191 if test \"\$err\" != \"0\"; then
37198 genfile --file dir/file
37200 setfattr -n user.test -v value dir/file
37202 # archive whole directory including binary xattrs
37203 tar --xattrs -cf archive.tar -C dir .
37205 tar --xattrs -xf archive.tar -C output
37207 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37210 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37215 export TEST_TAR_FORMAT
37216 TAR_OPTIONS="-H v7"
37222 file=$(TMPDIR=. mktemp fiXXXXXX)
37224 setfattr -n user.test -v test $file &> /dev/null
37225 if test "$?" != 0; then
37230 getfattr $file &> /dev/null
37231 if test "$?" != 0; then
37236 file=$(TMPDIR=. mktemp fiXXXXXX)
37237 setfattr -n user.test -v ahoj $file
37238 # check whether tar fails to store xattrs
37239 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37240 if test "$err" != "0"; then
37247 genfile --file dir/file
37249 setfattr -n user.test -v value dir/file
37251 # archive whole directory including binary xattrs
37252 tar --xattrs -cf archive.tar -C dir .
37254 tar --xattrs -xf archive.tar -C output
37256 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37260 at_status=$? at_failed=false
37262 at_fn_diff_devnull "$at_stderr" || at_failed=:
37263 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37265 $at_diff - "$at_stdout" || at_failed=:
37266 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37267 $at_failed && at_fn_log_failure
37271 $as_echo "$at_srcdir/xattr04.at:29:
37274 TEST_TAR_FORMAT=oldgnu
37275 export TEST_TAR_FORMAT
37276 TAR_OPTIONS=\"-H oldgnu\"
37282 file=\$(TMPDIR=. mktemp fiXXXXXX)
37284 setfattr -n user.test -v test \$file &> /dev/null
37285 if test \"\$?\" != 0; then
37290 getfattr \$file &> /dev/null
37291 if test \"\$?\" != 0; then
37296 file=\$(TMPDIR=. mktemp fiXXXXXX)
37297 setfattr -n user.test -v ahoj \$file
37298 # check whether tar fails to store xattrs
37299 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37300 if test \"\$err\" != \"0\"; then
37307 genfile --file dir/file
37309 setfattr -n user.test -v value dir/file
37311 # archive whole directory including binary xattrs
37312 tar --xattrs -cf archive.tar -C dir .
37314 tar --xattrs -xf archive.tar -C output
37316 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37319 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37323 TEST_TAR_FORMAT=oldgnu
37324 export TEST_TAR_FORMAT
37325 TAR_OPTIONS="-H oldgnu"
37331 file=$(TMPDIR=. mktemp fiXXXXXX)
37333 setfattr -n user.test -v test $file &> /dev/null
37334 if test "$?" != 0; then
37339 getfattr $file &> /dev/null
37340 if test "$?" != 0; then
37345 file=$(TMPDIR=. mktemp fiXXXXXX)
37346 setfattr -n user.test -v ahoj $file
37347 # check whether tar fails to store xattrs
37348 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37349 if test "$err" != "0"; then
37356 genfile --file dir/file
37358 setfattr -n user.test -v value dir/file
37360 # archive whole directory including binary xattrs
37361 tar --xattrs -cf archive.tar -C dir .
37363 tar --xattrs -xf archive.tar -C output
37365 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37369 at_status=$? at_failed=false
37371 at_fn_diff_devnull "$at_stderr" || at_failed=:
37372 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37374 $at_diff - "$at_stdout" || at_failed=:
37375 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37376 $at_failed && at_fn_log_failure
37380 $as_echo "$at_srcdir/xattr04.at:29:
37383 TEST_TAR_FORMAT=ustar
37384 export TEST_TAR_FORMAT
37385 TAR_OPTIONS=\"-H ustar\"
37391 file=\$(TMPDIR=. mktemp fiXXXXXX)
37393 setfattr -n user.test -v test \$file &> /dev/null
37394 if test \"\$?\" != 0; then
37399 getfattr \$file &> /dev/null
37400 if test \"\$?\" != 0; then
37405 file=\$(TMPDIR=. mktemp fiXXXXXX)
37406 setfattr -n user.test -v ahoj \$file
37407 # check whether tar fails to store xattrs
37408 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37409 if test \"\$err\" != \"0\"; then
37416 genfile --file dir/file
37418 setfattr -n user.test -v value dir/file
37420 # archive whole directory including binary xattrs
37421 tar --xattrs -cf archive.tar -C dir .
37423 tar --xattrs -xf archive.tar -C output
37425 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37428 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37432 TEST_TAR_FORMAT=ustar
37433 export TEST_TAR_FORMAT
37434 TAR_OPTIONS="-H ustar"
37440 file=$(TMPDIR=. mktemp fiXXXXXX)
37442 setfattr -n user.test -v test $file &> /dev/null
37443 if test "$?" != 0; then
37448 getfattr $file &> /dev/null
37449 if test "$?" != 0; then
37454 file=$(TMPDIR=. mktemp fiXXXXXX)
37455 setfattr -n user.test -v ahoj $file
37456 # check whether tar fails to store xattrs
37457 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37458 if test "$err" != "0"; then
37465 genfile --file dir/file
37467 setfattr -n user.test -v value dir/file
37469 # archive whole directory including binary xattrs
37470 tar --xattrs -cf archive.tar -C dir .
37472 tar --xattrs -xf archive.tar -C output
37474 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37477 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37478 at_status=$? at_failed=false
37480 at_fn_diff_devnull "$at_stderr" || at_failed=:
37481 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37483 $at_diff - "$at_stdout" || at_failed=:
37484 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37485 $at_failed && at_fn_log_failure
37489 $as_echo "$at_srcdir/xattr04.at:29:
37492 TEST_TAR_FORMAT=posix
37493 export TEST_TAR_FORMAT
37494 TAR_OPTIONS=\"-H posix\"
37500 file=\$(TMPDIR=. mktemp fiXXXXXX)
37502 setfattr -n user.test -v test \$file &> /dev/null
37503 if test \"\$?\" != 0; then
37508 getfattr \$file &> /dev/null
37509 if test \"\$?\" != 0; then
37514 file=\$(TMPDIR=. mktemp fiXXXXXX)
37515 setfattr -n user.test -v ahoj \$file
37516 # check whether tar fails to store xattrs
37517 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37518 if test \"\$err\" != \"0\"; then
37525 genfile --file dir/file
37527 setfattr -n user.test -v value dir/file
37529 # archive whole directory including binary xattrs
37530 tar --xattrs -cf archive.tar -C dir .
37532 tar --xattrs -xf archive.tar -C output
37534 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37537 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37541 TEST_TAR_FORMAT=posix
37542 export TEST_TAR_FORMAT
37543 TAR_OPTIONS="-H posix"
37549 file=$(TMPDIR=. mktemp fiXXXXXX)
37551 setfattr -n user.test -v test $file &> /dev/null
37552 if test "$?" != 0; then
37557 getfattr $file &> /dev/null
37558 if test "$?" != 0; then
37563 file=$(TMPDIR=. mktemp fiXXXXXX)
37564 setfattr -n user.test -v ahoj $file
37565 # check whether tar fails to store xattrs
37566 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37567 if test "$err" != "0"; then
37574 genfile --file dir/file
37576 setfattr -n user.test -v value dir/file
37578 # archive whole directory including binary xattrs
37579 tar --xattrs -cf archive.tar -C dir .
37581 tar --xattrs -xf archive.tar -C output
37583 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37586 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37587 at_status=$? at_failed=false
37589 at_fn_diff_devnull "$at_stderr" || at_failed=:
37590 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37592 $at_diff - "$at_stdout" || at_failed=:
37593 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37594 $at_failed && at_fn_log_failure
37598 $as_echo "$at_srcdir/xattr04.at:29:
37601 TEST_TAR_FORMAT=gnu
37602 export TEST_TAR_FORMAT
37603 TAR_OPTIONS=\"-H gnu\"
37609 file=\$(TMPDIR=. mktemp fiXXXXXX)
37611 setfattr -n user.test -v test \$file &> /dev/null
37612 if test \"\$?\" != 0; then
37617 getfattr \$file &> /dev/null
37618 if test \"\$?\" != 0; then
37623 file=\$(TMPDIR=. mktemp fiXXXXXX)
37624 setfattr -n user.test -v ahoj \$file
37625 # check whether tar fails to store xattrs
37626 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37627 if test \"\$err\" != \"0\"; then
37634 genfile --file dir/file
37636 setfattr -n user.test -v value dir/file
37638 # archive whole directory including binary xattrs
37639 tar --xattrs -cf archive.tar -C dir .
37641 tar --xattrs -xf archive.tar -C output
37643 getfattr -h -d output/file | grep -v -e '^#' -e ^\$
37646 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr04.at:29"
37650 TEST_TAR_FORMAT=gnu
37651 export TEST_TAR_FORMAT
37652 TAR_OPTIONS="-H gnu"
37658 file=$(TMPDIR=. mktemp fiXXXXXX)
37660 setfattr -n user.test -v test $file &> /dev/null
37661 if test "$?" != 0; then
37666 getfattr $file &> /dev/null
37667 if test "$?" != 0; then
37672 file=$(TMPDIR=. mktemp fiXXXXXX)
37673 setfattr -n user.test -v ahoj $file
37674 # check whether tar fails to store xattrs
37675 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37676 if test "$err" != "0"; then
37683 genfile --file dir/file
37685 setfattr -n user.test -v value dir/file
37687 # archive whole directory including binary xattrs
37688 tar --xattrs -cf archive.tar -C dir .
37690 tar --xattrs -xf archive.tar -C output
37692 getfattr -h -d output/file | grep -v -e '^#' -e ^$
37695 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37696 at_status=$? at_failed=false
37698 at_fn_diff_devnull "$at_stderr" || at_failed=:
37699 echo >>"$at_stdout"; $as_echo "user.test=\"value\"
37701 $at_diff - "$at_stdout" || at_failed=:
37702 at_fn_check_status 0 $at_status "$at_srcdir/xattr04.at:29"
37703 $at_failed && at_fn_log_failure
37710 $at_times_p && times >"$at_times_file"
37711 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
37712 read at_status <"$at_status_file"
37715 at_fn_group_banner 172 'xattr05.at:28' \
37716 "xattrs: keywords with '=' and '%'" " " 25
37718 test -f $XFAILFILE && at_xfail=yes
37720 $as_echo "172. $at_setup_line: testing $at_desc ..."
37728 $as_echo "$at_srcdir/xattr05.at:31:
37732 export TEST_TAR_FORMAT
37733 TAR_OPTIONS=\"-H v7\"
37739 file=\$(TMPDIR=. mktemp fiXXXXXX)
37741 setfattr -n user.test -v test \$file &> /dev/null
37742 if test \"\$?\" != 0; then
37747 getfattr \$file &> /dev/null
37748 if test \"\$?\" != 0; then
37753 file=\$(TMPDIR=. mktemp fiXXXXXX)
37754 setfattr -n user.test -v ahoj \$file
37755 # check whether tar fails to store xattrs
37756 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37757 if test \"\$err\" != \"0\"; then
37764 genfile --file dir/file
37766 setfattr -n user.=NAME%3D= -v value dir/file
37767 getfattr -d dir/file | grep -v '# ' > before
37769 # archive whole directory including binary xattrs
37770 tar --xattrs -cf archive.tar -C dir .
37772 tar --xattrs -xf archive.tar -C output
37773 getfattr -d output/file | grep -v '# ' > after
37776 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37781 export TEST_TAR_FORMAT
37782 TAR_OPTIONS="-H v7"
37788 file=$(TMPDIR=. mktemp fiXXXXXX)
37790 setfattr -n user.test -v test $file &> /dev/null
37791 if test "$?" != 0; then
37796 getfattr $file &> /dev/null
37797 if test "$?" != 0; then
37802 file=$(TMPDIR=. mktemp fiXXXXXX)
37803 setfattr -n user.test -v ahoj $file
37804 # check whether tar fails to store xattrs
37805 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37806 if test "$err" != "0"; then
37813 genfile --file dir/file
37815 setfattr -n user.=NAME%3D= -v value dir/file
37816 getfattr -d dir/file | grep -v '# ' > before
37818 # archive whole directory including binary xattrs
37819 tar --xattrs -cf archive.tar -C dir .
37821 tar --xattrs -xf archive.tar -C output
37822 getfattr -d output/file | grep -v '# ' > after
37825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37826 at_status=$? at_failed=false
37828 at_fn_diff_devnull "$at_stderr" || at_failed=:
37829 at_fn_diff_devnull "$at_stdout" || at_failed=:
37830 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37831 $at_failed && at_fn_log_failure
37835 $as_echo "$at_srcdir/xattr05.at:31:
37838 TEST_TAR_FORMAT=oldgnu
37839 export TEST_TAR_FORMAT
37840 TAR_OPTIONS=\"-H oldgnu\"
37846 file=\$(TMPDIR=. mktemp fiXXXXXX)
37848 setfattr -n user.test -v test \$file &> /dev/null
37849 if test \"\$?\" != 0; then
37854 getfattr \$file &> /dev/null
37855 if test \"\$?\" != 0; then
37860 file=\$(TMPDIR=. mktemp fiXXXXXX)
37861 setfattr -n user.test -v ahoj \$file
37862 # check whether tar fails to store xattrs
37863 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37864 if test \"\$err\" != \"0\"; then
37871 genfile --file dir/file
37873 setfattr -n user.=NAME%3D= -v value dir/file
37874 getfattr -d dir/file | grep -v '# ' > before
37876 # archive whole directory including binary xattrs
37877 tar --xattrs -cf archive.tar -C dir .
37879 tar --xattrs -xf archive.tar -C output
37880 getfattr -d output/file | grep -v '# ' > after
37883 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37887 TEST_TAR_FORMAT=oldgnu
37888 export TEST_TAR_FORMAT
37889 TAR_OPTIONS="-H oldgnu"
37895 file=$(TMPDIR=. mktemp fiXXXXXX)
37897 setfattr -n user.test -v test $file &> /dev/null
37898 if test "$?" != 0; then
37903 getfattr $file &> /dev/null
37904 if test "$?" != 0; then
37909 file=$(TMPDIR=. mktemp fiXXXXXX)
37910 setfattr -n user.test -v ahoj $file
37911 # check whether tar fails to store xattrs
37912 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
37913 if test "$err" != "0"; then
37920 genfile --file dir/file
37922 setfattr -n user.=NAME%3D= -v value dir/file
37923 getfattr -d dir/file | grep -v '# ' > before
37925 # archive whole directory including binary xattrs
37926 tar --xattrs -cf archive.tar -C dir .
37928 tar --xattrs -xf archive.tar -C output
37929 getfattr -d output/file | grep -v '# ' > after
37932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37933 at_status=$? at_failed=false
37935 at_fn_diff_devnull "$at_stderr" || at_failed=:
37936 at_fn_diff_devnull "$at_stdout" || at_failed=:
37937 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
37938 $at_failed && at_fn_log_failure
37942 $as_echo "$at_srcdir/xattr05.at:31:
37945 TEST_TAR_FORMAT=ustar
37946 export TEST_TAR_FORMAT
37947 TAR_OPTIONS=\"-H ustar\"
37953 file=\$(TMPDIR=. mktemp fiXXXXXX)
37955 setfattr -n user.test -v test \$file &> /dev/null
37956 if test \"\$?\" != 0; then
37961 getfattr \$file &> /dev/null
37962 if test \"\$?\" != 0; then
37967 file=\$(TMPDIR=. mktemp fiXXXXXX)
37968 setfattr -n user.test -v ahoj \$file
37969 # check whether tar fails to store xattrs
37970 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
37971 if test \"\$err\" != \"0\"; then
37978 genfile --file dir/file
37980 setfattr -n user.=NAME%3D= -v value dir/file
37981 getfattr -d dir/file | grep -v '# ' > before
37983 # archive whole directory including binary xattrs
37984 tar --xattrs -cf archive.tar -C dir .
37986 tar --xattrs -xf archive.tar -C output
37987 getfattr -d output/file | grep -v '# ' > after
37990 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
37994 TEST_TAR_FORMAT=ustar
37995 export TEST_TAR_FORMAT
37996 TAR_OPTIONS="-H ustar"
38002 file=$(TMPDIR=. mktemp fiXXXXXX)
38004 setfattr -n user.test -v test $file &> /dev/null
38005 if test "$?" != 0; then
38010 getfattr $file &> /dev/null
38011 if test "$?" != 0; then
38016 file=$(TMPDIR=. mktemp fiXXXXXX)
38017 setfattr -n user.test -v ahoj $file
38018 # check whether tar fails to store xattrs
38019 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38020 if test "$err" != "0"; then
38027 genfile --file dir/file
38029 setfattr -n user.=NAME%3D= -v value dir/file
38030 getfattr -d dir/file | grep -v '# ' > before
38032 # archive whole directory including binary xattrs
38033 tar --xattrs -cf archive.tar -C dir .
38035 tar --xattrs -xf archive.tar -C output
38036 getfattr -d output/file | grep -v '# ' > after
38039 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38040 at_status=$? at_failed=false
38042 at_fn_diff_devnull "$at_stderr" || at_failed=:
38043 at_fn_diff_devnull "$at_stdout" || at_failed=:
38044 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
38045 $at_failed && at_fn_log_failure
38049 $as_echo "$at_srcdir/xattr05.at:31:
38052 TEST_TAR_FORMAT=posix
38053 export TEST_TAR_FORMAT
38054 TAR_OPTIONS=\"-H posix\"
38060 file=\$(TMPDIR=. mktemp fiXXXXXX)
38062 setfattr -n user.test -v test \$file &> /dev/null
38063 if test \"\$?\" != 0; then
38068 getfattr \$file &> /dev/null
38069 if test \"\$?\" != 0; then
38074 file=\$(TMPDIR=. mktemp fiXXXXXX)
38075 setfattr -n user.test -v ahoj \$file
38076 # check whether tar fails to store xattrs
38077 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38078 if test \"\$err\" != \"0\"; then
38085 genfile --file dir/file
38087 setfattr -n user.=NAME%3D= -v value dir/file
38088 getfattr -d dir/file | grep -v '# ' > before
38090 # archive whole directory including binary xattrs
38091 tar --xattrs -cf archive.tar -C dir .
38093 tar --xattrs -xf archive.tar -C output
38094 getfattr -d output/file | grep -v '# ' > after
38097 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
38101 TEST_TAR_FORMAT=posix
38102 export TEST_TAR_FORMAT
38103 TAR_OPTIONS="-H posix"
38109 file=$(TMPDIR=. mktemp fiXXXXXX)
38111 setfattr -n user.test -v test $file &> /dev/null
38112 if test "$?" != 0; then
38117 getfattr $file &> /dev/null
38118 if test "$?" != 0; then
38123 file=$(TMPDIR=. mktemp fiXXXXXX)
38124 setfattr -n user.test -v ahoj $file
38125 # check whether tar fails to store xattrs
38126 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38127 if test "$err" != "0"; then
38134 genfile --file dir/file
38136 setfattr -n user.=NAME%3D= -v value dir/file
38137 getfattr -d dir/file | grep -v '# ' > before
38139 # archive whole directory including binary xattrs
38140 tar --xattrs -cf archive.tar -C dir .
38142 tar --xattrs -xf archive.tar -C output
38143 getfattr -d output/file | grep -v '# ' > after
38146 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38147 at_status=$? at_failed=false
38149 at_fn_diff_devnull "$at_stderr" || at_failed=:
38150 at_fn_diff_devnull "$at_stdout" || at_failed=:
38151 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
38152 $at_failed && at_fn_log_failure
38156 $as_echo "$at_srcdir/xattr05.at:31:
38159 TEST_TAR_FORMAT=gnu
38160 export TEST_TAR_FORMAT
38161 TAR_OPTIONS=\"-H gnu\"
38167 file=\$(TMPDIR=. mktemp fiXXXXXX)
38169 setfattr -n user.test -v test \$file &> /dev/null
38170 if test \"\$?\" != 0; then
38175 getfattr \$file &> /dev/null
38176 if test \"\$?\" != 0; then
38181 file=\$(TMPDIR=. mktemp fiXXXXXX)
38182 setfattr -n user.test -v ahoj \$file
38183 # check whether tar fails to store xattrs
38184 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38185 if test \"\$err\" != \"0\"; then
38192 genfile --file dir/file
38194 setfattr -n user.=NAME%3D= -v value dir/file
38195 getfattr -d dir/file | grep -v '# ' > before
38197 # archive whole directory including binary xattrs
38198 tar --xattrs -cf archive.tar -C dir .
38200 tar --xattrs -xf archive.tar -C output
38201 getfattr -d output/file | grep -v '# ' > after
38204 at_fn_check_prepare_notrace 'a $(...) command substitution' "xattr05.at:31"
38208 TEST_TAR_FORMAT=gnu
38209 export TEST_TAR_FORMAT
38210 TAR_OPTIONS="-H gnu"
38216 file=$(TMPDIR=. mktemp fiXXXXXX)
38218 setfattr -n user.test -v test $file &> /dev/null
38219 if test "$?" != 0; then
38224 getfattr $file &> /dev/null
38225 if test "$?" != 0; then
38230 file=$(TMPDIR=. mktemp fiXXXXXX)
38231 setfattr -n user.test -v ahoj $file
38232 # check whether tar fails to store xattrs
38233 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38234 if test "$err" != "0"; then
38241 genfile --file dir/file
38243 setfattr -n user.=NAME%3D= -v value dir/file
38244 getfattr -d dir/file | grep -v '# ' > before
38246 # archive whole directory including binary xattrs
38247 tar --xattrs -cf archive.tar -C dir .
38249 tar --xattrs -xf archive.tar -C output
38250 getfattr -d output/file | grep -v '# ' > after
38253 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38254 at_status=$? at_failed=false
38256 at_fn_diff_devnull "$at_stderr" || at_failed=:
38257 at_fn_diff_devnull "$at_stdout" || at_failed=:
38258 at_fn_check_status 0 $at_status "$at_srcdir/xattr05.at:31"
38259 $at_failed && at_fn_log_failure
38266 $at_times_p && times >"$at_times_file"
38267 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
38268 read at_status <"$at_status_file"
38271 at_fn_group_banner 173 'acls01.at:25' \
38272 "acls: basic functionality" " " 25
38274 test -f $XFAILFILE && at_xfail=yes
38276 $as_echo "173. $at_setup_line: testing $at_desc ..."
38284 $as_echo "$at_srcdir/acls01.at:28:
38288 export TEST_TAR_FORMAT
38289 TAR_OPTIONS=\"-H v7\"
38294 file=\$(TMPDIR=. mktemp fiXXXXXX)
38296 setfattr -n user.test -v test \$file &> /dev/null
38297 if test \"\$?\" != 0; then
38302 getfattr \$file &> /dev/null
38303 if test \"\$?\" != 0; then
38310 file=\$(TMPDIR=. mktemp fiXXXXXX)
38312 setfacl -m u:\$UID:rwx \$file &> /dev/null
38313 if test \"\$?\" != 0; then
38318 getfacl \$file &> /dev/null
38319 if test \"\$?\" != 0; then
38325 file=\$(TMPDIR=. mktemp fiXXXXXX)
38326 setfacl -m u:\$UID:rwx \$file
38327 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38328 if test \"\$err\" != \"0\"; then
38334 genfile --file dir/file
38336 MYNAME=\$( id -un )
38338 setfacl -m u:\$MYNAME:--x dir/file
38339 setfacl -m u:\$MYNAME:--x dir
38341 getfattr -h -m. -d dir dir/file > before
38343 tar --acls -cf archive.tar dir
38346 tar --acls -xf archive.tar
38348 getfattr -h -m. -d dir dir/file > after
38353 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38358 export TEST_TAR_FORMAT
38359 TAR_OPTIONS="-H v7"
38364 file=$(TMPDIR=. mktemp fiXXXXXX)
38366 setfattr -n user.test -v test $file &> /dev/null
38367 if test "$?" != 0; then
38372 getfattr $file &> /dev/null
38373 if test "$?" != 0; then
38380 file=$(TMPDIR=. mktemp fiXXXXXX)
38382 setfacl -m u:$UID:rwx $file &> /dev/null
38383 if test "$?" != 0; then
38388 getfacl $file &> /dev/null
38389 if test "$?" != 0; then
38395 file=$(TMPDIR=. mktemp fiXXXXXX)
38396 setfacl -m u:$UID:rwx $file
38397 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38398 if test "$err" != "0"; then
38404 genfile --file dir/file
38408 setfacl -m u:$MYNAME:--x dir/file
38409 setfacl -m u:$MYNAME:--x dir
38411 getfattr -h -m. -d dir dir/file > before
38413 tar --acls -cf archive.tar dir
38416 tar --acls -xf archive.tar
38418 getfattr -h -m. -d dir dir/file > after
38423 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38424 at_status=$? at_failed=false
38426 at_fn_diff_devnull "$at_stderr" || at_failed=:
38427 at_fn_diff_devnull "$at_stdout" || at_failed=:
38428 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38429 $at_failed && at_fn_log_failure
38433 $as_echo "$at_srcdir/acls01.at:28:
38436 TEST_TAR_FORMAT=oldgnu
38437 export TEST_TAR_FORMAT
38438 TAR_OPTIONS=\"-H oldgnu\"
38443 file=\$(TMPDIR=. mktemp fiXXXXXX)
38445 setfattr -n user.test -v test \$file &> /dev/null
38446 if test \"\$?\" != 0; then
38451 getfattr \$file &> /dev/null
38452 if test \"\$?\" != 0; then
38459 file=\$(TMPDIR=. mktemp fiXXXXXX)
38461 setfacl -m u:\$UID:rwx \$file &> /dev/null
38462 if test \"\$?\" != 0; then
38467 getfacl \$file &> /dev/null
38468 if test \"\$?\" != 0; then
38474 file=\$(TMPDIR=. mktemp fiXXXXXX)
38475 setfacl -m u:\$UID:rwx \$file
38476 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38477 if test \"\$err\" != \"0\"; then
38483 genfile --file dir/file
38485 MYNAME=\$( id -un )
38487 setfacl -m u:\$MYNAME:--x dir/file
38488 setfacl -m u:\$MYNAME:--x dir
38490 getfattr -h -m. -d dir dir/file > before
38492 tar --acls -cf archive.tar dir
38495 tar --acls -xf archive.tar
38497 getfattr -h -m. -d dir dir/file > after
38502 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38506 TEST_TAR_FORMAT=oldgnu
38507 export TEST_TAR_FORMAT
38508 TAR_OPTIONS="-H oldgnu"
38513 file=$(TMPDIR=. mktemp fiXXXXXX)
38515 setfattr -n user.test -v test $file &> /dev/null
38516 if test "$?" != 0; then
38521 getfattr $file &> /dev/null
38522 if test "$?" != 0; then
38529 file=$(TMPDIR=. mktemp fiXXXXXX)
38531 setfacl -m u:$UID:rwx $file &> /dev/null
38532 if test "$?" != 0; then
38537 getfacl $file &> /dev/null
38538 if test "$?" != 0; then
38544 file=$(TMPDIR=. mktemp fiXXXXXX)
38545 setfacl -m u:$UID:rwx $file
38546 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38547 if test "$err" != "0"; then
38553 genfile --file dir/file
38557 setfacl -m u:$MYNAME:--x dir/file
38558 setfacl -m u:$MYNAME:--x dir
38560 getfattr -h -m. -d dir dir/file > before
38562 tar --acls -cf archive.tar dir
38565 tar --acls -xf archive.tar
38567 getfattr -h -m. -d dir dir/file > after
38572 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38573 at_status=$? at_failed=false
38575 at_fn_diff_devnull "$at_stderr" || at_failed=:
38576 at_fn_diff_devnull "$at_stdout" || at_failed=:
38577 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38578 $at_failed && at_fn_log_failure
38582 $as_echo "$at_srcdir/acls01.at:28:
38585 TEST_TAR_FORMAT=ustar
38586 export TEST_TAR_FORMAT
38587 TAR_OPTIONS=\"-H ustar\"
38592 file=\$(TMPDIR=. mktemp fiXXXXXX)
38594 setfattr -n user.test -v test \$file &> /dev/null
38595 if test \"\$?\" != 0; then
38600 getfattr \$file &> /dev/null
38601 if test \"\$?\" != 0; then
38608 file=\$(TMPDIR=. mktemp fiXXXXXX)
38610 setfacl -m u:\$UID:rwx \$file &> /dev/null
38611 if test \"\$?\" != 0; then
38616 getfacl \$file &> /dev/null
38617 if test \"\$?\" != 0; then
38623 file=\$(TMPDIR=. mktemp fiXXXXXX)
38624 setfacl -m u:\$UID:rwx \$file
38625 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38626 if test \"\$err\" != \"0\"; then
38632 genfile --file dir/file
38634 MYNAME=\$( id -un )
38636 setfacl -m u:\$MYNAME:--x dir/file
38637 setfacl -m u:\$MYNAME:--x dir
38639 getfattr -h -m. -d dir dir/file > before
38641 tar --acls -cf archive.tar dir
38644 tar --acls -xf archive.tar
38646 getfattr -h -m. -d dir dir/file > after
38651 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38655 TEST_TAR_FORMAT=ustar
38656 export TEST_TAR_FORMAT
38657 TAR_OPTIONS="-H ustar"
38662 file=$(TMPDIR=. mktemp fiXXXXXX)
38664 setfattr -n user.test -v test $file &> /dev/null
38665 if test "$?" != 0; then
38670 getfattr $file &> /dev/null
38671 if test "$?" != 0; then
38678 file=$(TMPDIR=. mktemp fiXXXXXX)
38680 setfacl -m u:$UID:rwx $file &> /dev/null
38681 if test "$?" != 0; then
38686 getfacl $file &> /dev/null
38687 if test "$?" != 0; then
38693 file=$(TMPDIR=. mktemp fiXXXXXX)
38694 setfacl -m u:$UID:rwx $file
38695 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38696 if test "$err" != "0"; then
38702 genfile --file dir/file
38706 setfacl -m u:$MYNAME:--x dir/file
38707 setfacl -m u:$MYNAME:--x dir
38709 getfattr -h -m. -d dir dir/file > before
38711 tar --acls -cf archive.tar dir
38714 tar --acls -xf archive.tar
38716 getfattr -h -m. -d dir dir/file > after
38721 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38722 at_status=$? at_failed=false
38724 at_fn_diff_devnull "$at_stderr" || at_failed=:
38725 at_fn_diff_devnull "$at_stdout" || at_failed=:
38726 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38727 $at_failed && at_fn_log_failure
38731 $as_echo "$at_srcdir/acls01.at:28:
38734 TEST_TAR_FORMAT=posix
38735 export TEST_TAR_FORMAT
38736 TAR_OPTIONS=\"-H posix\"
38741 file=\$(TMPDIR=. mktemp fiXXXXXX)
38743 setfattr -n user.test -v test \$file &> /dev/null
38744 if test \"\$?\" != 0; then
38749 getfattr \$file &> /dev/null
38750 if test \"\$?\" != 0; then
38757 file=\$(TMPDIR=. mktemp fiXXXXXX)
38759 setfacl -m u:\$UID:rwx \$file &> /dev/null
38760 if test \"\$?\" != 0; then
38765 getfacl \$file &> /dev/null
38766 if test \"\$?\" != 0; then
38772 file=\$(TMPDIR=. mktemp fiXXXXXX)
38773 setfacl -m u:\$UID:rwx \$file
38774 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38775 if test \"\$err\" != \"0\"; then
38781 genfile --file dir/file
38783 MYNAME=\$( id -un )
38785 setfacl -m u:\$MYNAME:--x dir/file
38786 setfacl -m u:\$MYNAME:--x dir
38788 getfattr -h -m. -d dir dir/file > before
38790 tar --acls -cf archive.tar dir
38793 tar --acls -xf archive.tar
38795 getfattr -h -m. -d dir dir/file > after
38800 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38804 TEST_TAR_FORMAT=posix
38805 export TEST_TAR_FORMAT
38806 TAR_OPTIONS="-H posix"
38811 file=$(TMPDIR=. mktemp fiXXXXXX)
38813 setfattr -n user.test -v test $file &> /dev/null
38814 if test "$?" != 0; then
38819 getfattr $file &> /dev/null
38820 if test "$?" != 0; then
38827 file=$(TMPDIR=. mktemp fiXXXXXX)
38829 setfacl -m u:$UID:rwx $file &> /dev/null
38830 if test "$?" != 0; then
38835 getfacl $file &> /dev/null
38836 if test "$?" != 0; then
38842 file=$(TMPDIR=. mktemp fiXXXXXX)
38843 setfacl -m u:$UID:rwx $file
38844 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38845 if test "$err" != "0"; then
38851 genfile --file dir/file
38855 setfacl -m u:$MYNAME:--x dir/file
38856 setfacl -m u:$MYNAME:--x dir
38858 getfattr -h -m. -d dir dir/file > before
38860 tar --acls -cf archive.tar dir
38863 tar --acls -xf archive.tar
38865 getfattr -h -m. -d dir dir/file > after
38870 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
38871 at_status=$? at_failed=false
38873 at_fn_diff_devnull "$at_stderr" || at_failed=:
38874 at_fn_diff_devnull "$at_stdout" || at_failed=:
38875 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
38876 $at_failed && at_fn_log_failure
38880 $as_echo "$at_srcdir/acls01.at:28:
38883 TEST_TAR_FORMAT=gnu
38884 export TEST_TAR_FORMAT
38885 TAR_OPTIONS=\"-H gnu\"
38890 file=\$(TMPDIR=. mktemp fiXXXXXX)
38892 setfattr -n user.test -v test \$file &> /dev/null
38893 if test \"\$?\" != 0; then
38898 getfattr \$file &> /dev/null
38899 if test \"\$?\" != 0; then
38906 file=\$(TMPDIR=. mktemp fiXXXXXX)
38908 setfacl -m u:\$UID:rwx \$file &> /dev/null
38909 if test \"\$?\" != 0; then
38914 getfacl \$file &> /dev/null
38915 if test \"\$?\" != 0; then
38921 file=\$(TMPDIR=. mktemp fiXXXXXX)
38922 setfacl -m u:\$UID:rwx \$file
38923 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
38924 if test \"\$err\" != \"0\"; then
38930 genfile --file dir/file
38932 MYNAME=\$( id -un )
38934 setfacl -m u:\$MYNAME:--x dir/file
38935 setfacl -m u:\$MYNAME:--x dir
38937 getfattr -h -m. -d dir dir/file > before
38939 tar --acls -cf archive.tar dir
38942 tar --acls -xf archive.tar
38944 getfattr -h -m. -d dir dir/file > after
38949 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls01.at:28"
38953 TEST_TAR_FORMAT=gnu
38954 export TEST_TAR_FORMAT
38955 TAR_OPTIONS="-H gnu"
38960 file=$(TMPDIR=. mktemp fiXXXXXX)
38962 setfattr -n user.test -v test $file &> /dev/null
38963 if test "$?" != 0; then
38968 getfattr $file &> /dev/null
38969 if test "$?" != 0; then
38976 file=$(TMPDIR=. mktemp fiXXXXXX)
38978 setfacl -m u:$UID:rwx $file &> /dev/null
38979 if test "$?" != 0; then
38984 getfacl $file &> /dev/null
38985 if test "$?" != 0; then
38991 file=$(TMPDIR=. mktemp fiXXXXXX)
38992 setfacl -m u:$UID:rwx $file
38993 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
38994 if test "$err" != "0"; then
39000 genfile --file dir/file
39004 setfacl -m u:$MYNAME:--x dir/file
39005 setfacl -m u:$MYNAME:--x dir
39007 getfattr -h -m. -d dir dir/file > before
39009 tar --acls -cf archive.tar dir
39012 tar --acls -xf archive.tar
39014 getfattr -h -m. -d dir dir/file > after
39019 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39020 at_status=$? at_failed=false
39022 at_fn_diff_devnull "$at_stderr" || at_failed=:
39023 at_fn_diff_devnull "$at_stdout" || at_failed=:
39024 at_fn_check_status 0 $at_status "$at_srcdir/acls01.at:28"
39025 $at_failed && at_fn_log_failure
39032 $at_times_p && times >"$at_times_file"
39033 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39034 read at_status <"$at_status_file"
39037 at_fn_group_banner 174 'acls02.at:25' \
39038 "acls: work with -C" " " 25
39040 test -f $XFAILFILE && at_xfail=yes
39042 $as_echo "174. $at_setup_line: testing $at_desc ..."
39050 $as_echo "$at_srcdir/acls02.at:28:
39054 export TEST_TAR_FORMAT
39055 TAR_OPTIONS=\"-H v7\"
39060 file=\$(TMPDIR=. mktemp fiXXXXXX)
39062 setfattr -n user.test -v test \$file &> /dev/null
39063 if test \"\$?\" != 0; then
39068 getfattr \$file &> /dev/null
39069 if test \"\$?\" != 0; then
39076 file=\$(TMPDIR=. mktemp fiXXXXXX)
39078 setfacl -m u:\$UID:rwx \$file &> /dev/null
39079 if test \"\$?\" != 0; then
39084 getfacl \$file &> /dev/null
39085 if test \"\$?\" != 0; then
39091 file=\$(TMPDIR=. mktemp fiXXXXXX)
39092 setfacl -m u:\$UID:rwx \$file
39093 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39094 if test \"\$err\" != \"0\"; then
39101 genfile --file dir/subdir/file
39103 MYNAME=\$( id -un )
39105 setfacl -m u:\$MYNAME:--x dir/subdir
39106 setfacl -m u:\$MYNAME:--x dir/subdir/file
39109 getfattr -h -m. -d subdir subdir/file > ../before
39112 tar --acls -cf archive.tar -C dir subdir
39116 tar --acls -xf archive.tar -C dir
39119 getfattr -h -m. -d subdir subdir/file > ../after
39125 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39130 export TEST_TAR_FORMAT
39131 TAR_OPTIONS="-H v7"
39136 file=$(TMPDIR=. mktemp fiXXXXXX)
39138 setfattr -n user.test -v test $file &> /dev/null
39139 if test "$?" != 0; then
39144 getfattr $file &> /dev/null
39145 if test "$?" != 0; then
39152 file=$(TMPDIR=. mktemp fiXXXXXX)
39154 setfacl -m u:$UID:rwx $file &> /dev/null
39155 if test "$?" != 0; then
39160 getfacl $file &> /dev/null
39161 if test "$?" != 0; then
39167 file=$(TMPDIR=. mktemp fiXXXXXX)
39168 setfacl -m u:$UID:rwx $file
39169 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39170 if test "$err" != "0"; then
39177 genfile --file dir/subdir/file
39181 setfacl -m u:$MYNAME:--x dir/subdir
39182 setfacl -m u:$MYNAME:--x dir/subdir/file
39185 getfattr -h -m. -d subdir subdir/file > ../before
39188 tar --acls -cf archive.tar -C dir subdir
39192 tar --acls -xf archive.tar -C dir
39195 getfattr -h -m. -d subdir subdir/file > ../after
39201 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39202 at_status=$? at_failed=false
39204 at_fn_diff_devnull "$at_stderr" || at_failed=:
39205 at_fn_diff_devnull "$at_stdout" || at_failed=:
39206 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39207 $at_failed && at_fn_log_failure
39211 $as_echo "$at_srcdir/acls02.at:28:
39214 TEST_TAR_FORMAT=oldgnu
39215 export TEST_TAR_FORMAT
39216 TAR_OPTIONS=\"-H oldgnu\"
39221 file=\$(TMPDIR=. mktemp fiXXXXXX)
39223 setfattr -n user.test -v test \$file &> /dev/null
39224 if test \"\$?\" != 0; then
39229 getfattr \$file &> /dev/null
39230 if test \"\$?\" != 0; then
39237 file=\$(TMPDIR=. mktemp fiXXXXXX)
39239 setfacl -m u:\$UID:rwx \$file &> /dev/null
39240 if test \"\$?\" != 0; then
39245 getfacl \$file &> /dev/null
39246 if test \"\$?\" != 0; then
39252 file=\$(TMPDIR=. mktemp fiXXXXXX)
39253 setfacl -m u:\$UID:rwx \$file
39254 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39255 if test \"\$err\" != \"0\"; then
39262 genfile --file dir/subdir/file
39264 MYNAME=\$( id -un )
39266 setfacl -m u:\$MYNAME:--x dir/subdir
39267 setfacl -m u:\$MYNAME:--x dir/subdir/file
39270 getfattr -h -m. -d subdir subdir/file > ../before
39273 tar --acls -cf archive.tar -C dir subdir
39277 tar --acls -xf archive.tar -C dir
39280 getfattr -h -m. -d subdir subdir/file > ../after
39286 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39290 TEST_TAR_FORMAT=oldgnu
39291 export TEST_TAR_FORMAT
39292 TAR_OPTIONS="-H oldgnu"
39297 file=$(TMPDIR=. mktemp fiXXXXXX)
39299 setfattr -n user.test -v test $file &> /dev/null
39300 if test "$?" != 0; then
39305 getfattr $file &> /dev/null
39306 if test "$?" != 0; then
39313 file=$(TMPDIR=. mktemp fiXXXXXX)
39315 setfacl -m u:$UID:rwx $file &> /dev/null
39316 if test "$?" != 0; then
39321 getfacl $file &> /dev/null
39322 if test "$?" != 0; then
39328 file=$(TMPDIR=. mktemp fiXXXXXX)
39329 setfacl -m u:$UID:rwx $file
39330 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39331 if test "$err" != "0"; then
39338 genfile --file dir/subdir/file
39342 setfacl -m u:$MYNAME:--x dir/subdir
39343 setfacl -m u:$MYNAME:--x dir/subdir/file
39346 getfattr -h -m. -d subdir subdir/file > ../before
39349 tar --acls -cf archive.tar -C dir subdir
39353 tar --acls -xf archive.tar -C dir
39356 getfattr -h -m. -d subdir subdir/file > ../after
39362 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39363 at_status=$? at_failed=false
39365 at_fn_diff_devnull "$at_stderr" || at_failed=:
39366 at_fn_diff_devnull "$at_stdout" || at_failed=:
39367 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39368 $at_failed && at_fn_log_failure
39372 $as_echo "$at_srcdir/acls02.at:28:
39375 TEST_TAR_FORMAT=ustar
39376 export TEST_TAR_FORMAT
39377 TAR_OPTIONS=\"-H ustar\"
39382 file=\$(TMPDIR=. mktemp fiXXXXXX)
39384 setfattr -n user.test -v test \$file &> /dev/null
39385 if test \"\$?\" != 0; then
39390 getfattr \$file &> /dev/null
39391 if test \"\$?\" != 0; then
39398 file=\$(TMPDIR=. mktemp fiXXXXXX)
39400 setfacl -m u:\$UID:rwx \$file &> /dev/null
39401 if test \"\$?\" != 0; then
39406 getfacl \$file &> /dev/null
39407 if test \"\$?\" != 0; then
39413 file=\$(TMPDIR=. mktemp fiXXXXXX)
39414 setfacl -m u:\$UID:rwx \$file
39415 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39416 if test \"\$err\" != \"0\"; then
39423 genfile --file dir/subdir/file
39425 MYNAME=\$( id -un )
39427 setfacl -m u:\$MYNAME:--x dir/subdir
39428 setfacl -m u:\$MYNAME:--x dir/subdir/file
39431 getfattr -h -m. -d subdir subdir/file > ../before
39434 tar --acls -cf archive.tar -C dir subdir
39438 tar --acls -xf archive.tar -C dir
39441 getfattr -h -m. -d subdir subdir/file > ../after
39447 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39451 TEST_TAR_FORMAT=ustar
39452 export TEST_TAR_FORMAT
39453 TAR_OPTIONS="-H ustar"
39458 file=$(TMPDIR=. mktemp fiXXXXXX)
39460 setfattr -n user.test -v test $file &> /dev/null
39461 if test "$?" != 0; then
39466 getfattr $file &> /dev/null
39467 if test "$?" != 0; then
39474 file=$(TMPDIR=. mktemp fiXXXXXX)
39476 setfacl -m u:$UID:rwx $file &> /dev/null
39477 if test "$?" != 0; then
39482 getfacl $file &> /dev/null
39483 if test "$?" != 0; then
39489 file=$(TMPDIR=. mktemp fiXXXXXX)
39490 setfacl -m u:$UID:rwx $file
39491 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39492 if test "$err" != "0"; then
39499 genfile --file dir/subdir/file
39503 setfacl -m u:$MYNAME:--x dir/subdir
39504 setfacl -m u:$MYNAME:--x dir/subdir/file
39507 getfattr -h -m. -d subdir subdir/file > ../before
39510 tar --acls -cf archive.tar -C dir subdir
39514 tar --acls -xf archive.tar -C dir
39517 getfattr -h -m. -d subdir subdir/file > ../after
39523 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39524 at_status=$? at_failed=false
39526 at_fn_diff_devnull "$at_stderr" || at_failed=:
39527 at_fn_diff_devnull "$at_stdout" || at_failed=:
39528 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39529 $at_failed && at_fn_log_failure
39533 $as_echo "$at_srcdir/acls02.at:28:
39536 TEST_TAR_FORMAT=posix
39537 export TEST_TAR_FORMAT
39538 TAR_OPTIONS=\"-H posix\"
39543 file=\$(TMPDIR=. mktemp fiXXXXXX)
39545 setfattr -n user.test -v test \$file &> /dev/null
39546 if test \"\$?\" != 0; then
39551 getfattr \$file &> /dev/null
39552 if test \"\$?\" != 0; then
39559 file=\$(TMPDIR=. mktemp fiXXXXXX)
39561 setfacl -m u:\$UID:rwx \$file &> /dev/null
39562 if test \"\$?\" != 0; then
39567 getfacl \$file &> /dev/null
39568 if test \"\$?\" != 0; then
39574 file=\$(TMPDIR=. mktemp fiXXXXXX)
39575 setfacl -m u:\$UID:rwx \$file
39576 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39577 if test \"\$err\" != \"0\"; then
39584 genfile --file dir/subdir/file
39586 MYNAME=\$( id -un )
39588 setfacl -m u:\$MYNAME:--x dir/subdir
39589 setfacl -m u:\$MYNAME:--x dir/subdir/file
39592 getfattr -h -m. -d subdir subdir/file > ../before
39595 tar --acls -cf archive.tar -C dir subdir
39599 tar --acls -xf archive.tar -C dir
39602 getfattr -h -m. -d subdir subdir/file > ../after
39608 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39612 TEST_TAR_FORMAT=posix
39613 export TEST_TAR_FORMAT
39614 TAR_OPTIONS="-H posix"
39619 file=$(TMPDIR=. mktemp fiXXXXXX)
39621 setfattr -n user.test -v test $file &> /dev/null
39622 if test "$?" != 0; then
39627 getfattr $file &> /dev/null
39628 if test "$?" != 0; then
39635 file=$(TMPDIR=. mktemp fiXXXXXX)
39637 setfacl -m u:$UID:rwx $file &> /dev/null
39638 if test "$?" != 0; then
39643 getfacl $file &> /dev/null
39644 if test "$?" != 0; then
39650 file=$(TMPDIR=. mktemp fiXXXXXX)
39651 setfacl -m u:$UID:rwx $file
39652 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39653 if test "$err" != "0"; then
39660 genfile --file dir/subdir/file
39664 setfacl -m u:$MYNAME:--x dir/subdir
39665 setfacl -m u:$MYNAME:--x dir/subdir/file
39668 getfattr -h -m. -d subdir subdir/file > ../before
39671 tar --acls -cf archive.tar -C dir subdir
39675 tar --acls -xf archive.tar -C dir
39678 getfattr -h -m. -d subdir subdir/file > ../after
39684 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39685 at_status=$? at_failed=false
39687 at_fn_diff_devnull "$at_stderr" || at_failed=:
39688 at_fn_diff_devnull "$at_stdout" || at_failed=:
39689 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39690 $at_failed && at_fn_log_failure
39694 $as_echo "$at_srcdir/acls02.at:28:
39697 TEST_TAR_FORMAT=gnu
39698 export TEST_TAR_FORMAT
39699 TAR_OPTIONS=\"-H gnu\"
39704 file=\$(TMPDIR=. mktemp fiXXXXXX)
39706 setfattr -n user.test -v test \$file &> /dev/null
39707 if test \"\$?\" != 0; then
39712 getfattr \$file &> /dev/null
39713 if test \"\$?\" != 0; then
39720 file=\$(TMPDIR=. mktemp fiXXXXXX)
39722 setfacl -m u:\$UID:rwx \$file &> /dev/null
39723 if test \"\$?\" != 0; then
39728 getfacl \$file &> /dev/null
39729 if test \"\$?\" != 0; then
39735 file=\$(TMPDIR=. mktemp fiXXXXXX)
39736 setfacl -m u:\$UID:rwx \$file
39737 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39738 if test \"\$err\" != \"0\"; then
39745 genfile --file dir/subdir/file
39747 MYNAME=\$( id -un )
39749 setfacl -m u:\$MYNAME:--x dir/subdir
39750 setfacl -m u:\$MYNAME:--x dir/subdir/file
39753 getfattr -h -m. -d subdir subdir/file > ../before
39756 tar --acls -cf archive.tar -C dir subdir
39760 tar --acls -xf archive.tar -C dir
39763 getfattr -h -m. -d subdir subdir/file > ../after
39769 at_fn_check_prepare_notrace 'a $(...) command substitution' "acls02.at:28"
39773 TEST_TAR_FORMAT=gnu
39774 export TEST_TAR_FORMAT
39775 TAR_OPTIONS="-H gnu"
39780 file=$(TMPDIR=. mktemp fiXXXXXX)
39782 setfattr -n user.test -v test $file &> /dev/null
39783 if test "$?" != 0; then
39788 getfattr $file &> /dev/null
39789 if test "$?" != 0; then
39796 file=$(TMPDIR=. mktemp fiXXXXXX)
39798 setfacl -m u:$UID:rwx $file &> /dev/null
39799 if test "$?" != 0; then
39804 getfacl $file &> /dev/null
39805 if test "$?" != 0; then
39811 file=$(TMPDIR=. mktemp fiXXXXXX)
39812 setfacl -m u:$UID:rwx $file
39813 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
39814 if test "$err" != "0"; then
39821 genfile --file dir/subdir/file
39825 setfacl -m u:$MYNAME:--x dir/subdir
39826 setfacl -m u:$MYNAME:--x dir/subdir/file
39829 getfattr -h -m. -d subdir subdir/file > ../before
39832 tar --acls -cf archive.tar -C dir subdir
39836 tar --acls -xf archive.tar -C dir
39839 getfattr -h -m. -d subdir subdir/file > ../after
39845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
39846 at_status=$? at_failed=false
39848 at_fn_diff_devnull "$at_stderr" || at_failed=:
39849 at_fn_diff_devnull "$at_stdout" || at_failed=:
39850 at_fn_check_status 0 $at_status "$at_srcdir/acls02.at:28"
39851 $at_failed && at_fn_log_failure
39858 $at_times_p && times >"$at_times_file"
39859 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
39860 read at_status <"$at_status_file"
39863 at_fn_group_banner 175 'acls03.at:30' \
39864 "acls: default ACLs" " " 25
39866 test -f $XFAILFILE && at_xfail=yes
39868 $as_echo "175. $at_setup_line: testing $at_desc ..."
39880 $as_echo "$at_srcdir/acls03.at:47:
39884 export TEST_TAR_FORMAT
39885 TAR_OPTIONS=\"-H v7\"
39890 file=\$(TMPDIR=. mktemp fiXXXXXX)
39892 setfattr -n user.test -v test \$file &> /dev/null
39893 if test \"\$?\" != 0; then
39898 getfattr \$file &> /dev/null
39899 if test \"\$?\" != 0; then
39906 file=\$(TMPDIR=. mktemp fiXXXXXX)
39908 setfacl -m u:\$UID:rwx \$file &> /dev/null
39909 if test \"\$?\" != 0; then
39914 getfacl \$file &> /dev/null
39915 if test \"\$?\" != 0; then
39921 file=\$(TMPDIR=. mktemp fiXXXXXX)
39922 setfacl -m u:\$UID:rwx \$file
39923 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
39924 if test \"\$err\" != \"0\"; then
39929 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
39932 MYNAME=\$( id -un )
39933 MYGROUP=\$( id -gn )
39935 # Prepare directory structure with default ACLs
39936 mkdir -p pure/d1/d2
39937 genfile --file pure/d1/f2a
39938 genfile --file pure/d1/f2b
39939 genfile --file pure/d1/d2/f3a
39940 genfile --file pure/d1/d2/f3b
39941 setfacl -m g:\$MYGROUP:r-x pure/d1
39942 setfacl -d -m g:\$MYGROUP:rwx pure/d1
39943 setfacl -d -m u:\$MYNAME:rwx pure/d1
39944 # \"*a\" files have \"some\" additional ACLs
39945 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
39946 setfacl -m u:\$MYNAME:--- pure/d1/f2a
39948 # use default format (no acls stored)
39949 tar -cf noacl.tar -C pure d1
39951 # use posix format, acls stored
39952 tar --acls -cf acl.tar -C pure d1
39954 # Directory names are chosen based on \"how the files were extracted from
39955 # archive\". Equivalent no* tags are used also:
39956 # ^sacl_ — extracted archive has stored ACLs
39957 # _def_ — target directory (-C) has default ACLs
39958 # _optacl\$ — extraction was done with --acls option
39960 mkdir sacl_def_optacl
39961 mkdir sacl_def_optnoacl
39962 mkdir sacl_nodef_optacl
39963 mkdir sacl_nodef_optnoacl
39964 mkdir nosacl_def_optacl
39965 mkdir nosacl_def_optnoacl
39966 mkdir nosacl_nodef_optacl
39967 mkdir nosacl_nodef_optnoacl
39969 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
39970 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
39972 tar -xf acl.tar -C sacl_nodef_optnoacl
39973 tar --acls -xf acl.tar -C sacl_nodef_optacl
39974 tar -xf acl.tar -C sacl_def_optnoacl
39975 tar --acls -xf acl.tar -C sacl_def_optacl
39976 tar -xf noacl.tar -C nosacl_def_optnoacl
39977 # _NO_ ACLs in output
39978 tar -xf noacl.tar -C nosacl_nodef_optnoacl
39979 tar -xf noacl.tar -C nosacl_nodef_optacl
39980 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
39981 # _NO_ ACLs in output (even when default ACLs exist)
39982 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
39986 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
39992 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
39996 cd sacl_def_optnoacl
39997 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40001 cd sacl_nodef_optacl
40002 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40006 cd sacl_nodef_optnoacl
40007 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40011 cd nosacl_def_optacl
40012 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40016 cd nosacl_def_optnoacl
40017 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40021 cd nosacl_nodef_optacl
40022 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40026 cd nosacl_nodef_optnoacl
40027 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40032 echo \"\$pure\" > pure.log
40033 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40034 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
40035 echo \"bad 'pure' against 'sacl_def_optacl' output\"
40040 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40041 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
40042 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
40043 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
40047 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40048 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40049 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
40050 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
40054 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
40055 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40056 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40057 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40061 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40062 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
40063 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
40064 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
40068 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40069 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40070 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40071 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
40076 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40077 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40078 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
40079 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
40083 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40084 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40085 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
40086 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
40090 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40091 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40092 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
40093 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40097 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
40102 export TEST_TAR_FORMAT
40103 TAR_OPTIONS="-H v7"
40108 file=$(TMPDIR=. mktemp fiXXXXXX)
40110 setfattr -n user.test -v test $file &> /dev/null
40111 if test "$?" != 0; then
40116 getfattr $file &> /dev/null
40117 if test "$?" != 0; then
40124 file=$(TMPDIR=. mktemp fiXXXXXX)
40126 setfacl -m u:$UID:rwx $file &> /dev/null
40127 if test "$?" != 0; then
40132 getfacl $file &> /dev/null
40133 if test "$?" != 0; then
40139 file=$(TMPDIR=. mktemp fiXXXXXX)
40140 setfacl -m u:$UID:rwx $file
40141 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40142 if test "$err" != "0"; then
40147 test -z "`sort < /dev/null 2>&1`" || exit 77
40151 MYGROUP=$( id -gn )
40153 # Prepare directory structure with default ACLs
40154 mkdir -p pure/d1/d2
40155 genfile --file pure/d1/f2a
40156 genfile --file pure/d1/f2b
40157 genfile --file pure/d1/d2/f3a
40158 genfile --file pure/d1/d2/f3b
40159 setfacl -m g:$MYGROUP:r-x pure/d1
40160 setfacl -d -m g:$MYGROUP:rwx pure/d1
40161 setfacl -d -m u:$MYNAME:rwx pure/d1
40162 # "*a" files have "some" additional ACLs
40163 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
40164 setfacl -m u:$MYNAME:--- pure/d1/f2a
40166 # use default format (no acls stored)
40167 tar -cf noacl.tar -C pure d1
40169 # use posix format, acls stored
40170 tar --acls -cf acl.tar -C pure d1
40172 # Directory names are chosen based on "how the files were extracted from
40173 # archive". Equivalent no* tags are used also:
40174 # ^sacl_ — extracted archive has stored ACLs
40175 # _def_ — target directory (-C) has default ACLs
40176 # _optacl$ — extraction was done with --acls option
40178 mkdir sacl_def_optacl
40179 mkdir sacl_def_optnoacl
40180 mkdir sacl_nodef_optacl
40181 mkdir sacl_nodef_optnoacl
40182 mkdir nosacl_def_optacl
40183 mkdir nosacl_def_optnoacl
40184 mkdir nosacl_nodef_optacl
40185 mkdir nosacl_nodef_optnoacl
40187 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40188 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40190 tar -xf acl.tar -C sacl_nodef_optnoacl
40191 tar --acls -xf acl.tar -C sacl_nodef_optacl
40192 tar -xf acl.tar -C sacl_def_optnoacl
40193 tar --acls -xf acl.tar -C sacl_def_optacl
40194 tar -xf noacl.tar -C nosacl_def_optnoacl
40195 # _NO_ ACLs in output
40196 tar -xf noacl.tar -C nosacl_nodef_optnoacl
40197 tar -xf noacl.tar -C nosacl_nodef_optacl
40198 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
40199 # _NO_ ACLs in output (even when default ACLs exist)
40200 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
40204 pure="$(find d1 | sort | xargs -n 1 getfacl)"
40210 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40214 cd sacl_def_optnoacl
40215 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40219 cd sacl_nodef_optacl
40220 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40224 cd sacl_nodef_optnoacl
40225 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40229 cd nosacl_def_optacl
40230 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40234 cd nosacl_def_optnoacl
40235 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40239 cd nosacl_nodef_optacl
40240 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40244 cd nosacl_nodef_optnoacl
40245 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40250 echo "$pure" > pure.log
40251 echo "$sacl_def_optacl" > sacl_def_optacl.log
40252 if test ! "$pure" "=" "$sacl_def_optacl"; then
40253 echo "bad 'pure' against 'sacl_def_optacl' output"
40258 echo "$sacl_def_optacl" > sacl_def_optacl.log
40259 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
40260 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
40261 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
40265 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
40266 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40267 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
40268 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
40272 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
40273 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40274 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
40275 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
40279 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
40280 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
40281 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
40282 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
40286 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
40287 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40288 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
40289 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
40294 echo "$sacl_def_optacl" > sacl_def_optacl.log
40295 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
40296 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
40297 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
40301 echo "$sacl_def_optacl" > sacl_def_optacl.log
40302 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40303 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
40304 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
40308 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40309 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40310 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
40311 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
40315 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40316 at_status=$? at_failed=false
40318 at_fn_diff_devnull "$at_stderr" || at_failed=:
40319 at_fn_diff_devnull "$at_stdout" || at_failed=:
40320 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
40321 $at_failed && at_fn_log_failure
40325 $as_echo "$at_srcdir/acls03.at:47:
40328 TEST_TAR_FORMAT=oldgnu
40329 export TEST_TAR_FORMAT
40330 TAR_OPTIONS=\"-H oldgnu\"
40335 file=\$(TMPDIR=. mktemp fiXXXXXX)
40337 setfattr -n user.test -v test \$file &> /dev/null
40338 if test \"\$?\" != 0; then
40343 getfattr \$file &> /dev/null
40344 if test \"\$?\" != 0; then
40351 file=\$(TMPDIR=. mktemp fiXXXXXX)
40353 setfacl -m u:\$UID:rwx \$file &> /dev/null
40354 if test \"\$?\" != 0; then
40359 getfacl \$file &> /dev/null
40360 if test \"\$?\" != 0; then
40366 file=\$(TMPDIR=. mktemp fiXXXXXX)
40367 setfacl -m u:\$UID:rwx \$file
40368 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40369 if test \"\$err\" != \"0\"; then
40374 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40377 MYNAME=\$( id -un )
40378 MYGROUP=\$( id -gn )
40380 # Prepare directory structure with default ACLs
40381 mkdir -p pure/d1/d2
40382 genfile --file pure/d1/f2a
40383 genfile --file pure/d1/f2b
40384 genfile --file pure/d1/d2/f3a
40385 genfile --file pure/d1/d2/f3b
40386 setfacl -m g:\$MYGROUP:r-x pure/d1
40387 setfacl -d -m g:\$MYGROUP:rwx pure/d1
40388 setfacl -d -m u:\$MYNAME:rwx pure/d1
40389 # \"*a\" files have \"some\" additional ACLs
40390 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
40391 setfacl -m u:\$MYNAME:--- pure/d1/f2a
40393 # use default format (no acls stored)
40394 tar -cf noacl.tar -C pure d1
40396 # use posix format, acls stored
40397 tar --acls -cf acl.tar -C pure d1
40399 # Directory names are chosen based on \"how the files were extracted from
40400 # archive\". Equivalent no* tags are used also:
40401 # ^sacl_ — extracted archive has stored ACLs
40402 # _def_ — target directory (-C) has default ACLs
40403 # _optacl\$ — extraction was done with --acls option
40405 mkdir sacl_def_optacl
40406 mkdir sacl_def_optnoacl
40407 mkdir sacl_nodef_optacl
40408 mkdir sacl_nodef_optnoacl
40409 mkdir nosacl_def_optacl
40410 mkdir nosacl_def_optnoacl
40411 mkdir nosacl_nodef_optacl
40412 mkdir nosacl_nodef_optnoacl
40414 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40415 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40417 tar -xf acl.tar -C sacl_nodef_optnoacl
40418 tar --acls -xf acl.tar -C sacl_nodef_optacl
40419 tar -xf acl.tar -C sacl_def_optnoacl
40420 tar --acls -xf acl.tar -C sacl_def_optacl
40421 tar -xf noacl.tar -C nosacl_def_optnoacl
40422 # _NO_ ACLs in output
40423 tar -xf noacl.tar -C nosacl_nodef_optnoacl
40424 tar -xf noacl.tar -C nosacl_nodef_optacl
40425 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
40426 # _NO_ ACLs in output (even when default ACLs exist)
40427 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
40431 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40437 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40441 cd sacl_def_optnoacl
40442 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40446 cd sacl_nodef_optacl
40447 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40451 cd sacl_nodef_optnoacl
40452 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40456 cd nosacl_def_optacl
40457 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40461 cd nosacl_def_optnoacl
40462 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40466 cd nosacl_nodef_optacl
40467 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40471 cd nosacl_nodef_optnoacl
40472 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40477 echo \"\$pure\" > pure.log
40478 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40479 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
40480 echo \"bad 'pure' against 'sacl_def_optacl' output\"
40485 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40486 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
40487 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
40488 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
40492 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40493 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40494 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
40495 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
40499 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
40500 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40501 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40502 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40506 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40507 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
40508 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
40509 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
40513 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40514 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40515 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40516 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
40521 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40522 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40523 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
40524 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
40528 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40529 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40530 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
40531 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
40535 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40536 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40537 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
40538 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40542 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
40546 TEST_TAR_FORMAT=oldgnu
40547 export TEST_TAR_FORMAT
40548 TAR_OPTIONS="-H oldgnu"
40553 file=$(TMPDIR=. mktemp fiXXXXXX)
40555 setfattr -n user.test -v test $file &> /dev/null
40556 if test "$?" != 0; then
40561 getfattr $file &> /dev/null
40562 if test "$?" != 0; then
40569 file=$(TMPDIR=. mktemp fiXXXXXX)
40571 setfacl -m u:$UID:rwx $file &> /dev/null
40572 if test "$?" != 0; then
40577 getfacl $file &> /dev/null
40578 if test "$?" != 0; then
40584 file=$(TMPDIR=. mktemp fiXXXXXX)
40585 setfacl -m u:$UID:rwx $file
40586 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
40587 if test "$err" != "0"; then
40592 test -z "`sort < /dev/null 2>&1`" || exit 77
40596 MYGROUP=$( id -gn )
40598 # Prepare directory structure with default ACLs
40599 mkdir -p pure/d1/d2
40600 genfile --file pure/d1/f2a
40601 genfile --file pure/d1/f2b
40602 genfile --file pure/d1/d2/f3a
40603 genfile --file pure/d1/d2/f3b
40604 setfacl -m g:$MYGROUP:r-x pure/d1
40605 setfacl -d -m g:$MYGROUP:rwx pure/d1
40606 setfacl -d -m u:$MYNAME:rwx pure/d1
40607 # "*a" files have "some" additional ACLs
40608 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
40609 setfacl -m u:$MYNAME:--- pure/d1/f2a
40611 # use default format (no acls stored)
40612 tar -cf noacl.tar -C pure d1
40614 # use posix format, acls stored
40615 tar --acls -cf acl.tar -C pure d1
40617 # Directory names are chosen based on "how the files were extracted from
40618 # archive". Equivalent no* tags are used also:
40619 # ^sacl_ — extracted archive has stored ACLs
40620 # _def_ — target directory (-C) has default ACLs
40621 # _optacl$ — extraction was done with --acls option
40623 mkdir sacl_def_optacl
40624 mkdir sacl_def_optnoacl
40625 mkdir sacl_nodef_optacl
40626 mkdir sacl_nodef_optnoacl
40627 mkdir nosacl_def_optacl
40628 mkdir nosacl_def_optnoacl
40629 mkdir nosacl_nodef_optacl
40630 mkdir nosacl_nodef_optnoacl
40632 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40633 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40635 tar -xf acl.tar -C sacl_nodef_optnoacl
40636 tar --acls -xf acl.tar -C sacl_nodef_optacl
40637 tar -xf acl.tar -C sacl_def_optnoacl
40638 tar --acls -xf acl.tar -C sacl_def_optacl
40639 tar -xf noacl.tar -C nosacl_def_optnoacl
40640 # _NO_ ACLs in output
40641 tar -xf noacl.tar -C nosacl_nodef_optnoacl
40642 tar -xf noacl.tar -C nosacl_nodef_optacl
40643 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
40644 # _NO_ ACLs in output (even when default ACLs exist)
40645 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
40649 pure="$(find d1 | sort | xargs -n 1 getfacl)"
40655 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40659 cd sacl_def_optnoacl
40660 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40664 cd sacl_nodef_optacl
40665 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40669 cd sacl_nodef_optnoacl
40670 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40674 cd nosacl_def_optacl
40675 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40679 cd nosacl_def_optnoacl
40680 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40684 cd nosacl_nodef_optacl
40685 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
40689 cd nosacl_nodef_optnoacl
40690 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
40695 echo "$pure" > pure.log
40696 echo "$sacl_def_optacl" > sacl_def_optacl.log
40697 if test ! "$pure" "=" "$sacl_def_optacl"; then
40698 echo "bad 'pure' against 'sacl_def_optacl' output"
40703 echo "$sacl_def_optacl" > sacl_def_optacl.log
40704 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
40705 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
40706 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
40710 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
40711 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40712 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
40713 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
40717 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
40718 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40719 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
40720 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
40724 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
40725 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
40726 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
40727 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
40731 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
40732 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40733 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
40734 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
40739 echo "$sacl_def_optacl" > sacl_def_optacl.log
40740 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
40741 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
40742 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
40746 echo "$sacl_def_optacl" > sacl_def_optacl.log
40747 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40748 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
40749 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
40753 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
40754 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
40755 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
40756 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
40760 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
40761 at_status=$? at_failed=false
40763 at_fn_diff_devnull "$at_stderr" || at_failed=:
40764 at_fn_diff_devnull "$at_stdout" || at_failed=:
40765 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
40766 $at_failed && at_fn_log_failure
40770 $as_echo "$at_srcdir/acls03.at:47:
40773 TEST_TAR_FORMAT=ustar
40774 export TEST_TAR_FORMAT
40775 TAR_OPTIONS=\"-H ustar\"
40780 file=\$(TMPDIR=. mktemp fiXXXXXX)
40782 setfattr -n user.test -v test \$file &> /dev/null
40783 if test \"\$?\" != 0; then
40788 getfattr \$file &> /dev/null
40789 if test \"\$?\" != 0; then
40796 file=\$(TMPDIR=. mktemp fiXXXXXX)
40798 setfacl -m u:\$UID:rwx \$file &> /dev/null
40799 if test \"\$?\" != 0; then
40804 getfacl \$file &> /dev/null
40805 if test \"\$?\" != 0; then
40811 file=\$(TMPDIR=. mktemp fiXXXXXX)
40812 setfacl -m u:\$UID:rwx \$file
40813 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
40814 if test \"\$err\" != \"0\"; then
40819 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
40822 MYNAME=\$( id -un )
40823 MYGROUP=\$( id -gn )
40825 # Prepare directory structure with default ACLs
40826 mkdir -p pure/d1/d2
40827 genfile --file pure/d1/f2a
40828 genfile --file pure/d1/f2b
40829 genfile --file pure/d1/d2/f3a
40830 genfile --file pure/d1/d2/f3b
40831 setfacl -m g:\$MYGROUP:r-x pure/d1
40832 setfacl -d -m g:\$MYGROUP:rwx pure/d1
40833 setfacl -d -m u:\$MYNAME:rwx pure/d1
40834 # \"*a\" files have \"some\" additional ACLs
40835 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
40836 setfacl -m u:\$MYNAME:--- pure/d1/f2a
40838 # use default format (no acls stored)
40839 tar -cf noacl.tar -C pure d1
40841 # use posix format, acls stored
40842 tar --acls -cf acl.tar -C pure d1
40844 # Directory names are chosen based on \"how the files were extracted from
40845 # archive\". Equivalent no* tags are used also:
40846 # ^sacl_ — extracted archive has stored ACLs
40847 # _def_ — target directory (-C) has default ACLs
40848 # _optacl\$ — extraction was done with --acls option
40850 mkdir sacl_def_optacl
40851 mkdir sacl_def_optnoacl
40852 mkdir sacl_nodef_optacl
40853 mkdir sacl_nodef_optnoacl
40854 mkdir nosacl_def_optacl
40855 mkdir nosacl_def_optnoacl
40856 mkdir nosacl_nodef_optacl
40857 mkdir nosacl_nodef_optnoacl
40859 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40860 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
40862 tar -xf acl.tar -C sacl_nodef_optnoacl
40863 tar --acls -xf acl.tar -C sacl_nodef_optacl
40864 tar -xf acl.tar -C sacl_def_optnoacl
40865 tar --acls -xf acl.tar -C sacl_def_optacl
40866 tar -xf noacl.tar -C nosacl_def_optnoacl
40867 # _NO_ ACLs in output
40868 tar -xf noacl.tar -C nosacl_nodef_optnoacl
40869 tar -xf noacl.tar -C nosacl_nodef_optacl
40870 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
40871 # _NO_ ACLs in output (even when default ACLs exist)
40872 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
40876 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40882 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40886 cd sacl_def_optnoacl
40887 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40891 cd sacl_nodef_optacl
40892 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40896 cd sacl_nodef_optnoacl
40897 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40901 cd nosacl_def_optacl
40902 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40906 cd nosacl_def_optnoacl
40907 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40911 cd nosacl_nodef_optacl
40912 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40916 cd nosacl_nodef_optnoacl
40917 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
40922 echo \"\$pure\" > pure.log
40923 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40924 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
40925 echo \"bad 'pure' against 'sacl_def_optacl' output\"
40930 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40931 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
40932 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
40933 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
40937 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40938 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40939 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
40940 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
40944 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
40945 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40946 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40947 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40951 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40952 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
40953 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
40954 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
40958 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
40959 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40960 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
40961 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
40966 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40967 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
40968 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
40969 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
40973 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
40974 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40975 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
40976 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
40980 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
40981 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
40982 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
40983 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
40987 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
40991 TEST_TAR_FORMAT=ustar
40992 export TEST_TAR_FORMAT
40993 TAR_OPTIONS="-H ustar"
40998 file=$(TMPDIR=. mktemp fiXXXXXX)
41000 setfattr -n user.test -v test $file &> /dev/null
41001 if test "$?" != 0; then
41006 getfattr $file &> /dev/null
41007 if test "$?" != 0; then
41014 file=$(TMPDIR=. mktemp fiXXXXXX)
41016 setfacl -m u:$UID:rwx $file &> /dev/null
41017 if test "$?" != 0; then
41022 getfacl $file &> /dev/null
41023 if test "$?" != 0; then
41029 file=$(TMPDIR=. mktemp fiXXXXXX)
41030 setfacl -m u:$UID:rwx $file
41031 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41032 if test "$err" != "0"; then
41037 test -z "`sort < /dev/null 2>&1`" || exit 77
41041 MYGROUP=$( id -gn )
41043 # Prepare directory structure with default ACLs
41044 mkdir -p pure/d1/d2
41045 genfile --file pure/d1/f2a
41046 genfile --file pure/d1/f2b
41047 genfile --file pure/d1/d2/f3a
41048 genfile --file pure/d1/d2/f3b
41049 setfacl -m g:$MYGROUP:r-x pure/d1
41050 setfacl -d -m g:$MYGROUP:rwx pure/d1
41051 setfacl -d -m u:$MYNAME:rwx pure/d1
41052 # "*a" files have "some" additional ACLs
41053 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
41054 setfacl -m u:$MYNAME:--- pure/d1/f2a
41056 # use default format (no acls stored)
41057 tar -cf noacl.tar -C pure d1
41059 # use posix format, acls stored
41060 tar --acls -cf acl.tar -C pure d1
41062 # Directory names are chosen based on "how the files were extracted from
41063 # archive". Equivalent no* tags are used also:
41064 # ^sacl_ — extracted archive has stored ACLs
41065 # _def_ — target directory (-C) has default ACLs
41066 # _optacl$ — extraction was done with --acls option
41068 mkdir sacl_def_optacl
41069 mkdir sacl_def_optnoacl
41070 mkdir sacl_nodef_optacl
41071 mkdir sacl_nodef_optnoacl
41072 mkdir nosacl_def_optacl
41073 mkdir nosacl_def_optnoacl
41074 mkdir nosacl_nodef_optacl
41075 mkdir nosacl_nodef_optnoacl
41077 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41078 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41080 tar -xf acl.tar -C sacl_nodef_optnoacl
41081 tar --acls -xf acl.tar -C sacl_nodef_optacl
41082 tar -xf acl.tar -C sacl_def_optnoacl
41083 tar --acls -xf acl.tar -C sacl_def_optacl
41084 tar -xf noacl.tar -C nosacl_def_optnoacl
41085 # _NO_ ACLs in output
41086 tar -xf noacl.tar -C nosacl_nodef_optnoacl
41087 tar -xf noacl.tar -C nosacl_nodef_optacl
41088 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
41089 # _NO_ ACLs in output (even when default ACLs exist)
41090 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
41094 pure="$(find d1 | sort | xargs -n 1 getfacl)"
41100 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41104 cd sacl_def_optnoacl
41105 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41109 cd sacl_nodef_optacl
41110 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41114 cd sacl_nodef_optnoacl
41115 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41119 cd nosacl_def_optacl
41120 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41124 cd nosacl_def_optnoacl
41125 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41129 cd nosacl_nodef_optacl
41130 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41134 cd nosacl_nodef_optnoacl
41135 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41140 echo "$pure" > pure.log
41141 echo "$sacl_def_optacl" > sacl_def_optacl.log
41142 if test ! "$pure" "=" "$sacl_def_optacl"; then
41143 echo "bad 'pure' against 'sacl_def_optacl' output"
41148 echo "$sacl_def_optacl" > sacl_def_optacl.log
41149 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
41150 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
41151 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
41155 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
41156 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41157 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
41158 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
41162 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
41163 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41164 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
41165 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
41169 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
41170 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
41171 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
41172 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
41176 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
41177 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41178 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
41179 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
41184 echo "$sacl_def_optacl" > sacl_def_optacl.log
41185 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
41186 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
41187 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
41191 echo "$sacl_def_optacl" > sacl_def_optacl.log
41192 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41193 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
41194 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
41198 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41199 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41200 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
41201 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
41205 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41206 at_status=$? at_failed=false
41208 at_fn_diff_devnull "$at_stderr" || at_failed=:
41209 at_fn_diff_devnull "$at_stdout" || at_failed=:
41210 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
41211 $at_failed && at_fn_log_failure
41215 $as_echo "$at_srcdir/acls03.at:47:
41218 TEST_TAR_FORMAT=posix
41219 export TEST_TAR_FORMAT
41220 TAR_OPTIONS=\"-H posix\"
41225 file=\$(TMPDIR=. mktemp fiXXXXXX)
41227 setfattr -n user.test -v test \$file &> /dev/null
41228 if test \"\$?\" != 0; then
41233 getfattr \$file &> /dev/null
41234 if test \"\$?\" != 0; then
41241 file=\$(TMPDIR=. mktemp fiXXXXXX)
41243 setfacl -m u:\$UID:rwx \$file &> /dev/null
41244 if test \"\$?\" != 0; then
41249 getfacl \$file &> /dev/null
41250 if test \"\$?\" != 0; then
41256 file=\$(TMPDIR=. mktemp fiXXXXXX)
41257 setfacl -m u:\$UID:rwx \$file
41258 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41259 if test \"\$err\" != \"0\"; then
41264 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
41267 MYNAME=\$( id -un )
41268 MYGROUP=\$( id -gn )
41270 # Prepare directory structure with default ACLs
41271 mkdir -p pure/d1/d2
41272 genfile --file pure/d1/f2a
41273 genfile --file pure/d1/f2b
41274 genfile --file pure/d1/d2/f3a
41275 genfile --file pure/d1/d2/f3b
41276 setfacl -m g:\$MYGROUP:r-x pure/d1
41277 setfacl -d -m g:\$MYGROUP:rwx pure/d1
41278 setfacl -d -m u:\$MYNAME:rwx pure/d1
41279 # \"*a\" files have \"some\" additional ACLs
41280 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
41281 setfacl -m u:\$MYNAME:--- pure/d1/f2a
41283 # use default format (no acls stored)
41284 tar -cf noacl.tar -C pure d1
41286 # use posix format, acls stored
41287 tar --acls -cf acl.tar -C pure d1
41289 # Directory names are chosen based on \"how the files were extracted from
41290 # archive\". Equivalent no* tags are used also:
41291 # ^sacl_ — extracted archive has stored ACLs
41292 # _def_ — target directory (-C) has default ACLs
41293 # _optacl\$ — extraction was done with --acls option
41295 mkdir sacl_def_optacl
41296 mkdir sacl_def_optnoacl
41297 mkdir sacl_nodef_optacl
41298 mkdir sacl_nodef_optnoacl
41299 mkdir nosacl_def_optacl
41300 mkdir nosacl_def_optnoacl
41301 mkdir nosacl_nodef_optacl
41302 mkdir nosacl_nodef_optnoacl
41304 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41305 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41307 tar -xf acl.tar -C sacl_nodef_optnoacl
41308 tar --acls -xf acl.tar -C sacl_nodef_optacl
41309 tar -xf acl.tar -C sacl_def_optnoacl
41310 tar --acls -xf acl.tar -C sacl_def_optacl
41311 tar -xf noacl.tar -C nosacl_def_optnoacl
41312 # _NO_ ACLs in output
41313 tar -xf noacl.tar -C nosacl_nodef_optnoacl
41314 tar -xf noacl.tar -C nosacl_nodef_optacl
41315 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
41316 # _NO_ ACLs in output (even when default ACLs exist)
41317 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
41321 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41327 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41331 cd sacl_def_optnoacl
41332 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41336 cd sacl_nodef_optacl
41337 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41341 cd sacl_nodef_optnoacl
41342 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41346 cd nosacl_def_optacl
41347 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41351 cd nosacl_def_optnoacl
41352 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41356 cd nosacl_nodef_optacl
41357 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41361 cd nosacl_nodef_optnoacl
41362 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41367 echo \"\$pure\" > pure.log
41368 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41369 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
41370 echo \"bad 'pure' against 'sacl_def_optacl' output\"
41375 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41376 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
41377 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
41378 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
41382 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
41383 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41384 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
41385 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
41389 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
41390 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41391 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
41392 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
41396 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
41397 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
41398 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
41399 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
41403 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
41404 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41405 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
41406 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
41411 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41412 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
41413 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
41414 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
41418 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41419 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41420 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
41421 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
41425 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41426 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41427 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
41428 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
41432 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
41436 TEST_TAR_FORMAT=posix
41437 export TEST_TAR_FORMAT
41438 TAR_OPTIONS="-H posix"
41443 file=$(TMPDIR=. mktemp fiXXXXXX)
41445 setfattr -n user.test -v test $file &> /dev/null
41446 if test "$?" != 0; then
41451 getfattr $file &> /dev/null
41452 if test "$?" != 0; then
41459 file=$(TMPDIR=. mktemp fiXXXXXX)
41461 setfacl -m u:$UID:rwx $file &> /dev/null
41462 if test "$?" != 0; then
41467 getfacl $file &> /dev/null
41468 if test "$?" != 0; then
41474 file=$(TMPDIR=. mktemp fiXXXXXX)
41475 setfacl -m u:$UID:rwx $file
41476 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41477 if test "$err" != "0"; then
41482 test -z "`sort < /dev/null 2>&1`" || exit 77
41486 MYGROUP=$( id -gn )
41488 # Prepare directory structure with default ACLs
41489 mkdir -p pure/d1/d2
41490 genfile --file pure/d1/f2a
41491 genfile --file pure/d1/f2b
41492 genfile --file pure/d1/d2/f3a
41493 genfile --file pure/d1/d2/f3b
41494 setfacl -m g:$MYGROUP:r-x pure/d1
41495 setfacl -d -m g:$MYGROUP:rwx pure/d1
41496 setfacl -d -m u:$MYNAME:rwx pure/d1
41497 # "*a" files have "some" additional ACLs
41498 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
41499 setfacl -m u:$MYNAME:--- pure/d1/f2a
41501 # use default format (no acls stored)
41502 tar -cf noacl.tar -C pure d1
41504 # use posix format, acls stored
41505 tar --acls -cf acl.tar -C pure d1
41507 # Directory names are chosen based on "how the files were extracted from
41508 # archive". Equivalent no* tags are used also:
41509 # ^sacl_ — extracted archive has stored ACLs
41510 # _def_ — target directory (-C) has default ACLs
41511 # _optacl$ — extraction was done with --acls option
41513 mkdir sacl_def_optacl
41514 mkdir sacl_def_optnoacl
41515 mkdir sacl_nodef_optacl
41516 mkdir sacl_nodef_optnoacl
41517 mkdir nosacl_def_optacl
41518 mkdir nosacl_def_optnoacl
41519 mkdir nosacl_nodef_optacl
41520 mkdir nosacl_nodef_optnoacl
41522 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41523 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41525 tar -xf acl.tar -C sacl_nodef_optnoacl
41526 tar --acls -xf acl.tar -C sacl_nodef_optacl
41527 tar -xf acl.tar -C sacl_def_optnoacl
41528 tar --acls -xf acl.tar -C sacl_def_optacl
41529 tar -xf noacl.tar -C nosacl_def_optnoacl
41530 # _NO_ ACLs in output
41531 tar -xf noacl.tar -C nosacl_nodef_optnoacl
41532 tar -xf noacl.tar -C nosacl_nodef_optacl
41533 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
41534 # _NO_ ACLs in output (even when default ACLs exist)
41535 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
41539 pure="$(find d1 | sort | xargs -n 1 getfacl)"
41545 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41549 cd sacl_def_optnoacl
41550 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41554 cd sacl_nodef_optacl
41555 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41559 cd sacl_nodef_optnoacl
41560 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41564 cd nosacl_def_optacl
41565 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41569 cd nosacl_def_optnoacl
41570 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41574 cd nosacl_nodef_optacl
41575 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41579 cd nosacl_nodef_optnoacl
41580 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41585 echo "$pure" > pure.log
41586 echo "$sacl_def_optacl" > sacl_def_optacl.log
41587 if test ! "$pure" "=" "$sacl_def_optacl"; then
41588 echo "bad 'pure' against 'sacl_def_optacl' output"
41593 echo "$sacl_def_optacl" > sacl_def_optacl.log
41594 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
41595 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
41596 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
41600 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
41601 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41602 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
41603 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
41607 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
41608 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41609 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
41610 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
41614 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
41615 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
41616 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
41617 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
41621 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
41622 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41623 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
41624 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
41629 echo "$sacl_def_optacl" > sacl_def_optacl.log
41630 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
41631 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
41632 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
41636 echo "$sacl_def_optacl" > sacl_def_optacl.log
41637 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41638 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
41639 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
41643 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
41644 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
41645 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
41646 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
41650 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
41651 at_status=$? at_failed=false
41653 at_fn_diff_devnull "$at_stderr" || at_failed=:
41654 at_fn_diff_devnull "$at_stdout" || at_failed=:
41655 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
41656 $at_failed && at_fn_log_failure
41660 $as_echo "$at_srcdir/acls03.at:47:
41663 TEST_TAR_FORMAT=gnu
41664 export TEST_TAR_FORMAT
41665 TAR_OPTIONS=\"-H gnu\"
41670 file=\$(TMPDIR=. mktemp fiXXXXXX)
41672 setfattr -n user.test -v test \$file &> /dev/null
41673 if test \"\$?\" != 0; then
41678 getfattr \$file &> /dev/null
41679 if test \"\$?\" != 0; then
41686 file=\$(TMPDIR=. mktemp fiXXXXXX)
41688 setfacl -m u:\$UID:rwx \$file &> /dev/null
41689 if test \"\$?\" != 0; then
41694 getfacl \$file &> /dev/null
41695 if test \"\$?\" != 0; then
41701 file=\$(TMPDIR=. mktemp fiXXXXXX)
41702 setfacl -m u:\$UID:rwx \$file
41703 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
41704 if test \"\$err\" != \"0\"; then
41709 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
41712 MYNAME=\$( id -un )
41713 MYGROUP=\$( id -gn )
41715 # Prepare directory structure with default ACLs
41716 mkdir -p pure/d1/d2
41717 genfile --file pure/d1/f2a
41718 genfile --file pure/d1/f2b
41719 genfile --file pure/d1/d2/f3a
41720 genfile --file pure/d1/d2/f3b
41721 setfacl -m g:\$MYGROUP:r-x pure/d1
41722 setfacl -d -m g:\$MYGROUP:rwx pure/d1
41723 setfacl -d -m u:\$MYNAME:rwx pure/d1
41724 # \"*a\" files have \"some\" additional ACLs
41725 setfacl -m u:\$MYNAME:--- pure/d1/d2/f3a
41726 setfacl -m u:\$MYNAME:--- pure/d1/f2a
41728 # use default format (no acls stored)
41729 tar -cf noacl.tar -C pure d1
41731 # use posix format, acls stored
41732 tar --acls -cf acl.tar -C pure d1
41734 # Directory names are chosen based on \"how the files were extracted from
41735 # archive\". Equivalent no* tags are used also:
41736 # ^sacl_ — extracted archive has stored ACLs
41737 # _def_ — target directory (-C) has default ACLs
41738 # _optacl\$ — extraction was done with --acls option
41740 mkdir sacl_def_optacl
41741 mkdir sacl_def_optnoacl
41742 mkdir sacl_nodef_optacl
41743 mkdir sacl_nodef_optnoacl
41744 mkdir nosacl_def_optacl
41745 mkdir nosacl_def_optnoacl
41746 mkdir nosacl_nodef_optacl
41747 mkdir nosacl_nodef_optnoacl
41749 setfacl -d -m u:\$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41750 setfacl -d -m g:\$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41752 tar -xf acl.tar -C sacl_nodef_optnoacl
41753 tar --acls -xf acl.tar -C sacl_nodef_optacl
41754 tar -xf acl.tar -C sacl_def_optnoacl
41755 tar --acls -xf acl.tar -C sacl_def_optacl
41756 tar -xf noacl.tar -C nosacl_def_optnoacl
41757 # _NO_ ACLs in output
41758 tar -xf noacl.tar -C nosacl_nodef_optnoacl
41759 tar -xf noacl.tar -C nosacl_nodef_optacl
41760 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
41761 # _NO_ ACLs in output (even when default ACLs exist)
41762 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
41766 pure=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41772 sacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41776 cd sacl_def_optnoacl
41777 sacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41781 cd sacl_nodef_optacl
41782 sacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41786 cd sacl_nodef_optnoacl
41787 sacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41791 cd nosacl_def_optacl
41792 nosacl_def_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41796 cd nosacl_def_optnoacl
41797 nosacl_def_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41801 cd nosacl_nodef_optacl
41802 nosacl_nodef_optacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41806 cd nosacl_nodef_optnoacl
41807 nosacl_nodef_optnoacl=\"\$(find d1 | sort | xargs -n 1 getfacl)\"
41812 echo \"\$pure\" > pure.log
41813 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41814 if test ! \"\$pure\" \"=\" \"\$sacl_def_optacl\"; then
41815 echo \"bad 'pure' against 'sacl_def_optacl' output\"
41820 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41821 echo \"\$sacl_nodef_optacl\" > sacl_nodef_optacl.log
41822 if test ! \"\$sacl_def_optacl\" \"=\" \"\$sacl_nodef_optacl\"; then
41823 echo \"bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output\"
41827 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
41828 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41829 if test ! \"\$sacl_def_optnoacl\" \"=\" \"\$nosacl_def_optnoacl\"; then
41830 echo \"bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output\"
41834 echo \"\$sacl_nodef_optnoacl\" > sacl_nodef_optnoacl.log
41835 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41836 if test ! \"\$sacl_nodef_optnoacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
41837 echo \"bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output\"
41841 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
41842 echo \"\$nosacl_nodef_optacl\" > nosacl_nodef_optacl.log
41843 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optacl\"; then
41844 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output\"
41848 echo \"\$nosacl_def_optacl\" > nosacl_def_optacl.log
41849 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41850 if test ! \"\$nosacl_def_optacl\" \"=\" \"\$nosacl_nodef_optnoacl\"; then
41851 echo \"bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output\"
41856 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41857 echo \"\$sacl_def_optnoacl\" > sacl_def_optnoacl.log
41858 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$sacl_def_optnoacl\"; then
41859 echo \"bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output\"
41863 echo \"\$sacl_def_optacl\" > sacl_def_optacl.log
41864 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41865 if test ! \"\$sacl_def_optacl\" \"!=\" \"\$nosacl_def_optnoacl\"; then
41866 echo \"bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output\"
41870 echo \"\$nosacl_def_optnoacl\" > nosacl_def_optnoacl.log
41871 echo \"\$nosacl_nodef_optnoacl\" > nosacl_nodef_optnoacl.log
41872 if test ! \"\$nosacl_def_optnoacl\" \"!=\" \"\$nosacl_nodef_optnoacl\"; then
41873 echo \"bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output\"
41877 at_fn_check_prepare_notrace 'a `...` command substitution' "acls03.at:47"
41881 TEST_TAR_FORMAT=gnu
41882 export TEST_TAR_FORMAT
41883 TAR_OPTIONS="-H gnu"
41888 file=$(TMPDIR=. mktemp fiXXXXXX)
41890 setfattr -n user.test -v test $file &> /dev/null
41891 if test "$?" != 0; then
41896 getfattr $file &> /dev/null
41897 if test "$?" != 0; then
41904 file=$(TMPDIR=. mktemp fiXXXXXX)
41906 setfacl -m u:$UID:rwx $file &> /dev/null
41907 if test "$?" != 0; then
41912 getfacl $file &> /dev/null
41913 if test "$?" != 0; then
41919 file=$(TMPDIR=. mktemp fiXXXXXX)
41920 setfacl -m u:$UID:rwx $file
41921 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
41922 if test "$err" != "0"; then
41927 test -z "`sort < /dev/null 2>&1`" || exit 77
41931 MYGROUP=$( id -gn )
41933 # Prepare directory structure with default ACLs
41934 mkdir -p pure/d1/d2
41935 genfile --file pure/d1/f2a
41936 genfile --file pure/d1/f2b
41937 genfile --file pure/d1/d2/f3a
41938 genfile --file pure/d1/d2/f3b
41939 setfacl -m g:$MYGROUP:r-x pure/d1
41940 setfacl -d -m g:$MYGROUP:rwx pure/d1
41941 setfacl -d -m u:$MYNAME:rwx pure/d1
41942 # "*a" files have "some" additional ACLs
41943 setfacl -m u:$MYNAME:--- pure/d1/d2/f3a
41944 setfacl -m u:$MYNAME:--- pure/d1/f2a
41946 # use default format (no acls stored)
41947 tar -cf noacl.tar -C pure d1
41949 # use posix format, acls stored
41950 tar --acls -cf acl.tar -C pure d1
41952 # Directory names are chosen based on "how the files were extracted from
41953 # archive". Equivalent no* tags are used also:
41954 # ^sacl_ — extracted archive has stored ACLs
41955 # _def_ — target directory (-C) has default ACLs
41956 # _optacl$ — extraction was done with --acls option
41958 mkdir sacl_def_optacl
41959 mkdir sacl_def_optnoacl
41960 mkdir sacl_nodef_optacl
41961 mkdir sacl_nodef_optnoacl
41962 mkdir nosacl_def_optacl
41963 mkdir nosacl_def_optnoacl
41964 mkdir nosacl_nodef_optacl
41965 mkdir nosacl_nodef_optnoacl
41967 setfacl -d -m u:$MYNAME:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41968 setfacl -d -m g:$MYGROUP:--- nosacl_def_optnoacl sacl_def_optnoacl sacl_def_optacl nosacl_def_optacl
41970 tar -xf acl.tar -C sacl_nodef_optnoacl
41971 tar --acls -xf acl.tar -C sacl_nodef_optacl
41972 tar -xf acl.tar -C sacl_def_optnoacl
41973 tar --acls -xf acl.tar -C sacl_def_optacl
41974 tar -xf noacl.tar -C nosacl_def_optnoacl
41975 # _NO_ ACLs in output
41976 tar -xf noacl.tar -C nosacl_nodef_optnoacl
41977 tar -xf noacl.tar -C nosacl_nodef_optacl
41978 tar -cf noacl_repackaged.tar -C nosacl_nodef_optnoacl d1
41979 # _NO_ ACLs in output (even when default ACLs exist)
41980 tar --acls -xf noacl_repackaged.tar -C nosacl_def_optacl
41984 pure="$(find d1 | sort | xargs -n 1 getfacl)"
41990 sacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
41994 cd sacl_def_optnoacl
41995 sacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
41999 cd sacl_nodef_optacl
42000 sacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
42004 cd sacl_nodef_optnoacl
42005 sacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
42009 cd nosacl_def_optacl
42010 nosacl_def_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
42014 cd nosacl_def_optnoacl
42015 nosacl_def_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
42019 cd nosacl_nodef_optacl
42020 nosacl_nodef_optacl="$(find d1 | sort | xargs -n 1 getfacl)"
42024 cd nosacl_nodef_optnoacl
42025 nosacl_nodef_optnoacl="$(find d1 | sort | xargs -n 1 getfacl)"
42030 echo "$pure" > pure.log
42031 echo "$sacl_def_optacl" > sacl_def_optacl.log
42032 if test ! "$pure" "=" "$sacl_def_optacl"; then
42033 echo "bad 'pure' against 'sacl_def_optacl' output"
42038 echo "$sacl_def_optacl" > sacl_def_optacl.log
42039 echo "$sacl_nodef_optacl" > sacl_nodef_optacl.log
42040 if test ! "$sacl_def_optacl" "=" "$sacl_nodef_optacl"; then
42041 echo "bad 'sacl_def_optacl' against 'sacl_nodef_optacl' output"
42045 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
42046 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
42047 if test ! "$sacl_def_optnoacl" "=" "$nosacl_def_optnoacl"; then
42048 echo "bad 'sacl_def_optnoacl' against 'nosacl_def_optnoacl' output"
42052 echo "$sacl_nodef_optnoacl" > sacl_nodef_optnoacl.log
42053 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
42054 if test ! "$sacl_nodef_optnoacl" "=" "$nosacl_nodef_optnoacl"; then
42055 echo "bad 'sacl_nodef_optnoacl' against 'nosacl_nodef_optnoacl' output"
42059 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
42060 echo "$nosacl_nodef_optacl" > nosacl_nodef_optacl.log
42061 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optacl"; then
42062 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optacl' output"
42066 echo "$nosacl_def_optacl" > nosacl_def_optacl.log
42067 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
42068 if test ! "$nosacl_def_optacl" "=" "$nosacl_nodef_optnoacl"; then
42069 echo "bad 'nosacl_def_optacl' against 'nosacl_nodef_optnoacl' output"
42074 echo "$sacl_def_optacl" > sacl_def_optacl.log
42075 echo "$sacl_def_optnoacl" > sacl_def_optnoacl.log
42076 if test ! "$sacl_def_optacl" "!=" "$sacl_def_optnoacl"; then
42077 echo "bad 'sacl_def_optacl' against 'sacl_def_optnoacl' output"
42081 echo "$sacl_def_optacl" > sacl_def_optacl.log
42082 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
42083 if test ! "$sacl_def_optacl" "!=" "$nosacl_def_optnoacl"; then
42084 echo "bad 'sacl_def_optacl' against 'nosacl_def_optnoacl' output"
42088 echo "$nosacl_def_optnoacl" > nosacl_def_optnoacl.log
42089 echo "$nosacl_nodef_optnoacl" > nosacl_nodef_optnoacl.log
42090 if test ! "$nosacl_def_optnoacl" "!=" "$nosacl_nodef_optnoacl"; then
42091 echo "bad 'nosacl_def_optnoacl' against 'nosacl_nodef_optnoacl' output"
42095 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42096 at_status=$? at_failed=false
42098 at_fn_diff_devnull "$at_stderr" || at_failed=:
42099 at_fn_diff_devnull "$at_stdout" || at_failed=:
42100 at_fn_check_status 0 $at_status "$at_srcdir/acls03.at:47"
42101 $at_failed && at_fn_log_failure
42108 $at_times_p && times >"$at_times_file"
42109 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
42110 read at_status <"$at_status_file"
42113 at_fn_group_banner 176 'selnx01.at:25' \
42114 "selinux: basic store/restore" " " 25
42116 test -f $XFAILFILE && at_xfail=yes
42118 $as_echo "176. $at_setup_line: testing $at_desc ..."
42126 $as_echo "$at_srcdir/selnx01.at:28:
42130 export TEST_TAR_FORMAT
42131 TAR_OPTIONS=\"-H v7\"
42136 file=\$(TMPDIR=. mktemp fiXXXXXX)
42138 setfattr -n user.test -v test \$file &> /dev/null
42139 if test \"\$?\" != 0; then
42144 getfattr \$file &> /dev/null
42145 if test \"\$?\" != 0; then
42152 file=\$(TMPDIR=. mktemp fiXXXXXX)
42154 restorecon \$file &> /dev/null
42155 if test \"\$?\" != 0; then
42160 chcon -h --user=unconfined_u \$file &> /dev/null
42161 if test \"\$?\" != 0; then
42167 file=\$(TMPDIR=. mktemp fiXXXXXX)
42168 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42169 if test \"\$err\" != \"0\"; then
42175 genfile --file dir/file
42176 ln -s file dir/link
42178 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42181 chcon -h --user=system_u dir
42182 chcon -h --user=unconfined_u dir/file
42183 chcon -h --user=system_u dir/link
42185 # archive whole directory including selinux contexts
42186 tar --selinux -cf archive.tar dir
42188 # clear the directory
42191 # ================================================
42192 # check if selinux contexts are correctly restored
42194 tar --selinux -xf archive.tar
42196 # archive for later debugging
42197 cp archive.tar archive_origin.tar
42199 # check if selinux contexts were restored
42200 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
42201 grep -v -e '^#' -e ^\$ | cut -d: -f1
42203 # ===========================================================================
42204 # check if selinux contexts are not restored when --selinux option is missing
42206 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42208 tar -xf archive.tar
42209 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42211 diff with_selinux without_selinux > diff_with_without
42212 if test \"\$?\" -eq \"0\"; then
42213 echo \"selinux contexts probably restored while --selinux is off\"
42216 # =================================================================
42217 # check if selinux is not archived when --selinux option is missing
42219 tar -cf archive.tar dir
42221 # clear the directory
42224 # restore (with --selinux)
42225 tar --selinux -xf archive.tar dir
42227 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42228 diff start final > final_diff
42229 if test \"\$?\" -ne \"0\"; then
42230 echo \"bad result\"
42234 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
42239 export TEST_TAR_FORMAT
42240 TAR_OPTIONS="-H v7"
42245 file=$(TMPDIR=. mktemp fiXXXXXX)
42247 setfattr -n user.test -v test $file &> /dev/null
42248 if test "$?" != 0; then
42253 getfattr $file &> /dev/null
42254 if test "$?" != 0; then
42261 file=$(TMPDIR=. mktemp fiXXXXXX)
42263 restorecon $file &> /dev/null
42264 if test "$?" != 0; then
42269 chcon -h --user=unconfined_u $file &> /dev/null
42270 if test "$?" != 0; then
42276 file=$(TMPDIR=. mktemp fiXXXXXX)
42277 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42278 if test "$err" != "0"; then
42284 genfile --file dir/file
42285 ln -s file dir/link
42287 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42290 chcon -h --user=system_u dir
42291 chcon -h --user=unconfined_u dir/file
42292 chcon -h --user=system_u dir/link
42294 # archive whole directory including selinux contexts
42295 tar --selinux -cf archive.tar dir
42297 # clear the directory
42300 # ================================================
42301 # check if selinux contexts are correctly restored
42303 tar --selinux -xf archive.tar
42305 # archive for later debugging
42306 cp archive.tar archive_origin.tar
42308 # check if selinux contexts were restored
42309 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
42310 grep -v -e '^#' -e ^$ | cut -d: -f1
42312 # ===========================================================================
42313 # check if selinux contexts are not restored when --selinux option is missing
42315 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42317 tar -xf archive.tar
42318 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42320 diff with_selinux without_selinux > diff_with_without
42321 if test "$?" -eq "0"; then
42322 echo "selinux contexts probably restored while --selinux is off"
42325 # =================================================================
42326 # check if selinux is not archived when --selinux option is missing
42328 tar -cf archive.tar dir
42330 # clear the directory
42333 # restore (with --selinux)
42334 tar --selinux -xf archive.tar dir
42336 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42337 diff start final > final_diff
42338 if test "$?" -ne "0"; then
42343 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42344 at_status=$? at_failed=false
42346 at_fn_diff_devnull "$at_stderr" || at_failed=:
42347 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
42348 security.selinux=\"unconfined_u
42349 security.selinux=\"system_u
42351 $at_diff - "$at_stdout" || at_failed=:
42352 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
42353 $at_failed && at_fn_log_failure
42357 $as_echo "$at_srcdir/selnx01.at:28:
42360 TEST_TAR_FORMAT=oldgnu
42361 export TEST_TAR_FORMAT
42362 TAR_OPTIONS=\"-H oldgnu\"
42367 file=\$(TMPDIR=. mktemp fiXXXXXX)
42369 setfattr -n user.test -v test \$file &> /dev/null
42370 if test \"\$?\" != 0; then
42375 getfattr \$file &> /dev/null
42376 if test \"\$?\" != 0; then
42383 file=\$(TMPDIR=. mktemp fiXXXXXX)
42385 restorecon \$file &> /dev/null
42386 if test \"\$?\" != 0; then
42391 chcon -h --user=unconfined_u \$file &> /dev/null
42392 if test \"\$?\" != 0; then
42398 file=\$(TMPDIR=. mktemp fiXXXXXX)
42399 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42400 if test \"\$err\" != \"0\"; then
42406 genfile --file dir/file
42407 ln -s file dir/link
42409 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42412 chcon -h --user=system_u dir
42413 chcon -h --user=unconfined_u dir/file
42414 chcon -h --user=system_u dir/link
42416 # archive whole directory including selinux contexts
42417 tar --selinux -cf archive.tar dir
42419 # clear the directory
42422 # ================================================
42423 # check if selinux contexts are correctly restored
42425 tar --selinux -xf archive.tar
42427 # archive for later debugging
42428 cp archive.tar archive_origin.tar
42430 # check if selinux contexts were restored
42431 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
42432 grep -v -e '^#' -e ^\$ | cut -d: -f1
42434 # ===========================================================================
42435 # check if selinux contexts are not restored when --selinux option is missing
42437 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42439 tar -xf archive.tar
42440 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42442 diff with_selinux without_selinux > diff_with_without
42443 if test \"\$?\" -eq \"0\"; then
42444 echo \"selinux contexts probably restored while --selinux is off\"
42447 # =================================================================
42448 # check if selinux is not archived when --selinux option is missing
42450 tar -cf archive.tar dir
42452 # clear the directory
42455 # restore (with --selinux)
42456 tar --selinux -xf archive.tar dir
42458 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42459 diff start final > final_diff
42460 if test \"\$?\" -ne \"0\"; then
42461 echo \"bad result\"
42465 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
42469 TEST_TAR_FORMAT=oldgnu
42470 export TEST_TAR_FORMAT
42471 TAR_OPTIONS="-H oldgnu"
42476 file=$(TMPDIR=. mktemp fiXXXXXX)
42478 setfattr -n user.test -v test $file &> /dev/null
42479 if test "$?" != 0; then
42484 getfattr $file &> /dev/null
42485 if test "$?" != 0; then
42492 file=$(TMPDIR=. mktemp fiXXXXXX)
42494 restorecon $file &> /dev/null
42495 if test "$?" != 0; then
42500 chcon -h --user=unconfined_u $file &> /dev/null
42501 if test "$?" != 0; then
42507 file=$(TMPDIR=. mktemp fiXXXXXX)
42508 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42509 if test "$err" != "0"; then
42515 genfile --file dir/file
42516 ln -s file dir/link
42518 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42521 chcon -h --user=system_u dir
42522 chcon -h --user=unconfined_u dir/file
42523 chcon -h --user=system_u dir/link
42525 # archive whole directory including selinux contexts
42526 tar --selinux -cf archive.tar dir
42528 # clear the directory
42531 # ================================================
42532 # check if selinux contexts are correctly restored
42534 tar --selinux -xf archive.tar
42536 # archive for later debugging
42537 cp archive.tar archive_origin.tar
42539 # check if selinux contexts were restored
42540 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
42541 grep -v -e '^#' -e ^$ | cut -d: -f1
42543 # ===========================================================================
42544 # check if selinux contexts are not restored when --selinux option is missing
42546 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42548 tar -xf archive.tar
42549 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42551 diff with_selinux without_selinux > diff_with_without
42552 if test "$?" -eq "0"; then
42553 echo "selinux contexts probably restored while --selinux is off"
42556 # =================================================================
42557 # check if selinux is not archived when --selinux option is missing
42559 tar -cf archive.tar dir
42561 # clear the directory
42564 # restore (with --selinux)
42565 tar --selinux -xf archive.tar dir
42567 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42568 diff start final > final_diff
42569 if test "$?" -ne "0"; then
42574 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42575 at_status=$? at_failed=false
42577 at_fn_diff_devnull "$at_stderr" || at_failed=:
42578 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
42579 security.selinux=\"unconfined_u
42580 security.selinux=\"system_u
42582 $at_diff - "$at_stdout" || at_failed=:
42583 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
42584 $at_failed && at_fn_log_failure
42588 $as_echo "$at_srcdir/selnx01.at:28:
42591 TEST_TAR_FORMAT=ustar
42592 export TEST_TAR_FORMAT
42593 TAR_OPTIONS=\"-H ustar\"
42598 file=\$(TMPDIR=. mktemp fiXXXXXX)
42600 setfattr -n user.test -v test \$file &> /dev/null
42601 if test \"\$?\" != 0; then
42606 getfattr \$file &> /dev/null
42607 if test \"\$?\" != 0; then
42614 file=\$(TMPDIR=. mktemp fiXXXXXX)
42616 restorecon \$file &> /dev/null
42617 if test \"\$?\" != 0; then
42622 chcon -h --user=unconfined_u \$file &> /dev/null
42623 if test \"\$?\" != 0; then
42629 file=\$(TMPDIR=. mktemp fiXXXXXX)
42630 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42631 if test \"\$err\" != \"0\"; then
42637 genfile --file dir/file
42638 ln -s file dir/link
42640 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42643 chcon -h --user=system_u dir
42644 chcon -h --user=unconfined_u dir/file
42645 chcon -h --user=system_u dir/link
42647 # archive whole directory including selinux contexts
42648 tar --selinux -cf archive.tar dir
42650 # clear the directory
42653 # ================================================
42654 # check if selinux contexts are correctly restored
42656 tar --selinux -xf archive.tar
42658 # archive for later debugging
42659 cp archive.tar archive_origin.tar
42661 # check if selinux contexts were restored
42662 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
42663 grep -v -e '^#' -e ^\$ | cut -d: -f1
42665 # ===========================================================================
42666 # check if selinux contexts are not restored when --selinux option is missing
42668 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42670 tar -xf archive.tar
42671 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42673 diff with_selinux without_selinux > diff_with_without
42674 if test \"\$?\" -eq \"0\"; then
42675 echo \"selinux contexts probably restored while --selinux is off\"
42678 # =================================================================
42679 # check if selinux is not archived when --selinux option is missing
42681 tar -cf archive.tar dir
42683 # clear the directory
42686 # restore (with --selinux)
42687 tar --selinux -xf archive.tar dir
42689 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42690 diff start final > final_diff
42691 if test \"\$?\" -ne \"0\"; then
42692 echo \"bad result\"
42696 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
42700 TEST_TAR_FORMAT=ustar
42701 export TEST_TAR_FORMAT
42702 TAR_OPTIONS="-H ustar"
42707 file=$(TMPDIR=. mktemp fiXXXXXX)
42709 setfattr -n user.test -v test $file &> /dev/null
42710 if test "$?" != 0; then
42715 getfattr $file &> /dev/null
42716 if test "$?" != 0; then
42723 file=$(TMPDIR=. mktemp fiXXXXXX)
42725 restorecon $file &> /dev/null
42726 if test "$?" != 0; then
42731 chcon -h --user=unconfined_u $file &> /dev/null
42732 if test "$?" != 0; then
42738 file=$(TMPDIR=. mktemp fiXXXXXX)
42739 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42740 if test "$err" != "0"; then
42746 genfile --file dir/file
42747 ln -s file dir/link
42749 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42752 chcon -h --user=system_u dir
42753 chcon -h --user=unconfined_u dir/file
42754 chcon -h --user=system_u dir/link
42756 # archive whole directory including selinux contexts
42757 tar --selinux -cf archive.tar dir
42759 # clear the directory
42762 # ================================================
42763 # check if selinux contexts are correctly restored
42765 tar --selinux -xf archive.tar
42767 # archive for later debugging
42768 cp archive.tar archive_origin.tar
42770 # check if selinux contexts were restored
42771 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
42772 grep -v -e '^#' -e ^$ | cut -d: -f1
42774 # ===========================================================================
42775 # check if selinux contexts are not restored when --selinux option is missing
42777 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42779 tar -xf archive.tar
42780 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42782 diff with_selinux without_selinux > diff_with_without
42783 if test "$?" -eq "0"; then
42784 echo "selinux contexts probably restored while --selinux is off"
42787 # =================================================================
42788 # check if selinux is not archived when --selinux option is missing
42790 tar -cf archive.tar dir
42792 # clear the directory
42795 # restore (with --selinux)
42796 tar --selinux -xf archive.tar dir
42798 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42799 diff start final > final_diff
42800 if test "$?" -ne "0"; then
42805 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
42806 at_status=$? at_failed=false
42808 at_fn_diff_devnull "$at_stderr" || at_failed=:
42809 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
42810 security.selinux=\"unconfined_u
42811 security.selinux=\"system_u
42813 $at_diff - "$at_stdout" || at_failed=:
42814 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
42815 $at_failed && at_fn_log_failure
42819 $as_echo "$at_srcdir/selnx01.at:28:
42822 TEST_TAR_FORMAT=posix
42823 export TEST_TAR_FORMAT
42824 TAR_OPTIONS=\"-H posix\"
42829 file=\$(TMPDIR=. mktemp fiXXXXXX)
42831 setfattr -n user.test -v test \$file &> /dev/null
42832 if test \"\$?\" != 0; then
42837 getfattr \$file &> /dev/null
42838 if test \"\$?\" != 0; then
42845 file=\$(TMPDIR=. mktemp fiXXXXXX)
42847 restorecon \$file &> /dev/null
42848 if test \"\$?\" != 0; then
42853 chcon -h --user=unconfined_u \$file &> /dev/null
42854 if test \"\$?\" != 0; then
42860 file=\$(TMPDIR=. mktemp fiXXXXXX)
42861 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
42862 if test \"\$err\" != \"0\"; then
42868 genfile --file dir/file
42869 ln -s file dir/link
42871 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42874 chcon -h --user=system_u dir
42875 chcon -h --user=unconfined_u dir/file
42876 chcon -h --user=system_u dir/link
42878 # archive whole directory including selinux contexts
42879 tar --selinux -cf archive.tar dir
42881 # clear the directory
42884 # ================================================
42885 # check if selinux contexts are correctly restored
42887 tar --selinux -xf archive.tar
42889 # archive for later debugging
42890 cp archive.tar archive_origin.tar
42892 # check if selinux contexts were restored
42893 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
42894 grep -v -e '^#' -e ^\$ | cut -d: -f1
42896 # ===========================================================================
42897 # check if selinux contexts are not restored when --selinux option is missing
42899 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
42901 tar -xf archive.tar
42902 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
42904 diff with_selinux without_selinux > diff_with_without
42905 if test \"\$?\" -eq \"0\"; then
42906 echo \"selinux contexts probably restored while --selinux is off\"
42909 # =================================================================
42910 # check if selinux is not archived when --selinux option is missing
42912 tar -cf archive.tar dir
42914 # clear the directory
42917 # restore (with --selinux)
42918 tar --selinux -xf archive.tar dir
42920 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
42921 diff start final > final_diff
42922 if test \"\$?\" -ne \"0\"; then
42923 echo \"bad result\"
42927 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
42931 TEST_TAR_FORMAT=posix
42932 export TEST_TAR_FORMAT
42933 TAR_OPTIONS="-H posix"
42938 file=$(TMPDIR=. mktemp fiXXXXXX)
42940 setfattr -n user.test -v test $file &> /dev/null
42941 if test "$?" != 0; then
42946 getfattr $file &> /dev/null
42947 if test "$?" != 0; then
42954 file=$(TMPDIR=. mktemp fiXXXXXX)
42956 restorecon $file &> /dev/null
42957 if test "$?" != 0; then
42962 chcon -h --user=unconfined_u $file &> /dev/null
42963 if test "$?" != 0; then
42969 file=$(TMPDIR=. mktemp fiXXXXXX)
42970 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
42971 if test "$err" != "0"; then
42977 genfile --file dir/file
42978 ln -s file dir/link
42980 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
42983 chcon -h --user=system_u dir
42984 chcon -h --user=unconfined_u dir/file
42985 chcon -h --user=system_u dir/link
42987 # archive whole directory including selinux contexts
42988 tar --selinux -cf archive.tar dir
42990 # clear the directory
42993 # ================================================
42994 # check if selinux contexts are correctly restored
42996 tar --selinux -xf archive.tar
42998 # archive for later debugging
42999 cp archive.tar archive_origin.tar
43001 # check if selinux contexts were restored
43002 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
43003 grep -v -e '^#' -e ^$ | cut -d: -f1
43005 # ===========================================================================
43006 # check if selinux contexts are not restored when --selinux option is missing
43008 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
43010 tar -xf archive.tar
43011 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
43013 diff with_selinux without_selinux > diff_with_without
43014 if test "$?" -eq "0"; then
43015 echo "selinux contexts probably restored while --selinux is off"
43018 # =================================================================
43019 # check if selinux is not archived when --selinux option is missing
43021 tar -cf archive.tar dir
43023 # clear the directory
43026 # restore (with --selinux)
43027 tar --selinux -xf archive.tar dir
43029 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
43030 diff start final > final_diff
43031 if test "$?" -ne "0"; then
43036 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43037 at_status=$? at_failed=false
43039 at_fn_diff_devnull "$at_stderr" || at_failed=:
43040 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
43041 security.selinux=\"unconfined_u
43042 security.selinux=\"system_u
43044 $at_diff - "$at_stdout" || at_failed=:
43045 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
43046 $at_failed && at_fn_log_failure
43050 $as_echo "$at_srcdir/selnx01.at:28:
43053 TEST_TAR_FORMAT=gnu
43054 export TEST_TAR_FORMAT
43055 TAR_OPTIONS=\"-H gnu\"
43060 file=\$(TMPDIR=. mktemp fiXXXXXX)
43062 setfattr -n user.test -v test \$file &> /dev/null
43063 if test \"\$?\" != 0; then
43068 getfattr \$file &> /dev/null
43069 if test \"\$?\" != 0; then
43076 file=\$(TMPDIR=. mktemp fiXXXXXX)
43078 restorecon \$file &> /dev/null
43079 if test \"\$?\" != 0; then
43084 chcon -h --user=unconfined_u \$file &> /dev/null
43085 if test \"\$?\" != 0; then
43091 file=\$(TMPDIR=. mktemp fiXXXXXX)
43092 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43093 if test \"\$err\" != \"0\"; then
43099 genfile --file dir/file
43100 ln -s file dir/link
43102 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
43105 chcon -h --user=system_u dir
43106 chcon -h --user=unconfined_u dir/file
43107 chcon -h --user=system_u dir/link
43109 # archive whole directory including selinux contexts
43110 tar --selinux -cf archive.tar dir
43112 # clear the directory
43115 # ================================================
43116 # check if selinux contexts are correctly restored
43118 tar --selinux -xf archive.tar
43120 # archive for later debugging
43121 cp archive.tar archive_origin.tar
43123 # check if selinux contexts were restored
43124 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \\
43125 grep -v -e '^#' -e ^\$ | cut -d: -f1
43127 # ===========================================================================
43128 # check if selinux contexts are not restored when --selinux option is missing
43130 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
43132 tar -xf archive.tar
43133 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
43135 diff with_selinux without_selinux > diff_with_without
43136 if test \"\$?\" -eq \"0\"; then
43137 echo \"selinux contexts probably restored while --selinux is off\"
43140 # =================================================================
43141 # check if selinux is not archived when --selinux option is missing
43143 tar -cf archive.tar dir
43145 # clear the directory
43148 # restore (with --selinux)
43149 tar --selinux -xf archive.tar dir
43151 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
43152 diff start final > final_diff
43153 if test \"\$?\" -ne \"0\"; then
43154 echo \"bad result\"
43158 at_fn_check_prepare_notrace 'a $(...) command substitution' "selnx01.at:28"
43162 TEST_TAR_FORMAT=gnu
43163 export TEST_TAR_FORMAT
43164 TAR_OPTIONS="-H gnu"
43169 file=$(TMPDIR=. mktemp fiXXXXXX)
43171 setfattr -n user.test -v test $file &> /dev/null
43172 if test "$?" != 0; then
43177 getfattr $file &> /dev/null
43178 if test "$?" != 0; then
43185 file=$(TMPDIR=. mktemp fiXXXXXX)
43187 restorecon $file &> /dev/null
43188 if test "$?" != 0; then
43193 chcon -h --user=unconfined_u $file &> /dev/null
43194 if test "$?" != 0; then
43200 file=$(TMPDIR=. mktemp fiXXXXXX)
43201 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43202 if test "$err" != "0"; then
43208 genfile --file dir/file
43209 ln -s file dir/link
43211 getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
43214 chcon -h --user=system_u dir
43215 chcon -h --user=unconfined_u dir/file
43216 chcon -h --user=system_u dir/link
43218 # archive whole directory including selinux contexts
43219 tar --selinux -cf archive.tar dir
43221 # clear the directory
43224 # ================================================
43225 # check if selinux contexts are correctly restored
43227 tar --selinux -xf archive.tar
43229 # archive for later debugging
43230 cp archive.tar archive_origin.tar
43232 # check if selinux contexts were restored
43233 getfattr -h -d dir dir/file dir/link -msecurity.selinux | \
43234 grep -v -e '^#' -e ^$ | cut -d: -f1
43236 # ===========================================================================
43237 # check if selinux contexts are not restored when --selinux option is missing
43239 getfattr -h -d -msecurity.selinux dir dir/file dir/link > with_selinux
43241 tar -xf archive.tar
43242 getfattr -h -d -msecurity.selinux dir dir/file dir/link > without_selinux
43244 diff with_selinux without_selinux > diff_with_without
43245 if test "$?" -eq "0"; then
43246 echo "selinux contexts probably restored while --selinux is off"
43249 # =================================================================
43250 # check if selinux is not archived when --selinux option is missing
43252 tar -cf archive.tar dir
43254 # clear the directory
43257 # restore (with --selinux)
43258 tar --selinux -xf archive.tar dir
43260 getfattr -h -d -msecurity.selinux dir dir/file dir/link > final
43261 diff start final > final_diff
43262 if test "$?" -ne "0"; then
43267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43268 at_status=$? at_failed=false
43270 at_fn_diff_devnull "$at_stderr" || at_failed=:
43271 echo >>"$at_stdout"; $as_echo "security.selinux=\"system_u
43272 security.selinux=\"unconfined_u
43273 security.selinux=\"system_u
43275 $at_diff - "$at_stdout" || at_failed=:
43276 at_fn_check_status 0 $at_status "$at_srcdir/selnx01.at:28"
43277 $at_failed && at_fn_log_failure
43284 $at_times_p && times >"$at_times_file"
43285 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
43286 read at_status <"$at_status_file"
43289 at_fn_group_banner 177 'selacl01.at:25' \
43290 "acls/selinux: special files & fifos" " " 25
43292 test -f $XFAILFILE && at_xfail=yes
43294 $as_echo "177. $at_setup_line: testing $at_desc ..."
43302 $as_echo "$at_srcdir/selacl01.at:28:
43306 export TEST_TAR_FORMAT
43307 TAR_OPTIONS=\"-H v7\"
43312 echo \"test\" > \$\$
43314 cat \$\$ > /dev/null 2>&1
43317 test \$result -eq 0 || exit 77
43320 file=\$(TMPDIR=. mktemp fiXXXXXX)
43322 setfattr -n user.test -v test \$file &> /dev/null
43323 if test \"\$?\" != 0; then
43328 getfattr \$file &> /dev/null
43329 if test \"\$?\" != 0; then
43336 file=\$(TMPDIR=. mktemp fiXXXXXX)
43338 restorecon \$file &> /dev/null
43339 if test \"\$?\" != 0; then
43344 chcon -h --user=unconfined_u \$file &> /dev/null
43345 if test \"\$?\" != 0; then
43351 file=\$(TMPDIR=. mktemp fiXXXXXX)
43352 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43353 if test \"\$err\" != \"0\"; then
43359 file=\$(TMPDIR=. mktemp fiXXXXXX)
43361 setfacl -m u:\$UID:rwx \$file &> /dev/null
43362 if test \"\$?\" != 0; then
43367 getfacl \$file &> /dev/null
43368 if test \"\$?\" != 0; then
43374 file=\$(TMPDIR=. mktemp fiXXXXXX)
43375 setfacl -m u:\$UID:rwx \$file
43376 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43377 if test \"\$err\" != \"0\"; then
43384 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
43385 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
43386 mknod dir/chartype c \$MAJOR \$MINOR
43390 chcon -h --user=system_u dir/fifo
43391 chcon -h --user=system_u dir/chartype
43392 setfacl -m u:\$UID:--- dir/fifo
43393 setfacl -m u:\$UID:rwx dir/chartype
43395 getfacl dir/fifo >> before
43396 getfattr -msecurity.selinux dir/chartype >> before
43398 tar --xattrs --selinux --acls -cf archive.tar dir
43402 tar --xattrs --selinux --acls -xf archive.tar
43404 getfacl dir/fifo >> after
43405 getfattr -msecurity.selinux dir/chartype >> after
43410 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
43415 export TEST_TAR_FORMAT
43416 TAR_OPTIONS="-H v7"
43423 cat $$ > /dev/null 2>&1
43426 test $result -eq 0 || exit 77
43429 file=$(TMPDIR=. mktemp fiXXXXXX)
43431 setfattr -n user.test -v test $file &> /dev/null
43432 if test "$?" != 0; then
43437 getfattr $file &> /dev/null
43438 if test "$?" != 0; then
43445 file=$(TMPDIR=. mktemp fiXXXXXX)
43447 restorecon $file &> /dev/null
43448 if test "$?" != 0; then
43453 chcon -h --user=unconfined_u $file &> /dev/null
43454 if test "$?" != 0; then
43460 file=$(TMPDIR=. mktemp fiXXXXXX)
43461 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43462 if test "$err" != "0"; then
43468 file=$(TMPDIR=. mktemp fiXXXXXX)
43470 setfacl -m u:$UID:rwx $file &> /dev/null
43471 if test "$?" != 0; then
43476 getfacl $file &> /dev/null
43477 if test "$?" != 0; then
43483 file=$(TMPDIR=. mktemp fiXXXXXX)
43484 setfacl -m u:$UID:rwx $file
43485 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43486 if test "$err" != "0"; then
43493 MAJOR=$( stat /dev/urandom --printf="%t" )
43494 MINOR=$( stat /dev/urandom --printf="%T" )
43495 mknod dir/chartype c $MAJOR $MINOR
43499 chcon -h --user=system_u dir/fifo
43500 chcon -h --user=system_u dir/chartype
43501 setfacl -m u:$UID:--- dir/fifo
43502 setfacl -m u:$UID:rwx dir/chartype
43504 getfacl dir/fifo >> before
43505 getfattr -msecurity.selinux dir/chartype >> before
43507 tar --xattrs --selinux --acls -cf archive.tar dir
43511 tar --xattrs --selinux --acls -xf archive.tar
43513 getfacl dir/fifo >> after
43514 getfattr -msecurity.selinux dir/chartype >> after
43519 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43520 at_status=$? at_failed=false
43522 at_fn_diff_devnull "$at_stderr" || at_failed=:
43523 echo >>"$at_stdout"; $as_echo "separator
43525 $at_diff - "$at_stdout" || at_failed=:
43526 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
43527 $at_failed && at_fn_log_failure
43531 $as_echo "$at_srcdir/selacl01.at:28:
43534 TEST_TAR_FORMAT=oldgnu
43535 export TEST_TAR_FORMAT
43536 TAR_OPTIONS=\"-H oldgnu\"
43541 echo \"test\" > \$\$
43543 cat \$\$ > /dev/null 2>&1
43546 test \$result -eq 0 || exit 77
43549 file=\$(TMPDIR=. mktemp fiXXXXXX)
43551 setfattr -n user.test -v test \$file &> /dev/null
43552 if test \"\$?\" != 0; then
43557 getfattr \$file &> /dev/null
43558 if test \"\$?\" != 0; then
43565 file=\$(TMPDIR=. mktemp fiXXXXXX)
43567 restorecon \$file &> /dev/null
43568 if test \"\$?\" != 0; then
43573 chcon -h --user=unconfined_u \$file &> /dev/null
43574 if test \"\$?\" != 0; then
43580 file=\$(TMPDIR=. mktemp fiXXXXXX)
43581 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43582 if test \"\$err\" != \"0\"; then
43588 file=\$(TMPDIR=. mktemp fiXXXXXX)
43590 setfacl -m u:\$UID:rwx \$file &> /dev/null
43591 if test \"\$?\" != 0; then
43596 getfacl \$file &> /dev/null
43597 if test \"\$?\" != 0; then
43603 file=\$(TMPDIR=. mktemp fiXXXXXX)
43604 setfacl -m u:\$UID:rwx \$file
43605 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43606 if test \"\$err\" != \"0\"; then
43613 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
43614 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
43615 mknod dir/chartype c \$MAJOR \$MINOR
43619 chcon -h --user=system_u dir/fifo
43620 chcon -h --user=system_u dir/chartype
43621 setfacl -m u:\$UID:--- dir/fifo
43622 setfacl -m u:\$UID:rwx dir/chartype
43624 getfacl dir/fifo >> before
43625 getfattr -msecurity.selinux dir/chartype >> before
43627 tar --xattrs --selinux --acls -cf archive.tar dir
43631 tar --xattrs --selinux --acls -xf archive.tar
43633 getfacl dir/fifo >> after
43634 getfattr -msecurity.selinux dir/chartype >> after
43639 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
43643 TEST_TAR_FORMAT=oldgnu
43644 export TEST_TAR_FORMAT
43645 TAR_OPTIONS="-H oldgnu"
43652 cat $$ > /dev/null 2>&1
43655 test $result -eq 0 || exit 77
43658 file=$(TMPDIR=. mktemp fiXXXXXX)
43660 setfattr -n user.test -v test $file &> /dev/null
43661 if test "$?" != 0; then
43666 getfattr $file &> /dev/null
43667 if test "$?" != 0; then
43674 file=$(TMPDIR=. mktemp fiXXXXXX)
43676 restorecon $file &> /dev/null
43677 if test "$?" != 0; then
43682 chcon -h --user=unconfined_u $file &> /dev/null
43683 if test "$?" != 0; then
43689 file=$(TMPDIR=. mktemp fiXXXXXX)
43690 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43691 if test "$err" != "0"; then
43697 file=$(TMPDIR=. mktemp fiXXXXXX)
43699 setfacl -m u:$UID:rwx $file &> /dev/null
43700 if test "$?" != 0; then
43705 getfacl $file &> /dev/null
43706 if test "$?" != 0; then
43712 file=$(TMPDIR=. mktemp fiXXXXXX)
43713 setfacl -m u:$UID:rwx $file
43714 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43715 if test "$err" != "0"; then
43722 MAJOR=$( stat /dev/urandom --printf="%t" )
43723 MINOR=$( stat /dev/urandom --printf="%T" )
43724 mknod dir/chartype c $MAJOR $MINOR
43728 chcon -h --user=system_u dir/fifo
43729 chcon -h --user=system_u dir/chartype
43730 setfacl -m u:$UID:--- dir/fifo
43731 setfacl -m u:$UID:rwx dir/chartype
43733 getfacl dir/fifo >> before
43734 getfattr -msecurity.selinux dir/chartype >> before
43736 tar --xattrs --selinux --acls -cf archive.tar dir
43740 tar --xattrs --selinux --acls -xf archive.tar
43742 getfacl dir/fifo >> after
43743 getfattr -msecurity.selinux dir/chartype >> after
43748 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43749 at_status=$? at_failed=false
43751 at_fn_diff_devnull "$at_stderr" || at_failed=:
43752 echo >>"$at_stdout"; $as_echo "separator
43754 $at_diff - "$at_stdout" || at_failed=:
43755 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
43756 $at_failed && at_fn_log_failure
43760 $as_echo "$at_srcdir/selacl01.at:28:
43763 TEST_TAR_FORMAT=ustar
43764 export TEST_TAR_FORMAT
43765 TAR_OPTIONS=\"-H ustar\"
43770 echo \"test\" > \$\$
43772 cat \$\$ > /dev/null 2>&1
43775 test \$result -eq 0 || exit 77
43778 file=\$(TMPDIR=. mktemp fiXXXXXX)
43780 setfattr -n user.test -v test \$file &> /dev/null
43781 if test \"\$?\" != 0; then
43786 getfattr \$file &> /dev/null
43787 if test \"\$?\" != 0; then
43794 file=\$(TMPDIR=. mktemp fiXXXXXX)
43796 restorecon \$file &> /dev/null
43797 if test \"\$?\" != 0; then
43802 chcon -h --user=unconfined_u \$file &> /dev/null
43803 if test \"\$?\" != 0; then
43809 file=\$(TMPDIR=. mktemp fiXXXXXX)
43810 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43811 if test \"\$err\" != \"0\"; then
43817 file=\$(TMPDIR=. mktemp fiXXXXXX)
43819 setfacl -m u:\$UID:rwx \$file &> /dev/null
43820 if test \"\$?\" != 0; then
43825 getfacl \$file &> /dev/null
43826 if test \"\$?\" != 0; then
43832 file=\$(TMPDIR=. mktemp fiXXXXXX)
43833 setfacl -m u:\$UID:rwx \$file
43834 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
43835 if test \"\$err\" != \"0\"; then
43842 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
43843 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
43844 mknod dir/chartype c \$MAJOR \$MINOR
43848 chcon -h --user=system_u dir/fifo
43849 chcon -h --user=system_u dir/chartype
43850 setfacl -m u:\$UID:--- dir/fifo
43851 setfacl -m u:\$UID:rwx dir/chartype
43853 getfacl dir/fifo >> before
43854 getfattr -msecurity.selinux dir/chartype >> before
43856 tar --xattrs --selinux --acls -cf archive.tar dir
43860 tar --xattrs --selinux --acls -xf archive.tar
43862 getfacl dir/fifo >> after
43863 getfattr -msecurity.selinux dir/chartype >> after
43868 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
43872 TEST_TAR_FORMAT=ustar
43873 export TEST_TAR_FORMAT
43874 TAR_OPTIONS="-H ustar"
43881 cat $$ > /dev/null 2>&1
43884 test $result -eq 0 || exit 77
43887 file=$(TMPDIR=. mktemp fiXXXXXX)
43889 setfattr -n user.test -v test $file &> /dev/null
43890 if test "$?" != 0; then
43895 getfattr $file &> /dev/null
43896 if test "$?" != 0; then
43903 file=$(TMPDIR=. mktemp fiXXXXXX)
43905 restorecon $file &> /dev/null
43906 if test "$?" != 0; then
43911 chcon -h --user=unconfined_u $file &> /dev/null
43912 if test "$?" != 0; then
43918 file=$(TMPDIR=. mktemp fiXXXXXX)
43919 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43920 if test "$err" != "0"; then
43926 file=$(TMPDIR=. mktemp fiXXXXXX)
43928 setfacl -m u:$UID:rwx $file &> /dev/null
43929 if test "$?" != 0; then
43934 getfacl $file &> /dev/null
43935 if test "$?" != 0; then
43941 file=$(TMPDIR=. mktemp fiXXXXXX)
43942 setfacl -m u:$UID:rwx $file
43943 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
43944 if test "$err" != "0"; then
43951 MAJOR=$( stat /dev/urandom --printf="%t" )
43952 MINOR=$( stat /dev/urandom --printf="%T" )
43953 mknod dir/chartype c $MAJOR $MINOR
43957 chcon -h --user=system_u dir/fifo
43958 chcon -h --user=system_u dir/chartype
43959 setfacl -m u:$UID:--- dir/fifo
43960 setfacl -m u:$UID:rwx dir/chartype
43962 getfacl dir/fifo >> before
43963 getfattr -msecurity.selinux dir/chartype >> before
43965 tar --xattrs --selinux --acls -cf archive.tar dir
43969 tar --xattrs --selinux --acls -xf archive.tar
43971 getfacl dir/fifo >> after
43972 getfattr -msecurity.selinux dir/chartype >> after
43977 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
43978 at_status=$? at_failed=false
43980 at_fn_diff_devnull "$at_stderr" || at_failed=:
43981 echo >>"$at_stdout"; $as_echo "separator
43983 $at_diff - "$at_stdout" || at_failed=:
43984 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
43985 $at_failed && at_fn_log_failure
43989 $as_echo "$at_srcdir/selacl01.at:28:
43992 TEST_TAR_FORMAT=posix
43993 export TEST_TAR_FORMAT
43994 TAR_OPTIONS=\"-H posix\"
43999 echo \"test\" > \$\$
44001 cat \$\$ > /dev/null 2>&1
44004 test \$result -eq 0 || exit 77
44007 file=\$(TMPDIR=. mktemp fiXXXXXX)
44009 setfattr -n user.test -v test \$file &> /dev/null
44010 if test \"\$?\" != 0; then
44015 getfattr \$file &> /dev/null
44016 if test \"\$?\" != 0; then
44023 file=\$(TMPDIR=. mktemp fiXXXXXX)
44025 restorecon \$file &> /dev/null
44026 if test \"\$?\" != 0; then
44031 chcon -h --user=unconfined_u \$file &> /dev/null
44032 if test \"\$?\" != 0; then
44038 file=\$(TMPDIR=. mktemp fiXXXXXX)
44039 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44040 if test \"\$err\" != \"0\"; then
44046 file=\$(TMPDIR=. mktemp fiXXXXXX)
44048 setfacl -m u:\$UID:rwx \$file &> /dev/null
44049 if test \"\$?\" != 0; then
44054 getfacl \$file &> /dev/null
44055 if test \"\$?\" != 0; then
44061 file=\$(TMPDIR=. mktemp fiXXXXXX)
44062 setfacl -m u:\$UID:rwx \$file
44063 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44064 if test \"\$err\" != \"0\"; then
44071 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
44072 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
44073 mknod dir/chartype c \$MAJOR \$MINOR
44077 chcon -h --user=system_u dir/fifo
44078 chcon -h --user=system_u dir/chartype
44079 setfacl -m u:\$UID:--- dir/fifo
44080 setfacl -m u:\$UID:rwx dir/chartype
44082 getfacl dir/fifo >> before
44083 getfattr -msecurity.selinux dir/chartype >> before
44085 tar --xattrs --selinux --acls -cf archive.tar dir
44089 tar --xattrs --selinux --acls -xf archive.tar
44091 getfacl dir/fifo >> after
44092 getfattr -msecurity.selinux dir/chartype >> after
44097 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
44101 TEST_TAR_FORMAT=posix
44102 export TEST_TAR_FORMAT
44103 TAR_OPTIONS="-H posix"
44110 cat $$ > /dev/null 2>&1
44113 test $result -eq 0 || exit 77
44116 file=$(TMPDIR=. mktemp fiXXXXXX)
44118 setfattr -n user.test -v test $file &> /dev/null
44119 if test "$?" != 0; then
44124 getfattr $file &> /dev/null
44125 if test "$?" != 0; then
44132 file=$(TMPDIR=. mktemp fiXXXXXX)
44134 restorecon $file &> /dev/null
44135 if test "$?" != 0; then
44140 chcon -h --user=unconfined_u $file &> /dev/null
44141 if test "$?" != 0; then
44147 file=$(TMPDIR=. mktemp fiXXXXXX)
44148 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44149 if test "$err" != "0"; then
44155 file=$(TMPDIR=. mktemp fiXXXXXX)
44157 setfacl -m u:$UID:rwx $file &> /dev/null
44158 if test "$?" != 0; then
44163 getfacl $file &> /dev/null
44164 if test "$?" != 0; then
44170 file=$(TMPDIR=. mktemp fiXXXXXX)
44171 setfacl -m u:$UID:rwx $file
44172 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44173 if test "$err" != "0"; then
44180 MAJOR=$( stat /dev/urandom --printf="%t" )
44181 MINOR=$( stat /dev/urandom --printf="%T" )
44182 mknod dir/chartype c $MAJOR $MINOR
44186 chcon -h --user=system_u dir/fifo
44187 chcon -h --user=system_u dir/chartype
44188 setfacl -m u:$UID:--- dir/fifo
44189 setfacl -m u:$UID:rwx dir/chartype
44191 getfacl dir/fifo >> before
44192 getfattr -msecurity.selinux dir/chartype >> before
44194 tar --xattrs --selinux --acls -cf archive.tar dir
44198 tar --xattrs --selinux --acls -xf archive.tar
44200 getfacl dir/fifo >> after
44201 getfattr -msecurity.selinux dir/chartype >> after
44206 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44207 at_status=$? at_failed=false
44209 at_fn_diff_devnull "$at_stderr" || at_failed=:
44210 echo >>"$at_stdout"; $as_echo "separator
44212 $at_diff - "$at_stdout" || at_failed=:
44213 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
44214 $at_failed && at_fn_log_failure
44218 $as_echo "$at_srcdir/selacl01.at:28:
44221 TEST_TAR_FORMAT=gnu
44222 export TEST_TAR_FORMAT
44223 TAR_OPTIONS=\"-H gnu\"
44228 echo \"test\" > \$\$
44230 cat \$\$ > /dev/null 2>&1
44233 test \$result -eq 0 || exit 77
44236 file=\$(TMPDIR=. mktemp fiXXXXXX)
44238 setfattr -n user.test -v test \$file &> /dev/null
44239 if test \"\$?\" != 0; then
44244 getfattr \$file &> /dev/null
44245 if test \"\$?\" != 0; then
44252 file=\$(TMPDIR=. mktemp fiXXXXXX)
44254 restorecon \$file &> /dev/null
44255 if test \"\$?\" != 0; then
44260 chcon -h --user=unconfined_u \$file &> /dev/null
44261 if test \"\$?\" != 0; then
44267 file=\$(TMPDIR=. mktemp fiXXXXXX)
44268 err=\$( tar --selinux -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44269 if test \"\$err\" != \"0\"; then
44275 file=\$(TMPDIR=. mktemp fiXXXXXX)
44277 setfacl -m u:\$UID:rwx \$file &> /dev/null
44278 if test \"\$?\" != 0; then
44283 getfacl \$file &> /dev/null
44284 if test \"\$?\" != 0; then
44290 file=\$(TMPDIR=. mktemp fiXXXXXX)
44291 setfacl -m u:\$UID:rwx \$file
44292 err=\$( tar --acls -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44293 if test \"\$err\" != \"0\"; then
44300 MAJOR=\$( stat /dev/urandom --printf=\"%t\" )
44301 MINOR=\$( stat /dev/urandom --printf=\"%T\" )
44302 mknod dir/chartype c \$MAJOR \$MINOR
44306 chcon -h --user=system_u dir/fifo
44307 chcon -h --user=system_u dir/chartype
44308 setfacl -m u:\$UID:--- dir/fifo
44309 setfacl -m u:\$UID:rwx dir/chartype
44311 getfacl dir/fifo >> before
44312 getfattr -msecurity.selinux dir/chartype >> before
44314 tar --xattrs --selinux --acls -cf archive.tar dir
44318 tar --xattrs --selinux --acls -xf archive.tar
44320 getfacl dir/fifo >> after
44321 getfattr -msecurity.selinux dir/chartype >> after
44326 at_fn_check_prepare_notrace 'a $(...) command substitution' "selacl01.at:28"
44330 TEST_TAR_FORMAT=gnu
44331 export TEST_TAR_FORMAT
44332 TAR_OPTIONS="-H gnu"
44339 cat $$ > /dev/null 2>&1
44342 test $result -eq 0 || exit 77
44345 file=$(TMPDIR=. mktemp fiXXXXXX)
44347 setfattr -n user.test -v test $file &> /dev/null
44348 if test "$?" != 0; then
44353 getfattr $file &> /dev/null
44354 if test "$?" != 0; then
44361 file=$(TMPDIR=. mktemp fiXXXXXX)
44363 restorecon $file &> /dev/null
44364 if test "$?" != 0; then
44369 chcon -h --user=unconfined_u $file &> /dev/null
44370 if test "$?" != 0; then
44376 file=$(TMPDIR=. mktemp fiXXXXXX)
44377 err=$( tar --selinux -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44378 if test "$err" != "0"; then
44384 file=$(TMPDIR=. mktemp fiXXXXXX)
44386 setfacl -m u:$UID:rwx $file &> /dev/null
44387 if test "$?" != 0; then
44392 getfacl $file &> /dev/null
44393 if test "$?" != 0; then
44399 file=$(TMPDIR=. mktemp fiXXXXXX)
44400 setfacl -m u:$UID:rwx $file
44401 err=$( tar --acls -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44402 if test "$err" != "0"; then
44409 MAJOR=$( stat /dev/urandom --printf="%t" )
44410 MINOR=$( stat /dev/urandom --printf="%T" )
44411 mknod dir/chartype c $MAJOR $MINOR
44415 chcon -h --user=system_u dir/fifo
44416 chcon -h --user=system_u dir/chartype
44417 setfacl -m u:$UID:--- dir/fifo
44418 setfacl -m u:$UID:rwx dir/chartype
44420 getfacl dir/fifo >> before
44421 getfattr -msecurity.selinux dir/chartype >> before
44423 tar --xattrs --selinux --acls -cf archive.tar dir
44427 tar --xattrs --selinux --acls -xf archive.tar
44429 getfacl dir/fifo >> after
44430 getfattr -msecurity.selinux dir/chartype >> after
44435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44436 at_status=$? at_failed=false
44438 at_fn_diff_devnull "$at_stderr" || at_failed=:
44439 echo >>"$at_stdout"; $as_echo "separator
44441 $at_diff - "$at_stdout" || at_failed=:
44442 at_fn_check_status 0 $at_status "$at_srcdir/selacl01.at:28"
44443 $at_failed && at_fn_log_failure
44450 $at_times_p && times >"$at_times_file"
44451 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
44452 read at_status <"$at_status_file"
44455 at_fn_group_banner 178 'capabs_raw01.at:25' \
44456 "capabilities: binary store/restore" " " 25
44458 test -f $XFAILFILE && at_xfail=yes
44460 $as_echo "178. $at_setup_line: testing $at_desc ..."
44468 $as_echo "$at_srcdir/capabs_raw01.at:28:
44472 export TEST_TAR_FORMAT
44473 TAR_OPTIONS=\"-H v7\"
44478 echo \"test\" > \$\$
44480 cat \$\$ > /dev/null 2>&1
44483 test \$result -eq 0 || exit 77
44487 file=\$(TMPDIR=. mktemp fiXXXXXX)
44489 setfattr -n user.test -v test \$file &> /dev/null
44490 if test \"\$?\" != 0; then
44495 getfattr \$file &> /dev/null
44496 if test \"\$?\" != 0; then
44501 file=\$(TMPDIR=. mktemp fiXXXXXX)
44502 setfattr -n user.test -v ahoj \$file
44503 # check whether tar fails to store xattrs
44504 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44505 if test \"\$err\" != \"0\"; then
44510 file=\$(TMPDIR=. mktemp fiXXXXXX)
44512 setcap \"= cap_chown=ei\" \$file &> /dev/null
44513 if test \"\$?\" != 0; then
44518 getcap \$file &> /dev/null
44519 if test \"\$?\" != 0; then
44527 genfile --file dir/file
44529 setcap \"= cap_chown=ei\" dir/file
44531 # archive whole directory including binary xattrs
44532 tar --xattrs -cf archive.tar dir
44534 # clear the directory
44537 # restore _all_ xattrs (not just the user.* domain)
44538 tar --xattrs --xattrs-include='*' -xf archive.tar
44542 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
44547 export TEST_TAR_FORMAT
44548 TAR_OPTIONS="-H v7"
44555 cat $$ > /dev/null 2>&1
44558 test $result -eq 0 || exit 77
44562 file=$(TMPDIR=. mktemp fiXXXXXX)
44564 setfattr -n user.test -v test $file &> /dev/null
44565 if test "$?" != 0; then
44570 getfattr $file &> /dev/null
44571 if test "$?" != 0; then
44576 file=$(TMPDIR=. mktemp fiXXXXXX)
44577 setfattr -n user.test -v ahoj $file
44578 # check whether tar fails to store xattrs
44579 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44580 if test "$err" != "0"; then
44585 file=$(TMPDIR=. mktemp fiXXXXXX)
44587 setcap "= cap_chown=ei" $file &> /dev/null
44588 if test "$?" != 0; then
44593 getcap $file &> /dev/null
44594 if test "$?" != 0; then
44602 genfile --file dir/file
44604 setcap "= cap_chown=ei" dir/file
44606 # archive whole directory including binary xattrs
44607 tar --xattrs -cf archive.tar dir
44609 # clear the directory
44612 # restore _all_ xattrs (not just the user.* domain)
44613 tar --xattrs --xattrs-include='*' -xf archive.tar
44617 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44618 at_status=$? at_failed=false
44620 at_fn_diff_devnull "$at_stderr" || at_failed=:
44621 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
44623 $at_diff - "$at_stdout" || at_failed=:
44624 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
44625 $at_failed && at_fn_log_failure
44629 $as_echo "$at_srcdir/capabs_raw01.at:28:
44632 TEST_TAR_FORMAT=oldgnu
44633 export TEST_TAR_FORMAT
44634 TAR_OPTIONS=\"-H oldgnu\"
44639 echo \"test\" > \$\$
44641 cat \$\$ > /dev/null 2>&1
44644 test \$result -eq 0 || exit 77
44648 file=\$(TMPDIR=. mktemp fiXXXXXX)
44650 setfattr -n user.test -v test \$file &> /dev/null
44651 if test \"\$?\" != 0; then
44656 getfattr \$file &> /dev/null
44657 if test \"\$?\" != 0; then
44662 file=\$(TMPDIR=. mktemp fiXXXXXX)
44663 setfattr -n user.test -v ahoj \$file
44664 # check whether tar fails to store xattrs
44665 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44666 if test \"\$err\" != \"0\"; then
44671 file=\$(TMPDIR=. mktemp fiXXXXXX)
44673 setcap \"= cap_chown=ei\" \$file &> /dev/null
44674 if test \"\$?\" != 0; then
44679 getcap \$file &> /dev/null
44680 if test \"\$?\" != 0; then
44688 genfile --file dir/file
44690 setcap \"= cap_chown=ei\" dir/file
44692 # archive whole directory including binary xattrs
44693 tar --xattrs -cf archive.tar dir
44695 # clear the directory
44698 # restore _all_ xattrs (not just the user.* domain)
44699 tar --xattrs --xattrs-include='*' -xf archive.tar
44703 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
44707 TEST_TAR_FORMAT=oldgnu
44708 export TEST_TAR_FORMAT
44709 TAR_OPTIONS="-H oldgnu"
44716 cat $$ > /dev/null 2>&1
44719 test $result -eq 0 || exit 77
44723 file=$(TMPDIR=. mktemp fiXXXXXX)
44725 setfattr -n user.test -v test $file &> /dev/null
44726 if test "$?" != 0; then
44731 getfattr $file &> /dev/null
44732 if test "$?" != 0; then
44737 file=$(TMPDIR=. mktemp fiXXXXXX)
44738 setfattr -n user.test -v ahoj $file
44739 # check whether tar fails to store xattrs
44740 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44741 if test "$err" != "0"; then
44746 file=$(TMPDIR=. mktemp fiXXXXXX)
44748 setcap "= cap_chown=ei" $file &> /dev/null
44749 if test "$?" != 0; then
44754 getcap $file &> /dev/null
44755 if test "$?" != 0; then
44763 genfile --file dir/file
44765 setcap "= cap_chown=ei" dir/file
44767 # archive whole directory including binary xattrs
44768 tar --xattrs -cf archive.tar dir
44770 # clear the directory
44773 # restore _all_ xattrs (not just the user.* domain)
44774 tar --xattrs --xattrs-include='*' -xf archive.tar
44778 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44779 at_status=$? at_failed=false
44781 at_fn_diff_devnull "$at_stderr" || at_failed=:
44782 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
44784 $at_diff - "$at_stdout" || at_failed=:
44785 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
44786 $at_failed && at_fn_log_failure
44790 $as_echo "$at_srcdir/capabs_raw01.at:28:
44793 TEST_TAR_FORMAT=ustar
44794 export TEST_TAR_FORMAT
44795 TAR_OPTIONS=\"-H ustar\"
44800 echo \"test\" > \$\$
44802 cat \$\$ > /dev/null 2>&1
44805 test \$result -eq 0 || exit 77
44809 file=\$(TMPDIR=. mktemp fiXXXXXX)
44811 setfattr -n user.test -v test \$file &> /dev/null
44812 if test \"\$?\" != 0; then
44817 getfattr \$file &> /dev/null
44818 if test \"\$?\" != 0; then
44823 file=\$(TMPDIR=. mktemp fiXXXXXX)
44824 setfattr -n user.test -v ahoj \$file
44825 # check whether tar fails to store xattrs
44826 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44827 if test \"\$err\" != \"0\"; then
44832 file=\$(TMPDIR=. mktemp fiXXXXXX)
44834 setcap \"= cap_chown=ei\" \$file &> /dev/null
44835 if test \"\$?\" != 0; then
44840 getcap \$file &> /dev/null
44841 if test \"\$?\" != 0; then
44849 genfile --file dir/file
44851 setcap \"= cap_chown=ei\" dir/file
44853 # archive whole directory including binary xattrs
44854 tar --xattrs -cf archive.tar dir
44856 # clear the directory
44859 # restore _all_ xattrs (not just the user.* domain)
44860 tar --xattrs --xattrs-include='*' -xf archive.tar
44864 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
44868 TEST_TAR_FORMAT=ustar
44869 export TEST_TAR_FORMAT
44870 TAR_OPTIONS="-H ustar"
44877 cat $$ > /dev/null 2>&1
44880 test $result -eq 0 || exit 77
44884 file=$(TMPDIR=. mktemp fiXXXXXX)
44886 setfattr -n user.test -v test $file &> /dev/null
44887 if test "$?" != 0; then
44892 getfattr $file &> /dev/null
44893 if test "$?" != 0; then
44898 file=$(TMPDIR=. mktemp fiXXXXXX)
44899 setfattr -n user.test -v ahoj $file
44900 # check whether tar fails to store xattrs
44901 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
44902 if test "$err" != "0"; then
44907 file=$(TMPDIR=. mktemp fiXXXXXX)
44909 setcap "= cap_chown=ei" $file &> /dev/null
44910 if test "$?" != 0; then
44915 getcap $file &> /dev/null
44916 if test "$?" != 0; then
44924 genfile --file dir/file
44926 setcap "= cap_chown=ei" dir/file
44928 # archive whole directory including binary xattrs
44929 tar --xattrs -cf archive.tar dir
44931 # clear the directory
44934 # restore _all_ xattrs (not just the user.* domain)
44935 tar --xattrs --xattrs-include='*' -xf archive.tar
44939 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
44940 at_status=$? at_failed=false
44942 at_fn_diff_devnull "$at_stderr" || at_failed=:
44943 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
44945 $at_diff - "$at_stdout" || at_failed=:
44946 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
44947 $at_failed && at_fn_log_failure
44951 $as_echo "$at_srcdir/capabs_raw01.at:28:
44954 TEST_TAR_FORMAT=posix
44955 export TEST_TAR_FORMAT
44956 TAR_OPTIONS=\"-H posix\"
44961 echo \"test\" > \$\$
44963 cat \$\$ > /dev/null 2>&1
44966 test \$result -eq 0 || exit 77
44970 file=\$(TMPDIR=. mktemp fiXXXXXX)
44972 setfattr -n user.test -v test \$file &> /dev/null
44973 if test \"\$?\" != 0; then
44978 getfattr \$file &> /dev/null
44979 if test \"\$?\" != 0; then
44984 file=\$(TMPDIR=. mktemp fiXXXXXX)
44985 setfattr -n user.test -v ahoj \$file
44986 # check whether tar fails to store xattrs
44987 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
44988 if test \"\$err\" != \"0\"; then
44993 file=\$(TMPDIR=. mktemp fiXXXXXX)
44995 setcap \"= cap_chown=ei\" \$file &> /dev/null
44996 if test \"\$?\" != 0; then
45001 getcap \$file &> /dev/null
45002 if test \"\$?\" != 0; then
45010 genfile --file dir/file
45012 setcap \"= cap_chown=ei\" dir/file
45014 # archive whole directory including binary xattrs
45015 tar --xattrs -cf archive.tar dir
45017 # clear the directory
45020 # restore _all_ xattrs (not just the user.* domain)
45021 tar --xattrs --xattrs-include='*' -xf archive.tar
45025 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
45029 TEST_TAR_FORMAT=posix
45030 export TEST_TAR_FORMAT
45031 TAR_OPTIONS="-H posix"
45038 cat $$ > /dev/null 2>&1
45041 test $result -eq 0 || exit 77
45045 file=$(TMPDIR=. mktemp fiXXXXXX)
45047 setfattr -n user.test -v test $file &> /dev/null
45048 if test "$?" != 0; then
45053 getfattr $file &> /dev/null
45054 if test "$?" != 0; then
45059 file=$(TMPDIR=. mktemp fiXXXXXX)
45060 setfattr -n user.test -v ahoj $file
45061 # check whether tar fails to store xattrs
45062 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45063 if test "$err" != "0"; then
45068 file=$(TMPDIR=. mktemp fiXXXXXX)
45070 setcap "= cap_chown=ei" $file &> /dev/null
45071 if test "$?" != 0; then
45076 getcap $file &> /dev/null
45077 if test "$?" != 0; then
45085 genfile --file dir/file
45087 setcap "= cap_chown=ei" dir/file
45089 # archive whole directory including binary xattrs
45090 tar --xattrs -cf archive.tar dir
45092 # clear the directory
45095 # restore _all_ xattrs (not just the user.* domain)
45096 tar --xattrs --xattrs-include='*' -xf archive.tar
45100 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45101 at_status=$? at_failed=false
45103 at_fn_diff_devnull "$at_stderr" || at_failed=:
45104 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
45106 $at_diff - "$at_stdout" || at_failed=:
45107 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
45108 $at_failed && at_fn_log_failure
45112 $as_echo "$at_srcdir/capabs_raw01.at:28:
45115 TEST_TAR_FORMAT=gnu
45116 export TEST_TAR_FORMAT
45117 TAR_OPTIONS=\"-H gnu\"
45122 echo \"test\" > \$\$
45124 cat \$\$ > /dev/null 2>&1
45127 test \$result -eq 0 || exit 77
45131 file=\$(TMPDIR=. mktemp fiXXXXXX)
45133 setfattr -n user.test -v test \$file &> /dev/null
45134 if test \"\$?\" != 0; then
45139 getfattr \$file &> /dev/null
45140 if test \"\$?\" != 0; then
45145 file=\$(TMPDIR=. mktemp fiXXXXXX)
45146 setfattr -n user.test -v ahoj \$file
45147 # check whether tar fails to store xattrs
45148 err=\$( tar --xattrs -cf /dev/null \$file 2>&1 >/dev/null | wc -l )
45149 if test \"\$err\" != \"0\"; then
45154 file=\$(TMPDIR=. mktemp fiXXXXXX)
45156 setcap \"= cap_chown=ei\" \$file &> /dev/null
45157 if test \"\$?\" != 0; then
45162 getcap \$file &> /dev/null
45163 if test \"\$?\" != 0; then
45171 genfile --file dir/file
45173 setcap \"= cap_chown=ei\" dir/file
45175 # archive whole directory including binary xattrs
45176 tar --xattrs -cf archive.tar dir
45178 # clear the directory
45181 # restore _all_ xattrs (not just the user.* domain)
45182 tar --xattrs --xattrs-include='*' -xf archive.tar
45186 at_fn_check_prepare_notrace 'a $(...) command substitution' "capabs_raw01.at:28"
45190 TEST_TAR_FORMAT=gnu
45191 export TEST_TAR_FORMAT
45192 TAR_OPTIONS="-H gnu"
45199 cat $$ > /dev/null 2>&1
45202 test $result -eq 0 || exit 77
45206 file=$(TMPDIR=. mktemp fiXXXXXX)
45208 setfattr -n user.test -v test $file &> /dev/null
45209 if test "$?" != 0; then
45214 getfattr $file &> /dev/null
45215 if test "$?" != 0; then
45220 file=$(TMPDIR=. mktemp fiXXXXXX)
45221 setfattr -n user.test -v ahoj $file
45222 # check whether tar fails to store xattrs
45223 err=$( tar --xattrs -cf /dev/null $file 2>&1 >/dev/null | wc -l )
45224 if test "$err" != "0"; then
45229 file=$(TMPDIR=. mktemp fiXXXXXX)
45231 setcap "= cap_chown=ei" $file &> /dev/null
45232 if test "$?" != 0; then
45237 getcap $file &> /dev/null
45238 if test "$?" != 0; then
45246 genfile --file dir/file
45248 setcap "= cap_chown=ei" dir/file
45250 # archive whole directory including binary xattrs
45251 tar --xattrs -cf archive.tar dir
45253 # clear the directory
45256 # restore _all_ xattrs (not just the user.* domain)
45257 tar --xattrs --xattrs-include='*' -xf archive.tar
45261 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45262 at_status=$? at_failed=false
45264 at_fn_diff_devnull "$at_stderr" || at_failed=:
45265 echo >>"$at_stdout"; $as_echo "dir/file = cap_chown+ei
45267 $at_diff - "$at_stdout" || at_failed=:
45268 at_fn_check_status 0 $at_status "$at_srcdir/capabs_raw01.at:28"
45269 $at_failed && at_fn_log_failure
45276 $at_times_p && times >"$at_times_file"
45277 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
45278 read at_status <"$at_status_file"
45281 at_fn_group_banner 179 'onetop01.at:21' \
45282 "tar --one-top-level" " " 26
45284 test -f $XFAILFILE && at_xfail=yes
45286 $as_echo "179. $at_setup_line: testing $at_desc ..."
45294 $as_echo "$at_srcdir/onetop01.at:24:
45298 export TEST_TAR_FORMAT
45299 TAR_OPTIONS=\"-H v7\"
45304 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45312 tar --one-top-level -x -f ../a.tar
45315 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
45320 export TEST_TAR_FORMAT
45321 TAR_OPTIONS="-H v7"
45326 test -z "`sort < /dev/null 2>&1`" || exit 77
45334 tar --one-top-level -x -f ../a.tar
45337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45338 at_status=$? at_failed=false
45340 at_fn_diff_devnull "$at_stderr" || at_failed=:
45341 echo >>"$at_stdout"; $as_echo ".
45346 $at_diff - "$at_stdout" || at_failed=:
45347 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
45348 $at_failed && at_fn_log_failure
45352 $as_echo "$at_srcdir/onetop01.at:24:
45355 TEST_TAR_FORMAT=oldgnu
45356 export TEST_TAR_FORMAT
45357 TAR_OPTIONS=\"-H oldgnu\"
45362 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45370 tar --one-top-level -x -f ../a.tar
45373 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
45377 TEST_TAR_FORMAT=oldgnu
45378 export TEST_TAR_FORMAT
45379 TAR_OPTIONS="-H oldgnu"
45384 test -z "`sort < /dev/null 2>&1`" || exit 77
45392 tar --one-top-level -x -f ../a.tar
45395 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45396 at_status=$? at_failed=false
45398 at_fn_diff_devnull "$at_stderr" || at_failed=:
45399 echo >>"$at_stdout"; $as_echo ".
45404 $at_diff - "$at_stdout" || at_failed=:
45405 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
45406 $at_failed && at_fn_log_failure
45410 $as_echo "$at_srcdir/onetop01.at:24:
45413 TEST_TAR_FORMAT=ustar
45414 export TEST_TAR_FORMAT
45415 TAR_OPTIONS=\"-H ustar\"
45420 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45428 tar --one-top-level -x -f ../a.tar
45431 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
45435 TEST_TAR_FORMAT=ustar
45436 export TEST_TAR_FORMAT
45437 TAR_OPTIONS="-H ustar"
45442 test -z "`sort < /dev/null 2>&1`" || exit 77
45450 tar --one-top-level -x -f ../a.tar
45453 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45454 at_status=$? at_failed=false
45456 at_fn_diff_devnull "$at_stderr" || at_failed=:
45457 echo >>"$at_stdout"; $as_echo ".
45462 $at_diff - "$at_stdout" || at_failed=:
45463 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
45464 $at_failed && at_fn_log_failure
45468 $as_echo "$at_srcdir/onetop01.at:24:
45471 TEST_TAR_FORMAT=posix
45472 export TEST_TAR_FORMAT
45473 TAR_OPTIONS=\"-H posix\"
45478 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45486 tar --one-top-level -x -f ../a.tar
45489 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
45493 TEST_TAR_FORMAT=posix
45494 export TEST_TAR_FORMAT
45495 TAR_OPTIONS="-H posix"
45500 test -z "`sort < /dev/null 2>&1`" || exit 77
45508 tar --one-top-level -x -f ../a.tar
45511 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45512 at_status=$? at_failed=false
45514 at_fn_diff_devnull "$at_stderr" || at_failed=:
45515 echo >>"$at_stdout"; $as_echo ".
45520 $at_diff - "$at_stdout" || at_failed=:
45521 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
45522 $at_failed && at_fn_log_failure
45526 $as_echo "$at_srcdir/onetop01.at:24:
45529 TEST_TAR_FORMAT=gnu
45530 export TEST_TAR_FORMAT
45531 TAR_OPTIONS=\"-H gnu\"
45536 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45544 tar --one-top-level -x -f ../a.tar
45547 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop01.at:24"
45551 TEST_TAR_FORMAT=gnu
45552 export TEST_TAR_FORMAT
45553 TAR_OPTIONS="-H gnu"
45558 test -z "`sort < /dev/null 2>&1`" || exit 77
45566 tar --one-top-level -x -f ../a.tar
45569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45570 at_status=$? at_failed=false
45572 at_fn_diff_devnull "$at_stderr" || at_failed=:
45573 echo >>"$at_stdout"; $as_echo ".
45578 $at_diff - "$at_stdout" || at_failed=:
45579 at_fn_check_status 0 $at_status "$at_srcdir/onetop01.at:24"
45580 $at_failed && at_fn_log_failure
45587 $at_times_p && times >"$at_times_file"
45588 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
45589 read at_status <"$at_status_file"
45592 at_fn_group_banner 180 'onetop02.at:21' \
45593 "tar --one-top-level --show-transformed" " " 26
45595 test -f $XFAILFILE && at_xfail=yes
45597 $as_echo "180. $at_setup_line: testing $at_desc ..."
45605 $as_echo "$at_srcdir/onetop02.at:24:
45609 export TEST_TAR_FORMAT
45610 TAR_OPTIONS=\"-H v7\"
45615 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45623 tar --one-top-level --show-transformed -v -x -f ../a.tar
45626 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
45631 export TEST_TAR_FORMAT
45632 TAR_OPTIONS="-H v7"
45637 test -z "`sort < /dev/null 2>&1`" || exit 77
45645 tar --one-top-level --show-transformed -v -x -f ../a.tar
45648 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45649 at_status=$? at_failed=false
45651 at_fn_diff_devnull "$at_stderr" || at_failed=:
45652 echo >>"$at_stdout"; $as_echo "a/
45660 $at_diff - "$at_stdout" || at_failed=:
45661 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
45662 $at_failed && at_fn_log_failure
45666 $as_echo "$at_srcdir/onetop02.at:24:
45669 TEST_TAR_FORMAT=oldgnu
45670 export TEST_TAR_FORMAT
45671 TAR_OPTIONS=\"-H oldgnu\"
45676 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45684 tar --one-top-level --show-transformed -v -x -f ../a.tar
45687 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
45691 TEST_TAR_FORMAT=oldgnu
45692 export TEST_TAR_FORMAT
45693 TAR_OPTIONS="-H oldgnu"
45698 test -z "`sort < /dev/null 2>&1`" || exit 77
45706 tar --one-top-level --show-transformed -v -x -f ../a.tar
45709 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45710 at_status=$? at_failed=false
45712 at_fn_diff_devnull "$at_stderr" || at_failed=:
45713 echo >>"$at_stdout"; $as_echo "a/
45721 $at_diff - "$at_stdout" || at_failed=:
45722 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
45723 $at_failed && at_fn_log_failure
45727 $as_echo "$at_srcdir/onetop02.at:24:
45730 TEST_TAR_FORMAT=ustar
45731 export TEST_TAR_FORMAT
45732 TAR_OPTIONS=\"-H ustar\"
45737 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45745 tar --one-top-level --show-transformed -v -x -f ../a.tar
45748 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
45752 TEST_TAR_FORMAT=ustar
45753 export TEST_TAR_FORMAT
45754 TAR_OPTIONS="-H ustar"
45759 test -z "`sort < /dev/null 2>&1`" || exit 77
45767 tar --one-top-level --show-transformed -v -x -f ../a.tar
45770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45771 at_status=$? at_failed=false
45773 at_fn_diff_devnull "$at_stderr" || at_failed=:
45774 echo >>"$at_stdout"; $as_echo "a/
45782 $at_diff - "$at_stdout" || at_failed=:
45783 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
45784 $at_failed && at_fn_log_failure
45788 $as_echo "$at_srcdir/onetop02.at:24:
45791 TEST_TAR_FORMAT=posix
45792 export TEST_TAR_FORMAT
45793 TAR_OPTIONS=\"-H posix\"
45798 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45806 tar --one-top-level --show-transformed -v -x -f ../a.tar
45809 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
45813 TEST_TAR_FORMAT=posix
45814 export TEST_TAR_FORMAT
45815 TAR_OPTIONS="-H posix"
45820 test -z "`sort < /dev/null 2>&1`" || exit 77
45828 tar --one-top-level --show-transformed -v -x -f ../a.tar
45831 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45832 at_status=$? at_failed=false
45834 at_fn_diff_devnull "$at_stderr" || at_failed=:
45835 echo >>"$at_stdout"; $as_echo "a/
45843 $at_diff - "$at_stdout" || at_failed=:
45844 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
45845 $at_failed && at_fn_log_failure
45849 $as_echo "$at_srcdir/onetop02.at:24:
45852 TEST_TAR_FORMAT=gnu
45853 export TEST_TAR_FORMAT
45854 TAR_OPTIONS=\"-H gnu\"
45859 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45867 tar --one-top-level --show-transformed -v -x -f ../a.tar
45870 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop02.at:24"
45874 TEST_TAR_FORMAT=gnu
45875 export TEST_TAR_FORMAT
45876 TAR_OPTIONS="-H gnu"
45881 test -z "`sort < /dev/null 2>&1`" || exit 77
45889 tar --one-top-level --show-transformed -v -x -f ../a.tar
45892 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45893 at_status=$? at_failed=false
45895 at_fn_diff_devnull "$at_stderr" || at_failed=:
45896 echo >>"$at_stdout"; $as_echo "a/
45904 $at_diff - "$at_stdout" || at_failed=:
45905 at_fn_check_status 0 $at_status "$at_srcdir/onetop02.at:24"
45906 $at_failed && at_fn_log_failure
45913 $at_times_p && times >"$at_times_file"
45914 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
45915 read at_status <"$at_status_file"
45918 at_fn_group_banner 181 'onetop03.at:21' \
45919 "tar --one-top-level --transform" " " 26
45921 test -f $XFAILFILE && at_xfail=yes
45923 $as_echo "181. $at_setup_line: testing $at_desc ..."
45931 $as_echo "$at_srcdir/onetop03.at:24:
45935 export TEST_TAR_FORMAT
45936 TAR_OPTIONS=\"-H v7\"
45941 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
45949 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
45952 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
45957 export TEST_TAR_FORMAT
45958 TAR_OPTIONS="-H v7"
45963 test -z "`sort < /dev/null 2>&1`" || exit 77
45971 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
45974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
45975 at_status=$? at_failed=false
45977 at_fn_diff_devnull "$at_stderr" || at_failed=:
45978 echo >>"$at_stdout"; $as_echo ".
45983 $at_diff - "$at_stdout" || at_failed=:
45984 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
45985 $at_failed && at_fn_log_failure
45989 $as_echo "$at_srcdir/onetop03.at:24:
45992 TEST_TAR_FORMAT=oldgnu
45993 export TEST_TAR_FORMAT
45994 TAR_OPTIONS=\"-H oldgnu\"
45999 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46007 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46010 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
46014 TEST_TAR_FORMAT=oldgnu
46015 export TEST_TAR_FORMAT
46016 TAR_OPTIONS="-H oldgnu"
46021 test -z "`sort < /dev/null 2>&1`" || exit 77
46029 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46032 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46033 at_status=$? at_failed=false
46035 at_fn_diff_devnull "$at_stderr" || at_failed=:
46036 echo >>"$at_stdout"; $as_echo ".
46041 $at_diff - "$at_stdout" || at_failed=:
46042 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
46043 $at_failed && at_fn_log_failure
46047 $as_echo "$at_srcdir/onetop03.at:24:
46050 TEST_TAR_FORMAT=ustar
46051 export TEST_TAR_FORMAT
46052 TAR_OPTIONS=\"-H ustar\"
46057 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46065 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46068 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
46072 TEST_TAR_FORMAT=ustar
46073 export TEST_TAR_FORMAT
46074 TAR_OPTIONS="-H ustar"
46079 test -z "`sort < /dev/null 2>&1`" || exit 77
46087 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46090 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46091 at_status=$? at_failed=false
46093 at_fn_diff_devnull "$at_stderr" || at_failed=:
46094 echo >>"$at_stdout"; $as_echo ".
46099 $at_diff - "$at_stdout" || at_failed=:
46100 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
46101 $at_failed && at_fn_log_failure
46105 $as_echo "$at_srcdir/onetop03.at:24:
46108 TEST_TAR_FORMAT=posix
46109 export TEST_TAR_FORMAT
46110 TAR_OPTIONS=\"-H posix\"
46115 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46123 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46126 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
46130 TEST_TAR_FORMAT=posix
46131 export TEST_TAR_FORMAT
46132 TAR_OPTIONS="-H posix"
46137 test -z "`sort < /dev/null 2>&1`" || exit 77
46145 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46148 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46149 at_status=$? at_failed=false
46151 at_fn_diff_devnull "$at_stderr" || at_failed=:
46152 echo >>"$at_stdout"; $as_echo ".
46157 $at_diff - "$at_stdout" || at_failed=:
46158 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
46159 $at_failed && at_fn_log_failure
46163 $as_echo "$at_srcdir/onetop03.at:24:
46166 TEST_TAR_FORMAT=gnu
46167 export TEST_TAR_FORMAT
46168 TAR_OPTIONS=\"-H gnu\"
46173 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46181 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46184 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop03.at:24"
46188 TEST_TAR_FORMAT=gnu
46189 export TEST_TAR_FORMAT
46190 TAR_OPTIONS="-H gnu"
46195 test -z "`sort < /dev/null 2>&1`" || exit 77
46203 tar --one-top-level --transform 's/c/d/' -x -f ../a.tar
46206 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46207 at_status=$? at_failed=false
46209 at_fn_diff_devnull "$at_stderr" || at_failed=:
46210 echo >>"$at_stdout"; $as_echo ".
46215 $at_diff - "$at_stdout" || at_failed=:
46216 at_fn_check_status 0 $at_status "$at_srcdir/onetop03.at:24"
46217 $at_failed && at_fn_log_failure
46224 $at_times_p && times >"$at_times_file"
46225 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46226 read at_status <"$at_status_file"
46229 at_fn_group_banner 182 'onetop04.at:21' \
46230 "tar --one-top-level --transform" " " 26
46232 test -f $XFAILFILE && at_xfail=yes
46234 $as_echo "182. $at_setup_line: testing $at_desc ..."
46242 $as_echo "$at_srcdir/onetop04.at:24:
46246 export TEST_TAR_FORMAT
46247 TAR_OPTIONS=\"-H v7\"
46252 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46258 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46260 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
46265 export TEST_TAR_FORMAT
46266 TAR_OPTIONS="-H v7"
46271 test -z "`sort < /dev/null 2>&1`" || exit 77
46277 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46280 at_status=$? at_failed=false
46282 at_fn_diff_devnull "$at_stderr" || at_failed=:
46283 echo >>"$at_stdout"; $as_echo "a/
46287 $at_diff - "$at_stdout" || at_failed=:
46288 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
46289 $at_failed && at_fn_log_failure
46293 $as_echo "$at_srcdir/onetop04.at:24:
46296 TEST_TAR_FORMAT=oldgnu
46297 export TEST_TAR_FORMAT
46298 TAR_OPTIONS=\"-H oldgnu\"
46303 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46309 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46311 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
46315 TEST_TAR_FORMAT=oldgnu
46316 export TEST_TAR_FORMAT
46317 TAR_OPTIONS="-H oldgnu"
46322 test -z "`sort < /dev/null 2>&1`" || exit 77
46328 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46330 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46331 at_status=$? at_failed=false
46333 at_fn_diff_devnull "$at_stderr" || at_failed=:
46334 echo >>"$at_stdout"; $as_echo "a/
46338 $at_diff - "$at_stdout" || at_failed=:
46339 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
46340 $at_failed && at_fn_log_failure
46344 $as_echo "$at_srcdir/onetop04.at:24:
46347 TEST_TAR_FORMAT=ustar
46348 export TEST_TAR_FORMAT
46349 TAR_OPTIONS=\"-H ustar\"
46354 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46360 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46362 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
46366 TEST_TAR_FORMAT=ustar
46367 export TEST_TAR_FORMAT
46368 TAR_OPTIONS="-H ustar"
46373 test -z "`sort < /dev/null 2>&1`" || exit 77
46379 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46381 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46382 at_status=$? at_failed=false
46384 at_fn_diff_devnull "$at_stderr" || at_failed=:
46385 echo >>"$at_stdout"; $as_echo "a/
46389 $at_diff - "$at_stdout" || at_failed=:
46390 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
46391 $at_failed && at_fn_log_failure
46395 $as_echo "$at_srcdir/onetop04.at:24:
46398 TEST_TAR_FORMAT=posix
46399 export TEST_TAR_FORMAT
46400 TAR_OPTIONS=\"-H posix\"
46405 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46411 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46413 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
46417 TEST_TAR_FORMAT=posix
46418 export TEST_TAR_FORMAT
46419 TAR_OPTIONS="-H posix"
46424 test -z "`sort < /dev/null 2>&1`" || exit 77
46430 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46432 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46433 at_status=$? at_failed=false
46435 at_fn_diff_devnull "$at_stderr" || at_failed=:
46436 echo >>"$at_stdout"; $as_echo "a/
46440 $at_diff - "$at_stdout" || at_failed=:
46441 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
46442 $at_failed && at_fn_log_failure
46446 $as_echo "$at_srcdir/onetop04.at:24:
46449 TEST_TAR_FORMAT=gnu
46450 export TEST_TAR_FORMAT
46451 TAR_OPTIONS=\"-H gnu\"
46456 test -z \"\`sort < /dev/null 2>&1\`\" || exit 77
46462 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46464 at_fn_check_prepare_notrace 'a `...` command substitution' "onetop04.at:24"
46468 TEST_TAR_FORMAT=gnu
46469 export TEST_TAR_FORMAT
46470 TAR_OPTIONS="-H gnu"
46475 test -z "`sort < /dev/null 2>&1`" || exit 77
46481 tar -tf a.tar --one-top-level --transform 's/c/d/' --show-transformed | sort
46483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46484 at_status=$? at_failed=false
46486 at_fn_diff_devnull "$at_stderr" || at_failed=:
46487 echo >>"$at_stdout"; $as_echo "a/
46491 $at_diff - "$at_stdout" || at_failed=:
46492 at_fn_check_status 0 $at_status "$at_srcdir/onetop04.at:24"
46493 $at_failed && at_fn_log_failure
46500 $at_times_p && times >"$at_times_file"
46501 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46502 read at_status <"$at_status_file"
46505 at_fn_group_banner 183 'gtarfail.at:21' \
46509 $as_echo "183. $at_setup_line: testing $at_desc ..."
46517 $as_echo "$at_srcdir/gtarfail.at:26:
46519 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46520 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46523 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
46525 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail.at:26"
46528 test -z "$STAR_TESTSCRIPTS" && exit 77
46529 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46532 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
46534 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46535 at_status=$? at_failed=false
46537 at_fn_diff_devnull "$at_stderr" || at_failed=:
46538 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
46539 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
46540 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
46541 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
46542 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
46543 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
46545 $at_diff - "$at_stdout" || at_failed=:
46546 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
46547 $at_failed && at_fn_log_failure
46552 $at_times_p && times >"$at_times_file"
46553 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46554 read at_status <"$at_status_file"
46557 at_fn_group_banner 184 'gtarfail2.at:21' \
46561 $as_echo "184. $at_setup_line: testing $at_desc ..."
46569 $as_echo "$at_srcdir/gtarfail2.at:26:
46571 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46572 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46574 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
46576 at_fn_check_prepare_notrace 'an embedded newline' "gtarfail2.at:26"
46579 test -z "$STAR_TESTSCRIPTS" && exit 77
46580 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46582 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
46584 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46585 at_status=$? at_failed=false
46587 at_fn_diff_devnull "$at_stderr" || at_failed=:
46588 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
46589 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
46590 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
46591 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
46592 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
46593 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
46594 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
46595 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
46596 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
46597 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
46599 $at_diff - "$at_stdout" || at_failed=:
46600 at_fn_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
46601 $at_failed && at_fn_log_failure
46606 $at_times_p && times >"$at_times_file"
46607 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46608 read at_status <"$at_status_file"
46611 at_fn_group_banner 185 'multi-fail.at:21' \
46612 "multi-fail" " " 27
46615 $as_echo "185. $at_setup_line: testing $at_desc ..."
46623 $as_echo "$at_srcdir/multi-fail.at:26:
46625 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46626 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46629 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46630 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46633 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
46634 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
46636 at_fn_check_prepare_notrace 'an embedded newline' "multi-fail.at:26"
46639 test -z "$STAR_TESTSCRIPTS" && exit 77
46640 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46643 test -z "$STAR_TESTSCRIPTS" && exit 77
46644 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46647 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
46648 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
46650 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46651 at_status=$? at_failed=false
46653 at_fn_diff_devnull "$at_stderr" || at_failed=:
46654 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
46655 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
46656 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
46657 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
46658 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
46659 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
46660 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
46661 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
46662 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
46663 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
46664 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
46665 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
46666 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
46667 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
46668 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
46669 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
46670 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
46671 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
46672 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
46673 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
46674 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
46675 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
46676 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
46677 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
46678 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
46679 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
46680 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
46681 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
46682 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
46683 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
46684 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
46685 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
46686 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
46687 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
46688 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
46689 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
46690 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
46691 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
46692 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
46693 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
46694 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
46695 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
46696 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
46697 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
46698 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
46699 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
46700 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
46701 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
46702 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
46703 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
46704 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
46705 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
46707 $at_diff - "$at_stdout" || at_failed=:
46708 at_fn_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
46709 $at_failed && at_fn_log_failure
46714 $at_times_p && times >"$at_times_file"
46715 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46716 read at_status <"$at_status_file"
46719 at_fn_group_banner 186 'ustar-big-2g.at:21' \
46720 "ustar-big-2g" " " 27
46723 $as_echo "186. $at_setup_line: testing $at_desc ..."
46731 $as_echo "$at_srcdir/ustar-big-2g.at:26:
46733 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46736 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46737 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46740 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
46742 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-2g.at:26"
46745 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46748 test -z "$STAR_TESTSCRIPTS" && exit 77
46749 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46752 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
46754 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46755 at_status=$? at_failed=false
46757 echo stderr:; tee stderr <"$at_stderr"
46758 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
46759 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
46761 $at_diff - "$at_stdout" || at_failed=:
46762 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
46763 $at_failed && at_fn_log_failure
46768 cat >stderr.re <<'_ATEOF'
46769 tar: Record size = .*
46772 awk '{print NR " " $0}' stderr > $$.1
46773 awk '{print NR " " $0}' stderr.re | join - $$.1 |
46774 while read NUM RE LINE
46776 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
46781 $at_times_p && times >"$at_times_file"
46782 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46783 read at_status <"$at_status_file"
46786 at_fn_group_banner 187 'ustar-big-8g.at:21' \
46787 "ustar-big-8g" " " 27
46790 $as_echo "187. $at_setup_line: testing $at_desc ..."
46798 $as_echo "$at_srcdir/ustar-big-8g.at:26:
46800 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46803 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46804 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46807 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
46809 at_fn_check_prepare_notrace 'an embedded newline' "ustar-big-8g.at:26"
46812 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46815 test -z "$STAR_TESTSCRIPTS" && exit 77
46816 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46819 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
46821 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46822 at_status=$? at_failed=false
46824 echo stderr:; tee stderr <"$at_stderr"
46825 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
46826 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
46828 $at_diff - "$at_stdout" || at_failed=:
46829 at_fn_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
46830 $at_failed && at_fn_log_failure
46835 cat >stderr.re <<'_ATEOF'
46836 tar: Record size = .*
46839 awk '{print NR " " $0}' stderr > $$.1
46840 awk '{print NR " " $0}' stderr.re | join - $$.1 |
46841 while read NUM RE LINE
46843 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
46848 $at_times_p && times >"$at_times_file"
46849 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46850 read at_status <"$at_status_file"
46853 at_fn_group_banner 188 'pax-big-10g.at:21' \
46854 "pax-big-10g" " " 27
46857 $as_echo "188. $at_setup_line: testing $at_desc ..."
46865 $as_echo "$at_srcdir/pax-big-10g.at:26:
46867 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46870 test -z \"\$STAR_TESTSCRIPTS\" && exit 77
46871 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff \$STAR_TESTSCRIPTS \$STAR_DATA_URL || exit 77
46874 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
46876 at_fn_check_prepare_notrace 'an embedded newline' "pax-big-10g.at:26"
46879 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
46882 test -z "$STAR_TESTSCRIPTS" && exit 77
46883 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
46886 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
46888 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
46889 at_status=$? at_failed=false
46891 echo stderr:; tee stderr <"$at_stderr"
46892 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
46893 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
46895 $at_diff - "$at_stdout" || at_failed=:
46896 at_fn_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
46897 $at_failed && at_fn_log_failure
46902 cat >stderr.re <<'_ATEOF'
46903 tar: Record size = .*
46906 awk '{print NR " " $0}' stderr > $$.1
46907 awk '{print NR " " $0}' stderr.re | join - $$.1 |
46908 while read NUM RE LINE
46910 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
46915 $at_times_p && times >"$at_times_file"
46916 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
46917 read at_status <"$at_status_file"