2 # Generated from testsuite.at by GNU Autoconf 2.63.
4 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 # 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
23 *posix*) set -o posix ;;
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 as_echo_n='sh -c $as_echo_n_body as_echo'
68 as_echo='sh -c $as_echo_body as_echo'
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # Support unset when possible.
81 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 { (exit 1); exit 1; }
119 # Work around bugs in pre-3.0 UWIN ksh.
120 for as_var in ENV MAIL MAILPATH
121 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
133 # Required to use basename.
134 if expr a : '\(a\)' >/dev/null 2>&1 &&
135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
148 # Name of the executable.
149 as_me=`$as_basename -- "$0" ||
150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
151 X"$0" : 'X\(//\)$' \| \
152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 sed '/^.*\/\([^/][^/]*\)\/*$/{
172 if test "x$CONFIG_SHELL" = x; then
173 if (eval ":") 2>/dev/null; then
179 if test $as_have_required = yes && (eval ":
189 as_func_ret_success () {
192 as_func_ret_failure () {
197 if as_func_success; then
201 echo as_func_success failed.
204 if as_func_failure; then
206 echo as_func_failure succeeded.
209 if as_func_ret_success; then
213 echo as_func_ret_success failed.
216 if as_func_ret_failure; then
218 echo as_func_ret_failure succeeded.
221 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 echo positional parameters were not saved.
228 test \$exitcode = 0) || { (exit 1); exit 1; }
233 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
234 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
235 ") 2> /dev/null; then
239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 test -z "$as_dir" && as_dir=.
246 for as_base in sh bash ksh sh5; do
247 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
254 for as_shell in $as_candidate_shells $SHELL; do
255 # Try only shells that exist, to save several forks.
256 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
257 { ("$as_shell") 2> /dev/null <<\_ASEOF
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
266 case `(set -o) 2>/dev/null` in
267 *posix*) set -o posix ;;
276 CONFIG_SHELL=$as_shell
278 if { "$as_shell" 2> /dev/null <<\_ASEOF
279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
283 # is contrary to our usage. Disable this feature.
284 alias -g '${1+"$@"}'='"$@"'
287 case `(set -o) 2>/dev/null` in
288 *posix*) set -o posix ;;
304 as_func_ret_success () {
307 as_func_ret_failure () {
312 if as_func_success; then
316 echo as_func_success failed.
319 if as_func_failure; then
321 echo as_func_failure succeeded.
324 if as_func_ret_success; then
328 echo as_func_ret_success failed.
331 if as_func_ret_failure; then
333 echo as_func_ret_failure succeeded.
336 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 echo positional parameters were not saved.
343 test $exitcode = 0) || { (exit 1); exit 1; }
348 test "x$as_lineno_1" != "x$as_lineno_2" &&
349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
360 if test "x$CONFIG_SHELL" != x; then
361 for as_var in BASH_ENV ENV
362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 if test $as_have_required = no; then
370 echo This script requires a shell more modern than all the
371 echo shells that I found on your system. Please install a
372 echo modern shell, or manually run the script under such a
373 echo shell if you do have one.
374 { (exit 1); exit 1; }
384 (eval "as_func_return () {
393 as_func_ret_success () {
396 as_func_ret_failure () {
401 if as_func_success; then
405 echo as_func_success failed.
408 if as_func_failure; then
410 echo as_func_failure succeeded.
413 if as_func_ret_success; then
417 echo as_func_ret_success failed.
420 if as_func_ret_failure; then
422 echo as_func_ret_failure succeeded.
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 echo positional parameters were not saved.
432 test \$exitcode = 0") || {
433 echo No shell found that supports shell functions.
434 echo Please tell bug-autoconf@gnu.org about your system,
435 echo including any error possibly output before this message.
436 echo This can help us improve future autoconf versions.
437 echo Configuration will now proceed without shell functions.
444 test "x$as_lineno_1" != "x$as_lineno_2" &&
445 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
448 # uniformly replaced by the line number. The first 'sed' inserts a
449 # line-number line after each line using $LINENO; the second 'sed'
450 # does the real work. The second script uses 'N' to pair each
451 # line-number line with the line containing $LINENO, and appends
452 # trailing '-' during substitution so that $LINENO is not a special
454 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
455 # scripts with optimization help from Paolo Bonzini. Blame Lee
456 # E. McMahon (1931-1989) for sed's syntax. :-)
468 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 chmod +x "$as_me.lineno" ||
473 { { $as_echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
474 $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Not all shells have the 'times' builtin; the subshell is needed to make
583 # sure we discard the 'times: not found' message from the shell.
585 (times) >/dev/null 2>&1 && at_times_p=:
587 # CLI Arguments to pass to the debugging scripts.
591 # Shall we be verbose? ':' means no, empty means yes.
595 # Shall we keep the debug scripts? Must be `:' when the suite is
596 # run by a debug script, so that the script doesn't remove itself.
598 # Display help message?
600 # Display the version message?
608 # Whether a write failure occurred
611 # The directory we run the suite in. Default to . if no -C option.
613 # An absolute reference to this testsuite script.
615 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
616 * ) at_myself=$at_dir/$as_myself ;;
618 # Whether -C is in effect.
621 # List of the tested programs.
623 # List of the all the test groups.
624 at_groups_all=' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118'
625 # As many question marks as there are digits in the last test group number.
626 # Used to normalize the test group numbers so that `ls' lists them in
629 # Description of all the test groups.
630 at_help_all="1;version.at:19;tar version;;
631 2;pipe.at:30;decompressing from stdin;pipe;
632 3;options.at:24;mixing options;options options00;
633 4;options02.at:26;interspersed options;options options02;
634 5;T-empty.at:26;files-from: empty entries;files-from empty;
635 6;T-null.at:21;files-from: 0-separated file without -0;files-from null t-null;
636 7;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
637 8;verbose.at:26;tar cvf -;stdout verbose;
638 9;append.at:21;append;append append00;
639 10;append01.at:29;appending files with long names;append append01;
640 11;append02.at:54;append vs. create;append append02 append-gnu;
641 12;append03.at:19;append with name transformation;append append03;
642 13;xform-h.at:30;transforming hard links on create;transform xform xform-h;
643 14;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
644 15;exclude.at:23;exclude;exclude;
645 16;exclude01.at:17;exclude wildcards;exclude exclude01;
646 17;exclude02.at:17;exclude: anchoring;exclude exclude02;
647 18;exclude03.at:17;exclude: wildcards match slash;exclude exclude03;
648 19;exclude04.at:17;exclude: case insensitive;exclude exclude04;
649 20;exclude05.at:19;exclude: lots of excludes;exclude exclude05;
650 21;exclude06.at:24;exclude: long files in pax archives;exclude exclude06;
651 22;delete01.at:23;deleting a member after a big one;delete delete01;
652 23;delete02.at:23;deleting a member from stdin archive;delete delete02;
653 24;delete03.at:21;deleting members with long names;delete delete03;
654 25;delete04.at:23;deleting a large last member;delete delete04;
655 26;delete05.at:27;deleting non-existing member;delete delete05;
656 27;extrac01.at:23;extract over an existing directory;extract extract01;
657 28;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
658 29;extrac03.at:23;extraction loops;extract extract03;
659 30;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
660 31;extrac05.at:30;extracting selected members from pax;extract extract05;
661 32;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;
662 33;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
663 34;extrac08.at:33;restoring mode on existing directory;extract extrac08;
664 35;extrac09.at:22;no need to save dir with unreadable . and ..;extract extrac09;
665 36;extrac10.at:27;-C and delayed setting of metadata;extract extrac10;
666 37;extrac11.at:23;scarce file descriptors;extract extrac11;
667 38;extrac12.at:23;extract dot permissions;extract extrac12;
668 39;extrac13.at:24;extract over symlinks;extract extrac13;
669 40;extrac14.at:23;extract -C symlink;extract extrac14;
670 41;extrac15.at:23;extract parent mkdir failure;extract extrac15;
671 42;extrac16.at:24;extract empty directory with -C;extract extrac16;
672 43;extrac17.at:19;name matching/transformation ordering;extract extrac17;
673 44;label01.at:19;single-volume label;label label01;
674 45;label02.at:19;multi-volume label;label label02 multi-label multivolume multiv;
675 46;label03.at:25;test-label option;label label03 test-label;
676 47;label04.at:25;label with non-create option;label label04;
677 48;label05.at:22;label with non-create option;label label05;
678 49;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
679 50;gzip.at:23;gzip;gzip;
680 51;incremental.at:23;incremental;incremental incr00;
681 52;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
682 53;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
683 54;listed01.at:26;--listed for individual files;listed incremental listed01;
684 55;listed02.at:28;working --listed;listed incremental listed02;
685 56;listed03.at:22;incremental dump when the parent directory is unreadable;listed incremental listed03;
686 57;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
687 58;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
688 59;incr05.at:19;incremental dumps with -C;incremental incr05;
689 60;incr06.at:19;incremental dumps of nested directories;incremental incr06;
690 61;filerem01.at:34;file removed as we read it (ca. 22 seconds);create incremental filechange filerem filerem01;
691 62;filerem02.at:24;toplevel file removed (ca. 24 seconds);create incremental filechange filerem filerem02;
692 63;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
693 64;rename02.at:24;move between hierarchies;incremental rename rename02;
694 65;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
695 66;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
696 67;rename05.at:24;renamed subdirectories;incremental rename05 rename;
697 68;chtype.at:27;changed file types in incrementals;incremental chtype;
698 69;ignfail.at:23;ignfail;ignfail;
699 70;link01.at:33;link count gt 2;hardlinks link01;
700 71;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
701 72;link03.at:24;working -l with --remove-files;hardlinks link03;
702 73;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
703 74;longv7.at:24;long names in V7 archives;longname longv7;
704 75;long01.at:28;long file names divisible by block size;longname long512;
705 76;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
706 77;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
707 78;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
708 79;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
709 80;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
710 81;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
711 82;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
712 83;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
713 84;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
714 85;multiv07.at:26;volumes split at an extended header;multivolume multiv multiv07 xsplit;
715 86;multiv08.at:23;multivolume header creation;multivolume multiv multiv08;
716 87;old.at:23;old archives;old;
717 88;recurse.at:21;recurse;recurse;
718 89;same-order01.at:26;working -C with --same-order;same-order same-order01;
719 90;same-order02.at:25;multiple -C options;same-order same-order02;
720 91;shortrec.at:25;short records;shortrec;
721 92;sparse01.at:21;sparse files;sparse sparse01;
722 93;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
723 94;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
724 95;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
725 96;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
726 97;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
727 98;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
728 99;update.at:28;update unchanged directories;update update00;
729 100;update01.at:29;update directories;update update01;
730 101;update02.at:26;update changed files;update update02;
731 102;volume.at:23;volume;volume volcheck;
732 103;volsize.at:29;volume header size;volume volsize;
733 104;comprec.at:21;compressed format recognition;comprec;
734 105;shortfile.at:26;short input files;shortfile shortfile0;
735 106;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
736 107;truncate.at:29;truncate;truncate filechange;
737 108;grow.at:24;grow;grow filechange;
738 109;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
739 110;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
740 111;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
741 112;sigpipe.at:19;sigpipe handling;sigpipe;
742 113;gtarfail.at:21;gtarfail;star gtarfail;
743 114;gtarfail2.at:21;gtarfail2;star gtarfail2;
744 115;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
745 116;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
746 117;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
747 118;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
750 # at_func_validate_ranges [NAME...]
751 # ---------------------------------
752 # Validate and normalize the test group number contained in each
753 # variable NAME. Leading zeroes are treated as decimal.
754 at_func_validate_ranges ()
758 eval at_value=\$$at_grp
759 if test $at_value -lt 1 || test $at_value -gt 118; then
760 $as_echo "invalid test group: $at_value" >&2
764 0*) # We want to treat leading 0 as decimal, like expr and test, but
765 # at_func_arith treats it as octal if it uses $(( )).
766 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
767 # expr fork, but it is not worth the effort to determine if the
768 # shell supports XSI when the user can just avoid leading 0.
769 eval $at_grp='`expr $at_value + 0`' ;;
777 # If the previous option needs an argument, assign it.
778 if test -n "$at_prev"; then
779 at_option=$at_prev=$at_option
784 *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
817 at_verbose=; at_quiet=:
821 at_traceon='set -x'; at_traceoff='set +x'
824 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
825 at_func_validate_ranges at_option
826 at_groups="$at_groups$at_option "
830 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
831 at_range_start=`echo $at_option |tr -d X-`
832 at_func_validate_ranges at_range_start
833 at_range=`$as_echo " $at_groups_all " | \
834 sed -e 's/^.* \('$at_range_start' \)/\1/'`
835 at_groups="$at_groups$at_range "
838 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
839 at_range_end=`echo $at_option |tr -d X-`
840 at_func_validate_ranges at_range_end
841 at_range=`$as_echo " $at_groups_all " | \
842 sed -e 's/\( '$at_range_end'\) .*$/\1/'`
843 at_groups="$at_groups$at_range "
846 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
847 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
848 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
849 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
850 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
851 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
852 at_range_start=`expr $at_option : '\(.*\)-'`
853 at_range_end=`expr $at_option : '.*-\(.*\)'`
854 if test $at_range_start -gt $at_range_end; then
856 at_range_end=$at_range_start
857 at_range_start=$at_tmp
859 at_func_validate_ranges at_range_start at_range_end
860 at_range=`$as_echo " $at_groups_all " | \
861 sed -e 's/^.*\( '$at_range_start' \)/\1/' \
862 -e 's/\( '$at_range_end'\) .*$/\1/'`
863 at_groups="$at_groups$at_range "
866 # Directory selection.
880 at_groups_selected=$at_help_all
892 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
895 # It is on purpose that we match the test group titles too.
896 at_groups_selected=`$as_echo "$at_groups_selected" |
897 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
899 # Smash the newlines.
900 at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//' |
903 at_groups="$at_groups$at_groups_selected "
907 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
908 # Reject names that are not valid shell variable names.
910 '' | [0-9]* | *[!_$as_cr_alnum]* )
911 { { $as_echo "$as_me:$LINENO: error: invalid variable name: $at_envvar" >&5
912 $as_echo "$as_me: error: invalid variable name: $at_envvar" >&2;}
913 { (exit 1); exit 1; }; } ;;
915 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
916 # Export now, but save eval for later and for debug scripts.
918 at_debug_args="$at_debug_args $at_envvar='$at_value'"
921 *) $as_echo "$as_me: invalid option: $at_option" >&2
922 $as_echo "Try \`$0 --help' for more information." >&2
928 # Verify our last option didn't require an argument
929 if test -n "$at_prev"; then
930 { { $as_echo "$as_me:$LINENO: error: \`$at_prev' requires an argument." >&5
931 $as_echo "$as_me: error: \`$at_prev' requires an argument." >&2;}
932 { (exit 1); exit 1; }; }
936 # Selected test groups.
937 if test -z "$at_groups"; then
938 at_groups=$at_groups_all
940 # Sort the tests, removing duplicates.
941 at_groups=`$as_echo "$at_groups" | tr ' ' "$as_nl" | sort -nu`
946 cat <<_ATEOF || at_write_fail=1
947 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
949 Run all the tests, or the selected TESTS, given by numeric ranges, and
950 save a detailed log file. Upon failure, create debugging scripts.
952 You should not change environment variables unless explicitly passed
953 as command line arguments. Set \`AUTOTEST_PATH' to select the executables
954 to exercise. Each relative directory is expanded as build and source
955 directories relatively to the top level of this distribution. E.g.,
957 $ $0 AUTOTEST_PATH=bin
959 possibly amounts into
961 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
963 cat <<_ATEOF || at_write_fail=1
966 -h, --help print the help message, then exit
967 -V, --version print version number, then exit
968 -c, --clean remove all the files this test suite might create and exit
969 -l, --list describes all the tests, or the selected TESTS
971 cat <<_ATEOF || at_write_fail=1
975 change to directory DIR before starting
976 -k, --keywords=KEYWORDS
977 select the tests matching all the comma-separated KEYWORDS
978 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
979 -e, --errexit abort as soon as a test fails; implies --debug
980 -v, --verbose force more detailed output
981 default for debugging scripts
982 -d, --debug inhibit clean up and top-level logging
983 default for debugging scripts
984 -x, --trace enable tests shell tracing
986 cat <<_ATEOF || at_write_fail=1
988 Report bugs to <bug-tar@gnu.org>.
995 cat <<_ATEOF || at_write_fail=1
996 GNU tar 1.25 test suite test groups:
998 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1002 # Passing at_groups is tricky. We cannot use it to form a literal string
1003 # or regexp because of the limitation of AIX awk. And Solaris' awk
1004 # doesn't grok more than 99 fields in a record, so we have to use `split'.
1005 # at_groups needs to be space-separated for this script to work.
1008 at_groups=`$as_echo "$at_groups" | tr "$as_nl" ' '` ;;
1010 $as_echo "$at_groups$as_nl$at_help_all" |
1011 awk 'BEGIN { FS = ";" }
1013 for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
1017 if (selected[$ 1]) {
1018 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1019 if ($ 4) printf " %s\n", $ 4
1021 }' || at_write_fail=1
1024 if $at_version_p; then
1025 $as_echo "$as_me (GNU tar 1.25)" &&
1026 cat <<\_ACEOF || at_write_fail=1
1028 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1029 Free Software Foundation, Inc.
1030 This test suite is free software; the Free Software Foundation gives
1031 unlimited permission to copy, distribute and modify it.
1036 # Should we print banners? at_groups is space-separated for entire test,
1037 # newline-separated if only a subset of the testsuite is run.
1039 *' '*' '* | *"$as_nl"*"$as_nl"* )
1040 at_print_banners=: ;;
1041 * ) at_print_banners=false ;;
1043 # Text for banner N, set to empty once printed.
1045 # Take any -C into account.
1046 if $at_change_dir ; then
1047 if test x- = "x$at_dir" ; then
1050 test x != "x$at_dir" && cd "$at_dir" \
1051 || { { $as_echo "$as_me:$LINENO: error: unable to change directory" >&5
1052 $as_echo "$as_me: error: unable to change directory" >&2;}
1053 { (exit 1); exit 1; }; }
1057 # Load the config files for any default variable assignments.
1058 for at_file in atconfig atlocal
1060 test -r $at_file || continue
1061 . ./$at_file || { { $as_echo "$as_me:$LINENO: error: invalid content: $at_file" >&5
1062 $as_echo "$as_me: error: invalid content: $at_file" >&2;}
1063 { (exit 1); exit 1; }; }
1066 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1067 : ${at_top_build_prefix=$at_top_builddir}
1069 # Perform any assignments requested during argument parsing.
1070 eval "$at_debug_args"
1072 # atconfig delivers names relative to the directory the test suite is
1073 # in, but the groups themselves are run in testsuite-dir/group-dir.
1074 if test -n "$at_top_srcdir"; then
1076 for at_dir_var in srcdir top_srcdir top_build_prefix
1078 at_val=`eval 'as_val=${'at_$at_dir_var'}
1079 $as_echo "$as_val"'`
1081 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1082 *) at_prefix=../../ ;;
1084 eval "$at_dir_var=\$at_prefix\$at_val"
1088 ## ------------------- ##
1089 ## Directory structure ##
1090 ## ------------------- ##
1092 # This is the set of directories and files used by this script
1093 # (non-literals are capitalized):
1095 # TESTSUITE - the testsuite
1096 # TESTSUITE.log - summarizes the complete testsuite run
1097 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1098 # + at-groups/ - during a run: status of all groups in run
1099 # | + NNN/ - during a run: meta-data about test group NNN
1100 # | | + check-line - location (source file and line) of current AT_CHECK
1101 # | | + status - exit status of current AT_CHECK
1102 # | | + stdout - stdout of current AT_CHECK
1103 # | | + stder1 - stderr, including trace
1104 # | | + stderr - stderr, with trace filtered out
1105 # | | + test-source - portion of testsuite that defines group
1106 # | | + times - timestamps for computing duration
1107 # | | + pass - created if group passed
1108 # | | + xpass - created if group xpassed
1109 # | | + fail - created if group failed
1110 # | | + xfail - created if group xfailed
1111 # | | + skip - created if group skipped
1112 # + at-stop - during a run: end the run if this file exists
1113 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1114 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1115 # | + TESTSUITE.log - summarizes the group results
1116 # | + ... - files created during the group
1118 # The directory the whole suite works in.
1119 # Should be absolute to let the user `cd' at will.
1120 at_suite_dir=$at_dir/$as_me.dir
1121 # The file containing the suite.
1122 at_suite_log=$at_dir/$as_me.log
1123 # The directory containing helper files per test group.
1124 at_helper_dir=$at_suite_dir/at-groups
1125 # Stop file: if it exists, do not start new jobs.
1126 at_stop_file=$at_suite_dir/at-stop
1129 test -d "$at_suite_dir" &&
1130 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1131 rm -f -r "$at_suite_dir" "$at_suite_log"
1135 # Don't take risks: use only absolute directories in PATH.
1137 # For stand-alone test suites (ie. atconfig was not found),
1138 # AUTOTEST_PATH is relative to `.'.
1140 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1141 # of the package. Then expand it into build/src parts, since users
1142 # may create executables in both places.
1143 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146 for as_dir in $AUTOTEST_PATH $PATH
1149 test -z "$as_dir" && as_dir=.
1150 test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
1153 at_path=$at_path$as_dir
1156 if test -z "$at_top_build_prefix"; then
1157 # Stand-alone test suite.
1158 at_path=$at_path$as_dir
1160 # Embedded test suite.
1161 at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
1162 at_path=$at_path$at_top_srcdir/$as_dir
1170 # Now build and simplify PATH.
1172 # There might be directories that don't exist, but don't redirect
1173 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 for as_dir in $at_path
1179 test -z "$as_dir" && as_dir=.
1180 test -d "$as_dir" || continue
1182 [\\/]* | ?:[\\/]* ) ;;
1183 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1185 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1186 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1187 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1188 *) at_new_path=$at_new_path$PATH_SEPARATOR$as_dir ;;
1196 # Setting up the FDs.
1197 # 5 is the log file. Not to be overwritten if `-d'.
1198 if $at_debug_p; then
1199 at_suite_log=/dev/null
1203 exec 5>>"$at_suite_log"
1207 ## ------------------------ ##
1208 ## GNU tar 1.25 test suite. ##
1209 ## ------------------------ ##
1213 ## ------------------------ ##
1214 ## GNU tar 1.25 test suite. ##
1215 ## ------------------------ ##
1219 $as_echo "$as_me: command line was:"
1220 $as_echo " \$ $0 $at_cli_args"
1223 # Try to find a few ChangeLogs in case it might help determining the
1224 # exact version. Use the relative dir: if the top dir is a symlink,
1225 # find will not follow it (and options to follow the links are not
1226 # portable), which would result in no output here. Prune directories
1227 # matching the package tarname, since they tend to be leftovers from
1228 # `make dist' or `make distcheck' and contain redundant or stale logs.
1229 if test -n "$at_top_srcdir"; then
1236 for at_file in `find "$at_top_srcdir" -name "tar-*" -prune -o -name ChangeLog -print`
1238 $as_echo "$as_me: $at_file:"
1239 sed 's/^/| /;10q' $at_file
1251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1263 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 test -z "$as_dir" && as_dir=.
1275 $as_echo "PATH: $as_dir"
1282 # Contents of the config files.
1283 for at_file in atconfig atlocal
1285 test -r $at_file || continue
1286 $as_echo "$as_me: $at_file:"
1287 sed 's/^/| /' $at_file
1293 ## --------------- ##
1294 ## Shell functions ##
1295 ## --------------- ##
1297 # at_func_banner NUMBER
1298 # ---------------------
1299 # Output banner NUMBER, provided the testsuite is running multiple groups
1300 # and this particular banner has not yet been printed.
1303 $at_print_banners || return 0
1304 eval at_banner_text=\$at_banner_text_$1
1305 test "x$at_banner_text" = x && return 0
1306 eval at_banner_text_$1=
1307 $as_echo "$as_nl$at_banner_text$as_nl"
1310 # at_func_check_newline COMMAND
1311 # -----------------------------
1312 # Test if COMMAND includes a newline and, if so, print a message and return
1314 at_func_check_newline ()
1318 '*) echo 'Not enabling shell tracing (command contains an embedded newline)'
1324 # at_func_filter_trace EXIT-CODE
1325 # ------------------------------
1326 # Split the contents of file "$at_stder1" into the "set -x" trace (on stderr)
1327 # and the other lines (on file "$at_stderr"). Return the exit code EXIT-CODE.
1328 at_func_filter_trace ()
1330 grep '^ *+' "$at_stder1" >&2
1331 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1335 # at_func_log_failure FILE-LIST
1336 # -----------------------------
1337 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1338 # with a failure exit code.
1339 at_func_log_failure ()
1342 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1343 echo 1 > "$at_status_file"
1347 # at_func_check_skip EXIT-CODE
1348 # ----------------------------
1349 # Check whether EXIT-CODE is the special exit code 77, and if so exit the shell
1350 # with that same exit code.
1351 at_func_check_skip ()
1354 77) echo 77 > "$at_status_file"; exit 77;;
1358 # at_func_check_status EXPECTED EXIT-CODE LINE
1359 # --------------------------------------------
1360 # Check whether EXIT-CODE is the expected exit code, and if so do nothing.
1361 # Otherwise, if it is 77 exit the shell with that same exit code; if it is
1362 # anything else print an error message and fail the test.
1363 at_func_check_status ()
1367 77) echo 77 > "$at_status_file"; exit 77;;
1368 *) $as_echo "$3: exit code was $2, expected $1"
1373 # at_func_diff_devnull FILE
1374 # -------------------------
1375 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless
1377 at_func_diff_devnull ()
1379 test -s "$1" || return 0
1380 $at_diff "$at_devnull" "$1"
1383 # at_func_test NUMBER
1384 # -------------------
1385 # Parse out test NUMBER from the tail of this file.
1388 eval at_sed=\$at_sed$1
1389 sed "$at_sed" "$at_myself" > "$at_test_source"
1392 # at_func_create_debugging_script
1393 # -------------------------------
1394 # Create the debugging script $at_group_dir/run which will reproduce the
1395 # current test group.
1396 at_func_create_debugging_script ()
1399 echo "#! /bin/sh" &&
1400 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1401 $as_echo "cd '$at_dir'" &&
1402 $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1404 } >"$at_group_dir/run" &&
1405 chmod +x "$at_group_dir/run"
1410 # Arithmetic evaluation, avoids expr if the shell is sane. The
1411 # interpretation of leading zeroes is unspecified.
1413 # subshell and eval are needed to keep Solaris sh from bailing out:
1414 if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then
1415 # With "$@", bash does not split positional parameters:
1416 eval 'at_func_arith ()
1418 at_func_arith_result=$(( $* ))
1423 at_func_arith_result=`expr "$@"`
1427 ## ---------------------- ##
1428 ## End of shell functions ##
1429 ## ---------------------- ##
1432 ## ---------------- ##
1433 ## Tested programs. ##
1434 ## ---------------- ##
1439 # Report what programs are being tested.
1440 for at_program in : $at_tested
1442 test "$at_program" = : && continue
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 test -z "$as_dir" && as_dir=.
1448 test -f "$as_dir/$at_program" && break
1452 if test -f "$as_dir/$at_program"; then
1454 $as_echo "$at_srcdir/testsuite.at:104: $as_dir/$at_program --version"
1455 "$as_dir/$at_program" --version </dev/null
1459 { { $as_echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1460 $as_echo "$as_me: error: cannot find $at_program" >&2;}
1461 { (exit 1); exit 1; }; }
1467 ## ------------------ ##
1468 ## Running the tests. ##
1469 ## ------------------ ##
1473 at_start_date=`date`
1474 at_start_time=`date +%s 2>/dev/null`
1475 $as_echo "$as_me: starting at: $at_start_date" >&5
1477 # Create the master directory if it doesn't already exist.
1478 test -d "$at_suite_dir" ||
1479 mkdir "$at_suite_dir" ||
1480 { { $as_echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1481 $as_echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1482 { (exit 1); exit 1; }; }
1484 # Can we diff with `/dev/null'? DU 5.0 refuses.
1485 if diff /dev/null /dev/null >/dev/null 2>&1; then
1486 at_devnull=/dev/null
1488 at_devnull=$at_suite_dir/devnull
1492 # Use `diff -u' when possible.
1493 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1500 # Get the last needed group.
1501 for at_group in : $at_groups; do :; done
1503 # Extract the start and end lines of each test group at the tail
1511 test = substr ($ 0, 10)
1512 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1513 if (test == "'"$at_group"'") exit
1514 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1515 . "$at_suite_dir/at-source-lines" ||
1516 { { $as_echo "$as_me:$LINENO: error: cannot create test line number cache" >&5
1517 $as_echo "$as_me: error: cannot create test line number cache" >&2;}
1518 { (exit 1); exit 1; }; }
1519 rm -f "$at_suite_dir/at-source-lines"
1521 # Set up helper dirs.
1522 rm -rf "$at_helper_dir" &&
1523 mkdir "$at_helper_dir" &&
1524 cd "$at_helper_dir" &&
1525 { test -z "$at_groups" || mkdir $at_groups; } ||
1526 { { $as_echo "$as_me:$LINENO: error: testsuite directory setup failed" >&5
1527 $as_echo "$as_me: error: testsuite directory setup failed" >&2;}
1528 { (exit 1); exit 1; }; }
1530 # Functions for running a test group. We leave the actual
1531 # test group execution outside of a shell function in order
1532 # to avoid hitting zsh 4.x exit status bugs.
1534 # at_func_group_prepare
1535 # ---------------------
1536 # Prepare running a test group
1537 at_func_group_prepare ()
1539 # The directory for additional per-group helper files.
1540 at_job_dir=$at_helper_dir/$at_group
1541 # The file containing the location of the last AT_CHECK.
1542 at_check_line_file=$at_job_dir/check-line
1543 # The file containing the exit status of the last command.
1544 at_status_file=$at_job_dir/status
1545 # The files containing the output of the tested commands.
1546 at_stdout=$at_job_dir/stdout
1547 at_stder1=$at_job_dir/stder1
1548 at_stderr=$at_job_dir/stderr
1549 # The file containing the code for a test group.
1550 at_test_source=$at_job_dir/test-source
1551 # The file containing dates.
1552 at_times_file=$at_job_dir/times
1554 # Be sure to come back to the top test directory.
1557 # Clearly separate the test groups when verbose.
1558 $at_first || $at_verbose echo
1560 at_group_normalized=$at_group
1563 case $at_group_normalized in #(
1564 '"$at_format"'*) break;;
1566 at_group_normalized=0$at_group_normalized
1570 # Create a fresh directory for the next test group, and enter.
1571 at_group_dir=$at_suite_dir/$at_group_normalized
1572 at_group_log=$at_group_dir/$as_me.log
1573 if test -d "$at_group_dir"; then
1574 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1575 rm -fr "$at_group_dir" ||
1576 { $as_echo "$as_me:$LINENO: WARNING: test directory for $at_group_normalized could not be cleaned." >&5
1577 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned." >&2;}
1579 # Be tolerant if the above `rm' was not able to remove the directory.
1580 { as_dir="$at_group_dir"
1582 -*) as_dir=./$as_dir;;
1584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1589 *) as_qdir=$as_dir;;
1591 as_dirs="'$as_qdir' $as_dirs"
1592 as_dir=`$as_dirname -- "$as_dir" ||
1593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_dir" : 'X\(//\)[^/]' \| \
1595 X"$as_dir" : 'X\(//\)$' \| \
1596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_dir" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1615 test -d "$as_dir" && break
1617 test -z "$as_dirs" || eval "mkdir $as_dirs"
1618 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1620 { (exit 1); exit 1; }; }; }
1622 echo 0 > "$at_status_file"
1624 # In verbose mode, append to the log file *and* show on
1625 # the standard output; in quiet mode only write to the log.
1626 if test -z "$at_verbose"; then
1627 at_tee_pipe='tee -a "$at_group_log"'
1629 at_tee_pipe='cat >> "$at_group_log"'
1633 # at_func_group_postprocess
1634 # -------------------------
1635 at_func_group_postprocess ()
1637 # Be sure to come back to the suite directory, in particular
1638 # since below we might `rm' the group directory we are in currently.
1641 if test ! -f "$at_check_line_file"; then
1642 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1643 A failure happened in a test group before any test could be
1644 run. This means that test suite is improperly designed. Please
1645 report this failure to <bug-tar@gnu.org>.
1647 $as_echo "$at_setup_line" >"$at_check_line_file"
1649 $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1650 $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1651 case $at_xfail:$at_status in
1653 at_msg="UNEXPECTED PASS"
1655 at_errexit=$at_errexit_p
1663 at_msg='skipped ('`cat "$at_check_line_file"`')'
1668 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1673 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1675 at_errexit=$at_errexit_p
1678 echo "$at_res" > "$at_job_dir/$at_res"
1679 # Make sure there is a separator even with long titles.
1681 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1684 # $at_times_file is only available if the group succeeded.
1685 # We're not including the group log, so the success message
1686 # is written in the global log separately. But we also
1687 # write to the group log in case they're using -d.
1688 if test -f "$at_times_file"; then
1689 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1690 rm -f "$at_times_file"
1692 $as_echo "$at_log_msg" >> "$at_group_log"
1693 $as_echo "$at_log_msg" >&5
1695 # Cleanup the group directory, unless the user wants the files.
1696 if $at_debug_p; then
1697 at_func_create_debugging_script
1699 if test -d "$at_group_dir"; then
1700 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1701 rm -fr "$at_group_dir"
1703 rm -f "$at_test_source"
1707 # Upon failure, include the log into the testsuite's global
1708 # log. The failure message is written in the group log. It
1709 # is later included in the global log.
1710 $as_echo "$at_log_msg" >> "$at_group_log"
1712 # Upon failure, keep the group directory for autopsy, and create
1713 # the debugging script. With -e, do not start any further tests.
1714 at_func_create_debugging_script
1715 if $at_errexit; then
1716 echo stop > "$at_stop_file"
1727 rm -f "$at_stop_file"
1730 for at_group in $at_groups; do
1731 at_func_group_prepare
1732 if cd "$at_group_dir" &&
1733 at_func_test $at_group &&
1734 . "$at_test_source"; then :; else
1735 { $as_echo "$as_me:$LINENO: WARNING: unable to parse test group: $at_group" >&5
1736 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1739 at_func_group_postprocess
1740 test -f "$at_stop_file" && break
1744 # Wrap up the test suite with summary statistics.
1747 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1748 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1749 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1750 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1751 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1752 echo $f; done | sed '/?/d; s,/xpass,,'`
1753 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1754 echo $f; done | sed '/?/d; s,/fail,,'`
1756 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1757 shift; at_group_count=$#
1758 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1759 set X $at_xfail_list; shift; at_xfail_count=$#
1760 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1761 set X $at_skip_list; shift; at_skip_count=$#
1763 at_func_arith $at_group_count - $at_skip_count
1764 at_run_count=$at_func_arith_result
1765 at_func_arith $at_xpass_count + $at_fail_count
1766 at_unexpected_count=$at_func_arith_result
1767 at_func_arith $at_xfail_count + $at_fail_count
1768 at_total_fail_count=$at_func_arith_result
1770 # Back to the top directory.
1772 rm -rf "$at_helper_dir"
1774 # Compute the duration of the suite.
1776 at_stop_time=`date +%s 2>/dev/null`
1777 $as_echo "$as_me: ending at: $at_stop_date" >&5
1778 case $at_start_time,$at_stop_time in
1780 at_func_arith $at_stop_time - $at_start_time
1781 at_duration_s=$at_func_arith_result
1782 at_func_arith $at_duration_s / 60
1783 at_duration_m=$at_func_arith_result
1784 at_func_arith $at_duration_m / 60
1785 at_duration_h=$at_func_arith_result
1786 at_func_arith $at_duration_s % 60
1787 at_duration_s=$at_func_arith_result
1788 at_func_arith $at_duration_m % 60
1789 at_duration_m=$at_func_arith_result
1790 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1791 $as_echo "$as_me: test suite duration: $at_duration" >&5
1812 if test $at_run_count = 1; then
1816 at_result="$at_run_count tests"
1819 if $at_errexit_p && test $at_unexpected_count != 0; then
1820 if test $at_xpass_count = 1; then
1821 at_result="$at_result $at_were run, one passed"
1823 at_result="$at_result $at_were run, one failed"
1825 at_result="$at_result unexpectedly and inhibited subsequent tests."
1827 # Don't you just love exponential explosion of the number of cases?
1828 case $at_xpass_count:$at_fail_count:$at_xfail_count in
1830 0:0:0) at_result="$at_result $at_were successful." ;;
1831 0:0:*) at_result="$at_result behaved as expected." ;;
1833 # Some unexpected failures
1834 0:*:0) at_result="$at_result $at_were run,
1835 $at_fail_count failed unexpectedly." ;;
1837 # Some failures, both expected and unexpected
1838 0:*:1) at_result="$at_result $at_were run,
1839 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1840 0:*:*) at_result="$at_result $at_were run,
1841 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1843 # No unexpected failures, but some xpasses
1844 *:0:*) at_result="$at_result $at_were run,
1845 $at_xpass_count passed unexpectedly." ;;
1847 # No expected failures, but failures and xpasses
1848 *:1:0) at_result="$at_result $at_were run,
1849 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1850 *:*:0) at_result="$at_result $at_were run,
1851 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1854 *:*:1) at_result="$at_result $at_were run,
1855 $at_xpass_count passed unexpectedly,
1856 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1857 *:*:*) at_result="$at_result $at_were run,
1858 $at_xpass_count passed unexpectedly,
1859 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1862 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1863 at_result="All $at_result"
1867 # Now put skips in the mix.
1868 case $at_skip_count in
1870 1) at_result="$at_result
1871 1 test was skipped." ;;
1872 *) at_result="$at_result
1873 $at_skip_count tests were skipped." ;;
1876 if test $at_unexpected_count = 0; then
1878 echo "$at_result" >&5
1880 echo "ERROR: $at_result" >&2
1881 echo "ERROR: $at_result" >&5
1885 ## ------------------------ ##
1886 ## Summary of the failures. ##
1887 ## ------------------------ ##
1890 # Summary of failed and skipped tests.
1891 if test $at_fail_count != 0; then
1892 echo "Failed tests:"
1893 $SHELL "$at_myself" $at_fail_list --list
1896 if test $at_skip_count != 0; then
1897 echo "Skipped tests:"
1898 $SHELL "$at_myself" $at_skip_list --list
1901 if test $at_xpass_count != 0; then
1902 echo "Unexpected passes:"
1903 $SHELL "$at_myself" $at_xpass_list --list
1906 if test $at_fail_count != 0; then
1908 ## ---------------------- ##
1909 ## Detailed failed tests. ##
1910 ## ---------------------- ##
1913 for at_group in $at_fail_list
1915 at_group_normalized=$at_group
1918 case $at_group_normalized in #(
1919 '"$at_format"'*) break;;
1921 at_group_normalized=0$at_group_normalized
1924 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1929 if test -n "$at_top_srcdir"; then
1930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1931 ## ${at_top_build_prefix}config.log ##
1933 sed 's/^/| /' ${at_top_build_prefix}config.log
1938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1939 ## $as_me.log was created. ##
1943 $as_echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:
1945 To: <bug-tar@gnu.org>
1946 Subject: [GNU tar 1.25] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1948 if test $at_debug_p = false; then
1950 echo 'You may investigate any problem if you feel able to do so, in which'
1951 echo 'case the test suite provides a good starting point. Its output may'
1952 $as_echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."
1964 # 1. version.at:19: tar version
1965 at_setup_line='version.at:19'
1966 at_desc="tar version"
1967 $at_quiet $as_echo_n " 1: $at_desc "
1969 echo "# -*- compilation -*-" >> "$at_group_log"
1971 $as_echo "1. version.at:19: testing ..."
1976 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1977 echo version.at:21 >"$at_check_line_file"
1979 if test -n "$at_traceon"; then
1980 ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1981 at_func_filter_trace $?
1983 ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1987 at_func_diff_devnull "$at_stderr" || at_failed=:
1988 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.25
1990 $at_diff - "$at_stdout" || at_failed=:
1991 at_func_check_status 0 $at_status "$at_srcdir/version.at:21"
1993 cat >$XFAILFILE <<'_EOT'
1995 ==============================================================
1996 WARNING: Not using the proper version, *all* checks dubious...
1997 ==============================================================
2004 $at_failed && at_func_log_failure
2009 $at_times_p && times >"$at_times_file"
2010 ) 5>&1 2>&1 | eval $at_tee_pipe
2011 at_status=`cat "$at_status_file"`
2014 # 2. pipe.at:30: decompressing from stdin
2015 at_setup_line='pipe.at:30'
2016 at_desc="decompressing from stdin"
2017 $at_quiet $as_echo_n " 2: $at_desc "
2019 test -f $XFAILFILE && at_xfail=yes
2020 echo "# -*- compilation -*-" >> "$at_group_log"
2022 $as_echo "2. pipe.at:30: testing ..."
2031 $as_echo "$at_srcdir/pipe.at:34:
2035 export TEST_TAR_FORMAT
2036 TAR_OPTIONS=\"-H v7\"
2041 test -z "`sort < /dev/null 2>&1`" || exit 77
2045 genfile --length 10240 --pattern zeros --file directory/file1
2046 genfile --length 13 --file directory/file2
2047 tar cf archive directory
2049 cat archive | tar xfv - --warning=no-timestamp | sort
2051 cmp orig/file1 directory/file1
2053 cmp orig/file2 directory/file2)"
2054 echo pipe.at:34 >"$at_check_line_file"
2056 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2062 export TEST_TAR_FORMAT
2068 test -z "`sort < /dev/null 2>&1`" || exit 77
2072 genfile --length 10240 --pattern zeros --file directory/file1
2073 genfile --length 13 --file directory/file2
2074 tar cf archive directory
2076 cat archive | tar xfv - --warning=no-timestamp | sort
2078 cmp orig/file1 directory/file1
2080 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2081 at_func_filter_trace $?
2087 export TEST_TAR_FORMAT
2093 test -z "`sort < /dev/null 2>&1`" || exit 77
2097 genfile --length 10240 --pattern zeros --file directory/file1
2098 genfile --length 13 --file directory/file2
2099 tar cf archive directory
2101 cat archive | tar xfv - --warning=no-timestamp | sort
2103 cmp orig/file1 directory/file1
2105 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2109 at_func_diff_devnull "$at_stderr" || at_failed=:
2110 echo >>"$at_stdout"; $as_echo "directory/
2116 $at_diff - "$at_stdout" || at_failed=:
2117 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2119 $at_failed && at_func_log_failure
2123 $as_echo "$at_srcdir/pipe.at:34:
2126 TEST_TAR_FORMAT=oldgnu
2127 export TEST_TAR_FORMAT
2128 TAR_OPTIONS=\"-H oldgnu\"
2133 test -z "`sort < /dev/null 2>&1`" || exit 77
2137 genfile --length 10240 --pattern zeros --file directory/file1
2138 genfile --length 13 --file directory/file2
2139 tar cf archive directory
2141 cat archive | tar xfv - --warning=no-timestamp | sort
2143 cmp orig/file1 directory/file1
2145 cmp orig/file2 directory/file2)"
2146 echo pipe.at:34 >"$at_check_line_file"
2148 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2153 TEST_TAR_FORMAT=oldgnu
2154 export TEST_TAR_FORMAT
2155 TAR_OPTIONS="-H oldgnu"
2160 test -z "`sort < /dev/null 2>&1`" || exit 77
2164 genfile --length 10240 --pattern zeros --file directory/file1
2165 genfile --length 13 --file directory/file2
2166 tar cf archive directory
2168 cat archive | tar xfv - --warning=no-timestamp | sort
2170 cmp orig/file1 directory/file1
2172 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2173 at_func_filter_trace $?
2178 TEST_TAR_FORMAT=oldgnu
2179 export TEST_TAR_FORMAT
2180 TAR_OPTIONS="-H oldgnu"
2185 test -z "`sort < /dev/null 2>&1`" || exit 77
2189 genfile --length 10240 --pattern zeros --file directory/file1
2190 genfile --length 13 --file directory/file2
2191 tar cf archive directory
2193 cat archive | tar xfv - --warning=no-timestamp | sort
2195 cmp orig/file1 directory/file1
2197 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2201 at_func_diff_devnull "$at_stderr" || at_failed=:
2202 echo >>"$at_stdout"; $as_echo "directory/
2208 $at_diff - "$at_stdout" || at_failed=:
2209 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2211 $at_failed && at_func_log_failure
2215 $as_echo "$at_srcdir/pipe.at:34:
2218 TEST_TAR_FORMAT=ustar
2219 export TEST_TAR_FORMAT
2220 TAR_OPTIONS=\"-H ustar\"
2225 test -z "`sort < /dev/null 2>&1`" || exit 77
2229 genfile --length 10240 --pattern zeros --file directory/file1
2230 genfile --length 13 --file directory/file2
2231 tar cf archive directory
2233 cat archive | tar xfv - --warning=no-timestamp | sort
2235 cmp orig/file1 directory/file1
2237 cmp orig/file2 directory/file2)"
2238 echo pipe.at:34 >"$at_check_line_file"
2240 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2245 TEST_TAR_FORMAT=ustar
2246 export TEST_TAR_FORMAT
2247 TAR_OPTIONS="-H ustar"
2252 test -z "`sort < /dev/null 2>&1`" || exit 77
2256 genfile --length 10240 --pattern zeros --file directory/file1
2257 genfile --length 13 --file directory/file2
2258 tar cf archive directory
2260 cat archive | tar xfv - --warning=no-timestamp | sort
2262 cmp orig/file1 directory/file1
2264 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2265 at_func_filter_trace $?
2270 TEST_TAR_FORMAT=ustar
2271 export TEST_TAR_FORMAT
2272 TAR_OPTIONS="-H ustar"
2277 test -z "`sort < /dev/null 2>&1`" || exit 77
2281 genfile --length 10240 --pattern zeros --file directory/file1
2282 genfile --length 13 --file directory/file2
2283 tar cf archive directory
2285 cat archive | tar xfv - --warning=no-timestamp | sort
2287 cmp orig/file1 directory/file1
2289 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2293 at_func_diff_devnull "$at_stderr" || at_failed=:
2294 echo >>"$at_stdout"; $as_echo "directory/
2300 $at_diff - "$at_stdout" || at_failed=:
2301 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2303 $at_failed && at_func_log_failure
2307 $as_echo "$at_srcdir/pipe.at:34:
2310 TEST_TAR_FORMAT=posix
2311 export TEST_TAR_FORMAT
2312 TAR_OPTIONS=\"-H posix\"
2317 test -z "`sort < /dev/null 2>&1`" || exit 77
2321 genfile --length 10240 --pattern zeros --file directory/file1
2322 genfile --length 13 --file directory/file2
2323 tar cf archive directory
2325 cat archive | tar xfv - --warning=no-timestamp | sort
2327 cmp orig/file1 directory/file1
2329 cmp orig/file2 directory/file2)"
2330 echo pipe.at:34 >"$at_check_line_file"
2332 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2337 TEST_TAR_FORMAT=posix
2338 export TEST_TAR_FORMAT
2339 TAR_OPTIONS="-H posix"
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) ) >"$at_stdout" 2>"$at_stder1"
2357 at_func_filter_trace $?
2362 TEST_TAR_FORMAT=posix
2363 export TEST_TAR_FORMAT
2364 TAR_OPTIONS="-H posix"
2369 test -z "`sort < /dev/null 2>&1`" || exit 77
2373 genfile --length 10240 --pattern zeros --file directory/file1
2374 genfile --length 13 --file directory/file2
2375 tar cf archive directory
2377 cat archive | tar xfv - --warning=no-timestamp | sort
2379 cmp orig/file1 directory/file1
2381 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2385 at_func_diff_devnull "$at_stderr" || at_failed=:
2386 echo >>"$at_stdout"; $as_echo "directory/
2392 $at_diff - "$at_stdout" || at_failed=:
2393 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2395 $at_failed && at_func_log_failure
2399 $as_echo "$at_srcdir/pipe.at:34:
2403 export TEST_TAR_FORMAT
2404 TAR_OPTIONS=\"-H gnu\"
2409 test -z "`sort < /dev/null 2>&1`" || exit 77
2413 genfile --length 10240 --pattern zeros --file directory/file1
2414 genfile --length 13 --file directory/file2
2415 tar cf archive directory
2417 cat archive | tar xfv - --warning=no-timestamp | sort
2419 cmp orig/file1 directory/file1
2421 cmp orig/file2 directory/file2)"
2422 echo pipe.at:34 >"$at_check_line_file"
2424 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2430 export TEST_TAR_FORMAT
2431 TAR_OPTIONS="-H gnu"
2436 test -z "`sort < /dev/null 2>&1`" || exit 77
2440 genfile --length 10240 --pattern zeros --file directory/file1
2441 genfile --length 13 --file directory/file2
2442 tar cf archive directory
2444 cat archive | tar xfv - --warning=no-timestamp | sort
2446 cmp orig/file1 directory/file1
2448 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2449 at_func_filter_trace $?
2455 export TEST_TAR_FORMAT
2456 TAR_OPTIONS="-H gnu"
2461 test -z "`sort < /dev/null 2>&1`" || exit 77
2465 genfile --length 10240 --pattern zeros --file directory/file1
2466 genfile --length 13 --file directory/file2
2467 tar cf archive directory
2469 cat archive | tar xfv - --warning=no-timestamp | sort
2471 cmp orig/file1 directory/file1
2473 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2477 at_func_diff_devnull "$at_stderr" || at_failed=:
2478 echo >>"$at_stdout"; $as_echo "directory/
2484 $at_diff - "$at_stdout" || at_failed=:
2485 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2487 $at_failed && at_func_log_failure
2494 $at_times_p && times >"$at_times_file"
2495 ) 5>&1 2>&1 | eval $at_tee_pipe
2496 at_status=`cat "$at_status_file"`
2499 # 3. options.at:24: mixing options
2500 at_setup_line='options.at:24'
2501 at_desc="mixing options"
2502 $at_quiet $as_echo_n " 3: $at_desc "
2504 echo "# -*- compilation -*-" >> "$at_group_log"
2506 $as_echo "3. options.at:24: testing ..."
2512 $as_echo "$at_srcdir/options.at:27:
2514 TAR_OPTIONS=--numeric-owner tar chof archive file1
2517 echo options.at:27 >"$at_check_line_file"
2519 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2523 TAR_OPTIONS=--numeric-owner tar chof archive file1
2525 ) >"$at_stdout" 2>"$at_stder1"
2526 at_func_filter_trace $?
2530 TAR_OPTIONS=--numeric-owner tar chof archive file1
2532 ) >"$at_stdout" 2>"$at_stderr"
2536 at_func_diff_devnull "$at_stderr" || at_failed=:
2537 echo >>"$at_stdout"; $as_echo "file1
2539 $at_diff - "$at_stdout" || at_failed=:
2540 at_func_check_status 0 $at_status "$at_srcdir/options.at:27"
2542 $at_failed && at_func_log_failure
2547 $at_times_p && times >"$at_times_file"
2548 ) 5>&1 2>&1 | eval $at_tee_pipe
2549 at_status=`cat "$at_status_file"`
2552 # 4. options02.at:26: interspersed options
2553 at_setup_line='options02.at:26'
2554 at_desc="interspersed options"
2555 $at_quiet $as_echo_n " 4: $at_desc "
2557 echo "# -*- compilation -*-" >> "$at_group_log"
2559 $as_echo "4. options02.at:26: testing ..."
2565 $as_echo "$at_srcdir/options02.at:29:
2567 tar c file1 -f archive
2570 echo options02.at:29 >"$at_check_line_file"
2572 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2576 tar c file1 -f archive
2578 ) >"$at_stdout" 2>"$at_stder1"
2579 at_func_filter_trace $?
2583 tar c file1 -f archive
2585 ) >"$at_stdout" 2>"$at_stderr"
2589 at_func_diff_devnull "$at_stderr" || at_failed=:
2590 echo >>"$at_stdout"; $as_echo "file1
2592 $at_diff - "$at_stdout" || at_failed=:
2593 at_func_check_status 0 $at_status "$at_srcdir/options02.at:29"
2595 $at_failed && at_func_log_failure
2600 $at_times_p && times >"$at_times_file"
2601 ) 5>&1 2>&1 | eval $at_tee_pipe
2602 at_status=`cat "$at_status_file"`
2605 # 5. T-empty.at:26: files-from: empty entries
2606 at_setup_line='T-empty.at:26'
2607 at_desc="files-from: empty entries"
2608 $at_quiet $as_echo_n " 5: $at_desc "
2610 test -f $XFAILFILE && at_xfail=yes
2611 echo "# -*- compilation -*-" >> "$at_group_log"
2613 $as_echo "5. T-empty.at:26: testing ..."
2618 cat >file-list <<'_ATEOF'
2629 $as_echo "$at_srcdir/T-empty.at:36:
2632 TEST_TAR_FORMAT=ustar
2633 export TEST_TAR_FORMAT
2634 TAR_OPTIONS=\"-H ustar\"
2639 test -z "`sort < /dev/null 2>&1`" || exit 77
2642 genfile --file jeden
2646 tar cfvT archive ../file-list | sort
2648 echo T-empty.at:36 >"$at_check_line_file"
2650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2655 TEST_TAR_FORMAT=ustar
2656 export TEST_TAR_FORMAT
2657 TAR_OPTIONS="-H ustar"
2662 test -z "`sort < /dev/null 2>&1`" || exit 77
2665 genfile --file jeden
2669 tar cfvT archive ../file-list | sort
2670 ) ) >"$at_stdout" 2>"$at_stder1"
2671 at_func_filter_trace $?
2676 TEST_TAR_FORMAT=ustar
2677 export TEST_TAR_FORMAT
2678 TAR_OPTIONS="-H ustar"
2683 test -z "`sort < /dev/null 2>&1`" || exit 77
2686 genfile --file jeden
2690 tar cfvT archive ../file-list | sort
2691 ) ) >"$at_stdout" 2>"$at_stderr"
2695 at_func_diff_devnull "$at_stderr" || at_failed=:
2696 echo >>"$at_stdout"; $as_echo "dwa
2700 $at_diff - "$at_stdout" || at_failed=:
2701 at_func_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
2703 $at_failed && at_func_log_failure
2707 # Testing one format is enough
2710 $at_times_p && times >"$at_times_file"
2711 ) 5>&1 2>&1 | eval $at_tee_pipe
2712 at_status=`cat "$at_status_file"`
2715 # 6. T-null.at:21: files-from: 0-separated file without -0
2716 at_setup_line='T-null.at:21'
2717 at_desc="files-from: 0-separated file without -0"
2718 $at_quiet $as_echo_n " 6: $at_desc "
2720 test -f $XFAILFILE && at_xfail=yes
2721 echo "# -*- compilation -*-" >> "$at_group_log"
2723 $as_echo "6. T-null.at:21: testing ..."
2728 cat >expout <<'_ATEOF'
2737 $as_echo "$at_srcdir/T-null.at:28:
2740 TEST_TAR_FORMAT=ustar
2741 export TEST_TAR_FORMAT
2742 TAR_OPTIONS=\"-H ustar\"
2747 test -z "`sort < /dev/null 2>&1`" || exit 77
2752 cat temp | tr '\\n' '\\0' > temp1
2753 echo jeden > file-list
2754 cat temp1 >> file-list
2760 tar cfTv archive file-list | sort
2762 echo T-null.at:28 >"$at_check_line_file"
2764 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2769 TEST_TAR_FORMAT=ustar
2770 export TEST_TAR_FORMAT
2771 TAR_OPTIONS="-H ustar"
2776 test -z "`sort < /dev/null 2>&1`" || exit 77
2781 cat temp | tr '\n' '\0' > temp1
2782 echo jeden > file-list
2783 cat temp1 >> file-list
2789 tar cfTv archive file-list | sort
2790 ) ) >"$at_stdout" 2>"$at_stder1"
2791 at_func_filter_trace $?
2796 TEST_TAR_FORMAT=ustar
2797 export TEST_TAR_FORMAT
2798 TAR_OPTIONS="-H ustar"
2803 test -z "`sort < /dev/null 2>&1`" || exit 77
2808 cat temp | tr '\n' '\0' > temp1
2809 echo jeden > file-list
2810 cat temp1 >> file-list
2816 tar cfTv archive file-list | sort
2817 ) ) >"$at_stdout" 2>"$at_stderr"
2821 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
2823 $at_diff - "$at_stderr" || at_failed=:
2824 $at_diff expout "$at_stdout" || at_failed=:
2825 at_func_check_status 0 $at_status "$at_srcdir/T-null.at:28"
2827 $at_failed && at_func_log_failure
2831 # Testing one format is enough
2834 $at_times_p && times >"$at_times_file"
2835 ) 5>&1 2>&1 | eval $at_tee_pipe
2836 at_status=`cat "$at_status_file"`
2839 # 7. indexfile.at:26: tar --index-file=FILE --file=-
2840 at_setup_line='indexfile.at:26'
2841 at_desc="tar --index-file=FILE --file=-"
2842 $at_quiet $as_echo_n " 7: $at_desc "
2844 test -f $XFAILFILE && at_xfail=yes
2845 echo "# -*- compilation -*-" >> "$at_group_log"
2847 $as_echo "7. indexfile.at:26: testing ..."
2855 $as_echo "$at_srcdir/indexfile.at:29:
2859 export TEST_TAR_FORMAT
2860 TAR_OPTIONS=\"-H v7\"
2866 genfile --file=directory/a --length=1035
2868 echo \"Creating the archive\"
2869 tar -c -v -f - --index-file=idx directory > archive
2871 echo \"Testing the archive\"
2874 echo indexfile.at:29 >"$at_check_line_file"
2876 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2882 export TEST_TAR_FORMAT
2889 genfile --file=directory/a --length=1035
2891 echo "Creating the archive"
2892 tar -c -v -f - --index-file=idx directory > archive
2894 echo "Testing the archive"
2896 ) ) >"$at_stdout" 2>"$at_stder1"
2897 at_func_filter_trace $?
2903 export TEST_TAR_FORMAT
2910 genfile --file=directory/a --length=1035
2912 echo "Creating the archive"
2913 tar -c -v -f - --index-file=idx directory > archive
2915 echo "Testing the archive"
2917 ) ) >"$at_stdout" 2>"$at_stderr"
2921 at_func_diff_devnull "$at_stderr" || at_failed=:
2922 echo >>"$at_stdout"; $as_echo "Creating the archive
2927 $at_diff - "$at_stdout" || at_failed=:
2928 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2930 $at_failed && at_func_log_failure
2934 $as_echo "$at_srcdir/indexfile.at:29:
2937 TEST_TAR_FORMAT=oldgnu
2938 export TEST_TAR_FORMAT
2939 TAR_OPTIONS=\"-H oldgnu\"
2945 genfile --file=directory/a --length=1035
2947 echo \"Creating the archive\"
2948 tar -c -v -f - --index-file=idx directory > archive
2950 echo \"Testing the archive\"
2953 echo indexfile.at:29 >"$at_check_line_file"
2955 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2960 TEST_TAR_FORMAT=oldgnu
2961 export TEST_TAR_FORMAT
2962 TAR_OPTIONS="-H oldgnu"
2968 genfile --file=directory/a --length=1035
2970 echo "Creating the archive"
2971 tar -c -v -f - --index-file=idx directory > archive
2973 echo "Testing the archive"
2975 ) ) >"$at_stdout" 2>"$at_stder1"
2976 at_func_filter_trace $?
2981 TEST_TAR_FORMAT=oldgnu
2982 export TEST_TAR_FORMAT
2983 TAR_OPTIONS="-H oldgnu"
2989 genfile --file=directory/a --length=1035
2991 echo "Creating the archive"
2992 tar -c -v -f - --index-file=idx directory > archive
2994 echo "Testing the archive"
2996 ) ) >"$at_stdout" 2>"$at_stderr"
3000 at_func_diff_devnull "$at_stderr" || at_failed=:
3001 echo >>"$at_stdout"; $as_echo "Creating the archive
3006 $at_diff - "$at_stdout" || at_failed=:
3007 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3009 $at_failed && at_func_log_failure
3013 $as_echo "$at_srcdir/indexfile.at:29:
3016 TEST_TAR_FORMAT=ustar
3017 export TEST_TAR_FORMAT
3018 TAR_OPTIONS=\"-H ustar\"
3024 genfile --file=directory/a --length=1035
3026 echo \"Creating the archive\"
3027 tar -c -v -f - --index-file=idx directory > archive
3029 echo \"Testing the archive\"
3032 echo indexfile.at:29 >"$at_check_line_file"
3034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3039 TEST_TAR_FORMAT=ustar
3040 export TEST_TAR_FORMAT
3041 TAR_OPTIONS="-H ustar"
3047 genfile --file=directory/a --length=1035
3049 echo "Creating the archive"
3050 tar -c -v -f - --index-file=idx directory > archive
3052 echo "Testing the archive"
3054 ) ) >"$at_stdout" 2>"$at_stder1"
3055 at_func_filter_trace $?
3060 TEST_TAR_FORMAT=ustar
3061 export TEST_TAR_FORMAT
3062 TAR_OPTIONS="-H ustar"
3068 genfile --file=directory/a --length=1035
3070 echo "Creating the archive"
3071 tar -c -v -f - --index-file=idx directory > archive
3073 echo "Testing the archive"
3075 ) ) >"$at_stdout" 2>"$at_stderr"
3079 at_func_diff_devnull "$at_stderr" || at_failed=:
3080 echo >>"$at_stdout"; $as_echo "Creating the archive
3085 $at_diff - "$at_stdout" || at_failed=:
3086 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3088 $at_failed && at_func_log_failure
3092 $as_echo "$at_srcdir/indexfile.at:29:
3095 TEST_TAR_FORMAT=posix
3096 export TEST_TAR_FORMAT
3097 TAR_OPTIONS=\"-H posix\"
3103 genfile --file=directory/a --length=1035
3105 echo \"Creating the archive\"
3106 tar -c -v -f - --index-file=idx directory > archive
3108 echo \"Testing the archive\"
3111 echo indexfile.at:29 >"$at_check_line_file"
3113 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3118 TEST_TAR_FORMAT=posix
3119 export TEST_TAR_FORMAT
3120 TAR_OPTIONS="-H posix"
3126 genfile --file=directory/a --length=1035
3128 echo "Creating the archive"
3129 tar -c -v -f - --index-file=idx directory > archive
3131 echo "Testing the archive"
3133 ) ) >"$at_stdout" 2>"$at_stder1"
3134 at_func_filter_trace $?
3139 TEST_TAR_FORMAT=posix
3140 export TEST_TAR_FORMAT
3141 TAR_OPTIONS="-H posix"
3147 genfile --file=directory/a --length=1035
3149 echo "Creating the archive"
3150 tar -c -v -f - --index-file=idx directory > archive
3152 echo "Testing the archive"
3154 ) ) >"$at_stdout" 2>"$at_stderr"
3158 at_func_diff_devnull "$at_stderr" || at_failed=:
3159 echo >>"$at_stdout"; $as_echo "Creating the archive
3164 $at_diff - "$at_stdout" || at_failed=:
3165 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3167 $at_failed && at_func_log_failure
3171 $as_echo "$at_srcdir/indexfile.at:29:
3175 export TEST_TAR_FORMAT
3176 TAR_OPTIONS=\"-H gnu\"
3182 genfile --file=directory/a --length=1035
3184 echo \"Creating the archive\"
3185 tar -c -v -f - --index-file=idx directory > archive
3187 echo \"Testing the archive\"
3190 echo indexfile.at:29 >"$at_check_line_file"
3192 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3198 export TEST_TAR_FORMAT
3199 TAR_OPTIONS="-H gnu"
3205 genfile --file=directory/a --length=1035
3207 echo "Creating the archive"
3208 tar -c -v -f - --index-file=idx directory > archive
3210 echo "Testing the archive"
3212 ) ) >"$at_stdout" 2>"$at_stder1"
3213 at_func_filter_trace $?
3219 export TEST_TAR_FORMAT
3220 TAR_OPTIONS="-H gnu"
3226 genfile --file=directory/a --length=1035
3228 echo "Creating the archive"
3229 tar -c -v -f - --index-file=idx directory > archive
3231 echo "Testing the archive"
3233 ) ) >"$at_stdout" 2>"$at_stderr"
3237 at_func_diff_devnull "$at_stderr" || at_failed=:
3238 echo >>"$at_stdout"; $as_echo "Creating the archive
3243 $at_diff - "$at_stdout" || at_failed=:
3244 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3246 $at_failed && at_func_log_failure
3253 $at_times_p && times >"$at_times_file"
3254 ) 5>&1 2>&1 | eval $at_tee_pipe
3255 at_status=`cat "$at_status_file"`
3258 # 8. verbose.at:26: tar cvf -
3259 at_setup_line='verbose.at:26'
3261 $at_quiet $as_echo_n " 8: $at_desc "
3263 test -f $XFAILFILE && at_xfail=yes
3264 echo "# -*- compilation -*-" >> "$at_group_log"
3266 $as_echo "8. verbose.at:26: testing ..."
3274 $as_echo "$at_srcdir/verbose.at:29:
3278 export TEST_TAR_FORMAT
3279 TAR_OPTIONS=\"-H v7\"
3283 genfile --file file --length 10240
3284 echo Creating the archive
3285 tar cvf - file > archive
3286 echo Testing the archive
3289 echo verbose.at:29 >"$at_check_line_file"
3291 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3297 export TEST_TAR_FORMAT
3302 genfile --file file --length 10240
3303 echo Creating the archive
3304 tar cvf - file > archive
3305 echo Testing the archive
3307 ) ) >"$at_stdout" 2>"$at_stder1"
3308 at_func_filter_trace $?
3314 export TEST_TAR_FORMAT
3319 genfile --file file --length 10240
3320 echo Creating the archive
3321 tar cvf - file > archive
3322 echo Testing the archive
3324 ) ) >"$at_stdout" 2>"$at_stderr"
3328 echo >>"$at_stderr"; $as_echo "file
3330 $at_diff - "$at_stderr" || at_failed=:
3331 echo >>"$at_stdout"; $as_echo "Creating the archive
3335 $at_diff - "$at_stdout" || at_failed=:
3336 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3338 $at_failed && at_func_log_failure
3342 $as_echo "$at_srcdir/verbose.at:29:
3345 TEST_TAR_FORMAT=oldgnu
3346 export TEST_TAR_FORMAT
3347 TAR_OPTIONS=\"-H oldgnu\"
3351 genfile --file file --length 10240
3352 echo Creating the archive
3353 tar cvf - file > archive
3354 echo Testing the archive
3357 echo verbose.at:29 >"$at_check_line_file"
3359 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3364 TEST_TAR_FORMAT=oldgnu
3365 export TEST_TAR_FORMAT
3366 TAR_OPTIONS="-H oldgnu"
3370 genfile --file file --length 10240
3371 echo Creating the archive
3372 tar cvf - file > archive
3373 echo Testing the archive
3375 ) ) >"$at_stdout" 2>"$at_stder1"
3376 at_func_filter_trace $?
3381 TEST_TAR_FORMAT=oldgnu
3382 export TEST_TAR_FORMAT
3383 TAR_OPTIONS="-H oldgnu"
3387 genfile --file file --length 10240
3388 echo Creating the archive
3389 tar cvf - file > archive
3390 echo Testing the archive
3392 ) ) >"$at_stdout" 2>"$at_stderr"
3396 echo >>"$at_stderr"; $as_echo "file
3398 $at_diff - "$at_stderr" || at_failed=:
3399 echo >>"$at_stdout"; $as_echo "Creating the archive
3403 $at_diff - "$at_stdout" || at_failed=:
3404 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3406 $at_failed && at_func_log_failure
3410 $as_echo "$at_srcdir/verbose.at:29:
3413 TEST_TAR_FORMAT=ustar
3414 export TEST_TAR_FORMAT
3415 TAR_OPTIONS=\"-H ustar\"
3419 genfile --file file --length 10240
3420 echo Creating the archive
3421 tar cvf - file > archive
3422 echo Testing the archive
3425 echo verbose.at:29 >"$at_check_line_file"
3427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3432 TEST_TAR_FORMAT=ustar
3433 export TEST_TAR_FORMAT
3434 TAR_OPTIONS="-H ustar"
3438 genfile --file file --length 10240
3439 echo Creating the archive
3440 tar cvf - file > archive
3441 echo Testing the archive
3443 ) ) >"$at_stdout" 2>"$at_stder1"
3444 at_func_filter_trace $?
3449 TEST_TAR_FORMAT=ustar
3450 export TEST_TAR_FORMAT
3451 TAR_OPTIONS="-H ustar"
3455 genfile --file file --length 10240
3456 echo Creating the archive
3457 tar cvf - file > archive
3458 echo Testing the archive
3460 ) ) >"$at_stdout" 2>"$at_stderr"
3464 echo >>"$at_stderr"; $as_echo "file
3466 $at_diff - "$at_stderr" || at_failed=:
3467 echo >>"$at_stdout"; $as_echo "Creating the archive
3471 $at_diff - "$at_stdout" || at_failed=:
3472 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3474 $at_failed && at_func_log_failure
3478 $as_echo "$at_srcdir/verbose.at:29:
3481 TEST_TAR_FORMAT=posix
3482 export TEST_TAR_FORMAT
3483 TAR_OPTIONS=\"-H posix\"
3487 genfile --file file --length 10240
3488 echo Creating the archive
3489 tar cvf - file > archive
3490 echo Testing the archive
3493 echo verbose.at:29 >"$at_check_line_file"
3495 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3500 TEST_TAR_FORMAT=posix
3501 export TEST_TAR_FORMAT
3502 TAR_OPTIONS="-H posix"
3506 genfile --file file --length 10240
3507 echo Creating the archive
3508 tar cvf - file > archive
3509 echo Testing the archive
3511 ) ) >"$at_stdout" 2>"$at_stder1"
3512 at_func_filter_trace $?
3517 TEST_TAR_FORMAT=posix
3518 export TEST_TAR_FORMAT
3519 TAR_OPTIONS="-H posix"
3523 genfile --file file --length 10240
3524 echo Creating the archive
3525 tar cvf - file > archive
3526 echo Testing the archive
3528 ) ) >"$at_stdout" 2>"$at_stderr"
3532 echo >>"$at_stderr"; $as_echo "file
3534 $at_diff - "$at_stderr" || at_failed=:
3535 echo >>"$at_stdout"; $as_echo "Creating the archive
3539 $at_diff - "$at_stdout" || at_failed=:
3540 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3542 $at_failed && at_func_log_failure
3546 $as_echo "$at_srcdir/verbose.at:29:
3550 export TEST_TAR_FORMAT
3551 TAR_OPTIONS=\"-H gnu\"
3555 genfile --file file --length 10240
3556 echo Creating the archive
3557 tar cvf - file > archive
3558 echo Testing the archive
3561 echo verbose.at:29 >"$at_check_line_file"
3563 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3569 export TEST_TAR_FORMAT
3570 TAR_OPTIONS="-H gnu"
3574 genfile --file file --length 10240
3575 echo Creating the archive
3576 tar cvf - file > archive
3577 echo Testing the archive
3579 ) ) >"$at_stdout" 2>"$at_stder1"
3580 at_func_filter_trace $?
3586 export TEST_TAR_FORMAT
3587 TAR_OPTIONS="-H gnu"
3591 genfile --file file --length 10240
3592 echo Creating the archive
3593 tar cvf - file > archive
3594 echo Testing the archive
3596 ) ) >"$at_stdout" 2>"$at_stderr"
3600 echo >>"$at_stderr"; $as_echo "file
3602 $at_diff - "$at_stderr" || at_failed=:
3603 echo >>"$at_stdout"; $as_echo "Creating the archive
3607 $at_diff - "$at_stdout" || at_failed=:
3608 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3610 $at_failed && at_func_log_failure
3617 $at_times_p && times >"$at_times_file"
3618 ) 5>&1 2>&1 | eval $at_tee_pipe
3619 at_status=`cat "$at_status_file"`
3622 # 9. append.at:21: append
3623 at_setup_line='append.at:21'
3625 $at_quiet $as_echo_n " 9: $at_desc "
3627 test -f $XFAILFILE && at_xfail=yes
3628 echo "# -*- compilation -*-" >> "$at_group_log"
3630 $as_echo "9. append.at:21: testing ..."
3638 $as_echo "$at_srcdir/append.at:24:
3642 export TEST_TAR_FORMAT
3643 TAR_OPTIONS=\"-H v7\"
3648 tar cf archive file1
3649 tar rf archive file2
3651 echo append.at:24 >"$at_check_line_file"
3653 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3659 export TEST_TAR_FORMAT
3665 tar cf archive file1
3666 tar rf archive file2
3667 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3668 at_func_filter_trace $?
3674 export TEST_TAR_FORMAT
3680 tar cf archive file1
3681 tar rf archive file2
3682 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3686 at_func_diff_devnull "$at_stderr" || at_failed=:
3687 echo >>"$at_stdout"; $as_echo "file1
3690 $at_diff - "$at_stdout" || at_failed=:
3691 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3693 $at_failed && at_func_log_failure
3697 $as_echo "$at_srcdir/append.at:24:
3700 TEST_TAR_FORMAT=oldgnu
3701 export TEST_TAR_FORMAT
3702 TAR_OPTIONS=\"-H oldgnu\"
3707 tar cf archive file1
3708 tar rf archive file2
3710 echo append.at:24 >"$at_check_line_file"
3712 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3717 TEST_TAR_FORMAT=oldgnu
3718 export TEST_TAR_FORMAT
3719 TAR_OPTIONS="-H oldgnu"
3724 tar cf archive file1
3725 tar rf archive file2
3726 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3727 at_func_filter_trace $?
3732 TEST_TAR_FORMAT=oldgnu
3733 export TEST_TAR_FORMAT
3734 TAR_OPTIONS="-H oldgnu"
3739 tar cf archive file1
3740 tar rf archive file2
3741 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3745 at_func_diff_devnull "$at_stderr" || at_failed=:
3746 echo >>"$at_stdout"; $as_echo "file1
3749 $at_diff - "$at_stdout" || at_failed=:
3750 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3752 $at_failed && at_func_log_failure
3756 $as_echo "$at_srcdir/append.at:24:
3759 TEST_TAR_FORMAT=ustar
3760 export TEST_TAR_FORMAT
3761 TAR_OPTIONS=\"-H ustar\"
3766 tar cf archive file1
3767 tar rf archive file2
3769 echo append.at:24 >"$at_check_line_file"
3771 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3776 TEST_TAR_FORMAT=ustar
3777 export TEST_TAR_FORMAT
3778 TAR_OPTIONS="-H ustar"
3783 tar cf archive file1
3784 tar rf archive file2
3785 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3786 at_func_filter_trace $?
3791 TEST_TAR_FORMAT=ustar
3792 export TEST_TAR_FORMAT
3793 TAR_OPTIONS="-H ustar"
3798 tar cf archive file1
3799 tar rf archive file2
3800 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3804 at_func_diff_devnull "$at_stderr" || at_failed=:
3805 echo >>"$at_stdout"; $as_echo "file1
3808 $at_diff - "$at_stdout" || at_failed=:
3809 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3811 $at_failed && at_func_log_failure
3815 $as_echo "$at_srcdir/append.at:24:
3818 TEST_TAR_FORMAT=posix
3819 export TEST_TAR_FORMAT
3820 TAR_OPTIONS=\"-H posix\"
3825 tar cf archive file1
3826 tar rf archive file2
3828 echo append.at:24 >"$at_check_line_file"
3830 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3835 TEST_TAR_FORMAT=posix
3836 export TEST_TAR_FORMAT
3837 TAR_OPTIONS="-H posix"
3842 tar cf archive file1
3843 tar rf archive file2
3844 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3845 at_func_filter_trace $?
3850 TEST_TAR_FORMAT=posix
3851 export TEST_TAR_FORMAT
3852 TAR_OPTIONS="-H posix"
3857 tar cf archive file1
3858 tar rf archive file2
3859 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3863 at_func_diff_devnull "$at_stderr" || at_failed=:
3864 echo >>"$at_stdout"; $as_echo "file1
3867 $at_diff - "$at_stdout" || at_failed=:
3868 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3870 $at_failed && at_func_log_failure
3874 $as_echo "$at_srcdir/append.at:24:
3878 export TEST_TAR_FORMAT
3879 TAR_OPTIONS=\"-H gnu\"
3884 tar cf archive file1
3885 tar rf archive file2
3887 echo append.at:24 >"$at_check_line_file"
3889 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3895 export TEST_TAR_FORMAT
3896 TAR_OPTIONS="-H gnu"
3901 tar cf archive file1
3902 tar rf archive file2
3903 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3904 at_func_filter_trace $?
3910 export TEST_TAR_FORMAT
3911 TAR_OPTIONS="-H gnu"
3916 tar cf archive file1
3917 tar rf archive file2
3918 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3922 at_func_diff_devnull "$at_stderr" || at_failed=:
3923 echo >>"$at_stdout"; $as_echo "file1
3926 $at_diff - "$at_stdout" || at_failed=:
3927 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3929 $at_failed && at_func_log_failure
3936 $at_times_p && times >"$at_times_file"
3937 ) 5>&1 2>&1 | eval $at_tee_pipe
3938 at_status=`cat "$at_status_file"`
3941 # 10. append01.at:29: appending files with long names
3942 at_setup_line='append01.at:29'
3943 at_desc="appending files with long names"
3944 $at_quiet $as_echo_n " 10: $at_desc "
3946 test -f $XFAILFILE && at_xfail=yes
3947 echo "# -*- compilation -*-" >> "$at_group_log"
3949 $as_echo "10. append01.at:29: testing ..."
3959 $as_echo "$at_srcdir/append01.at:34:
3962 TEST_TAR_FORMAT=oldgnu
3963 export TEST_TAR_FORMAT
3964 TAR_OPTIONS=\"-H oldgnu\"
3968 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
3969 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
3970 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
3971 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
3974 echo append01.at:34 >"$at_check_line_file"
3976 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3981 TEST_TAR_FORMAT=oldgnu
3982 export TEST_TAR_FORMAT
3983 TAR_OPTIONS="-H oldgnu"
3987 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
3988 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
3989 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
3990 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
3992 ) ) >"$at_stdout" 2>"$at_stder1"
3993 at_func_filter_trace $?
3998 TEST_TAR_FORMAT=oldgnu
3999 export TEST_TAR_FORMAT
4000 TAR_OPTIONS="-H oldgnu"
4004 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
4005 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
4006 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
4007 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
4009 ) ) >"$at_stdout" 2>"$at_stderr"
4013 at_func_diff_devnull "$at_stderr" || at_failed=:
4014 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
4015 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
4017 $at_diff - "$at_stdout" || at_failed=:
4018 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4020 $at_failed && at_func_log_failure
4024 $as_echo "$at_srcdir/append01.at:34:
4027 TEST_TAR_FORMAT=ustar
4028 export TEST_TAR_FORMAT
4029 TAR_OPTIONS=\"-H ustar\"
4033 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
4034 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
4035 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
4036 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
4039 echo append01.at:34 >"$at_check_line_file"
4041 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4046 TEST_TAR_FORMAT=ustar
4047 export TEST_TAR_FORMAT
4048 TAR_OPTIONS="-H ustar"
4052 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
4053 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
4054 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
4055 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
4057 ) ) >"$at_stdout" 2>"$at_stder1"
4058 at_func_filter_trace $?
4063 TEST_TAR_FORMAT=ustar
4064 export TEST_TAR_FORMAT
4065 TAR_OPTIONS="-H ustar"
4069 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
4070 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
4071 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
4072 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
4074 ) ) >"$at_stdout" 2>"$at_stderr"
4078 at_func_diff_devnull "$at_stderr" || at_failed=:
4079 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
4080 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
4082 $at_diff - "$at_stdout" || at_failed=:
4083 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4085 $at_failed && at_func_log_failure
4089 $as_echo "$at_srcdir/append01.at:34:
4092 TEST_TAR_FORMAT=posix
4093 export TEST_TAR_FORMAT
4094 TAR_OPTIONS=\"-H posix\"
4098 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
4099 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
4100 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
4101 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
4104 echo append01.at:34 >"$at_check_line_file"
4106 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4111 TEST_TAR_FORMAT=posix
4112 export TEST_TAR_FORMAT
4113 TAR_OPTIONS="-H posix"
4117 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
4118 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
4119 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
4120 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
4122 ) ) >"$at_stdout" 2>"$at_stder1"
4123 at_func_filter_trace $?
4128 TEST_TAR_FORMAT=posix
4129 export TEST_TAR_FORMAT
4130 TAR_OPTIONS="-H posix"
4134 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
4135 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
4136 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
4137 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
4139 ) ) >"$at_stdout" 2>"$at_stderr"
4143 at_func_diff_devnull "$at_stderr" || at_failed=:
4144 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
4145 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
4147 $at_diff - "$at_stdout" || at_failed=:
4148 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4150 $at_failed && at_func_log_failure
4154 $as_echo "$at_srcdir/append01.at:34:
4158 export TEST_TAR_FORMAT
4159 TAR_OPTIONS=\"-H gnu\"
4163 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
4164 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
4165 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
4166 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
4169 echo append01.at:34 >"$at_check_line_file"
4171 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4177 export TEST_TAR_FORMAT
4178 TAR_OPTIONS="-H gnu"
4182 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
4183 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
4184 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
4185 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
4187 ) ) >"$at_stdout" 2>"$at_stder1"
4188 at_func_filter_trace $?
4194 export TEST_TAR_FORMAT
4195 TAR_OPTIONS="-H gnu"
4199 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
4200 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
4201 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
4202 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
4204 ) ) >"$at_stdout" 2>"$at_stderr"
4208 at_func_diff_devnull "$at_stderr" || at_failed=:
4209 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
4210 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
4212 $at_diff - "$at_stdout" || at_failed=:
4213 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4215 $at_failed && at_func_log_failure
4222 $at_times_p && times >"$at_times_file"
4223 ) 5>&1 2>&1 | eval $at_tee_pipe
4224 at_status=`cat "$at_status_file"`
4227 # 11. append02.at:54: append vs. create
4228 at_setup_line='append02.at:54'
4229 at_desc="append vs. create"
4230 $at_quiet $as_echo_n " 11: $at_desc "
4232 test -f $XFAILFILE && at_xfail=yes
4233 echo "# -*- compilation -*-" >> "$at_group_log"
4235 $as_echo "11. append02.at:54: testing ..."
4243 $as_echo "$at_srcdir/append02.at:57:
4247 export TEST_TAR_FORMAT
4248 TAR_OPTIONS=\"-H v7\"
4252 genfile --file file1
4253 genfile --file file2
4255 # Make sure file timestamps in the archive will not differ
4256 MTIME=\"--mtime=@0\"
4258 # For PAX archives, we need to make sure extended header names are
4259 # reproducible and that their contents won't change with time
4260 if test \$TEST_TAR_FORMAT = posix; then
4261 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4264 echo Creating archive.1
4265 tar \$MTIME -cf archive.1 file1 file2
4267 echo Creating archive.2
4268 tar \$MTIME -cf archive.2 -T /dev/null
4269 tar \$MTIME -rf archive.2 file1
4270 tar \$MTIME -rf archive.2 file2
4272 echo Comparing archives
4273 cmp archive.1 archive.2
4275 echo append02.at:57 >"$at_check_line_file"
4277 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4283 export TEST_TAR_FORMAT
4288 genfile --file file1
4289 genfile --file file2
4291 # Make sure file timestamps in the archive will not differ
4294 # For PAX archives, we need to make sure extended header names are
4295 # reproducible and that their contents won't change with time
4296 if test $TEST_TAR_FORMAT = posix; then
4297 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4300 echo Creating archive.1
4301 tar $MTIME -cf archive.1 file1 file2
4303 echo Creating archive.2
4304 tar $MTIME -cf archive.2 -T /dev/null
4305 tar $MTIME -rf archive.2 file1
4306 tar $MTIME -rf archive.2 file2
4308 echo Comparing archives
4309 cmp archive.1 archive.2
4310 ) ) >"$at_stdout" 2>"$at_stder1"
4311 at_func_filter_trace $?
4317 export TEST_TAR_FORMAT
4322 genfile --file file1
4323 genfile --file file2
4325 # Make sure file timestamps in the archive will not differ
4328 # For PAX archives, we need to make sure extended header names are
4329 # reproducible and that their contents won't change with time
4330 if test $TEST_TAR_FORMAT = posix; then
4331 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4334 echo Creating archive.1
4335 tar $MTIME -cf archive.1 file1 file2
4337 echo Creating archive.2
4338 tar $MTIME -cf archive.2 -T /dev/null
4339 tar $MTIME -rf archive.2 file1
4340 tar $MTIME -rf archive.2 file2
4342 echo Comparing archives
4343 cmp archive.1 archive.2
4344 ) ) >"$at_stdout" 2>"$at_stderr"
4348 at_func_diff_devnull "$at_stderr" || at_failed=:
4349 echo >>"$at_stdout"; $as_echo "Creating archive.1
4353 $at_diff - "$at_stdout" || at_failed=:
4354 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4356 $at_failed && at_func_log_failure
4360 $as_echo "$at_srcdir/append02.at:57:
4363 TEST_TAR_FORMAT=oldgnu
4364 export TEST_TAR_FORMAT
4365 TAR_OPTIONS=\"-H oldgnu\"
4369 genfile --file file1
4370 genfile --file file2
4372 # Make sure file timestamps in the archive will not differ
4373 MTIME=\"--mtime=@0\"
4375 # For PAX archives, we need to make sure extended header names are
4376 # reproducible and that their contents won't change with time
4377 if test \$TEST_TAR_FORMAT = posix; then
4378 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4381 echo Creating archive.1
4382 tar \$MTIME -cf archive.1 file1 file2
4384 echo Creating archive.2
4385 tar \$MTIME -cf archive.2 -T /dev/null
4386 tar \$MTIME -rf archive.2 file1
4387 tar \$MTIME -rf archive.2 file2
4389 echo Comparing archives
4390 cmp archive.1 archive.2
4392 echo append02.at:57 >"$at_check_line_file"
4394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4399 TEST_TAR_FORMAT=oldgnu
4400 export TEST_TAR_FORMAT
4401 TAR_OPTIONS="-H oldgnu"
4405 genfile --file file1
4406 genfile --file file2
4408 # Make sure file timestamps in the archive will not differ
4411 # For PAX archives, we need to make sure extended header names are
4412 # reproducible and that their contents won't change with time
4413 if test $TEST_TAR_FORMAT = posix; then
4414 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4417 echo Creating archive.1
4418 tar $MTIME -cf archive.1 file1 file2
4420 echo Creating archive.2
4421 tar $MTIME -cf archive.2 -T /dev/null
4422 tar $MTIME -rf archive.2 file1
4423 tar $MTIME -rf archive.2 file2
4425 echo Comparing archives
4426 cmp archive.1 archive.2
4427 ) ) >"$at_stdout" 2>"$at_stder1"
4428 at_func_filter_trace $?
4433 TEST_TAR_FORMAT=oldgnu
4434 export TEST_TAR_FORMAT
4435 TAR_OPTIONS="-H oldgnu"
4439 genfile --file file1
4440 genfile --file file2
4442 # Make sure file timestamps in the archive will not differ
4445 # For PAX archives, we need to make sure extended header names are
4446 # reproducible and that their contents won't change with time
4447 if test $TEST_TAR_FORMAT = posix; then
4448 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4451 echo Creating archive.1
4452 tar $MTIME -cf archive.1 file1 file2
4454 echo Creating archive.2
4455 tar $MTIME -cf archive.2 -T /dev/null
4456 tar $MTIME -rf archive.2 file1
4457 tar $MTIME -rf archive.2 file2
4459 echo Comparing archives
4460 cmp archive.1 archive.2
4461 ) ) >"$at_stdout" 2>"$at_stderr"
4465 at_func_diff_devnull "$at_stderr" || at_failed=:
4466 echo >>"$at_stdout"; $as_echo "Creating archive.1
4470 $at_diff - "$at_stdout" || at_failed=:
4471 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4473 $at_failed && at_func_log_failure
4477 $as_echo "$at_srcdir/append02.at:57:
4480 TEST_TAR_FORMAT=ustar
4481 export TEST_TAR_FORMAT
4482 TAR_OPTIONS=\"-H ustar\"
4486 genfile --file file1
4487 genfile --file file2
4489 # Make sure file timestamps in the archive will not differ
4490 MTIME=\"--mtime=@0\"
4492 # For PAX archives, we need to make sure extended header names are
4493 # reproducible and that their contents won't change with time
4494 if test \$TEST_TAR_FORMAT = posix; then
4495 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4498 echo Creating archive.1
4499 tar \$MTIME -cf archive.1 file1 file2
4501 echo Creating archive.2
4502 tar \$MTIME -cf archive.2 -T /dev/null
4503 tar \$MTIME -rf archive.2 file1
4504 tar \$MTIME -rf archive.2 file2
4506 echo Comparing archives
4507 cmp archive.1 archive.2
4509 echo append02.at:57 >"$at_check_line_file"
4511 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4516 TEST_TAR_FORMAT=ustar
4517 export TEST_TAR_FORMAT
4518 TAR_OPTIONS="-H ustar"
4522 genfile --file file1
4523 genfile --file file2
4525 # Make sure file timestamps in the archive will not differ
4528 # For PAX archives, we need to make sure extended header names are
4529 # reproducible and that their contents won't change with time
4530 if test $TEST_TAR_FORMAT = posix; then
4531 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4534 echo Creating archive.1
4535 tar $MTIME -cf archive.1 file1 file2
4537 echo Creating archive.2
4538 tar $MTIME -cf archive.2 -T /dev/null
4539 tar $MTIME -rf archive.2 file1
4540 tar $MTIME -rf archive.2 file2
4542 echo Comparing archives
4543 cmp archive.1 archive.2
4544 ) ) >"$at_stdout" 2>"$at_stder1"
4545 at_func_filter_trace $?
4550 TEST_TAR_FORMAT=ustar
4551 export TEST_TAR_FORMAT
4552 TAR_OPTIONS="-H ustar"
4556 genfile --file file1
4557 genfile --file file2
4559 # Make sure file timestamps in the archive will not differ
4562 # For PAX archives, we need to make sure extended header names are
4563 # reproducible and that their contents won't change with time
4564 if test $TEST_TAR_FORMAT = posix; then
4565 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4568 echo Creating archive.1
4569 tar $MTIME -cf archive.1 file1 file2
4571 echo Creating archive.2
4572 tar $MTIME -cf archive.2 -T /dev/null
4573 tar $MTIME -rf archive.2 file1
4574 tar $MTIME -rf archive.2 file2
4576 echo Comparing archives
4577 cmp archive.1 archive.2
4578 ) ) >"$at_stdout" 2>"$at_stderr"
4582 at_func_diff_devnull "$at_stderr" || at_failed=:
4583 echo >>"$at_stdout"; $as_echo "Creating archive.1
4587 $at_diff - "$at_stdout" || at_failed=:
4588 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4590 $at_failed && at_func_log_failure
4594 $as_echo "$at_srcdir/append02.at:57:
4597 TEST_TAR_FORMAT=posix
4598 export TEST_TAR_FORMAT
4599 TAR_OPTIONS=\"-H posix\"
4603 genfile --file file1
4604 genfile --file file2
4606 # Make sure file timestamps in the archive will not differ
4607 MTIME=\"--mtime=@0\"
4609 # For PAX archives, we need to make sure extended header names are
4610 # reproducible and that their contents won't change with time
4611 if test \$TEST_TAR_FORMAT = posix; then
4612 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4615 echo Creating archive.1
4616 tar \$MTIME -cf archive.1 file1 file2
4618 echo Creating archive.2
4619 tar \$MTIME -cf archive.2 -T /dev/null
4620 tar \$MTIME -rf archive.2 file1
4621 tar \$MTIME -rf archive.2 file2
4623 echo Comparing archives
4624 cmp archive.1 archive.2
4626 echo append02.at:57 >"$at_check_line_file"
4628 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4633 TEST_TAR_FORMAT=posix
4634 export TEST_TAR_FORMAT
4635 TAR_OPTIONS="-H posix"
4639 genfile --file file1
4640 genfile --file file2
4642 # Make sure file timestamps in the archive will not differ
4645 # For PAX archives, we need to make sure extended header names are
4646 # reproducible and that their contents won't change with time
4647 if test $TEST_TAR_FORMAT = posix; then
4648 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4651 echo Creating archive.1
4652 tar $MTIME -cf archive.1 file1 file2
4654 echo Creating archive.2
4655 tar $MTIME -cf archive.2 -T /dev/null
4656 tar $MTIME -rf archive.2 file1
4657 tar $MTIME -rf archive.2 file2
4659 echo Comparing archives
4660 cmp archive.1 archive.2
4661 ) ) >"$at_stdout" 2>"$at_stder1"
4662 at_func_filter_trace $?
4667 TEST_TAR_FORMAT=posix
4668 export TEST_TAR_FORMAT
4669 TAR_OPTIONS="-H posix"
4673 genfile --file file1
4674 genfile --file file2
4676 # Make sure file timestamps in the archive will not differ
4679 # For PAX archives, we need to make sure extended header names are
4680 # reproducible and that their contents won't change with time
4681 if test $TEST_TAR_FORMAT = posix; then
4682 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4685 echo Creating archive.1
4686 tar $MTIME -cf archive.1 file1 file2
4688 echo Creating archive.2
4689 tar $MTIME -cf archive.2 -T /dev/null
4690 tar $MTIME -rf archive.2 file1
4691 tar $MTIME -rf archive.2 file2
4693 echo Comparing archives
4694 cmp archive.1 archive.2
4695 ) ) >"$at_stdout" 2>"$at_stderr"
4699 at_func_diff_devnull "$at_stderr" || at_failed=:
4700 echo >>"$at_stdout"; $as_echo "Creating archive.1
4704 $at_diff - "$at_stdout" || at_failed=:
4705 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4707 $at_failed && at_func_log_failure
4711 $as_echo "$at_srcdir/append02.at:57:
4715 export TEST_TAR_FORMAT
4716 TAR_OPTIONS=\"-H gnu\"
4720 genfile --file file1
4721 genfile --file file2
4723 # Make sure file timestamps in the archive will not differ
4724 MTIME=\"--mtime=@0\"
4726 # For PAX archives, we need to make sure extended header names are
4727 # reproducible and that their contents won't change with time
4728 if test \$TEST_TAR_FORMAT = posix; then
4729 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4732 echo Creating archive.1
4733 tar \$MTIME -cf archive.1 file1 file2
4735 echo Creating archive.2
4736 tar \$MTIME -cf archive.2 -T /dev/null
4737 tar \$MTIME -rf archive.2 file1
4738 tar \$MTIME -rf archive.2 file2
4740 echo Comparing archives
4741 cmp archive.1 archive.2
4743 echo append02.at:57 >"$at_check_line_file"
4745 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4751 export TEST_TAR_FORMAT
4752 TAR_OPTIONS="-H gnu"
4756 genfile --file file1
4757 genfile --file file2
4759 # Make sure file timestamps in the archive will not differ
4762 # For PAX archives, we need to make sure extended header names are
4763 # reproducible and that their contents won't change with time
4764 if test $TEST_TAR_FORMAT = posix; then
4765 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4768 echo Creating archive.1
4769 tar $MTIME -cf archive.1 file1 file2
4771 echo Creating archive.2
4772 tar $MTIME -cf archive.2 -T /dev/null
4773 tar $MTIME -rf archive.2 file1
4774 tar $MTIME -rf archive.2 file2
4776 echo Comparing archives
4777 cmp archive.1 archive.2
4778 ) ) >"$at_stdout" 2>"$at_stder1"
4779 at_func_filter_trace $?
4785 export TEST_TAR_FORMAT
4786 TAR_OPTIONS="-H gnu"
4790 genfile --file file1
4791 genfile --file file2
4793 # Make sure file timestamps in the archive will not differ
4796 # For PAX archives, we need to make sure extended header names are
4797 # reproducible and that their contents won't change with time
4798 if test $TEST_TAR_FORMAT = posix; then
4799 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4802 echo Creating archive.1
4803 tar $MTIME -cf archive.1 file1 file2
4805 echo Creating archive.2
4806 tar $MTIME -cf archive.2 -T /dev/null
4807 tar $MTIME -rf archive.2 file1
4808 tar $MTIME -rf archive.2 file2
4810 echo Comparing archives
4811 cmp archive.1 archive.2
4812 ) ) >"$at_stdout" 2>"$at_stderr"
4816 at_func_diff_devnull "$at_stderr" || at_failed=:
4817 echo >>"$at_stdout"; $as_echo "Creating archive.1
4821 $at_diff - "$at_stdout" || at_failed=:
4822 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4824 $at_failed && at_func_log_failure
4831 $at_times_p && times >"$at_times_file"
4832 ) 5>&1 2>&1 | eval $at_tee_pipe
4833 at_status=`cat "$at_status_file"`
4836 # 12. append03.at:19: append with name transformation
4837 at_setup_line='append03.at:19'
4838 at_desc="append with name transformation"
4839 $at_quiet $as_echo_n " 12: $at_desc "
4841 test -f $XFAILFILE && at_xfail=yes
4842 echo "# -*- compilation -*-" >> "$at_group_log"
4844 $as_echo "12. append03.at:19: testing ..."
4849 # Description: Make sure filenames are transformed during append.
4854 $as_echo "$at_srcdir/append03.at:24:
4858 export TEST_TAR_FORMAT
4859 TAR_OPTIONS=\"-H v7\"
4863 genfile --file file.1
4864 genfile --file file.2
4866 tar -c -f archive --transform 's/file/plik/' file.*
4868 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4872 echo append03.at:24 >"$at_check_line_file"
4874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4880 export TEST_TAR_FORMAT
4885 genfile --file file.1
4886 genfile --file file.2
4888 tar -c -f archive --transform 's/file/plik/' file.*
4890 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4893 ) ) >"$at_stdout" 2>"$at_stder1"
4894 at_func_filter_trace $?
4900 export TEST_TAR_FORMAT
4905 genfile --file file.1
4906 genfile --file file.2
4908 tar -c -f archive --transform 's/file/plik/' file.*
4910 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4913 ) ) >"$at_stdout" 2>"$at_stderr"
4917 at_func_diff_devnull "$at_stderr" || at_failed=:
4918 echo >>"$at_stdout"; $as_echo "Appending
4925 $at_diff - "$at_stdout" || at_failed=:
4926 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
4928 $at_failed && at_func_log_failure
4932 $as_echo "$at_srcdir/append03.at:24:
4935 TEST_TAR_FORMAT=oldgnu
4936 export TEST_TAR_FORMAT
4937 TAR_OPTIONS=\"-H oldgnu\"
4941 genfile --file file.1
4942 genfile --file file.2
4944 tar -c -f archive --transform 's/file/plik/' file.*
4946 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4950 echo append03.at:24 >"$at_check_line_file"
4952 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4957 TEST_TAR_FORMAT=oldgnu
4958 export TEST_TAR_FORMAT
4959 TAR_OPTIONS="-H oldgnu"
4963 genfile --file file.1
4964 genfile --file file.2
4966 tar -c -f archive --transform 's/file/plik/' file.*
4968 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4971 ) ) >"$at_stdout" 2>"$at_stder1"
4972 at_func_filter_trace $?
4977 TEST_TAR_FORMAT=oldgnu
4978 export TEST_TAR_FORMAT
4979 TAR_OPTIONS="-H oldgnu"
4983 genfile --file file.1
4984 genfile --file file.2
4986 tar -c -f archive --transform 's/file/plik/' file.*
4988 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4991 ) ) >"$at_stdout" 2>"$at_stderr"
4995 at_func_diff_devnull "$at_stderr" || at_failed=:
4996 echo >>"$at_stdout"; $as_echo "Appending
5003 $at_diff - "$at_stdout" || at_failed=:
5004 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5006 $at_failed && at_func_log_failure
5010 $as_echo "$at_srcdir/append03.at:24:
5013 TEST_TAR_FORMAT=ustar
5014 export TEST_TAR_FORMAT
5015 TAR_OPTIONS=\"-H ustar\"
5019 genfile --file file.1
5020 genfile --file file.2
5022 tar -c -f archive --transform 's/file/plik/' file.*
5024 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5028 echo append03.at:24 >"$at_check_line_file"
5030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5035 TEST_TAR_FORMAT=ustar
5036 export TEST_TAR_FORMAT
5037 TAR_OPTIONS="-H ustar"
5041 genfile --file file.1
5042 genfile --file file.2
5044 tar -c -f archive --transform 's/file/plik/' file.*
5046 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5049 ) ) >"$at_stdout" 2>"$at_stder1"
5050 at_func_filter_trace $?
5055 TEST_TAR_FORMAT=ustar
5056 export TEST_TAR_FORMAT
5057 TAR_OPTIONS="-H ustar"
5061 genfile --file file.1
5062 genfile --file file.2
5064 tar -c -f archive --transform 's/file/plik/' file.*
5066 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5069 ) ) >"$at_stdout" 2>"$at_stderr"
5073 at_func_diff_devnull "$at_stderr" || at_failed=:
5074 echo >>"$at_stdout"; $as_echo "Appending
5081 $at_diff - "$at_stdout" || at_failed=:
5082 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5084 $at_failed && at_func_log_failure
5088 $as_echo "$at_srcdir/append03.at:24:
5091 TEST_TAR_FORMAT=posix
5092 export TEST_TAR_FORMAT
5093 TAR_OPTIONS=\"-H posix\"
5097 genfile --file file.1
5098 genfile --file file.2
5100 tar -c -f archive --transform 's/file/plik/' file.*
5102 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5106 echo append03.at:24 >"$at_check_line_file"
5108 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5113 TEST_TAR_FORMAT=posix
5114 export TEST_TAR_FORMAT
5115 TAR_OPTIONS="-H posix"
5119 genfile --file file.1
5120 genfile --file file.2
5122 tar -c -f archive --transform 's/file/plik/' file.*
5124 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5127 ) ) >"$at_stdout" 2>"$at_stder1"
5128 at_func_filter_trace $?
5133 TEST_TAR_FORMAT=posix
5134 export TEST_TAR_FORMAT
5135 TAR_OPTIONS="-H posix"
5139 genfile --file file.1
5140 genfile --file file.2
5142 tar -c -f archive --transform 's/file/plik/' file.*
5144 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5147 ) ) >"$at_stdout" 2>"$at_stderr"
5151 at_func_diff_devnull "$at_stderr" || at_failed=:
5152 echo >>"$at_stdout"; $as_echo "Appending
5159 $at_diff - "$at_stdout" || at_failed=:
5160 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5162 $at_failed && at_func_log_failure
5166 $as_echo "$at_srcdir/append03.at:24:
5170 export TEST_TAR_FORMAT
5171 TAR_OPTIONS=\"-H gnu\"
5175 genfile --file file.1
5176 genfile --file file.2
5178 tar -c -f archive --transform 's/file/plik/' file.*
5180 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5184 echo append03.at:24 >"$at_check_line_file"
5186 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5192 export TEST_TAR_FORMAT
5193 TAR_OPTIONS="-H gnu"
5197 genfile --file file.1
5198 genfile --file file.2
5200 tar -c -f archive --transform 's/file/plik/' file.*
5202 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5205 ) ) >"$at_stdout" 2>"$at_stder1"
5206 at_func_filter_trace $?
5212 export TEST_TAR_FORMAT
5213 TAR_OPTIONS="-H gnu"
5217 genfile --file file.1
5218 genfile --file file.2
5220 tar -c -f archive --transform 's/file/plik/' file.*
5222 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5225 ) ) >"$at_stdout" 2>"$at_stderr"
5229 at_func_diff_devnull "$at_stderr" || at_failed=:
5230 echo >>"$at_stdout"; $as_echo "Appending
5237 $at_diff - "$at_stdout" || at_failed=:
5238 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5240 $at_failed && at_func_log_failure
5247 $at_times_p && times >"$at_times_file"
5248 ) 5>&1 2>&1 | eval $at_tee_pipe
5249 at_status=`cat "$at_status_file"`
5252 # 13. xform-h.at:30: transforming hard links on create
5253 at_setup_line='xform-h.at:30'
5254 at_desc="transforming hard links on create"
5255 $at_quiet $as_echo_n " 13: $at_desc "
5257 test -f $XFAILFILE && at_xfail=yes
5258 echo "# -*- compilation -*-" >> "$at_group_log"
5260 $as_echo "13. xform-h.at:30: testing ..."
5270 $as_echo "$at_srcdir/xform-h.at:39:
5274 export TEST_TAR_FORMAT
5275 TAR_OPTIONS=\"-H v7\"
5280 echo \"hello\" > basedir/test
5281 ln basedir/test basedir/test_link
5284 echo "Default transform scope"
5285 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5286 tar tvf archive | sed -n 's/.*test_link link to //p'
5289 echo "Transforming hard links"
5290 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5291 tar tvf archive | sed -n 's/.*test_link link to //p'
5294 echo "Not transforming hard links"
5295 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5296 tar tvf archive | sed -n 's/.*test_link link to //p'
5299 echo xform-h.at:39 >"$at_check_line_file"
5301 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5307 export TEST_TAR_FORMAT
5313 echo "hello" > basedir/test
5314 ln basedir/test basedir/test_link
5317 echo "Default transform scope"
5318 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5319 tar tvf archive | sed -n 's/.*test_link link to //p'
5322 echo "Transforming hard links"
5323 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5324 tar tvf archive | sed -n 's/.*test_link link to //p'
5327 echo "Not transforming hard links"
5328 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5329 tar tvf archive | sed -n 's/.*test_link link to //p'
5331 ) ) >"$at_stdout" 2>"$at_stder1"
5332 at_func_filter_trace $?
5338 export TEST_TAR_FORMAT
5344 echo "hello" > basedir/test
5345 ln basedir/test basedir/test_link
5348 echo "Default transform scope"
5349 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5350 tar tvf archive | sed -n 's/.*test_link link to //p'
5353 echo "Transforming hard links"
5354 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5355 tar tvf archive | sed -n 's/.*test_link link to //p'
5358 echo "Not transforming hard links"
5359 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5360 tar tvf archive | sed -n 's/.*test_link link to //p'
5362 ) ) >"$at_stdout" 2>"$at_stderr"
5366 at_func_diff_devnull "$at_stderr" || at_failed=:
5367 echo >>"$at_stdout"; $as_echo "Default transform scope
5369 Transforming hard links
5371 Not transforming hard links
5374 $at_diff - "$at_stdout" || at_failed=:
5375 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5377 $at_failed && at_func_log_failure
5381 $as_echo "$at_srcdir/xform-h.at:39:
5384 TEST_TAR_FORMAT=oldgnu
5385 export TEST_TAR_FORMAT
5386 TAR_OPTIONS=\"-H oldgnu\"
5391 echo \"hello\" > basedir/test
5392 ln basedir/test basedir/test_link
5395 echo "Default transform scope"
5396 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5397 tar tvf archive | sed -n 's/.*test_link link to //p'
5400 echo "Transforming hard links"
5401 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5402 tar tvf archive | sed -n 's/.*test_link link to //p'
5405 echo "Not transforming hard links"
5406 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5407 tar tvf archive | sed -n 's/.*test_link link to //p'
5410 echo xform-h.at:39 >"$at_check_line_file"
5412 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5417 TEST_TAR_FORMAT=oldgnu
5418 export TEST_TAR_FORMAT
5419 TAR_OPTIONS="-H oldgnu"
5424 echo "hello" > basedir/test
5425 ln basedir/test basedir/test_link
5428 echo "Default transform scope"
5429 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5430 tar tvf archive | sed -n 's/.*test_link link to //p'
5433 echo "Transforming hard links"
5434 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5435 tar tvf archive | sed -n 's/.*test_link link to //p'
5438 echo "Not transforming hard links"
5439 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5440 tar tvf archive | sed -n 's/.*test_link link to //p'
5442 ) ) >"$at_stdout" 2>"$at_stder1"
5443 at_func_filter_trace $?
5448 TEST_TAR_FORMAT=oldgnu
5449 export TEST_TAR_FORMAT
5450 TAR_OPTIONS="-H oldgnu"
5455 echo "hello" > basedir/test
5456 ln basedir/test basedir/test_link
5459 echo "Default transform scope"
5460 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5461 tar tvf archive | sed -n 's/.*test_link link to //p'
5464 echo "Transforming hard links"
5465 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5466 tar tvf archive | sed -n 's/.*test_link link to //p'
5469 echo "Not transforming hard links"
5470 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5471 tar tvf archive | sed -n 's/.*test_link link to //p'
5473 ) ) >"$at_stdout" 2>"$at_stderr"
5477 at_func_diff_devnull "$at_stderr" || at_failed=:
5478 echo >>"$at_stdout"; $as_echo "Default transform scope
5480 Transforming hard links
5482 Not transforming hard links
5485 $at_diff - "$at_stdout" || at_failed=:
5486 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5488 $at_failed && at_func_log_failure
5492 $as_echo "$at_srcdir/xform-h.at:39:
5495 TEST_TAR_FORMAT=ustar
5496 export TEST_TAR_FORMAT
5497 TAR_OPTIONS=\"-H ustar\"
5502 echo \"hello\" > basedir/test
5503 ln basedir/test basedir/test_link
5506 echo "Default transform scope"
5507 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5508 tar tvf archive | sed -n 's/.*test_link link to //p'
5511 echo "Transforming hard links"
5512 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5513 tar tvf archive | sed -n 's/.*test_link link to //p'
5516 echo "Not transforming hard links"
5517 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5518 tar tvf archive | sed -n 's/.*test_link link to //p'
5521 echo xform-h.at:39 >"$at_check_line_file"
5523 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5528 TEST_TAR_FORMAT=ustar
5529 export TEST_TAR_FORMAT
5530 TAR_OPTIONS="-H ustar"
5535 echo "hello" > basedir/test
5536 ln basedir/test basedir/test_link
5539 echo "Default transform scope"
5540 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5541 tar tvf archive | sed -n 's/.*test_link link to //p'
5544 echo "Transforming hard links"
5545 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5546 tar tvf archive | sed -n 's/.*test_link link to //p'
5549 echo "Not transforming hard links"
5550 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5551 tar tvf archive | sed -n 's/.*test_link link to //p'
5553 ) ) >"$at_stdout" 2>"$at_stder1"
5554 at_func_filter_trace $?
5559 TEST_TAR_FORMAT=ustar
5560 export TEST_TAR_FORMAT
5561 TAR_OPTIONS="-H ustar"
5566 echo "hello" > basedir/test
5567 ln basedir/test basedir/test_link
5570 echo "Default transform scope"
5571 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5572 tar tvf archive | sed -n 's/.*test_link link to //p'
5575 echo "Transforming hard links"
5576 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5577 tar tvf archive | sed -n 's/.*test_link link to //p'
5580 echo "Not transforming hard links"
5581 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5582 tar tvf archive | sed -n 's/.*test_link link to //p'
5584 ) ) >"$at_stdout" 2>"$at_stderr"
5588 at_func_diff_devnull "$at_stderr" || at_failed=:
5589 echo >>"$at_stdout"; $as_echo "Default transform scope
5591 Transforming hard links
5593 Not transforming hard links
5596 $at_diff - "$at_stdout" || at_failed=:
5597 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5599 $at_failed && at_func_log_failure
5603 $as_echo "$at_srcdir/xform-h.at:39:
5606 TEST_TAR_FORMAT=posix
5607 export TEST_TAR_FORMAT
5608 TAR_OPTIONS=\"-H posix\"
5613 echo \"hello\" > basedir/test
5614 ln basedir/test basedir/test_link
5617 echo "Default transform scope"
5618 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5619 tar tvf archive | sed -n 's/.*test_link link to //p'
5622 echo "Transforming hard links"
5623 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5624 tar tvf archive | sed -n 's/.*test_link link to //p'
5627 echo "Not transforming hard links"
5628 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5629 tar tvf archive | sed -n 's/.*test_link link to //p'
5632 echo xform-h.at:39 >"$at_check_line_file"
5634 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5639 TEST_TAR_FORMAT=posix
5640 export TEST_TAR_FORMAT
5641 TAR_OPTIONS="-H posix"
5646 echo "hello" > basedir/test
5647 ln basedir/test basedir/test_link
5650 echo "Default transform scope"
5651 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5652 tar tvf archive | sed -n 's/.*test_link link to //p'
5655 echo "Transforming hard links"
5656 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5657 tar tvf archive | sed -n 's/.*test_link link to //p'
5660 echo "Not transforming hard links"
5661 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5662 tar tvf archive | sed -n 's/.*test_link link to //p'
5664 ) ) >"$at_stdout" 2>"$at_stder1"
5665 at_func_filter_trace $?
5670 TEST_TAR_FORMAT=posix
5671 export TEST_TAR_FORMAT
5672 TAR_OPTIONS="-H posix"
5677 echo "hello" > basedir/test
5678 ln basedir/test basedir/test_link
5681 echo "Default transform scope"
5682 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5683 tar tvf archive | sed -n 's/.*test_link link to //p'
5686 echo "Transforming hard links"
5687 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5688 tar tvf archive | sed -n 's/.*test_link link to //p'
5691 echo "Not transforming hard links"
5692 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5693 tar tvf archive | sed -n 's/.*test_link link to //p'
5695 ) ) >"$at_stdout" 2>"$at_stderr"
5699 at_func_diff_devnull "$at_stderr" || at_failed=:
5700 echo >>"$at_stdout"; $as_echo "Default transform scope
5702 Transforming hard links
5704 Not transforming hard links
5707 $at_diff - "$at_stdout" || at_failed=:
5708 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5710 $at_failed && at_func_log_failure
5714 $as_echo "$at_srcdir/xform-h.at:39:
5718 export TEST_TAR_FORMAT
5719 TAR_OPTIONS=\"-H gnu\"
5724 echo \"hello\" > basedir/test
5725 ln basedir/test basedir/test_link
5728 echo "Default transform scope"
5729 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5730 tar tvf archive | sed -n 's/.*test_link link to //p'
5733 echo "Transforming hard links"
5734 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5735 tar tvf archive | sed -n 's/.*test_link link to //p'
5738 echo "Not transforming hard links"
5739 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5740 tar tvf archive | sed -n 's/.*test_link link to //p'
5743 echo xform-h.at:39 >"$at_check_line_file"
5745 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5751 export TEST_TAR_FORMAT
5752 TAR_OPTIONS="-H gnu"
5757 echo "hello" > basedir/test
5758 ln basedir/test basedir/test_link
5761 echo "Default transform scope"
5762 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5763 tar tvf archive | sed -n 's/.*test_link link to //p'
5766 echo "Transforming hard links"
5767 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5768 tar tvf archive | sed -n 's/.*test_link link to //p'
5771 echo "Not transforming hard links"
5772 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5773 tar tvf archive | sed -n 's/.*test_link link to //p'
5775 ) ) >"$at_stdout" 2>"$at_stder1"
5776 at_func_filter_trace $?
5782 export TEST_TAR_FORMAT
5783 TAR_OPTIONS="-H gnu"
5788 echo "hello" > basedir/test
5789 ln basedir/test basedir/test_link
5792 echo "Default transform scope"
5793 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5794 tar tvf archive | sed -n 's/.*test_link link to //p'
5797 echo "Transforming hard links"
5798 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5799 tar tvf archive | sed -n 's/.*test_link link to //p'
5802 echo "Not transforming hard links"
5803 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5804 tar tvf archive | sed -n 's/.*test_link link to //p'
5806 ) ) >"$at_stdout" 2>"$at_stderr"
5810 at_func_diff_devnull "$at_stderr" || at_failed=:
5811 echo >>"$at_stdout"; $as_echo "Default transform scope
5813 Transforming hard links
5815 Not transforming hard links
5818 $at_diff - "$at_stdout" || at_failed=:
5819 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5821 $at_failed && at_func_log_failure
5830 $at_times_p && times >"$at_times_file"
5831 ) 5>&1 2>&1 | eval $at_tee_pipe
5832 at_status=`cat "$at_status_file"`
5835 # 14. xform01.at:26: transformations and GNU volume labels
5836 at_setup_line='xform01.at:26'
5837 at_desc="transformations and GNU volume labels"
5838 $at_quiet $as_echo_n " 14: $at_desc "
5840 test -f $XFAILFILE && at_xfail=yes
5841 echo "# -*- compilation -*-" >> "$at_group_log"
5843 $as_echo "14. xform01.at:26: testing ..."
5851 $as_echo "$at_srcdir/xform01.at:29:
5855 export TEST_TAR_FORMAT
5856 TAR_OPTIONS=\"-H gnu\"
5861 tar -cf archive.tar -V /label/ file
5864 echo xform01.at:29 >"$at_check_line_file"
5866 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5872 export TEST_TAR_FORMAT
5873 TAR_OPTIONS="-H gnu"
5878 tar -cf archive.tar -V /label/ file
5880 ) ) >"$at_stdout" 2>"$at_stder1"
5881 at_func_filter_trace $?
5887 export TEST_TAR_FORMAT
5888 TAR_OPTIONS="-H gnu"
5893 tar -cf archive.tar -V /label/ file
5895 ) ) >"$at_stdout" 2>"$at_stderr"
5899 at_func_diff_devnull "$at_stderr" || at_failed=:
5900 echo >>"$at_stdout"; $as_echo "/label/
5903 $at_diff - "$at_stdout" || at_failed=:
5904 at_func_check_status 0 $at_status "$at_srcdir/xform01.at:29"
5906 $at_failed && at_func_log_failure
5913 $at_times_p && times >"$at_times_file"
5914 ) 5>&1 2>&1 | eval $at_tee_pipe
5915 at_status=`cat "$at_status_file"`
5918 # 15. exclude.at:23: exclude
5919 at_setup_line='exclude.at:23'
5921 $at_quiet $as_echo_n " 15: $at_desc "
5923 test -f $XFAILFILE && at_xfail=yes
5924 echo "# -*- compilation -*-" >> "$at_group_log"
5926 $as_echo "15. exclude.at:23: testing ..."
5934 $as_echo "$at_srcdir/exclude.at:26:
5937 TEST_TAR_FORMAT=ustar
5938 export TEST_TAR_FORMAT
5939 TAR_OPTIONS=\"-H ustar\"
5944 test -z "`sort < /dev/null 2>&1`" || exit 77
5948 echo blues > dir/blues
5949 echo jazz > dir/jazz
5951 echo tagfile > dir/folk/tagfile
5952 echo sanjuan > dir/folk/sanjuan
5954 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
5955 echo \"test\" > dir/rock/file
5957 for option in exclude-caches exclude-caches-under exclude-caches-all
5959 echo OPTION \$option
5960 tar -cf archive.tar --\$option -v dir 2>err | sort
5963 tar tf archive.tar | sort
5966 for option in exclude-tag exclude-tag-under exclude-tag-all
5968 echo OPTION \$option
5969 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
5972 tar tf archive.tar | sort
5975 echo exclude.at:26 >"$at_check_line_file"
5977 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5982 TEST_TAR_FORMAT=ustar
5983 export TEST_TAR_FORMAT
5984 TAR_OPTIONS="-H ustar"
5989 test -z "`sort < /dev/null 2>&1`" || exit 77
5993 echo blues > dir/blues
5994 echo jazz > dir/jazz
5996 echo tagfile > dir/folk/tagfile
5997 echo sanjuan > dir/folk/sanjuan
5999 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6000 echo "test" > dir/rock/file
6002 for option in exclude-caches exclude-caches-under exclude-caches-all
6005 tar -cf archive.tar --$option -v dir 2>err | sort
6008 tar tf archive.tar | sort
6011 for option in exclude-tag exclude-tag-under exclude-tag-all
6014 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6017 tar tf archive.tar | sort
6019 ) ) >"$at_stdout" 2>"$at_stder1"
6020 at_func_filter_trace $?
6025 TEST_TAR_FORMAT=ustar
6026 export TEST_TAR_FORMAT
6027 TAR_OPTIONS="-H ustar"
6032 test -z "`sort < /dev/null 2>&1`" || exit 77
6036 echo blues > dir/blues
6037 echo jazz > dir/jazz
6039 echo tagfile > dir/folk/tagfile
6040 echo sanjuan > dir/folk/sanjuan
6042 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6043 echo "test" > dir/rock/file
6045 for option in exclude-caches exclude-caches-under exclude-caches-all
6048 tar -cf archive.tar --$option -v dir 2>err | sort
6051 tar tf archive.tar | sort
6054 for option in exclude-tag exclude-tag-under exclude-tag-all
6057 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6060 tar tf archive.tar | sort
6062 ) ) >"$at_stdout" 2>"$at_stderr"
6066 at_func_diff_devnull "$at_stderr" || at_failed=:
6067 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
6075 dir/rock/CACHEDIR.TAG
6076 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6085 dir/rock/CACHEDIR.TAG
6086 OPTION exclude-caches-under
6094 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6103 OPTION exclude-caches-all
6110 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
6125 dir/rock/CACHEDIR.TAG
6127 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6135 dir/rock/CACHEDIR.TAG
6137 OPTION exclude-tag-under
6143 dir/rock/CACHEDIR.TAG
6145 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6152 dir/rock/CACHEDIR.TAG
6154 OPTION exclude-tag-all
6159 dir/rock/CACHEDIR.TAG
6161 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
6167 dir/rock/CACHEDIR.TAG
6170 $at_diff - "$at_stdout" || at_failed=:
6171 at_func_check_status 0 $at_status "$at_srcdir/exclude.at:26"
6173 $at_failed && at_func_log_failure
6180 $at_times_p && times >"$at_times_file"
6181 ) 5>&1 2>&1 | eval $at_tee_pipe
6182 at_status=`cat "$at_status_file"`
6185 # 16. exclude01.at:17: exclude wildcards
6186 at_setup_line='exclude01.at:17'
6187 at_desc="exclude wildcards"
6188 $at_quiet $as_echo_n " 16: $at_desc "
6190 test -f $XFAILFILE && at_xfail=yes
6191 echo "# -*- compilation -*-" >> "$at_group_log"
6193 $as_echo "16. exclude01.at:17: testing ..."
6201 $as_echo "$at_srcdir/exclude01.at:20:
6205 export TEST_TAR_FORMAT
6206 TAR_OPTIONS=\"-H v7\"
6211 test -z "`sort < /dev/null 2>&1`" || exit 77
6215 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6216 touch testdir/dir1/file1
6217 touch testdir/dir1/\\*
6218 touch testdir/dir2/file2
6219 touch testdir/dir2/\\*
6220 touch testdir/dir3/file3
6221 touch testdir/dir3/\\*
6223 tar cf archive --exclude=testdir/dir1/\\* \\
6225 --exclude=testdir/dir2/\\* \\
6227 --exclude=testdir/dir3/\\* \\
6229 tar tf archive | sort
6232 tar cf archive testdir
6233 tar t \"testdir/dir1/*\" -f archive | sort
6236 tar cf archive testdir/dir1
6237 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6240 tar cf archive testdir
6241 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6245 echo exclude01.at:20 >"$at_check_line_file"
6247 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6253 export TEST_TAR_FORMAT
6259 test -z "`sort < /dev/null 2>&1`" || exit 77
6263 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6264 touch testdir/dir1/file1
6265 touch testdir/dir1/\*
6266 touch testdir/dir2/file2
6267 touch testdir/dir2/\*
6268 touch testdir/dir3/file3
6269 touch testdir/dir3/\*
6271 tar cf archive --exclude=testdir/dir1/\* \
6273 --exclude=testdir/dir2/\* \
6275 --exclude=testdir/dir3/\* \
6277 tar tf archive | sort
6280 tar cf archive testdir
6281 tar t "testdir/dir1/*" -f archive | sort
6284 tar cf archive testdir/dir1
6285 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6288 tar cf archive testdir
6289 tar t --wildcards "testdir/dir1/*" -f archive | sort
6292 ) ) >"$at_stdout" 2>"$at_stder1"
6293 at_func_filter_trace $?
6299 export TEST_TAR_FORMAT
6305 test -z "`sort < /dev/null 2>&1`" || exit 77
6309 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6310 touch testdir/dir1/file1
6311 touch testdir/dir1/\*
6312 touch testdir/dir2/file2
6313 touch testdir/dir2/\*
6314 touch testdir/dir3/file3
6315 touch testdir/dir3/\*
6317 tar cf archive --exclude=testdir/dir1/\* \
6319 --exclude=testdir/dir2/\* \
6321 --exclude=testdir/dir3/\* \
6323 tar tf archive | sort
6326 tar cf archive testdir
6327 tar t "testdir/dir1/*" -f archive | sort
6330 tar cf archive testdir/dir1
6331 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6334 tar cf archive testdir
6335 tar t --wildcards "testdir/dir1/*" -f archive | sort
6338 ) ) >"$at_stdout" 2>"$at_stderr"
6342 at_func_diff_devnull "$at_stderr" || at_failed=:
6343 echo >>"$at_stdout"; $as_echo "testdir/
6356 $at_diff - "$at_stdout" || at_failed=:
6357 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6359 $at_failed && at_func_log_failure
6363 $as_echo "$at_srcdir/exclude01.at:20:
6366 TEST_TAR_FORMAT=oldgnu
6367 export TEST_TAR_FORMAT
6368 TAR_OPTIONS=\"-H oldgnu\"
6373 test -z "`sort < /dev/null 2>&1`" || exit 77
6377 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6378 touch testdir/dir1/file1
6379 touch testdir/dir1/\\*
6380 touch testdir/dir2/file2
6381 touch testdir/dir2/\\*
6382 touch testdir/dir3/file3
6383 touch testdir/dir3/\\*
6385 tar cf archive --exclude=testdir/dir1/\\* \\
6387 --exclude=testdir/dir2/\\* \\
6389 --exclude=testdir/dir3/\\* \\
6391 tar tf archive | sort
6394 tar cf archive testdir
6395 tar t \"testdir/dir1/*\" -f archive | sort
6398 tar cf archive testdir/dir1
6399 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6402 tar cf archive testdir
6403 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6407 echo exclude01.at:20 >"$at_check_line_file"
6409 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6414 TEST_TAR_FORMAT=oldgnu
6415 export TEST_TAR_FORMAT
6416 TAR_OPTIONS="-H oldgnu"
6421 test -z "`sort < /dev/null 2>&1`" || exit 77
6425 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6426 touch testdir/dir1/file1
6427 touch testdir/dir1/\*
6428 touch testdir/dir2/file2
6429 touch testdir/dir2/\*
6430 touch testdir/dir3/file3
6431 touch testdir/dir3/\*
6433 tar cf archive --exclude=testdir/dir1/\* \
6435 --exclude=testdir/dir2/\* \
6437 --exclude=testdir/dir3/\* \
6439 tar tf archive | sort
6442 tar cf archive testdir
6443 tar t "testdir/dir1/*" -f archive | sort
6446 tar cf archive testdir/dir1
6447 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6450 tar cf archive testdir
6451 tar t --wildcards "testdir/dir1/*" -f archive | sort
6454 ) ) >"$at_stdout" 2>"$at_stder1"
6455 at_func_filter_trace $?
6460 TEST_TAR_FORMAT=oldgnu
6461 export TEST_TAR_FORMAT
6462 TAR_OPTIONS="-H oldgnu"
6467 test -z "`sort < /dev/null 2>&1`" || exit 77
6471 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6472 touch testdir/dir1/file1
6473 touch testdir/dir1/\*
6474 touch testdir/dir2/file2
6475 touch testdir/dir2/\*
6476 touch testdir/dir3/file3
6477 touch testdir/dir3/\*
6479 tar cf archive --exclude=testdir/dir1/\* \
6481 --exclude=testdir/dir2/\* \
6483 --exclude=testdir/dir3/\* \
6485 tar tf archive | sort
6488 tar cf archive testdir
6489 tar t "testdir/dir1/*" -f archive | sort
6492 tar cf archive testdir/dir1
6493 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6496 tar cf archive testdir
6497 tar t --wildcards "testdir/dir1/*" -f archive | sort
6500 ) ) >"$at_stdout" 2>"$at_stderr"
6504 at_func_diff_devnull "$at_stderr" || at_failed=:
6505 echo >>"$at_stdout"; $as_echo "testdir/
6518 $at_diff - "$at_stdout" || at_failed=:
6519 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6521 $at_failed && at_func_log_failure
6525 $as_echo "$at_srcdir/exclude01.at:20:
6528 TEST_TAR_FORMAT=ustar
6529 export TEST_TAR_FORMAT
6530 TAR_OPTIONS=\"-H ustar\"
6535 test -z "`sort < /dev/null 2>&1`" || exit 77
6539 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6540 touch testdir/dir1/file1
6541 touch testdir/dir1/\\*
6542 touch testdir/dir2/file2
6543 touch testdir/dir2/\\*
6544 touch testdir/dir3/file3
6545 touch testdir/dir3/\\*
6547 tar cf archive --exclude=testdir/dir1/\\* \\
6549 --exclude=testdir/dir2/\\* \\
6551 --exclude=testdir/dir3/\\* \\
6553 tar tf archive | sort
6556 tar cf archive testdir
6557 tar t \"testdir/dir1/*\" -f archive | sort
6560 tar cf archive testdir/dir1
6561 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6564 tar cf archive testdir
6565 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6569 echo exclude01.at:20 >"$at_check_line_file"
6571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6576 TEST_TAR_FORMAT=ustar
6577 export TEST_TAR_FORMAT
6578 TAR_OPTIONS="-H ustar"
6583 test -z "`sort < /dev/null 2>&1`" || exit 77
6587 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6588 touch testdir/dir1/file1
6589 touch testdir/dir1/\*
6590 touch testdir/dir2/file2
6591 touch testdir/dir2/\*
6592 touch testdir/dir3/file3
6593 touch testdir/dir3/\*
6595 tar cf archive --exclude=testdir/dir1/\* \
6597 --exclude=testdir/dir2/\* \
6599 --exclude=testdir/dir3/\* \
6601 tar tf archive | sort
6604 tar cf archive testdir
6605 tar t "testdir/dir1/*" -f archive | sort
6608 tar cf archive testdir/dir1
6609 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6612 tar cf archive testdir
6613 tar t --wildcards "testdir/dir1/*" -f archive | sort
6616 ) ) >"$at_stdout" 2>"$at_stder1"
6617 at_func_filter_trace $?
6622 TEST_TAR_FORMAT=ustar
6623 export TEST_TAR_FORMAT
6624 TAR_OPTIONS="-H ustar"
6629 test -z "`sort < /dev/null 2>&1`" || exit 77
6633 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6634 touch testdir/dir1/file1
6635 touch testdir/dir1/\*
6636 touch testdir/dir2/file2
6637 touch testdir/dir2/\*
6638 touch testdir/dir3/file3
6639 touch testdir/dir3/\*
6641 tar cf archive --exclude=testdir/dir1/\* \
6643 --exclude=testdir/dir2/\* \
6645 --exclude=testdir/dir3/\* \
6647 tar tf archive | sort
6650 tar cf archive testdir
6651 tar t "testdir/dir1/*" -f archive | sort
6654 tar cf archive testdir/dir1
6655 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6658 tar cf archive testdir
6659 tar t --wildcards "testdir/dir1/*" -f archive | sort
6662 ) ) >"$at_stdout" 2>"$at_stderr"
6666 at_func_diff_devnull "$at_stderr" || at_failed=:
6667 echo >>"$at_stdout"; $as_echo "testdir/
6680 $at_diff - "$at_stdout" || at_failed=:
6681 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6683 $at_failed && at_func_log_failure
6687 $as_echo "$at_srcdir/exclude01.at:20:
6690 TEST_TAR_FORMAT=posix
6691 export TEST_TAR_FORMAT
6692 TAR_OPTIONS=\"-H posix\"
6697 test -z "`sort < /dev/null 2>&1`" || exit 77
6701 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6702 touch testdir/dir1/file1
6703 touch testdir/dir1/\\*
6704 touch testdir/dir2/file2
6705 touch testdir/dir2/\\*
6706 touch testdir/dir3/file3
6707 touch testdir/dir3/\\*
6709 tar cf archive --exclude=testdir/dir1/\\* \\
6711 --exclude=testdir/dir2/\\* \\
6713 --exclude=testdir/dir3/\\* \\
6715 tar tf archive | sort
6718 tar cf archive testdir
6719 tar t \"testdir/dir1/*\" -f archive | sort
6722 tar cf archive testdir/dir1
6723 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6726 tar cf archive testdir
6727 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6731 echo exclude01.at:20 >"$at_check_line_file"
6733 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6738 TEST_TAR_FORMAT=posix
6739 export TEST_TAR_FORMAT
6740 TAR_OPTIONS="-H posix"
6745 test -z "`sort < /dev/null 2>&1`" || exit 77
6749 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6750 touch testdir/dir1/file1
6751 touch testdir/dir1/\*
6752 touch testdir/dir2/file2
6753 touch testdir/dir2/\*
6754 touch testdir/dir3/file3
6755 touch testdir/dir3/\*
6757 tar cf archive --exclude=testdir/dir1/\* \
6759 --exclude=testdir/dir2/\* \
6761 --exclude=testdir/dir3/\* \
6763 tar tf archive | sort
6766 tar cf archive testdir
6767 tar t "testdir/dir1/*" -f archive | sort
6770 tar cf archive testdir/dir1
6771 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6774 tar cf archive testdir
6775 tar t --wildcards "testdir/dir1/*" -f archive | sort
6778 ) ) >"$at_stdout" 2>"$at_stder1"
6779 at_func_filter_trace $?
6784 TEST_TAR_FORMAT=posix
6785 export TEST_TAR_FORMAT
6786 TAR_OPTIONS="-H posix"
6791 test -z "`sort < /dev/null 2>&1`" || exit 77
6795 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6796 touch testdir/dir1/file1
6797 touch testdir/dir1/\*
6798 touch testdir/dir2/file2
6799 touch testdir/dir2/\*
6800 touch testdir/dir3/file3
6801 touch testdir/dir3/\*
6803 tar cf archive --exclude=testdir/dir1/\* \
6805 --exclude=testdir/dir2/\* \
6807 --exclude=testdir/dir3/\* \
6809 tar tf archive | sort
6812 tar cf archive testdir
6813 tar t "testdir/dir1/*" -f archive | sort
6816 tar cf archive testdir/dir1
6817 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6820 tar cf archive testdir
6821 tar t --wildcards "testdir/dir1/*" -f archive | sort
6824 ) ) >"$at_stdout" 2>"$at_stderr"
6828 at_func_diff_devnull "$at_stderr" || at_failed=:
6829 echo >>"$at_stdout"; $as_echo "testdir/
6842 $at_diff - "$at_stdout" || at_failed=:
6843 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6845 $at_failed && at_func_log_failure
6849 $as_echo "$at_srcdir/exclude01.at:20:
6853 export TEST_TAR_FORMAT
6854 TAR_OPTIONS=\"-H gnu\"
6859 test -z "`sort < /dev/null 2>&1`" || exit 77
6863 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6864 touch testdir/dir1/file1
6865 touch testdir/dir1/\\*
6866 touch testdir/dir2/file2
6867 touch testdir/dir2/\\*
6868 touch testdir/dir3/file3
6869 touch testdir/dir3/\\*
6871 tar cf archive --exclude=testdir/dir1/\\* \\
6873 --exclude=testdir/dir2/\\* \\
6875 --exclude=testdir/dir3/\\* \\
6877 tar tf archive | sort
6880 tar cf archive testdir
6881 tar t \"testdir/dir1/*\" -f archive | sort
6884 tar cf archive testdir/dir1
6885 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6888 tar cf archive testdir
6889 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6893 echo exclude01.at:20 >"$at_check_line_file"
6895 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6901 export TEST_TAR_FORMAT
6902 TAR_OPTIONS="-H gnu"
6907 test -z "`sort < /dev/null 2>&1`" || exit 77
6911 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6912 touch testdir/dir1/file1
6913 touch testdir/dir1/\*
6914 touch testdir/dir2/file2
6915 touch testdir/dir2/\*
6916 touch testdir/dir3/file3
6917 touch testdir/dir3/\*
6919 tar cf archive --exclude=testdir/dir1/\* \
6921 --exclude=testdir/dir2/\* \
6923 --exclude=testdir/dir3/\* \
6925 tar tf archive | sort
6928 tar cf archive testdir
6929 tar t "testdir/dir1/*" -f archive | sort
6932 tar cf archive testdir/dir1
6933 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6936 tar cf archive testdir
6937 tar t --wildcards "testdir/dir1/*" -f archive | sort
6940 ) ) >"$at_stdout" 2>"$at_stder1"
6941 at_func_filter_trace $?
6947 export TEST_TAR_FORMAT
6948 TAR_OPTIONS="-H gnu"
6953 test -z "`sort < /dev/null 2>&1`" || exit 77
6957 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6958 touch testdir/dir1/file1
6959 touch testdir/dir1/\*
6960 touch testdir/dir2/file2
6961 touch testdir/dir2/\*
6962 touch testdir/dir3/file3
6963 touch testdir/dir3/\*
6965 tar cf archive --exclude=testdir/dir1/\* \
6967 --exclude=testdir/dir2/\* \
6969 --exclude=testdir/dir3/\* \
6971 tar tf archive | sort
6974 tar cf archive testdir
6975 tar t "testdir/dir1/*" -f archive | sort
6978 tar cf archive testdir/dir1
6979 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6982 tar cf archive testdir
6983 tar t --wildcards "testdir/dir1/*" -f archive | sort
6986 ) ) >"$at_stdout" 2>"$at_stderr"
6990 at_func_diff_devnull "$at_stderr" || at_failed=:
6991 echo >>"$at_stdout"; $as_echo "testdir/
7004 $at_diff - "$at_stdout" || at_failed=:
7005 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
7007 $at_failed && at_func_log_failure
7014 $at_times_p && times >"$at_times_file"
7015 ) 5>&1 2>&1 | eval $at_tee_pipe
7016 at_status=`cat "$at_status_file"`
7019 # 17. exclude02.at:17: exclude: anchoring
7020 at_setup_line='exclude02.at:17'
7021 at_desc="exclude: anchoring"
7022 $at_quiet $as_echo_n " 17: $at_desc "
7024 test -f $XFAILFILE && at_xfail=yes
7025 echo "# -*- compilation -*-" >> "$at_group_log"
7027 $as_echo "17. exclude02.at:17: testing ..."
7035 $as_echo "$at_srcdir/exclude02.at:20:
7039 export TEST_TAR_FORMAT
7040 TAR_OPTIONS=\"-H v7\"
7045 test -z "`sort < /dev/null 2>&1`" || exit 77
7051 touch testdir/file1.txt
7054 tar cf archive --exclude=\"file1.txt\" \\
7056 tar tf archive | sort
7059 tar cf archive --no-anchored \\
7060 --exclude=\"file1.txt\" \\
7062 tar tf archive | sort
7065 tar cf archive --anchored \\
7066 --exclude=\"file1.txt\" \\
7068 tar tf archive | sort
7071 tar cf archive testdir file1.txt
7072 tar t \"file1.txt\" -f archive | sort
7075 tar t --no-anchored \"file1.txt\" -f archive | sort
7078 tar t --anchored \"file1.txt\" -f archive | sort
7080 rm -rf testdir file1.txt
7083 echo exclude02.at:20 >"$at_check_line_file"
7085 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7091 export TEST_TAR_FORMAT
7097 test -z "`sort < /dev/null 2>&1`" || exit 77
7103 touch testdir/file1.txt
7106 tar cf archive --exclude="file1.txt" \
7108 tar tf archive | sort
7111 tar cf archive --no-anchored \
7112 --exclude="file1.txt" \
7114 tar tf archive | sort
7117 tar cf archive --anchored \
7118 --exclude="file1.txt" \
7120 tar tf archive | sort
7123 tar cf archive testdir file1.txt
7124 tar t "file1.txt" -f archive | sort
7127 tar t --no-anchored "file1.txt" -f archive | sort
7130 tar t --anchored "file1.txt" -f archive | sort
7132 rm -rf testdir file1.txt
7134 ) ) >"$at_stdout" 2>"$at_stder1"
7135 at_func_filter_trace $?
7141 export TEST_TAR_FORMAT
7147 test -z "`sort < /dev/null 2>&1`" || exit 77
7153 touch testdir/file1.txt
7156 tar cf archive --exclude="file1.txt" \
7158 tar tf archive | sort
7161 tar cf archive --no-anchored \
7162 --exclude="file1.txt" \
7164 tar tf archive | sort
7167 tar cf archive --anchored \
7168 --exclude="file1.txt" \
7170 tar tf archive | sort
7173 tar cf archive testdir file1.txt
7174 tar t "file1.txt" -f archive | sort
7177 tar t --no-anchored "file1.txt" -f archive | sort
7180 tar t --anchored "file1.txt" -f archive | sort
7182 rm -rf testdir file1.txt
7184 ) ) >"$at_stdout" 2>"$at_stderr"
7188 at_func_diff_devnull "$at_stderr" || at_failed=:
7189 echo >>"$at_stdout"; $as_echo "testdir/
7206 $at_diff - "$at_stdout" || at_failed=:
7207 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7209 $at_failed && at_func_log_failure
7213 $as_echo "$at_srcdir/exclude02.at:20:
7216 TEST_TAR_FORMAT=oldgnu
7217 export TEST_TAR_FORMAT
7218 TAR_OPTIONS=\"-H oldgnu\"
7223 test -z "`sort < /dev/null 2>&1`" || exit 77
7229 touch testdir/file1.txt
7232 tar cf archive --exclude=\"file1.txt\" \\
7234 tar tf archive | sort
7237 tar cf archive --no-anchored \\
7238 --exclude=\"file1.txt\" \\
7240 tar tf archive | sort
7243 tar cf archive --anchored \\
7244 --exclude=\"file1.txt\" \\
7246 tar tf archive | sort
7249 tar cf archive testdir file1.txt
7250 tar t \"file1.txt\" -f archive | sort
7253 tar t --no-anchored \"file1.txt\" -f archive | sort
7256 tar t --anchored \"file1.txt\" -f archive | sort
7258 rm -rf testdir file1.txt
7261 echo exclude02.at:20 >"$at_check_line_file"
7263 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7268 TEST_TAR_FORMAT=oldgnu
7269 export TEST_TAR_FORMAT
7270 TAR_OPTIONS="-H oldgnu"
7275 test -z "`sort < /dev/null 2>&1`" || exit 77
7281 touch testdir/file1.txt
7284 tar cf archive --exclude="file1.txt" \
7286 tar tf archive | sort
7289 tar cf archive --no-anchored \
7290 --exclude="file1.txt" \
7292 tar tf archive | sort
7295 tar cf archive --anchored \
7296 --exclude="file1.txt" \
7298 tar tf archive | sort
7301 tar cf archive testdir file1.txt
7302 tar t "file1.txt" -f archive | sort
7305 tar t --no-anchored "file1.txt" -f archive | sort
7308 tar t --anchored "file1.txt" -f archive | sort
7310 rm -rf testdir file1.txt
7312 ) ) >"$at_stdout" 2>"$at_stder1"
7313 at_func_filter_trace $?
7318 TEST_TAR_FORMAT=oldgnu
7319 export TEST_TAR_FORMAT
7320 TAR_OPTIONS="-H oldgnu"
7325 test -z "`sort < /dev/null 2>&1`" || exit 77
7331 touch testdir/file1.txt
7334 tar cf archive --exclude="file1.txt" \
7336 tar tf archive | sort
7339 tar cf archive --no-anchored \
7340 --exclude="file1.txt" \
7342 tar tf archive | sort
7345 tar cf archive --anchored \
7346 --exclude="file1.txt" \
7348 tar tf archive | sort
7351 tar cf archive testdir file1.txt
7352 tar t "file1.txt" -f archive | sort
7355 tar t --no-anchored "file1.txt" -f archive | sort
7358 tar t --anchored "file1.txt" -f archive | sort
7360 rm -rf testdir file1.txt
7362 ) ) >"$at_stdout" 2>"$at_stderr"
7366 at_func_diff_devnull "$at_stderr" || at_failed=:
7367 echo >>"$at_stdout"; $as_echo "testdir/
7384 $at_diff - "$at_stdout" || at_failed=:
7385 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7387 $at_failed && at_func_log_failure
7391 $as_echo "$at_srcdir/exclude02.at:20:
7394 TEST_TAR_FORMAT=ustar
7395 export TEST_TAR_FORMAT
7396 TAR_OPTIONS=\"-H ustar\"
7401 test -z "`sort < /dev/null 2>&1`" || exit 77
7407 touch testdir/file1.txt
7410 tar cf archive --exclude=\"file1.txt\" \\
7412 tar tf archive | sort
7415 tar cf archive --no-anchored \\
7416 --exclude=\"file1.txt\" \\
7418 tar tf archive | sort
7421 tar cf archive --anchored \\
7422 --exclude=\"file1.txt\" \\
7424 tar tf archive | sort
7427 tar cf archive testdir file1.txt
7428 tar t \"file1.txt\" -f archive | sort
7431 tar t --no-anchored \"file1.txt\" -f archive | sort
7434 tar t --anchored \"file1.txt\" -f archive | sort
7436 rm -rf testdir file1.txt
7439 echo exclude02.at:20 >"$at_check_line_file"
7441 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7446 TEST_TAR_FORMAT=ustar
7447 export TEST_TAR_FORMAT
7448 TAR_OPTIONS="-H ustar"
7453 test -z "`sort < /dev/null 2>&1`" || exit 77
7459 touch testdir/file1.txt
7462 tar cf archive --exclude="file1.txt" \
7464 tar tf archive | sort
7467 tar cf archive --no-anchored \
7468 --exclude="file1.txt" \
7470 tar tf archive | sort
7473 tar cf archive --anchored \
7474 --exclude="file1.txt" \
7476 tar tf archive | sort
7479 tar cf archive testdir file1.txt
7480 tar t "file1.txt" -f archive | sort
7483 tar t --no-anchored "file1.txt" -f archive | sort
7486 tar t --anchored "file1.txt" -f archive | sort
7488 rm -rf testdir file1.txt
7490 ) ) >"$at_stdout" 2>"$at_stder1"
7491 at_func_filter_trace $?
7496 TEST_TAR_FORMAT=ustar
7497 export TEST_TAR_FORMAT
7498 TAR_OPTIONS="-H ustar"
7503 test -z "`sort < /dev/null 2>&1`" || exit 77
7509 touch testdir/file1.txt
7512 tar cf archive --exclude="file1.txt" \
7514 tar tf archive | sort
7517 tar cf archive --no-anchored \
7518 --exclude="file1.txt" \
7520 tar tf archive | sort
7523 tar cf archive --anchored \
7524 --exclude="file1.txt" \
7526 tar tf archive | sort
7529 tar cf archive testdir file1.txt
7530 tar t "file1.txt" -f archive | sort
7533 tar t --no-anchored "file1.txt" -f archive | sort
7536 tar t --anchored "file1.txt" -f archive | sort
7538 rm -rf testdir file1.txt
7540 ) ) >"$at_stdout" 2>"$at_stderr"
7544 at_func_diff_devnull "$at_stderr" || at_failed=:
7545 echo >>"$at_stdout"; $as_echo "testdir/
7562 $at_diff - "$at_stdout" || at_failed=:
7563 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7565 $at_failed && at_func_log_failure
7569 $as_echo "$at_srcdir/exclude02.at:20:
7572 TEST_TAR_FORMAT=posix
7573 export TEST_TAR_FORMAT
7574 TAR_OPTIONS=\"-H posix\"
7579 test -z "`sort < /dev/null 2>&1`" || exit 77
7585 touch testdir/file1.txt
7588 tar cf archive --exclude=\"file1.txt\" \\
7590 tar tf archive | sort
7593 tar cf archive --no-anchored \\
7594 --exclude=\"file1.txt\" \\
7596 tar tf archive | sort
7599 tar cf archive --anchored \\
7600 --exclude=\"file1.txt\" \\
7602 tar tf archive | sort
7605 tar cf archive testdir file1.txt
7606 tar t \"file1.txt\" -f archive | sort
7609 tar t --no-anchored \"file1.txt\" -f archive | sort
7612 tar t --anchored \"file1.txt\" -f archive | sort
7614 rm -rf testdir file1.txt
7617 echo exclude02.at:20 >"$at_check_line_file"
7619 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7624 TEST_TAR_FORMAT=posix
7625 export TEST_TAR_FORMAT
7626 TAR_OPTIONS="-H posix"
7631 test -z "`sort < /dev/null 2>&1`" || exit 77
7637 touch testdir/file1.txt
7640 tar cf archive --exclude="file1.txt" \
7642 tar tf archive | sort
7645 tar cf archive --no-anchored \
7646 --exclude="file1.txt" \
7648 tar tf archive | sort
7651 tar cf archive --anchored \
7652 --exclude="file1.txt" \
7654 tar tf archive | sort
7657 tar cf archive testdir file1.txt
7658 tar t "file1.txt" -f archive | sort
7661 tar t --no-anchored "file1.txt" -f archive | sort
7664 tar t --anchored "file1.txt" -f archive | sort
7666 rm -rf testdir file1.txt
7668 ) ) >"$at_stdout" 2>"$at_stder1"
7669 at_func_filter_trace $?
7674 TEST_TAR_FORMAT=posix
7675 export TEST_TAR_FORMAT
7676 TAR_OPTIONS="-H posix"
7681 test -z "`sort < /dev/null 2>&1`" || exit 77
7687 touch testdir/file1.txt
7690 tar cf archive --exclude="file1.txt" \
7692 tar tf archive | sort
7695 tar cf archive --no-anchored \
7696 --exclude="file1.txt" \
7698 tar tf archive | sort
7701 tar cf archive --anchored \
7702 --exclude="file1.txt" \
7704 tar tf archive | sort
7707 tar cf archive testdir file1.txt
7708 tar t "file1.txt" -f archive | sort
7711 tar t --no-anchored "file1.txt" -f archive | sort
7714 tar t --anchored "file1.txt" -f archive | sort
7716 rm -rf testdir file1.txt
7718 ) ) >"$at_stdout" 2>"$at_stderr"
7722 at_func_diff_devnull "$at_stderr" || at_failed=:
7723 echo >>"$at_stdout"; $as_echo "testdir/
7740 $at_diff - "$at_stdout" || at_failed=:
7741 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7743 $at_failed && at_func_log_failure
7747 $as_echo "$at_srcdir/exclude02.at:20:
7751 export TEST_TAR_FORMAT
7752 TAR_OPTIONS=\"-H gnu\"
7757 test -z "`sort < /dev/null 2>&1`" || exit 77
7763 touch testdir/file1.txt
7766 tar cf archive --exclude=\"file1.txt\" \\
7768 tar tf archive | sort
7771 tar cf archive --no-anchored \\
7772 --exclude=\"file1.txt\" \\
7774 tar tf archive | sort
7777 tar cf archive --anchored \\
7778 --exclude=\"file1.txt\" \\
7780 tar tf archive | sort
7783 tar cf archive testdir file1.txt
7784 tar t \"file1.txt\" -f archive | sort
7787 tar t --no-anchored \"file1.txt\" -f archive | sort
7790 tar t --anchored \"file1.txt\" -f archive | sort
7792 rm -rf testdir file1.txt
7795 echo exclude02.at:20 >"$at_check_line_file"
7797 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7803 export TEST_TAR_FORMAT
7804 TAR_OPTIONS="-H gnu"
7809 test -z "`sort < /dev/null 2>&1`" || exit 77
7815 touch testdir/file1.txt
7818 tar cf archive --exclude="file1.txt" \
7820 tar tf archive | sort
7823 tar cf archive --no-anchored \
7824 --exclude="file1.txt" \
7826 tar tf archive | sort
7829 tar cf archive --anchored \
7830 --exclude="file1.txt" \
7832 tar tf archive | sort
7835 tar cf archive testdir file1.txt
7836 tar t "file1.txt" -f archive | sort
7839 tar t --no-anchored "file1.txt" -f archive | sort
7842 tar t --anchored "file1.txt" -f archive | sort
7844 rm -rf testdir file1.txt
7846 ) ) >"$at_stdout" 2>"$at_stder1"
7847 at_func_filter_trace $?
7853 export TEST_TAR_FORMAT
7854 TAR_OPTIONS="-H gnu"
7859 test -z "`sort < /dev/null 2>&1`" || exit 77
7865 touch testdir/file1.txt
7868 tar cf archive --exclude="file1.txt" \
7870 tar tf archive | sort
7873 tar cf archive --no-anchored \
7874 --exclude="file1.txt" \
7876 tar tf archive | sort
7879 tar cf archive --anchored \
7880 --exclude="file1.txt" \
7882 tar tf archive | sort
7885 tar cf archive testdir file1.txt
7886 tar t "file1.txt" -f archive | sort
7889 tar t --no-anchored "file1.txt" -f archive | sort
7892 tar t --anchored "file1.txt" -f archive | sort
7894 rm -rf testdir file1.txt
7896 ) ) >"$at_stdout" 2>"$at_stderr"
7900 at_func_diff_devnull "$at_stderr" || at_failed=:
7901 echo >>"$at_stdout"; $as_echo "testdir/
7918 $at_diff - "$at_stdout" || at_failed=:
7919 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7921 $at_failed && at_func_log_failure
7928 $at_times_p && times >"$at_times_file"
7929 ) 5>&1 2>&1 | eval $at_tee_pipe
7930 at_status=`cat "$at_status_file"`
7933 # 18. exclude03.at:17: exclude: wildcards match slash
7934 at_setup_line='exclude03.at:17'
7935 at_desc="exclude: wildcards match slash"
7936 $at_quiet $as_echo_n " 18: $at_desc "
7938 test -f $XFAILFILE && at_xfail=yes
7939 echo "# -*- compilation -*-" >> "$at_group_log"
7941 $as_echo "18. exclude03.at:17: testing ..."
7949 $as_echo "$at_srcdir/exclude03.at:20:
7953 export TEST_TAR_FORMAT
7954 TAR_OPTIONS=\"-H v7\"
7959 test -z "`sort < /dev/null 2>&1`" || exit 77
7963 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7964 touch testdir/\\*f\\*1
7965 touch testdir/dir1/file1
7966 touch testdir/dir1/\\*
7967 touch testdir/dir2/file2
7968 touch testdir/dir2/\\*
7969 touch testdir/dir3/file3
7970 touch testdir/dir3/\\*
7972 tar cf archive --exclude='testdir*f*1' \\
7973 --no-wildcards-match-slash \\
7974 --exclude='testdir*f*2' \\
7975 --wildcards-match-slash \\
7976 --exclude='testdir*f*3' \\
7978 tar tf archive | sort
7981 tar cf archive testdir
7982 tar t --wildcards 'testdir/*f*1' -f archive | sort
7985 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7988 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7993 echo exclude03.at:20 >"$at_check_line_file"
7995 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8001 export TEST_TAR_FORMAT
8007 test -z "`sort < /dev/null 2>&1`" || exit 77
8011 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8012 touch testdir/\*f\*1
8013 touch testdir/dir1/file1
8014 touch testdir/dir1/\*
8015 touch testdir/dir2/file2
8016 touch testdir/dir2/\*
8017 touch testdir/dir3/file3
8018 touch testdir/dir3/\*
8020 tar cf archive --exclude='testdir*f*1' \
8021 --no-wildcards-match-slash \
8022 --exclude='testdir*f*2' \
8023 --wildcards-match-slash \
8024 --exclude='testdir*f*3' \
8026 tar tf archive | sort
8029 tar cf archive testdir
8030 tar t --wildcards 'testdir/*f*1' -f archive | sort
8033 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8036 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8040 ) ) >"$at_stdout" 2>"$at_stder1"
8041 at_func_filter_trace $?
8047 export TEST_TAR_FORMAT
8053 test -z "`sort < /dev/null 2>&1`" || exit 77
8057 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8058 touch testdir/\*f\*1
8059 touch testdir/dir1/file1
8060 touch testdir/dir1/\*
8061 touch testdir/dir2/file2
8062 touch testdir/dir2/\*
8063 touch testdir/dir3/file3
8064 touch testdir/dir3/\*
8066 tar cf archive --exclude='testdir*f*1' \
8067 --no-wildcards-match-slash \
8068 --exclude='testdir*f*2' \
8069 --wildcards-match-slash \
8070 --exclude='testdir*f*3' \
8072 tar tf archive | sort
8075 tar cf archive testdir
8076 tar t --wildcards 'testdir/*f*1' -f archive | sort
8079 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8082 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8086 ) ) >"$at_stdout" 2>"$at_stderr"
8090 at_func_diff_devnull "$at_stderr" || at_failed=:
8091 echo >>"$at_stdout"; $as_echo "testdir/
8108 $at_diff - "$at_stdout" || at_failed=:
8109 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8111 $at_failed && at_func_log_failure
8115 $as_echo "$at_srcdir/exclude03.at:20:
8118 TEST_TAR_FORMAT=oldgnu
8119 export TEST_TAR_FORMAT
8120 TAR_OPTIONS=\"-H oldgnu\"
8125 test -z "`sort < /dev/null 2>&1`" || exit 77
8129 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8130 touch testdir/\\*f\\*1
8131 touch testdir/dir1/file1
8132 touch testdir/dir1/\\*
8133 touch testdir/dir2/file2
8134 touch testdir/dir2/\\*
8135 touch testdir/dir3/file3
8136 touch testdir/dir3/\\*
8138 tar cf archive --exclude='testdir*f*1' \\
8139 --no-wildcards-match-slash \\
8140 --exclude='testdir*f*2' \\
8141 --wildcards-match-slash \\
8142 --exclude='testdir*f*3' \\
8144 tar tf archive | sort
8147 tar cf archive testdir
8148 tar t --wildcards 'testdir/*f*1' -f archive | sort
8151 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8154 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8159 echo exclude03.at:20 >"$at_check_line_file"
8161 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8166 TEST_TAR_FORMAT=oldgnu
8167 export TEST_TAR_FORMAT
8168 TAR_OPTIONS="-H oldgnu"
8173 test -z "`sort < /dev/null 2>&1`" || exit 77
8177 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8178 touch testdir/\*f\*1
8179 touch testdir/dir1/file1
8180 touch testdir/dir1/\*
8181 touch testdir/dir2/file2
8182 touch testdir/dir2/\*
8183 touch testdir/dir3/file3
8184 touch testdir/dir3/\*
8186 tar cf archive --exclude='testdir*f*1' \
8187 --no-wildcards-match-slash \
8188 --exclude='testdir*f*2' \
8189 --wildcards-match-slash \
8190 --exclude='testdir*f*3' \
8192 tar tf archive | sort
8195 tar cf archive testdir
8196 tar t --wildcards 'testdir/*f*1' -f archive | sort
8199 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8202 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8206 ) ) >"$at_stdout" 2>"$at_stder1"
8207 at_func_filter_trace $?
8212 TEST_TAR_FORMAT=oldgnu
8213 export TEST_TAR_FORMAT
8214 TAR_OPTIONS="-H oldgnu"
8219 test -z "`sort < /dev/null 2>&1`" || exit 77
8223 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8224 touch testdir/\*f\*1
8225 touch testdir/dir1/file1
8226 touch testdir/dir1/\*
8227 touch testdir/dir2/file2
8228 touch testdir/dir2/\*
8229 touch testdir/dir3/file3
8230 touch testdir/dir3/\*
8232 tar cf archive --exclude='testdir*f*1' \
8233 --no-wildcards-match-slash \
8234 --exclude='testdir*f*2' \
8235 --wildcards-match-slash \
8236 --exclude='testdir*f*3' \
8238 tar tf archive | sort
8241 tar cf archive testdir
8242 tar t --wildcards 'testdir/*f*1' -f archive | sort
8245 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8248 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8252 ) ) >"$at_stdout" 2>"$at_stderr"
8256 at_func_diff_devnull "$at_stderr" || at_failed=:
8257 echo >>"$at_stdout"; $as_echo "testdir/
8274 $at_diff - "$at_stdout" || at_failed=:
8275 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8277 $at_failed && at_func_log_failure
8281 $as_echo "$at_srcdir/exclude03.at:20:
8284 TEST_TAR_FORMAT=ustar
8285 export TEST_TAR_FORMAT
8286 TAR_OPTIONS=\"-H ustar\"
8291 test -z "`sort < /dev/null 2>&1`" || exit 77
8295 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8296 touch testdir/\\*f\\*1
8297 touch testdir/dir1/file1
8298 touch testdir/dir1/\\*
8299 touch testdir/dir2/file2
8300 touch testdir/dir2/\\*
8301 touch testdir/dir3/file3
8302 touch testdir/dir3/\\*
8304 tar cf archive --exclude='testdir*f*1' \\
8305 --no-wildcards-match-slash \\
8306 --exclude='testdir*f*2' \\
8307 --wildcards-match-slash \\
8308 --exclude='testdir*f*3' \\
8310 tar tf archive | sort
8313 tar cf archive testdir
8314 tar t --wildcards 'testdir/*f*1' -f archive | sort
8317 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8320 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8325 echo exclude03.at:20 >"$at_check_line_file"
8327 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8332 TEST_TAR_FORMAT=ustar
8333 export TEST_TAR_FORMAT
8334 TAR_OPTIONS="-H ustar"
8339 test -z "`sort < /dev/null 2>&1`" || exit 77
8343 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8344 touch testdir/\*f\*1
8345 touch testdir/dir1/file1
8346 touch testdir/dir1/\*
8347 touch testdir/dir2/file2
8348 touch testdir/dir2/\*
8349 touch testdir/dir3/file3
8350 touch testdir/dir3/\*
8352 tar cf archive --exclude='testdir*f*1' \
8353 --no-wildcards-match-slash \
8354 --exclude='testdir*f*2' \
8355 --wildcards-match-slash \
8356 --exclude='testdir*f*3' \
8358 tar tf archive | sort
8361 tar cf archive testdir
8362 tar t --wildcards 'testdir/*f*1' -f archive | sort
8365 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8368 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8372 ) ) >"$at_stdout" 2>"$at_stder1"
8373 at_func_filter_trace $?
8378 TEST_TAR_FORMAT=ustar
8379 export TEST_TAR_FORMAT
8380 TAR_OPTIONS="-H ustar"
8385 test -z "`sort < /dev/null 2>&1`" || exit 77
8389 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8390 touch testdir/\*f\*1
8391 touch testdir/dir1/file1
8392 touch testdir/dir1/\*
8393 touch testdir/dir2/file2
8394 touch testdir/dir2/\*
8395 touch testdir/dir3/file3
8396 touch testdir/dir3/\*
8398 tar cf archive --exclude='testdir*f*1' \
8399 --no-wildcards-match-slash \
8400 --exclude='testdir*f*2' \
8401 --wildcards-match-slash \
8402 --exclude='testdir*f*3' \
8404 tar tf archive | sort
8407 tar cf archive testdir
8408 tar t --wildcards 'testdir/*f*1' -f archive | sort
8411 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8414 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8418 ) ) >"$at_stdout" 2>"$at_stderr"
8422 at_func_diff_devnull "$at_stderr" || at_failed=:
8423 echo >>"$at_stdout"; $as_echo "testdir/
8440 $at_diff - "$at_stdout" || at_failed=:
8441 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8443 $at_failed && at_func_log_failure
8447 $as_echo "$at_srcdir/exclude03.at:20:
8450 TEST_TAR_FORMAT=posix
8451 export TEST_TAR_FORMAT
8452 TAR_OPTIONS=\"-H posix\"
8457 test -z "`sort < /dev/null 2>&1`" || exit 77
8461 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8462 touch testdir/\\*f\\*1
8463 touch testdir/dir1/file1
8464 touch testdir/dir1/\\*
8465 touch testdir/dir2/file2
8466 touch testdir/dir2/\\*
8467 touch testdir/dir3/file3
8468 touch testdir/dir3/\\*
8470 tar cf archive --exclude='testdir*f*1' \\
8471 --no-wildcards-match-slash \\
8472 --exclude='testdir*f*2' \\
8473 --wildcards-match-slash \\
8474 --exclude='testdir*f*3' \\
8476 tar tf archive | sort
8479 tar cf archive testdir
8480 tar t --wildcards 'testdir/*f*1' -f archive | sort
8483 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8486 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8491 echo exclude03.at:20 >"$at_check_line_file"
8493 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8498 TEST_TAR_FORMAT=posix
8499 export TEST_TAR_FORMAT
8500 TAR_OPTIONS="-H posix"
8505 test -z "`sort < /dev/null 2>&1`" || exit 77
8509 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8510 touch testdir/\*f\*1
8511 touch testdir/dir1/file1
8512 touch testdir/dir1/\*
8513 touch testdir/dir2/file2
8514 touch testdir/dir2/\*
8515 touch testdir/dir3/file3
8516 touch testdir/dir3/\*
8518 tar cf archive --exclude='testdir*f*1' \
8519 --no-wildcards-match-slash \
8520 --exclude='testdir*f*2' \
8521 --wildcards-match-slash \
8522 --exclude='testdir*f*3' \
8524 tar tf archive | sort
8527 tar cf archive testdir
8528 tar t --wildcards 'testdir/*f*1' -f archive | sort
8531 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8534 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8538 ) ) >"$at_stdout" 2>"$at_stder1"
8539 at_func_filter_trace $?
8544 TEST_TAR_FORMAT=posix
8545 export TEST_TAR_FORMAT
8546 TAR_OPTIONS="-H posix"
8551 test -z "`sort < /dev/null 2>&1`" || exit 77
8555 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8556 touch testdir/\*f\*1
8557 touch testdir/dir1/file1
8558 touch testdir/dir1/\*
8559 touch testdir/dir2/file2
8560 touch testdir/dir2/\*
8561 touch testdir/dir3/file3
8562 touch testdir/dir3/\*
8564 tar cf archive --exclude='testdir*f*1' \
8565 --no-wildcards-match-slash \
8566 --exclude='testdir*f*2' \
8567 --wildcards-match-slash \
8568 --exclude='testdir*f*3' \
8570 tar tf archive | sort
8573 tar cf archive testdir
8574 tar t --wildcards 'testdir/*f*1' -f archive | sort
8577 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8580 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8584 ) ) >"$at_stdout" 2>"$at_stderr"
8588 at_func_diff_devnull "$at_stderr" || at_failed=:
8589 echo >>"$at_stdout"; $as_echo "testdir/
8606 $at_diff - "$at_stdout" || at_failed=:
8607 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8609 $at_failed && at_func_log_failure
8613 $as_echo "$at_srcdir/exclude03.at:20:
8617 export TEST_TAR_FORMAT
8618 TAR_OPTIONS=\"-H gnu\"
8623 test -z "`sort < /dev/null 2>&1`" || exit 77
8627 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8628 touch testdir/\\*f\\*1
8629 touch testdir/dir1/file1
8630 touch testdir/dir1/\\*
8631 touch testdir/dir2/file2
8632 touch testdir/dir2/\\*
8633 touch testdir/dir3/file3
8634 touch testdir/dir3/\\*
8636 tar cf archive --exclude='testdir*f*1' \\
8637 --no-wildcards-match-slash \\
8638 --exclude='testdir*f*2' \\
8639 --wildcards-match-slash \\
8640 --exclude='testdir*f*3' \\
8642 tar tf archive | sort
8645 tar cf archive testdir
8646 tar t --wildcards 'testdir/*f*1' -f archive | sort
8649 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8652 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8657 echo exclude03.at:20 >"$at_check_line_file"
8659 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8665 export TEST_TAR_FORMAT
8666 TAR_OPTIONS="-H gnu"
8671 test -z "`sort < /dev/null 2>&1`" || exit 77
8675 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8676 touch testdir/\*f\*1
8677 touch testdir/dir1/file1
8678 touch testdir/dir1/\*
8679 touch testdir/dir2/file2
8680 touch testdir/dir2/\*
8681 touch testdir/dir3/file3
8682 touch testdir/dir3/\*
8684 tar cf archive --exclude='testdir*f*1' \
8685 --no-wildcards-match-slash \
8686 --exclude='testdir*f*2' \
8687 --wildcards-match-slash \
8688 --exclude='testdir*f*3' \
8690 tar tf archive | sort
8693 tar cf archive testdir
8694 tar t --wildcards 'testdir/*f*1' -f archive | sort
8697 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8700 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8704 ) ) >"$at_stdout" 2>"$at_stder1"
8705 at_func_filter_trace $?
8711 export TEST_TAR_FORMAT
8712 TAR_OPTIONS="-H gnu"
8717 test -z "`sort < /dev/null 2>&1`" || exit 77
8721 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8722 touch testdir/\*f\*1
8723 touch testdir/dir1/file1
8724 touch testdir/dir1/\*
8725 touch testdir/dir2/file2
8726 touch testdir/dir2/\*
8727 touch testdir/dir3/file3
8728 touch testdir/dir3/\*
8730 tar cf archive --exclude='testdir*f*1' \
8731 --no-wildcards-match-slash \
8732 --exclude='testdir*f*2' \
8733 --wildcards-match-slash \
8734 --exclude='testdir*f*3' \
8736 tar tf archive | sort
8739 tar cf archive testdir
8740 tar t --wildcards 'testdir/*f*1' -f archive | sort
8743 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8746 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8750 ) ) >"$at_stdout" 2>"$at_stderr"
8754 at_func_diff_devnull "$at_stderr" || at_failed=:
8755 echo >>"$at_stdout"; $as_echo "testdir/
8772 $at_diff - "$at_stdout" || at_failed=:
8773 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8775 $at_failed && at_func_log_failure
8782 $at_times_p && times >"$at_times_file"
8783 ) 5>&1 2>&1 | eval $at_tee_pipe
8784 at_status=`cat "$at_status_file"`
8787 # 19. exclude04.at:17: exclude: case insensitive
8788 at_setup_line='exclude04.at:17'
8789 at_desc="exclude: case insensitive"
8790 $at_quiet $as_echo_n " 19: $at_desc "
8792 test -f $XFAILFILE && at_xfail=yes
8793 echo "# -*- compilation -*-" >> "$at_group_log"
8795 $as_echo "19. exclude04.at:17: testing ..."
8803 $as_echo "$at_srcdir/exclude04.at:20:
8807 export TEST_TAR_FORMAT
8808 TAR_OPTIONS=\"-H v7\"
8813 test -z "`sort < /dev/null 2>&1`" || exit 77
8817 mkdir -p testdir/dir
8822 touch testdir/dir/File1
8823 touch testdir/dir/File2
8824 touch testdir/dir/File3
8825 touch testdir/dir/File4
8827 tar cf archive --exclude=FILE2 \\
8835 tar tf archive | sort
8838 tar cf archive testdir
8839 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8842 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8845 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8850 echo exclude04.at:20 >"$at_check_line_file"
8852 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8858 export TEST_TAR_FORMAT
8864 test -z "`sort < /dev/null 2>&1`" || exit 77
8868 mkdir -p testdir/dir
8873 touch testdir/dir/File1
8874 touch testdir/dir/File2
8875 touch testdir/dir/File3
8876 touch testdir/dir/File4
8878 tar cf archive --exclude=FILE2 \
8886 tar tf archive | sort
8889 tar cf archive testdir
8890 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8893 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8896 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8900 ) ) >"$at_stdout" 2>"$at_stder1"
8901 at_func_filter_trace $?
8907 export TEST_TAR_FORMAT
8913 test -z "`sort < /dev/null 2>&1`" || exit 77
8917 mkdir -p testdir/dir
8922 touch testdir/dir/File1
8923 touch testdir/dir/File2
8924 touch testdir/dir/File3
8925 touch testdir/dir/File4
8927 tar cf archive --exclude=FILE2 \
8935 tar tf archive | sort
8938 tar cf archive testdir
8939 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8942 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8945 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8949 ) ) >"$at_stdout" 2>"$at_stderr"
8953 at_func_diff_devnull "$at_stderr" || at_failed=:
8954 echo >>"$at_stdout"; $as_echo "testdir/
8968 $at_diff - "$at_stdout" || at_failed=:
8969 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8971 $at_failed && at_func_log_failure
8975 $as_echo "$at_srcdir/exclude04.at:20:
8978 TEST_TAR_FORMAT=oldgnu
8979 export TEST_TAR_FORMAT
8980 TAR_OPTIONS=\"-H oldgnu\"
8985 test -z "`sort < /dev/null 2>&1`" || exit 77
8989 mkdir -p testdir/dir
8994 touch testdir/dir/File1
8995 touch testdir/dir/File2
8996 touch testdir/dir/File3
8997 touch testdir/dir/File4
8999 tar cf archive --exclude=FILE2 \\
9007 tar tf archive | sort
9010 tar cf archive testdir
9011 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9014 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9017 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9022 echo exclude04.at:20 >"$at_check_line_file"
9024 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9029 TEST_TAR_FORMAT=oldgnu
9030 export TEST_TAR_FORMAT
9031 TAR_OPTIONS="-H oldgnu"
9036 test -z "`sort < /dev/null 2>&1`" || exit 77
9040 mkdir -p testdir/dir
9045 touch testdir/dir/File1
9046 touch testdir/dir/File2
9047 touch testdir/dir/File3
9048 touch testdir/dir/File4
9050 tar cf archive --exclude=FILE2 \
9058 tar tf archive | sort
9061 tar cf archive testdir
9062 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9065 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9068 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9072 ) ) >"$at_stdout" 2>"$at_stder1"
9073 at_func_filter_trace $?
9078 TEST_TAR_FORMAT=oldgnu
9079 export TEST_TAR_FORMAT
9080 TAR_OPTIONS="-H oldgnu"
9085 test -z "`sort < /dev/null 2>&1`" || exit 77
9089 mkdir -p testdir/dir
9094 touch testdir/dir/File1
9095 touch testdir/dir/File2
9096 touch testdir/dir/File3
9097 touch testdir/dir/File4
9099 tar cf archive --exclude=FILE2 \
9107 tar tf archive | sort
9110 tar cf archive testdir
9111 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9114 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9117 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9121 ) ) >"$at_stdout" 2>"$at_stderr"
9125 at_func_diff_devnull "$at_stderr" || at_failed=:
9126 echo >>"$at_stdout"; $as_echo "testdir/
9140 $at_diff - "$at_stdout" || at_failed=:
9141 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9143 $at_failed && at_func_log_failure
9147 $as_echo "$at_srcdir/exclude04.at:20:
9150 TEST_TAR_FORMAT=ustar
9151 export TEST_TAR_FORMAT
9152 TAR_OPTIONS=\"-H ustar\"
9157 test -z "`sort < /dev/null 2>&1`" || exit 77
9161 mkdir -p testdir/dir
9166 touch testdir/dir/File1
9167 touch testdir/dir/File2
9168 touch testdir/dir/File3
9169 touch testdir/dir/File4
9171 tar cf archive --exclude=FILE2 \\
9179 tar tf archive | sort
9182 tar cf archive testdir
9183 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9186 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9189 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9194 echo exclude04.at:20 >"$at_check_line_file"
9196 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9201 TEST_TAR_FORMAT=ustar
9202 export TEST_TAR_FORMAT
9203 TAR_OPTIONS="-H ustar"
9208 test -z "`sort < /dev/null 2>&1`" || exit 77
9212 mkdir -p testdir/dir
9217 touch testdir/dir/File1
9218 touch testdir/dir/File2
9219 touch testdir/dir/File3
9220 touch testdir/dir/File4
9222 tar cf archive --exclude=FILE2 \
9230 tar tf archive | sort
9233 tar cf archive testdir
9234 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9237 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9240 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9244 ) ) >"$at_stdout" 2>"$at_stder1"
9245 at_func_filter_trace $?
9250 TEST_TAR_FORMAT=ustar
9251 export TEST_TAR_FORMAT
9252 TAR_OPTIONS="-H ustar"
9257 test -z "`sort < /dev/null 2>&1`" || exit 77
9261 mkdir -p testdir/dir
9266 touch testdir/dir/File1
9267 touch testdir/dir/File2
9268 touch testdir/dir/File3
9269 touch testdir/dir/File4
9271 tar cf archive --exclude=FILE2 \
9279 tar tf archive | sort
9282 tar cf archive testdir
9283 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9286 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9289 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9293 ) ) >"$at_stdout" 2>"$at_stderr"
9297 at_func_diff_devnull "$at_stderr" || at_failed=:
9298 echo >>"$at_stdout"; $as_echo "testdir/
9312 $at_diff - "$at_stdout" || at_failed=:
9313 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9315 $at_failed && at_func_log_failure
9319 $as_echo "$at_srcdir/exclude04.at:20:
9322 TEST_TAR_FORMAT=posix
9323 export TEST_TAR_FORMAT
9324 TAR_OPTIONS=\"-H posix\"
9329 test -z "`sort < /dev/null 2>&1`" || exit 77
9333 mkdir -p testdir/dir
9338 touch testdir/dir/File1
9339 touch testdir/dir/File2
9340 touch testdir/dir/File3
9341 touch testdir/dir/File4
9343 tar cf archive --exclude=FILE2 \\
9351 tar tf archive | sort
9354 tar cf archive testdir
9355 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9358 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9361 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9366 echo exclude04.at:20 >"$at_check_line_file"
9368 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9373 TEST_TAR_FORMAT=posix
9374 export TEST_TAR_FORMAT
9375 TAR_OPTIONS="-H posix"
9380 test -z "`sort < /dev/null 2>&1`" || exit 77
9384 mkdir -p testdir/dir
9389 touch testdir/dir/File1
9390 touch testdir/dir/File2
9391 touch testdir/dir/File3
9392 touch testdir/dir/File4
9394 tar cf archive --exclude=FILE2 \
9402 tar tf archive | sort
9405 tar cf archive testdir
9406 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9409 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9412 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9416 ) ) >"$at_stdout" 2>"$at_stder1"
9417 at_func_filter_trace $?
9422 TEST_TAR_FORMAT=posix
9423 export TEST_TAR_FORMAT
9424 TAR_OPTIONS="-H posix"
9429 test -z "`sort < /dev/null 2>&1`" || exit 77
9433 mkdir -p testdir/dir
9438 touch testdir/dir/File1
9439 touch testdir/dir/File2
9440 touch testdir/dir/File3
9441 touch testdir/dir/File4
9443 tar cf archive --exclude=FILE2 \
9451 tar tf archive | sort
9454 tar cf archive testdir
9455 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9458 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9461 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9465 ) ) >"$at_stdout" 2>"$at_stderr"
9469 at_func_diff_devnull "$at_stderr" || at_failed=:
9470 echo >>"$at_stdout"; $as_echo "testdir/
9484 $at_diff - "$at_stdout" || at_failed=:
9485 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9487 $at_failed && at_func_log_failure
9491 $as_echo "$at_srcdir/exclude04.at:20:
9495 export TEST_TAR_FORMAT
9496 TAR_OPTIONS=\"-H gnu\"
9501 test -z "`sort < /dev/null 2>&1`" || exit 77
9505 mkdir -p testdir/dir
9510 touch testdir/dir/File1
9511 touch testdir/dir/File2
9512 touch testdir/dir/File3
9513 touch testdir/dir/File4
9515 tar cf archive --exclude=FILE2 \\
9523 tar tf archive | sort
9526 tar cf archive testdir
9527 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9530 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9533 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9538 echo exclude04.at:20 >"$at_check_line_file"
9540 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9546 export TEST_TAR_FORMAT
9547 TAR_OPTIONS="-H gnu"
9552 test -z "`sort < /dev/null 2>&1`" || exit 77
9556 mkdir -p testdir/dir
9561 touch testdir/dir/File1
9562 touch testdir/dir/File2
9563 touch testdir/dir/File3
9564 touch testdir/dir/File4
9566 tar cf archive --exclude=FILE2 \
9574 tar tf archive | sort
9577 tar cf archive testdir
9578 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9581 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9584 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9588 ) ) >"$at_stdout" 2>"$at_stder1"
9589 at_func_filter_trace $?
9595 export TEST_TAR_FORMAT
9596 TAR_OPTIONS="-H gnu"
9601 test -z "`sort < /dev/null 2>&1`" || exit 77
9605 mkdir -p testdir/dir
9610 touch testdir/dir/File1
9611 touch testdir/dir/File2
9612 touch testdir/dir/File3
9613 touch testdir/dir/File4
9615 tar cf archive --exclude=FILE2 \
9623 tar tf archive | sort
9626 tar cf archive testdir
9627 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9630 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9633 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9637 ) ) >"$at_stdout" 2>"$at_stderr"
9641 at_func_diff_devnull "$at_stderr" || at_failed=:
9642 echo >>"$at_stdout"; $as_echo "testdir/
9656 $at_diff - "$at_stdout" || at_failed=:
9657 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9659 $at_failed && at_func_log_failure
9666 $at_times_p && times >"$at_times_file"
9667 ) 5>&1 2>&1 | eval $at_tee_pipe
9668 at_status=`cat "$at_status_file"`
9671 # 20. exclude05.at:19: exclude: lots of excludes
9672 at_setup_line='exclude05.at:19'
9673 at_desc="exclude: lots of excludes"
9674 $at_quiet $as_echo_n " 20: $at_desc "
9676 test -f $XFAILFILE && at_xfail=yes
9677 echo "# -*- compilation -*-" >> "$at_group_log"
9679 $as_echo "20. exclude05.at:19: testing ..."
9687 $as_echo "$at_srcdir/exclude05.at:22:
9691 export TEST_TAR_FORMAT
9692 TAR_OPTIONS=\"-H v7\"
9697 test -z "`sort < /dev/null 2>&1`" || exit 77
9700 rm -rf testdir exclfile
9702 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9705 genfile --file \$name
9708 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9710 tar cf archive --anchored --exclude-from=exclfile \\
9712 tar tf archive | sort
9715 tar cf archive --exclude-from=exclfile \\
9717 tar tf archive | sort
9719 rm -rf testdir exclfile
9722 echo exclude05.at:22 >"$at_check_line_file"
9724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9730 export TEST_TAR_FORMAT
9736 test -z "`sort < /dev/null 2>&1`" || exit 77
9739 rm -rf testdir exclfile
9741 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9744 genfile --file $name
9747 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9749 tar cf archive --anchored --exclude-from=exclfile \
9751 tar tf archive | sort
9754 tar cf archive --exclude-from=exclfile \
9756 tar tf archive | sort
9758 rm -rf testdir exclfile
9760 ) ) >"$at_stdout" 2>"$at_stder1"
9761 at_func_filter_trace $?
9767 export TEST_TAR_FORMAT
9773 test -z "`sort < /dev/null 2>&1`" || exit 77
9776 rm -rf testdir exclfile
9778 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9781 genfile --file $name
9784 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9786 tar cf archive --anchored --exclude-from=exclfile \
9788 tar tf archive | sort
9791 tar cf archive --exclude-from=exclfile \
9793 tar tf archive | sort
9795 rm -rf testdir exclfile
9797 ) ) >"$at_stdout" 2>"$at_stderr"
9801 at_func_diff_devnull "$at_stderr" || at_failed=:
9802 echo >>"$at_stdout"; $as_echo "testdir/
9812 $at_diff - "$at_stdout" || at_failed=:
9813 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9815 $at_failed && at_func_log_failure
9819 $as_echo "$at_srcdir/exclude05.at:22:
9822 TEST_TAR_FORMAT=oldgnu
9823 export TEST_TAR_FORMAT
9824 TAR_OPTIONS=\"-H oldgnu\"
9829 test -z "`sort < /dev/null 2>&1`" || exit 77
9832 rm -rf testdir exclfile
9834 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9837 genfile --file \$name
9840 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9842 tar cf archive --anchored --exclude-from=exclfile \\
9844 tar tf archive | sort
9847 tar cf archive --exclude-from=exclfile \\
9849 tar tf archive | sort
9851 rm -rf testdir exclfile
9854 echo exclude05.at:22 >"$at_check_line_file"
9856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9861 TEST_TAR_FORMAT=oldgnu
9862 export TEST_TAR_FORMAT
9863 TAR_OPTIONS="-H oldgnu"
9868 test -z "`sort < /dev/null 2>&1`" || exit 77
9871 rm -rf testdir exclfile
9873 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9876 genfile --file $name
9879 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9881 tar cf archive --anchored --exclude-from=exclfile \
9883 tar tf archive | sort
9886 tar cf archive --exclude-from=exclfile \
9888 tar tf archive | sort
9890 rm -rf testdir exclfile
9892 ) ) >"$at_stdout" 2>"$at_stder1"
9893 at_func_filter_trace $?
9898 TEST_TAR_FORMAT=oldgnu
9899 export TEST_TAR_FORMAT
9900 TAR_OPTIONS="-H oldgnu"
9905 test -z "`sort < /dev/null 2>&1`" || exit 77
9908 rm -rf testdir exclfile
9910 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9913 genfile --file $name
9916 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9918 tar cf archive --anchored --exclude-from=exclfile \
9920 tar tf archive | sort
9923 tar cf archive --exclude-from=exclfile \
9925 tar tf archive | sort
9927 rm -rf testdir exclfile
9929 ) ) >"$at_stdout" 2>"$at_stderr"
9933 at_func_diff_devnull "$at_stderr" || at_failed=:
9934 echo >>"$at_stdout"; $as_echo "testdir/
9944 $at_diff - "$at_stdout" || at_failed=:
9945 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9947 $at_failed && at_func_log_failure
9951 $as_echo "$at_srcdir/exclude05.at:22:
9954 TEST_TAR_FORMAT=ustar
9955 export TEST_TAR_FORMAT
9956 TAR_OPTIONS=\"-H ustar\"
9961 test -z "`sort < /dev/null 2>&1`" || exit 77
9964 rm -rf testdir exclfile
9966 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9969 genfile --file \$name
9972 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9974 tar cf archive --anchored --exclude-from=exclfile \\
9976 tar tf archive | sort
9979 tar cf archive --exclude-from=exclfile \\
9981 tar tf archive | sort
9983 rm -rf testdir exclfile
9986 echo exclude05.at:22 >"$at_check_line_file"
9988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9993 TEST_TAR_FORMAT=ustar
9994 export TEST_TAR_FORMAT
9995 TAR_OPTIONS="-H ustar"
10000 test -z "`sort < /dev/null 2>&1`" || exit 77
10003 rm -rf testdir exclfile
10005 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10008 genfile --file $name
10011 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10013 tar cf archive --anchored --exclude-from=exclfile \
10015 tar tf archive | sort
10018 tar cf archive --exclude-from=exclfile \
10020 tar tf archive | sort
10022 rm -rf testdir exclfile
10024 ) ) >"$at_stdout" 2>"$at_stder1"
10025 at_func_filter_trace $?
10030 TEST_TAR_FORMAT=ustar
10031 export TEST_TAR_FORMAT
10032 TAR_OPTIONS="-H ustar"
10037 test -z "`sort < /dev/null 2>&1`" || exit 77
10040 rm -rf testdir exclfile
10042 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10045 genfile --file $name
10048 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10050 tar cf archive --anchored --exclude-from=exclfile \
10052 tar tf archive | sort
10055 tar cf archive --exclude-from=exclfile \
10057 tar tf archive | sort
10059 rm -rf testdir exclfile
10061 ) ) >"$at_stdout" 2>"$at_stderr"
10065 at_func_diff_devnull "$at_stderr" || at_failed=:
10066 echo >>"$at_stdout"; $as_echo "testdir/
10076 $at_diff - "$at_stdout" || at_failed=:
10077 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10079 $at_failed && at_func_log_failure
10083 $as_echo "$at_srcdir/exclude05.at:22:
10086 TEST_TAR_FORMAT=posix
10087 export TEST_TAR_FORMAT
10088 TAR_OPTIONS=\"-H posix\"
10093 test -z "`sort < /dev/null 2>&1`" || exit 77
10096 rm -rf testdir exclfile
10098 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10101 genfile --file \$name
10104 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10106 tar cf archive --anchored --exclude-from=exclfile \\
10108 tar tf archive | sort
10111 tar cf archive --exclude-from=exclfile \\
10113 tar tf archive | sort
10115 rm -rf testdir exclfile
10118 echo exclude05.at:22 >"$at_check_line_file"
10120 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10125 TEST_TAR_FORMAT=posix
10126 export TEST_TAR_FORMAT
10127 TAR_OPTIONS="-H posix"
10132 test -z "`sort < /dev/null 2>&1`" || exit 77
10135 rm -rf testdir exclfile
10137 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10140 genfile --file $name
10143 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10145 tar cf archive --anchored --exclude-from=exclfile \
10147 tar tf archive | sort
10150 tar cf archive --exclude-from=exclfile \
10152 tar tf archive | sort
10154 rm -rf testdir exclfile
10156 ) ) >"$at_stdout" 2>"$at_stder1"
10157 at_func_filter_trace $?
10162 TEST_TAR_FORMAT=posix
10163 export TEST_TAR_FORMAT
10164 TAR_OPTIONS="-H posix"
10169 test -z "`sort < /dev/null 2>&1`" || exit 77
10172 rm -rf testdir exclfile
10174 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10177 genfile --file $name
10180 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10182 tar cf archive --anchored --exclude-from=exclfile \
10184 tar tf archive | sort
10187 tar cf archive --exclude-from=exclfile \
10189 tar tf archive | sort
10191 rm -rf testdir exclfile
10193 ) ) >"$at_stdout" 2>"$at_stderr"
10197 at_func_diff_devnull "$at_stderr" || at_failed=:
10198 echo >>"$at_stdout"; $as_echo "testdir/
10208 $at_diff - "$at_stdout" || at_failed=:
10209 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10211 $at_failed && at_func_log_failure
10215 $as_echo "$at_srcdir/exclude05.at:22:
10218 TEST_TAR_FORMAT=gnu
10219 export TEST_TAR_FORMAT
10220 TAR_OPTIONS=\"-H gnu\"
10225 test -z "`sort < /dev/null 2>&1`" || exit 77
10228 rm -rf testdir exclfile
10230 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10233 genfile --file \$name
10236 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10238 tar cf archive --anchored --exclude-from=exclfile \\
10240 tar tf archive | sort
10243 tar cf archive --exclude-from=exclfile \\
10245 tar tf archive | sort
10247 rm -rf testdir exclfile
10250 echo exclude05.at:22 >"$at_check_line_file"
10252 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10257 TEST_TAR_FORMAT=gnu
10258 export TEST_TAR_FORMAT
10259 TAR_OPTIONS="-H gnu"
10264 test -z "`sort < /dev/null 2>&1`" || exit 77
10267 rm -rf testdir exclfile
10269 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10272 genfile --file $name
10275 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10277 tar cf archive --anchored --exclude-from=exclfile \
10279 tar tf archive | sort
10282 tar cf archive --exclude-from=exclfile \
10284 tar tf archive | sort
10286 rm -rf testdir exclfile
10288 ) ) >"$at_stdout" 2>"$at_stder1"
10289 at_func_filter_trace $?
10294 TEST_TAR_FORMAT=gnu
10295 export TEST_TAR_FORMAT
10296 TAR_OPTIONS="-H gnu"
10301 test -z "`sort < /dev/null 2>&1`" || exit 77
10304 rm -rf testdir exclfile
10306 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10309 genfile --file $name
10312 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10314 tar cf archive --anchored --exclude-from=exclfile \
10316 tar tf archive | sort
10319 tar cf archive --exclude-from=exclfile \
10321 tar tf archive | sort
10323 rm -rf testdir exclfile
10325 ) ) >"$at_stdout" 2>"$at_stderr"
10329 at_func_diff_devnull "$at_stderr" || at_failed=:
10330 echo >>"$at_stdout"; $as_echo "testdir/
10340 $at_diff - "$at_stdout" || at_failed=:
10341 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10343 $at_failed && at_func_log_failure
10350 $at_times_p && times >"$at_times_file"
10351 ) 5>&1 2>&1 | eval $at_tee_pipe
10352 at_status=`cat "$at_status_file"`
10355 # 21. exclude06.at:24: exclude: long files in pax archives
10356 at_setup_line='exclude06.at:24'
10357 at_desc="exclude: long files in pax archives"
10358 $at_quiet $as_echo_n " 21: $at_desc "
10360 test -f $XFAILFILE && at_xfail=yes
10361 echo "# -*- compilation -*-" >> "$at_group_log"
10363 $as_echo "21. exclude06.at:24: testing ..."
10373 $as_echo "$at_srcdir/exclude06.at:29:
10376 TEST_TAR_FORMAT=pax
10377 export TEST_TAR_FORMAT
10378 TAR_OPTIONS=\"-H pax\"
10383 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
10384 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10385 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10387 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10389 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10392 echo exclude06.at:29 >"$at_check_line_file"
10394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10399 TEST_TAR_FORMAT=pax
10400 export TEST_TAR_FORMAT
10401 TAR_OPTIONS="-H pax"
10406 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
10407 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10408 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10410 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10412 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10414 ) ) >"$at_stdout" 2>"$at_stder1"
10415 at_func_filter_trace $?
10420 TEST_TAR_FORMAT=pax
10421 export TEST_TAR_FORMAT
10422 TAR_OPTIONS="-H pax"
10427 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null || exit 77
10428 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10429 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10431 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10433 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10435 ) ) >"$at_stdout" 2>"$at_stderr"
10439 at_func_diff_devnull "$at_stderr" || at_failed=:
10440 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
10442 $at_diff - "$at_stdout" || at_failed=:
10443 at_func_check_status 0 $at_status "$at_srcdir/exclude06.at:29"
10445 $at_failed && at_func_log_failure
10452 $at_times_p && times >"$at_times_file"
10453 ) 5>&1 2>&1 | eval $at_tee_pipe
10454 at_status=`cat "$at_status_file"`
10457 # 22. delete01.at:23: deleting a member after a big one
10458 at_setup_line='delete01.at:23'
10459 at_desc="deleting a member after a big one"
10460 $at_quiet $as_echo_n " 22: $at_desc "
10462 test -f $XFAILFILE && at_xfail=yes
10463 echo "# -*- compilation -*-" >> "$at_group_log"
10465 $as_echo "22. delete01.at:23: testing ..."
10473 $as_echo "$at_srcdir/delete01.at:26:
10477 export TEST_TAR_FORMAT
10478 TAR_OPTIONS=\"-H v7\"
10482 genfile -l 50000 --file file1
10483 genfile -l 1024 --file file2
10484 tar cf archive file1 file2
10485 tar f archive --delete file2
10487 echo delete01.at:26 >"$at_check_line_file"
10489 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10495 export TEST_TAR_FORMAT
10496 TAR_OPTIONS="-H v7"
10500 genfile -l 50000 --file file1
10501 genfile -l 1024 --file file2
10502 tar cf archive file1 file2
10503 tar f archive --delete file2
10504 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10505 at_func_filter_trace $?
10511 export TEST_TAR_FORMAT
10512 TAR_OPTIONS="-H v7"
10516 genfile -l 50000 --file file1
10517 genfile -l 1024 --file file2
10518 tar cf archive file1 file2
10519 tar f archive --delete file2
10520 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10524 at_func_diff_devnull "$at_stderr" || at_failed=:
10525 echo >>"$at_stdout"; $as_echo "file1
10527 $at_diff - "$at_stdout" || at_failed=:
10528 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10530 $at_failed && at_func_log_failure
10534 $as_echo "$at_srcdir/delete01.at:26:
10537 TEST_TAR_FORMAT=oldgnu
10538 export TEST_TAR_FORMAT
10539 TAR_OPTIONS=\"-H oldgnu\"
10543 genfile -l 50000 --file file1
10544 genfile -l 1024 --file file2
10545 tar cf archive file1 file2
10546 tar f archive --delete file2
10548 echo delete01.at:26 >"$at_check_line_file"
10550 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10555 TEST_TAR_FORMAT=oldgnu
10556 export TEST_TAR_FORMAT
10557 TAR_OPTIONS="-H oldgnu"
10561 genfile -l 50000 --file file1
10562 genfile -l 1024 --file file2
10563 tar cf archive file1 file2
10564 tar f archive --delete file2
10565 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10566 at_func_filter_trace $?
10571 TEST_TAR_FORMAT=oldgnu
10572 export TEST_TAR_FORMAT
10573 TAR_OPTIONS="-H oldgnu"
10577 genfile -l 50000 --file file1
10578 genfile -l 1024 --file file2
10579 tar cf archive file1 file2
10580 tar f archive --delete file2
10581 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10585 at_func_diff_devnull "$at_stderr" || at_failed=:
10586 echo >>"$at_stdout"; $as_echo "file1
10588 $at_diff - "$at_stdout" || at_failed=:
10589 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10591 $at_failed && at_func_log_failure
10595 $as_echo "$at_srcdir/delete01.at:26:
10598 TEST_TAR_FORMAT=ustar
10599 export TEST_TAR_FORMAT
10600 TAR_OPTIONS=\"-H ustar\"
10604 genfile -l 50000 --file file1
10605 genfile -l 1024 --file file2
10606 tar cf archive file1 file2
10607 tar f archive --delete file2
10609 echo delete01.at:26 >"$at_check_line_file"
10611 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10616 TEST_TAR_FORMAT=ustar
10617 export TEST_TAR_FORMAT
10618 TAR_OPTIONS="-H ustar"
10622 genfile -l 50000 --file file1
10623 genfile -l 1024 --file file2
10624 tar cf archive file1 file2
10625 tar f archive --delete file2
10626 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10627 at_func_filter_trace $?
10632 TEST_TAR_FORMAT=ustar
10633 export TEST_TAR_FORMAT
10634 TAR_OPTIONS="-H ustar"
10638 genfile -l 50000 --file file1
10639 genfile -l 1024 --file file2
10640 tar cf archive file1 file2
10641 tar f archive --delete file2
10642 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10646 at_func_diff_devnull "$at_stderr" || at_failed=:
10647 echo >>"$at_stdout"; $as_echo "file1
10649 $at_diff - "$at_stdout" || at_failed=:
10650 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10652 $at_failed && at_func_log_failure
10656 $as_echo "$at_srcdir/delete01.at:26:
10659 TEST_TAR_FORMAT=posix
10660 export TEST_TAR_FORMAT
10661 TAR_OPTIONS=\"-H posix\"
10665 genfile -l 50000 --file file1
10666 genfile -l 1024 --file file2
10667 tar cf archive file1 file2
10668 tar f archive --delete file2
10670 echo delete01.at:26 >"$at_check_line_file"
10672 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10677 TEST_TAR_FORMAT=posix
10678 export TEST_TAR_FORMAT
10679 TAR_OPTIONS="-H posix"
10683 genfile -l 50000 --file file1
10684 genfile -l 1024 --file file2
10685 tar cf archive file1 file2
10686 tar f archive --delete file2
10687 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10688 at_func_filter_trace $?
10693 TEST_TAR_FORMAT=posix
10694 export TEST_TAR_FORMAT
10695 TAR_OPTIONS="-H posix"
10699 genfile -l 50000 --file file1
10700 genfile -l 1024 --file file2
10701 tar cf archive file1 file2
10702 tar f archive --delete file2
10703 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10707 at_func_diff_devnull "$at_stderr" || at_failed=:
10708 echo >>"$at_stdout"; $as_echo "file1
10710 $at_diff - "$at_stdout" || at_failed=:
10711 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10713 $at_failed && at_func_log_failure
10717 $as_echo "$at_srcdir/delete01.at:26:
10720 TEST_TAR_FORMAT=gnu
10721 export TEST_TAR_FORMAT
10722 TAR_OPTIONS=\"-H gnu\"
10726 genfile -l 50000 --file file1
10727 genfile -l 1024 --file file2
10728 tar cf archive file1 file2
10729 tar f archive --delete file2
10731 echo delete01.at:26 >"$at_check_line_file"
10733 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10738 TEST_TAR_FORMAT=gnu
10739 export TEST_TAR_FORMAT
10740 TAR_OPTIONS="-H gnu"
10744 genfile -l 50000 --file file1
10745 genfile -l 1024 --file file2
10746 tar cf archive file1 file2
10747 tar f archive --delete file2
10748 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10749 at_func_filter_trace $?
10754 TEST_TAR_FORMAT=gnu
10755 export TEST_TAR_FORMAT
10756 TAR_OPTIONS="-H gnu"
10760 genfile -l 50000 --file file1
10761 genfile -l 1024 --file file2
10762 tar cf archive file1 file2
10763 tar f archive --delete file2
10764 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10768 at_func_diff_devnull "$at_stderr" || at_failed=:
10769 echo >>"$at_stdout"; $as_echo "file1
10771 $at_diff - "$at_stdout" || at_failed=:
10772 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10774 $at_failed && at_func_log_failure
10781 $at_times_p && times >"$at_times_file"
10782 ) 5>&1 2>&1 | eval $at_tee_pipe
10783 at_status=`cat "$at_status_file"`
10786 # 23. delete02.at:23: deleting a member from stdin archive
10787 at_setup_line='delete02.at:23'
10788 at_desc="deleting a member from stdin archive"
10789 $at_quiet $as_echo_n " 23: $at_desc "
10791 test -f $XFAILFILE && at_xfail=yes
10792 echo "# -*- compilation -*-" >> "$at_group_log"
10794 $as_echo "23. delete02.at:23: testing ..."
10802 $as_echo "$at_srcdir/delete02.at:26:
10806 export TEST_TAR_FORMAT
10807 TAR_OPTIONS=\"-H v7\"
10811 genfile -l 3073 -p zeros --file 1
10814 tar cf archive 1 2 3
10816 cat archive | tar f - --delete 2 > archive2
10819 echo delete02.at:26 >"$at_check_line_file"
10821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10827 export TEST_TAR_FORMAT
10828 TAR_OPTIONS="-H v7"
10832 genfile -l 3073 -p zeros --file 1
10835 tar cf archive 1 2 3
10837 cat archive | tar f - --delete 2 > archive2
10839 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10840 at_func_filter_trace $?
10846 export TEST_TAR_FORMAT
10847 TAR_OPTIONS="-H v7"
10851 genfile -l 3073 -p zeros --file 1
10854 tar cf archive 1 2 3
10856 cat archive | tar f - --delete 2 > archive2
10858 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10862 at_func_diff_devnull "$at_stderr" || at_failed=:
10863 echo >>"$at_stdout"; $as_echo "1
10870 $at_diff - "$at_stdout" || at_failed=:
10871 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10873 $at_failed && at_func_log_failure
10877 $as_echo "$at_srcdir/delete02.at:26:
10880 TEST_TAR_FORMAT=oldgnu
10881 export TEST_TAR_FORMAT
10882 TAR_OPTIONS=\"-H oldgnu\"
10886 genfile -l 3073 -p zeros --file 1
10889 tar cf archive 1 2 3
10891 cat archive | tar f - --delete 2 > archive2
10894 echo delete02.at:26 >"$at_check_line_file"
10896 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10901 TEST_TAR_FORMAT=oldgnu
10902 export TEST_TAR_FORMAT
10903 TAR_OPTIONS="-H oldgnu"
10907 genfile -l 3073 -p zeros --file 1
10910 tar cf archive 1 2 3
10912 cat archive | tar f - --delete 2 > archive2
10914 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10915 at_func_filter_trace $?
10920 TEST_TAR_FORMAT=oldgnu
10921 export TEST_TAR_FORMAT
10922 TAR_OPTIONS="-H oldgnu"
10926 genfile -l 3073 -p zeros --file 1
10929 tar cf archive 1 2 3
10931 cat archive | tar f - --delete 2 > archive2
10933 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10937 at_func_diff_devnull "$at_stderr" || at_failed=:
10938 echo >>"$at_stdout"; $as_echo "1
10945 $at_diff - "$at_stdout" || at_failed=:
10946 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10948 $at_failed && at_func_log_failure
10952 $as_echo "$at_srcdir/delete02.at:26:
10955 TEST_TAR_FORMAT=ustar
10956 export TEST_TAR_FORMAT
10957 TAR_OPTIONS=\"-H ustar\"
10961 genfile -l 3073 -p zeros --file 1
10964 tar cf archive 1 2 3
10966 cat archive | tar f - --delete 2 > archive2
10969 echo delete02.at:26 >"$at_check_line_file"
10971 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10976 TEST_TAR_FORMAT=ustar
10977 export TEST_TAR_FORMAT
10978 TAR_OPTIONS="-H ustar"
10982 genfile -l 3073 -p zeros --file 1
10985 tar cf archive 1 2 3
10987 cat archive | tar f - --delete 2 > archive2
10989 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10990 at_func_filter_trace $?
10995 TEST_TAR_FORMAT=ustar
10996 export TEST_TAR_FORMAT
10997 TAR_OPTIONS="-H ustar"
11001 genfile -l 3073 -p zeros --file 1
11004 tar cf archive 1 2 3
11006 cat archive | tar f - --delete 2 > archive2
11008 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11012 at_func_diff_devnull "$at_stderr" || at_failed=:
11013 echo >>"$at_stdout"; $as_echo "1
11020 $at_diff - "$at_stdout" || at_failed=:
11021 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11023 $at_failed && at_func_log_failure
11027 $as_echo "$at_srcdir/delete02.at:26:
11030 TEST_TAR_FORMAT=posix
11031 export TEST_TAR_FORMAT
11032 TAR_OPTIONS=\"-H posix\"
11036 genfile -l 3073 -p zeros --file 1
11039 tar cf archive 1 2 3
11041 cat archive | tar f - --delete 2 > archive2
11044 echo delete02.at:26 >"$at_check_line_file"
11046 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11051 TEST_TAR_FORMAT=posix
11052 export TEST_TAR_FORMAT
11053 TAR_OPTIONS="-H posix"
11057 genfile -l 3073 -p zeros --file 1
11060 tar cf archive 1 2 3
11062 cat archive | tar f - --delete 2 > archive2
11064 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11065 at_func_filter_trace $?
11070 TEST_TAR_FORMAT=posix
11071 export TEST_TAR_FORMAT
11072 TAR_OPTIONS="-H posix"
11076 genfile -l 3073 -p zeros --file 1
11079 tar cf archive 1 2 3
11081 cat archive | tar f - --delete 2 > archive2
11083 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11087 at_func_diff_devnull "$at_stderr" || at_failed=:
11088 echo >>"$at_stdout"; $as_echo "1
11095 $at_diff - "$at_stdout" || at_failed=:
11096 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11098 $at_failed && at_func_log_failure
11102 $as_echo "$at_srcdir/delete02.at:26:
11105 TEST_TAR_FORMAT=gnu
11106 export TEST_TAR_FORMAT
11107 TAR_OPTIONS=\"-H gnu\"
11111 genfile -l 3073 -p zeros --file 1
11114 tar cf archive 1 2 3
11116 cat archive | tar f - --delete 2 > archive2
11119 echo delete02.at:26 >"$at_check_line_file"
11121 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11126 TEST_TAR_FORMAT=gnu
11127 export TEST_TAR_FORMAT
11128 TAR_OPTIONS="-H gnu"
11132 genfile -l 3073 -p zeros --file 1
11135 tar cf archive 1 2 3
11137 cat archive | tar f - --delete 2 > archive2
11139 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11140 at_func_filter_trace $?
11145 TEST_TAR_FORMAT=gnu
11146 export TEST_TAR_FORMAT
11147 TAR_OPTIONS="-H gnu"
11151 genfile -l 3073 -p zeros --file 1
11154 tar cf archive 1 2 3
11156 cat archive | tar f - --delete 2 > archive2
11158 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11162 at_func_diff_devnull "$at_stderr" || at_failed=:
11163 echo >>"$at_stdout"; $as_echo "1
11170 $at_diff - "$at_stdout" || at_failed=:
11171 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11173 $at_failed && at_func_log_failure
11180 $at_times_p && times >"$at_times_file"
11181 ) 5>&1 2>&1 | eval $at_tee_pipe
11182 at_status=`cat "$at_status_file"`
11185 # 24. delete03.at:21: deleting members with long names
11186 at_setup_line='delete03.at:21'
11187 at_desc="deleting members with long names"
11188 $at_quiet $as_echo_n " 24: $at_desc "
11190 test -f $XFAILFILE && at_xfail=yes
11191 echo "# -*- compilation -*-" >> "$at_group_log"
11193 $as_echo "24. delete03.at:21: testing ..."
11203 $as_echo "$at_srcdir/delete03.at:26:
11206 TEST_TAR_FORMAT=gnu
11207 export TEST_TAR_FORMAT
11208 TAR_OPTIONS=\"-H gnu\"
11213 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
11215 for i in 1 2 3 4 5 6 7 8 9
11216 do touch \$prefix\$i
11218 tar -cf archive ./\$prefix* &&
11219 tar --delete -f archive ./\${prefix}5 &&
11222 echo delete03.at:26 >"$at_check_line_file"
11224 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11229 TEST_TAR_FORMAT=gnu
11230 export TEST_TAR_FORMAT
11231 TAR_OPTIONS="-H gnu"
11236 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
11238 for i in 1 2 3 4 5 6 7 8 9
11241 tar -cf archive ./$prefix* &&
11242 tar --delete -f archive ./${prefix}5 &&
11244 ) ) >"$at_stdout" 2>"$at_stder1"
11245 at_func_filter_trace $?
11250 TEST_TAR_FORMAT=gnu
11251 export TEST_TAR_FORMAT
11252 TAR_OPTIONS="-H gnu"
11257 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
11259 for i in 1 2 3 4 5 6 7 8 9
11262 tar -cf archive ./$prefix* &&
11263 tar --delete -f archive ./${prefix}5 &&
11265 ) ) >"$at_stdout" 2>"$at_stderr"
11269 at_func_diff_devnull "$at_stderr" || at_failed=:
11270 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
11271 ./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
11272 ./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
11273 ./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
11274 ./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
11275 ./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
11276 ./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
11277 ./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
11279 $at_diff - "$at_stdout" || at_failed=:
11280 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11282 $at_failed && at_func_log_failure
11286 $as_echo "$at_srcdir/delete03.at:26:
11289 TEST_TAR_FORMAT=oldgnu
11290 export TEST_TAR_FORMAT
11291 TAR_OPTIONS=\"-H oldgnu\"
11296 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
11298 for i in 1 2 3 4 5 6 7 8 9
11299 do touch \$prefix\$i
11301 tar -cf archive ./\$prefix* &&
11302 tar --delete -f archive ./\${prefix}5 &&
11305 echo delete03.at:26 >"$at_check_line_file"
11307 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11312 TEST_TAR_FORMAT=oldgnu
11313 export TEST_TAR_FORMAT
11314 TAR_OPTIONS="-H oldgnu"
11319 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
11321 for i in 1 2 3 4 5 6 7 8 9
11324 tar -cf archive ./$prefix* &&
11325 tar --delete -f archive ./${prefix}5 &&
11327 ) ) >"$at_stdout" 2>"$at_stder1"
11328 at_func_filter_trace $?
11333 TEST_TAR_FORMAT=oldgnu
11334 export TEST_TAR_FORMAT
11335 TAR_OPTIONS="-H oldgnu"
11340 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
11342 for i in 1 2 3 4 5 6 7 8 9
11345 tar -cf archive ./$prefix* &&
11346 tar --delete -f archive ./${prefix}5 &&
11348 ) ) >"$at_stdout" 2>"$at_stderr"
11352 at_func_diff_devnull "$at_stderr" || at_failed=:
11353 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
11354 ./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
11355 ./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
11356 ./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
11357 ./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
11358 ./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
11359 ./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
11360 ./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
11362 $at_diff - "$at_stdout" || at_failed=:
11363 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11365 $at_failed && at_func_log_failure
11369 $as_echo "$at_srcdir/delete03.at:26:
11372 TEST_TAR_FORMAT=posix
11373 export TEST_TAR_FORMAT
11374 TAR_OPTIONS=\"-H posix\"
11379 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
11381 for i in 1 2 3 4 5 6 7 8 9
11382 do touch \$prefix\$i
11384 tar -cf archive ./\$prefix* &&
11385 tar --delete -f archive ./\${prefix}5 &&
11388 echo delete03.at:26 >"$at_check_line_file"
11390 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11395 TEST_TAR_FORMAT=posix
11396 export TEST_TAR_FORMAT
11397 TAR_OPTIONS="-H posix"
11402 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
11404 for i in 1 2 3 4 5 6 7 8 9
11407 tar -cf archive ./$prefix* &&
11408 tar --delete -f archive ./${prefix}5 &&
11410 ) ) >"$at_stdout" 2>"$at_stder1"
11411 at_func_filter_trace $?
11416 TEST_TAR_FORMAT=posix
11417 export TEST_TAR_FORMAT
11418 TAR_OPTIONS="-H posix"
11423 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
11425 for i in 1 2 3 4 5 6 7 8 9
11428 tar -cf archive ./$prefix* &&
11429 tar --delete -f archive ./${prefix}5 &&
11431 ) ) >"$at_stdout" 2>"$at_stderr"
11435 at_func_diff_devnull "$at_stderr" || at_failed=:
11436 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
11437 ./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
11438 ./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
11439 ./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
11440 ./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
11441 ./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
11442 ./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
11443 ./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
11445 $at_diff - "$at_stdout" || at_failed=:
11446 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11448 $at_failed && at_func_log_failure
11455 $at_times_p && times >"$at_times_file"
11456 ) 5>&1 2>&1 | eval $at_tee_pipe
11457 at_status=`cat "$at_status_file"`
11460 # 25. delete04.at:23: deleting a large last member
11461 at_setup_line='delete04.at:23'
11462 at_desc="deleting a large last member"
11463 $at_quiet $as_echo_n " 25: $at_desc "
11465 test -f $XFAILFILE && at_xfail=yes
11466 echo "# -*- compilation -*-" >> "$at_group_log"
11468 $as_echo "25. delete04.at:23: testing ..."
11476 $as_echo "$at_srcdir/delete04.at:26:
11480 export TEST_TAR_FORMAT
11481 TAR_OPTIONS=\"-H v7\"
11485 genfile -l 3 -f file1
11486 genfile -l 5 -f file2
11487 genfile -l 3 -f file3
11488 genfile -l 6 -f file4
11489 genfile -l 24 -f file5
11490 genfile -l 13 -f file6
11491 genfile -l 1385 -f file7
11492 genfile -l 30 -f file8
11493 genfile -l 10 -f file9
11494 genfile -l 256000 -f file10
11495 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11496 tar f archive --delete file10
11499 echo delete04.at:26 >"$at_check_line_file"
11501 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11507 export TEST_TAR_FORMAT
11508 TAR_OPTIONS="-H v7"
11512 genfile -l 3 -f file1
11513 genfile -l 5 -f file2
11514 genfile -l 3 -f file3
11515 genfile -l 6 -f file4
11516 genfile -l 24 -f file5
11517 genfile -l 13 -f file6
11518 genfile -l 1385 -f file7
11519 genfile -l 30 -f file8
11520 genfile -l 10 -f file9
11521 genfile -l 256000 -f file10
11522 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11523 tar f archive --delete file10
11525 ) ) >"$at_stdout" 2>"$at_stder1"
11526 at_func_filter_trace $?
11532 export TEST_TAR_FORMAT
11533 TAR_OPTIONS="-H v7"
11537 genfile -l 3 -f file1
11538 genfile -l 5 -f file2
11539 genfile -l 3 -f file3
11540 genfile -l 6 -f file4
11541 genfile -l 24 -f file5
11542 genfile -l 13 -f file6
11543 genfile -l 1385 -f file7
11544 genfile -l 30 -f file8
11545 genfile -l 10 -f file9
11546 genfile -l 256000 -f file10
11547 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11548 tar f archive --delete file10
11550 ) ) >"$at_stdout" 2>"$at_stderr"
11554 at_func_diff_devnull "$at_stderr" || at_failed=:
11555 echo >>"$at_stdout"; $as_echo "file1
11565 $at_diff - "$at_stdout" || at_failed=:
11566 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11568 $at_failed && at_func_log_failure
11572 $as_echo "$at_srcdir/delete04.at:26:
11575 TEST_TAR_FORMAT=oldgnu
11576 export TEST_TAR_FORMAT
11577 TAR_OPTIONS=\"-H oldgnu\"
11581 genfile -l 3 -f file1
11582 genfile -l 5 -f file2
11583 genfile -l 3 -f file3
11584 genfile -l 6 -f file4
11585 genfile -l 24 -f file5
11586 genfile -l 13 -f file6
11587 genfile -l 1385 -f file7
11588 genfile -l 30 -f file8
11589 genfile -l 10 -f file9
11590 genfile -l 256000 -f file10
11591 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11592 tar f archive --delete file10
11595 echo delete04.at:26 >"$at_check_line_file"
11597 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11602 TEST_TAR_FORMAT=oldgnu
11603 export TEST_TAR_FORMAT
11604 TAR_OPTIONS="-H oldgnu"
11608 genfile -l 3 -f file1
11609 genfile -l 5 -f file2
11610 genfile -l 3 -f file3
11611 genfile -l 6 -f file4
11612 genfile -l 24 -f file5
11613 genfile -l 13 -f file6
11614 genfile -l 1385 -f file7
11615 genfile -l 30 -f file8
11616 genfile -l 10 -f file9
11617 genfile -l 256000 -f file10
11618 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11619 tar f archive --delete file10
11621 ) ) >"$at_stdout" 2>"$at_stder1"
11622 at_func_filter_trace $?
11627 TEST_TAR_FORMAT=oldgnu
11628 export TEST_TAR_FORMAT
11629 TAR_OPTIONS="-H oldgnu"
11633 genfile -l 3 -f file1
11634 genfile -l 5 -f file2
11635 genfile -l 3 -f file3
11636 genfile -l 6 -f file4
11637 genfile -l 24 -f file5
11638 genfile -l 13 -f file6
11639 genfile -l 1385 -f file7
11640 genfile -l 30 -f file8
11641 genfile -l 10 -f file9
11642 genfile -l 256000 -f file10
11643 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11644 tar f archive --delete file10
11646 ) ) >"$at_stdout" 2>"$at_stderr"
11650 at_func_diff_devnull "$at_stderr" || at_failed=:
11651 echo >>"$at_stdout"; $as_echo "file1
11661 $at_diff - "$at_stdout" || at_failed=:
11662 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11664 $at_failed && at_func_log_failure
11668 $as_echo "$at_srcdir/delete04.at:26:
11671 TEST_TAR_FORMAT=ustar
11672 export TEST_TAR_FORMAT
11673 TAR_OPTIONS=\"-H ustar\"
11677 genfile -l 3 -f file1
11678 genfile -l 5 -f file2
11679 genfile -l 3 -f file3
11680 genfile -l 6 -f file4
11681 genfile -l 24 -f file5
11682 genfile -l 13 -f file6
11683 genfile -l 1385 -f file7
11684 genfile -l 30 -f file8
11685 genfile -l 10 -f file9
11686 genfile -l 256000 -f file10
11687 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11688 tar f archive --delete file10
11691 echo delete04.at:26 >"$at_check_line_file"
11693 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11698 TEST_TAR_FORMAT=ustar
11699 export TEST_TAR_FORMAT
11700 TAR_OPTIONS="-H ustar"
11704 genfile -l 3 -f file1
11705 genfile -l 5 -f file2
11706 genfile -l 3 -f file3
11707 genfile -l 6 -f file4
11708 genfile -l 24 -f file5
11709 genfile -l 13 -f file6
11710 genfile -l 1385 -f file7
11711 genfile -l 30 -f file8
11712 genfile -l 10 -f file9
11713 genfile -l 256000 -f file10
11714 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11715 tar f archive --delete file10
11717 ) ) >"$at_stdout" 2>"$at_stder1"
11718 at_func_filter_trace $?
11723 TEST_TAR_FORMAT=ustar
11724 export TEST_TAR_FORMAT
11725 TAR_OPTIONS="-H ustar"
11729 genfile -l 3 -f file1
11730 genfile -l 5 -f file2
11731 genfile -l 3 -f file3
11732 genfile -l 6 -f file4
11733 genfile -l 24 -f file5
11734 genfile -l 13 -f file6
11735 genfile -l 1385 -f file7
11736 genfile -l 30 -f file8
11737 genfile -l 10 -f file9
11738 genfile -l 256000 -f file10
11739 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11740 tar f archive --delete file10
11742 ) ) >"$at_stdout" 2>"$at_stderr"
11746 at_func_diff_devnull "$at_stderr" || at_failed=:
11747 echo >>"$at_stdout"; $as_echo "file1
11757 $at_diff - "$at_stdout" || at_failed=:
11758 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11760 $at_failed && at_func_log_failure
11764 $as_echo "$at_srcdir/delete04.at:26:
11767 TEST_TAR_FORMAT=posix
11768 export TEST_TAR_FORMAT
11769 TAR_OPTIONS=\"-H posix\"
11773 genfile -l 3 -f file1
11774 genfile -l 5 -f file2
11775 genfile -l 3 -f file3
11776 genfile -l 6 -f file4
11777 genfile -l 24 -f file5
11778 genfile -l 13 -f file6
11779 genfile -l 1385 -f file7
11780 genfile -l 30 -f file8
11781 genfile -l 10 -f file9
11782 genfile -l 256000 -f file10
11783 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11784 tar f archive --delete file10
11787 echo delete04.at:26 >"$at_check_line_file"
11789 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11794 TEST_TAR_FORMAT=posix
11795 export TEST_TAR_FORMAT
11796 TAR_OPTIONS="-H posix"
11800 genfile -l 3 -f file1
11801 genfile -l 5 -f file2
11802 genfile -l 3 -f file3
11803 genfile -l 6 -f file4
11804 genfile -l 24 -f file5
11805 genfile -l 13 -f file6
11806 genfile -l 1385 -f file7
11807 genfile -l 30 -f file8
11808 genfile -l 10 -f file9
11809 genfile -l 256000 -f file10
11810 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11811 tar f archive --delete file10
11813 ) ) >"$at_stdout" 2>"$at_stder1"
11814 at_func_filter_trace $?
11819 TEST_TAR_FORMAT=posix
11820 export TEST_TAR_FORMAT
11821 TAR_OPTIONS="-H posix"
11825 genfile -l 3 -f file1
11826 genfile -l 5 -f file2
11827 genfile -l 3 -f file3
11828 genfile -l 6 -f file4
11829 genfile -l 24 -f file5
11830 genfile -l 13 -f file6
11831 genfile -l 1385 -f file7
11832 genfile -l 30 -f file8
11833 genfile -l 10 -f file9
11834 genfile -l 256000 -f file10
11835 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11836 tar f archive --delete file10
11838 ) ) >"$at_stdout" 2>"$at_stderr"
11842 at_func_diff_devnull "$at_stderr" || at_failed=:
11843 echo >>"$at_stdout"; $as_echo "file1
11853 $at_diff - "$at_stdout" || at_failed=:
11854 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11856 $at_failed && at_func_log_failure
11860 $as_echo "$at_srcdir/delete04.at:26:
11863 TEST_TAR_FORMAT=gnu
11864 export TEST_TAR_FORMAT
11865 TAR_OPTIONS=\"-H gnu\"
11869 genfile -l 3 -f file1
11870 genfile -l 5 -f file2
11871 genfile -l 3 -f file3
11872 genfile -l 6 -f file4
11873 genfile -l 24 -f file5
11874 genfile -l 13 -f file6
11875 genfile -l 1385 -f file7
11876 genfile -l 30 -f file8
11877 genfile -l 10 -f file9
11878 genfile -l 256000 -f file10
11879 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11880 tar f archive --delete file10
11883 echo delete04.at:26 >"$at_check_line_file"
11885 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11890 TEST_TAR_FORMAT=gnu
11891 export TEST_TAR_FORMAT
11892 TAR_OPTIONS="-H gnu"
11896 genfile -l 3 -f file1
11897 genfile -l 5 -f file2
11898 genfile -l 3 -f file3
11899 genfile -l 6 -f file4
11900 genfile -l 24 -f file5
11901 genfile -l 13 -f file6
11902 genfile -l 1385 -f file7
11903 genfile -l 30 -f file8
11904 genfile -l 10 -f file9
11905 genfile -l 256000 -f file10
11906 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11907 tar f archive --delete file10
11909 ) ) >"$at_stdout" 2>"$at_stder1"
11910 at_func_filter_trace $?
11915 TEST_TAR_FORMAT=gnu
11916 export TEST_TAR_FORMAT
11917 TAR_OPTIONS="-H gnu"
11921 genfile -l 3 -f file1
11922 genfile -l 5 -f file2
11923 genfile -l 3 -f file3
11924 genfile -l 6 -f file4
11925 genfile -l 24 -f file5
11926 genfile -l 13 -f file6
11927 genfile -l 1385 -f file7
11928 genfile -l 30 -f file8
11929 genfile -l 10 -f file9
11930 genfile -l 256000 -f file10
11931 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11932 tar f archive --delete file10
11934 ) ) >"$at_stdout" 2>"$at_stderr"
11938 at_func_diff_devnull "$at_stderr" || at_failed=:
11939 echo >>"$at_stdout"; $as_echo "file1
11949 $at_diff - "$at_stdout" || at_failed=:
11950 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11952 $at_failed && at_func_log_failure
11959 $at_times_p && times >"$at_times_file"
11960 ) 5>&1 2>&1 | eval $at_tee_pipe
11961 at_status=`cat "$at_status_file"`
11964 # 26. delete05.at:27: deleting non-existing member
11965 at_setup_line='delete05.at:27'
11966 at_desc="deleting non-existing member"
11967 $at_quiet $as_echo_n " 26: $at_desc "
11969 test -f $XFAILFILE && at_xfail=yes
11970 echo "# -*- compilation -*-" >> "$at_group_log"
11972 $as_echo "26. delete05.at:27: testing ..."
11980 $as_echo "$at_srcdir/delete05.at:30:
11984 export TEST_TAR_FORMAT
11985 TAR_OPTIONS=\"-H v7\"
11989 genfile -l 1024 -f en
11990 genfile -l 1024 -f to
11992 tar cf archive en to
11993 # Make sure we don't use bogus blocking factor.
11994 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11995 tar --file archive --blocking-factor=20 --delete tre
11998 echo delete05.at:30 >"$at_check_line_file"
12000 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12006 export TEST_TAR_FORMAT
12007 TAR_OPTIONS="-H v7"
12011 genfile -l 1024 -f en
12012 genfile -l 1024 -f to
12014 tar cf archive en to
12015 # Make sure we don't use bogus blocking factor.
12016 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12017 tar --file archive --blocking-factor=20 --delete tre
12019 ) ) >"$at_stdout" 2>"$at_stder1"
12020 at_func_filter_trace $?
12026 export TEST_TAR_FORMAT
12027 TAR_OPTIONS="-H v7"
12031 genfile -l 1024 -f en
12032 genfile -l 1024 -f to
12034 tar cf archive en to
12035 # Make sure we don't use bogus blocking factor.
12036 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12037 tar --file archive --blocking-factor=20 --delete tre
12039 ) ) >"$at_stdout" 2>"$at_stderr"
12043 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12044 tar: Exiting with failure status due to previous errors
12046 $at_diff - "$at_stderr" || at_failed=:
12047 echo >>"$at_stdout"; $as_echo "en
12050 $at_diff - "$at_stdout" || at_failed=:
12051 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12053 $at_failed && at_func_log_failure
12057 $as_echo "$at_srcdir/delete05.at:30:
12060 TEST_TAR_FORMAT=oldgnu
12061 export TEST_TAR_FORMAT
12062 TAR_OPTIONS=\"-H oldgnu\"
12066 genfile -l 1024 -f en
12067 genfile -l 1024 -f to
12069 tar cf archive en to
12070 # Make sure we don't use bogus blocking factor.
12071 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12072 tar --file archive --blocking-factor=20 --delete tre
12075 echo delete05.at:30 >"$at_check_line_file"
12077 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12082 TEST_TAR_FORMAT=oldgnu
12083 export TEST_TAR_FORMAT
12084 TAR_OPTIONS="-H oldgnu"
12088 genfile -l 1024 -f en
12089 genfile -l 1024 -f to
12091 tar cf archive en to
12092 # Make sure we don't use bogus blocking factor.
12093 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12094 tar --file archive --blocking-factor=20 --delete tre
12096 ) ) >"$at_stdout" 2>"$at_stder1"
12097 at_func_filter_trace $?
12102 TEST_TAR_FORMAT=oldgnu
12103 export TEST_TAR_FORMAT
12104 TAR_OPTIONS="-H oldgnu"
12108 genfile -l 1024 -f en
12109 genfile -l 1024 -f to
12111 tar cf archive en to
12112 # Make sure we don't use bogus blocking factor.
12113 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12114 tar --file archive --blocking-factor=20 --delete tre
12116 ) ) >"$at_stdout" 2>"$at_stderr"
12120 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12121 tar: Exiting with failure status due to previous errors
12123 $at_diff - "$at_stderr" || at_failed=:
12124 echo >>"$at_stdout"; $as_echo "en
12127 $at_diff - "$at_stdout" || at_failed=:
12128 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12130 $at_failed && at_func_log_failure
12134 $as_echo "$at_srcdir/delete05.at:30:
12137 TEST_TAR_FORMAT=ustar
12138 export TEST_TAR_FORMAT
12139 TAR_OPTIONS=\"-H ustar\"
12143 genfile -l 1024 -f en
12144 genfile -l 1024 -f to
12146 tar cf archive en to
12147 # Make sure we don't use bogus blocking factor.
12148 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12149 tar --file archive --blocking-factor=20 --delete tre
12152 echo delete05.at:30 >"$at_check_line_file"
12154 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12159 TEST_TAR_FORMAT=ustar
12160 export TEST_TAR_FORMAT
12161 TAR_OPTIONS="-H ustar"
12165 genfile -l 1024 -f en
12166 genfile -l 1024 -f to
12168 tar cf archive en to
12169 # Make sure we don't use bogus blocking factor.
12170 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12171 tar --file archive --blocking-factor=20 --delete tre
12173 ) ) >"$at_stdout" 2>"$at_stder1"
12174 at_func_filter_trace $?
12179 TEST_TAR_FORMAT=ustar
12180 export TEST_TAR_FORMAT
12181 TAR_OPTIONS="-H ustar"
12185 genfile -l 1024 -f en
12186 genfile -l 1024 -f to
12188 tar cf archive en to
12189 # Make sure we don't use bogus blocking factor.
12190 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12191 tar --file archive --blocking-factor=20 --delete tre
12193 ) ) >"$at_stdout" 2>"$at_stderr"
12197 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12198 tar: Exiting with failure status due to previous errors
12200 $at_diff - "$at_stderr" || at_failed=:
12201 echo >>"$at_stdout"; $as_echo "en
12204 $at_diff - "$at_stdout" || at_failed=:
12205 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12207 $at_failed && at_func_log_failure
12211 $as_echo "$at_srcdir/delete05.at:30:
12214 TEST_TAR_FORMAT=posix
12215 export TEST_TAR_FORMAT
12216 TAR_OPTIONS=\"-H posix\"
12220 genfile -l 1024 -f en
12221 genfile -l 1024 -f to
12223 tar cf archive en to
12224 # Make sure we don't use bogus blocking factor.
12225 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12226 tar --file archive --blocking-factor=20 --delete tre
12229 echo delete05.at:30 >"$at_check_line_file"
12231 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12236 TEST_TAR_FORMAT=posix
12237 export TEST_TAR_FORMAT
12238 TAR_OPTIONS="-H posix"
12242 genfile -l 1024 -f en
12243 genfile -l 1024 -f to
12245 tar cf archive en to
12246 # Make sure we don't use bogus blocking factor.
12247 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12248 tar --file archive --blocking-factor=20 --delete tre
12250 ) ) >"$at_stdout" 2>"$at_stder1"
12251 at_func_filter_trace $?
12256 TEST_TAR_FORMAT=posix
12257 export TEST_TAR_FORMAT
12258 TAR_OPTIONS="-H posix"
12262 genfile -l 1024 -f en
12263 genfile -l 1024 -f to
12265 tar cf archive en to
12266 # Make sure we don't use bogus blocking factor.
12267 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12268 tar --file archive --blocking-factor=20 --delete tre
12270 ) ) >"$at_stdout" 2>"$at_stderr"
12274 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12275 tar: Exiting with failure status due to previous errors
12277 $at_diff - "$at_stderr" || at_failed=:
12278 echo >>"$at_stdout"; $as_echo "en
12281 $at_diff - "$at_stdout" || at_failed=:
12282 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12284 $at_failed && at_func_log_failure
12288 $as_echo "$at_srcdir/delete05.at:30:
12291 TEST_TAR_FORMAT=gnu
12292 export TEST_TAR_FORMAT
12293 TAR_OPTIONS=\"-H gnu\"
12297 genfile -l 1024 -f en
12298 genfile -l 1024 -f to
12300 tar cf archive en to
12301 # Make sure we don't use bogus blocking factor.
12302 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12303 tar --file archive --blocking-factor=20 --delete tre
12306 echo delete05.at:30 >"$at_check_line_file"
12308 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12313 TEST_TAR_FORMAT=gnu
12314 export TEST_TAR_FORMAT
12315 TAR_OPTIONS="-H gnu"
12319 genfile -l 1024 -f en
12320 genfile -l 1024 -f to
12322 tar cf archive en to
12323 # Make sure we don't use bogus blocking factor.
12324 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12325 tar --file archive --blocking-factor=20 --delete tre
12327 ) ) >"$at_stdout" 2>"$at_stder1"
12328 at_func_filter_trace $?
12333 TEST_TAR_FORMAT=gnu
12334 export TEST_TAR_FORMAT
12335 TAR_OPTIONS="-H gnu"
12339 genfile -l 1024 -f en
12340 genfile -l 1024 -f to
12342 tar cf archive en to
12343 # Make sure we don't use bogus blocking factor.
12344 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12345 tar --file archive --blocking-factor=20 --delete tre
12347 ) ) >"$at_stdout" 2>"$at_stderr"
12351 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12352 tar: Exiting with failure status due to previous errors
12354 $at_diff - "$at_stderr" || at_failed=:
12355 echo >>"$at_stdout"; $as_echo "en
12358 $at_diff - "$at_stdout" || at_failed=:
12359 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12361 $at_failed && at_func_log_failure
12368 $at_times_p && times >"$at_times_file"
12369 ) 5>&1 2>&1 | eval $at_tee_pipe
12370 at_status=`cat "$at_status_file"`
12373 # 27. extrac01.at:23: extract over an existing directory
12374 at_setup_line='extrac01.at:23'
12375 at_desc="extract over an existing directory"
12376 $at_quiet $as_echo_n " 27: $at_desc "
12378 test -f $XFAILFILE && at_xfail=yes
12379 echo "# -*- compilation -*-" >> "$at_group_log"
12381 $as_echo "27. extrac01.at:23: testing ..."
12389 $as_echo "$at_srcdir/extrac01.at:26:
12393 export TEST_TAR_FORMAT
12394 TAR_OPTIONS=\"-H v7\"
12399 touch directory/file
12400 tar cf archive directory || exit 1
12401 tar xf archive --warning=no-timestamp || exit 1
12403 echo extrac01.at:26 >"$at_check_line_file"
12405 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12411 export TEST_TAR_FORMAT
12412 TAR_OPTIONS="-H v7"
12417 touch directory/file
12418 tar cf archive directory || exit 1
12419 tar xf archive --warning=no-timestamp || exit 1
12420 ) ) >"$at_stdout" 2>"$at_stder1"
12421 at_func_filter_trace $?
12427 export TEST_TAR_FORMAT
12428 TAR_OPTIONS="-H v7"
12433 touch directory/file
12434 tar cf archive directory || exit 1
12435 tar xf archive --warning=no-timestamp || exit 1
12436 ) ) >"$at_stdout" 2>"$at_stderr"
12440 at_func_diff_devnull "$at_stderr" || at_failed=:
12441 at_func_diff_devnull "$at_stdout" || at_failed=:
12442 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12444 $at_failed && at_func_log_failure
12448 $as_echo "$at_srcdir/extrac01.at:26:
12451 TEST_TAR_FORMAT=oldgnu
12452 export TEST_TAR_FORMAT
12453 TAR_OPTIONS=\"-H oldgnu\"
12458 touch directory/file
12459 tar cf archive directory || exit 1
12460 tar xf archive --warning=no-timestamp || exit 1
12462 echo extrac01.at:26 >"$at_check_line_file"
12464 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12469 TEST_TAR_FORMAT=oldgnu
12470 export TEST_TAR_FORMAT
12471 TAR_OPTIONS="-H oldgnu"
12476 touch directory/file
12477 tar cf archive directory || exit 1
12478 tar xf archive --warning=no-timestamp || exit 1
12479 ) ) >"$at_stdout" 2>"$at_stder1"
12480 at_func_filter_trace $?
12485 TEST_TAR_FORMAT=oldgnu
12486 export TEST_TAR_FORMAT
12487 TAR_OPTIONS="-H oldgnu"
12492 touch directory/file
12493 tar cf archive directory || exit 1
12494 tar xf archive --warning=no-timestamp || exit 1
12495 ) ) >"$at_stdout" 2>"$at_stderr"
12499 at_func_diff_devnull "$at_stderr" || at_failed=:
12500 at_func_diff_devnull "$at_stdout" || at_failed=:
12501 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12503 $at_failed && at_func_log_failure
12507 $as_echo "$at_srcdir/extrac01.at:26:
12510 TEST_TAR_FORMAT=ustar
12511 export TEST_TAR_FORMAT
12512 TAR_OPTIONS=\"-H ustar\"
12517 touch directory/file
12518 tar cf archive directory || exit 1
12519 tar xf archive --warning=no-timestamp || exit 1
12521 echo extrac01.at:26 >"$at_check_line_file"
12523 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12528 TEST_TAR_FORMAT=ustar
12529 export TEST_TAR_FORMAT
12530 TAR_OPTIONS="-H ustar"
12535 touch directory/file
12536 tar cf archive directory || exit 1
12537 tar xf archive --warning=no-timestamp || exit 1
12538 ) ) >"$at_stdout" 2>"$at_stder1"
12539 at_func_filter_trace $?
12544 TEST_TAR_FORMAT=ustar
12545 export TEST_TAR_FORMAT
12546 TAR_OPTIONS="-H ustar"
12551 touch directory/file
12552 tar cf archive directory || exit 1
12553 tar xf archive --warning=no-timestamp || exit 1
12554 ) ) >"$at_stdout" 2>"$at_stderr"
12558 at_func_diff_devnull "$at_stderr" || at_failed=:
12559 at_func_diff_devnull "$at_stdout" || at_failed=:
12560 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12562 $at_failed && at_func_log_failure
12566 $as_echo "$at_srcdir/extrac01.at:26:
12569 TEST_TAR_FORMAT=posix
12570 export TEST_TAR_FORMAT
12571 TAR_OPTIONS=\"-H posix\"
12576 touch directory/file
12577 tar cf archive directory || exit 1
12578 tar xf archive --warning=no-timestamp || exit 1
12580 echo extrac01.at:26 >"$at_check_line_file"
12582 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12587 TEST_TAR_FORMAT=posix
12588 export TEST_TAR_FORMAT
12589 TAR_OPTIONS="-H posix"
12594 touch directory/file
12595 tar cf archive directory || exit 1
12596 tar xf archive --warning=no-timestamp || exit 1
12597 ) ) >"$at_stdout" 2>"$at_stder1"
12598 at_func_filter_trace $?
12603 TEST_TAR_FORMAT=posix
12604 export TEST_TAR_FORMAT
12605 TAR_OPTIONS="-H posix"
12610 touch directory/file
12611 tar cf archive directory || exit 1
12612 tar xf archive --warning=no-timestamp || exit 1
12613 ) ) >"$at_stdout" 2>"$at_stderr"
12617 at_func_diff_devnull "$at_stderr" || at_failed=:
12618 at_func_diff_devnull "$at_stdout" || at_failed=:
12619 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12621 $at_failed && at_func_log_failure
12625 $as_echo "$at_srcdir/extrac01.at:26:
12628 TEST_TAR_FORMAT=gnu
12629 export TEST_TAR_FORMAT
12630 TAR_OPTIONS=\"-H gnu\"
12635 touch directory/file
12636 tar cf archive directory || exit 1
12637 tar xf archive --warning=no-timestamp || exit 1
12639 echo extrac01.at:26 >"$at_check_line_file"
12641 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12646 TEST_TAR_FORMAT=gnu
12647 export TEST_TAR_FORMAT
12648 TAR_OPTIONS="-H gnu"
12653 touch directory/file
12654 tar cf archive directory || exit 1
12655 tar xf archive --warning=no-timestamp || exit 1
12656 ) ) >"$at_stdout" 2>"$at_stder1"
12657 at_func_filter_trace $?
12662 TEST_TAR_FORMAT=gnu
12663 export TEST_TAR_FORMAT
12664 TAR_OPTIONS="-H gnu"
12669 touch directory/file
12670 tar cf archive directory || exit 1
12671 tar xf archive --warning=no-timestamp || exit 1
12672 ) ) >"$at_stdout" 2>"$at_stderr"
12676 at_func_diff_devnull "$at_stderr" || at_failed=:
12677 at_func_diff_devnull "$at_stdout" || at_failed=:
12678 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12680 $at_failed && at_func_log_failure
12687 $at_times_p && times >"$at_times_file"
12688 ) 5>&1 2>&1 | eval $at_tee_pipe
12689 at_status=`cat "$at_status_file"`
12692 # 28. extrac02.at:23: extracting symlinks over an existing file
12693 at_setup_line='extrac02.at:23'
12694 at_desc="extracting symlinks over an existing file"
12695 $at_quiet $as_echo_n " 28: $at_desc "
12697 test -f $XFAILFILE && at_xfail=yes
12698 echo "# -*- compilation -*-" >> "$at_group_log"
12700 $as_echo "28. extrac02.at:23: testing ..."
12705 # FIXME: Skip if symlinks are not supported on the system
12710 $as_echo "$at_srcdir/extrac02.at:28:
12714 export TEST_TAR_FORMAT
12715 TAR_OPTIONS=\"-H v7\"
12720 ln -s file link 2> /dev/null || ln file link
12721 tar cf archive link
12726 echo extrac02.at:28 >"$at_check_line_file"
12728 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12734 export TEST_TAR_FORMAT
12735 TAR_OPTIONS="-H v7"
12740 ln -s file link 2> /dev/null || ln file link
12741 tar cf archive link
12745 ) ) >"$at_stdout" 2>"$at_stder1"
12746 at_func_filter_trace $?
12752 export TEST_TAR_FORMAT
12753 TAR_OPTIONS="-H v7"
12758 ln -s file link 2> /dev/null || ln file link
12759 tar cf archive link
12763 ) ) >"$at_stdout" 2>"$at_stderr"
12767 at_func_diff_devnull "$at_stderr" || at_failed=:
12768 at_func_diff_devnull "$at_stdout" || at_failed=:
12769 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12771 $at_failed && at_func_log_failure
12775 $as_echo "$at_srcdir/extrac02.at:28:
12778 TEST_TAR_FORMAT=oldgnu
12779 export TEST_TAR_FORMAT
12780 TAR_OPTIONS=\"-H oldgnu\"
12785 ln -s file link 2> /dev/null || ln file link
12786 tar cf archive link
12791 echo extrac02.at:28 >"$at_check_line_file"
12793 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12798 TEST_TAR_FORMAT=oldgnu
12799 export TEST_TAR_FORMAT
12800 TAR_OPTIONS="-H oldgnu"
12805 ln -s file link 2> /dev/null || ln file link
12806 tar cf archive link
12810 ) ) >"$at_stdout" 2>"$at_stder1"
12811 at_func_filter_trace $?
12816 TEST_TAR_FORMAT=oldgnu
12817 export TEST_TAR_FORMAT
12818 TAR_OPTIONS="-H oldgnu"
12823 ln -s file link 2> /dev/null || ln file link
12824 tar cf archive link
12828 ) ) >"$at_stdout" 2>"$at_stderr"
12832 at_func_diff_devnull "$at_stderr" || at_failed=:
12833 at_func_diff_devnull "$at_stdout" || at_failed=:
12834 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12836 $at_failed && at_func_log_failure
12840 $as_echo "$at_srcdir/extrac02.at:28:
12843 TEST_TAR_FORMAT=ustar
12844 export TEST_TAR_FORMAT
12845 TAR_OPTIONS=\"-H ustar\"
12850 ln -s file link 2> /dev/null || ln file link
12851 tar cf archive link
12856 echo extrac02.at:28 >"$at_check_line_file"
12858 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12863 TEST_TAR_FORMAT=ustar
12864 export TEST_TAR_FORMAT
12865 TAR_OPTIONS="-H ustar"
12870 ln -s file link 2> /dev/null || ln file link
12871 tar cf archive link
12875 ) ) >"$at_stdout" 2>"$at_stder1"
12876 at_func_filter_trace $?
12881 TEST_TAR_FORMAT=ustar
12882 export TEST_TAR_FORMAT
12883 TAR_OPTIONS="-H ustar"
12888 ln -s file link 2> /dev/null || ln file link
12889 tar cf archive link
12893 ) ) >"$at_stdout" 2>"$at_stderr"
12897 at_func_diff_devnull "$at_stderr" || at_failed=:
12898 at_func_diff_devnull "$at_stdout" || at_failed=:
12899 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12901 $at_failed && at_func_log_failure
12905 $as_echo "$at_srcdir/extrac02.at:28:
12908 TEST_TAR_FORMAT=posix
12909 export TEST_TAR_FORMAT
12910 TAR_OPTIONS=\"-H posix\"
12915 ln -s file link 2> /dev/null || ln file link
12916 tar cf archive link
12921 echo extrac02.at:28 >"$at_check_line_file"
12923 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12928 TEST_TAR_FORMAT=posix
12929 export TEST_TAR_FORMAT
12930 TAR_OPTIONS="-H posix"
12935 ln -s file link 2> /dev/null || ln file link
12936 tar cf archive link
12940 ) ) >"$at_stdout" 2>"$at_stder1"
12941 at_func_filter_trace $?
12946 TEST_TAR_FORMAT=posix
12947 export TEST_TAR_FORMAT
12948 TAR_OPTIONS="-H posix"
12953 ln -s file link 2> /dev/null || ln file link
12954 tar cf archive link
12958 ) ) >"$at_stdout" 2>"$at_stderr"
12962 at_func_diff_devnull "$at_stderr" || at_failed=:
12963 at_func_diff_devnull "$at_stdout" || at_failed=:
12964 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12966 $at_failed && at_func_log_failure
12970 $as_echo "$at_srcdir/extrac02.at:28:
12973 TEST_TAR_FORMAT=gnu
12974 export TEST_TAR_FORMAT
12975 TAR_OPTIONS=\"-H gnu\"
12980 ln -s file link 2> /dev/null || ln file link
12981 tar cf archive link
12986 echo extrac02.at:28 >"$at_check_line_file"
12988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12993 TEST_TAR_FORMAT=gnu
12994 export TEST_TAR_FORMAT
12995 TAR_OPTIONS="-H gnu"
13000 ln -s file link 2> /dev/null || ln file link
13001 tar cf archive link
13005 ) ) >"$at_stdout" 2>"$at_stder1"
13006 at_func_filter_trace $?
13011 TEST_TAR_FORMAT=gnu
13012 export TEST_TAR_FORMAT
13013 TAR_OPTIONS="-H gnu"
13018 ln -s file link 2> /dev/null || ln file link
13019 tar cf archive link
13023 ) ) >"$at_stdout" 2>"$at_stderr"
13027 at_func_diff_devnull "$at_stderr" || at_failed=:
13028 at_func_diff_devnull "$at_stdout" || at_failed=:
13029 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13031 $at_failed && at_func_log_failure
13038 $at_times_p && times >"$at_times_file"
13039 ) 5>&1 2>&1 | eval $at_tee_pipe
13040 at_status=`cat "$at_status_file"`
13043 # 29. extrac03.at:23: extraction loops
13044 at_setup_line='extrac03.at:23'
13045 at_desc="extraction loops"
13046 $at_quiet $as_echo_n " 29: $at_desc "
13048 test -f $XFAILFILE && at_xfail=yes
13049 echo "# -*- compilation -*-" >> "$at_group_log"
13051 $as_echo "29. extrac03.at:23: testing ..."
13059 $as_echo "$at_srcdir/extrac03.at:26:
13063 export TEST_TAR_FORMAT
13064 TAR_OPTIONS=\"-H v7\"
13069 tar -cPvf archive directory/../directory
13071 tar -xPvf archive --warning=no-timestamp)"
13072 echo extrac03.at:26 >"$at_check_line_file"
13074 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13080 export TEST_TAR_FORMAT
13081 TAR_OPTIONS="-H v7"
13086 tar -cPvf archive directory/../directory
13088 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13089 at_func_filter_trace $?
13095 export TEST_TAR_FORMAT
13096 TAR_OPTIONS="-H v7"
13101 tar -cPvf archive directory/../directory
13103 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13107 at_func_diff_devnull "$at_stderr" || at_failed=:
13108 echo >>"$at_stdout"; $as_echo "directory/../directory/
13110 directory/../directory/
13112 $at_diff - "$at_stdout" || at_failed=:
13113 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13115 $at_failed && at_func_log_failure
13119 $as_echo "$at_srcdir/extrac03.at:26:
13122 TEST_TAR_FORMAT=oldgnu
13123 export TEST_TAR_FORMAT
13124 TAR_OPTIONS=\"-H oldgnu\"
13129 tar -cPvf archive directory/../directory
13131 tar -xPvf archive --warning=no-timestamp)"
13132 echo extrac03.at:26 >"$at_check_line_file"
13134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13139 TEST_TAR_FORMAT=oldgnu
13140 export TEST_TAR_FORMAT
13141 TAR_OPTIONS="-H oldgnu"
13146 tar -cPvf archive directory/../directory
13148 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13149 at_func_filter_trace $?
13154 TEST_TAR_FORMAT=oldgnu
13155 export TEST_TAR_FORMAT
13156 TAR_OPTIONS="-H oldgnu"
13161 tar -cPvf archive directory/../directory
13163 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13167 at_func_diff_devnull "$at_stderr" || at_failed=:
13168 echo >>"$at_stdout"; $as_echo "directory/../directory/
13170 directory/../directory/
13172 $at_diff - "$at_stdout" || at_failed=:
13173 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13175 $at_failed && at_func_log_failure
13179 $as_echo "$at_srcdir/extrac03.at:26:
13182 TEST_TAR_FORMAT=ustar
13183 export TEST_TAR_FORMAT
13184 TAR_OPTIONS=\"-H ustar\"
13189 tar -cPvf archive directory/../directory
13191 tar -xPvf archive --warning=no-timestamp)"
13192 echo extrac03.at:26 >"$at_check_line_file"
13194 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13199 TEST_TAR_FORMAT=ustar
13200 export TEST_TAR_FORMAT
13201 TAR_OPTIONS="-H ustar"
13206 tar -cPvf archive directory/../directory
13208 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13209 at_func_filter_trace $?
13214 TEST_TAR_FORMAT=ustar
13215 export TEST_TAR_FORMAT
13216 TAR_OPTIONS="-H ustar"
13221 tar -cPvf archive directory/../directory
13223 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13227 at_func_diff_devnull "$at_stderr" || at_failed=:
13228 echo >>"$at_stdout"; $as_echo "directory/../directory/
13230 directory/../directory/
13232 $at_diff - "$at_stdout" || at_failed=:
13233 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13235 $at_failed && at_func_log_failure
13239 $as_echo "$at_srcdir/extrac03.at:26:
13242 TEST_TAR_FORMAT=posix
13243 export TEST_TAR_FORMAT
13244 TAR_OPTIONS=\"-H posix\"
13249 tar -cPvf archive directory/../directory
13251 tar -xPvf archive --warning=no-timestamp)"
13252 echo extrac03.at:26 >"$at_check_line_file"
13254 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13259 TEST_TAR_FORMAT=posix
13260 export TEST_TAR_FORMAT
13261 TAR_OPTIONS="-H posix"
13266 tar -cPvf archive directory/../directory
13268 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13269 at_func_filter_trace $?
13274 TEST_TAR_FORMAT=posix
13275 export TEST_TAR_FORMAT
13276 TAR_OPTIONS="-H posix"
13281 tar -cPvf archive directory/../directory
13283 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13287 at_func_diff_devnull "$at_stderr" || at_failed=:
13288 echo >>"$at_stdout"; $as_echo "directory/../directory/
13290 directory/../directory/
13292 $at_diff - "$at_stdout" || at_failed=:
13293 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13295 $at_failed && at_func_log_failure
13299 $as_echo "$at_srcdir/extrac03.at:26:
13302 TEST_TAR_FORMAT=gnu
13303 export TEST_TAR_FORMAT
13304 TAR_OPTIONS=\"-H gnu\"
13309 tar -cPvf archive directory/../directory
13311 tar -xPvf archive --warning=no-timestamp)"
13312 echo extrac03.at:26 >"$at_check_line_file"
13314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13319 TEST_TAR_FORMAT=gnu
13320 export TEST_TAR_FORMAT
13321 TAR_OPTIONS="-H gnu"
13326 tar -cPvf archive directory/../directory
13328 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13329 at_func_filter_trace $?
13334 TEST_TAR_FORMAT=gnu
13335 export TEST_TAR_FORMAT
13336 TAR_OPTIONS="-H gnu"
13341 tar -cPvf archive directory/../directory
13343 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13347 at_func_diff_devnull "$at_stderr" || at_failed=:
13348 echo >>"$at_stdout"; $as_echo "directory/../directory/
13350 directory/../directory/
13352 $at_diff - "$at_stdout" || at_failed=:
13353 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13355 $at_failed && at_func_log_failure
13362 $at_times_p && times >"$at_times_file"
13363 ) 5>&1 2>&1 | eval $at_tee_pipe
13364 at_status=`cat "$at_status_file"`
13367 # 30. extrac04.at:23: extract + fnmatch
13368 at_setup_line='extrac04.at:23'
13369 at_desc="extract + fnmatch"
13370 $at_quiet $as_echo_n " 30: $at_desc "
13372 test -f $XFAILFILE && at_xfail=yes
13373 echo "# -*- compilation -*-" >> "$at_group_log"
13375 $as_echo "30. extrac04.at:23: testing ..."
13383 $as_echo "$at_srcdir/extrac04.at:26:
13387 export TEST_TAR_FORMAT
13388 TAR_OPTIONS=\"-H v7\"
13393 test -z "`sort < /dev/null 2>&1`" || exit 77
13397 mkdir directory/subdirectory
13398 touch directory/file1
13399 touch directory/file2
13400 touch directory/subdirectory/file1
13401 touch directory/subdirectory/file2
13402 tar -cf archive ./file1 directory
13404 --exclude='./*1' \\
13405 --exclude='d*/*1' \\
13406 --exclude='d*/s*/*2' | sort
13408 echo extrac04.at:26 >"$at_check_line_file"
13410 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13416 export TEST_TAR_FORMAT
13417 TAR_OPTIONS="-H v7"
13422 test -z "`sort < /dev/null 2>&1`" || exit 77
13426 mkdir directory/subdirectory
13427 touch directory/file1
13428 touch directory/file2
13429 touch directory/subdirectory/file1
13430 touch directory/subdirectory/file2
13431 tar -cf archive ./file1 directory
13434 --exclude='d*/*1' \
13435 --exclude='d*/s*/*2' | sort
13436 ) ) >"$at_stdout" 2>"$at_stder1"
13437 at_func_filter_trace $?
13443 export TEST_TAR_FORMAT
13444 TAR_OPTIONS="-H v7"
13449 test -z "`sort < /dev/null 2>&1`" || exit 77
13453 mkdir directory/subdirectory
13454 touch directory/file1
13455 touch directory/file2
13456 touch directory/subdirectory/file1
13457 touch directory/subdirectory/file2
13458 tar -cf archive ./file1 directory
13461 --exclude='d*/*1' \
13462 --exclude='d*/s*/*2' | sort
13463 ) ) >"$at_stdout" 2>"$at_stderr"
13467 at_func_diff_devnull "$at_stderr" || at_failed=:
13468 echo >>"$at_stdout"; $as_echo "directory/
13470 directory/subdirectory/
13472 $at_diff - "$at_stdout" || at_failed=:
13473 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13475 $at_failed && at_func_log_failure
13479 $as_echo "$at_srcdir/extrac04.at:26:
13482 TEST_TAR_FORMAT=oldgnu
13483 export TEST_TAR_FORMAT
13484 TAR_OPTIONS=\"-H oldgnu\"
13489 test -z "`sort < /dev/null 2>&1`" || exit 77
13493 mkdir directory/subdirectory
13494 touch directory/file1
13495 touch directory/file2
13496 touch directory/subdirectory/file1
13497 touch directory/subdirectory/file2
13498 tar -cf archive ./file1 directory
13500 --exclude='./*1' \\
13501 --exclude='d*/*1' \\
13502 --exclude='d*/s*/*2' | sort
13504 echo extrac04.at:26 >"$at_check_line_file"
13506 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13511 TEST_TAR_FORMAT=oldgnu
13512 export TEST_TAR_FORMAT
13513 TAR_OPTIONS="-H oldgnu"
13518 test -z "`sort < /dev/null 2>&1`" || exit 77
13522 mkdir directory/subdirectory
13523 touch directory/file1
13524 touch directory/file2
13525 touch directory/subdirectory/file1
13526 touch directory/subdirectory/file2
13527 tar -cf archive ./file1 directory
13530 --exclude='d*/*1' \
13531 --exclude='d*/s*/*2' | sort
13532 ) ) >"$at_stdout" 2>"$at_stder1"
13533 at_func_filter_trace $?
13538 TEST_TAR_FORMAT=oldgnu
13539 export TEST_TAR_FORMAT
13540 TAR_OPTIONS="-H oldgnu"
13545 test -z "`sort < /dev/null 2>&1`" || exit 77
13549 mkdir directory/subdirectory
13550 touch directory/file1
13551 touch directory/file2
13552 touch directory/subdirectory/file1
13553 touch directory/subdirectory/file2
13554 tar -cf archive ./file1 directory
13557 --exclude='d*/*1' \
13558 --exclude='d*/s*/*2' | sort
13559 ) ) >"$at_stdout" 2>"$at_stderr"
13563 at_func_diff_devnull "$at_stderr" || at_failed=:
13564 echo >>"$at_stdout"; $as_echo "directory/
13566 directory/subdirectory/
13568 $at_diff - "$at_stdout" || at_failed=:
13569 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13571 $at_failed && at_func_log_failure
13575 $as_echo "$at_srcdir/extrac04.at:26:
13578 TEST_TAR_FORMAT=ustar
13579 export TEST_TAR_FORMAT
13580 TAR_OPTIONS=\"-H ustar\"
13585 test -z "`sort < /dev/null 2>&1`" || exit 77
13589 mkdir directory/subdirectory
13590 touch directory/file1
13591 touch directory/file2
13592 touch directory/subdirectory/file1
13593 touch directory/subdirectory/file2
13594 tar -cf archive ./file1 directory
13596 --exclude='./*1' \\
13597 --exclude='d*/*1' \\
13598 --exclude='d*/s*/*2' | sort
13600 echo extrac04.at:26 >"$at_check_line_file"
13602 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13607 TEST_TAR_FORMAT=ustar
13608 export TEST_TAR_FORMAT
13609 TAR_OPTIONS="-H ustar"
13614 test -z "`sort < /dev/null 2>&1`" || exit 77
13618 mkdir directory/subdirectory
13619 touch directory/file1
13620 touch directory/file2
13621 touch directory/subdirectory/file1
13622 touch directory/subdirectory/file2
13623 tar -cf archive ./file1 directory
13626 --exclude='d*/*1' \
13627 --exclude='d*/s*/*2' | sort
13628 ) ) >"$at_stdout" 2>"$at_stder1"
13629 at_func_filter_trace $?
13634 TEST_TAR_FORMAT=ustar
13635 export TEST_TAR_FORMAT
13636 TAR_OPTIONS="-H ustar"
13641 test -z "`sort < /dev/null 2>&1`" || exit 77
13645 mkdir directory/subdirectory
13646 touch directory/file1
13647 touch directory/file2
13648 touch directory/subdirectory/file1
13649 touch directory/subdirectory/file2
13650 tar -cf archive ./file1 directory
13653 --exclude='d*/*1' \
13654 --exclude='d*/s*/*2' | sort
13655 ) ) >"$at_stdout" 2>"$at_stderr"
13659 at_func_diff_devnull "$at_stderr" || at_failed=:
13660 echo >>"$at_stdout"; $as_echo "directory/
13662 directory/subdirectory/
13664 $at_diff - "$at_stdout" || at_failed=:
13665 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13667 $at_failed && at_func_log_failure
13671 $as_echo "$at_srcdir/extrac04.at:26:
13674 TEST_TAR_FORMAT=posix
13675 export TEST_TAR_FORMAT
13676 TAR_OPTIONS=\"-H posix\"
13681 test -z "`sort < /dev/null 2>&1`" || exit 77
13685 mkdir directory/subdirectory
13686 touch directory/file1
13687 touch directory/file2
13688 touch directory/subdirectory/file1
13689 touch directory/subdirectory/file2
13690 tar -cf archive ./file1 directory
13692 --exclude='./*1' \\
13693 --exclude='d*/*1' \\
13694 --exclude='d*/s*/*2' | sort
13696 echo extrac04.at:26 >"$at_check_line_file"
13698 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13703 TEST_TAR_FORMAT=posix
13704 export TEST_TAR_FORMAT
13705 TAR_OPTIONS="-H posix"
13710 test -z "`sort < /dev/null 2>&1`" || exit 77
13714 mkdir directory/subdirectory
13715 touch directory/file1
13716 touch directory/file2
13717 touch directory/subdirectory/file1
13718 touch directory/subdirectory/file2
13719 tar -cf archive ./file1 directory
13722 --exclude='d*/*1' \
13723 --exclude='d*/s*/*2' | sort
13724 ) ) >"$at_stdout" 2>"$at_stder1"
13725 at_func_filter_trace $?
13730 TEST_TAR_FORMAT=posix
13731 export TEST_TAR_FORMAT
13732 TAR_OPTIONS="-H posix"
13737 test -z "`sort < /dev/null 2>&1`" || exit 77
13741 mkdir directory/subdirectory
13742 touch directory/file1
13743 touch directory/file2
13744 touch directory/subdirectory/file1
13745 touch directory/subdirectory/file2
13746 tar -cf archive ./file1 directory
13749 --exclude='d*/*1' \
13750 --exclude='d*/s*/*2' | sort
13751 ) ) >"$at_stdout" 2>"$at_stderr"
13755 at_func_diff_devnull "$at_stderr" || at_failed=:
13756 echo >>"$at_stdout"; $as_echo "directory/
13758 directory/subdirectory/
13760 $at_diff - "$at_stdout" || at_failed=:
13761 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13763 $at_failed && at_func_log_failure
13767 $as_echo "$at_srcdir/extrac04.at:26:
13770 TEST_TAR_FORMAT=gnu
13771 export TEST_TAR_FORMAT
13772 TAR_OPTIONS=\"-H gnu\"
13777 test -z "`sort < /dev/null 2>&1`" || exit 77
13781 mkdir directory/subdirectory
13782 touch directory/file1
13783 touch directory/file2
13784 touch directory/subdirectory/file1
13785 touch directory/subdirectory/file2
13786 tar -cf archive ./file1 directory
13788 --exclude='./*1' \\
13789 --exclude='d*/*1' \\
13790 --exclude='d*/s*/*2' | sort
13792 echo extrac04.at:26 >"$at_check_line_file"
13794 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13799 TEST_TAR_FORMAT=gnu
13800 export TEST_TAR_FORMAT
13801 TAR_OPTIONS="-H gnu"
13806 test -z "`sort < /dev/null 2>&1`" || exit 77
13810 mkdir directory/subdirectory
13811 touch directory/file1
13812 touch directory/file2
13813 touch directory/subdirectory/file1
13814 touch directory/subdirectory/file2
13815 tar -cf archive ./file1 directory
13818 --exclude='d*/*1' \
13819 --exclude='d*/s*/*2' | sort
13820 ) ) >"$at_stdout" 2>"$at_stder1"
13821 at_func_filter_trace $?
13826 TEST_TAR_FORMAT=gnu
13827 export TEST_TAR_FORMAT
13828 TAR_OPTIONS="-H gnu"
13833 test -z "`sort < /dev/null 2>&1`" || exit 77
13837 mkdir directory/subdirectory
13838 touch directory/file1
13839 touch directory/file2
13840 touch directory/subdirectory/file1
13841 touch directory/subdirectory/file2
13842 tar -cf archive ./file1 directory
13845 --exclude='d*/*1' \
13846 --exclude='d*/s*/*2' | sort
13847 ) ) >"$at_stdout" 2>"$at_stderr"
13851 at_func_diff_devnull "$at_stderr" || at_failed=:
13852 echo >>"$at_stdout"; $as_echo "directory/
13854 directory/subdirectory/
13856 $at_diff - "$at_stdout" || at_failed=:
13857 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13859 $at_failed && at_func_log_failure
13866 $at_times_p && times >"$at_times_file"
13867 ) 5>&1 2>&1 | eval $at_tee_pipe
13868 at_status=`cat "$at_status_file"`
13871 # 31. extrac05.at:30: extracting selected members from pax
13872 at_setup_line='extrac05.at:30'
13873 at_desc="extracting selected members from pax"
13874 $at_quiet $as_echo_n " 31: $at_desc "
13876 test -f $XFAILFILE && at_xfail=yes
13877 echo "# -*- compilation -*-" >> "$at_group_log"
13879 $as_echo "31. extrac05.at:30: testing ..."
13884 cat >list <<'_ATEOF'
13893 $as_echo "$at_srcdir/extrac05.at:38:
13896 TEST_TAR_FORMAT=posix
13897 export TEST_TAR_FORMAT
13898 TAR_OPTIONS=\"-H posix\"
13902 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13903 genfile --length 118 --file jeden
13904 genfile --length 223 --file dwa
13905 genfile --length 517 --file trzy
13906 genfile --length 110 --file cztery
13908 tar cf archive jeden dwa trzy cztery || exit 1
13913 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13917 echo extrac05.at:38 >"$at_check_line_file"
13919 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13924 TEST_TAR_FORMAT=posix
13925 export TEST_TAR_FORMAT
13926 TAR_OPTIONS="-H posix"
13930 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13931 genfile --length 118 --file jeden
13932 genfile --length 223 --file dwa
13933 genfile --length 517 --file trzy
13934 genfile --length 110 --file cztery
13936 tar cf archive jeden dwa trzy cztery || exit 1
13941 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13944 ) ) >"$at_stdout" 2>"$at_stder1"
13945 at_func_filter_trace $?
13950 TEST_TAR_FORMAT=posix
13951 export TEST_TAR_FORMAT
13952 TAR_OPTIONS="-H posix"
13956 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13957 genfile --length 118 --file jeden
13958 genfile --length 223 --file dwa
13959 genfile --length 517 --file trzy
13960 genfile --length 110 --file cztery
13962 tar cf archive jeden dwa trzy cztery || exit 1
13967 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13970 ) ) >"$at_stdout" 2>"$at_stderr"
13974 at_func_diff_devnull "$at_stderr" || at_failed=:
13975 echo >>"$at_stdout"; $as_echo "jeden
13978 $at_diff - "$at_stdout" || at_failed=:
13979 at_func_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
13981 $at_failed && at_func_log_failure
13988 $at_times_p && times >"$at_times_file"
13989 ) 5>&1 2>&1 | eval $at_tee_pipe
13990 at_status=`cat "$at_status_file"`
13993 # 32. extrac06.at:33: mode of extracted directories
13994 at_setup_line='extrac06.at:33'
13995 at_desc="mode of extracted directories"
13996 $at_quiet $as_echo_n " 32: $at_desc "
13998 test -f $XFAILFILE && at_xfail=yes
13999 echo "# -*- compilation -*-" >> "$at_group_log"
14001 $as_echo "32. extrac06.at:33: testing ..."
14009 $as_echo "$at_srcdir/extrac06.at:36:
14013 export TEST_TAR_FORMAT
14014 TAR_OPTIONS=\"-H v7\"
14022 # Make sure user's umask is honored, even if we are superuser
14023 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14025 # Create a directory
14027 chmod 777 directory
14028 genfile --stat=mode:777 directory
14031 tar cf arc directory
14033 # Change its permissions ...
14034 chmod 755 directory
14035 genfile --stat=mode:777 directory
14037 # ... and attempt to restore it twice
14038 tar xf arc directory --warning=no-timestamp
14039 genfile --stat=mode:777 directory
14041 tar xf arc directory --warning=no-timestamp
14042 genfile --stat=mode:777 directory
14044 # After both restores, the directory mode should be 755
14046 echo extrac06.at:36 >"$at_check_line_file"
14048 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14054 export TEST_TAR_FORMAT
14055 TAR_OPTIONS="-H v7"
14063 # Make sure user's umask is honored, even if we are superuser
14064 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14066 # Create a directory
14068 chmod 777 directory
14069 genfile --stat=mode:777 directory
14072 tar cf arc directory
14074 # Change its permissions ...
14075 chmod 755 directory
14076 genfile --stat=mode:777 directory
14078 # ... and attempt to restore it twice
14079 tar xf arc directory --warning=no-timestamp
14080 genfile --stat=mode:777 directory
14082 tar xf arc directory --warning=no-timestamp
14083 genfile --stat=mode:777 directory
14085 # After both restores, the directory mode should be 755
14086 ) ) >"$at_stdout" 2>"$at_stder1"
14087 at_func_filter_trace $?
14093 export TEST_TAR_FORMAT
14094 TAR_OPTIONS="-H v7"
14102 # Make sure user's umask is honored, even if we are superuser
14103 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14105 # Create a directory
14107 chmod 777 directory
14108 genfile --stat=mode:777 directory
14111 tar cf arc directory
14113 # Change its permissions ...
14114 chmod 755 directory
14115 genfile --stat=mode:777 directory
14117 # ... and attempt to restore it twice
14118 tar xf arc directory --warning=no-timestamp
14119 genfile --stat=mode:777 directory
14121 tar xf arc directory --warning=no-timestamp
14122 genfile --stat=mode:777 directory
14124 # After both restores, the directory mode should be 755
14125 ) ) >"$at_stdout" 2>"$at_stderr"
14129 at_func_diff_devnull "$at_stderr" || at_failed=:
14130 echo >>"$at_stdout"; $as_echo "777
14135 $at_diff - "$at_stdout" || at_failed=:
14136 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14138 $at_failed && at_func_log_failure
14142 $as_echo "$at_srcdir/extrac06.at:36:
14145 TEST_TAR_FORMAT=oldgnu
14146 export TEST_TAR_FORMAT
14147 TAR_OPTIONS=\"-H oldgnu\"
14155 # Make sure user's umask is honored, even if we are superuser
14156 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14158 # Create a directory
14160 chmod 777 directory
14161 genfile --stat=mode:777 directory
14164 tar cf arc directory
14166 # Change its permissions ...
14167 chmod 755 directory
14168 genfile --stat=mode:777 directory
14170 # ... and attempt to restore it twice
14171 tar xf arc directory --warning=no-timestamp
14172 genfile --stat=mode:777 directory
14174 tar xf arc directory --warning=no-timestamp
14175 genfile --stat=mode:777 directory
14177 # After both restores, the directory mode should be 755
14179 echo extrac06.at:36 >"$at_check_line_file"
14181 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14186 TEST_TAR_FORMAT=oldgnu
14187 export TEST_TAR_FORMAT
14188 TAR_OPTIONS="-H oldgnu"
14196 # Make sure user's umask is honored, even if we are superuser
14197 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14199 # Create a directory
14201 chmod 777 directory
14202 genfile --stat=mode:777 directory
14205 tar cf arc directory
14207 # Change its permissions ...
14208 chmod 755 directory
14209 genfile --stat=mode:777 directory
14211 # ... and attempt to restore it twice
14212 tar xf arc directory --warning=no-timestamp
14213 genfile --stat=mode:777 directory
14215 tar xf arc directory --warning=no-timestamp
14216 genfile --stat=mode:777 directory
14218 # After both restores, the directory mode should be 755
14219 ) ) >"$at_stdout" 2>"$at_stder1"
14220 at_func_filter_trace $?
14225 TEST_TAR_FORMAT=oldgnu
14226 export TEST_TAR_FORMAT
14227 TAR_OPTIONS="-H oldgnu"
14235 # Make sure user's umask is honored, even if we are superuser
14236 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14238 # Create a directory
14240 chmod 777 directory
14241 genfile --stat=mode:777 directory
14244 tar cf arc directory
14246 # Change its permissions ...
14247 chmod 755 directory
14248 genfile --stat=mode:777 directory
14250 # ... and attempt to restore it twice
14251 tar xf arc directory --warning=no-timestamp
14252 genfile --stat=mode:777 directory
14254 tar xf arc directory --warning=no-timestamp
14255 genfile --stat=mode:777 directory
14257 # After both restores, the directory mode should be 755
14258 ) ) >"$at_stdout" 2>"$at_stderr"
14262 at_func_diff_devnull "$at_stderr" || at_failed=:
14263 echo >>"$at_stdout"; $as_echo "777
14268 $at_diff - "$at_stdout" || at_failed=:
14269 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14271 $at_failed && at_func_log_failure
14275 $as_echo "$at_srcdir/extrac06.at:36:
14278 TEST_TAR_FORMAT=ustar
14279 export TEST_TAR_FORMAT
14280 TAR_OPTIONS=\"-H ustar\"
14288 # Make sure user's umask is honored, even if we are superuser
14289 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14291 # Create a directory
14293 chmod 777 directory
14294 genfile --stat=mode:777 directory
14297 tar cf arc directory
14299 # Change its permissions ...
14300 chmod 755 directory
14301 genfile --stat=mode:777 directory
14303 # ... and attempt to restore it twice
14304 tar xf arc directory --warning=no-timestamp
14305 genfile --stat=mode:777 directory
14307 tar xf arc directory --warning=no-timestamp
14308 genfile --stat=mode:777 directory
14310 # After both restores, the directory mode should be 755
14312 echo extrac06.at:36 >"$at_check_line_file"
14314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14319 TEST_TAR_FORMAT=ustar
14320 export TEST_TAR_FORMAT
14321 TAR_OPTIONS="-H ustar"
14329 # Make sure user's umask is honored, even if we are superuser
14330 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14332 # Create a directory
14334 chmod 777 directory
14335 genfile --stat=mode:777 directory
14338 tar cf arc directory
14340 # Change its permissions ...
14341 chmod 755 directory
14342 genfile --stat=mode:777 directory
14344 # ... and attempt to restore it twice
14345 tar xf arc directory --warning=no-timestamp
14346 genfile --stat=mode:777 directory
14348 tar xf arc directory --warning=no-timestamp
14349 genfile --stat=mode:777 directory
14351 # After both restores, the directory mode should be 755
14352 ) ) >"$at_stdout" 2>"$at_stder1"
14353 at_func_filter_trace $?
14358 TEST_TAR_FORMAT=ustar
14359 export TEST_TAR_FORMAT
14360 TAR_OPTIONS="-H ustar"
14368 # Make sure user's umask is honored, even if we are superuser
14369 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14371 # Create a directory
14373 chmod 777 directory
14374 genfile --stat=mode:777 directory
14377 tar cf arc directory
14379 # Change its permissions ...
14380 chmod 755 directory
14381 genfile --stat=mode:777 directory
14383 # ... and attempt to restore it twice
14384 tar xf arc directory --warning=no-timestamp
14385 genfile --stat=mode:777 directory
14387 tar xf arc directory --warning=no-timestamp
14388 genfile --stat=mode:777 directory
14390 # After both restores, the directory mode should be 755
14391 ) ) >"$at_stdout" 2>"$at_stderr"
14395 at_func_diff_devnull "$at_stderr" || at_failed=:
14396 echo >>"$at_stdout"; $as_echo "777
14401 $at_diff - "$at_stdout" || at_failed=:
14402 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14404 $at_failed && at_func_log_failure
14408 $as_echo "$at_srcdir/extrac06.at:36:
14411 TEST_TAR_FORMAT=posix
14412 export TEST_TAR_FORMAT
14413 TAR_OPTIONS=\"-H posix\"
14421 # Make sure user's umask is honored, even if we are superuser
14422 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14424 # Create a directory
14426 chmod 777 directory
14427 genfile --stat=mode:777 directory
14430 tar cf arc directory
14432 # Change its permissions ...
14433 chmod 755 directory
14434 genfile --stat=mode:777 directory
14436 # ... and attempt to restore it twice
14437 tar xf arc directory --warning=no-timestamp
14438 genfile --stat=mode:777 directory
14440 tar xf arc directory --warning=no-timestamp
14441 genfile --stat=mode:777 directory
14443 # After both restores, the directory mode should be 755
14445 echo extrac06.at:36 >"$at_check_line_file"
14447 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14452 TEST_TAR_FORMAT=posix
14453 export TEST_TAR_FORMAT
14454 TAR_OPTIONS="-H posix"
14462 # Make sure user's umask is honored, even if we are superuser
14463 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14465 # Create a directory
14467 chmod 777 directory
14468 genfile --stat=mode:777 directory
14471 tar cf arc directory
14473 # Change its permissions ...
14474 chmod 755 directory
14475 genfile --stat=mode:777 directory
14477 # ... and attempt to restore it twice
14478 tar xf arc directory --warning=no-timestamp
14479 genfile --stat=mode:777 directory
14481 tar xf arc directory --warning=no-timestamp
14482 genfile --stat=mode:777 directory
14484 # After both restores, the directory mode should be 755
14485 ) ) >"$at_stdout" 2>"$at_stder1"
14486 at_func_filter_trace $?
14491 TEST_TAR_FORMAT=posix
14492 export TEST_TAR_FORMAT
14493 TAR_OPTIONS="-H posix"
14501 # Make sure user's umask is honored, even if we are superuser
14502 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14504 # Create a directory
14506 chmod 777 directory
14507 genfile --stat=mode:777 directory
14510 tar cf arc directory
14512 # Change its permissions ...
14513 chmod 755 directory
14514 genfile --stat=mode:777 directory
14516 # ... and attempt to restore it twice
14517 tar xf arc directory --warning=no-timestamp
14518 genfile --stat=mode:777 directory
14520 tar xf arc directory --warning=no-timestamp
14521 genfile --stat=mode:777 directory
14523 # After both restores, the directory mode should be 755
14524 ) ) >"$at_stdout" 2>"$at_stderr"
14528 at_func_diff_devnull "$at_stderr" || at_failed=:
14529 echo >>"$at_stdout"; $as_echo "777
14534 $at_diff - "$at_stdout" || at_failed=:
14535 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14537 $at_failed && at_func_log_failure
14541 $as_echo "$at_srcdir/extrac06.at:36:
14544 TEST_TAR_FORMAT=gnu
14545 export TEST_TAR_FORMAT
14546 TAR_OPTIONS=\"-H gnu\"
14554 # Make sure user's umask is honored, even if we are superuser
14555 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14557 # Create a directory
14559 chmod 777 directory
14560 genfile --stat=mode:777 directory
14563 tar cf arc directory
14565 # Change its permissions ...
14566 chmod 755 directory
14567 genfile --stat=mode:777 directory
14569 # ... and attempt to restore it twice
14570 tar xf arc directory --warning=no-timestamp
14571 genfile --stat=mode:777 directory
14573 tar xf arc directory --warning=no-timestamp
14574 genfile --stat=mode:777 directory
14576 # After both restores, the directory mode should be 755
14578 echo extrac06.at:36 >"$at_check_line_file"
14580 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14585 TEST_TAR_FORMAT=gnu
14586 export TEST_TAR_FORMAT
14587 TAR_OPTIONS="-H gnu"
14595 # Make sure user's umask is honored, even if we are superuser
14596 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14598 # Create a directory
14600 chmod 777 directory
14601 genfile --stat=mode:777 directory
14604 tar cf arc directory
14606 # Change its permissions ...
14607 chmod 755 directory
14608 genfile --stat=mode:777 directory
14610 # ... and attempt to restore it twice
14611 tar xf arc directory --warning=no-timestamp
14612 genfile --stat=mode:777 directory
14614 tar xf arc directory --warning=no-timestamp
14615 genfile --stat=mode:777 directory
14617 # After both restores, the directory mode should be 755
14618 ) ) >"$at_stdout" 2>"$at_stder1"
14619 at_func_filter_trace $?
14624 TEST_TAR_FORMAT=gnu
14625 export TEST_TAR_FORMAT
14626 TAR_OPTIONS="-H gnu"
14634 # Make sure user's umask is honored, even if we are superuser
14635 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14637 # Create a directory
14639 chmod 777 directory
14640 genfile --stat=mode:777 directory
14643 tar cf arc directory
14645 # Change its permissions ...
14646 chmod 755 directory
14647 genfile --stat=mode:777 directory
14649 # ... and attempt to restore it twice
14650 tar xf arc directory --warning=no-timestamp
14651 genfile --stat=mode:777 directory
14653 tar xf arc directory --warning=no-timestamp
14654 genfile --stat=mode:777 directory
14656 # After both restores, the directory mode should be 755
14657 ) ) >"$at_stdout" 2>"$at_stderr"
14661 at_func_diff_devnull "$at_stderr" || at_failed=:
14662 echo >>"$at_stdout"; $as_echo "777
14667 $at_diff - "$at_stdout" || at_failed=:
14668 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14670 $at_failed && at_func_log_failure
14677 $at_times_p && times >"$at_times_file"
14678 ) 5>&1 2>&1 | eval $at_tee_pipe
14679 at_status=`cat "$at_status_file"`
14682 # 33. extrac07.at:27: extracting symlinks to a read-only dir
14683 at_setup_line='extrac07.at:27'
14684 at_desc="extracting symlinks to a read-only dir"
14685 $at_quiet $as_echo_n " 33: $at_desc "
14687 test -f $XFAILFILE && at_xfail=yes
14688 echo "# -*- compilation -*-" >> "$at_group_log"
14690 $as_echo "33. extrac07.at:27: testing ..."
14698 $as_echo "$at_srcdir/extrac07.at:30:
14701 TEST_TAR_FORMAT=ustar
14702 export TEST_TAR_FORMAT
14703 TAR_OPTIONS=\"-H ustar\"
14710 cat $$ > /dev/null 2>&1
14713 test $result -eq 0 && exit 77
14716 echo Prepare the directory
14724 echo Create the archive
14725 tar cf archive dir || exit 1
14731 tar -C out -xvf archive
14733 echo extrac07.at:30 >"$at_check_line_file"
14735 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14740 TEST_TAR_FORMAT=ustar
14741 export TEST_TAR_FORMAT
14742 TAR_OPTIONS="-H ustar"
14749 cat $$ > /dev/null 2>&1
14752 test $result -eq 0 && exit 77
14755 echo Prepare the directory
14763 echo Create the archive
14764 tar cf archive dir || exit 1
14770 tar -C out -xvf archive
14771 ) ) >"$at_stdout" 2>"$at_stder1"
14772 at_func_filter_trace $?
14777 TEST_TAR_FORMAT=ustar
14778 export TEST_TAR_FORMAT
14779 TAR_OPTIONS="-H ustar"
14786 cat $$ > /dev/null 2>&1
14789 test $result -eq 0 && exit 77
14792 echo Prepare the directory
14800 echo Create the archive
14801 tar cf archive dir || exit 1
14807 tar -C out -xvf archive
14808 ) ) >"$at_stdout" 2>"$at_stderr"
14812 at_func_diff_devnull "$at_stderr" || at_failed=:
14813 echo >>"$at_stdout"; $as_echo "Prepare the directory
14819 $at_diff - "$at_stdout" || at_failed=:
14820 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14822 $at_failed && at_func_log_failure
14826 # Testing one format is enough
14829 $at_times_p && times >"$at_times_file"
14830 ) 5>&1 2>&1 | eval $at_tee_pipe
14831 at_status=`cat "$at_status_file"`
14834 # 34. extrac08.at:33: restoring mode on existing directory
14835 at_setup_line='extrac08.at:33'
14836 at_desc="restoring mode on existing directory"
14837 $at_quiet $as_echo_n " 34: $at_desc "
14839 test -f $XFAILFILE && at_xfail=yes
14840 echo "# -*- compilation -*-" >> "$at_group_log"
14842 $as_echo "34. extrac08.at:33: testing ..."
14850 $as_echo "$at_srcdir/extrac08.at:36:
14854 export TEST_TAR_FORMAT
14855 TAR_OPTIONS=\"-H v7\"
14862 echo bla > dir/file
14863 tar cf test.tar dir
14865 tar xfv test.tar --warning=no-timestamp
14866 genfile --stat=mode.777 dir
14868 echo extrac08.at:36 >"$at_check_line_file"
14870 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14876 export TEST_TAR_FORMAT
14877 TAR_OPTIONS="-H v7"
14884 echo bla > dir/file
14885 tar cf test.tar dir
14887 tar xfv test.tar --warning=no-timestamp
14888 genfile --stat=mode.777 dir
14889 ) ) >"$at_stdout" 2>"$at_stder1"
14890 at_func_filter_trace $?
14896 export TEST_TAR_FORMAT
14897 TAR_OPTIONS="-H v7"
14904 echo bla > dir/file
14905 tar cf test.tar dir
14907 tar xfv test.tar --warning=no-timestamp
14908 genfile --stat=mode.777 dir
14909 ) ) >"$at_stdout" 2>"$at_stderr"
14913 at_func_diff_devnull "$at_stderr" || at_failed=:
14914 echo >>"$at_stdout"; $as_echo "dir/
14918 $at_diff - "$at_stdout" || at_failed=:
14919 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14921 $at_failed && at_func_log_failure
14925 $as_echo "$at_srcdir/extrac08.at:36:
14928 TEST_TAR_FORMAT=oldgnu
14929 export TEST_TAR_FORMAT
14930 TAR_OPTIONS=\"-H oldgnu\"
14937 echo bla > dir/file
14938 tar cf test.tar dir
14940 tar xfv test.tar --warning=no-timestamp
14941 genfile --stat=mode.777 dir
14943 echo extrac08.at:36 >"$at_check_line_file"
14945 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14950 TEST_TAR_FORMAT=oldgnu
14951 export TEST_TAR_FORMAT
14952 TAR_OPTIONS="-H oldgnu"
14959 echo bla > dir/file
14960 tar cf test.tar dir
14962 tar xfv test.tar --warning=no-timestamp
14963 genfile --stat=mode.777 dir
14964 ) ) >"$at_stdout" 2>"$at_stder1"
14965 at_func_filter_trace $?
14970 TEST_TAR_FORMAT=oldgnu
14971 export TEST_TAR_FORMAT
14972 TAR_OPTIONS="-H oldgnu"
14979 echo bla > dir/file
14980 tar cf test.tar dir
14982 tar xfv test.tar --warning=no-timestamp
14983 genfile --stat=mode.777 dir
14984 ) ) >"$at_stdout" 2>"$at_stderr"
14988 at_func_diff_devnull "$at_stderr" || at_failed=:
14989 echo >>"$at_stdout"; $as_echo "dir/
14993 $at_diff - "$at_stdout" || at_failed=:
14994 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14996 $at_failed && at_func_log_failure
15000 $as_echo "$at_srcdir/extrac08.at:36:
15003 TEST_TAR_FORMAT=ustar
15004 export TEST_TAR_FORMAT
15005 TAR_OPTIONS=\"-H ustar\"
15012 echo bla > dir/file
15013 tar cf test.tar dir
15015 tar xfv test.tar --warning=no-timestamp
15016 genfile --stat=mode.777 dir
15018 echo extrac08.at:36 >"$at_check_line_file"
15020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15025 TEST_TAR_FORMAT=ustar
15026 export TEST_TAR_FORMAT
15027 TAR_OPTIONS="-H ustar"
15034 echo bla > dir/file
15035 tar cf test.tar dir
15037 tar xfv test.tar --warning=no-timestamp
15038 genfile --stat=mode.777 dir
15039 ) ) >"$at_stdout" 2>"$at_stder1"
15040 at_func_filter_trace $?
15045 TEST_TAR_FORMAT=ustar
15046 export TEST_TAR_FORMAT
15047 TAR_OPTIONS="-H ustar"
15054 echo bla > dir/file
15055 tar cf test.tar dir
15057 tar xfv test.tar --warning=no-timestamp
15058 genfile --stat=mode.777 dir
15059 ) ) >"$at_stdout" 2>"$at_stderr"
15063 at_func_diff_devnull "$at_stderr" || at_failed=:
15064 echo >>"$at_stdout"; $as_echo "dir/
15068 $at_diff - "$at_stdout" || at_failed=:
15069 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15071 $at_failed && at_func_log_failure
15075 $as_echo "$at_srcdir/extrac08.at:36:
15078 TEST_TAR_FORMAT=posix
15079 export TEST_TAR_FORMAT
15080 TAR_OPTIONS=\"-H posix\"
15087 echo bla > dir/file
15088 tar cf test.tar dir
15090 tar xfv test.tar --warning=no-timestamp
15091 genfile --stat=mode.777 dir
15093 echo extrac08.at:36 >"$at_check_line_file"
15095 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15100 TEST_TAR_FORMAT=posix
15101 export TEST_TAR_FORMAT
15102 TAR_OPTIONS="-H posix"
15109 echo bla > dir/file
15110 tar cf test.tar dir
15112 tar xfv test.tar --warning=no-timestamp
15113 genfile --stat=mode.777 dir
15114 ) ) >"$at_stdout" 2>"$at_stder1"
15115 at_func_filter_trace $?
15120 TEST_TAR_FORMAT=posix
15121 export TEST_TAR_FORMAT
15122 TAR_OPTIONS="-H posix"
15129 echo bla > dir/file
15130 tar cf test.tar dir
15132 tar xfv test.tar --warning=no-timestamp
15133 genfile --stat=mode.777 dir
15134 ) ) >"$at_stdout" 2>"$at_stderr"
15138 at_func_diff_devnull "$at_stderr" || at_failed=:
15139 echo >>"$at_stdout"; $as_echo "dir/
15143 $at_diff - "$at_stdout" || at_failed=:
15144 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15146 $at_failed && at_func_log_failure
15150 $as_echo "$at_srcdir/extrac08.at:36:
15153 TEST_TAR_FORMAT=gnu
15154 export TEST_TAR_FORMAT
15155 TAR_OPTIONS=\"-H gnu\"
15162 echo bla > dir/file
15163 tar cf test.tar dir
15165 tar xfv test.tar --warning=no-timestamp
15166 genfile --stat=mode.777 dir
15168 echo extrac08.at:36 >"$at_check_line_file"
15170 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15175 TEST_TAR_FORMAT=gnu
15176 export TEST_TAR_FORMAT
15177 TAR_OPTIONS="-H gnu"
15184 echo bla > dir/file
15185 tar cf test.tar dir
15187 tar xfv test.tar --warning=no-timestamp
15188 genfile --stat=mode.777 dir
15189 ) ) >"$at_stdout" 2>"$at_stder1"
15190 at_func_filter_trace $?
15195 TEST_TAR_FORMAT=gnu
15196 export TEST_TAR_FORMAT
15197 TAR_OPTIONS="-H gnu"
15204 echo bla > dir/file
15205 tar cf test.tar dir
15207 tar xfv test.tar --warning=no-timestamp
15208 genfile --stat=mode.777 dir
15209 ) ) >"$at_stdout" 2>"$at_stderr"
15213 at_func_diff_devnull "$at_stderr" || at_failed=:
15214 echo >>"$at_stdout"; $as_echo "dir/
15218 $at_diff - "$at_stdout" || at_failed=:
15219 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15221 $at_failed && at_func_log_failure
15228 $at_times_p && times >"$at_times_file"
15229 ) 5>&1 2>&1 | eval $at_tee_pipe
15230 at_status=`cat "$at_status_file"`
15233 # 35. extrac09.at:22: no need to save dir with unreadable . and ..
15234 at_setup_line='extrac09.at:22'
15235 at_desc="no need to save dir with unreadable . and .."
15236 $at_quiet $as_echo_n " 35: $at_desc "
15238 test -f $XFAILFILE && at_xfail=yes
15239 echo "# -*- compilation -*-" >> "$at_group_log"
15241 $as_echo "35. extrac09.at:22: testing ..."
15249 $as_echo "$at_srcdir/extrac09.at:25:
15252 TEST_TAR_FORMAT=gnu
15253 export TEST_TAR_FORMAT
15254 TAR_OPTIONS=\"-H gnu\"
15261 cat $$ > /dev/null 2>&1
15264 test $result -eq 0 && exit 77
15269 mkdir dir/sub/extract
15270 genfile --file dir/sub/f
15273 tar -cf archive.tar f
15276 tar -xvf archive.tar -C extract f
15279 cmp f extract/f || status=\$?
15282 echo extrac09.at:25 >"$at_check_line_file"
15284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15289 TEST_TAR_FORMAT=gnu
15290 export TEST_TAR_FORMAT
15291 TAR_OPTIONS="-H gnu"
15298 cat $$ > /dev/null 2>&1
15301 test $result -eq 0 && exit 77
15306 mkdir dir/sub/extract
15307 genfile --file dir/sub/f
15310 tar -cf archive.tar f
15313 tar -xvf archive.tar -C extract f
15316 cmp f extract/f || status=$?
15318 ) ) >"$at_stdout" 2>"$at_stder1"
15319 at_func_filter_trace $?
15324 TEST_TAR_FORMAT=gnu
15325 export TEST_TAR_FORMAT
15326 TAR_OPTIONS="-H gnu"
15333 cat $$ > /dev/null 2>&1
15336 test $result -eq 0 && exit 77
15341 mkdir dir/sub/extract
15342 genfile --file dir/sub/f
15345 tar -cf archive.tar f
15348 tar -xvf archive.tar -C extract f
15351 cmp f extract/f || status=$?
15353 ) ) >"$at_stdout" 2>"$at_stderr"
15357 at_func_diff_devnull "$at_stderr" || at_failed=:
15358 echo >>"$at_stdout"; $as_echo "f
15360 $at_diff - "$at_stdout" || at_failed=:
15361 at_func_check_status 0 $at_status "$at_srcdir/extrac09.at:25"
15363 $at_failed && at_func_log_failure
15370 $at_times_p && times >"$at_times_file"
15371 ) 5>&1 2>&1 | eval $at_tee_pipe
15372 at_status=`cat "$at_status_file"`
15375 # 36. extrac10.at:27: -C and delayed setting of metadata
15376 at_setup_line='extrac10.at:27'
15377 at_desc="-C and delayed setting of metadata"
15378 $at_quiet $as_echo_n " 36: $at_desc "
15380 test -f $XFAILFILE && at_xfail=yes
15381 echo "# -*- compilation -*-" >> "$at_group_log"
15383 $as_echo "36. extrac10.at:27: testing ..."
15391 $as_echo "$at_srcdir/extrac10.at:30:
15394 TEST_TAR_FORMAT=gnu
15395 export TEST_TAR_FORMAT
15396 TAR_OPTIONS=\"-H gnu\"
15404 tar -cf archive.tar d e &&
15405 tar -xf archive.tar -C x d -C y e &&
15409 echo extrac10.at:30 >"$at_check_line_file"
15411 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15416 TEST_TAR_FORMAT=gnu
15417 export TEST_TAR_FORMAT
15418 TAR_OPTIONS="-H gnu"
15426 tar -cf archive.tar d e &&
15427 tar -xf archive.tar -C x d -C y e &&
15430 ) ) >"$at_stdout" 2>"$at_stder1"
15431 at_func_filter_trace $?
15436 TEST_TAR_FORMAT=gnu
15437 export TEST_TAR_FORMAT
15438 TAR_OPTIONS="-H gnu"
15446 tar -cf archive.tar d e &&
15447 tar -xf archive.tar -C x d -C y e &&
15450 ) ) >"$at_stdout" 2>"$at_stderr"
15454 at_func_diff_devnull "$at_stderr" || at_failed=:
15455 at_func_diff_devnull "$at_stdout" || at_failed=:
15456 at_func_check_status 0 $at_status "$at_srcdir/extrac10.at:30"
15458 $at_failed && at_func_log_failure
15465 $at_times_p && times >"$at_times_file"
15466 ) 5>&1 2>&1 | eval $at_tee_pipe
15467 at_status=`cat "$at_status_file"`
15470 # 37. extrac11.at:23: scarce file descriptors
15471 at_setup_line='extrac11.at:23'
15472 at_desc="scarce file descriptors"
15473 $at_quiet $as_echo_n " 37: $at_desc "
15475 test -f $XFAILFILE && at_xfail=yes
15476 echo "# -*- compilation -*-" >> "$at_group_log"
15478 $as_echo "37. extrac11.at:23: testing ..."
15486 $as_echo "$at_srcdir/extrac11.at:26:
15489 TEST_TAR_FORMAT=gnu
15490 export TEST_TAR_FORMAT
15491 TAR_OPTIONS=\"-H gnu\"
15505 a/b/c/d/e/f/g/h/i/j
15506 a/b/c/d/e/f/g/h/i/j/k
15509 mkdir \$dirs dest1 dest2 dest3 || exit
15510 for dir in \$dirs; do
15511 for file in X Y Z; do
15512 echo \$file >\$dir/\$file || exit
15513 files=\"\$files \$file\"
15517 # Check that \"ulimit\" itself works. Close file descriptors before
15518 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
15519 # where they squirrel away dups of file descriptors into FD 10 and up
15520 # before closing the originals.
15521 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15523 tar -cf archive1.tar a &&
15524 tar -xf archive1.tar -C dest1 a
15527 ) >/dev/null 2>&1 ||
15530 # Another test that \"ulimit\" itself works:
15531 # tar should fail when completely starved of file descriptors.
15532 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15534 tar -cf archive2.tar a &&
15535 tar -xf archive2.tar -C dest2 a
15538 ) >/dev/null 2>&1 &&
15541 # Tar should work when there are few, but enough, file descriptors.
15542 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15544 tar -cf archive3.tar a &&
15545 tar -xf archive3.tar -C dest3 a
15547 diff -r a dest3/a >/dev/null 2>&1
15548 ) || { diff -r a dest3/a; exit 1; }
15550 echo extrac11.at:26 >"$at_check_line_file"
15552 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15557 TEST_TAR_FORMAT=gnu
15558 export TEST_TAR_FORMAT
15559 TAR_OPTIONS="-H gnu"
15573 a/b/c/d/e/f/g/h/i/j
15574 a/b/c/d/e/f/g/h/i/j/k
15577 mkdir $dirs dest1 dest2 dest3 || exit
15578 for dir in $dirs; do
15579 for file in X Y Z; do
15580 echo $file >$dir/$file || exit
15581 files="$files $file"
15585 # Check that "ulimit" itself works. Close file descriptors before
15586 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15587 # where they squirrel away dups of file descriptors into FD 10 and up
15588 # before closing the originals.
15589 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15591 tar -cf archive1.tar a &&
15592 tar -xf archive1.tar -C dest1 a
15595 ) >/dev/null 2>&1 ||
15598 # Another test that "ulimit" itself works:
15599 # tar should fail when completely starved of file descriptors.
15600 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15602 tar -cf archive2.tar a &&
15603 tar -xf archive2.tar -C dest2 a
15606 ) >/dev/null 2>&1 &&
15609 # Tar should work when there are few, but enough, file descriptors.
15610 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15612 tar -cf archive3.tar a &&
15613 tar -xf archive3.tar -C dest3 a
15615 diff -r a dest3/a >/dev/null 2>&1
15616 ) || { diff -r a dest3/a; exit 1; }
15617 ) ) >"$at_stdout" 2>"$at_stder1"
15618 at_func_filter_trace $?
15623 TEST_TAR_FORMAT=gnu
15624 export TEST_TAR_FORMAT
15625 TAR_OPTIONS="-H gnu"
15639 a/b/c/d/e/f/g/h/i/j
15640 a/b/c/d/e/f/g/h/i/j/k
15643 mkdir $dirs dest1 dest2 dest3 || exit
15644 for dir in $dirs; do
15645 for file in X Y Z; do
15646 echo $file >$dir/$file || exit
15647 files="$files $file"
15651 # Check that "ulimit" itself works. Close file descriptors before
15652 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15653 # where they squirrel away dups of file descriptors into FD 10 and up
15654 # before closing the originals.
15655 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15657 tar -cf archive1.tar a &&
15658 tar -xf archive1.tar -C dest1 a
15661 ) >/dev/null 2>&1 ||
15664 # Another test that "ulimit" itself works:
15665 # tar should fail when completely starved of file descriptors.
15666 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15668 tar -cf archive2.tar a &&
15669 tar -xf archive2.tar -C dest2 a
15672 ) >/dev/null 2>&1 &&
15675 # Tar should work when there are few, but enough, file descriptors.
15676 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15678 tar -cf archive3.tar a &&
15679 tar -xf archive3.tar -C dest3 a
15681 diff -r a dest3/a >/dev/null 2>&1
15682 ) || { diff -r a dest3/a; exit 1; }
15683 ) ) >"$at_stdout" 2>"$at_stderr"
15687 at_func_diff_devnull "$at_stderr" || at_failed=:
15688 at_func_diff_devnull "$at_stdout" || at_failed=:
15689 at_func_check_status 0 $at_status "$at_srcdir/extrac11.at:26"
15691 $at_failed && at_func_log_failure
15698 $at_times_p && times >"$at_times_file"
15699 ) 5>&1 2>&1 | eval $at_tee_pipe
15700 at_status=`cat "$at_status_file"`
15703 # 38. extrac12.at:23: extract dot permissions
15704 at_setup_line='extrac12.at:23'
15705 at_desc="extract dot permissions"
15706 $at_quiet $as_echo_n " 38: $at_desc "
15708 test -f $XFAILFILE && at_xfail=yes
15709 echo "# -*- compilation -*-" >> "$at_group_log"
15711 $as_echo "38. extrac12.at:23: testing ..."
15719 $as_echo "$at_srcdir/extrac12.at:26:
15722 TEST_TAR_FORMAT=gnu
15723 export TEST_TAR_FORMAT
15724 TAR_OPTIONS=\"-H gnu\"
15729 echo file1 >src/file1
15730 echo file2 >src/file2
15733 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15734 tar -xf archive.tar -C dst &&
15735 cmp src/file1 dst/file1 &&
15736 cmp src/file2 dst/file2
15738 echo extrac12.at:26 >"$at_check_line_file"
15740 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15745 TEST_TAR_FORMAT=gnu
15746 export TEST_TAR_FORMAT
15747 TAR_OPTIONS="-H gnu"
15752 echo file1 >src/file1
15753 echo file2 >src/file2
15756 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15757 tar -xf archive.tar -C dst &&
15758 cmp src/file1 dst/file1 &&
15759 cmp src/file2 dst/file2
15760 ) ) >"$at_stdout" 2>"$at_stder1"
15761 at_func_filter_trace $?
15766 TEST_TAR_FORMAT=gnu
15767 export TEST_TAR_FORMAT
15768 TAR_OPTIONS="-H gnu"
15773 echo file1 >src/file1
15774 echo file2 >src/file2
15777 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15778 tar -xf archive.tar -C dst &&
15779 cmp src/file1 dst/file1 &&
15780 cmp src/file2 dst/file2
15781 ) ) >"$at_stdout" 2>"$at_stderr"
15785 at_func_diff_devnull "$at_stderr" || at_failed=:
15786 at_func_diff_devnull "$at_stdout" || at_failed=:
15787 at_func_check_status 0 $at_status "$at_srcdir/extrac12.at:26"
15789 $at_failed && at_func_log_failure
15796 $at_times_p && times >"$at_times_file"
15797 ) 5>&1 2>&1 | eval $at_tee_pipe
15798 at_status=`cat "$at_status_file"`
15801 # 39. extrac13.at:24: extract over symlinks
15802 at_setup_line='extrac13.at:24'
15803 at_desc="extract over symlinks"
15804 $at_quiet $as_echo_n " 39: $at_desc "
15806 test -f $XFAILFILE && at_xfail=yes
15807 echo "# -*- compilation -*-" >> "$at_group_log"
15809 $as_echo "39. extrac13.at:24: testing ..."
15817 $as_echo "$at_srcdir/extrac13.at:27:
15820 TEST_TAR_FORMAT=gnu
15821 export TEST_TAR_FORMAT
15822 TAR_OPTIONS=\"-H gnu\"
15826 mkdir src dst1 dst2 dst3
15827 echo file1 >src/file1
15828 ln -s target1 dst1/file1
15829 echo target1 >dst1/target1
15830 echo target1 >target1
15832 tar -cf archive.tar -C src . &&
15833 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15834 diff src/file1 dst1/file1 &&
15835 diff target1 dst1/target1
15837 ln -s target1 dst2/file1
15838 echo target1 >dst2/target1
15839 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15840 diff src/file1 dst2/file1 &&
15841 diff target1 dst2/target1
15843 ln -s target1 dst3/file1
15844 echo target1 >dst3/target1
15845 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15846 diff src/file1 dst3/file1 &&
15847 diff src/file1 dst3/target1
15849 echo extrac13.at:27 >"$at_check_line_file"
15851 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15856 TEST_TAR_FORMAT=gnu
15857 export TEST_TAR_FORMAT
15858 TAR_OPTIONS="-H gnu"
15862 mkdir src dst1 dst2 dst3
15863 echo file1 >src/file1
15864 ln -s target1 dst1/file1
15865 echo target1 >dst1/target1
15866 echo target1 >target1
15868 tar -cf archive.tar -C src . &&
15869 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15870 diff src/file1 dst1/file1 &&
15871 diff target1 dst1/target1
15873 ln -s target1 dst2/file1
15874 echo target1 >dst2/target1
15875 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15876 diff src/file1 dst2/file1 &&
15877 diff target1 dst2/target1
15879 ln -s target1 dst3/file1
15880 echo target1 >dst3/target1
15881 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15882 diff src/file1 dst3/file1 &&
15883 diff src/file1 dst3/target1
15884 ) ) >"$at_stdout" 2>"$at_stder1"
15885 at_func_filter_trace $?
15890 TEST_TAR_FORMAT=gnu
15891 export TEST_TAR_FORMAT
15892 TAR_OPTIONS="-H gnu"
15896 mkdir src dst1 dst2 dst3
15897 echo file1 >src/file1
15898 ln -s target1 dst1/file1
15899 echo target1 >dst1/target1
15900 echo target1 >target1
15902 tar -cf archive.tar -C src . &&
15903 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15904 diff src/file1 dst1/file1 &&
15905 diff target1 dst1/target1
15907 ln -s target1 dst2/file1
15908 echo target1 >dst2/target1
15909 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15910 diff src/file1 dst2/file1 &&
15911 diff target1 dst2/target1
15913 ln -s target1 dst3/file1
15914 echo target1 >dst3/target1
15915 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15916 diff src/file1 dst3/file1 &&
15917 diff src/file1 dst3/target1
15918 ) ) >"$at_stdout" 2>"$at_stderr"
15922 at_func_diff_devnull "$at_stderr" || at_failed=:
15923 at_func_diff_devnull "$at_stdout" || at_failed=:
15924 at_func_check_status 0 $at_status "$at_srcdir/extrac13.at:27"
15926 $at_failed && at_func_log_failure
15933 $at_times_p && times >"$at_times_file"
15934 ) 5>&1 2>&1 | eval $at_tee_pipe
15935 at_status=`cat "$at_status_file"`
15938 # 40. extrac14.at:23: extract -C symlink
15939 at_setup_line='extrac14.at:23'
15940 at_desc="extract -C symlink"
15941 $at_quiet $as_echo_n " 40: $at_desc "
15943 test -f $XFAILFILE && at_xfail=yes
15944 echo "# -*- compilation -*-" >> "$at_group_log"
15946 $as_echo "40. extrac14.at:23: testing ..."
15954 $as_echo "$at_srcdir/extrac14.at:26:
15957 TEST_TAR_FORMAT=gnu
15958 export TEST_TAR_FORMAT
15959 TAR_OPTIONS=\"-H gnu\"
15966 tar -cf archive.tar foo &&
15967 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15970 echo extrac14.at:26 >"$at_check_line_file"
15972 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15977 TEST_TAR_FORMAT=gnu
15978 export TEST_TAR_FORMAT
15979 TAR_OPTIONS="-H gnu"
15986 tar -cf archive.tar foo &&
15987 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15989 ) ) >"$at_stdout" 2>"$at_stder1"
15990 at_func_filter_trace $?
15995 TEST_TAR_FORMAT=gnu
15996 export TEST_TAR_FORMAT
15997 TAR_OPTIONS="-H gnu"
16004 tar -cf archive.tar foo &&
16005 tar -xf archive.tar -C symlink --warning=no-timestamp &&
16007 ) ) >"$at_stdout" 2>"$at_stderr"
16011 at_func_diff_devnull "$at_stderr" || at_failed=:
16012 at_func_diff_devnull "$at_stdout" || at_failed=:
16013 at_func_check_status 0 $at_status "$at_srcdir/extrac14.at:26"
16015 $at_failed && at_func_log_failure
16022 $at_times_p && times >"$at_times_file"
16023 ) 5>&1 2>&1 | eval $at_tee_pipe
16024 at_status=`cat "$at_status_file"`
16027 # 41. extrac15.at:23: extract parent mkdir failure
16028 at_setup_line='extrac15.at:23'
16029 at_desc="extract parent mkdir failure"
16030 $at_quiet $as_echo_n " 41: $at_desc "
16032 test -f $XFAILFILE && at_xfail=yes
16033 echo "# -*- compilation -*-" >> "$at_group_log"
16035 $as_echo "41. extrac15.at:23: testing ..."
16043 $as_echo "$at_srcdir/extrac15.at:26:
16046 TEST_TAR_FORMAT=gnu
16047 export TEST_TAR_FORMAT
16048 TAR_OPTIONS=\"-H gnu\"
16055 cat $$ > /dev/null 2>&1
16058 test $result -eq 0 && exit 77
16061 mkdir src src/a src/a/b dest dest/a
16065 tar -cf archive.tar -C src a/b/c &&
16066 if tar -xf archive.tar -C dest a/b/c
16071 echo extrac15.at:26 >"$at_check_line_file"
16073 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16078 TEST_TAR_FORMAT=gnu
16079 export TEST_TAR_FORMAT
16080 TAR_OPTIONS="-H gnu"
16087 cat $$ > /dev/null 2>&1
16090 test $result -eq 0 && exit 77
16093 mkdir src src/a src/a/b dest dest/a
16097 tar -cf archive.tar -C src a/b/c &&
16098 if tar -xf archive.tar -C dest a/b/c
16102 ) ) >"$at_stdout" 2>"$at_stder1"
16103 at_func_filter_trace $?
16108 TEST_TAR_FORMAT=gnu
16109 export TEST_TAR_FORMAT
16110 TAR_OPTIONS="-H gnu"
16117 cat $$ > /dev/null 2>&1
16120 test $result -eq 0 && exit 77
16123 mkdir src src/a src/a/b dest dest/a
16127 tar -cf archive.tar -C src a/b/c &&
16128 if tar -xf archive.tar -C dest a/b/c
16132 ) ) >"$at_stdout" 2>"$at_stderr"
16136 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
16137 tar: a/b/c: Cannot open: No such file or directory
16138 tar: Exiting with failure status due to previous errors
16140 $at_diff - "$at_stderr" || at_failed=:
16141 at_func_diff_devnull "$at_stdout" || at_failed=:
16142 at_func_check_status 0 $at_status "$at_srcdir/extrac15.at:26"
16144 $at_failed && at_func_log_failure
16151 $at_times_p && times >"$at_times_file"
16152 ) 5>&1 2>&1 | eval $at_tee_pipe
16153 at_status=`cat "$at_status_file"`
16156 # 42. extrac16.at:24: extract empty directory with -C
16157 at_setup_line='extrac16.at:24'
16158 at_desc="extract empty directory with -C"
16159 $at_quiet $as_echo_n " 42: $at_desc "
16161 test -f $XFAILFILE && at_xfail=yes
16162 echo "# -*- compilation -*-" >> "$at_group_log"
16164 $as_echo "42. extrac16.at:24: testing ..."
16172 $as_echo "$at_srcdir/extrac16.at:27:
16175 TEST_TAR_FORMAT=gnu
16176 export TEST_TAR_FORMAT
16177 TAR_OPTIONS=\"-H gnu\"
16181 mkdir src src/a src/a/b dest
16184 tar -cf archive.tar -C src a &&
16185 tar -xf archive.tar -C dest
16187 echo extrac16.at:27 >"$at_check_line_file"
16189 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16194 TEST_TAR_FORMAT=gnu
16195 export TEST_TAR_FORMAT
16196 TAR_OPTIONS="-H gnu"
16200 mkdir src src/a src/a/b dest
16203 tar -cf archive.tar -C src a &&
16204 tar -xf archive.tar -C dest
16205 ) ) >"$at_stdout" 2>"$at_stder1"
16206 at_func_filter_trace $?
16211 TEST_TAR_FORMAT=gnu
16212 export TEST_TAR_FORMAT
16213 TAR_OPTIONS="-H gnu"
16217 mkdir src src/a src/a/b dest
16220 tar -cf archive.tar -C src a &&
16221 tar -xf archive.tar -C dest
16222 ) ) >"$at_stdout" 2>"$at_stderr"
16226 at_func_diff_devnull "$at_stderr" || at_failed=:
16227 at_func_diff_devnull "$at_stdout" || at_failed=:
16228 at_func_check_status 0 $at_status "$at_srcdir/extrac16.at:27"
16230 $at_failed && at_func_log_failure
16237 $at_times_p && times >"$at_times_file"
16238 ) 5>&1 2>&1 | eval $at_tee_pipe
16239 at_status=`cat "$at_status_file"`
16242 # 43. extrac17.at:19: name matching/transformation ordering
16243 at_setup_line='extrac17.at:19'
16244 at_desc="name matching/transformation ordering"
16245 $at_quiet $as_echo_n " 43: $at_desc "
16247 test -f $XFAILFILE && at_xfail=yes
16248 echo "# -*- compilation -*-" >> "$at_group_log"
16250 $as_echo "43. extrac17.at:19: testing ..."
16255 # Description: Tar 1.24 changed the ordering of name matching and
16256 # name transformation so that the former saw already transformed
16257 # file names (see commit 9c194c99 and exclude06.at). This reverted
16258 # ordering made it impossible to match file names in certain cases.
16259 # In particular, the testcase below would not extract anything.
16261 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
16262 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
16263 # http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
16268 $as_echo "$at_srcdir/extrac17.at:32:
16272 export TEST_TAR_FORMAT
16273 TAR_OPTIONS=\"-H v7\"
16277 mkdir dir dir/subdir1 dir/subdir2 out
16278 genfile --file dir/subdir1/file1
16279 genfile --file dir/subdir2/file2
16283 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16286 echo extrac17.at:32 >"$at_check_line_file"
16288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16294 export TEST_TAR_FORMAT
16295 TAR_OPTIONS="-H v7"
16299 mkdir dir dir/subdir1 dir/subdir2 out
16300 genfile --file dir/subdir1/file1
16301 genfile --file dir/subdir2/file2
16305 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16307 ) ) >"$at_stdout" 2>"$at_stder1"
16308 at_func_filter_trace $?
16314 export TEST_TAR_FORMAT
16315 TAR_OPTIONS="-H v7"
16319 mkdir dir dir/subdir1 dir/subdir2 out
16320 genfile --file dir/subdir1/file1
16321 genfile --file dir/subdir2/file2
16325 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16327 ) ) >"$at_stdout" 2>"$at_stderr"
16331 at_func_diff_devnull "$at_stderr" || at_failed=:
16332 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16334 $at_diff - "$at_stdout" || at_failed=:
16335 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16337 $at_failed && at_func_log_failure
16341 $as_echo "$at_srcdir/extrac17.at:32:
16344 TEST_TAR_FORMAT=oldgnu
16345 export TEST_TAR_FORMAT
16346 TAR_OPTIONS=\"-H oldgnu\"
16350 mkdir dir dir/subdir1 dir/subdir2 out
16351 genfile --file dir/subdir1/file1
16352 genfile --file dir/subdir2/file2
16356 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16359 echo extrac17.at:32 >"$at_check_line_file"
16361 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16366 TEST_TAR_FORMAT=oldgnu
16367 export TEST_TAR_FORMAT
16368 TAR_OPTIONS="-H oldgnu"
16372 mkdir dir dir/subdir1 dir/subdir2 out
16373 genfile --file dir/subdir1/file1
16374 genfile --file dir/subdir2/file2
16378 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16380 ) ) >"$at_stdout" 2>"$at_stder1"
16381 at_func_filter_trace $?
16386 TEST_TAR_FORMAT=oldgnu
16387 export TEST_TAR_FORMAT
16388 TAR_OPTIONS="-H oldgnu"
16392 mkdir dir dir/subdir1 dir/subdir2 out
16393 genfile --file dir/subdir1/file1
16394 genfile --file dir/subdir2/file2
16398 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16400 ) ) >"$at_stdout" 2>"$at_stderr"
16404 at_func_diff_devnull "$at_stderr" || at_failed=:
16405 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16407 $at_diff - "$at_stdout" || at_failed=:
16408 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16410 $at_failed && at_func_log_failure
16414 $as_echo "$at_srcdir/extrac17.at:32:
16417 TEST_TAR_FORMAT=ustar
16418 export TEST_TAR_FORMAT
16419 TAR_OPTIONS=\"-H ustar\"
16423 mkdir dir dir/subdir1 dir/subdir2 out
16424 genfile --file dir/subdir1/file1
16425 genfile --file dir/subdir2/file2
16429 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16432 echo extrac17.at:32 >"$at_check_line_file"
16434 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16439 TEST_TAR_FORMAT=ustar
16440 export TEST_TAR_FORMAT
16441 TAR_OPTIONS="-H ustar"
16445 mkdir dir dir/subdir1 dir/subdir2 out
16446 genfile --file dir/subdir1/file1
16447 genfile --file dir/subdir2/file2
16451 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16453 ) ) >"$at_stdout" 2>"$at_stder1"
16454 at_func_filter_trace $?
16459 TEST_TAR_FORMAT=ustar
16460 export TEST_TAR_FORMAT
16461 TAR_OPTIONS="-H ustar"
16465 mkdir dir dir/subdir1 dir/subdir2 out
16466 genfile --file dir/subdir1/file1
16467 genfile --file dir/subdir2/file2
16471 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16473 ) ) >"$at_stdout" 2>"$at_stderr"
16477 at_func_diff_devnull "$at_stderr" || at_failed=:
16478 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16480 $at_diff - "$at_stdout" || at_failed=:
16481 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16483 $at_failed && at_func_log_failure
16487 $as_echo "$at_srcdir/extrac17.at:32:
16490 TEST_TAR_FORMAT=posix
16491 export TEST_TAR_FORMAT
16492 TAR_OPTIONS=\"-H posix\"
16496 mkdir dir dir/subdir1 dir/subdir2 out
16497 genfile --file dir/subdir1/file1
16498 genfile --file dir/subdir2/file2
16502 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16505 echo extrac17.at:32 >"$at_check_line_file"
16507 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16512 TEST_TAR_FORMAT=posix
16513 export TEST_TAR_FORMAT
16514 TAR_OPTIONS="-H posix"
16518 mkdir dir dir/subdir1 dir/subdir2 out
16519 genfile --file dir/subdir1/file1
16520 genfile --file dir/subdir2/file2
16524 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16526 ) ) >"$at_stdout" 2>"$at_stder1"
16527 at_func_filter_trace $?
16532 TEST_TAR_FORMAT=posix
16533 export TEST_TAR_FORMAT
16534 TAR_OPTIONS="-H posix"
16538 mkdir dir dir/subdir1 dir/subdir2 out
16539 genfile --file dir/subdir1/file1
16540 genfile --file dir/subdir2/file2
16544 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16546 ) ) >"$at_stdout" 2>"$at_stderr"
16550 at_func_diff_devnull "$at_stderr" || at_failed=:
16551 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16553 $at_diff - "$at_stdout" || at_failed=:
16554 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16556 $at_failed && at_func_log_failure
16560 $as_echo "$at_srcdir/extrac17.at:32:
16563 TEST_TAR_FORMAT=gnu
16564 export TEST_TAR_FORMAT
16565 TAR_OPTIONS=\"-H gnu\"
16569 mkdir dir dir/subdir1 dir/subdir2 out
16570 genfile --file dir/subdir1/file1
16571 genfile --file dir/subdir2/file2
16575 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16578 echo extrac17.at:32 >"$at_check_line_file"
16580 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16585 TEST_TAR_FORMAT=gnu
16586 export TEST_TAR_FORMAT
16587 TAR_OPTIONS="-H gnu"
16591 mkdir dir dir/subdir1 dir/subdir2 out
16592 genfile --file dir/subdir1/file1
16593 genfile --file dir/subdir2/file2
16597 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16599 ) ) >"$at_stdout" 2>"$at_stder1"
16600 at_func_filter_trace $?
16605 TEST_TAR_FORMAT=gnu
16606 export TEST_TAR_FORMAT
16607 TAR_OPTIONS="-H gnu"
16611 mkdir dir dir/subdir1 dir/subdir2 out
16612 genfile --file dir/subdir1/file1
16613 genfile --file dir/subdir2/file2
16617 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16619 ) ) >"$at_stdout" 2>"$at_stderr"
16623 at_func_diff_devnull "$at_stderr" || at_failed=:
16624 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16626 $at_diff - "$at_stdout" || at_failed=:
16627 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16629 $at_failed && at_func_log_failure
16636 $at_times_p && times >"$at_times_file"
16637 ) 5>&1 2>&1 | eval $at_tee_pipe
16638 at_status=`cat "$at_status_file"`
16641 # 44. label01.at:19: single-volume label
16642 at_setup_line='label01.at:19'
16643 at_desc="single-volume label"
16644 $at_quiet $as_echo_n " 44: $at_desc "
16646 test -f $XFAILFILE && at_xfail=yes
16647 echo "# -*- compilation -*-" >> "$at_group_log"
16649 $as_echo "44. label01.at:19: testing ..."
16657 $as_echo "$at_srcdir/label01.at:22:
16660 TEST_TAR_FORMAT=gnu
16661 export TEST_TAR_FORMAT
16662 TAR_OPTIONS=\"-H gnu\"
16668 tar -cf archive --label=Test foo bar
16671 echo label01.at:22 >"$at_check_line_file"
16673 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16678 TEST_TAR_FORMAT=gnu
16679 export TEST_TAR_FORMAT
16680 TAR_OPTIONS="-H gnu"
16686 tar -cf archive --label=Test foo bar
16688 ) ) >"$at_stdout" 2>"$at_stder1"
16689 at_func_filter_trace $?
16694 TEST_TAR_FORMAT=gnu
16695 export TEST_TAR_FORMAT
16696 TAR_OPTIONS="-H gnu"
16702 tar -cf archive --label=Test foo bar
16704 ) ) >"$at_stdout" 2>"$at_stderr"
16708 at_func_diff_devnull "$at_stderr" || at_failed=:
16709 echo >>"$at_stdout"; $as_echo "Test
16713 $at_diff - "$at_stdout" || at_failed=:
16714 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16716 $at_failed && at_func_log_failure
16720 $as_echo "$at_srcdir/label01.at:22:
16723 TEST_TAR_FORMAT=oldgnu
16724 export TEST_TAR_FORMAT
16725 TAR_OPTIONS=\"-H oldgnu\"
16731 tar -cf archive --label=Test foo bar
16734 echo label01.at:22 >"$at_check_line_file"
16736 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16741 TEST_TAR_FORMAT=oldgnu
16742 export TEST_TAR_FORMAT
16743 TAR_OPTIONS="-H oldgnu"
16749 tar -cf archive --label=Test foo bar
16751 ) ) >"$at_stdout" 2>"$at_stder1"
16752 at_func_filter_trace $?
16757 TEST_TAR_FORMAT=oldgnu
16758 export TEST_TAR_FORMAT
16759 TAR_OPTIONS="-H oldgnu"
16765 tar -cf archive --label=Test foo bar
16767 ) ) >"$at_stdout" 2>"$at_stderr"
16771 at_func_diff_devnull "$at_stderr" || at_failed=:
16772 echo >>"$at_stdout"; $as_echo "Test
16776 $at_diff - "$at_stdout" || at_failed=:
16777 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16779 $at_failed && at_func_log_failure
16783 $as_echo "$at_srcdir/label01.at:22:
16786 TEST_TAR_FORMAT=posix
16787 export TEST_TAR_FORMAT
16788 TAR_OPTIONS=\"-H posix\"
16794 tar -cf archive --label=Test foo bar
16797 echo label01.at:22 >"$at_check_line_file"
16799 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16804 TEST_TAR_FORMAT=posix
16805 export TEST_TAR_FORMAT
16806 TAR_OPTIONS="-H posix"
16812 tar -cf archive --label=Test foo bar
16814 ) ) >"$at_stdout" 2>"$at_stder1"
16815 at_func_filter_trace $?
16820 TEST_TAR_FORMAT=posix
16821 export TEST_TAR_FORMAT
16822 TAR_OPTIONS="-H posix"
16828 tar -cf archive --label=Test foo bar
16830 ) ) >"$at_stdout" 2>"$at_stderr"
16834 at_func_diff_devnull "$at_stderr" || at_failed=:
16835 echo >>"$at_stdout"; $as_echo "Test
16839 $at_diff - "$at_stdout" || at_failed=:
16840 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16842 $at_failed && at_func_log_failure
16849 $at_times_p && times >"$at_times_file"
16850 ) 5>&1 2>&1 | eval $at_tee_pipe
16851 at_status=`cat "$at_status_file"`
16854 # 45. label02.at:19: multi-volume label
16855 at_setup_line='label02.at:19'
16856 at_desc="multi-volume label"
16857 $at_quiet $as_echo_n " 45: $at_desc "
16859 test -f $XFAILFILE && at_xfail=yes
16860 echo "# -*- compilation -*-" >> "$at_group_log"
16862 $as_echo "45. label02.at:19: testing ..."
16870 $as_echo "$at_srcdir/label02.at:22:
16873 TEST_TAR_FORMAT=gnu
16874 export TEST_TAR_FORMAT
16875 TAR_OPTIONS=\"-H gnu\"
16880 genfile --length 0 --file foo
16881 genfile --length 12288 --file bar
16882 genfile --length 12288 --file baz
16883 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16884 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16886 echo label02.at:22 >"$at_check_line_file"
16888 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16893 TEST_TAR_FORMAT=gnu
16894 export TEST_TAR_FORMAT
16895 TAR_OPTIONS="-H gnu"
16900 genfile --length 0 --file foo
16901 genfile --length 12288 --file bar
16902 genfile --length 12288 --file baz
16903 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16904 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16905 ) ) >"$at_stdout" 2>"$at_stder1"
16906 at_func_filter_trace $?
16911 TEST_TAR_FORMAT=gnu
16912 export TEST_TAR_FORMAT
16913 TAR_OPTIONS="-H gnu"
16918 genfile --length 0 --file foo
16919 genfile --length 12288 --file bar
16920 genfile --length 12288 --file baz
16921 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16922 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16923 ) ) >"$at_stdout" 2>"$at_stderr"
16927 at_func_diff_devnull "$at_stderr" || at_failed=:
16928 echo >>"$at_stdout"; $as_echo "Test Volume 1
16933 $at_diff - "$at_stdout" || at_failed=:
16934 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16936 $at_failed && at_func_log_failure
16940 $as_echo "$at_srcdir/label02.at:22:
16943 TEST_TAR_FORMAT=oldgnu
16944 export TEST_TAR_FORMAT
16945 TAR_OPTIONS=\"-H oldgnu\"
16950 genfile --length 0 --file foo
16951 genfile --length 12288 --file bar
16952 genfile --length 12288 --file baz
16953 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16954 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16956 echo label02.at:22 >"$at_check_line_file"
16958 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16963 TEST_TAR_FORMAT=oldgnu
16964 export TEST_TAR_FORMAT
16965 TAR_OPTIONS="-H oldgnu"
16970 genfile --length 0 --file foo
16971 genfile --length 12288 --file bar
16972 genfile --length 12288 --file baz
16973 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16974 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16975 ) ) >"$at_stdout" 2>"$at_stder1"
16976 at_func_filter_trace $?
16981 TEST_TAR_FORMAT=oldgnu
16982 export TEST_TAR_FORMAT
16983 TAR_OPTIONS="-H oldgnu"
16988 genfile --length 0 --file foo
16989 genfile --length 12288 --file bar
16990 genfile --length 12288 --file baz
16991 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16992 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16993 ) ) >"$at_stdout" 2>"$at_stderr"
16997 at_func_diff_devnull "$at_stderr" || at_failed=:
16998 echo >>"$at_stdout"; $as_echo "Test Volume 1
17003 $at_diff - "$at_stdout" || at_failed=:
17004 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17006 $at_failed && at_func_log_failure
17010 $as_echo "$at_srcdir/label02.at:22:
17013 TEST_TAR_FORMAT=posix
17014 export TEST_TAR_FORMAT
17015 TAR_OPTIONS=\"-H posix\"
17020 genfile --length 0 --file foo
17021 genfile --length 12288 --file bar
17022 genfile --length 12288 --file baz
17023 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17024 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17026 echo label02.at:22 >"$at_check_line_file"
17028 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17033 TEST_TAR_FORMAT=posix
17034 export TEST_TAR_FORMAT
17035 TAR_OPTIONS="-H posix"
17040 genfile --length 0 --file foo
17041 genfile --length 12288 --file bar
17042 genfile --length 12288 --file baz
17043 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17044 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17045 ) ) >"$at_stdout" 2>"$at_stder1"
17046 at_func_filter_trace $?
17051 TEST_TAR_FORMAT=posix
17052 export TEST_TAR_FORMAT
17053 TAR_OPTIONS="-H posix"
17058 genfile --length 0 --file foo
17059 genfile --length 12288 --file bar
17060 genfile --length 12288 --file baz
17061 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17062 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17063 ) ) >"$at_stdout" 2>"$at_stderr"
17067 at_func_diff_devnull "$at_stderr" || at_failed=:
17068 echo >>"$at_stdout"; $as_echo "Test Volume 1
17073 $at_diff - "$at_stdout" || at_failed=:
17074 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17076 $at_failed && at_func_log_failure
17083 $at_times_p && times >"$at_times_file"
17084 ) 5>&1 2>&1 | eval $at_tee_pipe
17085 at_status=`cat "$at_status_file"`
17088 # 46. label03.at:25: test-label option
17089 at_setup_line='label03.at:25'
17090 at_desc="test-label option"
17091 $at_quiet $as_echo_n " 46: $at_desc "
17093 test -f $XFAILFILE && at_xfail=yes
17094 echo "# -*- compilation -*-" >> "$at_group_log"
17096 $as_echo "46. label03.at:25: testing ..."
17104 $as_echo "$at_srcdir/label03.at:28:
17107 TEST_TAR_FORMAT=gnu
17108 export TEST_TAR_FORMAT
17109 TAR_OPTIONS=\"-H gnu\"
17114 genfile --file file
17115 tar -c --label='iamalabel' --file iamanarchive file
17116 tar -c --file unlabeled.tar file
17117 decho \"# Display label\"
17118 tar --test-label --file=iamanarchive; echo \$?
17119 decho \"# Display label: unlabeled\"
17120 tar --test-label --file=unlabeled.tar; echo \$?
17121 decho \"# Test label: success\"
17122 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17123 decho \"# Test label: failure\"
17124 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17125 decho \"# Test label: unlabeled\"
17126 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17127 decho \"# Test label, verbose: success\"
17128 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17129 decho \"# Test label, verbose: failure\"
17130 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17131 decho \"# Test label: multiple arguments\"
17132 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17133 decho \"# Test label: wildcards\"
17134 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17136 echo label03.at:28 >"$at_check_line_file"
17138 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17143 TEST_TAR_FORMAT=gnu
17144 export TEST_TAR_FORMAT
17145 TAR_OPTIONS="-H gnu"
17150 genfile --file file
17151 tar -c --label='iamalabel' --file iamanarchive file
17152 tar -c --file unlabeled.tar file
17153 decho "# Display label"
17154 tar --test-label --file=iamanarchive; echo $?
17155 decho "# Display label: unlabeled"
17156 tar --test-label --file=unlabeled.tar; echo $?
17157 decho "# Test label: success"
17158 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17159 decho "# Test label: failure"
17160 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17161 decho "# Test label: unlabeled"
17162 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17163 decho "# Test label, verbose: success"
17164 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17165 decho "# Test label, verbose: failure"
17166 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17167 decho "# Test label: multiple arguments"
17168 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17169 decho "# Test label: wildcards"
17170 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17171 ) ) >"$at_stdout" 2>"$at_stder1"
17172 at_func_filter_trace $?
17177 TEST_TAR_FORMAT=gnu
17178 export TEST_TAR_FORMAT
17179 TAR_OPTIONS="-H gnu"
17184 genfile --file file
17185 tar -c --label='iamalabel' --file iamanarchive file
17186 tar -c --file unlabeled.tar file
17187 decho "# Display label"
17188 tar --test-label --file=iamanarchive; echo $?
17189 decho "# Display label: unlabeled"
17190 tar --test-label --file=unlabeled.tar; echo $?
17191 decho "# Test label: success"
17192 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17193 decho "# Test label: failure"
17194 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17195 decho "# Test label: unlabeled"
17196 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17197 decho "# Test label, verbose: success"
17198 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17199 decho "# Test label, verbose: failure"
17200 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17201 decho "# Test label: multiple arguments"
17202 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17203 decho "# Test label: wildcards"
17204 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17205 ) ) >"$at_stdout" 2>"$at_stderr"
17209 echo >>"$at_stderr"; $as_echo "# Display label
17210 # Display label: unlabeled
17211 # Test label: success
17212 # Test label: failure
17213 # Test label: unlabeled
17214 # Test label, verbose: success
17215 # Test label, verbose: failure
17216 tar: Archive label mismatch
17217 # Test label: multiple arguments
17218 # Test label: wildcards
17220 $at_diff - "$at_stderr" || at_failed=:
17221 echo >>"$at_stdout"; $as_echo "# Display label
17224 # Display label: unlabeled
17226 # Test label: success
17228 # Test label: failure
17230 # Test label: unlabeled
17232 # Test label, verbose: success
17235 # Test label, verbose: failure
17238 # Test label: multiple arguments
17240 # Test label: wildcards
17243 $at_diff - "$at_stdout" || at_failed=:
17244 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17246 $at_failed && at_func_log_failure
17250 $as_echo "$at_srcdir/label03.at:28:
17253 TEST_TAR_FORMAT=oldgnu
17254 export TEST_TAR_FORMAT
17255 TAR_OPTIONS=\"-H oldgnu\"
17260 genfile --file file
17261 tar -c --label='iamalabel' --file iamanarchive file
17262 tar -c --file unlabeled.tar file
17263 decho \"# Display label\"
17264 tar --test-label --file=iamanarchive; echo \$?
17265 decho \"# Display label: unlabeled\"
17266 tar --test-label --file=unlabeled.tar; echo \$?
17267 decho \"# Test label: success\"
17268 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17269 decho \"# Test label: failure\"
17270 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17271 decho \"# Test label: unlabeled\"
17272 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17273 decho \"# Test label, verbose: success\"
17274 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17275 decho \"# Test label, verbose: failure\"
17276 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17277 decho \"# Test label: multiple arguments\"
17278 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17279 decho \"# Test label: wildcards\"
17280 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17282 echo label03.at:28 >"$at_check_line_file"
17284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17289 TEST_TAR_FORMAT=oldgnu
17290 export TEST_TAR_FORMAT
17291 TAR_OPTIONS="-H oldgnu"
17296 genfile --file file
17297 tar -c --label='iamalabel' --file iamanarchive file
17298 tar -c --file unlabeled.tar file
17299 decho "# Display label"
17300 tar --test-label --file=iamanarchive; echo $?
17301 decho "# Display label: unlabeled"
17302 tar --test-label --file=unlabeled.tar; echo $?
17303 decho "# Test label: success"
17304 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17305 decho "# Test label: failure"
17306 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17307 decho "# Test label: unlabeled"
17308 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17309 decho "# Test label, verbose: success"
17310 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17311 decho "# Test label, verbose: failure"
17312 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17313 decho "# Test label: multiple arguments"
17314 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17315 decho "# Test label: wildcards"
17316 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17317 ) ) >"$at_stdout" 2>"$at_stder1"
17318 at_func_filter_trace $?
17323 TEST_TAR_FORMAT=oldgnu
17324 export TEST_TAR_FORMAT
17325 TAR_OPTIONS="-H oldgnu"
17330 genfile --file file
17331 tar -c --label='iamalabel' --file iamanarchive file
17332 tar -c --file unlabeled.tar file
17333 decho "# Display label"
17334 tar --test-label --file=iamanarchive; echo $?
17335 decho "# Display label: unlabeled"
17336 tar --test-label --file=unlabeled.tar; echo $?
17337 decho "# Test label: success"
17338 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17339 decho "# Test label: failure"
17340 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17341 decho "# Test label: unlabeled"
17342 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17343 decho "# Test label, verbose: success"
17344 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17345 decho "# Test label, verbose: failure"
17346 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17347 decho "# Test label: multiple arguments"
17348 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17349 decho "# Test label: wildcards"
17350 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17351 ) ) >"$at_stdout" 2>"$at_stderr"
17355 echo >>"$at_stderr"; $as_echo "# Display label
17356 # Display label: unlabeled
17357 # Test label: success
17358 # Test label: failure
17359 # Test label: unlabeled
17360 # Test label, verbose: success
17361 # Test label, verbose: failure
17362 tar: Archive label mismatch
17363 # Test label: multiple arguments
17364 # Test label: wildcards
17366 $at_diff - "$at_stderr" || at_failed=:
17367 echo >>"$at_stdout"; $as_echo "# Display label
17370 # Display label: unlabeled
17372 # Test label: success
17374 # Test label: failure
17376 # Test label: unlabeled
17378 # Test label, verbose: success
17381 # Test label, verbose: failure
17384 # Test label: multiple arguments
17386 # Test label: wildcards
17389 $at_diff - "$at_stdout" || at_failed=:
17390 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17392 $at_failed && at_func_log_failure
17396 $as_echo "$at_srcdir/label03.at:28:
17399 TEST_TAR_FORMAT=posix
17400 export TEST_TAR_FORMAT
17401 TAR_OPTIONS=\"-H posix\"
17406 genfile --file file
17407 tar -c --label='iamalabel' --file iamanarchive file
17408 tar -c --file unlabeled.tar file
17409 decho \"# Display label\"
17410 tar --test-label --file=iamanarchive; echo \$?
17411 decho \"# Display label: unlabeled\"
17412 tar --test-label --file=unlabeled.tar; echo \$?
17413 decho \"# Test label: success\"
17414 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17415 decho \"# Test label: failure\"
17416 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17417 decho \"# Test label: unlabeled\"
17418 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17419 decho \"# Test label, verbose: success\"
17420 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17421 decho \"# Test label, verbose: failure\"
17422 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17423 decho \"# Test label: multiple arguments\"
17424 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17425 decho \"# Test label: wildcards\"
17426 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17428 echo label03.at:28 >"$at_check_line_file"
17430 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17435 TEST_TAR_FORMAT=posix
17436 export TEST_TAR_FORMAT
17437 TAR_OPTIONS="-H posix"
17442 genfile --file file
17443 tar -c --label='iamalabel' --file iamanarchive file
17444 tar -c --file unlabeled.tar file
17445 decho "# Display label"
17446 tar --test-label --file=iamanarchive; echo $?
17447 decho "# Display label: unlabeled"
17448 tar --test-label --file=unlabeled.tar; echo $?
17449 decho "# Test label: success"
17450 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17451 decho "# Test label: failure"
17452 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17453 decho "# Test label: unlabeled"
17454 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17455 decho "# Test label, verbose: success"
17456 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17457 decho "# Test label, verbose: failure"
17458 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17459 decho "# Test label: multiple arguments"
17460 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17461 decho "# Test label: wildcards"
17462 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17463 ) ) >"$at_stdout" 2>"$at_stder1"
17464 at_func_filter_trace $?
17469 TEST_TAR_FORMAT=posix
17470 export TEST_TAR_FORMAT
17471 TAR_OPTIONS="-H posix"
17476 genfile --file file
17477 tar -c --label='iamalabel' --file iamanarchive file
17478 tar -c --file unlabeled.tar file
17479 decho "# Display label"
17480 tar --test-label --file=iamanarchive; echo $?
17481 decho "# Display label: unlabeled"
17482 tar --test-label --file=unlabeled.tar; echo $?
17483 decho "# Test label: success"
17484 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17485 decho "# Test label: failure"
17486 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17487 decho "# Test label: unlabeled"
17488 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17489 decho "# Test label, verbose: success"
17490 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17491 decho "# Test label, verbose: failure"
17492 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17493 decho "# Test label: multiple arguments"
17494 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17495 decho "# Test label: wildcards"
17496 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17497 ) ) >"$at_stdout" 2>"$at_stderr"
17501 echo >>"$at_stderr"; $as_echo "# Display label
17502 # Display label: unlabeled
17503 # Test label: success
17504 # Test label: failure
17505 # Test label: unlabeled
17506 # Test label, verbose: success
17507 # Test label, verbose: failure
17508 tar: Archive label mismatch
17509 # Test label: multiple arguments
17510 # Test label: wildcards
17512 $at_diff - "$at_stderr" || at_failed=:
17513 echo >>"$at_stdout"; $as_echo "# Display label
17516 # Display label: unlabeled
17518 # Test label: success
17520 # Test label: failure
17522 # Test label: unlabeled
17524 # Test label, verbose: success
17527 # Test label, verbose: failure
17530 # Test label: multiple arguments
17532 # Test label: wildcards
17535 $at_diff - "$at_stdout" || at_failed=:
17536 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17538 $at_failed && at_func_log_failure
17545 $at_times_p && times >"$at_times_file"
17546 ) 5>&1 2>&1 | eval $at_tee_pipe
17547 at_status=`cat "$at_status_file"`
17550 # 47. label04.at:25: label with non-create option
17551 at_setup_line='label04.at:25'
17552 at_desc="label with non-create option"
17553 $at_quiet $as_echo_n " 47: $at_desc "
17555 test -f $XFAILFILE && at_xfail=yes
17556 echo "# -*- compilation -*-" >> "$at_group_log"
17558 $as_echo "47. label04.at:25: testing ..."
17566 $as_echo "$at_srcdir/label04.at:28:
17569 TEST_TAR_FORMAT=gnu
17570 export TEST_TAR_FORMAT
17571 TAR_OPTIONS=\"-H gnu\"
17576 genfile --file file
17577 decho \"# Create volume\"
17578 tar -c -f archive --label='New volume' file
17579 decho \"# Update: wrong label\"
17580 tar -rf archive --label='My volume' file; echo \$?
17581 decho \"# Update: right label\"
17582 tar -rf archive --label='New volume' file
17584 echo label04.at:28 >"$at_check_line_file"
17586 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17591 TEST_TAR_FORMAT=gnu
17592 export TEST_TAR_FORMAT
17593 TAR_OPTIONS="-H gnu"
17598 genfile --file file
17599 decho "# Create volume"
17600 tar -c -f archive --label='New volume' file
17601 decho "# Update: wrong label"
17602 tar -rf archive --label='My volume' file; echo $?
17603 decho "# Update: right label"
17604 tar -rf archive --label='New volume' file
17605 ) ) >"$at_stdout" 2>"$at_stder1"
17606 at_func_filter_trace $?
17611 TEST_TAR_FORMAT=gnu
17612 export TEST_TAR_FORMAT
17613 TAR_OPTIONS="-H gnu"
17618 genfile --file file
17619 decho "# Create volume"
17620 tar -c -f archive --label='New volume' file
17621 decho "# Update: wrong label"
17622 tar -rf archive --label='My volume' file; echo $?
17623 decho "# Update: right label"
17624 tar -rf archive --label='New volume' file
17625 ) ) >"$at_stdout" 2>"$at_stderr"
17629 echo >>"$at_stderr"; $as_echo "# Create volume
17630 # Update: wrong label
17631 tar: Volume \`New volume' does not match \`My volume'
17632 tar: Error is not recoverable: exiting now
17633 # Update: right label
17635 $at_diff - "$at_stderr" || at_failed=:
17636 echo >>"$at_stdout"; $as_echo "# Create volume
17637 # Update: wrong label
17639 # Update: right label
17641 $at_diff - "$at_stdout" || at_failed=:
17642 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17644 $at_failed && at_func_log_failure
17648 $as_echo "$at_srcdir/label04.at:28:
17651 TEST_TAR_FORMAT=oldgnu
17652 export TEST_TAR_FORMAT
17653 TAR_OPTIONS=\"-H oldgnu\"
17658 genfile --file file
17659 decho \"# Create volume\"
17660 tar -c -f archive --label='New volume' file
17661 decho \"# Update: wrong label\"
17662 tar -rf archive --label='My volume' file; echo \$?
17663 decho \"# Update: right label\"
17664 tar -rf archive --label='New volume' file
17666 echo label04.at:28 >"$at_check_line_file"
17668 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17673 TEST_TAR_FORMAT=oldgnu
17674 export TEST_TAR_FORMAT
17675 TAR_OPTIONS="-H oldgnu"
17680 genfile --file file
17681 decho "# Create volume"
17682 tar -c -f archive --label='New volume' file
17683 decho "# Update: wrong label"
17684 tar -rf archive --label='My volume' file; echo $?
17685 decho "# Update: right label"
17686 tar -rf archive --label='New volume' file
17687 ) ) >"$at_stdout" 2>"$at_stder1"
17688 at_func_filter_trace $?
17693 TEST_TAR_FORMAT=oldgnu
17694 export TEST_TAR_FORMAT
17695 TAR_OPTIONS="-H oldgnu"
17700 genfile --file file
17701 decho "# Create volume"
17702 tar -c -f archive --label='New volume' file
17703 decho "# Update: wrong label"
17704 tar -rf archive --label='My volume' file; echo $?
17705 decho "# Update: right label"
17706 tar -rf archive --label='New volume' file
17707 ) ) >"$at_stdout" 2>"$at_stderr"
17711 echo >>"$at_stderr"; $as_echo "# Create volume
17712 # Update: wrong label
17713 tar: Volume \`New volume' does not match \`My volume'
17714 tar: Error is not recoverable: exiting now
17715 # Update: right label
17717 $at_diff - "$at_stderr" || at_failed=:
17718 echo >>"$at_stdout"; $as_echo "# Create volume
17719 # Update: wrong label
17721 # Update: right label
17723 $at_diff - "$at_stdout" || at_failed=:
17724 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17726 $at_failed && at_func_log_failure
17730 $as_echo "$at_srcdir/label04.at:28:
17733 TEST_TAR_FORMAT=posix
17734 export TEST_TAR_FORMAT
17735 TAR_OPTIONS=\"-H posix\"
17740 genfile --file file
17741 decho \"# Create volume\"
17742 tar -c -f archive --label='New volume' file
17743 decho \"# Update: wrong label\"
17744 tar -rf archive --label='My volume' file; echo \$?
17745 decho \"# Update: right label\"
17746 tar -rf archive --label='New volume' file
17748 echo label04.at:28 >"$at_check_line_file"
17750 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17755 TEST_TAR_FORMAT=posix
17756 export TEST_TAR_FORMAT
17757 TAR_OPTIONS="-H posix"
17762 genfile --file file
17763 decho "# Create volume"
17764 tar -c -f archive --label='New volume' file
17765 decho "# Update: wrong label"
17766 tar -rf archive --label='My volume' file; echo $?
17767 decho "# Update: right label"
17768 tar -rf archive --label='New volume' file
17769 ) ) >"$at_stdout" 2>"$at_stder1"
17770 at_func_filter_trace $?
17775 TEST_TAR_FORMAT=posix
17776 export TEST_TAR_FORMAT
17777 TAR_OPTIONS="-H posix"
17782 genfile --file file
17783 decho "# Create volume"
17784 tar -c -f archive --label='New volume' file
17785 decho "# Update: wrong label"
17786 tar -rf archive --label='My volume' file; echo $?
17787 decho "# Update: right label"
17788 tar -rf archive --label='New volume' file
17789 ) ) >"$at_stdout" 2>"$at_stderr"
17793 echo >>"$at_stderr"; $as_echo "# Create volume
17794 # Update: wrong label
17795 tar: Volume \`New volume' does not match \`My volume'
17796 tar: Error is not recoverable: exiting now
17797 # Update: right label
17799 $at_diff - "$at_stderr" || at_failed=:
17800 echo >>"$at_stdout"; $as_echo "# Create volume
17801 # Update: wrong label
17803 # Update: right label
17805 $at_diff - "$at_stdout" || at_failed=:
17806 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17808 $at_failed && at_func_log_failure
17815 $at_times_p && times >"$at_times_file"
17816 ) 5>&1 2>&1 | eval $at_tee_pipe
17817 at_status=`cat "$at_status_file"`
17820 # 48. label05.at:22: label with non-create option
17821 at_setup_line='label05.at:22'
17822 at_desc="label with non-create option"
17823 $at_quiet $as_echo_n " 48: $at_desc "
17825 test -f $XFAILFILE && at_xfail=yes
17826 echo "# -*- compilation -*-" >> "$at_group_log"
17828 $as_echo "48. label05.at:22: testing ..."
17836 $as_echo "$at_srcdir/label05.at:25:
17839 TEST_TAR_FORMAT=gnu
17840 export TEST_TAR_FORMAT
17841 TAR_OPTIONS=\"-H gnu\"
17846 genfile --file file
17847 decho \"# Create volume\"
17848 tar -c -f archive file
17849 decho \"# Update: wrong label\"
17850 tar -rf archive --label='My volume' file; echo \$?
17851 decho \"# Update: right label\"
17852 tar -rf archive file
17854 echo label05.at:25 >"$at_check_line_file"
17856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17861 TEST_TAR_FORMAT=gnu
17862 export TEST_TAR_FORMAT
17863 TAR_OPTIONS="-H gnu"
17868 genfile --file file
17869 decho "# Create volume"
17870 tar -c -f archive file
17871 decho "# Update: wrong label"
17872 tar -rf archive --label='My volume' file; echo $?
17873 decho "# Update: right label"
17874 tar -rf archive file
17875 ) ) >"$at_stdout" 2>"$at_stder1"
17876 at_func_filter_trace $?
17881 TEST_TAR_FORMAT=gnu
17882 export TEST_TAR_FORMAT
17883 TAR_OPTIONS="-H gnu"
17888 genfile --file file
17889 decho "# Create volume"
17890 tar -c -f archive file
17891 decho "# Update: wrong label"
17892 tar -rf archive --label='My volume' file; echo $?
17893 decho "# Update: right label"
17894 tar -rf archive file
17895 ) ) >"$at_stdout" 2>"$at_stderr"
17899 echo >>"$at_stderr"; $as_echo "# Create volume
17900 # Update: wrong label
17901 tar: Archive not labeled to match \`My volume'
17902 tar: Error is not recoverable: exiting now
17903 # Update: right label
17905 $at_diff - "$at_stderr" || at_failed=:
17906 echo >>"$at_stdout"; $as_echo "# Create volume
17907 # Update: wrong label
17909 # Update: right label
17911 $at_diff - "$at_stdout" || at_failed=:
17912 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17914 $at_failed && at_func_log_failure
17918 $as_echo "$at_srcdir/label05.at:25:
17921 TEST_TAR_FORMAT=oldgnu
17922 export TEST_TAR_FORMAT
17923 TAR_OPTIONS=\"-H oldgnu\"
17928 genfile --file file
17929 decho \"# Create volume\"
17930 tar -c -f archive file
17931 decho \"# Update: wrong label\"
17932 tar -rf archive --label='My volume' file; echo \$?
17933 decho \"# Update: right label\"
17934 tar -rf archive file
17936 echo label05.at:25 >"$at_check_line_file"
17938 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17943 TEST_TAR_FORMAT=oldgnu
17944 export TEST_TAR_FORMAT
17945 TAR_OPTIONS="-H oldgnu"
17950 genfile --file file
17951 decho "# Create volume"
17952 tar -c -f archive file
17953 decho "# Update: wrong label"
17954 tar -rf archive --label='My volume' file; echo $?
17955 decho "# Update: right label"
17956 tar -rf archive file
17957 ) ) >"$at_stdout" 2>"$at_stder1"
17958 at_func_filter_trace $?
17963 TEST_TAR_FORMAT=oldgnu
17964 export TEST_TAR_FORMAT
17965 TAR_OPTIONS="-H oldgnu"
17970 genfile --file file
17971 decho "# Create volume"
17972 tar -c -f archive file
17973 decho "# Update: wrong label"
17974 tar -rf archive --label='My volume' file; echo $?
17975 decho "# Update: right label"
17976 tar -rf archive file
17977 ) ) >"$at_stdout" 2>"$at_stderr"
17981 echo >>"$at_stderr"; $as_echo "# Create volume
17982 # Update: wrong label
17983 tar: Archive not labeled to match \`My volume'
17984 tar: Error is not recoverable: exiting now
17985 # Update: right label
17987 $at_diff - "$at_stderr" || at_failed=:
17988 echo >>"$at_stdout"; $as_echo "# Create volume
17989 # Update: wrong label
17991 # Update: right label
17993 $at_diff - "$at_stdout" || at_failed=:
17994 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17996 $at_failed && at_func_log_failure
18000 $as_echo "$at_srcdir/label05.at:25:
18003 TEST_TAR_FORMAT=posix
18004 export TEST_TAR_FORMAT
18005 TAR_OPTIONS=\"-H posix\"
18010 genfile --file file
18011 decho \"# Create volume\"
18012 tar -c -f archive file
18013 decho \"# Update: wrong label\"
18014 tar -rf archive --label='My volume' file; echo \$?
18015 decho \"# Update: right label\"
18016 tar -rf archive file
18018 echo label05.at:25 >"$at_check_line_file"
18020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18025 TEST_TAR_FORMAT=posix
18026 export TEST_TAR_FORMAT
18027 TAR_OPTIONS="-H posix"
18032 genfile --file file
18033 decho "# Create volume"
18034 tar -c -f archive file
18035 decho "# Update: wrong label"
18036 tar -rf archive --label='My volume' file; echo $?
18037 decho "# Update: right label"
18038 tar -rf archive file
18039 ) ) >"$at_stdout" 2>"$at_stder1"
18040 at_func_filter_trace $?
18045 TEST_TAR_FORMAT=posix
18046 export TEST_TAR_FORMAT
18047 TAR_OPTIONS="-H posix"
18052 genfile --file file
18053 decho "# Create volume"
18054 tar -c -f archive file
18055 decho "# Update: wrong label"
18056 tar -rf archive --label='My volume' file; echo $?
18057 decho "# Update: right label"
18058 tar -rf archive file
18059 ) ) >"$at_stdout" 2>"$at_stderr"
18063 echo >>"$at_stderr"; $as_echo "# Create volume
18064 # Update: wrong label
18065 tar: Archive not labeled to match \`My volume'
18066 tar: Error is not recoverable: exiting now
18067 # Update: right label
18069 $at_diff - "$at_stderr" || at_failed=:
18070 echo >>"$at_stdout"; $as_echo "# Create volume
18071 # Update: wrong label
18073 # Update: right label
18075 $at_diff - "$at_stdout" || at_failed=:
18076 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
18078 $at_failed && at_func_log_failure
18085 $at_times_p && times >"$at_times_file"
18086 ) 5>&1 2>&1 | eval $at_tee_pipe
18087 at_status=`cat "$at_status_file"`
18090 # 49. backup01.at:33: extracting existing dir with --backup
18091 at_setup_line='backup01.at:33'
18092 at_desc="extracting existing dir with --backup"
18093 $at_quiet $as_echo_n " 49: $at_desc "
18095 test -f $XFAILFILE && at_xfail=yes
18096 echo "# -*- compilation -*-" >> "$at_group_log"
18098 $as_echo "49. backup01.at:33: testing ..."
18106 $as_echo "$at_srcdir/backup01.at:36:
18110 export TEST_TAR_FORMAT
18111 TAR_OPTIONS=\"-H v7\"
18116 echo bla > dir1/file1
18117 tar cf test.tar dir1 dir2
18118 tar xfv test.tar --backup --warning=no-timestamp
18120 echo backup01.at:36 >"$at_check_line_file"
18122 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18128 export TEST_TAR_FORMAT
18129 TAR_OPTIONS="-H v7"
18134 echo bla > dir1/file1
18135 tar cf test.tar dir1 dir2
18136 tar xfv test.tar --backup --warning=no-timestamp
18137 ) ) >"$at_stdout" 2>"$at_stder1"
18138 at_func_filter_trace $?
18144 export TEST_TAR_FORMAT
18145 TAR_OPTIONS="-H v7"
18150 echo bla > dir1/file1
18151 tar cf test.tar dir1 dir2
18152 tar xfv test.tar --backup --warning=no-timestamp
18153 ) ) >"$at_stdout" 2>"$at_stderr"
18157 at_func_diff_devnull "$at_stderr" || at_failed=:
18158 echo >>"$at_stdout"; $as_echo "dir1/
18160 Renaming \`dir1/file1' to \`dir1/file1~'
18163 $at_diff - "$at_stdout" || at_failed=:
18164 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18166 $at_failed && at_func_log_failure
18170 $as_echo "$at_srcdir/backup01.at:36:
18173 TEST_TAR_FORMAT=oldgnu
18174 export TEST_TAR_FORMAT
18175 TAR_OPTIONS=\"-H oldgnu\"
18180 echo bla > dir1/file1
18181 tar cf test.tar dir1 dir2
18182 tar xfv test.tar --backup --warning=no-timestamp
18184 echo backup01.at:36 >"$at_check_line_file"
18186 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18191 TEST_TAR_FORMAT=oldgnu
18192 export TEST_TAR_FORMAT
18193 TAR_OPTIONS="-H oldgnu"
18198 echo bla > dir1/file1
18199 tar cf test.tar dir1 dir2
18200 tar xfv test.tar --backup --warning=no-timestamp
18201 ) ) >"$at_stdout" 2>"$at_stder1"
18202 at_func_filter_trace $?
18207 TEST_TAR_FORMAT=oldgnu
18208 export TEST_TAR_FORMAT
18209 TAR_OPTIONS="-H oldgnu"
18214 echo bla > dir1/file1
18215 tar cf test.tar dir1 dir2
18216 tar xfv test.tar --backup --warning=no-timestamp
18217 ) ) >"$at_stdout" 2>"$at_stderr"
18221 at_func_diff_devnull "$at_stderr" || at_failed=:
18222 echo >>"$at_stdout"; $as_echo "dir1/
18224 Renaming \`dir1/file1' to \`dir1/file1~'
18227 $at_diff - "$at_stdout" || at_failed=:
18228 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18230 $at_failed && at_func_log_failure
18234 $as_echo "$at_srcdir/backup01.at:36:
18237 TEST_TAR_FORMAT=ustar
18238 export TEST_TAR_FORMAT
18239 TAR_OPTIONS=\"-H ustar\"
18244 echo bla > dir1/file1
18245 tar cf test.tar dir1 dir2
18246 tar xfv test.tar --backup --warning=no-timestamp
18248 echo backup01.at:36 >"$at_check_line_file"
18250 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18255 TEST_TAR_FORMAT=ustar
18256 export TEST_TAR_FORMAT
18257 TAR_OPTIONS="-H ustar"
18262 echo bla > dir1/file1
18263 tar cf test.tar dir1 dir2
18264 tar xfv test.tar --backup --warning=no-timestamp
18265 ) ) >"$at_stdout" 2>"$at_stder1"
18266 at_func_filter_trace $?
18271 TEST_TAR_FORMAT=ustar
18272 export TEST_TAR_FORMAT
18273 TAR_OPTIONS="-H ustar"
18278 echo bla > dir1/file1
18279 tar cf test.tar dir1 dir2
18280 tar xfv test.tar --backup --warning=no-timestamp
18281 ) ) >"$at_stdout" 2>"$at_stderr"
18285 at_func_diff_devnull "$at_stderr" || at_failed=:
18286 echo >>"$at_stdout"; $as_echo "dir1/
18288 Renaming \`dir1/file1' to \`dir1/file1~'
18291 $at_diff - "$at_stdout" || at_failed=:
18292 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18294 $at_failed && at_func_log_failure
18298 $as_echo "$at_srcdir/backup01.at:36:
18301 TEST_TAR_FORMAT=posix
18302 export TEST_TAR_FORMAT
18303 TAR_OPTIONS=\"-H posix\"
18308 echo bla > dir1/file1
18309 tar cf test.tar dir1 dir2
18310 tar xfv test.tar --backup --warning=no-timestamp
18312 echo backup01.at:36 >"$at_check_line_file"
18314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18319 TEST_TAR_FORMAT=posix
18320 export TEST_TAR_FORMAT
18321 TAR_OPTIONS="-H posix"
18326 echo bla > dir1/file1
18327 tar cf test.tar dir1 dir2
18328 tar xfv test.tar --backup --warning=no-timestamp
18329 ) ) >"$at_stdout" 2>"$at_stder1"
18330 at_func_filter_trace $?
18335 TEST_TAR_FORMAT=posix
18336 export TEST_TAR_FORMAT
18337 TAR_OPTIONS="-H posix"
18342 echo bla > dir1/file1
18343 tar cf test.tar dir1 dir2
18344 tar xfv test.tar --backup --warning=no-timestamp
18345 ) ) >"$at_stdout" 2>"$at_stderr"
18349 at_func_diff_devnull "$at_stderr" || at_failed=:
18350 echo >>"$at_stdout"; $as_echo "dir1/
18352 Renaming \`dir1/file1' to \`dir1/file1~'
18355 $at_diff - "$at_stdout" || at_failed=:
18356 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18358 $at_failed && at_func_log_failure
18362 $as_echo "$at_srcdir/backup01.at:36:
18365 TEST_TAR_FORMAT=gnu
18366 export TEST_TAR_FORMAT
18367 TAR_OPTIONS=\"-H gnu\"
18372 echo bla > dir1/file1
18373 tar cf test.tar dir1 dir2
18374 tar xfv test.tar --backup --warning=no-timestamp
18376 echo backup01.at:36 >"$at_check_line_file"
18378 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18383 TEST_TAR_FORMAT=gnu
18384 export TEST_TAR_FORMAT
18385 TAR_OPTIONS="-H gnu"
18390 echo bla > dir1/file1
18391 tar cf test.tar dir1 dir2
18392 tar xfv test.tar --backup --warning=no-timestamp
18393 ) ) >"$at_stdout" 2>"$at_stder1"
18394 at_func_filter_trace $?
18399 TEST_TAR_FORMAT=gnu
18400 export TEST_TAR_FORMAT
18401 TAR_OPTIONS="-H gnu"
18406 echo bla > dir1/file1
18407 tar cf test.tar dir1 dir2
18408 tar xfv test.tar --backup --warning=no-timestamp
18409 ) ) >"$at_stdout" 2>"$at_stderr"
18413 at_func_diff_devnull "$at_stderr" || at_failed=:
18414 echo >>"$at_stdout"; $as_echo "dir1/
18416 Renaming \`dir1/file1' to \`dir1/file1~'
18419 $at_diff - "$at_stdout" || at_failed=:
18420 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18422 $at_failed && at_func_log_failure
18429 $at_times_p && times >"$at_times_file"
18430 ) 5>&1 2>&1 | eval $at_tee_pipe
18431 at_status=`cat "$at_status_file"`
18434 # 50. gzip.at:23: gzip
18435 at_setup_line='gzip.at:23'
18437 $at_quiet $as_echo_n " 50: $at_desc "
18439 echo "# -*- compilation -*-" >> "$at_group_log"
18441 $as_echo "50. gzip.at:23: testing ..."
18449 $as_echo "$at_srcdir/gzip.at:28:
18451 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18453 tar xfvz /dev/null 2>err
18455 sed -n '/^tar:/p' err >&2
18458 echo gzip.at:28 >"$at_check_line_file"
18460 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18464 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18466 tar xfvz /dev/null 2>err
18468 sed -n '/^tar:/p' err >&2
18470 ) >"$at_stdout" 2>"$at_stder1"
18471 at_func_filter_trace $?
18475 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18477 tar xfvz /dev/null 2>err
18479 sed -n '/^tar:/p' err >&2
18481 ) >"$at_stdout" 2>"$at_stderr"
18485 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
18486 tar: Error is not recoverable: exiting now
18488 $at_diff - "$at_stderr" || at_failed=:
18489 at_func_diff_devnull "$at_stdout" || at_failed=:
18490 at_func_check_status 2 $at_status "$at_srcdir/gzip.at:28"
18492 $at_failed && at_func_log_failure
18497 $at_times_p && times >"$at_times_file"
18498 ) 5>&1 2>&1 | eval $at_tee_pipe
18499 at_status=`cat "$at_status_file"`
18502 # 51. incremental.at:23: incremental
18503 at_setup_line='incremental.at:23'
18504 at_desc="incremental"
18505 $at_quiet $as_echo_n " 51: $at_desc "
18507 test -f $XFAILFILE && at_xfail=yes
18508 echo "# -*- compilation -*-" >> "$at_group_log"
18510 $as_echo "51. incremental.at:23: testing ..."
18518 $as_echo "$at_srcdir/incremental.at:26:
18521 TEST_TAR_FORMAT=gnu
18522 export TEST_TAR_FORMAT
18523 TAR_OPTIONS=\"-H gnu\"
18528 echo x >structure/file
18530 # On Nextstep (and perhaps other 4.3BSD systems),
18531 # a newly created file's ctime isn't updated
18532 # until the next sync or stat operation on the file.
18533 ls -l structure/file >/dev/null
18535 # If the time of an initial backup and the creation time of a file contained
18536 # in that backup are the same, the file will be backed up again when an
18537 # incremental backup is done, because the incremental backup backs up
18538 # files created \`on or after' the initial backup time. Without the sleep
18539 # command, behaviour of tar becomes variable, depending whether the system
18540 # clock ticked over to the next second between creating the file and
18544 tar cf archive --listed=list structure
18545 tar cfv archive --listed=list structure
18547 # ReiserFS often offsets the timestamps of newly created files
18548 # 1 second to the past. Try to compensate for it, until a better
18549 # solution is found.
18551 echo y >structure/file
18552 tar cfv archive --listed=list structure
18554 echo incremental.at:26 >"$at_check_line_file"
18556 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18561 TEST_TAR_FORMAT=gnu
18562 export TEST_TAR_FORMAT
18563 TAR_OPTIONS="-H gnu"
18568 echo x >structure/file
18570 # On Nextstep (and perhaps other 4.3BSD systems),
18571 # a newly created file's ctime isn't updated
18572 # until the next sync or stat operation on the file.
18573 ls -l structure/file >/dev/null
18575 # If the time of an initial backup and the creation time of a file contained
18576 # in that backup are the same, the file will be backed up again when an
18577 # incremental backup is done, because the incremental backup backs up
18578 # files created `on or after' the initial backup time. Without the sleep
18579 # command, behaviour of tar becomes variable, depending whether the system
18580 # clock ticked over to the next second between creating the file and
18584 tar cf archive --listed=list structure
18585 tar cfv archive --listed=list structure
18587 # ReiserFS often offsets the timestamps of newly created files
18588 # 1 second to the past. Try to compensate for it, until a better
18589 # solution is found.
18591 echo y >structure/file
18592 tar cfv archive --listed=list structure
18593 ) ) >"$at_stdout" 2>"$at_stder1"
18594 at_func_filter_trace $?
18599 TEST_TAR_FORMAT=gnu
18600 export TEST_TAR_FORMAT
18601 TAR_OPTIONS="-H gnu"
18606 echo x >structure/file
18608 # On Nextstep (and perhaps other 4.3BSD systems),
18609 # a newly created file's ctime isn't updated
18610 # until the next sync or stat operation on the file.
18611 ls -l structure/file >/dev/null
18613 # If the time of an initial backup and the creation time of a file contained
18614 # in that backup are the same, the file will be backed up again when an
18615 # incremental backup is done, because the incremental backup backs up
18616 # files created `on or after' the initial backup time. Without the sleep
18617 # command, behaviour of tar becomes variable, depending whether the system
18618 # clock ticked over to the next second between creating the file and
18622 tar cf archive --listed=list structure
18623 tar cfv archive --listed=list structure
18625 # ReiserFS often offsets the timestamps of newly created files
18626 # 1 second to the past. Try to compensate for it, until a better
18627 # solution is found.
18629 echo y >structure/file
18630 tar cfv archive --listed=list structure
18631 ) ) >"$at_stdout" 2>"$at_stderr"
18635 at_func_diff_devnull "$at_stderr" || at_failed=:
18636 echo >>"$at_stdout"; $as_echo "structure/
18641 $at_diff - "$at_stdout" || at_failed=:
18642 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18644 $at_failed && at_func_log_failure
18648 $as_echo "$at_srcdir/incremental.at:26:
18651 TEST_TAR_FORMAT=oldgnu
18652 export TEST_TAR_FORMAT
18653 TAR_OPTIONS=\"-H oldgnu\"
18658 echo x >structure/file
18660 # On Nextstep (and perhaps other 4.3BSD systems),
18661 # a newly created file's ctime isn't updated
18662 # until the next sync or stat operation on the file.
18663 ls -l structure/file >/dev/null
18665 # If the time of an initial backup and the creation time of a file contained
18666 # in that backup are the same, the file will be backed up again when an
18667 # incremental backup is done, because the incremental backup backs up
18668 # files created \`on or after' the initial backup time. Without the sleep
18669 # command, behaviour of tar becomes variable, depending whether the system
18670 # clock ticked over to the next second between creating the file and
18674 tar cf archive --listed=list structure
18675 tar cfv archive --listed=list structure
18677 # ReiserFS often offsets the timestamps of newly created files
18678 # 1 second to the past. Try to compensate for it, until a better
18679 # solution is found.
18681 echo y >structure/file
18682 tar cfv archive --listed=list structure
18684 echo incremental.at:26 >"$at_check_line_file"
18686 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18691 TEST_TAR_FORMAT=oldgnu
18692 export TEST_TAR_FORMAT
18693 TAR_OPTIONS="-H oldgnu"
18698 echo x >structure/file
18700 # On Nextstep (and perhaps other 4.3BSD systems),
18701 # a newly created file's ctime isn't updated
18702 # until the next sync or stat operation on the file.
18703 ls -l structure/file >/dev/null
18705 # If the time of an initial backup and the creation time of a file contained
18706 # in that backup are the same, the file will be backed up again when an
18707 # incremental backup is done, because the incremental backup backs up
18708 # files created `on or after' the initial backup time. Without the sleep
18709 # command, behaviour of tar becomes variable, depending whether the system
18710 # clock ticked over to the next second between creating the file and
18714 tar cf archive --listed=list structure
18715 tar cfv archive --listed=list structure
18717 # ReiserFS often offsets the timestamps of newly created files
18718 # 1 second to the past. Try to compensate for it, until a better
18719 # solution is found.
18721 echo y >structure/file
18722 tar cfv archive --listed=list structure
18723 ) ) >"$at_stdout" 2>"$at_stder1"
18724 at_func_filter_trace $?
18729 TEST_TAR_FORMAT=oldgnu
18730 export TEST_TAR_FORMAT
18731 TAR_OPTIONS="-H oldgnu"
18736 echo x >structure/file
18738 # On Nextstep (and perhaps other 4.3BSD systems),
18739 # a newly created file's ctime isn't updated
18740 # until the next sync or stat operation on the file.
18741 ls -l structure/file >/dev/null
18743 # If the time of an initial backup and the creation time of a file contained
18744 # in that backup are the same, the file will be backed up again when an
18745 # incremental backup is done, because the incremental backup backs up
18746 # files created `on or after' the initial backup time. Without the sleep
18747 # command, behaviour of tar becomes variable, depending whether the system
18748 # clock ticked over to the next second between creating the file and
18752 tar cf archive --listed=list structure
18753 tar cfv archive --listed=list structure
18755 # ReiserFS often offsets the timestamps of newly created files
18756 # 1 second to the past. Try to compensate for it, until a better
18757 # solution is found.
18759 echo y >structure/file
18760 tar cfv archive --listed=list structure
18761 ) ) >"$at_stdout" 2>"$at_stderr"
18765 at_func_diff_devnull "$at_stderr" || at_failed=:
18766 echo >>"$at_stdout"; $as_echo "structure/
18771 $at_diff - "$at_stdout" || at_failed=:
18772 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18774 $at_failed && at_func_log_failure
18778 $as_echo "$at_srcdir/incremental.at:26:
18781 TEST_TAR_FORMAT=posix
18782 export TEST_TAR_FORMAT
18783 TAR_OPTIONS=\"-H posix\"
18788 echo x >structure/file
18790 # On Nextstep (and perhaps other 4.3BSD systems),
18791 # a newly created file's ctime isn't updated
18792 # until the next sync or stat operation on the file.
18793 ls -l structure/file >/dev/null
18795 # If the time of an initial backup and the creation time of a file contained
18796 # in that backup are the same, the file will be backed up again when an
18797 # incremental backup is done, because the incremental backup backs up
18798 # files created \`on or after' the initial backup time. Without the sleep
18799 # command, behaviour of tar becomes variable, depending whether the system
18800 # clock ticked over to the next second between creating the file and
18804 tar cf archive --listed=list structure
18805 tar cfv archive --listed=list structure
18807 # ReiserFS often offsets the timestamps of newly created files
18808 # 1 second to the past. Try to compensate for it, until a better
18809 # solution is found.
18811 echo y >structure/file
18812 tar cfv archive --listed=list structure
18814 echo incremental.at:26 >"$at_check_line_file"
18816 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18821 TEST_TAR_FORMAT=posix
18822 export TEST_TAR_FORMAT
18823 TAR_OPTIONS="-H posix"
18828 echo x >structure/file
18830 # On Nextstep (and perhaps other 4.3BSD systems),
18831 # a newly created file's ctime isn't updated
18832 # until the next sync or stat operation on the file.
18833 ls -l structure/file >/dev/null
18835 # If the time of an initial backup and the creation time of a file contained
18836 # in that backup are the same, the file will be backed up again when an
18837 # incremental backup is done, because the incremental backup backs up
18838 # files created `on or after' the initial backup time. Without the sleep
18839 # command, behaviour of tar becomes variable, depending whether the system
18840 # clock ticked over to the next second between creating the file and
18844 tar cf archive --listed=list structure
18845 tar cfv archive --listed=list structure
18847 # ReiserFS often offsets the timestamps of newly created files
18848 # 1 second to the past. Try to compensate for it, until a better
18849 # solution is found.
18851 echo y >structure/file
18852 tar cfv archive --listed=list structure
18853 ) ) >"$at_stdout" 2>"$at_stder1"
18854 at_func_filter_trace $?
18859 TEST_TAR_FORMAT=posix
18860 export TEST_TAR_FORMAT
18861 TAR_OPTIONS="-H posix"
18866 echo x >structure/file
18868 # On Nextstep (and perhaps other 4.3BSD systems),
18869 # a newly created file's ctime isn't updated
18870 # until the next sync or stat operation on the file.
18871 ls -l structure/file >/dev/null
18873 # If the time of an initial backup and the creation time of a file contained
18874 # in that backup are the same, the file will be backed up again when an
18875 # incremental backup is done, because the incremental backup backs up
18876 # files created `on or after' the initial backup time. Without the sleep
18877 # command, behaviour of tar becomes variable, depending whether the system
18878 # clock ticked over to the next second between creating the file and
18882 tar cf archive --listed=list structure
18883 tar cfv archive --listed=list structure
18885 # ReiserFS often offsets the timestamps of newly created files
18886 # 1 second to the past. Try to compensate for it, until a better
18887 # solution is found.
18889 echo y >structure/file
18890 tar cfv archive --listed=list structure
18891 ) ) >"$at_stdout" 2>"$at_stderr"
18895 at_func_diff_devnull "$at_stderr" || at_failed=:
18896 echo >>"$at_stdout"; $as_echo "structure/
18901 $at_diff - "$at_stdout" || at_failed=:
18902 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18904 $at_failed && at_func_log_failure
18911 $at_times_p && times >"$at_times_file"
18912 ) 5>&1 2>&1 | eval $at_tee_pipe
18913 at_status=`cat "$at_status_file"`
18916 # 52. incr01.at:27: restore broken symlinks from incremental
18917 at_setup_line='incr01.at:27'
18918 at_desc="restore broken symlinks from incremental"
18919 $at_quiet $as_echo_n " 52: $at_desc "
18921 test -f $XFAILFILE && at_xfail=yes
18922 echo "# -*- compilation -*-" >> "$at_group_log"
18924 $as_echo "52. incr01.at:27: testing ..."
18932 $as_echo "$at_srcdir/incr01.at:30:
18935 TEST_TAR_FORMAT=gnu
18936 export TEST_TAR_FORMAT
18937 TAR_OPTIONS=\"-H gnu\"
18942 \$as_ln_s foo directory/bar
18944 tar -cf archive.0 -g db directory
18946 tar -cf archive.1 -g db directory
18950 tar xvfg archive.0 /dev/null --warning=no-timestamp
18952 tar xvfg archive.1 /dev/null --warning=no-timestamp
18954 echo incr01.at:30 >"$at_check_line_file"
18956 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18961 TEST_TAR_FORMAT=gnu
18962 export TEST_TAR_FORMAT
18963 TAR_OPTIONS="-H gnu"
18968 $as_ln_s foo directory/bar
18970 tar -cf archive.0 -g db directory
18972 tar -cf archive.1 -g db directory
18976 tar xvfg archive.0 /dev/null --warning=no-timestamp
18978 tar xvfg archive.1 /dev/null --warning=no-timestamp
18979 ) ) >"$at_stdout" 2>"$at_stder1"
18980 at_func_filter_trace $?
18985 TEST_TAR_FORMAT=gnu
18986 export TEST_TAR_FORMAT
18987 TAR_OPTIONS="-H gnu"
18992 $as_ln_s foo directory/bar
18994 tar -cf archive.0 -g db directory
18996 tar -cf archive.1 -g db directory
19000 tar xvfg archive.0 /dev/null --warning=no-timestamp
19002 tar xvfg archive.1 /dev/null --warning=no-timestamp
19003 ) ) >"$at_stdout" 2>"$at_stderr"
19007 at_func_diff_devnull "$at_stderr" || at_failed=:
19008 echo >>"$at_stdout"; $as_echo "directory/
19012 tar: Deleting \`directory/bar'
19014 $at_diff - "$at_stdout" || at_failed=:
19015 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19017 $at_failed && at_func_log_failure
19021 $as_echo "$at_srcdir/incr01.at:30:
19024 TEST_TAR_FORMAT=oldgnu
19025 export TEST_TAR_FORMAT
19026 TAR_OPTIONS=\"-H oldgnu\"
19031 \$as_ln_s foo directory/bar
19033 tar -cf archive.0 -g db directory
19035 tar -cf archive.1 -g db directory
19039 tar xvfg archive.0 /dev/null --warning=no-timestamp
19041 tar xvfg archive.1 /dev/null --warning=no-timestamp
19043 echo incr01.at:30 >"$at_check_line_file"
19045 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19050 TEST_TAR_FORMAT=oldgnu
19051 export TEST_TAR_FORMAT
19052 TAR_OPTIONS="-H oldgnu"
19057 $as_ln_s foo directory/bar
19059 tar -cf archive.0 -g db directory
19061 tar -cf archive.1 -g db directory
19065 tar xvfg archive.0 /dev/null --warning=no-timestamp
19067 tar xvfg archive.1 /dev/null --warning=no-timestamp
19068 ) ) >"$at_stdout" 2>"$at_stder1"
19069 at_func_filter_trace $?
19074 TEST_TAR_FORMAT=oldgnu
19075 export TEST_TAR_FORMAT
19076 TAR_OPTIONS="-H oldgnu"
19081 $as_ln_s foo directory/bar
19083 tar -cf archive.0 -g db directory
19085 tar -cf archive.1 -g db directory
19089 tar xvfg archive.0 /dev/null --warning=no-timestamp
19091 tar xvfg archive.1 /dev/null --warning=no-timestamp
19092 ) ) >"$at_stdout" 2>"$at_stderr"
19096 at_func_diff_devnull "$at_stderr" || at_failed=:
19097 echo >>"$at_stdout"; $as_echo "directory/
19101 tar: Deleting \`directory/bar'
19103 $at_diff - "$at_stdout" || at_failed=:
19104 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19106 $at_failed && at_func_log_failure
19110 $as_echo "$at_srcdir/incr01.at:30:
19113 TEST_TAR_FORMAT=posix
19114 export TEST_TAR_FORMAT
19115 TAR_OPTIONS=\"-H posix\"
19120 \$as_ln_s foo directory/bar
19122 tar -cf archive.0 -g db directory
19124 tar -cf archive.1 -g db directory
19128 tar xvfg archive.0 /dev/null --warning=no-timestamp
19130 tar xvfg archive.1 /dev/null --warning=no-timestamp
19132 echo incr01.at:30 >"$at_check_line_file"
19134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19139 TEST_TAR_FORMAT=posix
19140 export TEST_TAR_FORMAT
19141 TAR_OPTIONS="-H posix"
19146 $as_ln_s foo directory/bar
19148 tar -cf archive.0 -g db directory
19150 tar -cf archive.1 -g db directory
19154 tar xvfg archive.0 /dev/null --warning=no-timestamp
19156 tar xvfg archive.1 /dev/null --warning=no-timestamp
19157 ) ) >"$at_stdout" 2>"$at_stder1"
19158 at_func_filter_trace $?
19163 TEST_TAR_FORMAT=posix
19164 export TEST_TAR_FORMAT
19165 TAR_OPTIONS="-H posix"
19170 $as_ln_s foo directory/bar
19172 tar -cf archive.0 -g db directory
19174 tar -cf archive.1 -g db directory
19178 tar xvfg archive.0 /dev/null --warning=no-timestamp
19180 tar xvfg archive.1 /dev/null --warning=no-timestamp
19181 ) ) >"$at_stdout" 2>"$at_stderr"
19185 at_func_diff_devnull "$at_stderr" || at_failed=:
19186 echo >>"$at_stdout"; $as_echo "directory/
19190 tar: Deleting \`directory/bar'
19192 $at_diff - "$at_stdout" || at_failed=:
19193 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19195 $at_failed && at_func_log_failure
19202 $at_times_p && times >"$at_times_file"
19203 ) 5>&1 2>&1 | eval $at_tee_pipe
19204 at_status=`cat "$at_status_file"`
19207 # 53. incr02.at:32: restoring timestamps from incremental
19208 at_setup_line='incr02.at:32'
19209 at_desc="restoring timestamps from incremental"
19210 $at_quiet $as_echo_n " 53: $at_desc "
19212 test -f $XFAILFILE && at_xfail=yes
19213 echo "# -*- compilation -*-" >> "$at_group_log"
19215 $as_echo "53. incr02.at:32: testing ..."
19223 $as_echo "$at_srcdir/incr02.at:35:
19226 TEST_TAR_FORMAT=gnu
19227 export TEST_TAR_FORMAT
19228 TAR_OPTIONS=\"-H gnu\"
19232 # Create directory structure
19236 genfile --length 10 --file dir/subdir1/file
19238 # Save mtime for later comparison
19239 genfile --stat=mtime dir/subdir1 > ts
19241 # Create an archive. Using incremental mode makes sure the
19242 # archive will have a directory-first member ordering,
19247 # dir/subdir1/foofile
19249 # When restoring from this directory structure, \`dir/subdir2/' used to
19250 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19251 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19252 # latter clobbered the directory timestamp.
19254 tar -cf archive -g db dir
19256 # Move away the directory
19259 # Wait enough time for timestamps to differ in case of failure.
19262 # Restore the directory
19263 tar -xf archive dir
19265 # Check the timestamp
19266 genfile --stat=mtime dir/subdir1 | diff ts -
19268 echo incr02.at:35 >"$at_check_line_file"
19270 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19275 TEST_TAR_FORMAT=gnu
19276 export TEST_TAR_FORMAT
19277 TAR_OPTIONS="-H gnu"
19281 # Create directory structure
19285 genfile --length 10 --file dir/subdir1/file
19287 # Save mtime for later comparison
19288 genfile --stat=mtime dir/subdir1 > ts
19290 # Create an archive. Using incremental mode makes sure the
19291 # archive will have a directory-first member ordering,
19296 # dir/subdir1/foofile
19298 # When restoring from this directory structure, `dir/subdir2/' used to
19299 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19300 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19301 # latter clobbered the directory timestamp.
19303 tar -cf archive -g db dir
19305 # Move away the directory
19308 # Wait enough time for timestamps to differ in case of failure.
19311 # Restore the directory
19312 tar -xf archive dir
19314 # Check the timestamp
19315 genfile --stat=mtime dir/subdir1 | diff ts -
19316 ) ) >"$at_stdout" 2>"$at_stder1"
19317 at_func_filter_trace $?
19322 TEST_TAR_FORMAT=gnu
19323 export TEST_TAR_FORMAT
19324 TAR_OPTIONS="-H gnu"
19328 # Create directory structure
19332 genfile --length 10 --file dir/subdir1/file
19334 # Save mtime for later comparison
19335 genfile --stat=mtime dir/subdir1 > ts
19337 # Create an archive. Using incremental mode makes sure the
19338 # archive will have a directory-first member ordering,
19343 # dir/subdir1/foofile
19345 # When restoring from this directory structure, `dir/subdir2/' used to
19346 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19347 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19348 # latter clobbered the directory timestamp.
19350 tar -cf archive -g db dir
19352 # Move away the directory
19355 # Wait enough time for timestamps to differ in case of failure.
19358 # Restore the directory
19359 tar -xf archive dir
19361 # Check the timestamp
19362 genfile --stat=mtime dir/subdir1 | diff ts -
19363 ) ) >"$at_stdout" 2>"$at_stderr"
19367 at_func_diff_devnull "$at_stderr" || at_failed=:
19368 at_func_diff_devnull "$at_stdout" || at_failed=:
19369 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19371 $at_failed && at_func_log_failure
19375 $as_echo "$at_srcdir/incr02.at:35:
19378 TEST_TAR_FORMAT=oldgnu
19379 export TEST_TAR_FORMAT
19380 TAR_OPTIONS=\"-H oldgnu\"
19384 # Create directory structure
19388 genfile --length 10 --file dir/subdir1/file
19390 # Save mtime for later comparison
19391 genfile --stat=mtime dir/subdir1 > ts
19393 # Create an archive. Using incremental mode makes sure the
19394 # archive will have a directory-first member ordering,
19399 # dir/subdir1/foofile
19401 # When restoring from this directory structure, \`dir/subdir2/' used to
19402 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19403 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19404 # latter clobbered the directory timestamp.
19406 tar -cf archive -g db dir
19408 # Move away the directory
19411 # Wait enough time for timestamps to differ in case of failure.
19414 # Restore the directory
19415 tar -xf archive dir
19417 # Check the timestamp
19418 genfile --stat=mtime dir/subdir1 | diff ts -
19420 echo incr02.at:35 >"$at_check_line_file"
19422 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19427 TEST_TAR_FORMAT=oldgnu
19428 export TEST_TAR_FORMAT
19429 TAR_OPTIONS="-H oldgnu"
19433 # Create directory structure
19437 genfile --length 10 --file dir/subdir1/file
19439 # Save mtime for later comparison
19440 genfile --stat=mtime dir/subdir1 > ts
19442 # Create an archive. Using incremental mode makes sure the
19443 # archive will have a directory-first member ordering,
19448 # dir/subdir1/foofile
19450 # When restoring from this directory structure, `dir/subdir2/' used to
19451 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19452 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19453 # latter clobbered the directory timestamp.
19455 tar -cf archive -g db dir
19457 # Move away the directory
19460 # Wait enough time for timestamps to differ in case of failure.
19463 # Restore the directory
19464 tar -xf archive dir
19466 # Check the timestamp
19467 genfile --stat=mtime dir/subdir1 | diff ts -
19468 ) ) >"$at_stdout" 2>"$at_stder1"
19469 at_func_filter_trace $?
19474 TEST_TAR_FORMAT=oldgnu
19475 export TEST_TAR_FORMAT
19476 TAR_OPTIONS="-H oldgnu"
19480 # Create directory structure
19484 genfile --length 10 --file dir/subdir1/file
19486 # Save mtime for later comparison
19487 genfile --stat=mtime dir/subdir1 > ts
19489 # Create an archive. Using incremental mode makes sure the
19490 # archive will have a directory-first member ordering,
19495 # dir/subdir1/foofile
19497 # When restoring from this directory structure, `dir/subdir2/' used to
19498 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19499 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19500 # latter clobbered the directory timestamp.
19502 tar -cf archive -g db dir
19504 # Move away the directory
19507 # Wait enough time for timestamps to differ in case of failure.
19510 # Restore the directory
19511 tar -xf archive dir
19513 # Check the timestamp
19514 genfile --stat=mtime dir/subdir1 | diff ts -
19515 ) ) >"$at_stdout" 2>"$at_stderr"
19519 at_func_diff_devnull "$at_stderr" || at_failed=:
19520 at_func_diff_devnull "$at_stdout" || at_failed=:
19521 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19523 $at_failed && at_func_log_failure
19527 $as_echo "$at_srcdir/incr02.at:35:
19530 TEST_TAR_FORMAT=posix
19531 export TEST_TAR_FORMAT
19532 TAR_OPTIONS=\"-H posix\"
19536 # Create directory structure
19540 genfile --length 10 --file dir/subdir1/file
19542 # Save mtime for later comparison
19543 genfile --stat=mtime dir/subdir1 > ts
19545 # Create an archive. Using incremental mode makes sure the
19546 # archive will have a directory-first member ordering,
19551 # dir/subdir1/foofile
19553 # When restoring from this directory structure, \`dir/subdir2/' used to
19554 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19555 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19556 # latter clobbered the directory timestamp.
19558 tar -cf archive -g db dir
19560 # Move away the directory
19563 # Wait enough time for timestamps to differ in case of failure.
19566 # Restore the directory
19567 tar -xf archive dir
19569 # Check the timestamp
19570 genfile --stat=mtime dir/subdir1 | diff ts -
19572 echo incr02.at:35 >"$at_check_line_file"
19574 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19579 TEST_TAR_FORMAT=posix
19580 export TEST_TAR_FORMAT
19581 TAR_OPTIONS="-H posix"
19585 # Create directory structure
19589 genfile --length 10 --file dir/subdir1/file
19591 # Save mtime for later comparison
19592 genfile --stat=mtime dir/subdir1 > ts
19594 # Create an archive. Using incremental mode makes sure the
19595 # archive will have a directory-first member ordering,
19600 # dir/subdir1/foofile
19602 # When restoring from this directory structure, `dir/subdir2/' used to
19603 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19604 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19605 # latter clobbered the directory timestamp.
19607 tar -cf archive -g db dir
19609 # Move away the directory
19612 # Wait enough time for timestamps to differ in case of failure.
19615 # Restore the directory
19616 tar -xf archive dir
19618 # Check the timestamp
19619 genfile --stat=mtime dir/subdir1 | diff ts -
19620 ) ) >"$at_stdout" 2>"$at_stder1"
19621 at_func_filter_trace $?
19626 TEST_TAR_FORMAT=posix
19627 export TEST_TAR_FORMAT
19628 TAR_OPTIONS="-H posix"
19632 # Create directory structure
19636 genfile --length 10 --file dir/subdir1/file
19638 # Save mtime for later comparison
19639 genfile --stat=mtime dir/subdir1 > ts
19641 # Create an archive. Using incremental mode makes sure the
19642 # archive will have a directory-first member ordering,
19647 # dir/subdir1/foofile
19649 # When restoring from this directory structure, `dir/subdir2/' used to
19650 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19651 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19652 # latter clobbered the directory timestamp.
19654 tar -cf archive -g db dir
19656 # Move away the directory
19659 # Wait enough time for timestamps to differ in case of failure.
19662 # Restore the directory
19663 tar -xf archive dir
19665 # Check the timestamp
19666 genfile --stat=mtime dir/subdir1 | diff ts -
19667 ) ) >"$at_stdout" 2>"$at_stderr"
19671 at_func_diff_devnull "$at_stderr" || at_failed=:
19672 at_func_diff_devnull "$at_stdout" || at_failed=:
19673 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19675 $at_failed && at_func_log_failure
19682 $at_times_p && times >"$at_times_file"
19683 ) 5>&1 2>&1 | eval $at_tee_pipe
19684 at_status=`cat "$at_status_file"`
19687 # 54. listed01.at:26: --listed for individual files
19688 at_setup_line='listed01.at:26'
19689 at_desc="--listed for individual files"
19690 $at_quiet $as_echo_n " 54: $at_desc "
19692 test -f $XFAILFILE && at_xfail=yes
19693 echo "# -*- compilation -*-" >> "$at_group_log"
19695 $as_echo "54. listed01.at:26: testing ..."
19703 $as_echo "$at_srcdir/listed01.at:29:
19706 TEST_TAR_FORMAT=gnu
19707 export TEST_TAR_FORMAT
19708 TAR_OPTIONS=\"-H gnu\"
19713 genfile --length 10240 --pattern zeros --file directory/file1
19714 # Let the things settle
19718 --file=archive.1 \\
19719 --listed-incremental=listing \\
19722 tar tf archive.1 || exit 1
19726 genfile --length 10240 --pattern zeros --file directory/file2
19729 cp listing listing.old
19731 --file=archive.2 \\
19732 --listed-incremental=listing \\
19733 directory/file* || exit 1
19735 tar tf archive.2 || exit 1
19737 echo listed01.at:29 >"$at_check_line_file"
19739 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19744 TEST_TAR_FORMAT=gnu
19745 export TEST_TAR_FORMAT
19746 TAR_OPTIONS="-H gnu"
19751 genfile --length 10240 --pattern zeros --file directory/file1
19752 # Let the things settle
19757 --listed-incremental=listing \
19760 tar tf archive.1 || exit 1
19764 genfile --length 10240 --pattern zeros --file directory/file2
19767 cp listing listing.old
19770 --listed-incremental=listing \
19771 directory/file* || exit 1
19773 tar tf archive.2 || exit 1
19774 ) ) >"$at_stdout" 2>"$at_stder1"
19775 at_func_filter_trace $?
19780 TEST_TAR_FORMAT=gnu
19781 export TEST_TAR_FORMAT
19782 TAR_OPTIONS="-H gnu"
19787 genfile --length 10240 --pattern zeros --file directory/file1
19788 # Let the things settle
19793 --listed-incremental=listing \
19796 tar tf archive.1 || exit 1
19800 genfile --length 10240 --pattern zeros --file directory/file2
19803 cp listing listing.old
19806 --listed-incremental=listing \
19807 directory/file* || exit 1
19809 tar tf archive.2 || exit 1
19810 ) ) >"$at_stdout" 2>"$at_stderr"
19814 at_func_diff_devnull "$at_stderr" || at_failed=:
19815 echo >>"$at_stdout"; $as_echo "directory/file1
19819 $at_diff - "$at_stdout" || at_failed=:
19820 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19822 $at_failed && at_func_log_failure
19826 $as_echo "$at_srcdir/listed01.at:29:
19829 TEST_TAR_FORMAT=oldgnu
19830 export TEST_TAR_FORMAT
19831 TAR_OPTIONS=\"-H oldgnu\"
19836 genfile --length 10240 --pattern zeros --file directory/file1
19837 # Let the things settle
19841 --file=archive.1 \\
19842 --listed-incremental=listing \\
19845 tar tf archive.1 || exit 1
19849 genfile --length 10240 --pattern zeros --file directory/file2
19852 cp listing listing.old
19854 --file=archive.2 \\
19855 --listed-incremental=listing \\
19856 directory/file* || exit 1
19858 tar tf archive.2 || exit 1
19860 echo listed01.at:29 >"$at_check_line_file"
19862 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19867 TEST_TAR_FORMAT=oldgnu
19868 export TEST_TAR_FORMAT
19869 TAR_OPTIONS="-H oldgnu"
19874 genfile --length 10240 --pattern zeros --file directory/file1
19875 # Let the things settle
19880 --listed-incremental=listing \
19883 tar tf archive.1 || exit 1
19887 genfile --length 10240 --pattern zeros --file directory/file2
19890 cp listing listing.old
19893 --listed-incremental=listing \
19894 directory/file* || exit 1
19896 tar tf archive.2 || exit 1
19897 ) ) >"$at_stdout" 2>"$at_stder1"
19898 at_func_filter_trace $?
19903 TEST_TAR_FORMAT=oldgnu
19904 export TEST_TAR_FORMAT
19905 TAR_OPTIONS="-H oldgnu"
19910 genfile --length 10240 --pattern zeros --file directory/file1
19911 # Let the things settle
19916 --listed-incremental=listing \
19919 tar tf archive.1 || exit 1
19923 genfile --length 10240 --pattern zeros --file directory/file2
19926 cp listing listing.old
19929 --listed-incremental=listing \
19930 directory/file* || exit 1
19932 tar tf archive.2 || exit 1
19933 ) ) >"$at_stdout" 2>"$at_stderr"
19937 at_func_diff_devnull "$at_stderr" || at_failed=:
19938 echo >>"$at_stdout"; $as_echo "directory/file1
19942 $at_diff - "$at_stdout" || at_failed=:
19943 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19945 $at_failed && at_func_log_failure
19952 $at_times_p && times >"$at_times_file"
19953 ) 5>&1 2>&1 | eval $at_tee_pipe
19954 at_status=`cat "$at_status_file"`
19957 # 55. listed02.at:28: working --listed
19958 at_setup_line='listed02.at:28'
19959 at_desc="working --listed"
19960 $at_quiet $as_echo_n " 55: $at_desc "
19962 test -f $XFAILFILE && at_xfail=yes
19963 echo "# -*- compilation -*-" >> "$at_group_log"
19965 $as_echo "55. listed02.at:28: testing ..."
19973 $as_echo "$at_srcdir/listed02.at:31:
19976 TEST_TAR_FORMAT=gnu
19977 export TEST_TAR_FORMAT
19978 TAR_OPTIONS=\"-H gnu\"
19983 test -z "`sort < /dev/null 2>&1`" || exit 77
19985 echo Create directories
19994 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19996 echo File \$file > \$file
20001 echo Creating main archive
20002 echo >&2 \"Creating main archive\"
20003 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20005 # The above prints two lines to stderr announcing the new directories c0 and c1.
20006 # Ensure that they appear in this script's stderr in sorted order.
20007 sort err 1>&2; rm -f err
20010 echo Modifying filesystem
20017 echo Directory contents
20018 find tart -print | sort 2>/dev/null
20021 echo Creating incremental archive
20022 echo >&2 \"Creating incremental archive\"
20023 cp -p tart.incr1 tart.incr2
20024 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20029 echo Extracting main archive
20030 echo >&2 \"Extracting main archive\"
20031 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20032 echo Extracting incremental archive
20033 # This command should produce three messages about deletion
20034 # of the existing files, that may appear in any order. Piping
20035 # to sort makes sure we don't depend on any particular ordering.
20036 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20039 find tart -print | sort 2>/dev/null
20041 echo listed02.at:31 >"$at_check_line_file"
20043 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20048 TEST_TAR_FORMAT=gnu
20049 export TEST_TAR_FORMAT
20050 TAR_OPTIONS="-H gnu"
20055 test -z "`sort < /dev/null 2>&1`" || exit 77
20057 echo Create directories
20066 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20068 echo File $file > $file
20073 echo Creating main archive
20074 echo >&2 "Creating main archive"
20075 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20077 # The above prints two lines to stderr announcing the new directories c0 and c1.
20078 # Ensure that they appear in this script's stderr in sorted order.
20079 sort err 1>&2; rm -f err
20082 echo Modifying filesystem
20089 echo Directory contents
20090 find tart -print | sort 2>/dev/null
20093 echo Creating incremental archive
20094 echo >&2 "Creating incremental archive"
20095 cp -p tart.incr1 tart.incr2
20096 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20101 echo Extracting main archive
20102 echo >&2 "Extracting main archive"
20103 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20104 echo Extracting incremental archive
20105 # This command should produce three messages about deletion
20106 # of the existing files, that may appear in any order. Piping
20107 # to sort makes sure we don't depend on any particular ordering.
20108 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20111 find tart -print | sort 2>/dev/null
20112 ) ) >"$at_stdout" 2>"$at_stder1"
20113 at_func_filter_trace $?
20118 TEST_TAR_FORMAT=gnu
20119 export TEST_TAR_FORMAT
20120 TAR_OPTIONS="-H gnu"
20125 test -z "`sort < /dev/null 2>&1`" || exit 77
20127 echo Create directories
20136 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20138 echo File $file > $file
20143 echo Creating main archive
20144 echo >&2 "Creating main archive"
20145 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20147 # The above prints two lines to stderr announcing the new directories c0 and c1.
20148 # Ensure that they appear in this script's stderr in sorted order.
20149 sort err 1>&2; rm -f err
20152 echo Modifying filesystem
20159 echo Directory contents
20160 find tart -print | sort 2>/dev/null
20163 echo Creating incremental archive
20164 echo >&2 "Creating incremental archive"
20165 cp -p tart.incr1 tart.incr2
20166 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20171 echo Extracting main archive
20172 echo >&2 "Extracting main archive"
20173 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20174 echo Extracting incremental archive
20175 # This command should produce three messages about deletion
20176 # of the existing files, that may appear in any order. Piping
20177 # to sort makes sure we don't depend on any particular ordering.
20178 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20181 find tart -print | sort 2>/dev/null
20182 ) ) >"$at_stdout" 2>"$at_stderr"
20186 echo >>"$at_stderr"; $as_echo "Creating main archive
20187 tar: tart/c0: Directory is new
20188 tar: tart/c1: Directory is new
20189 tar: tart: Directory is new
20190 Creating incremental archive
20191 tar: tart/c2: Directory has been renamed from \`tart/c1'
20192 Extracting main archive
20194 $at_diff - "$at_stderr" || at_failed=:
20195 echo >>"$at_stdout"; $as_echo "Create directories
20196 Creating main archive
20206 Modifying filesystem
20217 Creating incremental archive
20223 Extracting main archive
20233 Extracting incremental archive
20234 tar: Deleting \`tart/a1'
20235 tar: Deleting \`tart/b1'
20252 $at_diff - "$at_stdout" || at_failed=:
20253 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20255 $at_failed && at_func_log_failure
20259 $as_echo "$at_srcdir/listed02.at:31:
20262 TEST_TAR_FORMAT=oldgnu
20263 export TEST_TAR_FORMAT
20264 TAR_OPTIONS=\"-H oldgnu\"
20269 test -z "`sort < /dev/null 2>&1`" || exit 77
20271 echo Create directories
20280 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20282 echo File \$file > \$file
20287 echo Creating main archive
20288 echo >&2 \"Creating main archive\"
20289 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20291 # The above prints two lines to stderr announcing the new directories c0 and c1.
20292 # Ensure that they appear in this script's stderr in sorted order.
20293 sort err 1>&2; rm -f err
20296 echo Modifying filesystem
20303 echo Directory contents
20304 find tart -print | sort 2>/dev/null
20307 echo Creating incremental archive
20308 echo >&2 \"Creating incremental archive\"
20309 cp -p tart.incr1 tart.incr2
20310 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20315 echo Extracting main archive
20316 echo >&2 \"Extracting main archive\"
20317 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20318 echo Extracting incremental archive
20319 # This command should produce three messages about deletion
20320 # of the existing files, that may appear in any order. Piping
20321 # to sort makes sure we don't depend on any particular ordering.
20322 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20325 find tart -print | sort 2>/dev/null
20327 echo listed02.at:31 >"$at_check_line_file"
20329 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20334 TEST_TAR_FORMAT=oldgnu
20335 export TEST_TAR_FORMAT
20336 TAR_OPTIONS="-H oldgnu"
20341 test -z "`sort < /dev/null 2>&1`" || exit 77
20343 echo Create directories
20352 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20354 echo File $file > $file
20359 echo Creating main archive
20360 echo >&2 "Creating main archive"
20361 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20363 # The above prints two lines to stderr announcing the new directories c0 and c1.
20364 # Ensure that they appear in this script's stderr in sorted order.
20365 sort err 1>&2; rm -f err
20368 echo Modifying filesystem
20375 echo Directory contents
20376 find tart -print | sort 2>/dev/null
20379 echo Creating incremental archive
20380 echo >&2 "Creating incremental archive"
20381 cp -p tart.incr1 tart.incr2
20382 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20387 echo Extracting main archive
20388 echo >&2 "Extracting main archive"
20389 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20390 echo Extracting incremental archive
20391 # This command should produce three messages about deletion
20392 # of the existing files, that may appear in any order. Piping
20393 # to sort makes sure we don't depend on any particular ordering.
20394 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20397 find tart -print | sort 2>/dev/null
20398 ) ) >"$at_stdout" 2>"$at_stder1"
20399 at_func_filter_trace $?
20404 TEST_TAR_FORMAT=oldgnu
20405 export TEST_TAR_FORMAT
20406 TAR_OPTIONS="-H oldgnu"
20411 test -z "`sort < /dev/null 2>&1`" || exit 77
20413 echo Create directories
20422 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20424 echo File $file > $file
20429 echo Creating main archive
20430 echo >&2 "Creating main archive"
20431 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20433 # The above prints two lines to stderr announcing the new directories c0 and c1.
20434 # Ensure that they appear in this script's stderr in sorted order.
20435 sort err 1>&2; rm -f err
20438 echo Modifying filesystem
20445 echo Directory contents
20446 find tart -print | sort 2>/dev/null
20449 echo Creating incremental archive
20450 echo >&2 "Creating incremental archive"
20451 cp -p tart.incr1 tart.incr2
20452 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20457 echo Extracting main archive
20458 echo >&2 "Extracting main archive"
20459 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20460 echo Extracting incremental archive
20461 # This command should produce three messages about deletion
20462 # of the existing files, that may appear in any order. Piping
20463 # to sort makes sure we don't depend on any particular ordering.
20464 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20467 find tart -print | sort 2>/dev/null
20468 ) ) >"$at_stdout" 2>"$at_stderr"
20472 echo >>"$at_stderr"; $as_echo "Creating main archive
20473 tar: tart/c0: Directory is new
20474 tar: tart/c1: Directory is new
20475 tar: tart: Directory is new
20476 Creating incremental archive
20477 tar: tart/c2: Directory has been renamed from \`tart/c1'
20478 Extracting main archive
20480 $at_diff - "$at_stderr" || at_failed=:
20481 echo >>"$at_stdout"; $as_echo "Create directories
20482 Creating main archive
20492 Modifying filesystem
20503 Creating incremental archive
20509 Extracting main archive
20519 Extracting incremental archive
20520 tar: Deleting \`tart/a1'
20521 tar: Deleting \`tart/b1'
20538 $at_diff - "$at_stdout" || at_failed=:
20539 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20541 $at_failed && at_func_log_failure
20548 $at_times_p && times >"$at_times_file"
20549 ) 5>&1 2>&1 | eval $at_tee_pipe
20550 at_status=`cat "$at_status_file"`
20553 # 56. listed03.at:22: incremental dump when the parent directory is unreadable
20554 at_setup_line='listed03.at:22'
20555 at_desc="incremental dump when the parent directory is unreadable"
20556 $at_quiet $as_echo_n " 56: $at_desc"
20558 test -f $XFAILFILE && at_xfail=yes
20559 echo "# -*- compilation -*-" >> "$at_group_log"
20561 $as_echo "56. listed03.at:22: testing ..."
20569 $as_echo "$at_srcdir/listed03.at:25:
20572 TEST_TAR_FORMAT=gnu
20573 export TEST_TAR_FORMAT
20574 TAR_OPTIONS=\"-H gnu\"
20581 cat $$ > /dev/null 2>&1
20584 test $result -eq 0 && exit 77
20590 genfile --file dir/sub/a/file
20594 tar -c -f archive.tar --listed-incremental=db.1 -v a
20599 echo listed03.at:25 >"$at_check_line_file"
20601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20606 TEST_TAR_FORMAT=gnu
20607 export TEST_TAR_FORMAT
20608 TAR_OPTIONS="-H gnu"
20615 cat $$ > /dev/null 2>&1
20618 test $result -eq 0 && exit 77
20624 genfile --file dir/sub/a/file
20628 tar -c -f archive.tar --listed-incremental=db.1 -v a
20632 ) ) >"$at_stdout" 2>"$at_stder1"
20633 at_func_filter_trace $?
20638 TEST_TAR_FORMAT=gnu
20639 export TEST_TAR_FORMAT
20640 TAR_OPTIONS="-H gnu"
20647 cat $$ > /dev/null 2>&1
20650 test $result -eq 0 && exit 77
20656 genfile --file dir/sub/a/file
20660 tar -c -f archive.tar --listed-incremental=db.1 -v a
20664 ) ) >"$at_stdout" 2>"$at_stderr"
20668 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20670 $at_diff - "$at_stderr" || at_failed=:
20671 echo >>"$at_stdout"; $as_echo "a/
20674 $at_diff - "$at_stdout" || at_failed=:
20675 at_func_check_status 0 $at_status "$at_srcdir/listed03.at:25"
20677 $at_failed && at_func_log_failure
20684 $at_times_p && times >"$at_times_file"
20685 ) 5>&1 2>&1 | eval $at_tee_pipe
20686 at_status=`cat "$at_status_file"`
20689 # 57. incr03.at:28: renamed files in incrementals
20690 at_setup_line='incr03.at:28'
20691 at_desc="renamed files in incrementals"
20692 $at_quiet $as_echo_n " 57: $at_desc "
20694 test -f $XFAILFILE && at_xfail=yes
20695 echo "# -*- compilation -*-" >> "$at_group_log"
20697 $as_echo "57. incr03.at:28: testing ..."
20705 $as_echo "$at_srcdir/incr03.at:31:
20708 TEST_TAR_FORMAT=gnu
20709 export TEST_TAR_FORMAT
20710 TAR_OPTIONS=\"-H gnu\"
20715 test -z "`sort < /dev/null 2>&1`" || exit 77
20718 genfile --file=directory/x
20719 genfile --file=directory/y
20723 tar -cf archive.1 -g db directory
20725 mv directory/x directory/z
20727 tar -cf archive.2 -g db directory
20731 echo Listing of archive.1
20732 tar -tf archive.1 | sort
20733 echo Listing of archive.2
20734 tar -tf archive.2 | sort
20736 echo Directory after first restore
20737 tar -xf archive.1 -g db --warning=no-timestamp
20738 find directory | sort
20740 echo Directory after second restore
20741 tar -xf archive.2 -g db --warning=no-timestamp
20742 find directory | sort
20744 echo incr03.at:31 >"$at_check_line_file"
20746 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20751 TEST_TAR_FORMAT=gnu
20752 export TEST_TAR_FORMAT
20753 TAR_OPTIONS="-H gnu"
20758 test -z "`sort < /dev/null 2>&1`" || exit 77
20761 genfile --file=directory/x
20762 genfile --file=directory/y
20766 tar -cf archive.1 -g db directory
20768 mv directory/x directory/z
20770 tar -cf archive.2 -g db directory
20774 echo Listing of archive.1
20775 tar -tf archive.1 | sort
20776 echo Listing of archive.2
20777 tar -tf archive.2 | sort
20779 echo Directory after first restore
20780 tar -xf archive.1 -g db --warning=no-timestamp
20781 find directory | sort
20783 echo Directory after second restore
20784 tar -xf archive.2 -g db --warning=no-timestamp
20785 find directory | sort
20786 ) ) >"$at_stdout" 2>"$at_stder1"
20787 at_func_filter_trace $?
20792 TEST_TAR_FORMAT=gnu
20793 export TEST_TAR_FORMAT
20794 TAR_OPTIONS="-H gnu"
20799 test -z "`sort < /dev/null 2>&1`" || exit 77
20802 genfile --file=directory/x
20803 genfile --file=directory/y
20807 tar -cf archive.1 -g db directory
20809 mv directory/x directory/z
20811 tar -cf archive.2 -g db directory
20815 echo Listing of archive.1
20816 tar -tf archive.1 | sort
20817 echo Listing of archive.2
20818 tar -tf archive.2 | sort
20820 echo Directory after first restore
20821 tar -xf archive.1 -g db --warning=no-timestamp
20822 find directory | sort
20824 echo Directory after second restore
20825 tar -xf archive.2 -g db --warning=no-timestamp
20826 find directory | sort
20827 ) ) >"$at_stdout" 2>"$at_stderr"
20831 at_func_diff_devnull "$at_stderr" || at_failed=:
20832 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20836 Listing of archive.2
20839 Directory after first restore
20843 Directory after second restore
20848 $at_diff - "$at_stdout" || at_failed=:
20849 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20851 $at_failed && at_func_log_failure
20855 $as_echo "$at_srcdir/incr03.at:31:
20858 TEST_TAR_FORMAT=oldgnu
20859 export TEST_TAR_FORMAT
20860 TAR_OPTIONS=\"-H oldgnu\"
20865 test -z "`sort < /dev/null 2>&1`" || exit 77
20868 genfile --file=directory/x
20869 genfile --file=directory/y
20873 tar -cf archive.1 -g db directory
20875 mv directory/x directory/z
20877 tar -cf archive.2 -g db directory
20881 echo Listing of archive.1
20882 tar -tf archive.1 | sort
20883 echo Listing of archive.2
20884 tar -tf archive.2 | sort
20886 echo Directory after first restore
20887 tar -xf archive.1 -g db --warning=no-timestamp
20888 find directory | sort
20890 echo Directory after second restore
20891 tar -xf archive.2 -g db --warning=no-timestamp
20892 find directory | sort
20894 echo incr03.at:31 >"$at_check_line_file"
20896 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20901 TEST_TAR_FORMAT=oldgnu
20902 export TEST_TAR_FORMAT
20903 TAR_OPTIONS="-H oldgnu"
20908 test -z "`sort < /dev/null 2>&1`" || exit 77
20911 genfile --file=directory/x
20912 genfile --file=directory/y
20916 tar -cf archive.1 -g db directory
20918 mv directory/x directory/z
20920 tar -cf archive.2 -g db directory
20924 echo Listing of archive.1
20925 tar -tf archive.1 | sort
20926 echo Listing of archive.2
20927 tar -tf archive.2 | sort
20929 echo Directory after first restore
20930 tar -xf archive.1 -g db --warning=no-timestamp
20931 find directory | sort
20933 echo Directory after second restore
20934 tar -xf archive.2 -g db --warning=no-timestamp
20935 find directory | sort
20936 ) ) >"$at_stdout" 2>"$at_stder1"
20937 at_func_filter_trace $?
20942 TEST_TAR_FORMAT=oldgnu
20943 export TEST_TAR_FORMAT
20944 TAR_OPTIONS="-H oldgnu"
20949 test -z "`sort < /dev/null 2>&1`" || exit 77
20952 genfile --file=directory/x
20953 genfile --file=directory/y
20957 tar -cf archive.1 -g db directory
20959 mv directory/x directory/z
20961 tar -cf archive.2 -g db directory
20965 echo Listing of archive.1
20966 tar -tf archive.1 | sort
20967 echo Listing of archive.2
20968 tar -tf archive.2 | sort
20970 echo Directory after first restore
20971 tar -xf archive.1 -g db --warning=no-timestamp
20972 find directory | sort
20974 echo Directory after second restore
20975 tar -xf archive.2 -g db --warning=no-timestamp
20976 find directory | sort
20977 ) ) >"$at_stdout" 2>"$at_stderr"
20981 at_func_diff_devnull "$at_stderr" || at_failed=:
20982 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20986 Listing of archive.2
20989 Directory after first restore
20993 Directory after second restore
20998 $at_diff - "$at_stdout" || at_failed=:
20999 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21001 $at_failed && at_func_log_failure
21005 $as_echo "$at_srcdir/incr03.at:31:
21008 TEST_TAR_FORMAT=posix
21009 export TEST_TAR_FORMAT
21010 TAR_OPTIONS=\"-H posix\"
21015 test -z "`sort < /dev/null 2>&1`" || exit 77
21018 genfile --file=directory/x
21019 genfile --file=directory/y
21023 tar -cf archive.1 -g db directory
21025 mv directory/x directory/z
21027 tar -cf archive.2 -g db directory
21031 echo Listing of archive.1
21032 tar -tf archive.1 | sort
21033 echo Listing of archive.2
21034 tar -tf archive.2 | sort
21036 echo Directory after first restore
21037 tar -xf archive.1 -g db --warning=no-timestamp
21038 find directory | sort
21040 echo Directory after second restore
21041 tar -xf archive.2 -g db --warning=no-timestamp
21042 find directory | sort
21044 echo incr03.at:31 >"$at_check_line_file"
21046 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21051 TEST_TAR_FORMAT=posix
21052 export TEST_TAR_FORMAT
21053 TAR_OPTIONS="-H posix"
21058 test -z "`sort < /dev/null 2>&1`" || exit 77
21061 genfile --file=directory/x
21062 genfile --file=directory/y
21066 tar -cf archive.1 -g db directory
21068 mv directory/x directory/z
21070 tar -cf archive.2 -g db directory
21074 echo Listing of archive.1
21075 tar -tf archive.1 | sort
21076 echo Listing of archive.2
21077 tar -tf archive.2 | sort
21079 echo Directory after first restore
21080 tar -xf archive.1 -g db --warning=no-timestamp
21081 find directory | sort
21083 echo Directory after second restore
21084 tar -xf archive.2 -g db --warning=no-timestamp
21085 find directory | sort
21086 ) ) >"$at_stdout" 2>"$at_stder1"
21087 at_func_filter_trace $?
21092 TEST_TAR_FORMAT=posix
21093 export TEST_TAR_FORMAT
21094 TAR_OPTIONS="-H posix"
21099 test -z "`sort < /dev/null 2>&1`" || exit 77
21102 genfile --file=directory/x
21103 genfile --file=directory/y
21107 tar -cf archive.1 -g db directory
21109 mv directory/x directory/z
21111 tar -cf archive.2 -g db directory
21115 echo Listing of archive.1
21116 tar -tf archive.1 | sort
21117 echo Listing of archive.2
21118 tar -tf archive.2 | sort
21120 echo Directory after first restore
21121 tar -xf archive.1 -g db --warning=no-timestamp
21122 find directory | sort
21124 echo Directory after second restore
21125 tar -xf archive.2 -g db --warning=no-timestamp
21126 find directory | sort
21127 ) ) >"$at_stdout" 2>"$at_stderr"
21131 at_func_diff_devnull "$at_stderr" || at_failed=:
21132 echo >>"$at_stdout"; $as_echo "Listing of archive.1
21136 Listing of archive.2
21139 Directory after first restore
21143 Directory after second restore
21148 $at_diff - "$at_stdout" || at_failed=:
21149 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21151 $at_failed && at_func_log_failure
21158 $at_times_p && times >"$at_times_file"
21159 ) 5>&1 2>&1 | eval $at_tee_pipe
21160 at_status=`cat "$at_status_file"`
21163 # 58. incr04.at:29: proper icontents initialization
21164 at_setup_line='incr04.at:29'
21165 at_desc="proper icontents initialization"
21166 $at_quiet $as_echo_n " 58: $at_desc "
21168 test -f $XFAILFILE && at_xfail=yes
21169 echo "# -*- compilation -*-" >> "$at_group_log"
21171 $as_echo "58. incr04.at:29: testing ..."
21181 $as_echo "$at_srcdir/incr04.at:34:
21184 TEST_TAR_FORMAT=gnu
21185 export TEST_TAR_FORMAT
21186 TAR_OPTIONS=\"-H gnu\"
21191 install-sh -d a/b >/dev/null || exit 77
21193 for (i=1;i<=142;i++)
21194 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21195 }' < /dev/null | genfile --files-from -
21199 echo \"Initial dump\"
21200 tar cvf a0.tar -g a.sna a
21202 echo \"Incremental dump\"
21203 tar cvf a1.tar -g a.sna a
21205 echo incr04.at:34 >"$at_check_line_file"
21207 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21212 TEST_TAR_FORMAT=gnu
21213 export TEST_TAR_FORMAT
21214 TAR_OPTIONS="-H gnu"
21219 install-sh -d a/b >/dev/null || exit 77
21221 for (i=1;i<=142;i++)
21222 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21223 }' < /dev/null | genfile --files-from -
21227 echo "Initial dump"
21228 tar cvf a0.tar -g a.sna a
21230 echo "Incremental dump"
21231 tar cvf a1.tar -g a.sna a
21232 ) ) >"$at_stdout" 2>"$at_stder1"
21233 at_func_filter_trace $?
21238 TEST_TAR_FORMAT=gnu
21239 export TEST_TAR_FORMAT
21240 TAR_OPTIONS="-H gnu"
21245 install-sh -d a/b >/dev/null || exit 77
21247 for (i=1;i<=142;i++)
21248 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21249 }' < /dev/null | genfile --files-from -
21253 echo "Initial dump"
21254 tar cvf a0.tar -g a.sna a
21256 echo "Incremental dump"
21257 tar cvf a1.tar -g a.sna a
21258 ) ) >"$at_stdout" 2>"$at_stderr"
21262 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21263 tar: a/b: Directory is new
21264 tar: a/c: Directory has been renamed from \`a/b'
21266 $at_diff - "$at_stderr" || at_failed=:
21267 echo >>"$at_stdout"; $as_echo "Initial dump
21270 a/b/one_31_chars_long_file_name_001
21271 a/b/one_31_chars_long_file_name_002
21272 a/b/one_31_chars_long_file_name_003
21273 a/b/one_31_chars_long_file_name_004
21274 a/b/one_31_chars_long_file_name_005
21275 a/b/one_31_chars_long_file_name_006
21276 a/b/one_31_chars_long_file_name_007
21277 a/b/one_31_chars_long_file_name_008
21278 a/b/one_31_chars_long_file_name_009
21279 a/b/one_31_chars_long_file_name_010
21280 a/b/one_31_chars_long_file_name_011
21281 a/b/one_31_chars_long_file_name_012
21282 a/b/one_31_chars_long_file_name_013
21283 a/b/one_31_chars_long_file_name_014
21284 a/b/one_31_chars_long_file_name_015
21285 a/b/one_31_chars_long_file_name_016
21286 a/b/one_31_chars_long_file_name_017
21287 a/b/one_31_chars_long_file_name_018
21288 a/b/one_31_chars_long_file_name_019
21289 a/b/one_31_chars_long_file_name_020
21290 a/b/one_31_chars_long_file_name_021
21291 a/b/one_31_chars_long_file_name_022
21292 a/b/one_31_chars_long_file_name_023
21293 a/b/one_31_chars_long_file_name_024
21294 a/b/one_31_chars_long_file_name_025
21295 a/b/one_31_chars_long_file_name_026
21296 a/b/one_31_chars_long_file_name_027
21297 a/b/one_31_chars_long_file_name_028
21298 a/b/one_31_chars_long_file_name_029
21299 a/b/one_31_chars_long_file_name_030
21300 a/b/one_31_chars_long_file_name_031
21301 a/b/one_31_chars_long_file_name_032
21302 a/b/one_31_chars_long_file_name_033
21303 a/b/one_31_chars_long_file_name_034
21304 a/b/one_31_chars_long_file_name_035
21305 a/b/one_31_chars_long_file_name_036
21306 a/b/one_31_chars_long_file_name_037
21307 a/b/one_31_chars_long_file_name_038
21308 a/b/one_31_chars_long_file_name_039
21309 a/b/one_31_chars_long_file_name_040
21310 a/b/one_31_chars_long_file_name_041
21311 a/b/one_31_chars_long_file_name_042
21312 a/b/one_31_chars_long_file_name_043
21313 a/b/one_31_chars_long_file_name_044
21314 a/b/one_31_chars_long_file_name_045
21315 a/b/one_31_chars_long_file_name_046
21316 a/b/one_31_chars_long_file_name_047
21317 a/b/one_31_chars_long_file_name_048
21318 a/b/one_31_chars_long_file_name_049
21319 a/b/one_31_chars_long_file_name_050
21320 a/b/one_31_chars_long_file_name_051
21321 a/b/one_31_chars_long_file_name_052
21322 a/b/one_31_chars_long_file_name_053
21323 a/b/one_31_chars_long_file_name_054
21324 a/b/one_31_chars_long_file_name_055
21325 a/b/one_31_chars_long_file_name_056
21326 a/b/one_31_chars_long_file_name_057
21327 a/b/one_31_chars_long_file_name_058
21328 a/b/one_31_chars_long_file_name_059
21329 a/b/one_31_chars_long_file_name_060
21330 a/b/one_31_chars_long_file_name_061
21331 a/b/one_31_chars_long_file_name_062
21332 a/b/one_31_chars_long_file_name_063
21333 a/b/one_31_chars_long_file_name_064
21334 a/b/one_31_chars_long_file_name_065
21335 a/b/one_31_chars_long_file_name_066
21336 a/b/one_31_chars_long_file_name_067
21337 a/b/one_31_chars_long_file_name_068
21338 a/b/one_31_chars_long_file_name_069
21339 a/b/one_31_chars_long_file_name_070
21340 a/b/one_31_chars_long_file_name_071
21341 a/b/one_31_chars_long_file_name_072
21342 a/b/one_31_chars_long_file_name_073
21343 a/b/one_31_chars_long_file_name_074
21344 a/b/one_31_chars_long_file_name_075
21345 a/b/one_31_chars_long_file_name_076
21346 a/b/one_31_chars_long_file_name_077
21347 a/b/one_31_chars_long_file_name_078
21348 a/b/one_31_chars_long_file_name_079
21349 a/b/one_31_chars_long_file_name_080
21350 a/b/one_31_chars_long_file_name_081
21351 a/b/one_31_chars_long_file_name_082
21352 a/b/one_31_chars_long_file_name_083
21353 a/b/one_31_chars_long_file_name_084
21354 a/b/one_31_chars_long_file_name_085
21355 a/b/one_31_chars_long_file_name_086
21356 a/b/one_31_chars_long_file_name_087
21357 a/b/one_31_chars_long_file_name_088
21358 a/b/one_31_chars_long_file_name_089
21359 a/b/one_31_chars_long_file_name_090
21360 a/b/one_31_chars_long_file_name_091
21361 a/b/one_31_chars_long_file_name_092
21362 a/b/one_31_chars_long_file_name_093
21363 a/b/one_31_chars_long_file_name_094
21364 a/b/one_31_chars_long_file_name_095
21365 a/b/one_31_chars_long_file_name_096
21366 a/b/one_31_chars_long_file_name_097
21367 a/b/one_31_chars_long_file_name_098
21368 a/b/one_31_chars_long_file_name_099
21369 a/b/one_31_chars_long_file_name_100
21370 a/b/one_31_chars_long_file_name_101
21371 a/b/one_31_chars_long_file_name_102
21372 a/b/one_31_chars_long_file_name_103
21373 a/b/one_31_chars_long_file_name_104
21374 a/b/one_31_chars_long_file_name_105
21375 a/b/one_31_chars_long_file_name_106
21376 a/b/one_31_chars_long_file_name_107
21377 a/b/one_31_chars_long_file_name_108
21378 a/b/one_31_chars_long_file_name_109
21379 a/b/one_31_chars_long_file_name_110
21380 a/b/one_31_chars_long_file_name_111
21381 a/b/one_31_chars_long_file_name_112
21382 a/b/one_31_chars_long_file_name_113
21383 a/b/one_31_chars_long_file_name_114
21384 a/b/one_31_chars_long_file_name_115
21385 a/b/one_31_chars_long_file_name_116
21386 a/b/one_31_chars_long_file_name_117
21387 a/b/one_31_chars_long_file_name_118
21388 a/b/one_31_chars_long_file_name_119
21389 a/b/one_31_chars_long_file_name_120
21390 a/b/one_31_chars_long_file_name_121
21391 a/b/one_31_chars_long_file_name_122
21392 a/b/one_31_chars_long_file_name_123
21393 a/b/one_31_chars_long_file_name_124
21394 a/b/one_31_chars_long_file_name_125
21395 a/b/one_31_chars_long_file_name_126
21396 a/b/one_31_chars_long_file_name_127
21397 a/b/one_31_chars_long_file_name_128
21398 a/b/one_31_chars_long_file_name_129
21399 a/b/one_31_chars_long_file_name_130
21400 a/b/one_31_chars_long_file_name_131
21401 a/b/one_31_chars_long_file_name_132
21402 a/b/one_31_chars_long_file_name_133
21403 a/b/one_31_chars_long_file_name_134
21404 a/b/one_31_chars_long_file_name_135
21405 a/b/one_31_chars_long_file_name_136
21406 a/b/one_31_chars_long_file_name_137
21407 a/b/one_31_chars_long_file_name_138
21408 a/b/one_31_chars_long_file_name_139
21409 a/b/one_31_chars_long_file_name_140
21410 a/b/one_31_chars_long_file_name_141
21411 a/b/one_31_chars_long_file_name_142
21416 $at_diff - "$at_stdout" || at_failed=:
21417 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21419 $at_failed && at_func_log_failure
21423 $as_echo "$at_srcdir/incr04.at:34:
21426 TEST_TAR_FORMAT=oldgnu
21427 export TEST_TAR_FORMAT
21428 TAR_OPTIONS=\"-H oldgnu\"
21433 install-sh -d a/b >/dev/null || exit 77
21435 for (i=1;i<=142;i++)
21436 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21437 }' < /dev/null | genfile --files-from -
21441 echo \"Initial dump\"
21442 tar cvf a0.tar -g a.sna a
21444 echo \"Incremental dump\"
21445 tar cvf a1.tar -g a.sna a
21447 echo incr04.at:34 >"$at_check_line_file"
21449 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21454 TEST_TAR_FORMAT=oldgnu
21455 export TEST_TAR_FORMAT
21456 TAR_OPTIONS="-H oldgnu"
21461 install-sh -d a/b >/dev/null || exit 77
21463 for (i=1;i<=142;i++)
21464 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21465 }' < /dev/null | genfile --files-from -
21469 echo "Initial dump"
21470 tar cvf a0.tar -g a.sna a
21472 echo "Incremental dump"
21473 tar cvf a1.tar -g a.sna a
21474 ) ) >"$at_stdout" 2>"$at_stder1"
21475 at_func_filter_trace $?
21480 TEST_TAR_FORMAT=oldgnu
21481 export TEST_TAR_FORMAT
21482 TAR_OPTIONS="-H oldgnu"
21487 install-sh -d a/b >/dev/null || exit 77
21489 for (i=1;i<=142;i++)
21490 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21491 }' < /dev/null | genfile --files-from -
21495 echo "Initial dump"
21496 tar cvf a0.tar -g a.sna a
21498 echo "Incremental dump"
21499 tar cvf a1.tar -g a.sna a
21500 ) ) >"$at_stdout" 2>"$at_stderr"
21504 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21505 tar: a/b: Directory is new
21506 tar: a/c: Directory has been renamed from \`a/b'
21508 $at_diff - "$at_stderr" || at_failed=:
21509 echo >>"$at_stdout"; $as_echo "Initial dump
21512 a/b/one_31_chars_long_file_name_001
21513 a/b/one_31_chars_long_file_name_002
21514 a/b/one_31_chars_long_file_name_003
21515 a/b/one_31_chars_long_file_name_004
21516 a/b/one_31_chars_long_file_name_005
21517 a/b/one_31_chars_long_file_name_006
21518 a/b/one_31_chars_long_file_name_007
21519 a/b/one_31_chars_long_file_name_008
21520 a/b/one_31_chars_long_file_name_009
21521 a/b/one_31_chars_long_file_name_010
21522 a/b/one_31_chars_long_file_name_011
21523 a/b/one_31_chars_long_file_name_012
21524 a/b/one_31_chars_long_file_name_013
21525 a/b/one_31_chars_long_file_name_014
21526 a/b/one_31_chars_long_file_name_015
21527 a/b/one_31_chars_long_file_name_016
21528 a/b/one_31_chars_long_file_name_017
21529 a/b/one_31_chars_long_file_name_018
21530 a/b/one_31_chars_long_file_name_019
21531 a/b/one_31_chars_long_file_name_020
21532 a/b/one_31_chars_long_file_name_021
21533 a/b/one_31_chars_long_file_name_022
21534 a/b/one_31_chars_long_file_name_023
21535 a/b/one_31_chars_long_file_name_024
21536 a/b/one_31_chars_long_file_name_025
21537 a/b/one_31_chars_long_file_name_026
21538 a/b/one_31_chars_long_file_name_027
21539 a/b/one_31_chars_long_file_name_028
21540 a/b/one_31_chars_long_file_name_029
21541 a/b/one_31_chars_long_file_name_030
21542 a/b/one_31_chars_long_file_name_031
21543 a/b/one_31_chars_long_file_name_032
21544 a/b/one_31_chars_long_file_name_033
21545 a/b/one_31_chars_long_file_name_034
21546 a/b/one_31_chars_long_file_name_035
21547 a/b/one_31_chars_long_file_name_036
21548 a/b/one_31_chars_long_file_name_037
21549 a/b/one_31_chars_long_file_name_038
21550 a/b/one_31_chars_long_file_name_039
21551 a/b/one_31_chars_long_file_name_040
21552 a/b/one_31_chars_long_file_name_041
21553 a/b/one_31_chars_long_file_name_042
21554 a/b/one_31_chars_long_file_name_043
21555 a/b/one_31_chars_long_file_name_044
21556 a/b/one_31_chars_long_file_name_045
21557 a/b/one_31_chars_long_file_name_046
21558 a/b/one_31_chars_long_file_name_047
21559 a/b/one_31_chars_long_file_name_048
21560 a/b/one_31_chars_long_file_name_049
21561 a/b/one_31_chars_long_file_name_050
21562 a/b/one_31_chars_long_file_name_051
21563 a/b/one_31_chars_long_file_name_052
21564 a/b/one_31_chars_long_file_name_053
21565 a/b/one_31_chars_long_file_name_054
21566 a/b/one_31_chars_long_file_name_055
21567 a/b/one_31_chars_long_file_name_056
21568 a/b/one_31_chars_long_file_name_057
21569 a/b/one_31_chars_long_file_name_058
21570 a/b/one_31_chars_long_file_name_059
21571 a/b/one_31_chars_long_file_name_060
21572 a/b/one_31_chars_long_file_name_061
21573 a/b/one_31_chars_long_file_name_062
21574 a/b/one_31_chars_long_file_name_063
21575 a/b/one_31_chars_long_file_name_064
21576 a/b/one_31_chars_long_file_name_065
21577 a/b/one_31_chars_long_file_name_066
21578 a/b/one_31_chars_long_file_name_067
21579 a/b/one_31_chars_long_file_name_068
21580 a/b/one_31_chars_long_file_name_069
21581 a/b/one_31_chars_long_file_name_070
21582 a/b/one_31_chars_long_file_name_071
21583 a/b/one_31_chars_long_file_name_072
21584 a/b/one_31_chars_long_file_name_073
21585 a/b/one_31_chars_long_file_name_074
21586 a/b/one_31_chars_long_file_name_075
21587 a/b/one_31_chars_long_file_name_076
21588 a/b/one_31_chars_long_file_name_077
21589 a/b/one_31_chars_long_file_name_078
21590 a/b/one_31_chars_long_file_name_079
21591 a/b/one_31_chars_long_file_name_080
21592 a/b/one_31_chars_long_file_name_081
21593 a/b/one_31_chars_long_file_name_082
21594 a/b/one_31_chars_long_file_name_083
21595 a/b/one_31_chars_long_file_name_084
21596 a/b/one_31_chars_long_file_name_085
21597 a/b/one_31_chars_long_file_name_086
21598 a/b/one_31_chars_long_file_name_087
21599 a/b/one_31_chars_long_file_name_088
21600 a/b/one_31_chars_long_file_name_089
21601 a/b/one_31_chars_long_file_name_090
21602 a/b/one_31_chars_long_file_name_091
21603 a/b/one_31_chars_long_file_name_092
21604 a/b/one_31_chars_long_file_name_093
21605 a/b/one_31_chars_long_file_name_094
21606 a/b/one_31_chars_long_file_name_095
21607 a/b/one_31_chars_long_file_name_096
21608 a/b/one_31_chars_long_file_name_097
21609 a/b/one_31_chars_long_file_name_098
21610 a/b/one_31_chars_long_file_name_099
21611 a/b/one_31_chars_long_file_name_100
21612 a/b/one_31_chars_long_file_name_101
21613 a/b/one_31_chars_long_file_name_102
21614 a/b/one_31_chars_long_file_name_103
21615 a/b/one_31_chars_long_file_name_104
21616 a/b/one_31_chars_long_file_name_105
21617 a/b/one_31_chars_long_file_name_106
21618 a/b/one_31_chars_long_file_name_107
21619 a/b/one_31_chars_long_file_name_108
21620 a/b/one_31_chars_long_file_name_109
21621 a/b/one_31_chars_long_file_name_110
21622 a/b/one_31_chars_long_file_name_111
21623 a/b/one_31_chars_long_file_name_112
21624 a/b/one_31_chars_long_file_name_113
21625 a/b/one_31_chars_long_file_name_114
21626 a/b/one_31_chars_long_file_name_115
21627 a/b/one_31_chars_long_file_name_116
21628 a/b/one_31_chars_long_file_name_117
21629 a/b/one_31_chars_long_file_name_118
21630 a/b/one_31_chars_long_file_name_119
21631 a/b/one_31_chars_long_file_name_120
21632 a/b/one_31_chars_long_file_name_121
21633 a/b/one_31_chars_long_file_name_122
21634 a/b/one_31_chars_long_file_name_123
21635 a/b/one_31_chars_long_file_name_124
21636 a/b/one_31_chars_long_file_name_125
21637 a/b/one_31_chars_long_file_name_126
21638 a/b/one_31_chars_long_file_name_127
21639 a/b/one_31_chars_long_file_name_128
21640 a/b/one_31_chars_long_file_name_129
21641 a/b/one_31_chars_long_file_name_130
21642 a/b/one_31_chars_long_file_name_131
21643 a/b/one_31_chars_long_file_name_132
21644 a/b/one_31_chars_long_file_name_133
21645 a/b/one_31_chars_long_file_name_134
21646 a/b/one_31_chars_long_file_name_135
21647 a/b/one_31_chars_long_file_name_136
21648 a/b/one_31_chars_long_file_name_137
21649 a/b/one_31_chars_long_file_name_138
21650 a/b/one_31_chars_long_file_name_139
21651 a/b/one_31_chars_long_file_name_140
21652 a/b/one_31_chars_long_file_name_141
21653 a/b/one_31_chars_long_file_name_142
21658 $at_diff - "$at_stdout" || at_failed=:
21659 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21661 $at_failed && at_func_log_failure
21665 $as_echo "$at_srcdir/incr04.at:34:
21668 TEST_TAR_FORMAT=posix
21669 export TEST_TAR_FORMAT
21670 TAR_OPTIONS=\"-H posix\"
21675 install-sh -d a/b >/dev/null || exit 77
21677 for (i=1;i<=142;i++)
21678 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21679 }' < /dev/null | genfile --files-from -
21683 echo \"Initial dump\"
21684 tar cvf a0.tar -g a.sna a
21686 echo \"Incremental dump\"
21687 tar cvf a1.tar -g a.sna a
21689 echo incr04.at:34 >"$at_check_line_file"
21691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21696 TEST_TAR_FORMAT=posix
21697 export TEST_TAR_FORMAT
21698 TAR_OPTIONS="-H posix"
21703 install-sh -d a/b >/dev/null || exit 77
21705 for (i=1;i<=142;i++)
21706 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21707 }' < /dev/null | genfile --files-from -
21711 echo "Initial dump"
21712 tar cvf a0.tar -g a.sna a
21714 echo "Incremental dump"
21715 tar cvf a1.tar -g a.sna a
21716 ) ) >"$at_stdout" 2>"$at_stder1"
21717 at_func_filter_trace $?
21722 TEST_TAR_FORMAT=posix
21723 export TEST_TAR_FORMAT
21724 TAR_OPTIONS="-H posix"
21729 install-sh -d a/b >/dev/null || exit 77
21731 for (i=1;i<=142;i++)
21732 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21733 }' < /dev/null | genfile --files-from -
21737 echo "Initial dump"
21738 tar cvf a0.tar -g a.sna a
21740 echo "Incremental dump"
21741 tar cvf a1.tar -g a.sna a
21742 ) ) >"$at_stdout" 2>"$at_stderr"
21746 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21747 tar: a/b: Directory is new
21748 tar: a/c: Directory has been renamed from \`a/b'
21750 $at_diff - "$at_stderr" || at_failed=:
21751 echo >>"$at_stdout"; $as_echo "Initial dump
21754 a/b/one_31_chars_long_file_name_001
21755 a/b/one_31_chars_long_file_name_002
21756 a/b/one_31_chars_long_file_name_003
21757 a/b/one_31_chars_long_file_name_004
21758 a/b/one_31_chars_long_file_name_005
21759 a/b/one_31_chars_long_file_name_006
21760 a/b/one_31_chars_long_file_name_007
21761 a/b/one_31_chars_long_file_name_008
21762 a/b/one_31_chars_long_file_name_009
21763 a/b/one_31_chars_long_file_name_010
21764 a/b/one_31_chars_long_file_name_011
21765 a/b/one_31_chars_long_file_name_012
21766 a/b/one_31_chars_long_file_name_013
21767 a/b/one_31_chars_long_file_name_014
21768 a/b/one_31_chars_long_file_name_015
21769 a/b/one_31_chars_long_file_name_016
21770 a/b/one_31_chars_long_file_name_017
21771 a/b/one_31_chars_long_file_name_018
21772 a/b/one_31_chars_long_file_name_019
21773 a/b/one_31_chars_long_file_name_020
21774 a/b/one_31_chars_long_file_name_021
21775 a/b/one_31_chars_long_file_name_022
21776 a/b/one_31_chars_long_file_name_023
21777 a/b/one_31_chars_long_file_name_024
21778 a/b/one_31_chars_long_file_name_025
21779 a/b/one_31_chars_long_file_name_026
21780 a/b/one_31_chars_long_file_name_027
21781 a/b/one_31_chars_long_file_name_028
21782 a/b/one_31_chars_long_file_name_029
21783 a/b/one_31_chars_long_file_name_030
21784 a/b/one_31_chars_long_file_name_031
21785 a/b/one_31_chars_long_file_name_032
21786 a/b/one_31_chars_long_file_name_033
21787 a/b/one_31_chars_long_file_name_034
21788 a/b/one_31_chars_long_file_name_035
21789 a/b/one_31_chars_long_file_name_036
21790 a/b/one_31_chars_long_file_name_037
21791 a/b/one_31_chars_long_file_name_038
21792 a/b/one_31_chars_long_file_name_039
21793 a/b/one_31_chars_long_file_name_040
21794 a/b/one_31_chars_long_file_name_041
21795 a/b/one_31_chars_long_file_name_042
21796 a/b/one_31_chars_long_file_name_043
21797 a/b/one_31_chars_long_file_name_044
21798 a/b/one_31_chars_long_file_name_045
21799 a/b/one_31_chars_long_file_name_046
21800 a/b/one_31_chars_long_file_name_047
21801 a/b/one_31_chars_long_file_name_048
21802 a/b/one_31_chars_long_file_name_049
21803 a/b/one_31_chars_long_file_name_050
21804 a/b/one_31_chars_long_file_name_051
21805 a/b/one_31_chars_long_file_name_052
21806 a/b/one_31_chars_long_file_name_053
21807 a/b/one_31_chars_long_file_name_054
21808 a/b/one_31_chars_long_file_name_055
21809 a/b/one_31_chars_long_file_name_056
21810 a/b/one_31_chars_long_file_name_057
21811 a/b/one_31_chars_long_file_name_058
21812 a/b/one_31_chars_long_file_name_059
21813 a/b/one_31_chars_long_file_name_060
21814 a/b/one_31_chars_long_file_name_061
21815 a/b/one_31_chars_long_file_name_062
21816 a/b/one_31_chars_long_file_name_063
21817 a/b/one_31_chars_long_file_name_064
21818 a/b/one_31_chars_long_file_name_065
21819 a/b/one_31_chars_long_file_name_066
21820 a/b/one_31_chars_long_file_name_067
21821 a/b/one_31_chars_long_file_name_068
21822 a/b/one_31_chars_long_file_name_069
21823 a/b/one_31_chars_long_file_name_070
21824 a/b/one_31_chars_long_file_name_071
21825 a/b/one_31_chars_long_file_name_072
21826 a/b/one_31_chars_long_file_name_073
21827 a/b/one_31_chars_long_file_name_074
21828 a/b/one_31_chars_long_file_name_075
21829 a/b/one_31_chars_long_file_name_076
21830 a/b/one_31_chars_long_file_name_077
21831 a/b/one_31_chars_long_file_name_078
21832 a/b/one_31_chars_long_file_name_079
21833 a/b/one_31_chars_long_file_name_080
21834 a/b/one_31_chars_long_file_name_081
21835 a/b/one_31_chars_long_file_name_082
21836 a/b/one_31_chars_long_file_name_083
21837 a/b/one_31_chars_long_file_name_084
21838 a/b/one_31_chars_long_file_name_085
21839 a/b/one_31_chars_long_file_name_086
21840 a/b/one_31_chars_long_file_name_087
21841 a/b/one_31_chars_long_file_name_088
21842 a/b/one_31_chars_long_file_name_089
21843 a/b/one_31_chars_long_file_name_090
21844 a/b/one_31_chars_long_file_name_091
21845 a/b/one_31_chars_long_file_name_092
21846 a/b/one_31_chars_long_file_name_093
21847 a/b/one_31_chars_long_file_name_094
21848 a/b/one_31_chars_long_file_name_095
21849 a/b/one_31_chars_long_file_name_096
21850 a/b/one_31_chars_long_file_name_097
21851 a/b/one_31_chars_long_file_name_098
21852 a/b/one_31_chars_long_file_name_099
21853 a/b/one_31_chars_long_file_name_100
21854 a/b/one_31_chars_long_file_name_101
21855 a/b/one_31_chars_long_file_name_102
21856 a/b/one_31_chars_long_file_name_103
21857 a/b/one_31_chars_long_file_name_104
21858 a/b/one_31_chars_long_file_name_105
21859 a/b/one_31_chars_long_file_name_106
21860 a/b/one_31_chars_long_file_name_107
21861 a/b/one_31_chars_long_file_name_108
21862 a/b/one_31_chars_long_file_name_109
21863 a/b/one_31_chars_long_file_name_110
21864 a/b/one_31_chars_long_file_name_111
21865 a/b/one_31_chars_long_file_name_112
21866 a/b/one_31_chars_long_file_name_113
21867 a/b/one_31_chars_long_file_name_114
21868 a/b/one_31_chars_long_file_name_115
21869 a/b/one_31_chars_long_file_name_116
21870 a/b/one_31_chars_long_file_name_117
21871 a/b/one_31_chars_long_file_name_118
21872 a/b/one_31_chars_long_file_name_119
21873 a/b/one_31_chars_long_file_name_120
21874 a/b/one_31_chars_long_file_name_121
21875 a/b/one_31_chars_long_file_name_122
21876 a/b/one_31_chars_long_file_name_123
21877 a/b/one_31_chars_long_file_name_124
21878 a/b/one_31_chars_long_file_name_125
21879 a/b/one_31_chars_long_file_name_126
21880 a/b/one_31_chars_long_file_name_127
21881 a/b/one_31_chars_long_file_name_128
21882 a/b/one_31_chars_long_file_name_129
21883 a/b/one_31_chars_long_file_name_130
21884 a/b/one_31_chars_long_file_name_131
21885 a/b/one_31_chars_long_file_name_132
21886 a/b/one_31_chars_long_file_name_133
21887 a/b/one_31_chars_long_file_name_134
21888 a/b/one_31_chars_long_file_name_135
21889 a/b/one_31_chars_long_file_name_136
21890 a/b/one_31_chars_long_file_name_137
21891 a/b/one_31_chars_long_file_name_138
21892 a/b/one_31_chars_long_file_name_139
21893 a/b/one_31_chars_long_file_name_140
21894 a/b/one_31_chars_long_file_name_141
21895 a/b/one_31_chars_long_file_name_142
21900 $at_diff - "$at_stdout" || at_failed=:
21901 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21903 $at_failed && at_func_log_failure
21910 $at_times_p && times >"$at_times_file"
21911 ) 5>&1 2>&1 | eval $at_tee_pipe
21912 at_status=`cat "$at_status_file"`
21915 # 59. incr05.at:19: incremental dumps with -C
21916 at_setup_line='incr05.at:19'
21917 at_desc="incremental dumps with -C"
21918 $at_quiet $as_echo_n " 59: $at_desc "
21920 test -f $XFAILFILE && at_xfail=yes
21921 echo "# -*- compilation -*-" >> "$at_group_log"
21923 $as_echo "59. incr05.at:19: testing ..."
21931 $as_echo "$at_srcdir/incr05.at:22:
21934 TEST_TAR_FORMAT=gnu
21935 export TEST_TAR_FORMAT
21936 TAR_OPTIONS=\"-H gnu\"
21942 genfile --file dir/file1
21943 genfile --file dir/sub/file2
21946 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21948 genfile --file dir/file3
21950 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21952 echo incr05.at:22 >"$at_check_line_file"
21954 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21959 TEST_TAR_FORMAT=gnu
21960 export TEST_TAR_FORMAT
21961 TAR_OPTIONS="-H gnu"
21967 genfile --file dir/file1
21968 genfile --file dir/sub/file2
21971 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21973 genfile --file dir/file3
21975 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21976 ) ) >"$at_stdout" 2>"$at_stder1"
21977 at_func_filter_trace $?
21982 TEST_TAR_FORMAT=gnu
21983 export TEST_TAR_FORMAT
21984 TAR_OPTIONS="-H gnu"
21990 genfile --file dir/file1
21991 genfile --file dir/sub/file2
21994 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21996 genfile --file dir/file3
21998 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21999 ) ) >"$at_stdout" 2>"$at_stderr"
22003 at_func_diff_devnull "$at_stderr" || at_failed=:
22004 echo >>"$at_stdout"; $as_echo "Level 0
22014 $at_diff - "$at_stdout" || at_failed=:
22015 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22017 $at_failed && at_func_log_failure
22021 $as_echo "$at_srcdir/incr05.at:22:
22024 TEST_TAR_FORMAT=oldgnu
22025 export TEST_TAR_FORMAT
22026 TAR_OPTIONS=\"-H oldgnu\"
22032 genfile --file dir/file1
22033 genfile --file dir/sub/file2
22036 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22038 genfile --file dir/file3
22040 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22042 echo incr05.at:22 >"$at_check_line_file"
22044 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22049 TEST_TAR_FORMAT=oldgnu
22050 export TEST_TAR_FORMAT
22051 TAR_OPTIONS="-H oldgnu"
22057 genfile --file dir/file1
22058 genfile --file dir/sub/file2
22061 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22063 genfile --file dir/file3
22065 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22066 ) ) >"$at_stdout" 2>"$at_stder1"
22067 at_func_filter_trace $?
22072 TEST_TAR_FORMAT=oldgnu
22073 export TEST_TAR_FORMAT
22074 TAR_OPTIONS="-H oldgnu"
22080 genfile --file dir/file1
22081 genfile --file dir/sub/file2
22084 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22086 genfile --file dir/file3
22088 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22089 ) ) >"$at_stdout" 2>"$at_stderr"
22093 at_func_diff_devnull "$at_stderr" || at_failed=:
22094 echo >>"$at_stdout"; $as_echo "Level 0
22104 $at_diff - "$at_stdout" || at_failed=:
22105 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22107 $at_failed && at_func_log_failure
22111 $as_echo "$at_srcdir/incr05.at:22:
22114 TEST_TAR_FORMAT=posix
22115 export TEST_TAR_FORMAT
22116 TAR_OPTIONS=\"-H posix\"
22122 genfile --file dir/file1
22123 genfile --file dir/sub/file2
22126 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22128 genfile --file dir/file3
22130 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22132 echo incr05.at:22 >"$at_check_line_file"
22134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22139 TEST_TAR_FORMAT=posix
22140 export TEST_TAR_FORMAT
22141 TAR_OPTIONS="-H posix"
22147 genfile --file dir/file1
22148 genfile --file dir/sub/file2
22151 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22153 genfile --file dir/file3
22155 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22156 ) ) >"$at_stdout" 2>"$at_stder1"
22157 at_func_filter_trace $?
22162 TEST_TAR_FORMAT=posix
22163 export TEST_TAR_FORMAT
22164 TAR_OPTIONS="-H posix"
22170 genfile --file dir/file1
22171 genfile --file dir/sub/file2
22174 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22176 genfile --file dir/file3
22178 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22179 ) ) >"$at_stdout" 2>"$at_stderr"
22183 at_func_diff_devnull "$at_stderr" || at_failed=:
22184 echo >>"$at_stdout"; $as_echo "Level 0
22194 $at_diff - "$at_stdout" || at_failed=:
22195 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22197 $at_failed && at_func_log_failure
22204 $at_times_p && times >"$at_times_file"
22205 ) 5>&1 2>&1 | eval $at_tee_pipe
22206 at_status=`cat "$at_status_file"`
22209 # 60. incr06.at:19: incremental dumps of nested directories
22210 at_setup_line='incr06.at:19'
22211 at_desc="incremental dumps of nested directories"
22212 $at_quiet $as_echo_n " 60: $at_desc "
22214 test -f $XFAILFILE && at_xfail=yes
22215 echo "# -*- compilation -*-" >> "$at_group_log"
22217 $as_echo "60. incr06.at:19: testing ..."
22225 $as_echo "$at_srcdir/incr06.at:22:
22228 TEST_TAR_FORMAT=gnu
22229 export TEST_TAR_FORMAT
22230 TAR_OPTIONS=\"-H gnu\"
22238 genfile --file dir/file1
22239 genfile --file dir/sub/file2
22240 genfile --file dir/sub/a/file3
22243 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22245 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22248 genfile --file dir/sub/b/file4
22251 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22253 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22255 echo incr06.at:22 >"$at_check_line_file"
22257 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22262 TEST_TAR_FORMAT=gnu
22263 export TEST_TAR_FORMAT
22264 TAR_OPTIONS="-H gnu"
22272 genfile --file dir/file1
22273 genfile --file dir/sub/file2
22274 genfile --file dir/sub/a/file3
22277 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22279 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22282 genfile --file dir/sub/b/file4
22285 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22287 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22288 ) ) >"$at_stdout" 2>"$at_stder1"
22289 at_func_filter_trace $?
22294 TEST_TAR_FORMAT=gnu
22295 export TEST_TAR_FORMAT
22296 TAR_OPTIONS="-H gnu"
22304 genfile --file dir/file1
22305 genfile --file dir/sub/file2
22306 genfile --file dir/sub/a/file3
22309 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22311 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22314 genfile --file dir/sub/b/file4
22317 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22319 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22320 ) ) >"$at_stdout" 2>"$at_stderr"
22324 at_func_diff_devnull "$at_stderr" || at_failed=:
22325 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22356 $at_diff - "$at_stdout" || at_failed=:
22357 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22359 $at_failed && at_func_log_failure
22363 $as_echo "$at_srcdir/incr06.at:22:
22366 TEST_TAR_FORMAT=oldgnu
22367 export TEST_TAR_FORMAT
22368 TAR_OPTIONS=\"-H oldgnu\"
22376 genfile --file dir/file1
22377 genfile --file dir/sub/file2
22378 genfile --file dir/sub/a/file3
22381 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22383 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22386 genfile --file dir/sub/b/file4
22389 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22391 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22393 echo incr06.at:22 >"$at_check_line_file"
22395 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22400 TEST_TAR_FORMAT=oldgnu
22401 export TEST_TAR_FORMAT
22402 TAR_OPTIONS="-H oldgnu"
22410 genfile --file dir/file1
22411 genfile --file dir/sub/file2
22412 genfile --file dir/sub/a/file3
22415 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22417 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22420 genfile --file dir/sub/b/file4
22423 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22425 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22426 ) ) >"$at_stdout" 2>"$at_stder1"
22427 at_func_filter_trace $?
22432 TEST_TAR_FORMAT=oldgnu
22433 export TEST_TAR_FORMAT
22434 TAR_OPTIONS="-H oldgnu"
22442 genfile --file dir/file1
22443 genfile --file dir/sub/file2
22444 genfile --file dir/sub/a/file3
22447 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22449 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22452 genfile --file dir/sub/b/file4
22455 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22457 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22458 ) ) >"$at_stdout" 2>"$at_stderr"
22462 at_func_diff_devnull "$at_stderr" || at_failed=:
22463 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22494 $at_diff - "$at_stdout" || at_failed=:
22495 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22497 $at_failed && at_func_log_failure
22501 $as_echo "$at_srcdir/incr06.at:22:
22504 TEST_TAR_FORMAT=posix
22505 export TEST_TAR_FORMAT
22506 TAR_OPTIONS=\"-H posix\"
22514 genfile --file dir/file1
22515 genfile --file dir/sub/file2
22516 genfile --file dir/sub/a/file3
22519 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22521 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22524 genfile --file dir/sub/b/file4
22527 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22529 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22531 echo incr06.at:22 >"$at_check_line_file"
22533 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22538 TEST_TAR_FORMAT=posix
22539 export TEST_TAR_FORMAT
22540 TAR_OPTIONS="-H posix"
22548 genfile --file dir/file1
22549 genfile --file dir/sub/file2
22550 genfile --file dir/sub/a/file3
22553 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22555 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22558 genfile --file dir/sub/b/file4
22561 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22563 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22564 ) ) >"$at_stdout" 2>"$at_stder1"
22565 at_func_filter_trace $?
22570 TEST_TAR_FORMAT=posix
22571 export TEST_TAR_FORMAT
22572 TAR_OPTIONS="-H posix"
22580 genfile --file dir/file1
22581 genfile --file dir/sub/file2
22582 genfile --file dir/sub/a/file3
22585 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22587 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22590 genfile --file dir/sub/b/file4
22593 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22595 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22596 ) ) >"$at_stdout" 2>"$at_stderr"
22600 at_func_diff_devnull "$at_stderr" || at_failed=:
22601 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22632 $at_diff - "$at_stdout" || at_failed=:
22633 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22635 $at_failed && at_func_log_failure
22642 $at_times_p && times >"$at_times_file"
22643 ) 5>&1 2>&1 | eval $at_tee_pipe
22644 at_status=`cat "$at_status_file"`
22647 # 61. filerem01.at:34: file removed as we read it (ca. 22 seconds)
22648 at_setup_line='filerem01.at:34'
22649 at_desc="file removed as we read it (ca. 22 seconds)"
22650 $at_quiet $as_echo_n " 61: $at_desc "
22652 test -f $XFAILFILE && at_xfail=yes
22653 echo "# -*- compilation -*-" >> "$at_group_log"
22655 $as_echo "61. filerem01.at:34: testing ..."
22663 $as_echo "$at_srcdir/filerem01.at:37:
22666 TEST_TAR_FORMAT=gnu
22667 export TEST_TAR_FORMAT
22668 TAR_OPTIONS=\"-H gnu\"
22674 genfile --file dir/file1
22675 genfile --file dir/sub/file2
22677 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22678 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22679 --checkpoint-action='echo' -c -f archive.tar \\
22680 --listed-incremental db -v dir >/dev/null
22682 echo filerem01.at:37 >"$at_check_line_file"
22684 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22689 TEST_TAR_FORMAT=gnu
22690 export TEST_TAR_FORMAT
22691 TAR_OPTIONS="-H gnu"
22697 genfile --file dir/file1
22698 genfile --file dir/sub/file2
22700 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22701 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22702 --checkpoint-action='echo' -c -f archive.tar \
22703 --listed-incremental db -v dir >/dev/null
22704 ) ) >"$at_stdout" 2>"$at_stder1"
22705 at_func_filter_trace $?
22710 TEST_TAR_FORMAT=gnu
22711 export TEST_TAR_FORMAT
22712 TAR_OPTIONS="-H gnu"
22718 genfile --file dir/file1
22719 genfile --file dir/sub/file2
22721 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22722 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22723 --checkpoint-action='echo' -c -f archive.tar \
22724 --listed-incremental db -v dir >/dev/null
22725 ) ) >"$at_stdout" 2>"$at_stderr"
22729 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22730 tar: dir/sub: Directory is new
22731 tar: dir/file1: File removed before we read it
22733 $at_diff - "$at_stderr" || at_failed=:
22734 echo stdout:; cat "$at_stdout"
22735 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22737 $at_failed && at_func_log_failure
22741 $as_echo "$at_srcdir/filerem01.at:37:
22744 TEST_TAR_FORMAT=posix
22745 export TEST_TAR_FORMAT
22746 TAR_OPTIONS=\"-H posix\"
22752 genfile --file dir/file1
22753 genfile --file dir/sub/file2
22755 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22756 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22757 --checkpoint-action='echo' -c -f archive.tar \\
22758 --listed-incremental db -v dir >/dev/null
22760 echo filerem01.at:37 >"$at_check_line_file"
22762 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22767 TEST_TAR_FORMAT=posix
22768 export TEST_TAR_FORMAT
22769 TAR_OPTIONS="-H posix"
22775 genfile --file dir/file1
22776 genfile --file dir/sub/file2
22778 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22779 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22780 --checkpoint-action='echo' -c -f archive.tar \
22781 --listed-incremental db -v dir >/dev/null
22782 ) ) >"$at_stdout" 2>"$at_stder1"
22783 at_func_filter_trace $?
22788 TEST_TAR_FORMAT=posix
22789 export TEST_TAR_FORMAT
22790 TAR_OPTIONS="-H posix"
22796 genfile --file dir/file1
22797 genfile --file dir/sub/file2
22799 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22800 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22801 --checkpoint-action='echo' -c -f archive.tar \
22802 --listed-incremental db -v dir >/dev/null
22803 ) ) >"$at_stdout" 2>"$at_stderr"
22807 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22808 tar: dir/sub: Directory is new
22809 tar: dir/file1: File removed before we read it
22811 $at_diff - "$at_stderr" || at_failed=:
22812 echo stdout:; cat "$at_stdout"
22813 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22815 $at_failed && at_func_log_failure
22821 # Timing information:
22823 # For -Hgnu the above command line takes about 8 seconds to execute and
22826 # tar: dir: Directory is new
22827 # tar: dir/sub: Directory is new
22829 # tar: Write checkpoint 1
22830 # tar: Write checkpoint 2
22832 # tar: Write checkpoint 3
22833 # tar: Write checkpoint 4
22835 # tar: Write checkpoint 5
22837 # tar: Write checkpoint 6
22838 # tar: Write checkpoint 7
22839 # tar: Write checkpoint 8
22841 # For -Hposix the above command line takes about 14 seconds to execute and
22844 # ./tar: dir: Directory is new
22845 # ./tar: dir/sub: Directory is new
22847 # ./tar: Write checkpoint 1
22848 # ./tar: Write checkpoint 2
22849 # ./tar: Write checkpoint 3
22851 # ./tar: Write checkpoint 4
22852 # ./tar: Write checkpoint 5
22853 # ./tar: Write checkpoint 6
22855 # ./tar: Write checkpoint 7
22856 # ./tar: Write checkpoint 8
22857 # ./tar: Write checkpoint 9
22859 # ./tar: Write checkpoint 10
22860 # ./tar: Write checkpoint 11
22861 # ./tar: Write checkpoint 12
22862 # ./tar: Write checkpoint 13
22863 # ./tar: Write checkpoint 14
22867 $at_times_p && times >"$at_times_file"
22868 ) 5>&1 2>&1 | eval $at_tee_pipe
22869 at_status=`cat "$at_status_file"`
22872 # 62. filerem02.at:24: toplevel file removed (ca. 24 seconds)
22873 at_setup_line='filerem02.at:24'
22874 at_desc="toplevel file removed (ca. 24 seconds)"
22875 $at_quiet $as_echo_n " 62: $at_desc "
22877 test -f $XFAILFILE && at_xfail=yes
22878 echo "# -*- compilation -*-" >> "$at_group_log"
22880 $as_echo "62. filerem02.at:24: testing ..."
22888 $as_echo "$at_srcdir/filerem02.at:27:
22891 TEST_TAR_FORMAT=gnu
22892 export TEST_TAR_FORMAT
22893 TAR_OPTIONS=\"-H gnu\"
22899 genfile --file dir/file1
22900 genfile --file dir/sub/file2
22902 genfile --file dir2/file1
22904 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22905 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22906 --checkpoint-action='echo' -c -f archive.tar \\
22907 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22909 echo filerem02.at:27 >"$at_check_line_file"
22911 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22916 TEST_TAR_FORMAT=gnu
22917 export TEST_TAR_FORMAT
22918 TAR_OPTIONS="-H gnu"
22924 genfile --file dir/file1
22925 genfile --file dir/sub/file2
22927 genfile --file dir2/file1
22929 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22930 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22931 --checkpoint-action='echo' -c -f archive.tar \
22932 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22933 ) ) >"$at_stdout" 2>"$at_stder1"
22934 at_func_filter_trace $?
22939 TEST_TAR_FORMAT=gnu
22940 export TEST_TAR_FORMAT
22941 TAR_OPTIONS="-H gnu"
22947 genfile --file dir/file1
22948 genfile --file dir/sub/file2
22950 genfile --file dir2/file1
22952 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22953 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22954 --checkpoint-action='echo' -c -f archive.tar \
22955 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22956 ) ) >"$at_stdout" 2>"$at_stderr"
22960 echo stderr:; cat "$at_stderr"
22961 echo stdout:; cat "$at_stdout"
22962 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
22964 $at_failed && at_func_log_failure
22968 $as_echo "$at_srcdir/filerem02.at:27:
22971 TEST_TAR_FORMAT=posix
22972 export TEST_TAR_FORMAT
22973 TAR_OPTIONS=\"-H posix\"
22979 genfile --file dir/file1
22980 genfile --file dir/sub/file2
22982 genfile --file dir2/file1
22984 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22985 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22986 --checkpoint-action='echo' -c -f archive.tar \\
22987 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22989 echo filerem02.at:27 >"$at_check_line_file"
22991 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22996 TEST_TAR_FORMAT=posix
22997 export TEST_TAR_FORMAT
22998 TAR_OPTIONS="-H posix"
23004 genfile --file dir/file1
23005 genfile --file dir/sub/file2
23007 genfile --file dir2/file1
23009 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23010 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23011 --checkpoint-action='echo' -c -f archive.tar \
23012 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23013 ) ) >"$at_stdout" 2>"$at_stder1"
23014 at_func_filter_trace $?
23019 TEST_TAR_FORMAT=posix
23020 export TEST_TAR_FORMAT
23021 TAR_OPTIONS="-H posix"
23027 genfile --file dir/file1
23028 genfile --file dir/sub/file2
23030 genfile --file dir2/file1
23032 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23033 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23034 --checkpoint-action='echo' -c -f archive.tar \
23035 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23036 ) ) >"$at_stdout" 2>"$at_stderr"
23040 echo stderr:; cat "$at_stderr"
23041 echo stdout:; cat "$at_stdout"
23042 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
23044 $at_failed && at_func_log_failure
23050 # Ignore stdout and stderr because their contents depend on
23051 # the file system implementation.
23053 # Timing information: see filerem01.at
23056 $at_times_p && times >"$at_times_file"
23057 ) 5>&1 2>&1 | eval $at_tee_pipe
23058 at_status=`cat "$at_status_file"`
23061 # 63. rename01.at:24: renamed dirs in incrementals
23062 at_setup_line='rename01.at:24'
23063 at_desc="renamed dirs in incrementals"
23064 $at_quiet $as_echo_n " 63: $at_desc "
23066 test -f $XFAILFILE && at_xfail=yes
23067 echo "# -*- compilation -*-" >> "$at_group_log"
23069 $as_echo "63. rename01.at:24: testing ..."
23077 $as_echo "$at_srcdir/rename01.at:27:
23080 TEST_TAR_FORMAT=gnu
23081 export TEST_TAR_FORMAT
23082 TAR_OPTIONS=\"-H gnu\"
23087 test -z "`sort < /dev/null 2>&1`" || exit 77
23091 genfile --file foo/file1
23092 genfile --file foo/file2
23094 genfile --file foo/bar/file
23096 echo \"Creating base archive\"
23097 tar -g incr -cf arch.1 -v foo
23101 echo \"Creating incremental archive\"
23102 tar -g incr -cf arch.2 -v foo
23106 tar xfg arch.1 /dev/null
23108 echo \"Begin directory listing 1\"
23110 echo \"End directory listing 1\"
23112 tar xfg arch.2 /dev/null
23113 echo Begin directory listing 2
23115 echo End directory listing 2
23117 echo rename01.at:27 >"$at_check_line_file"
23119 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23124 TEST_TAR_FORMAT=gnu
23125 export TEST_TAR_FORMAT
23126 TAR_OPTIONS="-H gnu"
23131 test -z "`sort < /dev/null 2>&1`" || exit 77
23135 genfile --file foo/file1
23136 genfile --file foo/file2
23138 genfile --file foo/bar/file
23140 echo "Creating base archive"
23141 tar -g incr -cf arch.1 -v foo
23145 echo "Creating incremental archive"
23146 tar -g incr -cf arch.2 -v foo
23150 tar xfg arch.1 /dev/null
23152 echo "Begin directory listing 1"
23154 echo "End directory listing 1"
23156 tar xfg arch.2 /dev/null
23157 echo Begin directory listing 2
23159 echo End directory listing 2
23160 ) ) >"$at_stdout" 2>"$at_stder1"
23161 at_func_filter_trace $?
23166 TEST_TAR_FORMAT=gnu
23167 export TEST_TAR_FORMAT
23168 TAR_OPTIONS="-H gnu"
23173 test -z "`sort < /dev/null 2>&1`" || exit 77
23177 genfile --file foo/file1
23178 genfile --file foo/file2
23180 genfile --file foo/bar/file
23182 echo "Creating base archive"
23183 tar -g incr -cf arch.1 -v foo
23187 echo "Creating incremental archive"
23188 tar -g incr -cf arch.2 -v foo
23192 tar xfg arch.1 /dev/null
23194 echo "Begin directory listing 1"
23196 echo "End directory listing 1"
23198 tar xfg arch.2 /dev/null
23199 echo Begin directory listing 2
23201 echo End directory listing 2
23202 ) ) >"$at_stdout" 2>"$at_stderr"
23206 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23207 tar: foo/bar: Directory is new
23208 tar: foo/baz: Directory has been renamed from \`foo/bar'
23210 $at_diff - "$at_stderr" || at_failed=:
23211 echo >>"$at_stdout"; $as_echo "Creating base archive
23217 Creating incremental archive
23220 Begin directory listing 1
23226 End directory listing 1
23227 Begin directory listing 2
23233 End directory listing 2
23235 $at_diff - "$at_stdout" || at_failed=:
23236 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23238 $at_failed && at_func_log_failure
23242 $as_echo "$at_srcdir/rename01.at:27:
23245 TEST_TAR_FORMAT=oldgnu
23246 export TEST_TAR_FORMAT
23247 TAR_OPTIONS=\"-H oldgnu\"
23252 test -z "`sort < /dev/null 2>&1`" || exit 77
23256 genfile --file foo/file1
23257 genfile --file foo/file2
23259 genfile --file foo/bar/file
23261 echo \"Creating base archive\"
23262 tar -g incr -cf arch.1 -v foo
23266 echo \"Creating incremental archive\"
23267 tar -g incr -cf arch.2 -v foo
23271 tar xfg arch.1 /dev/null
23273 echo \"Begin directory listing 1\"
23275 echo \"End directory listing 1\"
23277 tar xfg arch.2 /dev/null
23278 echo Begin directory listing 2
23280 echo End directory listing 2
23282 echo rename01.at:27 >"$at_check_line_file"
23284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23289 TEST_TAR_FORMAT=oldgnu
23290 export TEST_TAR_FORMAT
23291 TAR_OPTIONS="-H oldgnu"
23296 test -z "`sort < /dev/null 2>&1`" || exit 77
23300 genfile --file foo/file1
23301 genfile --file foo/file2
23303 genfile --file foo/bar/file
23305 echo "Creating base archive"
23306 tar -g incr -cf arch.1 -v foo
23310 echo "Creating incremental archive"
23311 tar -g incr -cf arch.2 -v foo
23315 tar xfg arch.1 /dev/null
23317 echo "Begin directory listing 1"
23319 echo "End directory listing 1"
23321 tar xfg arch.2 /dev/null
23322 echo Begin directory listing 2
23324 echo End directory listing 2
23325 ) ) >"$at_stdout" 2>"$at_stder1"
23326 at_func_filter_trace $?
23331 TEST_TAR_FORMAT=oldgnu
23332 export TEST_TAR_FORMAT
23333 TAR_OPTIONS="-H oldgnu"
23338 test -z "`sort < /dev/null 2>&1`" || exit 77
23342 genfile --file foo/file1
23343 genfile --file foo/file2
23345 genfile --file foo/bar/file
23347 echo "Creating base archive"
23348 tar -g incr -cf arch.1 -v foo
23352 echo "Creating incremental archive"
23353 tar -g incr -cf arch.2 -v foo
23357 tar xfg arch.1 /dev/null
23359 echo "Begin directory listing 1"
23361 echo "End directory listing 1"
23363 tar xfg arch.2 /dev/null
23364 echo Begin directory listing 2
23366 echo End directory listing 2
23367 ) ) >"$at_stdout" 2>"$at_stderr"
23371 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23372 tar: foo/bar: Directory is new
23373 tar: foo/baz: Directory has been renamed from \`foo/bar'
23375 $at_diff - "$at_stderr" || at_failed=:
23376 echo >>"$at_stdout"; $as_echo "Creating base archive
23382 Creating incremental archive
23385 Begin directory listing 1
23391 End directory listing 1
23392 Begin directory listing 2
23398 End directory listing 2
23400 $at_diff - "$at_stdout" || at_failed=:
23401 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23403 $at_failed && at_func_log_failure
23407 $as_echo "$at_srcdir/rename01.at:27:
23410 TEST_TAR_FORMAT=posix
23411 export TEST_TAR_FORMAT
23412 TAR_OPTIONS=\"-H posix\"
23417 test -z "`sort < /dev/null 2>&1`" || exit 77
23421 genfile --file foo/file1
23422 genfile --file foo/file2
23424 genfile --file foo/bar/file
23426 echo \"Creating base archive\"
23427 tar -g incr -cf arch.1 -v foo
23431 echo \"Creating incremental archive\"
23432 tar -g incr -cf arch.2 -v foo
23436 tar xfg arch.1 /dev/null
23438 echo \"Begin directory listing 1\"
23440 echo \"End directory listing 1\"
23442 tar xfg arch.2 /dev/null
23443 echo Begin directory listing 2
23445 echo End directory listing 2
23447 echo rename01.at:27 >"$at_check_line_file"
23449 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23454 TEST_TAR_FORMAT=posix
23455 export TEST_TAR_FORMAT
23456 TAR_OPTIONS="-H posix"
23461 test -z "`sort < /dev/null 2>&1`" || exit 77
23465 genfile --file foo/file1
23466 genfile --file foo/file2
23468 genfile --file foo/bar/file
23470 echo "Creating base archive"
23471 tar -g incr -cf arch.1 -v foo
23475 echo "Creating incremental archive"
23476 tar -g incr -cf arch.2 -v foo
23480 tar xfg arch.1 /dev/null
23482 echo "Begin directory listing 1"
23484 echo "End directory listing 1"
23486 tar xfg arch.2 /dev/null
23487 echo Begin directory listing 2
23489 echo End directory listing 2
23490 ) ) >"$at_stdout" 2>"$at_stder1"
23491 at_func_filter_trace $?
23496 TEST_TAR_FORMAT=posix
23497 export TEST_TAR_FORMAT
23498 TAR_OPTIONS="-H posix"
23503 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
23512 echo "Creating base archive"
23513 tar -g incr -cf arch.1 -v foo
23517 echo "Creating incremental archive"
23518 tar -g incr -cf arch.2 -v foo
23522 tar xfg arch.1 /dev/null
23524 echo "Begin directory listing 1"
23526 echo "End directory listing 1"
23528 tar xfg arch.2 /dev/null
23529 echo Begin directory listing 2
23531 echo End directory listing 2
23532 ) ) >"$at_stdout" 2>"$at_stderr"
23536 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23537 tar: foo/bar: Directory is new
23538 tar: foo/baz: Directory has been renamed from \`foo/bar'
23540 $at_diff - "$at_stderr" || at_failed=:
23541 echo >>"$at_stdout"; $as_echo "Creating base archive
23547 Creating incremental archive
23550 Begin directory listing 1
23556 End directory listing 1
23557 Begin directory listing 2
23563 End directory listing 2
23565 $at_diff - "$at_stdout" || at_failed=:
23566 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23568 $at_failed && at_func_log_failure
23575 $at_times_p && times >"$at_times_file"
23576 ) 5>&1 2>&1 | eval $at_tee_pipe
23577 at_status=`cat "$at_status_file"`
23580 # 64. rename02.at:24: move between hierarchies
23581 at_setup_line='rename02.at:24'
23582 at_desc="move between hierarchies"
23583 $at_quiet $as_echo_n " 64: $at_desc "
23585 test -f $XFAILFILE && at_xfail=yes
23586 echo "# -*- compilation -*-" >> "$at_group_log"
23588 $as_echo "64. rename02.at:24: testing ..."
23596 $as_echo "$at_srcdir/rename02.at:27:
23599 TEST_TAR_FORMAT=gnu
23600 export TEST_TAR_FORMAT
23601 TAR_OPTIONS=\"-H gnu\"
23606 test -z "`sort < /dev/null 2>&1`" || exit 77
23609 genfile --file foo/file1
23610 genfile --file foo/file2
23612 genfile --file foo/bar/file.r
23614 genfile --file foo/bar/baz/file.z
23618 echo \"Creating base archive\"
23619 tar -g incr -cf arch.1 -v foo
23623 echo \"Creating incremental archive\"
23624 tar -g incr -cf arch.2 -v foo
23628 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23631 echo \"Begin directory listing 1\"
23633 echo \"End directory listing 1\"
23635 tar xfgv arch.2 /dev/null --warning=no-timestamp
23636 echo Begin directory listing 2
23638 echo End directory listing 2
23640 echo rename02.at:27 >"$at_check_line_file"
23642 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23647 TEST_TAR_FORMAT=gnu
23648 export TEST_TAR_FORMAT
23649 TAR_OPTIONS="-H gnu"
23654 test -z "`sort < /dev/null 2>&1`" || exit 77
23657 genfile --file foo/file1
23658 genfile --file foo/file2
23660 genfile --file foo/bar/file.r
23662 genfile --file foo/bar/baz/file.z
23666 echo "Creating base archive"
23667 tar -g incr -cf arch.1 -v foo
23671 echo "Creating incremental archive"
23672 tar -g incr -cf arch.2 -v foo
23676 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23679 echo "Begin directory listing 1"
23681 echo "End directory listing 1"
23683 tar xfgv arch.2 /dev/null --warning=no-timestamp
23684 echo Begin directory listing 2
23686 echo End directory listing 2
23687 ) ) >"$at_stdout" 2>"$at_stder1"
23688 at_func_filter_trace $?
23693 TEST_TAR_FORMAT=gnu
23694 export TEST_TAR_FORMAT
23695 TAR_OPTIONS="-H gnu"
23700 test -z "`sort < /dev/null 2>&1`" || exit 77
23703 genfile --file foo/file1
23704 genfile --file foo/file2
23706 genfile --file foo/bar/file.r
23708 genfile --file foo/bar/baz/file.z
23712 echo "Creating base archive"
23713 tar -g incr -cf arch.1 -v foo
23717 echo "Creating incremental archive"
23718 tar -g incr -cf arch.2 -v foo
23722 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23725 echo "Begin directory listing 1"
23727 echo "End directory listing 1"
23729 tar xfgv arch.2 /dev/null --warning=no-timestamp
23730 echo Begin directory listing 2
23732 echo End directory listing 2
23733 ) ) >"$at_stdout" 2>"$at_stderr"
23737 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23738 tar: foo/bar: Directory is new
23739 tar: foo/bar/baz: Directory is new
23740 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23742 $at_diff - "$at_stderr" || at_failed=:
23743 echo >>"$at_stdout"; $as_echo "Creating base archive
23751 Creating incremental archive
23755 Begin directory listing 1
23763 End directory listing 1
23767 Begin directory listing 2
23775 End directory listing 2
23777 $at_diff - "$at_stdout" || at_failed=:
23778 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23780 $at_failed && at_func_log_failure
23784 $as_echo "$at_srcdir/rename02.at:27:
23787 TEST_TAR_FORMAT=oldgnu
23788 export TEST_TAR_FORMAT
23789 TAR_OPTIONS=\"-H oldgnu\"
23794 test -z "`sort < /dev/null 2>&1`" || exit 77
23797 genfile --file foo/file1
23798 genfile --file foo/file2
23800 genfile --file foo/bar/file.r
23802 genfile --file foo/bar/baz/file.z
23806 echo \"Creating base archive\"
23807 tar -g incr -cf arch.1 -v foo
23811 echo \"Creating incremental archive\"
23812 tar -g incr -cf arch.2 -v foo
23816 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23819 echo \"Begin directory listing 1\"
23821 echo \"End directory listing 1\"
23823 tar xfgv arch.2 /dev/null --warning=no-timestamp
23824 echo Begin directory listing 2
23826 echo End directory listing 2
23828 echo rename02.at:27 >"$at_check_line_file"
23830 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23835 TEST_TAR_FORMAT=oldgnu
23836 export TEST_TAR_FORMAT
23837 TAR_OPTIONS="-H oldgnu"
23842 test -z "`sort < /dev/null 2>&1`" || exit 77
23845 genfile --file foo/file1
23846 genfile --file foo/file2
23848 genfile --file foo/bar/file.r
23850 genfile --file foo/bar/baz/file.z
23854 echo "Creating base archive"
23855 tar -g incr -cf arch.1 -v foo
23859 echo "Creating incremental archive"
23860 tar -g incr -cf arch.2 -v foo
23864 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23867 echo "Begin directory listing 1"
23869 echo "End directory listing 1"
23871 tar xfgv arch.2 /dev/null --warning=no-timestamp
23872 echo Begin directory listing 2
23874 echo End directory listing 2
23875 ) ) >"$at_stdout" 2>"$at_stder1"
23876 at_func_filter_trace $?
23881 TEST_TAR_FORMAT=oldgnu
23882 export TEST_TAR_FORMAT
23883 TAR_OPTIONS="-H oldgnu"
23888 test -z "`sort < /dev/null 2>&1`" || exit 77
23891 genfile --file foo/file1
23892 genfile --file foo/file2
23894 genfile --file foo/bar/file.r
23896 genfile --file foo/bar/baz/file.z
23900 echo "Creating base archive"
23901 tar -g incr -cf arch.1 -v foo
23905 echo "Creating incremental archive"
23906 tar -g incr -cf arch.2 -v foo
23910 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23913 echo "Begin directory listing 1"
23915 echo "End directory listing 1"
23917 tar xfgv arch.2 /dev/null --warning=no-timestamp
23918 echo Begin directory listing 2
23920 echo End directory listing 2
23921 ) ) >"$at_stdout" 2>"$at_stderr"
23925 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23926 tar: foo/bar: Directory is new
23927 tar: foo/bar/baz: Directory is new
23928 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23930 $at_diff - "$at_stderr" || at_failed=:
23931 echo >>"$at_stdout"; $as_echo "Creating base archive
23939 Creating incremental archive
23943 Begin directory listing 1
23951 End directory listing 1
23955 Begin directory listing 2
23963 End directory listing 2
23965 $at_diff - "$at_stdout" || at_failed=:
23966 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23968 $at_failed && at_func_log_failure
23972 $as_echo "$at_srcdir/rename02.at:27:
23975 TEST_TAR_FORMAT=posix
23976 export TEST_TAR_FORMAT
23977 TAR_OPTIONS=\"-H posix\"
23982 test -z "`sort < /dev/null 2>&1`" || exit 77
23985 genfile --file foo/file1
23986 genfile --file foo/file2
23988 genfile --file foo/bar/file.r
23990 genfile --file foo/bar/baz/file.z
23994 echo \"Creating base archive\"
23995 tar -g incr -cf arch.1 -v foo
23999 echo \"Creating incremental archive\"
24000 tar -g incr -cf arch.2 -v foo
24004 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24007 echo \"Begin directory listing 1\"
24009 echo \"End directory listing 1\"
24011 tar xfgv arch.2 /dev/null --warning=no-timestamp
24012 echo Begin directory listing 2
24014 echo End directory listing 2
24016 echo rename02.at:27 >"$at_check_line_file"
24018 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24023 TEST_TAR_FORMAT=posix
24024 export TEST_TAR_FORMAT
24025 TAR_OPTIONS="-H posix"
24030 test -z "`sort < /dev/null 2>&1`" || exit 77
24033 genfile --file foo/file1
24034 genfile --file foo/file2
24036 genfile --file foo/bar/file.r
24038 genfile --file foo/bar/baz/file.z
24042 echo "Creating base archive"
24043 tar -g incr -cf arch.1 -v foo
24047 echo "Creating incremental archive"
24048 tar -g incr -cf arch.2 -v foo
24052 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24055 echo "Begin directory listing 1"
24057 echo "End directory listing 1"
24059 tar xfgv arch.2 /dev/null --warning=no-timestamp
24060 echo Begin directory listing 2
24062 echo End directory listing 2
24063 ) ) >"$at_stdout" 2>"$at_stder1"
24064 at_func_filter_trace $?
24069 TEST_TAR_FORMAT=posix
24070 export TEST_TAR_FORMAT
24071 TAR_OPTIONS="-H posix"
24076 test -z "`sort < /dev/null 2>&1`" || exit 77
24079 genfile --file foo/file1
24080 genfile --file foo/file2
24082 genfile --file foo/bar/file.r
24084 genfile --file foo/bar/baz/file.z
24088 echo "Creating base archive"
24089 tar -g incr -cf arch.1 -v foo
24093 echo "Creating incremental archive"
24094 tar -g incr -cf arch.2 -v foo
24098 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24101 echo "Begin directory listing 1"
24103 echo "End directory listing 1"
24105 tar xfgv arch.2 /dev/null --warning=no-timestamp
24106 echo Begin directory listing 2
24108 echo End directory listing 2
24109 ) ) >"$at_stdout" 2>"$at_stderr"
24113 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
24114 tar: foo/bar: Directory is new
24115 tar: foo/bar/baz: Directory is new
24116 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
24118 $at_diff - "$at_stderr" || at_failed=:
24119 echo >>"$at_stdout"; $as_echo "Creating base archive
24127 Creating incremental archive
24131 Begin directory listing 1
24139 End directory listing 1
24143 Begin directory listing 2
24151 End directory listing 2
24153 $at_diff - "$at_stdout" || at_failed=:
24154 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
24156 $at_failed && at_func_log_failure
24163 $at_times_p && times >"$at_times_file"
24164 ) 5>&1 2>&1 | eval $at_tee_pipe
24165 at_status=`cat "$at_status_file"`
24168 # 65. rename03.at:23: cyclic renames
24169 at_setup_line='rename03.at:23'
24170 at_desc="cyclic renames"
24171 $at_quiet $as_echo_n " 65: $at_desc "
24173 test -f $XFAILFILE && at_xfail=yes
24174 echo "# -*- compilation -*-" >> "$at_group_log"
24176 $as_echo "65. rename03.at:23: testing ..."
24184 $as_echo "$at_srcdir/rename03.at:26:
24187 TEST_TAR_FORMAT=gnu
24188 export TEST_TAR_FORMAT
24189 TAR_OPTIONS=\"-H gnu\"
24194 test -z "`sort < /dev/null 2>&1`" || exit 77
24198 genfile --file foo/file1
24199 genfile --file foo/file2
24202 genfile --file foo/a/filea
24205 genfile --file foo/b/fileb
24208 genfile --file foo/c/filec
24212 echo \"First dump\"
24213 echo \"First dump\">&2
24214 tar -g incr -cf arch.1 -v foo 2>tmperr
24217 # Shuffle directories:
24224 echo \"Second dump\"
24225 echo \"Second dump\" >&2
24226 tar -g incr -cf arch.2 -v foo 2>tmperr
24229 tar xfg arch.1 /dev/null --warning=no-timestamp
24231 echo \"Begin directory listing 1\"
24233 echo \"End directory listing 1\"
24235 tar xfgv arch.2 /dev/null --warning=no-timestamp
24236 echo Begin directory listing 2
24238 echo End directory listing 2
24240 echo rename03.at:26 >"$at_check_line_file"
24242 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24247 TEST_TAR_FORMAT=gnu
24248 export TEST_TAR_FORMAT
24249 TAR_OPTIONS="-H gnu"
24254 test -z "`sort < /dev/null 2>&1`" || exit 77
24258 genfile --file foo/file1
24259 genfile --file foo/file2
24262 genfile --file foo/a/filea
24265 genfile --file foo/b/fileb
24268 genfile --file foo/c/filec
24273 echo "First dump">&2
24274 tar -g incr -cf arch.1 -v foo 2>tmperr
24277 # Shuffle directories:
24285 echo "Second dump" >&2
24286 tar -g incr -cf arch.2 -v foo 2>tmperr
24289 tar xfg arch.1 /dev/null --warning=no-timestamp
24291 echo "Begin directory listing 1"
24293 echo "End directory listing 1"
24295 tar xfgv arch.2 /dev/null --warning=no-timestamp
24296 echo Begin directory listing 2
24298 echo End directory listing 2
24299 ) ) >"$at_stdout" 2>"$at_stder1"
24300 at_func_filter_trace $?
24305 TEST_TAR_FORMAT=gnu
24306 export TEST_TAR_FORMAT
24307 TAR_OPTIONS="-H gnu"
24312 test -z "`sort < /dev/null 2>&1`" || exit 77
24316 genfile --file foo/file1
24317 genfile --file foo/file2
24320 genfile --file foo/a/filea
24323 genfile --file foo/b/fileb
24326 genfile --file foo/c/filec
24331 echo "First dump">&2
24332 tar -g incr -cf arch.1 -v foo 2>tmperr
24335 # Shuffle directories:
24343 echo "Second dump" >&2
24344 tar -g incr -cf arch.2 -v foo 2>tmperr
24347 tar xfg arch.1 /dev/null --warning=no-timestamp
24349 echo "Begin directory listing 1"
24351 echo "End directory listing 1"
24353 tar xfgv arch.2 /dev/null --warning=no-timestamp
24354 echo Begin directory listing 2
24356 echo End directory listing 2
24357 ) ) >"$at_stdout" 2>"$at_stderr"
24361 echo >>"$at_stderr"; $as_echo "First dump
24362 tar: foo/a: Directory is new
24363 tar: foo/b: Directory is new
24364 tar: foo/c: Directory is new
24365 tar: foo: Directory is new
24367 tar: foo/a: Directory has been renamed from \`foo/c'
24368 tar: foo/b: Directory has been renamed from \`foo/a'
24369 tar: foo/c: Directory has been renamed from \`foo/b'
24371 $at_diff - "$at_stderr" || at_failed=:
24372 echo >>"$at_stdout"; $as_echo "First dump
24387 Begin directory listing 1
24397 End directory listing 1
24402 Begin directory listing 2
24412 End directory listing 2
24414 $at_diff - "$at_stdout" || at_failed=:
24415 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24417 $at_failed && at_func_log_failure
24421 $as_echo "$at_srcdir/rename03.at:26:
24424 TEST_TAR_FORMAT=oldgnu
24425 export TEST_TAR_FORMAT
24426 TAR_OPTIONS=\"-H oldgnu\"
24431 test -z "`sort < /dev/null 2>&1`" || exit 77
24435 genfile --file foo/file1
24436 genfile --file foo/file2
24439 genfile --file foo/a/filea
24442 genfile --file foo/b/fileb
24445 genfile --file foo/c/filec
24449 echo \"First dump\"
24450 echo \"First dump\">&2
24451 tar -g incr -cf arch.1 -v foo 2>tmperr
24454 # Shuffle directories:
24461 echo \"Second dump\"
24462 echo \"Second dump\" >&2
24463 tar -g incr -cf arch.2 -v foo 2>tmperr
24466 tar xfg arch.1 /dev/null --warning=no-timestamp
24468 echo \"Begin directory listing 1\"
24470 echo \"End directory listing 1\"
24472 tar xfgv arch.2 /dev/null --warning=no-timestamp
24473 echo Begin directory listing 2
24475 echo End directory listing 2
24477 echo rename03.at:26 >"$at_check_line_file"
24479 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24484 TEST_TAR_FORMAT=oldgnu
24485 export TEST_TAR_FORMAT
24486 TAR_OPTIONS="-H oldgnu"
24491 test -z "`sort < /dev/null 2>&1`" || exit 77
24495 genfile --file foo/file1
24496 genfile --file foo/file2
24499 genfile --file foo/a/filea
24502 genfile --file foo/b/fileb
24505 genfile --file foo/c/filec
24510 echo "First dump">&2
24511 tar -g incr -cf arch.1 -v foo 2>tmperr
24514 # Shuffle directories:
24522 echo "Second dump" >&2
24523 tar -g incr -cf arch.2 -v foo 2>tmperr
24526 tar xfg arch.1 /dev/null --warning=no-timestamp
24528 echo "Begin directory listing 1"
24530 echo "End directory listing 1"
24532 tar xfgv arch.2 /dev/null --warning=no-timestamp
24533 echo Begin directory listing 2
24535 echo End directory listing 2
24536 ) ) >"$at_stdout" 2>"$at_stder1"
24537 at_func_filter_trace $?
24542 TEST_TAR_FORMAT=oldgnu
24543 export TEST_TAR_FORMAT
24544 TAR_OPTIONS="-H oldgnu"
24549 test -z "`sort < /dev/null 2>&1`" || exit 77
24553 genfile --file foo/file1
24554 genfile --file foo/file2
24557 genfile --file foo/a/filea
24560 genfile --file foo/b/fileb
24563 genfile --file foo/c/filec
24568 echo "First dump">&2
24569 tar -g incr -cf arch.1 -v foo 2>tmperr
24572 # Shuffle directories:
24580 echo "Second dump" >&2
24581 tar -g incr -cf arch.2 -v foo 2>tmperr
24584 tar xfg arch.1 /dev/null --warning=no-timestamp
24586 echo "Begin directory listing 1"
24588 echo "End directory listing 1"
24590 tar xfgv arch.2 /dev/null --warning=no-timestamp
24591 echo Begin directory listing 2
24593 echo End directory listing 2
24594 ) ) >"$at_stdout" 2>"$at_stderr"
24598 echo >>"$at_stderr"; $as_echo "First dump
24599 tar: foo/a: Directory is new
24600 tar: foo/b: Directory is new
24601 tar: foo/c: Directory is new
24602 tar: foo: Directory is new
24604 tar: foo/a: Directory has been renamed from \`foo/c'
24605 tar: foo/b: Directory has been renamed from \`foo/a'
24606 tar: foo/c: Directory has been renamed from \`foo/b'
24608 $at_diff - "$at_stderr" || at_failed=:
24609 echo >>"$at_stdout"; $as_echo "First dump
24624 Begin directory listing 1
24634 End directory listing 1
24639 Begin directory listing 2
24649 End directory listing 2
24651 $at_diff - "$at_stdout" || at_failed=:
24652 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24654 $at_failed && at_func_log_failure
24658 $as_echo "$at_srcdir/rename03.at:26:
24661 TEST_TAR_FORMAT=posix
24662 export TEST_TAR_FORMAT
24663 TAR_OPTIONS=\"-H posix\"
24668 test -z "`sort < /dev/null 2>&1`" || exit 77
24672 genfile --file foo/file1
24673 genfile --file foo/file2
24676 genfile --file foo/a/filea
24679 genfile --file foo/b/fileb
24682 genfile --file foo/c/filec
24686 echo \"First dump\"
24687 echo \"First dump\">&2
24688 tar -g incr -cf arch.1 -v foo 2>tmperr
24691 # Shuffle directories:
24698 echo \"Second dump\"
24699 echo \"Second dump\" >&2
24700 tar -g incr -cf arch.2 -v foo 2>tmperr
24703 tar xfg arch.1 /dev/null --warning=no-timestamp
24705 echo \"Begin directory listing 1\"
24707 echo \"End directory listing 1\"
24709 tar xfgv arch.2 /dev/null --warning=no-timestamp
24710 echo Begin directory listing 2
24712 echo End directory listing 2
24714 echo rename03.at:26 >"$at_check_line_file"
24716 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24721 TEST_TAR_FORMAT=posix
24722 export TEST_TAR_FORMAT
24723 TAR_OPTIONS="-H posix"
24728 test -z "`sort < /dev/null 2>&1`" || exit 77
24732 genfile --file foo/file1
24733 genfile --file foo/file2
24736 genfile --file foo/a/filea
24739 genfile --file foo/b/fileb
24742 genfile --file foo/c/filec
24747 echo "First dump">&2
24748 tar -g incr -cf arch.1 -v foo 2>tmperr
24751 # Shuffle directories:
24759 echo "Second dump" >&2
24760 tar -g incr -cf arch.2 -v foo 2>tmperr
24763 tar xfg arch.1 /dev/null --warning=no-timestamp
24765 echo "Begin directory listing 1"
24767 echo "End directory listing 1"
24769 tar xfgv arch.2 /dev/null --warning=no-timestamp
24770 echo Begin directory listing 2
24772 echo End directory listing 2
24773 ) ) >"$at_stdout" 2>"$at_stder1"
24774 at_func_filter_trace $?
24779 TEST_TAR_FORMAT=posix
24780 export TEST_TAR_FORMAT
24781 TAR_OPTIONS="-H posix"
24786 test -z "`sort < /dev/null 2>&1`" || exit 77
24790 genfile --file foo/file1
24791 genfile --file foo/file2
24794 genfile --file foo/a/filea
24797 genfile --file foo/b/fileb
24800 genfile --file foo/c/filec
24805 echo "First dump">&2
24806 tar -g incr -cf arch.1 -v foo 2>tmperr
24809 # Shuffle directories:
24817 echo "Second dump" >&2
24818 tar -g incr -cf arch.2 -v foo 2>tmperr
24821 tar xfg arch.1 /dev/null --warning=no-timestamp
24823 echo "Begin directory listing 1"
24825 echo "End directory listing 1"
24827 tar xfgv arch.2 /dev/null --warning=no-timestamp
24828 echo Begin directory listing 2
24830 echo End directory listing 2
24831 ) ) >"$at_stdout" 2>"$at_stderr"
24835 echo >>"$at_stderr"; $as_echo "First dump
24836 tar: foo/a: Directory is new
24837 tar: foo/b: Directory is new
24838 tar: foo/c: Directory is new
24839 tar: foo: Directory is new
24841 tar: foo/a: Directory has been renamed from \`foo/c'
24842 tar: foo/b: Directory has been renamed from \`foo/a'
24843 tar: foo/c: Directory has been renamed from \`foo/b'
24845 $at_diff - "$at_stderr" || at_failed=:
24846 echo >>"$at_stdout"; $as_echo "First dump
24861 Begin directory listing 1
24871 End directory listing 1
24876 Begin directory listing 2
24886 End directory listing 2
24888 $at_diff - "$at_stdout" || at_failed=:
24889 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24891 $at_failed && at_func_log_failure
24898 $at_times_p && times >"$at_times_file"
24899 ) 5>&1 2>&1 | eval $at_tee_pipe
24900 at_status=`cat "$at_status_file"`
24903 # 66. rename04.at:27: renamed directory containing subdirectories
24904 at_setup_line='rename04.at:27'
24905 at_desc="renamed directory containing subdirectories"
24906 $at_quiet $as_echo_n " 66: $at_desc "
24908 test -f $XFAILFILE && at_xfail=yes
24909 echo "# -*- compilation -*-" >> "$at_group_log"
24911 $as_echo "66. rename04.at:27: testing ..."
24919 $as_echo "$at_srcdir/rename04.at:30:
24922 TEST_TAR_FORMAT=gnu
24923 export TEST_TAR_FORMAT
24924 TAR_OPTIONS=\"-H gnu\"
24929 test -z "`sort < /dev/null 2>&1`" || exit 77
24932 decho Creating directory structure
24934 mkdir directory/subdir
24935 genfile --file=directory/file
24937 decho Creating initial archive
24938 tar -cf archive.1 -g db.1 directory
24943 decho Creating incremental archive
24945 tar -cf archive.2 -g db.2 dir
24949 decho First restore
24950 tar -xf archive.1 -g db.1
24951 find directory | sort
24953 decho Second restore
24954 tar -xf archive.2 -g db.2
24957 echo rename04.at:30 >"$at_check_line_file"
24959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24964 TEST_TAR_FORMAT=gnu
24965 export TEST_TAR_FORMAT
24966 TAR_OPTIONS="-H gnu"
24971 test -z "`sort < /dev/null 2>&1`" || exit 77
24974 decho Creating directory structure
24976 mkdir directory/subdir
24977 genfile --file=directory/file
24979 decho Creating initial archive
24980 tar -cf archive.1 -g db.1 directory
24985 decho Creating incremental archive
24987 tar -cf archive.2 -g db.2 dir
24991 decho First restore
24992 tar -xf archive.1 -g db.1
24993 find directory | sort
24995 decho Second restore
24996 tar -xf archive.2 -g db.2
24998 ) ) >"$at_stdout" 2>"$at_stder1"
24999 at_func_filter_trace $?
25004 TEST_TAR_FORMAT=gnu
25005 export TEST_TAR_FORMAT
25006 TAR_OPTIONS="-H gnu"
25011 test -z "`sort < /dev/null 2>&1`" || exit 77
25014 decho Creating directory structure
25016 mkdir directory/subdir
25017 genfile --file=directory/file
25019 decho Creating initial archive
25020 tar -cf archive.1 -g db.1 directory
25025 decho Creating incremental archive
25027 tar -cf archive.2 -g db.2 dir
25031 decho First restore
25032 tar -xf archive.1 -g db.1
25033 find directory | sort
25035 decho Second restore
25036 tar -xf archive.2 -g db.2
25038 ) ) >"$at_stdout" 2>"$at_stderr"
25042 echo >>"$at_stderr"; $as_echo "Creating directory structure
25043 Creating initial archive
25045 Creating incremental archive
25049 $at_diff - "$at_stderr" || at_failed=:
25050 echo >>"$at_stdout"; $as_echo "Creating directory structure
25051 Creating initial archive
25053 Creating incremental archive
25062 $at_diff - "$at_stdout" || at_failed=:
25063 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25065 $at_failed && at_func_log_failure
25069 $as_echo "$at_srcdir/rename04.at:30:
25072 TEST_TAR_FORMAT=oldgnu
25073 export TEST_TAR_FORMAT
25074 TAR_OPTIONS=\"-H oldgnu\"
25079 test -z "`sort < /dev/null 2>&1`" || exit 77
25082 decho Creating directory structure
25084 mkdir directory/subdir
25085 genfile --file=directory/file
25087 decho Creating initial archive
25088 tar -cf archive.1 -g db.1 directory
25093 decho Creating incremental archive
25095 tar -cf archive.2 -g db.2 dir
25099 decho First restore
25100 tar -xf archive.1 -g db.1
25101 find directory | sort
25103 decho Second restore
25104 tar -xf archive.2 -g db.2
25107 echo rename04.at:30 >"$at_check_line_file"
25109 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25114 TEST_TAR_FORMAT=oldgnu
25115 export TEST_TAR_FORMAT
25116 TAR_OPTIONS="-H oldgnu"
25121 test -z "`sort < /dev/null 2>&1`" || exit 77
25124 decho Creating directory structure
25126 mkdir directory/subdir
25127 genfile --file=directory/file
25129 decho Creating initial archive
25130 tar -cf archive.1 -g db.1 directory
25135 decho Creating incremental archive
25137 tar -cf archive.2 -g db.2 dir
25141 decho First restore
25142 tar -xf archive.1 -g db.1
25143 find directory | sort
25145 decho Second restore
25146 tar -xf archive.2 -g db.2
25148 ) ) >"$at_stdout" 2>"$at_stder1"
25149 at_func_filter_trace $?
25154 TEST_TAR_FORMAT=oldgnu
25155 export TEST_TAR_FORMAT
25156 TAR_OPTIONS="-H oldgnu"
25161 test -z "`sort < /dev/null 2>&1`" || exit 77
25164 decho Creating directory structure
25166 mkdir directory/subdir
25167 genfile --file=directory/file
25169 decho Creating initial archive
25170 tar -cf archive.1 -g db.1 directory
25175 decho Creating incremental archive
25177 tar -cf archive.2 -g db.2 dir
25181 decho First restore
25182 tar -xf archive.1 -g db.1
25183 find directory | sort
25185 decho Second restore
25186 tar -xf archive.2 -g db.2
25188 ) ) >"$at_stdout" 2>"$at_stderr"
25192 echo >>"$at_stderr"; $as_echo "Creating directory structure
25193 Creating initial archive
25195 Creating incremental archive
25199 $at_diff - "$at_stderr" || at_failed=:
25200 echo >>"$at_stdout"; $as_echo "Creating directory structure
25201 Creating initial archive
25203 Creating incremental archive
25212 $at_diff - "$at_stdout" || at_failed=:
25213 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25215 $at_failed && at_func_log_failure
25219 $as_echo "$at_srcdir/rename04.at:30:
25222 TEST_TAR_FORMAT=posix
25223 export TEST_TAR_FORMAT
25224 TAR_OPTIONS=\"-H posix\"
25229 test -z "`sort < /dev/null 2>&1`" || exit 77
25232 decho Creating directory structure
25234 mkdir directory/subdir
25235 genfile --file=directory/file
25237 decho Creating initial archive
25238 tar -cf archive.1 -g db.1 directory
25243 decho Creating incremental archive
25245 tar -cf archive.2 -g db.2 dir
25249 decho First restore
25250 tar -xf archive.1 -g db.1
25251 find directory | sort
25253 decho Second restore
25254 tar -xf archive.2 -g db.2
25257 echo rename04.at:30 >"$at_check_line_file"
25259 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25264 TEST_TAR_FORMAT=posix
25265 export TEST_TAR_FORMAT
25266 TAR_OPTIONS="-H posix"
25271 test -z "`sort < /dev/null 2>&1`" || exit 77
25274 decho Creating directory structure
25276 mkdir directory/subdir
25277 genfile --file=directory/file
25279 decho Creating initial archive
25280 tar -cf archive.1 -g db.1 directory
25285 decho Creating incremental archive
25287 tar -cf archive.2 -g db.2 dir
25291 decho First restore
25292 tar -xf archive.1 -g db.1
25293 find directory | sort
25295 decho Second restore
25296 tar -xf archive.2 -g db.2
25298 ) ) >"$at_stdout" 2>"$at_stder1"
25299 at_func_filter_trace $?
25304 TEST_TAR_FORMAT=posix
25305 export TEST_TAR_FORMAT
25306 TAR_OPTIONS="-H posix"
25311 test -z "`sort < /dev/null 2>&1`" || exit 77
25314 decho Creating directory structure
25316 mkdir directory/subdir
25317 genfile --file=directory/file
25319 decho Creating initial archive
25320 tar -cf archive.1 -g db.1 directory
25325 decho Creating incremental archive
25327 tar -cf archive.2 -g db.2 dir
25331 decho First restore
25332 tar -xf archive.1 -g db.1
25333 find directory | sort
25335 decho Second restore
25336 tar -xf archive.2 -g db.2
25338 ) ) >"$at_stdout" 2>"$at_stderr"
25342 echo >>"$at_stderr"; $as_echo "Creating directory structure
25343 Creating initial archive
25345 Creating incremental archive
25349 $at_diff - "$at_stderr" || at_failed=:
25350 echo >>"$at_stdout"; $as_echo "Creating directory structure
25351 Creating initial archive
25353 Creating incremental archive
25362 $at_diff - "$at_stdout" || at_failed=:
25363 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25365 $at_failed && at_func_log_failure
25372 $at_times_p && times >"$at_times_file"
25373 ) 5>&1 2>&1 | eval $at_tee_pipe
25374 at_status=`cat "$at_status_file"`
25377 # 67. rename05.at:24: renamed subdirectories
25378 at_setup_line='rename05.at:24'
25379 at_desc="renamed subdirectories"
25380 $at_quiet $as_echo_n " 67: $at_desc "
25382 test -f $XFAILFILE && at_xfail=yes
25383 echo "# -*- compilation -*-" >> "$at_group_log"
25385 $as_echo "67. rename05.at:24: testing ..."
25393 $as_echo "$at_srcdir/rename05.at:27:
25396 TEST_TAR_FORMAT=gnu
25397 export TEST_TAR_FORMAT
25398 TAR_OPTIONS=\"-H gnu\"
25403 test -z "`sort < /dev/null 2>&1`" || exit 77
25406 decho Creating directory structure
25408 mkdir directory/subdir
25409 genfile --file=directory/file
25411 decho Creating initial archive
25412 tar -cf archive.1 -g db.1 directory
25415 mv directory/subdir directory/subdir.0
25418 decho Creating incremental archive
25420 tar -cf archive.2 -g db.2 dir
25424 decho First restore
25425 tar -xf archive.1 -g db.1 --warning=no-timestamp
25426 find directory | sort
25428 decho Second restore
25429 tar -xf archive.2 -g db.2 --warning=no-timestamp
25432 echo rename05.at:27 >"$at_check_line_file"
25434 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25439 TEST_TAR_FORMAT=gnu
25440 export TEST_TAR_FORMAT
25441 TAR_OPTIONS="-H gnu"
25446 test -z "`sort < /dev/null 2>&1`" || exit 77
25449 decho Creating directory structure
25451 mkdir directory/subdir
25452 genfile --file=directory/file
25454 decho Creating initial archive
25455 tar -cf archive.1 -g db.1 directory
25458 mv directory/subdir directory/subdir.0
25461 decho Creating incremental archive
25463 tar -cf archive.2 -g db.2 dir
25467 decho First restore
25468 tar -xf archive.1 -g db.1 --warning=no-timestamp
25469 find directory | sort
25471 decho Second restore
25472 tar -xf archive.2 -g db.2 --warning=no-timestamp
25474 ) ) >"$at_stdout" 2>"$at_stder1"
25475 at_func_filter_trace $?
25480 TEST_TAR_FORMAT=gnu
25481 export TEST_TAR_FORMAT
25482 TAR_OPTIONS="-H gnu"
25487 test -z "`sort < /dev/null 2>&1`" || exit 77
25490 decho Creating directory structure
25492 mkdir directory/subdir
25493 genfile --file=directory/file
25495 decho Creating initial archive
25496 tar -cf archive.1 -g db.1 directory
25499 mv directory/subdir directory/subdir.0
25502 decho Creating incremental archive
25504 tar -cf archive.2 -g db.2 dir
25508 decho First restore
25509 tar -xf archive.1 -g db.1 --warning=no-timestamp
25510 find directory | sort
25512 decho Second restore
25513 tar -xf archive.2 -g db.2 --warning=no-timestamp
25515 ) ) >"$at_stdout" 2>"$at_stderr"
25519 echo >>"$at_stderr"; $as_echo "Creating directory structure
25520 Creating initial archive
25522 Creating incremental archive
25526 $at_diff - "$at_stderr" || at_failed=:
25527 echo >>"$at_stdout"; $as_echo "Creating directory structure
25528 Creating initial archive
25530 Creating incremental archive
25539 $at_diff - "$at_stdout" || at_failed=:
25540 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25542 $at_failed && at_func_log_failure
25546 $as_echo "$at_srcdir/rename05.at:27:
25549 TEST_TAR_FORMAT=oldgnu
25550 export TEST_TAR_FORMAT
25551 TAR_OPTIONS=\"-H oldgnu\"
25556 test -z "`sort < /dev/null 2>&1`" || exit 77
25559 decho Creating directory structure
25561 mkdir directory/subdir
25562 genfile --file=directory/file
25564 decho Creating initial archive
25565 tar -cf archive.1 -g db.1 directory
25568 mv directory/subdir directory/subdir.0
25571 decho Creating incremental archive
25573 tar -cf archive.2 -g db.2 dir
25577 decho First restore
25578 tar -xf archive.1 -g db.1 --warning=no-timestamp
25579 find directory | sort
25581 decho Second restore
25582 tar -xf archive.2 -g db.2 --warning=no-timestamp
25585 echo rename05.at:27 >"$at_check_line_file"
25587 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25592 TEST_TAR_FORMAT=oldgnu
25593 export TEST_TAR_FORMAT
25594 TAR_OPTIONS="-H oldgnu"
25599 test -z "`sort < /dev/null 2>&1`" || exit 77
25602 decho Creating directory structure
25604 mkdir directory/subdir
25605 genfile --file=directory/file
25607 decho Creating initial archive
25608 tar -cf archive.1 -g db.1 directory
25611 mv directory/subdir directory/subdir.0
25614 decho Creating incremental archive
25616 tar -cf archive.2 -g db.2 dir
25620 decho First restore
25621 tar -xf archive.1 -g db.1 --warning=no-timestamp
25622 find directory | sort
25624 decho Second restore
25625 tar -xf archive.2 -g db.2 --warning=no-timestamp
25627 ) ) >"$at_stdout" 2>"$at_stder1"
25628 at_func_filter_trace $?
25633 TEST_TAR_FORMAT=oldgnu
25634 export TEST_TAR_FORMAT
25635 TAR_OPTIONS="-H oldgnu"
25640 test -z "`sort < /dev/null 2>&1`" || exit 77
25643 decho Creating directory structure
25645 mkdir directory/subdir
25646 genfile --file=directory/file
25648 decho Creating initial archive
25649 tar -cf archive.1 -g db.1 directory
25652 mv directory/subdir directory/subdir.0
25655 decho Creating incremental archive
25657 tar -cf archive.2 -g db.2 dir
25661 decho First restore
25662 tar -xf archive.1 -g db.1 --warning=no-timestamp
25663 find directory | sort
25665 decho Second restore
25666 tar -xf archive.2 -g db.2 --warning=no-timestamp
25668 ) ) >"$at_stdout" 2>"$at_stderr"
25672 echo >>"$at_stderr"; $as_echo "Creating directory structure
25673 Creating initial archive
25675 Creating incremental archive
25679 $at_diff - "$at_stderr" || at_failed=:
25680 echo >>"$at_stdout"; $as_echo "Creating directory structure
25681 Creating initial archive
25683 Creating incremental archive
25692 $at_diff - "$at_stdout" || at_failed=:
25693 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25695 $at_failed && at_func_log_failure
25699 $as_echo "$at_srcdir/rename05.at:27:
25702 TEST_TAR_FORMAT=posix
25703 export TEST_TAR_FORMAT
25704 TAR_OPTIONS=\"-H posix\"
25709 test -z "`sort < /dev/null 2>&1`" || exit 77
25712 decho Creating directory structure
25714 mkdir directory/subdir
25715 genfile --file=directory/file
25717 decho Creating initial archive
25718 tar -cf archive.1 -g db.1 directory
25721 mv directory/subdir directory/subdir.0
25724 decho Creating incremental archive
25726 tar -cf archive.2 -g db.2 dir
25730 decho First restore
25731 tar -xf archive.1 -g db.1 --warning=no-timestamp
25732 find directory | sort
25734 decho Second restore
25735 tar -xf archive.2 -g db.2 --warning=no-timestamp
25738 echo rename05.at:27 >"$at_check_line_file"
25740 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25745 TEST_TAR_FORMAT=posix
25746 export TEST_TAR_FORMAT
25747 TAR_OPTIONS="-H posix"
25752 test -z "`sort < /dev/null 2>&1`" || exit 77
25755 decho Creating directory structure
25757 mkdir directory/subdir
25758 genfile --file=directory/file
25760 decho Creating initial archive
25761 tar -cf archive.1 -g db.1 directory
25764 mv directory/subdir directory/subdir.0
25767 decho Creating incremental archive
25769 tar -cf archive.2 -g db.2 dir
25773 decho First restore
25774 tar -xf archive.1 -g db.1 --warning=no-timestamp
25775 find directory | sort
25777 decho Second restore
25778 tar -xf archive.2 -g db.2 --warning=no-timestamp
25780 ) ) >"$at_stdout" 2>"$at_stder1"
25781 at_func_filter_trace $?
25786 TEST_TAR_FORMAT=posix
25787 export TEST_TAR_FORMAT
25788 TAR_OPTIONS="-H posix"
25793 test -z "`sort < /dev/null 2>&1`" || exit 77
25796 decho Creating directory structure
25798 mkdir directory/subdir
25799 genfile --file=directory/file
25801 decho Creating initial archive
25802 tar -cf archive.1 -g db.1 directory
25805 mv directory/subdir directory/subdir.0
25808 decho Creating incremental archive
25810 tar -cf archive.2 -g db.2 dir
25814 decho First restore
25815 tar -xf archive.1 -g db.1 --warning=no-timestamp
25816 find directory | sort
25818 decho Second restore
25819 tar -xf archive.2 -g db.2 --warning=no-timestamp
25821 ) ) >"$at_stdout" 2>"$at_stderr"
25825 echo >>"$at_stderr"; $as_echo "Creating directory structure
25826 Creating initial archive
25828 Creating incremental archive
25832 $at_diff - "$at_stderr" || at_failed=:
25833 echo >>"$at_stdout"; $as_echo "Creating directory structure
25834 Creating initial archive
25836 Creating incremental archive
25845 $at_diff - "$at_stdout" || at_failed=:
25846 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25848 $at_failed && at_func_log_failure
25855 $at_times_p && times >"$at_times_file"
25856 ) 5>&1 2>&1 | eval $at_tee_pipe
25857 at_status=`cat "$at_status_file"`
25860 # 68. chtype.at:27: changed file types in incrementals
25861 at_setup_line='chtype.at:27'
25862 at_desc="changed file types in incrementals"
25863 $at_quiet $as_echo_n " 68: $at_desc "
25865 test -f $XFAILFILE && at_xfail=yes
25866 echo "# -*- compilation -*-" >> "$at_group_log"
25868 $as_echo "68. chtype.at:27: testing ..."
25876 $as_echo "$at_srcdir/chtype.at:30:
25879 TEST_TAR_FORMAT=gnu
25880 export TEST_TAR_FORMAT
25881 TAR_OPTIONS=\"-H gnu\"
25886 test -z "`sort < /dev/null 2>&1`" || exit 77
25889 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25891 genfile --file directory/a/a
25894 tar --create --file=archive.1 --listed-incremental=db.1 directory
25898 # Remove directory b and create a file with this name.
25899 # Previous versions were not able to restore over this file.
25901 genfile --file directory/b
25902 genfile --file directory/a/b
25905 tar --create --file=archive.2 --listed-incremental=db.2 directory
25910 echo Restore archive.1
25911 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25912 echo Restore archive.2
25913 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25914 find directory | sort
25916 echo chtype.at:30 >"$at_check_line_file"
25918 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25923 TEST_TAR_FORMAT=gnu
25924 export TEST_TAR_FORMAT
25925 TAR_OPTIONS="-H gnu"
25930 test -z "`sort < /dev/null 2>&1`" || exit 77
25933 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25935 genfile --file directory/a/a
25938 tar --create --file=archive.1 --listed-incremental=db.1 directory
25942 # Remove directory b and create a file with this name.
25943 # Previous versions were not able to restore over this file.
25945 genfile --file directory/b
25946 genfile --file directory/a/b
25949 tar --create --file=archive.2 --listed-incremental=db.2 directory
25954 echo Restore archive.1
25955 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25956 echo Restore archive.2
25957 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25958 find directory | sort
25959 ) ) >"$at_stdout" 2>"$at_stder1"
25960 at_func_filter_trace $?
25965 TEST_TAR_FORMAT=gnu
25966 export TEST_TAR_FORMAT
25967 TAR_OPTIONS="-H gnu"
25972 test -z "`sort < /dev/null 2>&1`" || exit 77
25975 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25977 genfile --file directory/a/a
25980 tar --create --file=archive.1 --listed-incremental=db.1 directory
25984 # Remove directory b and create a file with this name.
25985 # Previous versions were not able to restore over this file.
25987 genfile --file directory/b
25988 genfile --file directory/a/b
25991 tar --create --file=archive.2 --listed-incremental=db.2 directory
25996 echo Restore archive.1
25997 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25998 echo Restore archive.2
25999 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26000 find directory | sort
26001 ) ) >"$at_stdout" 2>"$at_stderr"
26005 at_func_diff_devnull "$at_stderr" || at_failed=:
26006 echo >>"$at_stdout"; $as_echo "First backup
26016 $at_diff - "$at_stdout" || at_failed=:
26017 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26019 $at_failed && at_func_log_failure
26023 $as_echo "$at_srcdir/chtype.at:30:
26026 TEST_TAR_FORMAT=oldgnu
26027 export TEST_TAR_FORMAT
26028 TAR_OPTIONS=\"-H oldgnu\"
26033 test -z "`sort < /dev/null 2>&1`" || exit 77
26036 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26038 genfile --file directory/a/a
26041 tar --create --file=archive.1 --listed-incremental=db.1 directory
26045 # Remove directory b and create a file with this name.
26046 # Previous versions were not able to restore over this file.
26048 genfile --file directory/b
26049 genfile --file directory/a/b
26052 tar --create --file=archive.2 --listed-incremental=db.2 directory
26057 echo Restore archive.1
26058 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26059 echo Restore archive.2
26060 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26061 find directory | sort
26063 echo chtype.at:30 >"$at_check_line_file"
26065 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26070 TEST_TAR_FORMAT=oldgnu
26071 export TEST_TAR_FORMAT
26072 TAR_OPTIONS="-H oldgnu"
26077 test -z "`sort < /dev/null 2>&1`" || exit 77
26080 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26082 genfile --file directory/a/a
26085 tar --create --file=archive.1 --listed-incremental=db.1 directory
26089 # Remove directory b and create a file with this name.
26090 # Previous versions were not able to restore over this file.
26092 genfile --file directory/b
26093 genfile --file directory/a/b
26096 tar --create --file=archive.2 --listed-incremental=db.2 directory
26101 echo Restore archive.1
26102 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26103 echo Restore archive.2
26104 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26105 find directory | sort
26106 ) ) >"$at_stdout" 2>"$at_stder1"
26107 at_func_filter_trace $?
26112 TEST_TAR_FORMAT=oldgnu
26113 export TEST_TAR_FORMAT
26114 TAR_OPTIONS="-H oldgnu"
26119 test -z "`sort < /dev/null 2>&1`" || exit 77
26122 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26124 genfile --file directory/a/a
26127 tar --create --file=archive.1 --listed-incremental=db.1 directory
26131 # Remove directory b and create a file with this name.
26132 # Previous versions were not able to restore over this file.
26134 genfile --file directory/b
26135 genfile --file directory/a/b
26138 tar --create --file=archive.2 --listed-incremental=db.2 directory
26143 echo Restore archive.1
26144 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26145 echo Restore archive.2
26146 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26147 find directory | sort
26148 ) ) >"$at_stdout" 2>"$at_stderr"
26152 at_func_diff_devnull "$at_stderr" || at_failed=:
26153 echo >>"$at_stdout"; $as_echo "First backup
26163 $at_diff - "$at_stdout" || at_failed=:
26164 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26166 $at_failed && at_func_log_failure
26170 $as_echo "$at_srcdir/chtype.at:30:
26173 TEST_TAR_FORMAT=posix
26174 export TEST_TAR_FORMAT
26175 TAR_OPTIONS=\"-H posix\"
26180 test -z "`sort < /dev/null 2>&1`" || exit 77
26183 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26185 genfile --file directory/a/a
26188 tar --create --file=archive.1 --listed-incremental=db.1 directory
26192 # Remove directory b and create a file with this name.
26193 # Previous versions were not able to restore over this file.
26195 genfile --file directory/b
26196 genfile --file directory/a/b
26199 tar --create --file=archive.2 --listed-incremental=db.2 directory
26204 echo Restore archive.1
26205 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26206 echo Restore archive.2
26207 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26208 find directory | sort
26210 echo chtype.at:30 >"$at_check_line_file"
26212 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26217 TEST_TAR_FORMAT=posix
26218 export TEST_TAR_FORMAT
26219 TAR_OPTIONS="-H posix"
26224 test -z "`sort < /dev/null 2>&1`" || exit 77
26227 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26229 genfile --file directory/a/a
26232 tar --create --file=archive.1 --listed-incremental=db.1 directory
26236 # Remove directory b and create a file with this name.
26237 # Previous versions were not able to restore over this file.
26239 genfile --file directory/b
26240 genfile --file directory/a/b
26243 tar --create --file=archive.2 --listed-incremental=db.2 directory
26248 echo Restore archive.1
26249 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26250 echo Restore archive.2
26251 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26252 find directory | sort
26253 ) ) >"$at_stdout" 2>"$at_stder1"
26254 at_func_filter_trace $?
26259 TEST_TAR_FORMAT=posix
26260 export TEST_TAR_FORMAT
26261 TAR_OPTIONS="-H posix"
26266 test -z "`sort < /dev/null 2>&1`" || exit 77
26269 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26271 genfile --file directory/a/a
26274 tar --create --file=archive.1 --listed-incremental=db.1 directory
26278 # Remove directory b and create a file with this name.
26279 # Previous versions were not able to restore over this file.
26281 genfile --file directory/b
26282 genfile --file directory/a/b
26285 tar --create --file=archive.2 --listed-incremental=db.2 directory
26290 echo Restore archive.1
26291 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26292 echo Restore archive.2
26293 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26294 find directory | sort
26295 ) ) >"$at_stdout" 2>"$at_stderr"
26299 at_func_diff_devnull "$at_stderr" || at_failed=:
26300 echo >>"$at_stdout"; $as_echo "First backup
26310 $at_diff - "$at_stdout" || at_failed=:
26311 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26313 $at_failed && at_func_log_failure
26320 $at_times_p && times >"$at_times_file"
26321 ) 5>&1 2>&1 | eval $at_tee_pipe
26322 at_status=`cat "$at_status_file"`
26325 # 69. ignfail.at:23: ignfail
26326 at_setup_line='ignfail.at:23'
26328 $at_quiet $as_echo_n " 69: $at_desc "
26330 test -f $XFAILFILE && at_xfail=yes
26331 echo "# -*- compilation -*-" >> "$at_group_log"
26333 $as_echo "69. ignfail.at:23: testing ..."
26341 $as_echo "$at_srcdir/ignfail.at:26:
26345 export TEST_TAR_FORMAT
26346 TAR_OPTIONS=\"-H v7\"
26350 # The test is meaningless for super-user.
26354 cat $$ > /dev/null 2>&1
26357 test $result -eq 0 && exit 77
26362 touch directory/file
26366 tar cf archive file
26369 test \$status = 2 || exit 1
26373 tar cf archive --ignore-failed-read file || exit 1
26376 test \$status = 0 || exit 1
26379 chmod 000 directory
26380 tar cf archive directory
26382 chmod 700 directory
26383 test \$status = 2 || exit 1
26386 chmod 000 directory
26387 tar cf archive --ignore-failed-read directory || exit 1
26389 chmod 700 directory
26392 echo ignfail.at:26 >"$at_check_line_file"
26394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26400 export TEST_TAR_FORMAT
26401 TAR_OPTIONS="-H v7"
26405 # The test is meaningless for super-user.
26409 cat $$ > /dev/null 2>&1
26412 test $result -eq 0 && exit 77
26417 touch directory/file
26421 tar cf archive file
26424 test $status = 2 || exit 1
26428 tar cf archive --ignore-failed-read file || exit 1
26431 test $status = 0 || exit 1
26434 chmod 000 directory
26435 tar cf archive directory
26437 chmod 700 directory
26438 test $status = 2 || exit 1
26441 chmod 000 directory
26442 tar cf archive --ignore-failed-read directory || exit 1
26444 chmod 700 directory
26446 ) ) >"$at_stdout" 2>"$at_stder1"
26447 at_func_filter_trace $?
26453 export TEST_TAR_FORMAT
26454 TAR_OPTIONS="-H v7"
26458 # The test is meaningless for super-user.
26462 cat $$ > /dev/null 2>&1
26465 test $result -eq 0 && exit 77
26470 touch directory/file
26474 tar cf archive file
26477 test $status = 2 || exit 1
26481 tar cf archive --ignore-failed-read file || exit 1
26484 test $status = 0 || exit 1
26487 chmod 000 directory
26488 tar cf archive directory
26490 chmod 700 directory
26491 test $status = 2 || exit 1
26494 chmod 000 directory
26495 tar cf archive --ignore-failed-read directory || exit 1
26497 chmod 700 directory
26499 ) ) >"$at_stdout" 2>"$at_stderr"
26503 echo >>"$at_stderr"; $as_echo "-----
26504 tar: file: Cannot open: Permission denied
26505 tar: Exiting with failure status due to previous errors
26507 tar: file: Warning: Cannot open: Permission denied
26509 tar: directory: Cannot open: Permission denied
26510 tar: Exiting with failure status due to previous errors
26512 tar: directory: Warning: Cannot open: Permission denied
26514 $at_diff - "$at_stderr" || at_failed=:
26515 at_func_diff_devnull "$at_stdout" || at_failed=:
26516 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26518 $at_failed && at_func_log_failure
26522 $as_echo "$at_srcdir/ignfail.at:26:
26525 TEST_TAR_FORMAT=oldgnu
26526 export TEST_TAR_FORMAT
26527 TAR_OPTIONS=\"-H oldgnu\"
26531 # The test is meaningless for super-user.
26535 cat $$ > /dev/null 2>&1
26538 test $result -eq 0 && exit 77
26543 touch directory/file
26547 tar cf archive file
26550 test \$status = 2 || exit 1
26554 tar cf archive --ignore-failed-read file || exit 1
26557 test \$status = 0 || exit 1
26560 chmod 000 directory
26561 tar cf archive directory
26563 chmod 700 directory
26564 test \$status = 2 || exit 1
26567 chmod 000 directory
26568 tar cf archive --ignore-failed-read directory || exit 1
26570 chmod 700 directory
26573 echo ignfail.at:26 >"$at_check_line_file"
26575 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26580 TEST_TAR_FORMAT=oldgnu
26581 export TEST_TAR_FORMAT
26582 TAR_OPTIONS="-H oldgnu"
26586 # The test is meaningless for super-user.
26590 cat $$ > /dev/null 2>&1
26593 test $result -eq 0 && exit 77
26598 touch directory/file
26602 tar cf archive file
26605 test $status = 2 || exit 1
26609 tar cf archive --ignore-failed-read file || exit 1
26612 test $status = 0 || exit 1
26615 chmod 000 directory
26616 tar cf archive directory
26618 chmod 700 directory
26619 test $status = 2 || exit 1
26622 chmod 000 directory
26623 tar cf archive --ignore-failed-read directory || exit 1
26625 chmod 700 directory
26627 ) ) >"$at_stdout" 2>"$at_stder1"
26628 at_func_filter_trace $?
26633 TEST_TAR_FORMAT=oldgnu
26634 export TEST_TAR_FORMAT
26635 TAR_OPTIONS="-H oldgnu"
26639 # The test is meaningless for super-user.
26643 cat $$ > /dev/null 2>&1
26646 test $result -eq 0 && exit 77
26651 touch directory/file
26655 tar cf archive file
26658 test $status = 2 || exit 1
26662 tar cf archive --ignore-failed-read file || exit 1
26665 test $status = 0 || exit 1
26668 chmod 000 directory
26669 tar cf archive directory
26671 chmod 700 directory
26672 test $status = 2 || exit 1
26675 chmod 000 directory
26676 tar cf archive --ignore-failed-read directory || exit 1
26678 chmod 700 directory
26680 ) ) >"$at_stdout" 2>"$at_stderr"
26684 echo >>"$at_stderr"; $as_echo "-----
26685 tar: file: Cannot open: Permission denied
26686 tar: Exiting with failure status due to previous errors
26688 tar: file: Warning: Cannot open: Permission denied
26690 tar: directory: Cannot open: Permission denied
26691 tar: Exiting with failure status due to previous errors
26693 tar: directory: Warning: Cannot open: Permission denied
26695 $at_diff - "$at_stderr" || at_failed=:
26696 at_func_diff_devnull "$at_stdout" || at_failed=:
26697 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26699 $at_failed && at_func_log_failure
26703 $as_echo "$at_srcdir/ignfail.at:26:
26706 TEST_TAR_FORMAT=ustar
26707 export TEST_TAR_FORMAT
26708 TAR_OPTIONS=\"-H ustar\"
26712 # The test is meaningless for super-user.
26716 cat $$ > /dev/null 2>&1
26719 test $result -eq 0 && exit 77
26724 touch directory/file
26728 tar cf archive file
26731 test \$status = 2 || exit 1
26735 tar cf archive --ignore-failed-read file || exit 1
26738 test \$status = 0 || exit 1
26741 chmod 000 directory
26742 tar cf archive directory
26744 chmod 700 directory
26745 test \$status = 2 || exit 1
26748 chmod 000 directory
26749 tar cf archive --ignore-failed-read directory || exit 1
26751 chmod 700 directory
26754 echo ignfail.at:26 >"$at_check_line_file"
26756 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26761 TEST_TAR_FORMAT=ustar
26762 export TEST_TAR_FORMAT
26763 TAR_OPTIONS="-H ustar"
26767 # The test is meaningless for super-user.
26771 cat $$ > /dev/null 2>&1
26774 test $result -eq 0 && exit 77
26779 touch directory/file
26783 tar cf archive file
26786 test $status = 2 || exit 1
26790 tar cf archive --ignore-failed-read file || exit 1
26793 test $status = 0 || exit 1
26796 chmod 000 directory
26797 tar cf archive directory
26799 chmod 700 directory
26800 test $status = 2 || exit 1
26803 chmod 000 directory
26804 tar cf archive --ignore-failed-read directory || exit 1
26806 chmod 700 directory
26808 ) ) >"$at_stdout" 2>"$at_stder1"
26809 at_func_filter_trace $?
26814 TEST_TAR_FORMAT=ustar
26815 export TEST_TAR_FORMAT
26816 TAR_OPTIONS="-H ustar"
26820 # The test is meaningless for super-user.
26824 cat $$ > /dev/null 2>&1
26827 test $result -eq 0 && exit 77
26832 touch directory/file
26836 tar cf archive file
26839 test $status = 2 || exit 1
26843 tar cf archive --ignore-failed-read file || exit 1
26846 test $status = 0 || exit 1
26849 chmod 000 directory
26850 tar cf archive directory
26852 chmod 700 directory
26853 test $status = 2 || exit 1
26856 chmod 000 directory
26857 tar cf archive --ignore-failed-read directory || exit 1
26859 chmod 700 directory
26861 ) ) >"$at_stdout" 2>"$at_stderr"
26865 echo >>"$at_stderr"; $as_echo "-----
26866 tar: file: Cannot open: Permission denied
26867 tar: Exiting with failure status due to previous errors
26869 tar: file: Warning: Cannot open: Permission denied
26871 tar: directory: Cannot open: Permission denied
26872 tar: Exiting with failure status due to previous errors
26874 tar: directory: Warning: Cannot open: Permission denied
26876 $at_diff - "$at_stderr" || at_failed=:
26877 at_func_diff_devnull "$at_stdout" || at_failed=:
26878 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26880 $at_failed && at_func_log_failure
26884 $as_echo "$at_srcdir/ignfail.at:26:
26887 TEST_TAR_FORMAT=posix
26888 export TEST_TAR_FORMAT
26889 TAR_OPTIONS=\"-H posix\"
26893 # The test is meaningless for super-user.
26897 cat $$ > /dev/null 2>&1
26900 test $result -eq 0 && exit 77
26905 touch directory/file
26909 tar cf archive file
26912 test \$status = 2 || exit 1
26916 tar cf archive --ignore-failed-read file || exit 1
26919 test \$status = 0 || exit 1
26922 chmod 000 directory
26923 tar cf archive directory
26925 chmod 700 directory
26926 test \$status = 2 || exit 1
26929 chmod 000 directory
26930 tar cf archive --ignore-failed-read directory || exit 1
26932 chmod 700 directory
26935 echo ignfail.at:26 >"$at_check_line_file"
26937 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26942 TEST_TAR_FORMAT=posix
26943 export TEST_TAR_FORMAT
26944 TAR_OPTIONS="-H posix"
26948 # The test is meaningless for super-user.
26952 cat $$ > /dev/null 2>&1
26955 test $result -eq 0 && exit 77
26960 touch directory/file
26964 tar cf archive file
26967 test $status = 2 || exit 1
26971 tar cf archive --ignore-failed-read file || exit 1
26974 test $status = 0 || exit 1
26977 chmod 000 directory
26978 tar cf archive directory
26980 chmod 700 directory
26981 test $status = 2 || exit 1
26984 chmod 000 directory
26985 tar cf archive --ignore-failed-read directory || exit 1
26987 chmod 700 directory
26989 ) ) >"$at_stdout" 2>"$at_stder1"
26990 at_func_filter_trace $?
26995 TEST_TAR_FORMAT=posix
26996 export TEST_TAR_FORMAT
26997 TAR_OPTIONS="-H posix"
27001 # The test is meaningless for super-user.
27005 cat $$ > /dev/null 2>&1
27008 test $result -eq 0 && exit 77
27013 touch directory/file
27017 tar cf archive file
27020 test $status = 2 || exit 1
27024 tar cf archive --ignore-failed-read file || exit 1
27027 test $status = 0 || exit 1
27030 chmod 000 directory
27031 tar cf archive directory
27033 chmod 700 directory
27034 test $status = 2 || exit 1
27037 chmod 000 directory
27038 tar cf archive --ignore-failed-read directory || exit 1
27040 chmod 700 directory
27042 ) ) >"$at_stdout" 2>"$at_stderr"
27046 echo >>"$at_stderr"; $as_echo "-----
27047 tar: file: Cannot open: Permission denied
27048 tar: Exiting with failure status due to previous errors
27050 tar: file: Warning: Cannot open: Permission denied
27052 tar: directory: Cannot open: Permission denied
27053 tar: Exiting with failure status due to previous errors
27055 tar: directory: Warning: Cannot open: Permission denied
27057 $at_diff - "$at_stderr" || at_failed=:
27058 at_func_diff_devnull "$at_stdout" || at_failed=:
27059 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27061 $at_failed && at_func_log_failure
27065 $as_echo "$at_srcdir/ignfail.at:26:
27068 TEST_TAR_FORMAT=gnu
27069 export TEST_TAR_FORMAT
27070 TAR_OPTIONS=\"-H gnu\"
27074 # The test is meaningless for super-user.
27078 cat $$ > /dev/null 2>&1
27081 test $result -eq 0 && exit 77
27086 touch directory/file
27090 tar cf archive file
27093 test \$status = 2 || exit 1
27097 tar cf archive --ignore-failed-read file || exit 1
27100 test \$status = 0 || exit 1
27103 chmod 000 directory
27104 tar cf archive directory
27106 chmod 700 directory
27107 test \$status = 2 || exit 1
27110 chmod 000 directory
27111 tar cf archive --ignore-failed-read directory || exit 1
27113 chmod 700 directory
27116 echo ignfail.at:26 >"$at_check_line_file"
27118 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27123 TEST_TAR_FORMAT=gnu
27124 export TEST_TAR_FORMAT
27125 TAR_OPTIONS="-H gnu"
27129 # The test is meaningless for super-user.
27133 cat $$ > /dev/null 2>&1
27136 test $result -eq 0 && exit 77
27141 touch directory/file
27145 tar cf archive file
27148 test $status = 2 || exit 1
27152 tar cf archive --ignore-failed-read file || exit 1
27155 test $status = 0 || exit 1
27158 chmod 000 directory
27159 tar cf archive directory
27161 chmod 700 directory
27162 test $status = 2 || exit 1
27165 chmod 000 directory
27166 tar cf archive --ignore-failed-read directory || exit 1
27168 chmod 700 directory
27170 ) ) >"$at_stdout" 2>"$at_stder1"
27171 at_func_filter_trace $?
27176 TEST_TAR_FORMAT=gnu
27177 export TEST_TAR_FORMAT
27178 TAR_OPTIONS="-H gnu"
27182 # The test is meaningless for super-user.
27186 cat $$ > /dev/null 2>&1
27189 test $result -eq 0 && exit 77
27194 touch directory/file
27198 tar cf archive file
27201 test $status = 2 || exit 1
27205 tar cf archive --ignore-failed-read file || exit 1
27208 test $status = 0 || exit 1
27211 chmod 000 directory
27212 tar cf archive directory
27214 chmod 700 directory
27215 test $status = 2 || exit 1
27218 chmod 000 directory
27219 tar cf archive --ignore-failed-read directory || exit 1
27221 chmod 700 directory
27223 ) ) >"$at_stdout" 2>"$at_stderr"
27227 echo >>"$at_stderr"; $as_echo "-----
27228 tar: file: Cannot open: Permission denied
27229 tar: Exiting with failure status due to previous errors
27231 tar: file: Warning: Cannot open: Permission denied
27233 tar: directory: Cannot open: Permission denied
27234 tar: Exiting with failure status due to previous errors
27236 tar: directory: Warning: Cannot open: Permission denied
27238 $at_diff - "$at_stderr" || at_failed=:
27239 at_func_diff_devnull "$at_stdout" || at_failed=:
27240 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27242 $at_failed && at_func_log_failure
27249 $at_times_p && times >"$at_times_file"
27250 ) 5>&1 2>&1 | eval $at_tee_pipe
27251 at_status=`cat "$at_status_file"`
27254 # 70. link01.at:33: link count gt 2
27255 at_setup_line='link01.at:33'
27256 at_desc="link count gt 2"
27257 $at_quiet $as_echo_n " 70: $at_desc "
27259 test -f $XFAILFILE && at_xfail=yes
27260 echo "# -*- compilation -*-" >> "$at_group_log"
27262 $as_echo "70. link01.at:33: testing ..."
27270 $as_echo "$at_srcdir/link01.at:36:
27274 export TEST_TAR_FORMAT
27275 TAR_OPTIONS=\"-H v7\"
27280 mkdir directory/test1
27281 mkdir directory/test2
27283 echo TEST > directory/test1/test.txt
27284 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27286 tar cf archive directory/test1/test.txt directory/test1/test.txt
27289 tar xf archive --warning=no-timestamp
27293 echo link01.at:36 >"$at_check_line_file"
27295 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27301 export TEST_TAR_FORMAT
27302 TAR_OPTIONS="-H v7"
27307 mkdir directory/test1
27308 mkdir directory/test2
27310 echo TEST > directory/test1/test.txt
27311 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27313 tar cf archive directory/test1/test.txt directory/test1/test.txt
27316 tar xf archive --warning=no-timestamp
27319 ) ) >"$at_stdout" 2>"$at_stder1"
27320 at_func_filter_trace $?
27326 export TEST_TAR_FORMAT
27327 TAR_OPTIONS="-H v7"
27332 mkdir directory/test1
27333 mkdir directory/test2
27335 echo TEST > directory/test1/test.txt
27336 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27338 tar cf archive directory/test1/test.txt directory/test1/test.txt
27341 tar xf archive --warning=no-timestamp
27344 ) ) >"$at_stdout" 2>"$at_stderr"
27348 at_func_diff_devnull "$at_stderr" || at_failed=:
27349 echo >>"$at_stdout"; $as_echo "test.txt
27351 $at_diff - "$at_stdout" || at_failed=:
27352 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27354 $at_failed && at_func_log_failure
27358 $as_echo "$at_srcdir/link01.at:36:
27361 TEST_TAR_FORMAT=oldgnu
27362 export TEST_TAR_FORMAT
27363 TAR_OPTIONS=\"-H oldgnu\"
27368 mkdir directory/test1
27369 mkdir directory/test2
27371 echo TEST > directory/test1/test.txt
27372 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27374 tar cf archive directory/test1/test.txt directory/test1/test.txt
27377 tar xf archive --warning=no-timestamp
27381 echo link01.at:36 >"$at_check_line_file"
27383 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27388 TEST_TAR_FORMAT=oldgnu
27389 export TEST_TAR_FORMAT
27390 TAR_OPTIONS="-H oldgnu"
27395 mkdir directory/test1
27396 mkdir directory/test2
27398 echo TEST > directory/test1/test.txt
27399 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27401 tar cf archive directory/test1/test.txt directory/test1/test.txt
27404 tar xf archive --warning=no-timestamp
27407 ) ) >"$at_stdout" 2>"$at_stder1"
27408 at_func_filter_trace $?
27413 TEST_TAR_FORMAT=oldgnu
27414 export TEST_TAR_FORMAT
27415 TAR_OPTIONS="-H oldgnu"
27420 mkdir directory/test1
27421 mkdir directory/test2
27423 echo TEST > directory/test1/test.txt
27424 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27426 tar cf archive directory/test1/test.txt directory/test1/test.txt
27429 tar xf archive --warning=no-timestamp
27432 ) ) >"$at_stdout" 2>"$at_stderr"
27436 at_func_diff_devnull "$at_stderr" || at_failed=:
27437 echo >>"$at_stdout"; $as_echo "test.txt
27439 $at_diff - "$at_stdout" || at_failed=:
27440 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27442 $at_failed && at_func_log_failure
27446 $as_echo "$at_srcdir/link01.at:36:
27449 TEST_TAR_FORMAT=ustar
27450 export TEST_TAR_FORMAT
27451 TAR_OPTIONS=\"-H ustar\"
27456 mkdir directory/test1
27457 mkdir directory/test2
27459 echo TEST > directory/test1/test.txt
27460 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27462 tar cf archive directory/test1/test.txt directory/test1/test.txt
27465 tar xf archive --warning=no-timestamp
27469 echo link01.at:36 >"$at_check_line_file"
27471 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27476 TEST_TAR_FORMAT=ustar
27477 export TEST_TAR_FORMAT
27478 TAR_OPTIONS="-H ustar"
27483 mkdir directory/test1
27484 mkdir directory/test2
27486 echo TEST > directory/test1/test.txt
27487 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27489 tar cf archive directory/test1/test.txt directory/test1/test.txt
27492 tar xf archive --warning=no-timestamp
27495 ) ) >"$at_stdout" 2>"$at_stder1"
27496 at_func_filter_trace $?
27501 TEST_TAR_FORMAT=ustar
27502 export TEST_TAR_FORMAT
27503 TAR_OPTIONS="-H ustar"
27508 mkdir directory/test1
27509 mkdir directory/test2
27511 echo TEST > directory/test1/test.txt
27512 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27514 tar cf archive directory/test1/test.txt directory/test1/test.txt
27517 tar xf archive --warning=no-timestamp
27520 ) ) >"$at_stdout" 2>"$at_stderr"
27524 at_func_diff_devnull "$at_stderr" || at_failed=:
27525 echo >>"$at_stdout"; $as_echo "test.txt
27527 $at_diff - "$at_stdout" || at_failed=:
27528 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27530 $at_failed && at_func_log_failure
27534 $as_echo "$at_srcdir/link01.at:36:
27537 TEST_TAR_FORMAT=posix
27538 export TEST_TAR_FORMAT
27539 TAR_OPTIONS=\"-H posix\"
27544 mkdir directory/test1
27545 mkdir directory/test2
27547 echo TEST > directory/test1/test.txt
27548 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27550 tar cf archive directory/test1/test.txt directory/test1/test.txt
27553 tar xf archive --warning=no-timestamp
27557 echo link01.at:36 >"$at_check_line_file"
27559 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27564 TEST_TAR_FORMAT=posix
27565 export TEST_TAR_FORMAT
27566 TAR_OPTIONS="-H posix"
27571 mkdir directory/test1
27572 mkdir directory/test2
27574 echo TEST > directory/test1/test.txt
27575 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27577 tar cf archive directory/test1/test.txt directory/test1/test.txt
27580 tar xf archive --warning=no-timestamp
27583 ) ) >"$at_stdout" 2>"$at_stder1"
27584 at_func_filter_trace $?
27589 TEST_TAR_FORMAT=posix
27590 export TEST_TAR_FORMAT
27591 TAR_OPTIONS="-H posix"
27596 mkdir directory/test1
27597 mkdir directory/test2
27599 echo TEST > directory/test1/test.txt
27600 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27602 tar cf archive directory/test1/test.txt directory/test1/test.txt
27605 tar xf archive --warning=no-timestamp
27608 ) ) >"$at_stdout" 2>"$at_stderr"
27612 at_func_diff_devnull "$at_stderr" || at_failed=:
27613 echo >>"$at_stdout"; $as_echo "test.txt
27615 $at_diff - "$at_stdout" || at_failed=:
27616 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27618 $at_failed && at_func_log_failure
27622 $as_echo "$at_srcdir/link01.at:36:
27625 TEST_TAR_FORMAT=gnu
27626 export TEST_TAR_FORMAT
27627 TAR_OPTIONS=\"-H gnu\"
27632 mkdir directory/test1
27633 mkdir directory/test2
27635 echo TEST > directory/test1/test.txt
27636 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27638 tar cf archive directory/test1/test.txt directory/test1/test.txt
27641 tar xf archive --warning=no-timestamp
27645 echo link01.at:36 >"$at_check_line_file"
27647 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27652 TEST_TAR_FORMAT=gnu
27653 export TEST_TAR_FORMAT
27654 TAR_OPTIONS="-H gnu"
27659 mkdir directory/test1
27660 mkdir directory/test2
27662 echo TEST > directory/test1/test.txt
27663 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27665 tar cf archive directory/test1/test.txt directory/test1/test.txt
27668 tar xf archive --warning=no-timestamp
27671 ) ) >"$at_stdout" 2>"$at_stder1"
27672 at_func_filter_trace $?
27677 TEST_TAR_FORMAT=gnu
27678 export TEST_TAR_FORMAT
27679 TAR_OPTIONS="-H gnu"
27684 mkdir directory/test1
27685 mkdir directory/test2
27687 echo TEST > directory/test1/test.txt
27688 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27690 tar cf archive directory/test1/test.txt directory/test1/test.txt
27693 tar xf archive --warning=no-timestamp
27696 ) ) >"$at_stdout" 2>"$at_stderr"
27700 at_func_diff_devnull "$at_stderr" || at_failed=:
27701 echo >>"$at_stdout"; $as_echo "test.txt
27703 $at_diff - "$at_stdout" || at_failed=:
27704 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27706 $at_failed && at_func_log_failure
27713 $at_times_p && times >"$at_times_file"
27714 ) 5>&1 2>&1 | eval $at_tee_pipe
27715 at_status=`cat "$at_status_file"`
27718 # 71. link02.at:32: preserve hard links with --remove-files
27719 at_setup_line='link02.at:32'
27720 at_desc="preserve hard links with --remove-files"
27721 $at_quiet $as_echo_n " 71: $at_desc "
27723 test -f $XFAILFILE && at_xfail=yes
27724 echo "# -*- compilation -*-" >> "$at_group_log"
27726 $as_echo "71. link02.at:32: testing ..."
27734 $as_echo "$at_srcdir/link02.at:35:
27738 export TEST_TAR_FORMAT
27739 TAR_OPTIONS=\"-H v7\"
27743 genfile -l 64 -f file1
27747 tar -c -f archive --remove-files file1 file2 file3 file4
27748 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27750 echo link02.at:35 >"$at_check_line_file"
27752 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27758 export TEST_TAR_FORMAT
27759 TAR_OPTIONS="-H v7"
27763 genfile -l 64 -f file1
27767 tar -c -f archive --remove-files file1 file2 file3 file4
27768 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27769 ) ) >"$at_stdout" 2>"$at_stder1"
27770 at_func_filter_trace $?
27776 export TEST_TAR_FORMAT
27777 TAR_OPTIONS="-H v7"
27781 genfile -l 64 -f file1
27785 tar -c -f archive --remove-files file1 file2 file3 file4
27786 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27787 ) ) >"$at_stdout" 2>"$at_stderr"
27791 at_func_diff_devnull "$at_stderr" || at_failed=:
27792 echo >>"$at_stdout"; $as_echo "file1
27796 $at_diff - "$at_stdout" || at_failed=:
27797 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27799 $at_failed && at_func_log_failure
27803 $as_echo "$at_srcdir/link02.at:35:
27806 TEST_TAR_FORMAT=oldgnu
27807 export TEST_TAR_FORMAT
27808 TAR_OPTIONS=\"-H oldgnu\"
27812 genfile -l 64 -f file1
27816 tar -c -f archive --remove-files file1 file2 file3 file4
27817 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27819 echo link02.at:35 >"$at_check_line_file"
27821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27826 TEST_TAR_FORMAT=oldgnu
27827 export TEST_TAR_FORMAT
27828 TAR_OPTIONS="-H oldgnu"
27832 genfile -l 64 -f file1
27836 tar -c -f archive --remove-files file1 file2 file3 file4
27837 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27838 ) ) >"$at_stdout" 2>"$at_stder1"
27839 at_func_filter_trace $?
27844 TEST_TAR_FORMAT=oldgnu
27845 export TEST_TAR_FORMAT
27846 TAR_OPTIONS="-H oldgnu"
27850 genfile -l 64 -f file1
27854 tar -c -f archive --remove-files file1 file2 file3 file4
27855 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27856 ) ) >"$at_stdout" 2>"$at_stderr"
27860 at_func_diff_devnull "$at_stderr" || at_failed=:
27861 echo >>"$at_stdout"; $as_echo "file1
27865 $at_diff - "$at_stdout" || at_failed=:
27866 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27868 $at_failed && at_func_log_failure
27872 $as_echo "$at_srcdir/link02.at:35:
27875 TEST_TAR_FORMAT=ustar
27876 export TEST_TAR_FORMAT
27877 TAR_OPTIONS=\"-H ustar\"
27881 genfile -l 64 -f file1
27885 tar -c -f archive --remove-files file1 file2 file3 file4
27886 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27888 echo link02.at:35 >"$at_check_line_file"
27890 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27895 TEST_TAR_FORMAT=ustar
27896 export TEST_TAR_FORMAT
27897 TAR_OPTIONS="-H ustar"
27901 genfile -l 64 -f file1
27905 tar -c -f archive --remove-files file1 file2 file3 file4
27906 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27907 ) ) >"$at_stdout" 2>"$at_stder1"
27908 at_func_filter_trace $?
27913 TEST_TAR_FORMAT=ustar
27914 export TEST_TAR_FORMAT
27915 TAR_OPTIONS="-H ustar"
27919 genfile -l 64 -f file1
27923 tar -c -f archive --remove-files file1 file2 file3 file4
27924 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27925 ) ) >"$at_stdout" 2>"$at_stderr"
27929 at_func_diff_devnull "$at_stderr" || at_failed=:
27930 echo >>"$at_stdout"; $as_echo "file1
27934 $at_diff - "$at_stdout" || at_failed=:
27935 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27937 $at_failed && at_func_log_failure
27941 $as_echo "$at_srcdir/link02.at:35:
27944 TEST_TAR_FORMAT=posix
27945 export TEST_TAR_FORMAT
27946 TAR_OPTIONS=\"-H posix\"
27950 genfile -l 64 -f file1
27954 tar -c -f archive --remove-files file1 file2 file3 file4
27955 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27957 echo link02.at:35 >"$at_check_line_file"
27959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27964 TEST_TAR_FORMAT=posix
27965 export TEST_TAR_FORMAT
27966 TAR_OPTIONS="-H posix"
27970 genfile -l 64 -f file1
27974 tar -c -f archive --remove-files file1 file2 file3 file4
27975 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27976 ) ) >"$at_stdout" 2>"$at_stder1"
27977 at_func_filter_trace $?
27982 TEST_TAR_FORMAT=posix
27983 export TEST_TAR_FORMAT
27984 TAR_OPTIONS="-H posix"
27988 genfile -l 64 -f file1
27992 tar -c -f archive --remove-files file1 file2 file3 file4
27993 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27994 ) ) >"$at_stdout" 2>"$at_stderr"
27998 at_func_diff_devnull "$at_stderr" || at_failed=:
27999 echo >>"$at_stdout"; $as_echo "file1
28003 $at_diff - "$at_stdout" || at_failed=:
28004 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28006 $at_failed && at_func_log_failure
28010 $as_echo "$at_srcdir/link02.at:35:
28013 TEST_TAR_FORMAT=gnu
28014 export TEST_TAR_FORMAT
28015 TAR_OPTIONS=\"-H gnu\"
28019 genfile -l 64 -f file1
28023 tar -c -f archive --remove-files file1 file2 file3 file4
28024 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28026 echo link02.at:35 >"$at_check_line_file"
28028 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28033 TEST_TAR_FORMAT=gnu
28034 export TEST_TAR_FORMAT
28035 TAR_OPTIONS="-H gnu"
28039 genfile -l 64 -f file1
28043 tar -c -f archive --remove-files file1 file2 file3 file4
28044 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28045 ) ) >"$at_stdout" 2>"$at_stder1"
28046 at_func_filter_trace $?
28051 TEST_TAR_FORMAT=gnu
28052 export TEST_TAR_FORMAT
28053 TAR_OPTIONS="-H gnu"
28057 genfile -l 64 -f file1
28061 tar -c -f archive --remove-files file1 file2 file3 file4
28062 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28063 ) ) >"$at_stdout" 2>"$at_stderr"
28067 at_func_diff_devnull "$at_stderr" || at_failed=:
28068 echo >>"$at_stdout"; $as_echo "file1
28072 $at_diff - "$at_stdout" || at_failed=:
28073 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28075 $at_failed && at_func_log_failure
28082 $at_times_p && times >"$at_times_file"
28083 ) 5>&1 2>&1 | eval $at_tee_pipe
28084 at_status=`cat "$at_status_file"`
28087 # 72. link03.at:24: working -l with --remove-files
28088 at_setup_line='link03.at:24'
28089 at_desc="working -l with --remove-files"
28090 $at_quiet $as_echo_n " 72: $at_desc "
28092 test -f $XFAILFILE && at_xfail=yes
28093 echo "# -*- compilation -*-" >> "$at_group_log"
28095 $as_echo "72. link03.at:24: testing ..."
28105 $as_echo "$at_srcdir/link03.at:34:
28109 export TEST_TAR_FORMAT
28110 TAR_OPTIONS=\"-H v7\"
28115 genfile -l 64 -f file1
28121 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28123 genfile -l 64 -f file1
28129 tar -c -f archive.2 -l --remove-files file1 file2 file3
28130 echo testing archive.2
28131 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28133 echo link03.at:34 >"$at_check_line_file"
28135 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28141 export TEST_TAR_FORMAT
28142 TAR_OPTIONS="-H v7"
28147 genfile -l 64 -f file1
28153 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28155 genfile -l 64 -f file1
28161 tar -c -f archive.2 -l --remove-files file1 file2 file3
28162 echo testing archive.2
28163 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28164 ) ) >"$at_stdout" 2>"$at_stder1"
28165 at_func_filter_trace $?
28171 export TEST_TAR_FORMAT
28172 TAR_OPTIONS="-H v7"
28177 genfile -l 64 -f file1
28183 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28185 genfile -l 64 -f file1
28191 tar -c -f archive.2 -l --remove-files file1 file2 file3
28192 echo testing archive.2
28193 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28194 ) ) >"$at_stdout" 2>"$at_stderr"
28198 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28200 $at_diff - "$at_stderr" || at_failed=:
28201 echo >>"$at_stdout"; $as_echo "archive.1
28207 $at_diff - "$at_stdout" || at_failed=:
28208 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28210 $at_failed && at_func_log_failure
28214 $as_echo "$at_srcdir/link03.at:34:
28217 TEST_TAR_FORMAT=oldgnu
28218 export TEST_TAR_FORMAT
28219 TAR_OPTIONS=\"-H oldgnu\"
28224 genfile -l 64 -f file1
28230 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28232 genfile -l 64 -f file1
28238 tar -c -f archive.2 -l --remove-files file1 file2 file3
28239 echo testing archive.2
28240 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28242 echo link03.at:34 >"$at_check_line_file"
28244 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28249 TEST_TAR_FORMAT=oldgnu
28250 export TEST_TAR_FORMAT
28251 TAR_OPTIONS="-H oldgnu"
28256 genfile -l 64 -f file1
28262 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28264 genfile -l 64 -f file1
28270 tar -c -f archive.2 -l --remove-files file1 file2 file3
28271 echo testing archive.2
28272 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28273 ) ) >"$at_stdout" 2>"$at_stder1"
28274 at_func_filter_trace $?
28279 TEST_TAR_FORMAT=oldgnu
28280 export TEST_TAR_FORMAT
28281 TAR_OPTIONS="-H oldgnu"
28286 genfile -l 64 -f file1
28292 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28294 genfile -l 64 -f file1
28300 tar -c -f archive.2 -l --remove-files file1 file2 file3
28301 echo testing archive.2
28302 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28303 ) ) >"$at_stdout" 2>"$at_stderr"
28307 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28309 $at_diff - "$at_stderr" || at_failed=:
28310 echo >>"$at_stdout"; $as_echo "archive.1
28316 $at_diff - "$at_stdout" || at_failed=:
28317 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28319 $at_failed && at_func_log_failure
28323 $as_echo "$at_srcdir/link03.at:34:
28326 TEST_TAR_FORMAT=ustar
28327 export TEST_TAR_FORMAT
28328 TAR_OPTIONS=\"-H ustar\"
28333 genfile -l 64 -f file1
28339 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28341 genfile -l 64 -f file1
28347 tar -c -f archive.2 -l --remove-files file1 file2 file3
28348 echo testing archive.2
28349 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28351 echo link03.at:34 >"$at_check_line_file"
28353 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28358 TEST_TAR_FORMAT=ustar
28359 export TEST_TAR_FORMAT
28360 TAR_OPTIONS="-H ustar"
28365 genfile -l 64 -f file1
28371 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28373 genfile -l 64 -f file1
28379 tar -c -f archive.2 -l --remove-files file1 file2 file3
28380 echo testing archive.2
28381 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28382 ) ) >"$at_stdout" 2>"$at_stder1"
28383 at_func_filter_trace $?
28388 TEST_TAR_FORMAT=ustar
28389 export TEST_TAR_FORMAT
28390 TAR_OPTIONS="-H ustar"
28395 genfile -l 64 -f file1
28401 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28403 genfile -l 64 -f file1
28409 tar -c -f archive.2 -l --remove-files file1 file2 file3
28410 echo testing archive.2
28411 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28412 ) ) >"$at_stdout" 2>"$at_stderr"
28416 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28418 $at_diff - "$at_stderr" || at_failed=:
28419 echo >>"$at_stdout"; $as_echo "archive.1
28425 $at_diff - "$at_stdout" || at_failed=:
28426 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28428 $at_failed && at_func_log_failure
28432 $as_echo "$at_srcdir/link03.at:34:
28435 TEST_TAR_FORMAT=posix
28436 export TEST_TAR_FORMAT
28437 TAR_OPTIONS=\"-H posix\"
28442 genfile -l 64 -f file1
28448 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28450 genfile -l 64 -f file1
28456 tar -c -f archive.2 -l --remove-files file1 file2 file3
28457 echo testing archive.2
28458 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28460 echo link03.at:34 >"$at_check_line_file"
28462 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28467 TEST_TAR_FORMAT=posix
28468 export TEST_TAR_FORMAT
28469 TAR_OPTIONS="-H posix"
28474 genfile -l 64 -f file1
28480 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28482 genfile -l 64 -f file1
28488 tar -c -f archive.2 -l --remove-files file1 file2 file3
28489 echo testing archive.2
28490 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28491 ) ) >"$at_stdout" 2>"$at_stder1"
28492 at_func_filter_trace $?
28497 TEST_TAR_FORMAT=posix
28498 export TEST_TAR_FORMAT
28499 TAR_OPTIONS="-H posix"
28504 genfile -l 64 -f file1
28510 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28512 genfile -l 64 -f file1
28518 tar -c -f archive.2 -l --remove-files file1 file2 file3
28519 echo testing archive.2
28520 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28521 ) ) >"$at_stdout" 2>"$at_stderr"
28525 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28527 $at_diff - "$at_stderr" || at_failed=:
28528 echo >>"$at_stdout"; $as_echo "archive.1
28534 $at_diff - "$at_stdout" || at_failed=:
28535 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28537 $at_failed && at_func_log_failure
28541 $as_echo "$at_srcdir/link03.at:34:
28544 TEST_TAR_FORMAT=gnu
28545 export TEST_TAR_FORMAT
28546 TAR_OPTIONS=\"-H gnu\"
28551 genfile -l 64 -f file1
28557 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28559 genfile -l 64 -f file1
28565 tar -c -f archive.2 -l --remove-files file1 file2 file3
28566 echo testing archive.2
28567 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28569 echo link03.at:34 >"$at_check_line_file"
28571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28576 TEST_TAR_FORMAT=gnu
28577 export TEST_TAR_FORMAT
28578 TAR_OPTIONS="-H gnu"
28583 genfile -l 64 -f file1
28589 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28591 genfile -l 64 -f file1
28597 tar -c -f archive.2 -l --remove-files file1 file2 file3
28598 echo testing archive.2
28599 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28600 ) ) >"$at_stdout" 2>"$at_stder1"
28601 at_func_filter_trace $?
28606 TEST_TAR_FORMAT=gnu
28607 export TEST_TAR_FORMAT
28608 TAR_OPTIONS="-H gnu"
28613 genfile -l 64 -f file1
28619 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28621 genfile -l 64 -f file1
28627 tar -c -f archive.2 -l --remove-files file1 file2 file3
28628 echo testing archive.2
28629 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28630 ) ) >"$at_stdout" 2>"$at_stderr"
28634 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28636 $at_diff - "$at_stderr" || at_failed=:
28637 echo >>"$at_stdout"; $as_echo "archive.1
28643 $at_diff - "$at_stdout" || at_failed=:
28644 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28646 $at_failed && at_func_log_failure
28653 $at_times_p && times >"$at_times_file"
28654 ) 5>&1 2>&1 | eval $at_tee_pipe
28655 at_status=`cat "$at_status_file"`
28658 # 73. link04.at:29: link count is 1 but multiple occurrences
28659 at_setup_line='link04.at:29'
28660 at_desc="link count is 1 but multiple occurrences"
28661 $at_quiet $as_echo_n " 73: $at_desc "
28663 test -f $XFAILFILE && at_xfail=yes
28664 echo "# -*- compilation -*-" >> "$at_group_log"
28666 $as_echo "73. link04.at:29: testing ..."
28674 $as_echo "$at_srcdir/link04.at:32:
28678 export TEST_TAR_FORMAT
28679 TAR_OPTIONS=\"-H v7\"
28684 echo TEST > dir/file
28685 ln -s file dir/symlink || exit 77
28687 tar cf archive dir dir
28688 tar tvf archive | sed '
28689 s,.*[0-9] dir/,dir/,
28694 tar chf archive dir
28695 tar tvf archive | sed '
28696 s,.*[0-9] dir/,dir/,
28701 echo link04.at:32 >"$at_check_line_file"
28703 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28709 export TEST_TAR_FORMAT
28710 TAR_OPTIONS="-H v7"
28715 echo TEST > dir/file
28716 ln -s file dir/symlink || exit 77
28718 tar cf archive dir dir
28719 tar tvf archive | sed '
28720 s,.*[0-9] dir/,dir/,
28725 tar chf archive dir
28726 tar tvf archive | sed '
28727 s,.*[0-9] dir/,dir/,
28731 ) ) >"$at_stdout" 2>"$at_stder1"
28732 at_func_filter_trace $?
28738 export TEST_TAR_FORMAT
28739 TAR_OPTIONS="-H v7"
28744 echo TEST > dir/file
28745 ln -s file dir/symlink || exit 77
28747 tar cf archive dir dir
28748 tar tvf archive | sed '
28749 s,.*[0-9] dir/,dir/,
28754 tar chf archive dir
28755 tar tvf archive | sed '
28756 s,.*[0-9] dir/,dir/,
28760 ) ) >"$at_stdout" 2>"$at_stderr"
28764 at_func_diff_devnull "$at_stderr" || at_failed=:
28765 echo >>"$at_stdout"; $as_echo "dir/
28768 dir/file link to dir/file
28769 dir/symlink -> file
28770 dir/symlink link to dir/symlink
28774 dir/FOO link to dir/FOO
28776 $at_diff - "$at_stdout" || at_failed=:
28777 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28779 $at_failed && at_func_log_failure
28783 $as_echo "$at_srcdir/link04.at:32:
28786 TEST_TAR_FORMAT=oldgnu
28787 export TEST_TAR_FORMAT
28788 TAR_OPTIONS=\"-H oldgnu\"
28793 echo TEST > dir/file
28794 ln -s file dir/symlink || exit 77
28796 tar cf archive dir dir
28797 tar tvf archive | sed '
28798 s,.*[0-9] dir/,dir/,
28803 tar chf archive dir
28804 tar tvf archive | sed '
28805 s,.*[0-9] dir/,dir/,
28810 echo link04.at:32 >"$at_check_line_file"
28812 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28817 TEST_TAR_FORMAT=oldgnu
28818 export TEST_TAR_FORMAT
28819 TAR_OPTIONS="-H oldgnu"
28824 echo TEST > dir/file
28825 ln -s file dir/symlink || exit 77
28827 tar cf archive dir dir
28828 tar tvf archive | sed '
28829 s,.*[0-9] dir/,dir/,
28834 tar chf archive dir
28835 tar tvf archive | sed '
28836 s,.*[0-9] dir/,dir/,
28840 ) ) >"$at_stdout" 2>"$at_stder1"
28841 at_func_filter_trace $?
28846 TEST_TAR_FORMAT=oldgnu
28847 export TEST_TAR_FORMAT
28848 TAR_OPTIONS="-H oldgnu"
28853 echo TEST > dir/file
28854 ln -s file dir/symlink || exit 77
28856 tar cf archive dir dir
28857 tar tvf archive | sed '
28858 s,.*[0-9] dir/,dir/,
28863 tar chf archive dir
28864 tar tvf archive | sed '
28865 s,.*[0-9] dir/,dir/,
28869 ) ) >"$at_stdout" 2>"$at_stderr"
28873 at_func_diff_devnull "$at_stderr" || at_failed=:
28874 echo >>"$at_stdout"; $as_echo "dir/
28877 dir/file link to dir/file
28878 dir/symlink -> file
28879 dir/symlink link to dir/symlink
28883 dir/FOO link to dir/FOO
28885 $at_diff - "$at_stdout" || at_failed=:
28886 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28888 $at_failed && at_func_log_failure
28892 $as_echo "$at_srcdir/link04.at:32:
28895 TEST_TAR_FORMAT=ustar
28896 export TEST_TAR_FORMAT
28897 TAR_OPTIONS=\"-H ustar\"
28902 echo TEST > dir/file
28903 ln -s file dir/symlink || exit 77
28905 tar cf archive dir dir
28906 tar tvf archive | sed '
28907 s,.*[0-9] dir/,dir/,
28912 tar chf archive dir
28913 tar tvf archive | sed '
28914 s,.*[0-9] dir/,dir/,
28919 echo link04.at:32 >"$at_check_line_file"
28921 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28926 TEST_TAR_FORMAT=ustar
28927 export TEST_TAR_FORMAT
28928 TAR_OPTIONS="-H ustar"
28933 echo TEST > dir/file
28934 ln -s file dir/symlink || exit 77
28936 tar cf archive dir dir
28937 tar tvf archive | sed '
28938 s,.*[0-9] dir/,dir/,
28943 tar chf archive dir
28944 tar tvf archive | sed '
28945 s,.*[0-9] dir/,dir/,
28949 ) ) >"$at_stdout" 2>"$at_stder1"
28950 at_func_filter_trace $?
28955 TEST_TAR_FORMAT=ustar
28956 export TEST_TAR_FORMAT
28957 TAR_OPTIONS="-H ustar"
28962 echo TEST > dir/file
28963 ln -s file dir/symlink || exit 77
28965 tar cf archive dir dir
28966 tar tvf archive | sed '
28967 s,.*[0-9] dir/,dir/,
28972 tar chf archive dir
28973 tar tvf archive | sed '
28974 s,.*[0-9] dir/,dir/,
28978 ) ) >"$at_stdout" 2>"$at_stderr"
28982 at_func_diff_devnull "$at_stderr" || at_failed=:
28983 echo >>"$at_stdout"; $as_echo "dir/
28986 dir/file link to dir/file
28987 dir/symlink -> file
28988 dir/symlink link to dir/symlink
28992 dir/FOO link to dir/FOO
28994 $at_diff - "$at_stdout" || at_failed=:
28995 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28997 $at_failed && at_func_log_failure
29001 $as_echo "$at_srcdir/link04.at:32:
29004 TEST_TAR_FORMAT=posix
29005 export TEST_TAR_FORMAT
29006 TAR_OPTIONS=\"-H posix\"
29011 echo TEST > dir/file
29012 ln -s file dir/symlink || exit 77
29014 tar cf archive dir dir
29015 tar tvf archive | sed '
29016 s,.*[0-9] dir/,dir/,
29021 tar chf archive dir
29022 tar tvf archive | sed '
29023 s,.*[0-9] dir/,dir/,
29028 echo link04.at:32 >"$at_check_line_file"
29030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29035 TEST_TAR_FORMAT=posix
29036 export TEST_TAR_FORMAT
29037 TAR_OPTIONS="-H posix"
29042 echo TEST > dir/file
29043 ln -s file dir/symlink || exit 77
29045 tar cf archive dir dir
29046 tar tvf archive | sed '
29047 s,.*[0-9] dir/,dir/,
29052 tar chf archive dir
29053 tar tvf archive | sed '
29054 s,.*[0-9] dir/,dir/,
29058 ) ) >"$at_stdout" 2>"$at_stder1"
29059 at_func_filter_trace $?
29064 TEST_TAR_FORMAT=posix
29065 export TEST_TAR_FORMAT
29066 TAR_OPTIONS="-H posix"
29071 echo TEST > dir/file
29072 ln -s file dir/symlink || exit 77
29074 tar cf archive dir dir
29075 tar tvf archive | sed '
29076 s,.*[0-9] dir/,dir/,
29081 tar chf archive dir
29082 tar tvf archive | sed '
29083 s,.*[0-9] dir/,dir/,
29087 ) ) >"$at_stdout" 2>"$at_stderr"
29091 at_func_diff_devnull "$at_stderr" || at_failed=:
29092 echo >>"$at_stdout"; $as_echo "dir/
29095 dir/file link to dir/file
29096 dir/symlink -> file
29097 dir/symlink link to dir/symlink
29101 dir/FOO link to dir/FOO
29103 $at_diff - "$at_stdout" || at_failed=:
29104 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29106 $at_failed && at_func_log_failure
29110 $as_echo "$at_srcdir/link04.at:32:
29113 TEST_TAR_FORMAT=gnu
29114 export TEST_TAR_FORMAT
29115 TAR_OPTIONS=\"-H gnu\"
29120 echo TEST > dir/file
29121 ln -s file dir/symlink || exit 77
29123 tar cf archive dir dir
29124 tar tvf archive | sed '
29125 s,.*[0-9] dir/,dir/,
29130 tar chf archive dir
29131 tar tvf archive | sed '
29132 s,.*[0-9] dir/,dir/,
29137 echo link04.at:32 >"$at_check_line_file"
29139 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29144 TEST_TAR_FORMAT=gnu
29145 export TEST_TAR_FORMAT
29146 TAR_OPTIONS="-H gnu"
29151 echo TEST > dir/file
29152 ln -s file dir/symlink || exit 77
29154 tar cf archive dir dir
29155 tar tvf archive | sed '
29156 s,.*[0-9] dir/,dir/,
29161 tar chf archive dir
29162 tar tvf archive | sed '
29163 s,.*[0-9] dir/,dir/,
29167 ) ) >"$at_stdout" 2>"$at_stder1"
29168 at_func_filter_trace $?
29173 TEST_TAR_FORMAT=gnu
29174 export TEST_TAR_FORMAT
29175 TAR_OPTIONS="-H gnu"
29180 echo TEST > dir/file
29181 ln -s file dir/symlink || exit 77
29183 tar cf archive dir dir
29184 tar tvf archive | sed '
29185 s,.*[0-9] dir/,dir/,
29190 tar chf archive dir
29191 tar tvf archive | sed '
29192 s,.*[0-9] dir/,dir/,
29196 ) ) >"$at_stdout" 2>"$at_stderr"
29200 at_func_diff_devnull "$at_stderr" || at_failed=:
29201 echo >>"$at_stdout"; $as_echo "dir/
29204 dir/file link to dir/file
29205 dir/symlink -> file
29206 dir/symlink link to dir/symlink
29210 dir/FOO link to dir/FOO
29212 $at_diff - "$at_stdout" || at_failed=:
29213 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29215 $at_failed && at_func_log_failure
29222 $at_times_p && times >"$at_times_file"
29223 ) 5>&1 2>&1 | eval $at_tee_pipe
29224 at_status=`cat "$at_status_file"`
29227 # 74. longv7.at:24: long names in V7 archives
29228 at_setup_line='longv7.at:24'
29229 at_desc="long names in V7 archives"
29230 $at_quiet $as_echo_n " 74: $at_desc "
29232 test -f $XFAILFILE && at_xfail=yes
29233 echo "# -*- compilation -*-" >> "$at_group_log"
29235 $as_echo "74. longv7.at:24: testing ..."
29246 $as_echo "$at_srcdir/longv7.at:30:
29250 export TEST_TAR_FORMAT
29251 TAR_OPTIONS=\"-H v7\"
29255 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29256 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29258 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29262 echo longv7.at:30 >"$at_check_line_file"
29264 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29270 export TEST_TAR_FORMAT
29271 TAR_OPTIONS="-H v7"
29275 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29276 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29278 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29281 ) ) >"$at_stdout" 2>"$at_stder1"
29282 at_func_filter_trace $?
29288 export TEST_TAR_FORMAT
29289 TAR_OPTIONS="-H v7"
29293 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29294 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29296 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29299 ) ) >"$at_stdout" 2>"$at_stderr"
29303 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
29304 tar: Exiting with failure status due to previous errors
29306 $at_diff - "$at_stderr" || at_failed=:
29307 echo >>"$at_stdout"; $as_echo "separator
29308 this_is_a_very_long_name_for_a_directory_which_causes_problems/
29310 $at_diff - "$at_stdout" || at_failed=:
29311 at_func_check_status 0 $at_status "$at_srcdir/longv7.at:30"
29313 $at_failed && at_func_log_failure
29320 $at_times_p && times >"$at_times_file"
29321 ) 5>&1 2>&1 | eval $at_tee_pipe
29322 at_status=`cat "$at_status_file"`
29325 # 75. long01.at:28: long file names divisible by block size
29326 at_setup_line='long01.at:28'
29327 at_desc="long file names divisible by block size"
29328 $at_quiet $as_echo_n " 75: $at_desc "
29330 test -f $XFAILFILE && at_xfail=yes
29331 echo "# -*- compilation -*-" >> "$at_group_log"
29333 $as_echo "75. long01.at:28: testing ..."
29345 $as_echo "$at_srcdir/long01.at:36:
29348 TEST_TAR_FORMAT=gnu
29349 export TEST_TAR_FORMAT
29350 TAR_OPTIONS=\"-H gnu\"
29355 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
29356 echo test > endfile
29358 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
29360 echo long01.at:36 >"$at_check_line_file"
29362 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29367 TEST_TAR_FORMAT=gnu
29368 export TEST_TAR_FORMAT
29369 TAR_OPTIONS="-H gnu"
29374 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
29375 echo test > endfile
29377 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
29378 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29379 at_func_filter_trace $?
29384 TEST_TAR_FORMAT=gnu
29385 export TEST_TAR_FORMAT
29386 TAR_OPTIONS="-H gnu"
29391 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
29392 echo test > endfile
29394 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
29395 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29399 at_func_diff_devnull "$at_stderr" || at_failed=:
29400 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
29403 $at_diff - "$at_stdout" || at_failed=:
29404 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29406 $at_failed && at_func_log_failure
29410 $as_echo "$at_srcdir/long01.at:36:
29413 TEST_TAR_FORMAT=oldgnu
29414 export TEST_TAR_FORMAT
29415 TAR_OPTIONS=\"-H oldgnu\"
29420 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
29421 echo test > endfile
29423 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
29425 echo long01.at:36 >"$at_check_line_file"
29427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29432 TEST_TAR_FORMAT=oldgnu
29433 export TEST_TAR_FORMAT
29434 TAR_OPTIONS="-H oldgnu"
29439 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
29440 echo test > endfile
29442 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
29443 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29444 at_func_filter_trace $?
29449 TEST_TAR_FORMAT=oldgnu
29450 export TEST_TAR_FORMAT
29451 TAR_OPTIONS="-H oldgnu"
29456 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
29457 echo test > endfile
29459 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
29460 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29464 at_func_diff_devnull "$at_stderr" || at_failed=:
29465 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
29468 $at_diff - "$at_stdout" || at_failed=:
29469 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29471 $at_failed && at_func_log_failure
29478 $at_times_p && times >"$at_times_file"
29479 ) 5>&1 2>&1 | eval $at_tee_pipe
29480 at_status=`cat "$at_status_file"`
29483 # 76. lustar01.at:21: ustar: unsplittable file name
29484 at_setup_line='lustar01.at:21'
29485 at_desc="ustar: unsplittable file name"
29486 $at_quiet $as_echo_n " 76: $at_desc "
29488 test -f $XFAILFILE && at_xfail=yes
29489 echo "# -*- compilation -*-" >> "$at_group_log"
29491 $as_echo "76. lustar01.at:21: testing ..."
29501 $as_echo "$at_srcdir/lustar01.at:27:
29504 TEST_TAR_FORMAT=ustar
29505 export TEST_TAR_FORMAT
29506 TAR_OPTIONS=\"-H ustar\"
29510 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
29511 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
29513 echo lustar01.at:27 >"$at_check_line_file"
29515 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29520 TEST_TAR_FORMAT=ustar
29521 export TEST_TAR_FORMAT
29522 TAR_OPTIONS="-H ustar"
29526 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
29527 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
29528 ) ) >"$at_stdout" 2>"$at_stder1"
29529 at_func_filter_trace $?
29534 TEST_TAR_FORMAT=ustar
29535 export TEST_TAR_FORMAT
29536 TAR_OPTIONS="-H ustar"
29540 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
29541 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
29542 ) ) >"$at_stdout" 2>"$at_stderr"
29546 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
29547 tar: Exiting with failure status due to previous errors
29549 $at_diff - "$at_stderr" || at_failed=:
29550 at_func_diff_devnull "$at_stdout" || at_failed=:
29551 at_func_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
29553 $at_failed && at_func_log_failure
29560 $at_times_p && times >"$at_times_file"
29561 ) 5>&1 2>&1 | eval $at_tee_pipe
29562 at_status=`cat "$at_status_file"`
29565 # 77. lustar02.at:21: ustar: unsplittable path name
29566 at_setup_line='lustar02.at:21'
29567 at_desc="ustar: unsplittable path name"
29568 $at_quiet $as_echo_n " 77: $at_desc "
29570 test -f $XFAILFILE && at_xfail=yes
29571 echo "# -*- compilation -*-" >> "$at_group_log"
29573 $as_echo "77. lustar02.at:21: testing ..."
29587 $as_echo "$at_srcdir/lustar02.at:32:
29590 TEST_TAR_FORMAT=ustar
29591 export TEST_TAR_FORMAT
29592 TAR_OPTIONS=\"-H ustar\"
29597 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
29598 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
29600 echo lustar02.at:32 >"$at_check_line_file"
29602 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29607 TEST_TAR_FORMAT=ustar
29608 export TEST_TAR_FORMAT
29609 TAR_OPTIONS="-H ustar"
29614 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
29615 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
29616 ) ) >"$at_stdout" 2>"$at_stder1"
29617 at_func_filter_trace $?
29622 TEST_TAR_FORMAT=ustar
29623 export TEST_TAR_FORMAT
29624 TAR_OPTIONS="-H ustar"
29629 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
29630 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
29631 ) ) >"$at_stdout" 2>"$at_stderr"
29635 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
29636 tar: Exiting with failure status due to previous errors
29638 $at_diff - "$at_stderr" || at_failed=:
29639 at_func_diff_devnull "$at_stdout" || at_failed=:
29640 at_func_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
29642 $at_failed && at_func_log_failure
29649 $at_times_p && times >"$at_times_file"
29650 ) 5>&1 2>&1 | eval $at_tee_pipe
29651 at_status=`cat "$at_status_file"`
29654 # 78. lustar03.at:21: ustar: splitting long names
29655 at_setup_line='lustar03.at:21'
29656 at_desc="ustar: splitting long names"
29657 $at_quiet $as_echo_n " 78: $at_desc "
29659 test -f $XFAILFILE && at_xfail=yes
29660 echo "# -*- compilation -*-" >> "$at_group_log"
29662 $as_echo "78. lustar03.at:21: testing ..."
29674 $as_echo "$at_srcdir/lustar03.at:29:
29677 TEST_TAR_FORMAT=ustar
29678 export TEST_TAR_FORMAT
29679 TAR_OPTIONS=\"-H ustar\"
29684 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
29685 echo \"Create archive\"
29686 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
29687 echo \"List archive\"
29689 echo lustar03.at:29 >"$at_check_line_file"
29691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29696 TEST_TAR_FORMAT=ustar
29697 export TEST_TAR_FORMAT
29698 TAR_OPTIONS="-H ustar"
29703 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
29704 echo "Create archive"
29705 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
29706 echo "List archive"
29707 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29708 at_func_filter_trace $?
29713 TEST_TAR_FORMAT=ustar
29714 export TEST_TAR_FORMAT
29715 TAR_OPTIONS="-H ustar"
29720 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
29721 echo "Create archive"
29722 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
29723 echo "List archive"
29724 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29728 at_func_diff_devnull "$at_stderr" || at_failed=:
29729 echo >>"$at_stdout"; $as_echo "Create archive
29731 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/
29732 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
29734 $at_diff - "$at_stdout" || at_failed=:
29735 at_func_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
29737 $at_failed && at_func_log_failure
29744 $at_times_p && times >"$at_times_file"
29745 ) 5>&1 2>&1 | eval $at_tee_pipe
29746 at_status=`cat "$at_status_file"`
29749 # 79. multiv01.at:23: multivolume dumps from pipes
29750 at_setup_line='multiv01.at:23'
29751 at_desc="multivolume dumps from pipes"
29752 $at_quiet $as_echo_n " 79: $at_desc "
29754 test -f $XFAILFILE && at_xfail=yes
29755 echo "# -*- compilation -*-" >> "$at_group_log"
29757 $as_echo "79. multiv01.at:23: testing ..."
29762 # Fixme: should be configurable
29763 # TRUSS=truss -o /tmp/tr
29769 $as_echo "$at_srcdir/multiv01.at:30:
29772 TEST_TAR_FORMAT=gnu
29773 export TEST_TAR_FORMAT
29774 TAR_OPTIONS=\"-H gnu\"
29779 genfile --length 7168 --file file1
29781 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29782 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29783 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29784 for count in 2 3 4 5 6 7 8 ; do
29785 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29789 if test \$TEST_TAR_FORMAT = pax; then
29795 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29796 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29798 mkdir extract-dir-pipe
29799 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29800 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29801 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29802 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29804 cmp file1 extract-dir-pipe/file1
29805 cmp file2 extract-dir-pipe/file2
29807 echo multiv01.at:30 >"$at_check_line_file"
29809 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29814 TEST_TAR_FORMAT=gnu
29815 export TEST_TAR_FORMAT
29816 TAR_OPTIONS="-H gnu"
29821 genfile --length 7168 --file file1
29823 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29824 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29825 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29826 for count in 2 3 4 5 6 7 8 ; do
29827 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29831 if test $TEST_TAR_FORMAT = pax; then
29837 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29838 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29840 mkdir extract-dir-pipe
29841 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29842 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29843 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29844 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29846 cmp file1 extract-dir-pipe/file1
29847 cmp file2 extract-dir-pipe/file2
29848 ) ) >"$at_stdout" 2>"$at_stder1"
29849 at_func_filter_trace $?
29854 TEST_TAR_FORMAT=gnu
29855 export TEST_TAR_FORMAT
29856 TAR_OPTIONS="-H gnu"
29861 genfile --length 7168 --file file1
29863 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29864 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29865 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29866 for count in 2 3 4 5 6 7 8 ; do
29867 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29871 if test $TEST_TAR_FORMAT = pax; then
29877 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29878 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29880 mkdir extract-dir-pipe
29881 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29882 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29883 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29884 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29886 cmp file1 extract-dir-pipe/file1
29887 cmp file2 extract-dir-pipe/file2
29888 ) ) >"$at_stdout" 2>"$at_stderr"
29892 at_func_diff_devnull "$at_stderr" || at_failed=:
29893 at_func_diff_devnull "$at_stdout" || at_failed=:
29894 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
29896 $at_failed && at_func_log_failure
29900 $as_echo "$at_srcdir/multiv01.at:30:
29903 TEST_TAR_FORMAT=oldgnu
29904 export TEST_TAR_FORMAT
29905 TAR_OPTIONS=\"-H oldgnu\"
29910 genfile --length 7168 --file file1
29912 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29913 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29914 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29915 for count in 2 3 4 5 6 7 8 ; do
29916 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29920 if test \$TEST_TAR_FORMAT = pax; then
29926 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29927 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29929 mkdir extract-dir-pipe
29930 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29931 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29932 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29933 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29935 cmp file1 extract-dir-pipe/file1
29936 cmp file2 extract-dir-pipe/file2
29938 echo multiv01.at:30 >"$at_check_line_file"
29940 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29945 TEST_TAR_FORMAT=oldgnu
29946 export TEST_TAR_FORMAT
29947 TAR_OPTIONS="-H oldgnu"
29952 genfile --length 7168 --file file1
29954 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29955 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29956 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29957 for count in 2 3 4 5 6 7 8 ; do
29958 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29962 if test $TEST_TAR_FORMAT = pax; then
29968 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29969 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29971 mkdir extract-dir-pipe
29972 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29973 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29974 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29975 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29977 cmp file1 extract-dir-pipe/file1
29978 cmp file2 extract-dir-pipe/file2
29979 ) ) >"$at_stdout" 2>"$at_stder1"
29980 at_func_filter_trace $?
29985 TEST_TAR_FORMAT=oldgnu
29986 export TEST_TAR_FORMAT
29987 TAR_OPTIONS="-H oldgnu"
29992 genfile --length 7168 --file file1
29994 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29995 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29996 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29997 for count in 2 3 4 5 6 7 8 ; do
29998 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30002 if test $TEST_TAR_FORMAT = pax; then
30008 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30009 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30011 mkdir extract-dir-pipe
30012 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30013 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30014 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30015 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30017 cmp file1 extract-dir-pipe/file1
30018 cmp file2 extract-dir-pipe/file2
30019 ) ) >"$at_stdout" 2>"$at_stderr"
30023 at_func_diff_devnull "$at_stderr" || at_failed=:
30024 at_func_diff_devnull "$at_stdout" || at_failed=:
30025 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30027 $at_failed && at_func_log_failure
30031 $as_echo "$at_srcdir/multiv01.at:30:
30034 TEST_TAR_FORMAT=pax
30035 export TEST_TAR_FORMAT
30036 TAR_OPTIONS=\"-H pax\"
30041 genfile --length 7168 --file file1
30043 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
30044 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
30045 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30046 for count in 2 3 4 5 6 7 8 ; do
30047 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30051 if test \$TEST_TAR_FORMAT = pax; then
30057 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
30058 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30060 mkdir extract-dir-pipe
30061 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30062 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
30063 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
30064 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
30066 cmp file1 extract-dir-pipe/file1
30067 cmp file2 extract-dir-pipe/file2
30069 echo multiv01.at:30 >"$at_check_line_file"
30071 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
30076 TEST_TAR_FORMAT=pax
30077 export TEST_TAR_FORMAT
30078 TAR_OPTIONS="-H pax"
30083 genfile --length 7168 --file file1
30085 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30086 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30087 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30088 for count in 2 3 4 5 6 7 8 ; do
30089 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30093 if test $TEST_TAR_FORMAT = pax; then
30099 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30100 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30102 mkdir extract-dir-pipe
30103 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30104 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30105 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30106 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30108 cmp file1 extract-dir-pipe/file1
30109 cmp file2 extract-dir-pipe/file2
30110 ) ) >"$at_stdout" 2>"$at_stder1"
30111 at_func_filter_trace $?
30116 TEST_TAR_FORMAT=pax
30117 export TEST_TAR_FORMAT
30118 TAR_OPTIONS="-H pax"
30123 genfile --length 7168 --file file1
30125 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30126 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30127 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30128 for count in 2 3 4 5 6 7 8 ; do
30129 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30133 if test $TEST_TAR_FORMAT = pax; then
30139 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30140 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30142 mkdir extract-dir-pipe
30143 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30144 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30145 -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30146 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30148 cmp file1 extract-dir-pipe/file1
30149 cmp file2 extract-dir-pipe/file2
30150 ) ) >"$at_stdout" 2>"$at_stderr"
30154 at_func_diff_devnull "$at_stderr" || at_failed=:
30155 at_func_diff_devnull "$at_stdout" || at_failed=:
30156 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30158 $at_failed && at_func_log_failure
30165 $at_times_p && times >"$at_times_file"
30166 ) 5>&1 2>&1 | eval $at_tee_pipe
30167 at_status=`cat "$at_status_file"`
30170 # 80. multiv02.at:28: skipping a straddling member
30171 at_setup_line='multiv02.at:28'
30172 at_desc="skipping a straddling member"
30173 $at_quiet $as_echo_n " 80: $at_desc "
30175 test -f $XFAILFILE && at_xfail=yes
30176 echo "# -*- compilation -*-" >> "$at_group_log"
30178 $as_echo "80. multiv02.at:28: testing ..."
30186 $as_echo "$at_srcdir/multiv02.at:31:
30189 TEST_TAR_FORMAT=gnu
30190 export TEST_TAR_FORMAT
30191 TAR_OPTIONS=\"-H gnu\"
30195 genfile --length 10240 --file en
30196 genfile --length 20000 --file to
30197 genfile --length 20000 --file tre
30198 genfile --length 10240 --file fire
30202 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30204 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30206 echo multiv02.at:31 >"$at_check_line_file"
30208 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30213 TEST_TAR_FORMAT=gnu
30214 export TEST_TAR_FORMAT
30215 TAR_OPTIONS="-H gnu"
30219 genfile --length 10240 --file en
30220 genfile --length 20000 --file to
30221 genfile --length 20000 --file tre
30222 genfile --length 10240 --file fire
30226 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30228 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30229 ) ) >"$at_stdout" 2>"$at_stder1"
30230 at_func_filter_trace $?
30235 TEST_TAR_FORMAT=gnu
30236 export TEST_TAR_FORMAT
30237 TAR_OPTIONS="-H gnu"
30241 genfile --length 10240 --file en
30242 genfile --length 20000 --file to
30243 genfile --length 20000 --file tre
30244 genfile --length 10240 --file fire
30248 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30250 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30251 ) ) >"$at_stdout" 2>"$at_stderr"
30255 at_func_diff_devnull "$at_stderr" || at_failed=:
30256 echo >>"$at_stdout"; $as_echo "separator
30259 $at_diff - "$at_stdout" || at_failed=:
30260 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30262 $at_failed && at_func_log_failure
30266 $as_echo "$at_srcdir/multiv02.at:31:
30269 TEST_TAR_FORMAT=oldgnu
30270 export TEST_TAR_FORMAT
30271 TAR_OPTIONS=\"-H oldgnu\"
30275 genfile --length 10240 --file en
30276 genfile --length 20000 --file to
30277 genfile --length 20000 --file tre
30278 genfile --length 10240 --file fire
30282 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30284 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30286 echo multiv02.at:31 >"$at_check_line_file"
30288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30293 TEST_TAR_FORMAT=oldgnu
30294 export TEST_TAR_FORMAT
30295 TAR_OPTIONS="-H oldgnu"
30299 genfile --length 10240 --file en
30300 genfile --length 20000 --file to
30301 genfile --length 20000 --file tre
30302 genfile --length 10240 --file fire
30306 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30308 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30309 ) ) >"$at_stdout" 2>"$at_stder1"
30310 at_func_filter_trace $?
30315 TEST_TAR_FORMAT=oldgnu
30316 export TEST_TAR_FORMAT
30317 TAR_OPTIONS="-H oldgnu"
30321 genfile --length 10240 --file en
30322 genfile --length 20000 --file to
30323 genfile --length 20000 --file tre
30324 genfile --length 10240 --file fire
30328 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30330 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30331 ) ) >"$at_stdout" 2>"$at_stderr"
30335 at_func_diff_devnull "$at_stderr" || at_failed=:
30336 echo >>"$at_stdout"; $as_echo "separator
30339 $at_diff - "$at_stdout" || at_failed=:
30340 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30342 $at_failed && at_func_log_failure
30346 $as_echo "$at_srcdir/multiv02.at:31:
30349 TEST_TAR_FORMAT=pax
30350 export TEST_TAR_FORMAT
30351 TAR_OPTIONS=\"-H pax\"
30355 genfile --length 10240 --file en
30356 genfile --length 20000 --file to
30357 genfile --length 20000 --file tre
30358 genfile --length 10240 --file fire
30362 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30364 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30366 echo multiv02.at:31 >"$at_check_line_file"
30368 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30373 TEST_TAR_FORMAT=pax
30374 export TEST_TAR_FORMAT
30375 TAR_OPTIONS="-H pax"
30379 genfile --length 10240 --file en
30380 genfile --length 20000 --file to
30381 genfile --length 20000 --file tre
30382 genfile --length 10240 --file fire
30386 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30388 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30389 ) ) >"$at_stdout" 2>"$at_stder1"
30390 at_func_filter_trace $?
30395 TEST_TAR_FORMAT=pax
30396 export TEST_TAR_FORMAT
30397 TAR_OPTIONS="-H pax"
30401 genfile --length 10240 --file en
30402 genfile --length 20000 --file to
30403 genfile --length 20000 --file tre
30404 genfile --length 10240 --file fire
30408 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30410 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30411 ) ) >"$at_stdout" 2>"$at_stderr"
30415 at_func_diff_devnull "$at_stderr" || at_failed=:
30416 echo >>"$at_stdout"; $as_echo "separator
30419 $at_diff - "$at_stdout" || at_failed=:
30420 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30422 $at_failed && at_func_log_failure
30429 $at_times_p && times >"$at_times_file"
30430 ) 5>&1 2>&1 | eval $at_tee_pipe
30431 at_status=`cat "$at_status_file"`
30434 # 81. multiv03.at:30: MV archive & long filenames
30435 at_setup_line='multiv03.at:30'
30436 at_desc="MV archive & long filenames"
30437 $at_quiet $as_echo_n " 81: $at_desc "
30439 test -f $XFAILFILE && at_xfail=yes
30440 echo "# -*- compilation -*-" >> "$at_group_log"
30442 $as_echo "81. multiv03.at:30: testing ..."
30450 $as_echo "$at_srcdir/multiv03.at:33:
30453 TEST_TAR_FORMAT=gnu
30454 export TEST_TAR_FORMAT
30455 TAR_OPTIONS=\"-H gnu\"
30459 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30460 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30462 cat > ../experr <<EOF
30463 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30464 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30467 cat > ../expout <<EOF
30473 genfile --length 15360 --file \$AFILE
30477 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30478 tar -tM -f arch.1 -f arch.2 || exit 1
30482 genfile --length 15360 --file \$BFILE
30483 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30487 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30490 echo multiv03.at:33 >"$at_check_line_file"
30492 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30497 TEST_TAR_FORMAT=gnu
30498 export TEST_TAR_FORMAT
30499 TAR_OPTIONS="-H gnu"
30503 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30504 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30506 cat > ../experr <<EOF
30507 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30508 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30511 cat > ../expout <<EOF
30517 genfile --length 15360 --file $AFILE
30521 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30522 tar -tM -f arch.1 -f arch.2 || exit 1
30526 genfile --length 15360 --file $BFILE
30527 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30531 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30533 ) ) >"$at_stdout" 2>"$at_stder1"
30534 at_func_filter_trace $?
30539 TEST_TAR_FORMAT=gnu
30540 export TEST_TAR_FORMAT
30541 TAR_OPTIONS="-H gnu"
30545 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30546 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30548 cat > ../experr <<EOF
30549 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30550 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30553 cat > ../expout <<EOF
30559 genfile --length 15360 --file $AFILE
30563 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30564 tar -tM -f arch.1 -f arch.2 || exit 1
30568 genfile --length 15360 --file $BFILE
30569 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30573 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30575 ) ) >"$at_stdout" 2>"$at_stderr"
30579 $at_diff experr "$at_stderr" || at_failed=:
30580 $at_diff expout "$at_stdout" || at_failed=:
30581 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30583 $at_failed && at_func_log_failure
30587 $as_echo "$at_srcdir/multiv03.at:33:
30590 TEST_TAR_FORMAT=oldgnu
30591 export TEST_TAR_FORMAT
30592 TAR_OPTIONS=\"-H oldgnu\"
30596 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30597 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30599 cat > ../experr <<EOF
30600 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30601 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30604 cat > ../expout <<EOF
30610 genfile --length 15360 --file \$AFILE
30614 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30615 tar -tM -f arch.1 -f arch.2 || exit 1
30619 genfile --length 15360 --file \$BFILE
30620 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30624 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30627 echo multiv03.at:33 >"$at_check_line_file"
30629 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30634 TEST_TAR_FORMAT=oldgnu
30635 export TEST_TAR_FORMAT
30636 TAR_OPTIONS="-H oldgnu"
30640 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30641 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30643 cat > ../experr <<EOF
30644 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30645 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30648 cat > ../expout <<EOF
30654 genfile --length 15360 --file $AFILE
30658 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30659 tar -tM -f arch.1 -f arch.2 || exit 1
30663 genfile --length 15360 --file $BFILE
30664 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30668 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30670 ) ) >"$at_stdout" 2>"$at_stder1"
30671 at_func_filter_trace $?
30676 TEST_TAR_FORMAT=oldgnu
30677 export TEST_TAR_FORMAT
30678 TAR_OPTIONS="-H oldgnu"
30682 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30683 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30685 cat > ../experr <<EOF
30686 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30687 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30690 cat > ../expout <<EOF
30696 genfile --length 15360 --file $AFILE
30700 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30701 tar -tM -f arch.1 -f arch.2 || exit 1
30705 genfile --length 15360 --file $BFILE
30706 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30710 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30712 ) ) >"$at_stdout" 2>"$at_stderr"
30716 $at_diff experr "$at_stderr" || at_failed=:
30717 $at_diff expout "$at_stdout" || at_failed=:
30718 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30720 $at_failed && at_func_log_failure
30727 $at_times_p && times >"$at_times_file"
30728 ) 5>&1 2>&1 | eval $at_tee_pipe
30729 at_status=`cat "$at_status_file"`
30732 # 82. multiv04.at:36: split directory members in a MV archive
30733 at_setup_line='multiv04.at:36'
30734 at_desc="split directory members in a MV archive"
30735 $at_quiet $as_echo_n " 82: $at_desc "
30737 test -f $XFAILFILE && at_xfail=yes
30738 echo "# -*- compilation -*-" >> "$at_group_log"
30740 $as_echo "82. multiv04.at:36: testing ..."
30748 $as_echo "$at_srcdir/multiv04.at:39:
30751 TEST_TAR_FORMAT=gnu
30752 export TEST_TAR_FORMAT
30753 TAR_OPTIONS=\"-H gnu\"
30759 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30765 tar --listed-incremental=list -c -f archive.a directory
30769 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30773 tar -MRt -f arc.1 -f arc.2)"
30774 echo multiv04.at:39 >"$at_check_line_file"
30776 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30781 TEST_TAR_FORMAT=gnu
30782 export TEST_TAR_FORMAT
30783 TAR_OPTIONS="-H gnu"
30789 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30795 tar --listed-incremental=list -c -f archive.a directory
30799 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30803 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
30804 at_func_filter_trace $?
30809 TEST_TAR_FORMAT=gnu
30810 export TEST_TAR_FORMAT
30811 TAR_OPTIONS="-H gnu"
30817 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30823 tar --listed-incremental=list -c -f archive.a directory
30827 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30831 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30835 at_func_diff_devnull "$at_stderr" || at_failed=:
30836 echo >>"$at_stdout"; $as_echo "directory/
30838 block 0: directory/
30839 block 35: ** Block of NULs **
30841 $at_diff - "$at_stdout" || at_failed=:
30842 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30844 $at_failed && at_func_log_failure
30848 $as_echo "$at_srcdir/multiv04.at:39:
30851 TEST_TAR_FORMAT=oldgnu
30852 export TEST_TAR_FORMAT
30853 TAR_OPTIONS=\"-H oldgnu\"
30859 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30865 tar --listed-incremental=list -c -f archive.a directory
30869 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30873 tar -MRt -f arc.1 -f arc.2)"
30874 echo multiv04.at:39 >"$at_check_line_file"
30876 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30881 TEST_TAR_FORMAT=oldgnu
30882 export TEST_TAR_FORMAT
30883 TAR_OPTIONS="-H oldgnu"
30889 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30895 tar --listed-incremental=list -c -f archive.a directory
30899 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30903 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
30904 at_func_filter_trace $?
30909 TEST_TAR_FORMAT=oldgnu
30910 export TEST_TAR_FORMAT
30911 TAR_OPTIONS="-H oldgnu"
30917 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30923 tar --listed-incremental=list -c -f archive.a directory
30927 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30931 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30935 at_func_diff_devnull "$at_stderr" || at_failed=:
30936 echo >>"$at_stdout"; $as_echo "directory/
30938 block 0: directory/
30939 block 35: ** Block of NULs **
30941 $at_diff - "$at_stdout" || at_failed=:
30942 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30944 $at_failed && at_func_log_failure
30951 $at_times_p && times >"$at_times_file"
30952 ) 5>&1 2>&1 | eval $at_tee_pipe
30953 at_status=`cat "$at_status_file"`
30956 # 83. multiv05.at:26: Restoring after an out of sync volume
30957 at_setup_line='multiv05.at:26'
30958 at_desc="Restoring after an out of sync volume"
30959 $at_quiet $as_echo_n " 83: $at_desc "
30961 test -f $XFAILFILE && at_xfail=yes
30962 echo "# -*- compilation -*-" >> "$at_group_log"
30964 $as_echo "83. multiv05.at:26: testing ..."
30973 $as_echo "$at_srcdir/multiv05.at:30:
30976 TEST_TAR_FORMAT=gnu
30977 export TEST_TAR_FORMAT
30978 TAR_OPTIONS=\"-H gnu\"
30984 genfile --length 250k --file jeden
30985 genfile --length 250k --file dwa
30986 genfile --length 250k --file trzy
30987 genfile --length 250k --file cztery
30988 genfile --length 250k --file piec
30989 genfile --length 250k --file szesc
30992 echo Creating archive
30993 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
30996 mv jeden dwa trzy cztery piec szesc bak
30997 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
30999 cmp bak/jeden jeden || exit 1
31001 cmp bak/dwa dwa || exit 1
31003 cmp bak/trzy trzy || exit 1
31004 echo Diffing cztery
31005 cmp bak/cztery cztery || exit 1
31007 cmp bak/piec piec || exit 1
31009 cmp bak/szesc szesc || exit 1
31011 echo multiv05.at:30 >"$at_check_line_file"
31013 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31018 TEST_TAR_FORMAT=gnu
31019 export TEST_TAR_FORMAT
31020 TAR_OPTIONS="-H gnu"
31026 genfile --length 250k --file jeden
31027 genfile --length 250k --file dwa
31028 genfile --length 250k --file trzy
31029 genfile --length 250k --file cztery
31030 genfile --length 250k --file piec
31031 genfile --length 250k --file szesc
31034 echo Creating archive
31035 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31038 mv jeden dwa trzy cztery piec szesc bak
31039 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31041 cmp bak/jeden jeden || exit 1
31043 cmp bak/dwa dwa || exit 1
31045 cmp bak/trzy trzy || exit 1
31046 echo Diffing cztery
31047 cmp bak/cztery cztery || exit 1
31049 cmp bak/piec piec || exit 1
31051 cmp bak/szesc szesc || exit 1
31052 ) ) >"$at_stdout" 2>"$at_stder1"
31053 at_func_filter_trace $?
31058 TEST_TAR_FORMAT=gnu
31059 export TEST_TAR_FORMAT
31060 TAR_OPTIONS="-H gnu"
31066 genfile --length 250k --file jeden
31067 genfile --length 250k --file dwa
31068 genfile --length 250k --file trzy
31069 genfile --length 250k --file cztery
31070 genfile --length 250k --file piec
31071 genfile --length 250k --file szesc
31074 echo Creating archive
31075 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31078 mv jeden dwa trzy cztery piec szesc bak
31079 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31081 cmp bak/jeden jeden || exit 1
31083 cmp bak/dwa dwa || exit 1
31085 cmp bak/trzy trzy || exit 1
31086 echo Diffing cztery
31087 cmp bak/cztery cztery || exit 1
31089 cmp bak/piec piec || exit 1
31091 cmp bak/szesc szesc || exit 1
31092 ) ) >"$at_stdout" 2>"$at_stderr"
31096 echo >>"$at_stderr"; $as_echo "tar: \`trzy' is not continued on this volume
31098 $at_diff - "$at_stderr" || at_failed=:
31099 echo >>"$at_stdout"; $as_echo "Creating archive
31114 $at_diff - "$at_stdout" || at_failed=:
31115 at_func_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
31117 $at_failed && at_func_log_failure
31124 $at_times_p && times >"$at_times_file"
31125 ) 5>&1 2>&1 | eval $at_tee_pipe
31126 at_status=`cat "$at_status_file"`
31129 # 84. multiv06.at:27: Multivolumes with L=record_size
31130 at_setup_line='multiv06.at:27'
31131 at_desc="Multivolumes with L=record_size"
31132 $at_quiet $as_echo_n " 84: $at_desc "
31134 test -f $XFAILFILE && at_xfail=yes
31135 echo "# -*- compilation -*-" >> "$at_group_log"
31137 $as_echo "84. multiv06.at:27: testing ..."
31145 $as_echo "$at_srcdir/multiv06.at:30:
31148 TEST_TAR_FORMAT=gnu
31149 export TEST_TAR_FORMAT
31150 TAR_OPTIONS=\"-H gnu\"
31155 decho Creating file
31156 genfile --length 20139 --file file
31157 decho Creating archive
31158 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31159 decho Testing archive
31160 tar -t -M -farc.1 -farc.2 -farc.3)"
31161 echo multiv06.at:30 >"$at_check_line_file"
31163 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31168 TEST_TAR_FORMAT=gnu
31169 export TEST_TAR_FORMAT
31170 TAR_OPTIONS="-H gnu"
31175 decho Creating file
31176 genfile --length 20139 --file file
31177 decho Creating archive
31178 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31179 decho Testing archive
31180 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31181 at_func_filter_trace $?
31186 TEST_TAR_FORMAT=gnu
31187 export TEST_TAR_FORMAT
31188 TAR_OPTIONS="-H gnu"
31193 decho Creating file
31194 genfile --length 20139 --file file
31195 decho Creating archive
31196 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31197 decho Testing archive
31198 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31202 echo >>"$at_stderr"; $as_echo "Creating file
31206 $at_diff - "$at_stderr" || at_failed=:
31207 echo >>"$at_stdout"; $as_echo "Creating file
31212 $at_diff - "$at_stdout" || at_failed=:
31213 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31215 $at_failed && at_func_log_failure
31219 $as_echo "$at_srcdir/multiv06.at:30:
31222 TEST_TAR_FORMAT=pax
31223 export TEST_TAR_FORMAT
31224 TAR_OPTIONS=\"-H pax\"
31229 decho Creating file
31230 genfile --length 20139 --file file
31231 decho Creating archive
31232 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31233 decho Testing archive
31234 tar -t -M -farc.1 -farc.2 -farc.3)"
31235 echo multiv06.at:30 >"$at_check_line_file"
31237 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31242 TEST_TAR_FORMAT=pax
31243 export TEST_TAR_FORMAT
31244 TAR_OPTIONS="-H pax"
31249 decho Creating file
31250 genfile --length 20139 --file file
31251 decho Creating archive
31252 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31253 decho Testing archive
31254 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31255 at_func_filter_trace $?
31260 TEST_TAR_FORMAT=pax
31261 export TEST_TAR_FORMAT
31262 TAR_OPTIONS="-H pax"
31267 decho Creating file
31268 genfile --length 20139 --file file
31269 decho Creating archive
31270 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31271 decho Testing archive
31272 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31276 echo >>"$at_stderr"; $as_echo "Creating file
31280 $at_diff - "$at_stderr" || at_failed=:
31281 echo >>"$at_stdout"; $as_echo "Creating file
31286 $at_diff - "$at_stdout" || at_failed=:
31287 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31289 $at_failed && at_func_log_failure
31296 $at_times_p && times >"$at_times_file"
31297 ) 5>&1 2>&1 | eval $at_tee_pipe
31298 at_status=`cat "$at_status_file"`
31301 # 85. multiv07.at:26: volumes split at an extended header
31302 at_setup_line='multiv07.at:26'
31303 at_desc="volumes split at an extended header"
31304 $at_quiet $as_echo_n " 85: $at_desc "
31306 test -f \$XFAILFILE && at_xfail=yes
31307 test -f $XFAILFILE && at_xfail=yes
31308 test -f $XFAILFILE && at_xfail=yes
31309 echo "# -*- compilation -*-" >> "$at_group_log"
31311 $as_echo "85. multiv07.at:26: testing ..."
31317 $as_echo "$at_srcdir/multiv07.at:29:
31320 test -z "$TEST_DATA_DIR" && exit 77
31321 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31323 test -z "$TEST_DATA_DIR" && exit 77
31324 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31329 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31331 echo multiv07.at:29 >"$at_check_line_file"
31333 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31338 test -z "$TEST_DATA_DIR" && exit 77
31339 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31341 test -z "$TEST_DATA_DIR" && exit 77
31342 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31347 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31348 ) >"$at_stdout" 2>"$at_stder1"
31349 at_func_filter_trace $?
31354 test -z "$TEST_DATA_DIR" && exit 77
31355 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31357 test -z "$TEST_DATA_DIR" && exit 77
31358 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31363 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31364 ) >"$at_stdout" 2>"$at_stderr"
31368 at_func_diff_devnull "$at_stderr" || at_failed=:
31369 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
31373 $at_diff - "$at_stdout" || at_failed=:
31374 at_func_check_status 0 $at_status "$at_srcdir/multiv07.at:29"
31376 $at_failed && at_func_log_failure
31381 $at_times_p && times >"$at_times_file"
31382 ) 5>&1 2>&1 | eval $at_tee_pipe
31383 at_status=`cat "$at_status_file"`
31386 # 86. multiv08.at:23: multivolume header creation
31387 at_setup_line='multiv08.at:23'
31388 at_desc="multivolume header creation"
31389 $at_quiet $as_echo_n " 86: $at_desc "
31391 test -f $XFAILFILE && at_xfail=yes
31392 echo "# -*- compilation -*-" >> "$at_group_log"
31394 $as_echo "86. multiv08.at:23: testing ..."
31402 $as_echo "$at_srcdir/multiv08.at:26:
31405 TEST_TAR_FORMAT=gnu
31406 export TEST_TAR_FORMAT
31407 TAR_OPTIONS=\"-H gnu\"
31411 genfile --length 9472 --file a
31412 genfile --length 9984 --file b
31414 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31416 tar -tMR -f A.tar -f B.tar -f C.tar
31418 echo multiv08.at:26 >"$at_check_line_file"
31420 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31425 TEST_TAR_FORMAT=gnu
31426 export TEST_TAR_FORMAT
31427 TAR_OPTIONS="-H gnu"
31431 genfile --length 9472 --file a
31432 genfile --length 9984 --file b
31434 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31436 tar -tMR -f A.tar -f B.tar -f C.tar
31437 ) ) >"$at_stdout" 2>"$at_stder1"
31438 at_func_filter_trace $?
31443 TEST_TAR_FORMAT=gnu
31444 export TEST_TAR_FORMAT
31445 TAR_OPTIONS="-H gnu"
31449 genfile --length 9472 --file a
31450 genfile --length 9984 --file b
31452 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31454 tar -tMR -f A.tar -f B.tar -f C.tar
31455 ) ) >"$at_stdout" 2>"$at_stderr"
31459 echo >>"$at_stderr"; $as_echo "Creating
31462 $at_diff - "$at_stderr" || at_failed=:
31463 echo >>"$at_stdout"; $as_echo "Creating
31467 block 43: ** Block of NULs **
31469 $at_diff - "$at_stdout" || at_failed=:
31470 at_func_check_status 0 $at_status "$at_srcdir/multiv08.at:26"
31472 $at_failed && at_func_log_failure
31479 $at_times_p && times >"$at_times_file"
31480 ) 5>&1 2>&1 | eval $at_tee_pipe
31481 at_status=`cat "$at_status_file"`
31484 # 87. old.at:23: old archives
31485 at_setup_line='old.at:23'
31486 at_desc="old archives"
31487 $at_quiet $as_echo_n " 87: $at_desc "
31489 echo "# -*- compilation -*-" >> "$at_group_log"
31491 $as_echo "87. old.at:23: testing ..."
31498 $as_echo "$at_srcdir/old.at:27:
31500 tar cfvo archive directory || exit 1
31503 echo old.at:27 >"$at_check_line_file"
31505 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31509 tar cfvo archive directory || exit 1
31511 ) >"$at_stdout" 2>"$at_stder1"
31512 at_func_filter_trace $?
31516 tar cfvo archive directory || exit 1
31518 ) >"$at_stdout" 2>"$at_stderr"
31522 at_func_diff_devnull "$at_stderr" || at_failed=:
31523 echo >>"$at_stdout"; $as_echo "directory/
31526 $at_diff - "$at_stdout" || at_failed=:
31527 at_func_check_status 0 $at_status "$at_srcdir/old.at:27"
31529 $at_failed && at_func_log_failure
31534 $at_times_p && times >"$at_times_file"
31535 ) 5>&1 2>&1 | eval $at_tee_pipe
31536 at_status=`cat "$at_status_file"`
31539 # 88. recurse.at:21: recurse
31540 at_setup_line='recurse.at:21'
31542 $at_quiet $as_echo_n " 88: $at_desc "
31544 test -f $XFAILFILE && at_xfail=yes
31545 echo "# -*- compilation -*-" >> "$at_group_log"
31547 $as_echo "88. recurse.at:21: testing ..."
31555 $as_echo "$at_srcdir/recurse.at:24:
31559 export TEST_TAR_FORMAT
31560 TAR_OPTIONS=\"-H v7\"
31565 touch directory/file
31566 tar --create --file archive --no-recursion directory || exit 1
31569 echo recurse.at:24 >"$at_check_line_file"
31571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31577 export TEST_TAR_FORMAT
31578 TAR_OPTIONS="-H v7"
31583 touch directory/file
31584 tar --create --file archive --no-recursion directory || exit 1
31586 ) ) >"$at_stdout" 2>"$at_stder1"
31587 at_func_filter_trace $?
31593 export TEST_TAR_FORMAT
31594 TAR_OPTIONS="-H v7"
31599 touch directory/file
31600 tar --create --file archive --no-recursion directory || exit 1
31602 ) ) >"$at_stdout" 2>"$at_stderr"
31606 at_func_diff_devnull "$at_stderr" || at_failed=:
31607 echo >>"$at_stdout"; $as_echo "directory/
31609 $at_diff - "$at_stdout" || at_failed=:
31610 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31612 $at_failed && at_func_log_failure
31616 $as_echo "$at_srcdir/recurse.at:24:
31619 TEST_TAR_FORMAT=oldgnu
31620 export TEST_TAR_FORMAT
31621 TAR_OPTIONS=\"-H oldgnu\"
31626 touch directory/file
31627 tar --create --file archive --no-recursion directory || exit 1
31630 echo recurse.at:24 >"$at_check_line_file"
31632 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31637 TEST_TAR_FORMAT=oldgnu
31638 export TEST_TAR_FORMAT
31639 TAR_OPTIONS="-H oldgnu"
31644 touch directory/file
31645 tar --create --file archive --no-recursion directory || exit 1
31647 ) ) >"$at_stdout" 2>"$at_stder1"
31648 at_func_filter_trace $?
31653 TEST_TAR_FORMAT=oldgnu
31654 export TEST_TAR_FORMAT
31655 TAR_OPTIONS="-H oldgnu"
31660 touch directory/file
31661 tar --create --file archive --no-recursion directory || exit 1
31663 ) ) >"$at_stdout" 2>"$at_stderr"
31667 at_func_diff_devnull "$at_stderr" || at_failed=:
31668 echo >>"$at_stdout"; $as_echo "directory/
31670 $at_diff - "$at_stdout" || at_failed=:
31671 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31673 $at_failed && at_func_log_failure
31677 $as_echo "$at_srcdir/recurse.at:24:
31680 TEST_TAR_FORMAT=ustar
31681 export TEST_TAR_FORMAT
31682 TAR_OPTIONS=\"-H ustar\"
31687 touch directory/file
31688 tar --create --file archive --no-recursion directory || exit 1
31691 echo recurse.at:24 >"$at_check_line_file"
31693 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31698 TEST_TAR_FORMAT=ustar
31699 export TEST_TAR_FORMAT
31700 TAR_OPTIONS="-H ustar"
31705 touch directory/file
31706 tar --create --file archive --no-recursion directory || exit 1
31708 ) ) >"$at_stdout" 2>"$at_stder1"
31709 at_func_filter_trace $?
31714 TEST_TAR_FORMAT=ustar
31715 export TEST_TAR_FORMAT
31716 TAR_OPTIONS="-H ustar"
31721 touch directory/file
31722 tar --create --file archive --no-recursion directory || exit 1
31724 ) ) >"$at_stdout" 2>"$at_stderr"
31728 at_func_diff_devnull "$at_stderr" || at_failed=:
31729 echo >>"$at_stdout"; $as_echo "directory/
31731 $at_diff - "$at_stdout" || at_failed=:
31732 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31734 $at_failed && at_func_log_failure
31738 $as_echo "$at_srcdir/recurse.at:24:
31741 TEST_TAR_FORMAT=posix
31742 export TEST_TAR_FORMAT
31743 TAR_OPTIONS=\"-H posix\"
31748 touch directory/file
31749 tar --create --file archive --no-recursion directory || exit 1
31752 echo recurse.at:24 >"$at_check_line_file"
31754 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31759 TEST_TAR_FORMAT=posix
31760 export TEST_TAR_FORMAT
31761 TAR_OPTIONS="-H posix"
31766 touch directory/file
31767 tar --create --file archive --no-recursion directory || exit 1
31769 ) ) >"$at_stdout" 2>"$at_stder1"
31770 at_func_filter_trace $?
31775 TEST_TAR_FORMAT=posix
31776 export TEST_TAR_FORMAT
31777 TAR_OPTIONS="-H posix"
31782 touch directory/file
31783 tar --create --file archive --no-recursion directory || exit 1
31785 ) ) >"$at_stdout" 2>"$at_stderr"
31789 at_func_diff_devnull "$at_stderr" || at_failed=:
31790 echo >>"$at_stdout"; $as_echo "directory/
31792 $at_diff - "$at_stdout" || at_failed=:
31793 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31795 $at_failed && at_func_log_failure
31799 $as_echo "$at_srcdir/recurse.at:24:
31802 TEST_TAR_FORMAT=gnu
31803 export TEST_TAR_FORMAT
31804 TAR_OPTIONS=\"-H gnu\"
31809 touch directory/file
31810 tar --create --file archive --no-recursion directory || exit 1
31813 echo recurse.at:24 >"$at_check_line_file"
31815 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31820 TEST_TAR_FORMAT=gnu
31821 export TEST_TAR_FORMAT
31822 TAR_OPTIONS="-H gnu"
31827 touch directory/file
31828 tar --create --file archive --no-recursion directory || exit 1
31830 ) ) >"$at_stdout" 2>"$at_stder1"
31831 at_func_filter_trace $?
31836 TEST_TAR_FORMAT=gnu
31837 export TEST_TAR_FORMAT
31838 TAR_OPTIONS="-H gnu"
31843 touch directory/file
31844 tar --create --file archive --no-recursion directory || exit 1
31846 ) ) >"$at_stdout" 2>"$at_stderr"
31850 at_func_diff_devnull "$at_stderr" || at_failed=:
31851 echo >>"$at_stdout"; $as_echo "directory/
31853 $at_diff - "$at_stdout" || at_failed=:
31854 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31856 $at_failed && at_func_log_failure
31863 $at_times_p && times >"$at_times_file"
31864 ) 5>&1 2>&1 | eval $at_tee_pipe
31865 at_status=`cat "$at_status_file"`
31868 # 89. same-order01.at:26: working -C with --same-order
31869 at_setup_line='same-order01.at:26'
31870 at_desc="working -C with --same-order"
31871 $at_quiet $as_echo_n " 89: $at_desc "
31873 test -f $XFAILFILE && at_xfail=yes
31874 echo "# -*- compilation -*-" >> "$at_group_log"
31876 $as_echo "89. same-order01.at:26: testing ..."
31884 $as_echo "$at_srcdir/same-order01.at:29:
31888 export TEST_TAR_FORMAT
31889 TAR_OPTIONS=\"-H v7\"
31894 test -z "`sort < /dev/null 2>&1`" || exit 77
31897 genfile -l 1024 -f file1
31898 genfile -l 1024 -f file2
31899 tar cf archive file1 file2
31902 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31906 echo same-order01.at:29 >"$at_check_line_file"
31908 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31914 export TEST_TAR_FORMAT
31915 TAR_OPTIONS="-H v7"
31920 test -z "`sort < /dev/null 2>&1`" || exit 77
31923 genfile -l 1024 -f file1
31924 genfile -l 1024 -f file2
31925 tar cf archive file1 file2
31928 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31931 ) ) >"$at_stdout" 2>"$at_stder1"
31932 at_func_filter_trace $?
31938 export TEST_TAR_FORMAT
31939 TAR_OPTIONS="-H v7"
31944 test -z "`sort < /dev/null 2>&1`" || exit 77
31947 genfile -l 1024 -f file1
31948 genfile -l 1024 -f file2
31949 tar cf archive file1 file2
31952 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31955 ) ) >"$at_stdout" 2>"$at_stderr"
31959 at_func_diff_devnull "$at_stderr" || at_failed=:
31960 echo >>"$at_stdout"; $as_echo "file1
31963 $at_diff - "$at_stdout" || at_failed=:
31964 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31966 $at_failed && at_func_log_failure
31970 $as_echo "$at_srcdir/same-order01.at:29:
31973 TEST_TAR_FORMAT=oldgnu
31974 export TEST_TAR_FORMAT
31975 TAR_OPTIONS=\"-H oldgnu\"
31980 test -z "`sort < /dev/null 2>&1`" || exit 77
31983 genfile -l 1024 -f file1
31984 genfile -l 1024 -f file2
31985 tar cf archive file1 file2
31988 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31992 echo same-order01.at:29 >"$at_check_line_file"
31994 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31999 TEST_TAR_FORMAT=oldgnu
32000 export TEST_TAR_FORMAT
32001 TAR_OPTIONS="-H oldgnu"
32006 test -z "`sort < /dev/null 2>&1`" || exit 77
32009 genfile -l 1024 -f file1
32010 genfile -l 1024 -f file2
32011 tar cf archive file1 file2
32014 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32017 ) ) >"$at_stdout" 2>"$at_stder1"
32018 at_func_filter_trace $?
32023 TEST_TAR_FORMAT=oldgnu
32024 export TEST_TAR_FORMAT
32025 TAR_OPTIONS="-H oldgnu"
32030 test -z "`sort < /dev/null 2>&1`" || exit 77
32033 genfile -l 1024 -f file1
32034 genfile -l 1024 -f file2
32035 tar cf archive file1 file2
32038 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32041 ) ) >"$at_stdout" 2>"$at_stderr"
32045 at_func_diff_devnull "$at_stderr" || at_failed=:
32046 echo >>"$at_stdout"; $as_echo "file1
32049 $at_diff - "$at_stdout" || at_failed=:
32050 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32052 $at_failed && at_func_log_failure
32056 $as_echo "$at_srcdir/same-order01.at:29:
32059 TEST_TAR_FORMAT=ustar
32060 export TEST_TAR_FORMAT
32061 TAR_OPTIONS=\"-H ustar\"
32066 test -z "`sort < /dev/null 2>&1`" || exit 77
32069 genfile -l 1024 -f file1
32070 genfile -l 1024 -f file2
32071 tar cf archive file1 file2
32074 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32078 echo same-order01.at:29 >"$at_check_line_file"
32080 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32085 TEST_TAR_FORMAT=ustar
32086 export TEST_TAR_FORMAT
32087 TAR_OPTIONS="-H ustar"
32092 test -z "`sort < /dev/null 2>&1`" || exit 77
32095 genfile -l 1024 -f file1
32096 genfile -l 1024 -f file2
32097 tar cf archive file1 file2
32100 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32103 ) ) >"$at_stdout" 2>"$at_stder1"
32104 at_func_filter_trace $?
32109 TEST_TAR_FORMAT=ustar
32110 export TEST_TAR_FORMAT
32111 TAR_OPTIONS="-H ustar"
32116 test -z "`sort < /dev/null 2>&1`" || exit 77
32119 genfile -l 1024 -f file1
32120 genfile -l 1024 -f file2
32121 tar cf archive file1 file2
32124 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32127 ) ) >"$at_stdout" 2>"$at_stderr"
32131 at_func_diff_devnull "$at_stderr" || at_failed=:
32132 echo >>"$at_stdout"; $as_echo "file1
32135 $at_diff - "$at_stdout" || at_failed=:
32136 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32138 $at_failed && at_func_log_failure
32142 $as_echo "$at_srcdir/same-order01.at:29:
32145 TEST_TAR_FORMAT=posix
32146 export TEST_TAR_FORMAT
32147 TAR_OPTIONS=\"-H posix\"
32152 test -z "`sort < /dev/null 2>&1`" || exit 77
32155 genfile -l 1024 -f file1
32156 genfile -l 1024 -f file2
32157 tar cf archive file1 file2
32160 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32164 echo same-order01.at:29 >"$at_check_line_file"
32166 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32171 TEST_TAR_FORMAT=posix
32172 export TEST_TAR_FORMAT
32173 TAR_OPTIONS="-H posix"
32178 test -z "`sort < /dev/null 2>&1`" || exit 77
32181 genfile -l 1024 -f file1
32182 genfile -l 1024 -f file2
32183 tar cf archive file1 file2
32186 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32189 ) ) >"$at_stdout" 2>"$at_stder1"
32190 at_func_filter_trace $?
32195 TEST_TAR_FORMAT=posix
32196 export TEST_TAR_FORMAT
32197 TAR_OPTIONS="-H posix"
32202 test -z "`sort < /dev/null 2>&1`" || exit 77
32205 genfile -l 1024 -f file1
32206 genfile -l 1024 -f file2
32207 tar cf archive file1 file2
32210 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32213 ) ) >"$at_stdout" 2>"$at_stderr"
32217 at_func_diff_devnull "$at_stderr" || at_failed=:
32218 echo >>"$at_stdout"; $as_echo "file1
32221 $at_diff - "$at_stdout" || at_failed=:
32222 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32224 $at_failed && at_func_log_failure
32228 $as_echo "$at_srcdir/same-order01.at:29:
32231 TEST_TAR_FORMAT=gnu
32232 export TEST_TAR_FORMAT
32233 TAR_OPTIONS=\"-H gnu\"
32238 test -z "`sort < /dev/null 2>&1`" || exit 77
32241 genfile -l 1024 -f file1
32242 genfile -l 1024 -f file2
32243 tar cf archive file1 file2
32246 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32250 echo same-order01.at:29 >"$at_check_line_file"
32252 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32257 TEST_TAR_FORMAT=gnu
32258 export TEST_TAR_FORMAT
32259 TAR_OPTIONS="-H gnu"
32264 test -z "`sort < /dev/null 2>&1`" || exit 77
32267 genfile -l 1024 -f file1
32268 genfile -l 1024 -f file2
32269 tar cf archive file1 file2
32272 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32275 ) ) >"$at_stdout" 2>"$at_stder1"
32276 at_func_filter_trace $?
32281 TEST_TAR_FORMAT=gnu
32282 export TEST_TAR_FORMAT
32283 TAR_OPTIONS="-H gnu"
32288 test -z "`sort < /dev/null 2>&1`" || exit 77
32291 genfile -l 1024 -f file1
32292 genfile -l 1024 -f file2
32293 tar cf archive file1 file2
32296 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32299 ) ) >"$at_stdout" 2>"$at_stderr"
32303 at_func_diff_devnull "$at_stderr" || at_failed=:
32304 echo >>"$at_stdout"; $as_echo "file1
32307 $at_diff - "$at_stdout" || at_failed=:
32308 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32310 $at_failed && at_func_log_failure
32317 $at_times_p && times >"$at_times_file"
32318 ) 5>&1 2>&1 | eval $at_tee_pipe
32319 at_status=`cat "$at_status_file"`
32322 # 90. same-order02.at:25: multiple -C options
32323 at_setup_line='same-order02.at:25'
32324 at_desc="multiple -C options"
32325 $at_quiet $as_echo_n " 90: $at_desc "
32327 test -f $XFAILFILE && at_xfail=yes
32328 echo "# -*- compilation -*-" >> "$at_group_log"
32330 $as_echo "90. same-order02.at:25: testing ..."
32338 $as_echo "$at_srcdir/same-order02.at:28:
32342 export TEST_TAR_FORMAT
32343 TAR_OPTIONS=\"-H v7\"
32347 genfile -l 1024 -f file1
32348 genfile -l 1024 -f file2
32349 tar cf archive file1 file2
32355 tar -xf archive --same-order --warning=no-timestamp \\
32356 -C \$HERE/en file1 \\
32357 -C \$HERE/to file2 || exit 1
32363 echo same-order02.at:28 >"$at_check_line_file"
32365 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32371 export TEST_TAR_FORMAT
32372 TAR_OPTIONS="-H v7"
32376 genfile -l 1024 -f file1
32377 genfile -l 1024 -f file2
32378 tar cf archive file1 file2
32384 tar -xf archive --same-order --warning=no-timestamp \
32385 -C $HERE/en file1 \
32386 -C $HERE/to file2 || exit 1
32391 ) ) >"$at_stdout" 2>"$at_stder1"
32392 at_func_filter_trace $?
32398 export TEST_TAR_FORMAT
32399 TAR_OPTIONS="-H v7"
32403 genfile -l 1024 -f file1
32404 genfile -l 1024 -f file2
32405 tar cf archive file1 file2
32411 tar -xf archive --same-order --warning=no-timestamp \
32412 -C $HERE/en file1 \
32413 -C $HERE/to file2 || exit 1
32418 ) ) >"$at_stdout" 2>"$at_stderr"
32422 at_func_diff_devnull "$at_stderr" || at_failed=:
32423 echo >>"$at_stdout"; $as_echo "file1
32427 $at_diff - "$at_stdout" || at_failed=:
32428 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32430 $at_failed && at_func_log_failure
32434 $as_echo "$at_srcdir/same-order02.at:28:
32437 TEST_TAR_FORMAT=oldgnu
32438 export TEST_TAR_FORMAT
32439 TAR_OPTIONS=\"-H oldgnu\"
32443 genfile -l 1024 -f file1
32444 genfile -l 1024 -f file2
32445 tar cf archive file1 file2
32451 tar -xf archive --same-order --warning=no-timestamp \\
32452 -C \$HERE/en file1 \\
32453 -C \$HERE/to file2 || exit 1
32459 echo same-order02.at:28 >"$at_check_line_file"
32461 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32466 TEST_TAR_FORMAT=oldgnu
32467 export TEST_TAR_FORMAT
32468 TAR_OPTIONS="-H oldgnu"
32472 genfile -l 1024 -f file1
32473 genfile -l 1024 -f file2
32474 tar cf archive file1 file2
32480 tar -xf archive --same-order --warning=no-timestamp \
32481 -C $HERE/en file1 \
32482 -C $HERE/to file2 || exit 1
32487 ) ) >"$at_stdout" 2>"$at_stder1"
32488 at_func_filter_trace $?
32493 TEST_TAR_FORMAT=oldgnu
32494 export TEST_TAR_FORMAT
32495 TAR_OPTIONS="-H oldgnu"
32499 genfile -l 1024 -f file1
32500 genfile -l 1024 -f file2
32501 tar cf archive file1 file2
32507 tar -xf archive --same-order --warning=no-timestamp \
32508 -C $HERE/en file1 \
32509 -C $HERE/to file2 || exit 1
32514 ) ) >"$at_stdout" 2>"$at_stderr"
32518 at_func_diff_devnull "$at_stderr" || at_failed=:
32519 echo >>"$at_stdout"; $as_echo "file1
32523 $at_diff - "$at_stdout" || at_failed=:
32524 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32526 $at_failed && at_func_log_failure
32530 $as_echo "$at_srcdir/same-order02.at:28:
32533 TEST_TAR_FORMAT=ustar
32534 export TEST_TAR_FORMAT
32535 TAR_OPTIONS=\"-H ustar\"
32539 genfile -l 1024 -f file1
32540 genfile -l 1024 -f file2
32541 tar cf archive file1 file2
32547 tar -xf archive --same-order --warning=no-timestamp \\
32548 -C \$HERE/en file1 \\
32549 -C \$HERE/to file2 || exit 1
32555 echo same-order02.at:28 >"$at_check_line_file"
32557 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32562 TEST_TAR_FORMAT=ustar
32563 export TEST_TAR_FORMAT
32564 TAR_OPTIONS="-H ustar"
32568 genfile -l 1024 -f file1
32569 genfile -l 1024 -f file2
32570 tar cf archive file1 file2
32576 tar -xf archive --same-order --warning=no-timestamp \
32577 -C $HERE/en file1 \
32578 -C $HERE/to file2 || exit 1
32583 ) ) >"$at_stdout" 2>"$at_stder1"
32584 at_func_filter_trace $?
32589 TEST_TAR_FORMAT=ustar
32590 export TEST_TAR_FORMAT
32591 TAR_OPTIONS="-H ustar"
32595 genfile -l 1024 -f file1
32596 genfile -l 1024 -f file2
32597 tar cf archive file1 file2
32603 tar -xf archive --same-order --warning=no-timestamp \
32604 -C $HERE/en file1 \
32605 -C $HERE/to file2 || exit 1
32610 ) ) >"$at_stdout" 2>"$at_stderr"
32614 at_func_diff_devnull "$at_stderr" || at_failed=:
32615 echo >>"$at_stdout"; $as_echo "file1
32619 $at_diff - "$at_stdout" || at_failed=:
32620 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32622 $at_failed && at_func_log_failure
32626 $as_echo "$at_srcdir/same-order02.at:28:
32629 TEST_TAR_FORMAT=posix
32630 export TEST_TAR_FORMAT
32631 TAR_OPTIONS=\"-H posix\"
32635 genfile -l 1024 -f file1
32636 genfile -l 1024 -f file2
32637 tar cf archive file1 file2
32643 tar -xf archive --same-order --warning=no-timestamp \\
32644 -C \$HERE/en file1 \\
32645 -C \$HERE/to file2 || exit 1
32651 echo same-order02.at:28 >"$at_check_line_file"
32653 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32658 TEST_TAR_FORMAT=posix
32659 export TEST_TAR_FORMAT
32660 TAR_OPTIONS="-H posix"
32664 genfile -l 1024 -f file1
32665 genfile -l 1024 -f file2
32666 tar cf archive file1 file2
32672 tar -xf archive --same-order --warning=no-timestamp \
32673 -C $HERE/en file1 \
32674 -C $HERE/to file2 || exit 1
32679 ) ) >"$at_stdout" 2>"$at_stder1"
32680 at_func_filter_trace $?
32685 TEST_TAR_FORMAT=posix
32686 export TEST_TAR_FORMAT
32687 TAR_OPTIONS="-H posix"
32691 genfile -l 1024 -f file1
32692 genfile -l 1024 -f file2
32693 tar cf archive file1 file2
32699 tar -xf archive --same-order --warning=no-timestamp \
32700 -C $HERE/en file1 \
32701 -C $HERE/to file2 || exit 1
32706 ) ) >"$at_stdout" 2>"$at_stderr"
32710 at_func_diff_devnull "$at_stderr" || at_failed=:
32711 echo >>"$at_stdout"; $as_echo "file1
32715 $at_diff - "$at_stdout" || at_failed=:
32716 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32718 $at_failed && at_func_log_failure
32722 $as_echo "$at_srcdir/same-order02.at:28:
32725 TEST_TAR_FORMAT=gnu
32726 export TEST_TAR_FORMAT
32727 TAR_OPTIONS=\"-H gnu\"
32731 genfile -l 1024 -f file1
32732 genfile -l 1024 -f file2
32733 tar cf archive file1 file2
32739 tar -xf archive --same-order --warning=no-timestamp \\
32740 -C \$HERE/en file1 \\
32741 -C \$HERE/to file2 || exit 1
32747 echo same-order02.at:28 >"$at_check_line_file"
32749 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32754 TEST_TAR_FORMAT=gnu
32755 export TEST_TAR_FORMAT
32756 TAR_OPTIONS="-H gnu"
32760 genfile -l 1024 -f file1
32761 genfile -l 1024 -f file2
32762 tar cf archive file1 file2
32768 tar -xf archive --same-order --warning=no-timestamp \
32769 -C $HERE/en file1 \
32770 -C $HERE/to file2 || exit 1
32775 ) ) >"$at_stdout" 2>"$at_stder1"
32776 at_func_filter_trace $?
32781 TEST_TAR_FORMAT=gnu
32782 export TEST_TAR_FORMAT
32783 TAR_OPTIONS="-H gnu"
32787 genfile -l 1024 -f file1
32788 genfile -l 1024 -f file2
32789 tar cf archive file1 file2
32795 tar -xf archive --same-order --warning=no-timestamp \
32796 -C $HERE/en file1 \
32797 -C $HERE/to file2 || exit 1
32802 ) ) >"$at_stdout" 2>"$at_stderr"
32806 at_func_diff_devnull "$at_stderr" || at_failed=:
32807 echo >>"$at_stdout"; $as_echo "file1
32811 $at_diff - "$at_stdout" || at_failed=:
32812 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32814 $at_failed && at_func_log_failure
32821 $at_times_p && times >"$at_times_file"
32822 ) 5>&1 2>&1 | eval $at_tee_pipe
32823 at_status=`cat "$at_status_file"`
32826 # 91. shortrec.at:25: short records
32827 at_setup_line='shortrec.at:25'
32828 at_desc="short records"
32829 $at_quiet $as_echo_n " 91: $at_desc "
32831 test -f $XFAILFILE && at_xfail=yes
32832 echo "# -*- compilation -*-" >> "$at_group_log"
32834 $as_echo "91. shortrec.at:25: testing ..."
32842 $as_echo "$at_srcdir/shortrec.at:28:
32846 export TEST_TAR_FORMAT
32847 TAR_OPTIONS=\"-H v7\"
32852 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32853 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32854 tar -c -b 1 -f archive directory
32855 tar -t -f archive > /dev/null
32856 tar -t -f - < archive > /dev/null
32860 echo shortrec.at:28 >"$at_check_line_file"
32862 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32868 export TEST_TAR_FORMAT
32869 TAR_OPTIONS="-H v7"
32874 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32875 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32876 tar -c -b 1 -f archive directory
32877 tar -t -f archive > /dev/null
32878 tar -t -f - < archive > /dev/null
32881 ) ) >"$at_stdout" 2>"$at_stder1"
32882 at_func_filter_trace $?
32888 export TEST_TAR_FORMAT
32889 TAR_OPTIONS="-H v7"
32894 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32895 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32896 tar -c -b 1 -f archive directory
32897 tar -t -f archive > /dev/null
32898 tar -t -f - < archive > /dev/null
32901 ) ) >"$at_stdout" 2>"$at_stderr"
32905 at_func_diff_devnull "$at_stderr" || at_failed=:
32906 at_func_diff_devnull "$at_stdout" || at_failed=:
32907 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32909 $at_failed && at_func_log_failure
32913 $as_echo "$at_srcdir/shortrec.at:28:
32916 TEST_TAR_FORMAT=oldgnu
32917 export TEST_TAR_FORMAT
32918 TAR_OPTIONS=\"-H oldgnu\"
32923 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32924 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32925 tar -c -b 1 -f archive directory
32926 tar -t -f archive > /dev/null
32927 tar -t -f - < archive > /dev/null
32931 echo shortrec.at:28 >"$at_check_line_file"
32933 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32938 TEST_TAR_FORMAT=oldgnu
32939 export TEST_TAR_FORMAT
32940 TAR_OPTIONS="-H oldgnu"
32945 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32946 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32947 tar -c -b 1 -f archive directory
32948 tar -t -f archive > /dev/null
32949 tar -t -f - < archive > /dev/null
32952 ) ) >"$at_stdout" 2>"$at_stder1"
32953 at_func_filter_trace $?
32958 TEST_TAR_FORMAT=oldgnu
32959 export TEST_TAR_FORMAT
32960 TAR_OPTIONS="-H oldgnu"
32965 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32966 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32967 tar -c -b 1 -f archive directory
32968 tar -t -f archive > /dev/null
32969 tar -t -f - < archive > /dev/null
32972 ) ) >"$at_stdout" 2>"$at_stderr"
32976 at_func_diff_devnull "$at_stderr" || at_failed=:
32977 at_func_diff_devnull "$at_stdout" || at_failed=:
32978 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32980 $at_failed && at_func_log_failure
32984 $as_echo "$at_srcdir/shortrec.at:28:
32987 TEST_TAR_FORMAT=ustar
32988 export TEST_TAR_FORMAT
32989 TAR_OPTIONS=\"-H ustar\"
32994 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32995 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32996 tar -c -b 1 -f archive directory
32997 tar -t -f archive > /dev/null
32998 tar -t -f - < archive > /dev/null
33002 echo shortrec.at:28 >"$at_check_line_file"
33004 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33009 TEST_TAR_FORMAT=ustar
33010 export TEST_TAR_FORMAT
33011 TAR_OPTIONS="-H ustar"
33016 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33017 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33018 tar -c -b 1 -f archive directory
33019 tar -t -f archive > /dev/null
33020 tar -t -f - < archive > /dev/null
33023 ) ) >"$at_stdout" 2>"$at_stder1"
33024 at_func_filter_trace $?
33029 TEST_TAR_FORMAT=ustar
33030 export TEST_TAR_FORMAT
33031 TAR_OPTIONS="-H ustar"
33036 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33037 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33038 tar -c -b 1 -f archive directory
33039 tar -t -f archive > /dev/null
33040 tar -t -f - < archive > /dev/null
33043 ) ) >"$at_stdout" 2>"$at_stderr"
33047 at_func_diff_devnull "$at_stderr" || at_failed=:
33048 at_func_diff_devnull "$at_stdout" || at_failed=:
33049 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33051 $at_failed && at_func_log_failure
33055 $as_echo "$at_srcdir/shortrec.at:28:
33058 TEST_TAR_FORMAT=posix
33059 export TEST_TAR_FORMAT
33060 TAR_OPTIONS=\"-H posix\"
33065 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33066 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33067 tar -c -b 1 -f archive directory
33068 tar -t -f archive > /dev/null
33069 tar -t -f - < archive > /dev/null
33073 echo shortrec.at:28 >"$at_check_line_file"
33075 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33080 TEST_TAR_FORMAT=posix
33081 export TEST_TAR_FORMAT
33082 TAR_OPTIONS="-H posix"
33087 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33088 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33089 tar -c -b 1 -f archive directory
33090 tar -t -f archive > /dev/null
33091 tar -t -f - < archive > /dev/null
33094 ) ) >"$at_stdout" 2>"$at_stder1"
33095 at_func_filter_trace $?
33100 TEST_TAR_FORMAT=posix
33101 export TEST_TAR_FORMAT
33102 TAR_OPTIONS="-H posix"
33107 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33108 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33109 tar -c -b 1 -f archive directory
33110 tar -t -f archive > /dev/null
33111 tar -t -f - < archive > /dev/null
33114 ) ) >"$at_stdout" 2>"$at_stderr"
33118 at_func_diff_devnull "$at_stderr" || at_failed=:
33119 at_func_diff_devnull "$at_stdout" || at_failed=:
33120 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33122 $at_failed && at_func_log_failure
33126 $as_echo "$at_srcdir/shortrec.at:28:
33129 TEST_TAR_FORMAT=gnu
33130 export TEST_TAR_FORMAT
33131 TAR_OPTIONS=\"-H gnu\"
33136 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33137 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33138 tar -c -b 1 -f archive directory
33139 tar -t -f archive > /dev/null
33140 tar -t -f - < archive > /dev/null
33144 echo shortrec.at:28 >"$at_check_line_file"
33146 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33151 TEST_TAR_FORMAT=gnu
33152 export TEST_TAR_FORMAT
33153 TAR_OPTIONS="-H gnu"
33158 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33159 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33160 tar -c -b 1 -f archive directory
33161 tar -t -f archive > /dev/null
33162 tar -t -f - < archive > /dev/null
33165 ) ) >"$at_stdout" 2>"$at_stder1"
33166 at_func_filter_trace $?
33171 TEST_TAR_FORMAT=gnu
33172 export TEST_TAR_FORMAT
33173 TAR_OPTIONS="-H gnu"
33178 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33179 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33180 tar -c -b 1 -f archive directory
33181 tar -t -f archive > /dev/null
33182 tar -t -f - < archive > /dev/null
33185 ) ) >"$at_stdout" 2>"$at_stderr"
33189 at_func_diff_devnull "$at_stderr" || at_failed=:
33190 at_func_diff_devnull "$at_stdout" || at_failed=:
33191 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33193 $at_failed && at_func_log_failure
33200 $at_times_p && times >"$at_times_file"
33201 ) 5>&1 2>&1 | eval $at_tee_pipe
33202 at_status=`cat "$at_status_file"`
33205 # 92. sparse01.at:21: sparse files
33206 at_setup_line='sparse01.at:21'
33207 at_desc="sparse files"
33208 $at_quiet $as_echo_n " 92: $at_desc "
33210 test -f $XFAILFILE && at_xfail=yes
33211 echo "# -*- compilation -*-" >> "$at_group_log"
33213 $as_echo "92. sparse01.at:21: testing ..."
33221 $as_echo "$at_srcdir/sparse01.at:24:
33224 TEST_TAR_FORMAT=posix
33225 export TEST_TAR_FORMAT
33226 TAR_OPTIONS=\"-H posix\"
33230 genfile --length 1000 -f begin
33231 genfile --length 1000 -f end
33232 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33233 tar -c -f archive --sparse begin sparsefile end || exit 1
33239 tar Cxf directory archive --warning=no-timestamp
33240 genfile --stat=name,size sparsefile
33241 cmp sparsefile directory/sparsefile
33243 echo sparse01.at:24 >"$at_check_line_file"
33245 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33250 TEST_TAR_FORMAT=posix
33251 export TEST_TAR_FORMAT
33252 TAR_OPTIONS="-H posix"
33256 genfile --length 1000 -f begin
33257 genfile --length 1000 -f end
33258 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33259 tar -c -f archive --sparse begin sparsefile end || exit 1
33265 tar Cxf directory archive --warning=no-timestamp
33266 genfile --stat=name,size sparsefile
33267 cmp sparsefile directory/sparsefile
33268 ) ) >"$at_stdout" 2>"$at_stder1"
33269 at_func_filter_trace $?
33274 TEST_TAR_FORMAT=posix
33275 export TEST_TAR_FORMAT
33276 TAR_OPTIONS="-H posix"
33280 genfile --length 1000 -f begin
33281 genfile --length 1000 -f end
33282 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33283 tar -c -f archive --sparse begin sparsefile end || exit 1
33289 tar Cxf directory archive --warning=no-timestamp
33290 genfile --stat=name,size sparsefile
33291 cmp sparsefile directory/sparsefile
33292 ) ) >"$at_stdout" 2>"$at_stderr"
33296 at_func_diff_devnull "$at_stderr" || at_failed=:
33297 echo stdout:; tee stdout <"$at_stdout"
33298 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33300 $at_failed && at_func_log_failure
33304 $as_echo "$at_srcdir/sparse01.at:24:
33307 TEST_TAR_FORMAT=gnu
33308 export TEST_TAR_FORMAT
33309 TAR_OPTIONS=\"-H gnu\"
33313 genfile --length 1000 -f begin
33314 genfile --length 1000 -f end
33315 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33316 tar -c -f archive --sparse begin sparsefile end || exit 1
33322 tar Cxf directory archive --warning=no-timestamp
33323 genfile --stat=name,size sparsefile
33324 cmp sparsefile directory/sparsefile
33326 echo sparse01.at:24 >"$at_check_line_file"
33328 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33333 TEST_TAR_FORMAT=gnu
33334 export TEST_TAR_FORMAT
33335 TAR_OPTIONS="-H gnu"
33339 genfile --length 1000 -f begin
33340 genfile --length 1000 -f end
33341 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33342 tar -c -f archive --sparse begin sparsefile end || exit 1
33348 tar Cxf directory archive --warning=no-timestamp
33349 genfile --stat=name,size sparsefile
33350 cmp sparsefile directory/sparsefile
33351 ) ) >"$at_stdout" 2>"$at_stder1"
33352 at_func_filter_trace $?
33357 TEST_TAR_FORMAT=gnu
33358 export TEST_TAR_FORMAT
33359 TAR_OPTIONS="-H gnu"
33363 genfile --length 1000 -f begin
33364 genfile --length 1000 -f end
33365 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33366 tar -c -f archive --sparse begin sparsefile end || exit 1
33372 tar Cxf directory archive --warning=no-timestamp
33373 genfile --stat=name,size sparsefile
33374 cmp sparsefile directory/sparsefile
33375 ) ) >"$at_stdout" 2>"$at_stderr"
33379 at_func_diff_devnull "$at_stderr" || at_failed=:
33380 echo stdout:; tee stdout <"$at_stdout"
33381 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33383 $at_failed && at_func_log_failure
33387 $as_echo "$at_srcdir/sparse01.at:24:
33390 TEST_TAR_FORMAT=oldgnu
33391 export TEST_TAR_FORMAT
33392 TAR_OPTIONS=\"-H oldgnu\"
33396 genfile --length 1000 -f begin
33397 genfile --length 1000 -f end
33398 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33399 tar -c -f archive --sparse begin sparsefile end || exit 1
33405 tar Cxf directory archive --warning=no-timestamp
33406 genfile --stat=name,size sparsefile
33407 cmp sparsefile directory/sparsefile
33409 echo sparse01.at:24 >"$at_check_line_file"
33411 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33416 TEST_TAR_FORMAT=oldgnu
33417 export TEST_TAR_FORMAT
33418 TAR_OPTIONS="-H oldgnu"
33422 genfile --length 1000 -f begin
33423 genfile --length 1000 -f end
33424 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33425 tar -c -f archive --sparse begin sparsefile end || exit 1
33431 tar Cxf directory archive --warning=no-timestamp
33432 genfile --stat=name,size sparsefile
33433 cmp sparsefile directory/sparsefile
33434 ) ) >"$at_stdout" 2>"$at_stder1"
33435 at_func_filter_trace $?
33440 TEST_TAR_FORMAT=oldgnu
33441 export TEST_TAR_FORMAT
33442 TAR_OPTIONS="-H oldgnu"
33446 genfile --length 1000 -f begin
33447 genfile --length 1000 -f end
33448 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33449 tar -c -f archive --sparse begin sparsefile end || exit 1
33455 tar Cxf directory archive --warning=no-timestamp
33456 genfile --stat=name,size sparsefile
33457 cmp sparsefile directory/sparsefile
33458 ) ) >"$at_stdout" 2>"$at_stderr"
33462 at_func_diff_devnull "$at_stderr" || at_failed=:
33463 echo stdout:; tee stdout <"$at_stdout"
33464 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33466 $at_failed && at_func_log_failure
33473 cat >stdout.re <<'_ATEOF'
33475 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33476 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33477 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33479 sparsefile 10344448
33482 awk '{print NR " " $0}' stdout > $$.1
33483 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33484 while read NUM RE LINE
33486 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33491 $at_times_p && times >"$at_times_file"
33492 ) 5>&1 2>&1 | eval $at_tee_pipe
33493 at_status=`cat "$at_status_file"`
33496 # 93. sparse02.at:21: extracting sparse file over a pipe
33497 at_setup_line='sparse02.at:21'
33498 at_desc="extracting sparse file over a pipe"
33499 $at_quiet $as_echo_n " 93: $at_desc "
33501 test -f $XFAILFILE && at_xfail=yes
33502 echo "# -*- compilation -*-" >> "$at_group_log"
33504 $as_echo "93. sparse02.at:21: testing ..."
33509 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
33510 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
33511 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
33516 $as_echo "$at_srcdir/sparse02.at:28:
33519 TEST_TAR_FORMAT=posix
33520 export TEST_TAR_FORMAT
33521 TAR_OPTIONS=\"-H posix\"
33525 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33526 tar -c -f archive --sparse sparsefile || exit 1
33529 tar xfO archive | cat - > sparsecopy || exit 1
33530 cmp sparsefile sparsecopy
33532 echo sparse02.at:28 >"$at_check_line_file"
33534 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33539 TEST_TAR_FORMAT=posix
33540 export TEST_TAR_FORMAT
33541 TAR_OPTIONS="-H posix"
33545 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33546 tar -c -f archive --sparse sparsefile || exit 1
33549 tar xfO archive | cat - > sparsecopy || exit 1
33550 cmp sparsefile sparsecopy
33551 ) ) >"$at_stdout" 2>"$at_stder1"
33552 at_func_filter_trace $?
33557 TEST_TAR_FORMAT=posix
33558 export TEST_TAR_FORMAT
33559 TAR_OPTIONS="-H posix"
33563 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33564 tar -c -f archive --sparse sparsefile || exit 1
33567 tar xfO archive | cat - > sparsecopy || exit 1
33568 cmp sparsefile sparsecopy
33569 ) ) >"$at_stdout" 2>"$at_stderr"
33573 at_func_diff_devnull "$at_stderr" || at_failed=:
33574 echo >>"$at_stdout"; $as_echo "separator
33576 $at_diff - "$at_stdout" || at_failed=:
33577 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33579 $at_failed && at_func_log_failure
33583 $as_echo "$at_srcdir/sparse02.at:28:
33586 TEST_TAR_FORMAT=gnu
33587 export TEST_TAR_FORMAT
33588 TAR_OPTIONS=\"-H gnu\"
33592 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33593 tar -c -f archive --sparse sparsefile || exit 1
33596 tar xfO archive | cat - > sparsecopy || exit 1
33597 cmp sparsefile sparsecopy
33599 echo sparse02.at:28 >"$at_check_line_file"
33601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33606 TEST_TAR_FORMAT=gnu
33607 export TEST_TAR_FORMAT
33608 TAR_OPTIONS="-H gnu"
33612 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33613 tar -c -f archive --sparse sparsefile || exit 1
33616 tar xfO archive | cat - > sparsecopy || exit 1
33617 cmp sparsefile sparsecopy
33618 ) ) >"$at_stdout" 2>"$at_stder1"
33619 at_func_filter_trace $?
33624 TEST_TAR_FORMAT=gnu
33625 export TEST_TAR_FORMAT
33626 TAR_OPTIONS="-H gnu"
33630 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33631 tar -c -f archive --sparse sparsefile || exit 1
33634 tar xfO archive | cat - > sparsecopy || exit 1
33635 cmp sparsefile sparsecopy
33636 ) ) >"$at_stdout" 2>"$at_stderr"
33640 at_func_diff_devnull "$at_stderr" || at_failed=:
33641 echo >>"$at_stdout"; $as_echo "separator
33643 $at_diff - "$at_stdout" || at_failed=:
33644 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33646 $at_failed && at_func_log_failure
33650 $as_echo "$at_srcdir/sparse02.at:28:
33653 TEST_TAR_FORMAT=oldgnu
33654 export TEST_TAR_FORMAT
33655 TAR_OPTIONS=\"-H oldgnu\"
33659 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33660 tar -c -f archive --sparse sparsefile || exit 1
33663 tar xfO archive | cat - > sparsecopy || exit 1
33664 cmp sparsefile sparsecopy
33666 echo sparse02.at:28 >"$at_check_line_file"
33668 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33673 TEST_TAR_FORMAT=oldgnu
33674 export TEST_TAR_FORMAT
33675 TAR_OPTIONS="-H oldgnu"
33679 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33680 tar -c -f archive --sparse sparsefile || exit 1
33683 tar xfO archive | cat - > sparsecopy || exit 1
33684 cmp sparsefile sparsecopy
33685 ) ) >"$at_stdout" 2>"$at_stder1"
33686 at_func_filter_trace $?
33691 TEST_TAR_FORMAT=oldgnu
33692 export TEST_TAR_FORMAT
33693 TAR_OPTIONS="-H oldgnu"
33697 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33698 tar -c -f archive --sparse sparsefile || exit 1
33701 tar xfO archive | cat - > sparsecopy || exit 1
33702 cmp sparsefile sparsecopy
33703 ) ) >"$at_stdout" 2>"$at_stderr"
33707 at_func_diff_devnull "$at_stderr" || at_failed=:
33708 echo >>"$at_stdout"; $as_echo "separator
33710 $at_diff - "$at_stdout" || at_failed=:
33711 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33713 $at_failed && at_func_log_failure
33720 $at_times_p && times >"$at_times_file"
33721 ) 5>&1 2>&1 | eval $at_tee_pipe
33722 at_status=`cat "$at_status_file"`
33725 # 94. sparse03.at:21: storing sparse files > 8G
33726 at_setup_line='sparse03.at:21'
33727 at_desc="storing sparse files > 8G"
33728 $at_quiet $as_echo_n " 94: $at_desc "
33730 test -f $XFAILFILE && at_xfail=yes
33731 echo "# -*- compilation -*-" >> "$at_group_log"
33733 $as_echo "94. sparse03.at:21: testing ..."
33738 # Tar 1.15.1 incorrectly computed sparse member size if the extended
33739 # PAX header contained size keyword.
33740 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
33741 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
33746 $as_echo "$at_srcdir/sparse03.at:29:
33749 TEST_TAR_FORMAT=posix
33750 export TEST_TAR_FORMAT
33751 TAR_OPTIONS=\"-H posix\"
33755 genfile --length 1000 --file begin
33756 genfile --length 1000 --file end
33757 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33758 tar -c -f archive --sparse begin sparsefile end || exit 1
33764 tar Cxf directory archive
33765 genfile --stat=name,size sparsefile
33766 cmp sparsefile directory/sparsefile
33768 echo sparse03.at:29 >"$at_check_line_file"
33770 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33775 TEST_TAR_FORMAT=posix
33776 export TEST_TAR_FORMAT
33777 TAR_OPTIONS="-H posix"
33781 genfile --length 1000 --file begin
33782 genfile --length 1000 --file end
33783 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33784 tar -c -f archive --sparse begin sparsefile end || exit 1
33790 tar Cxf directory archive
33791 genfile --stat=name,size sparsefile
33792 cmp sparsefile directory/sparsefile
33793 ) ) >"$at_stdout" 2>"$at_stder1"
33794 at_func_filter_trace $?
33799 TEST_TAR_FORMAT=posix
33800 export TEST_TAR_FORMAT
33801 TAR_OPTIONS="-H posix"
33805 genfile --length 1000 --file begin
33806 genfile --length 1000 --file end
33807 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33808 tar -c -f archive --sparse begin sparsefile end || exit 1
33814 tar Cxf directory archive
33815 genfile --stat=name,size sparsefile
33816 cmp sparsefile directory/sparsefile
33817 ) ) >"$at_stdout" 2>"$at_stderr"
33821 at_func_diff_devnull "$at_stderr" || at_failed=:
33822 echo stdout:; tee stdout <"$at_stdout"
33823 at_func_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
33825 $at_failed && at_func_log_failure
33832 cat >stdout.re <<'_ATEOF'
33834 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33835 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33836 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33838 sparsefile 8589935104
33841 awk '{print NR " " $0}' stdout > $$.1
33842 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33843 while read NUM RE LINE
33845 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33850 $at_times_p && times >"$at_times_file"
33851 ) 5>&1 2>&1 | eval $at_tee_pipe
33852 at_status=`cat "$at_status_file"`
33855 # 95. sparsemv.at:21: sparse files in MV archives
33856 at_setup_line='sparsemv.at:21'
33857 at_desc="sparse files in MV archives"
33858 $at_quiet $as_echo_n " 95: $at_desc "
33860 test -f $XFAILFILE && at_xfail=yes
33861 echo "# -*- compilation -*-" >> "$at_group_log"
33863 $as_echo "95. sparsemv.at:21: testing ..."
33868 # Check if sparse files are correctly split between GNU multi-volume
33870 # There are two cases: the file can be split within an empty (null) block,
33871 # or within a data block. Since null blocks are not archived, the first
33872 # case means the file is split between two consecutive data blocks.
33878 $as_echo "$at_srcdir/sparsemv.at:31:
33881 TEST_TAR_FORMAT=gnu
33882 export TEST_TAR_FORMAT
33883 TAR_OPTIONS=\"-H gnu\"
33888 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33889 echo \"Pass 1: Split between data blocks\"
33890 echo \"Create archive\"
33891 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33892 echo \"Test archive\"
33893 tar --record-size=512 -t -M -f arc.1 -f arc.2
33894 echo \"Compare archive\"
33895 tar --record-size=512 -d -M -f arc.1 -f arc.2
33897 echo \"Pass 2: Split within a data block\"
33898 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33899 echo \"Create archive\"
33900 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33901 echo \"Test archive\"
33902 tar --record-size=512 -t -M -f arc.1 -f arc.2
33903 echo \"Compare archive\"
33904 tar --record-size=512 -d -M -f arc.1 -f arc.2
33906 echo sparsemv.at:31 >"$at_check_line_file"
33908 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33913 TEST_TAR_FORMAT=gnu
33914 export TEST_TAR_FORMAT
33915 TAR_OPTIONS="-H gnu"
33920 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33921 echo "Pass 1: Split between data blocks"
33922 echo "Create archive"
33923 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33924 echo "Test archive"
33925 tar --record-size=512 -t -M -f arc.1 -f arc.2
33926 echo "Compare archive"
33927 tar --record-size=512 -d -M -f arc.1 -f arc.2
33929 echo "Pass 2: Split within a data block"
33930 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33931 echo "Create archive"
33932 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33933 echo "Test archive"
33934 tar --record-size=512 -t -M -f arc.1 -f arc.2
33935 echo "Compare archive"
33936 tar --record-size=512 -d -M -f arc.1 -f arc.2
33937 ) ) >"$at_stdout" 2>"$at_stder1"
33938 at_func_filter_trace $?
33943 TEST_TAR_FORMAT=gnu
33944 export TEST_TAR_FORMAT
33945 TAR_OPTIONS="-H gnu"
33950 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33951 echo "Pass 1: Split between data blocks"
33952 echo "Create archive"
33953 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33954 echo "Test archive"
33955 tar --record-size=512 -t -M -f arc.1 -f arc.2
33956 echo "Compare archive"
33957 tar --record-size=512 -d -M -f arc.1 -f arc.2
33959 echo "Pass 2: Split within a data block"
33960 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33961 echo "Create archive"
33962 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33963 echo "Test archive"
33964 tar --record-size=512 -t -M -f arc.1 -f arc.2
33965 echo "Compare archive"
33966 tar --record-size=512 -d -M -f arc.1 -f arc.2
33967 ) ) >"$at_stdout" 2>"$at_stderr"
33971 at_func_diff_devnull "$at_stderr" || at_failed=:
33972 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33977 Pass 2: Split within a data block
33983 $at_diff - "$at_stdout" || at_failed=:
33984 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
33986 $at_failed && at_func_log_failure
33990 $as_echo "$at_srcdir/sparsemv.at:31:
33993 TEST_TAR_FORMAT=oldgnu
33994 export TEST_TAR_FORMAT
33995 TAR_OPTIONS=\"-H oldgnu\"
34000 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34001 echo \"Pass 1: Split between data blocks\"
34002 echo \"Create archive\"
34003 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34004 echo \"Test archive\"
34005 tar --record-size=512 -t -M -f arc.1 -f arc.2
34006 echo \"Compare archive\"
34007 tar --record-size=512 -d -M -f arc.1 -f arc.2
34009 echo \"Pass 2: Split within a data block\"
34010 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34011 echo \"Create archive\"
34012 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34013 echo \"Test archive\"
34014 tar --record-size=512 -t -M -f arc.1 -f arc.2
34015 echo \"Compare archive\"
34016 tar --record-size=512 -d -M -f arc.1 -f arc.2
34018 echo sparsemv.at:31 >"$at_check_line_file"
34020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34025 TEST_TAR_FORMAT=oldgnu
34026 export TEST_TAR_FORMAT
34027 TAR_OPTIONS="-H oldgnu"
34032 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34033 echo "Pass 1: Split between data blocks"
34034 echo "Create archive"
34035 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34036 echo "Test archive"
34037 tar --record-size=512 -t -M -f arc.1 -f arc.2
34038 echo "Compare archive"
34039 tar --record-size=512 -d -M -f arc.1 -f arc.2
34041 echo "Pass 2: Split within a data block"
34042 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34043 echo "Create archive"
34044 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34045 echo "Test archive"
34046 tar --record-size=512 -t -M -f arc.1 -f arc.2
34047 echo "Compare archive"
34048 tar --record-size=512 -d -M -f arc.1 -f arc.2
34049 ) ) >"$at_stdout" 2>"$at_stder1"
34050 at_func_filter_trace $?
34055 TEST_TAR_FORMAT=oldgnu
34056 export TEST_TAR_FORMAT
34057 TAR_OPTIONS="-H oldgnu"
34062 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34063 echo "Pass 1: Split between data blocks"
34064 echo "Create archive"
34065 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34066 echo "Test archive"
34067 tar --record-size=512 -t -M -f arc.1 -f arc.2
34068 echo "Compare archive"
34069 tar --record-size=512 -d -M -f arc.1 -f arc.2
34071 echo "Pass 2: Split within a data block"
34072 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34073 echo "Create archive"
34074 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34075 echo "Test archive"
34076 tar --record-size=512 -t -M -f arc.1 -f arc.2
34077 echo "Compare archive"
34078 tar --record-size=512 -d -M -f arc.1 -f arc.2
34079 ) ) >"$at_stdout" 2>"$at_stderr"
34083 at_func_diff_devnull "$at_stderr" || at_failed=:
34084 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34089 Pass 2: Split within a data block
34095 $at_diff - "$at_stdout" || at_failed=:
34096 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
34098 $at_failed && at_func_log_failure
34105 $at_times_p && times >"$at_times_file"
34106 ) 5>&1 2>&1 | eval $at_tee_pipe
34107 at_status=`cat "$at_status_file"`
34110 # 96. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
34111 at_setup_line='spmvp00.at:21'
34112 at_desc="sparse files in PAX MV archives, v.0.0"
34113 $at_quiet $as_echo_n " 96: $at_desc "
34115 test -f $XFAILFILE && at_xfail=yes
34116 echo "# -*- compilation -*-" >> "$at_group_log"
34118 $as_echo "96. spmvp00.at:21: testing ..."
34127 $as_echo "$at_srcdir/spmvp00.at:24:
34130 TEST_TAR_FORMAT=pax
34131 export TEST_TAR_FORMAT
34132 TAR_OPTIONS=\"-H pax\"
34137 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34138 echo \"Pass 1: Split between data blocks\"
34139 echo \"Create archive\"
34140 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34141 echo \"Test archive\"
34142 tar -t -M -f arc.1 -f arc.2 -f arc.3
34143 echo \"Compare archive\"
34144 tar -d -M -f arc.1 -f arc.2 -f arc.3
34146 echo \"Pass 2: Split within a data block\"
34147 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34148 echo \"Create archive\"
34149 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34150 echo \"Test archive\"
34151 tar -t -M -f arc.1 -f arc.2 -f arc.3
34152 echo \"Compare archive\"
34153 tar -d -M -f arc.1 -f arc.2 -f arc.3
34155 echo spmvp00.at:24 >"$at_check_line_file"
34157 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34162 TEST_TAR_FORMAT=pax
34163 export TEST_TAR_FORMAT
34164 TAR_OPTIONS="-H pax"
34169 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34170 echo "Pass 1: Split between data blocks"
34171 echo "Create archive"
34172 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34173 echo "Test archive"
34174 tar -t -M -f arc.1 -f arc.2 -f arc.3
34175 echo "Compare archive"
34176 tar -d -M -f arc.1 -f arc.2 -f arc.3
34178 echo "Pass 2: Split within a data block"
34179 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34180 echo "Create archive"
34181 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34182 echo "Test archive"
34183 tar -t -M -f arc.1 -f arc.2 -f arc.3
34184 echo "Compare archive"
34185 tar -d -M -f arc.1 -f arc.2 -f arc.3
34186 ) ) >"$at_stdout" 2>"$at_stder1"
34187 at_func_filter_trace $?
34192 TEST_TAR_FORMAT=pax
34193 export TEST_TAR_FORMAT
34194 TAR_OPTIONS="-H pax"
34199 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34200 echo "Pass 1: Split between data blocks"
34201 echo "Create archive"
34202 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34203 echo "Test archive"
34204 tar -t -M -f arc.1 -f arc.2 -f arc.3
34205 echo "Compare archive"
34206 tar -d -M -f arc.1 -f arc.2 -f arc.3
34208 echo "Pass 2: Split within a data block"
34209 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34210 echo "Create archive"
34211 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34212 echo "Test archive"
34213 tar -t -M -f arc.1 -f arc.2 -f arc.3
34214 echo "Compare archive"
34215 tar -d -M -f arc.1 -f arc.2 -f arc.3
34216 ) ) >"$at_stdout" 2>"$at_stderr"
34220 at_func_diff_devnull "$at_stderr" || at_failed=:
34221 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34226 Pass 2: Split within a data block
34232 $at_diff - "$at_stdout" || at_failed=:
34233 at_func_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
34235 $at_failed && at_func_log_failure
34242 $at_times_p && times >"$at_times_file"
34243 ) 5>&1 2>&1 | eval $at_tee_pipe
34244 at_status=`cat "$at_status_file"`
34247 # 97. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
34248 at_setup_line='spmvp01.at:21'
34249 at_desc="sparse files in PAX MV archives, v.0.1"
34250 $at_quiet $as_echo_n " 97: $at_desc "
34252 test -f $XFAILFILE && at_xfail=yes
34253 echo "# -*- compilation -*-" >> "$at_group_log"
34255 $as_echo "97. spmvp01.at:21: testing ..."
34264 $as_echo "$at_srcdir/spmvp01.at:24:
34267 TEST_TAR_FORMAT=pax
34268 export TEST_TAR_FORMAT
34269 TAR_OPTIONS=\"-H pax\"
34274 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34275 echo \"Pass 1: Split between data blocks\"
34276 echo \"Create archive\"
34277 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34278 echo \"Test archive\"
34279 tar -t -M -f arc.1 -f arc.2 -f arc.3
34280 echo \"Compare archive\"
34281 tar -d -M -f arc.1 -f arc.2 -f arc.3
34283 echo \"Pass 2: Split within a data block\"
34284 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34285 echo \"Create archive\"
34286 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34287 echo \"Test archive\"
34288 tar -t -M -f arc.1 -f arc.2 -f arc.3
34289 echo \"Compare archive\"
34290 tar -d -M -f arc.1 -f arc.2 -f arc.3
34292 echo spmvp01.at:24 >"$at_check_line_file"
34294 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34299 TEST_TAR_FORMAT=pax
34300 export TEST_TAR_FORMAT
34301 TAR_OPTIONS="-H pax"
34306 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34307 echo "Pass 1: Split between data blocks"
34308 echo "Create archive"
34309 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34310 echo "Test archive"
34311 tar -t -M -f arc.1 -f arc.2 -f arc.3
34312 echo "Compare archive"
34313 tar -d -M -f arc.1 -f arc.2 -f arc.3
34315 echo "Pass 2: Split within a data block"
34316 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34317 echo "Create archive"
34318 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34319 echo "Test archive"
34320 tar -t -M -f arc.1 -f arc.2 -f arc.3
34321 echo "Compare archive"
34322 tar -d -M -f arc.1 -f arc.2 -f arc.3
34323 ) ) >"$at_stdout" 2>"$at_stder1"
34324 at_func_filter_trace $?
34329 TEST_TAR_FORMAT=pax
34330 export TEST_TAR_FORMAT
34331 TAR_OPTIONS="-H pax"
34336 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34337 echo "Pass 1: Split between data blocks"
34338 echo "Create archive"
34339 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34340 echo "Test archive"
34341 tar -t -M -f arc.1 -f arc.2 -f arc.3
34342 echo "Compare archive"
34343 tar -d -M -f arc.1 -f arc.2 -f arc.3
34345 echo "Pass 2: Split within a data block"
34346 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34347 echo "Create archive"
34348 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34349 echo "Test archive"
34350 tar -t -M -f arc.1 -f arc.2 -f arc.3
34351 echo "Compare archive"
34352 tar -d -M -f arc.1 -f arc.2 -f arc.3
34353 ) ) >"$at_stdout" 2>"$at_stderr"
34357 at_func_diff_devnull "$at_stderr" || at_failed=:
34358 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34363 Pass 2: Split within a data block
34369 $at_diff - "$at_stdout" || at_failed=:
34370 at_func_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
34372 $at_failed && at_func_log_failure
34379 $at_times_p && times >"$at_times_file"
34380 ) 5>&1 2>&1 | eval $at_tee_pipe
34381 at_status=`cat "$at_status_file"`
34384 # 98. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
34385 at_setup_line='spmvp10.at:21'
34386 at_desc="sparse files in PAX MV archives, v.1.0"
34387 $at_quiet $as_echo_n " 98: $at_desc "
34389 test -f $XFAILFILE && at_xfail=yes
34390 echo "# -*- compilation -*-" >> "$at_group_log"
34392 $as_echo "98. spmvp10.at:21: testing ..."
34401 $as_echo "$at_srcdir/spmvp10.at:24:
34404 TEST_TAR_FORMAT=pax
34405 export TEST_TAR_FORMAT
34406 TAR_OPTIONS=\"-H pax\"
34411 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34412 echo \"Pass 1: Split between data blocks\"
34413 echo \"Create archive\"
34414 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34415 echo \"Test archive\"
34416 tar -t -M -f arc.1 -f arc.2 -f arc.3
34417 echo \"Compare archive\"
34418 tar -d -M -f arc.1 -f arc.2 -f arc.3
34420 echo \"Pass 2: Split within a data block\"
34421 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34422 echo \"Create archive\"
34423 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34424 echo \"Test archive\"
34425 tar -t -M -f arc.1 -f arc.2 -f arc.3
34426 echo \"Compare archive\"
34427 tar -d -M -f arc.1 -f arc.2 -f arc.3
34429 echo spmvp10.at:24 >"$at_check_line_file"
34431 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34436 TEST_TAR_FORMAT=pax
34437 export TEST_TAR_FORMAT
34438 TAR_OPTIONS="-H pax"
34443 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34444 echo "Pass 1: Split between data blocks"
34445 echo "Create archive"
34446 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34447 echo "Test archive"
34448 tar -t -M -f arc.1 -f arc.2 -f arc.3
34449 echo "Compare archive"
34450 tar -d -M -f arc.1 -f arc.2 -f arc.3
34452 echo "Pass 2: Split within a data block"
34453 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34454 echo "Create archive"
34455 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34456 echo "Test archive"
34457 tar -t -M -f arc.1 -f arc.2 -f arc.3
34458 echo "Compare archive"
34459 tar -d -M -f arc.1 -f arc.2 -f arc.3
34460 ) ) >"$at_stdout" 2>"$at_stder1"
34461 at_func_filter_trace $?
34466 TEST_TAR_FORMAT=pax
34467 export TEST_TAR_FORMAT
34468 TAR_OPTIONS="-H pax"
34473 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34474 echo "Pass 1: Split between data blocks"
34475 echo "Create archive"
34476 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34477 echo "Test archive"
34478 tar -t -M -f arc.1 -f arc.2 -f arc.3
34479 echo "Compare archive"
34480 tar -d -M -f arc.1 -f arc.2 -f arc.3
34482 echo "Pass 2: Split within a data block"
34483 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34484 echo "Create archive"
34485 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34486 echo "Test archive"
34487 tar -t -M -f arc.1 -f arc.2 -f arc.3
34488 echo "Compare archive"
34489 tar -d -M -f arc.1 -f arc.2 -f arc.3
34490 ) ) >"$at_stdout" 2>"$at_stderr"
34494 at_func_diff_devnull "$at_stderr" || at_failed=:
34495 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34500 Pass 2: Split within a data block
34506 $at_diff - "$at_stdout" || at_failed=:
34507 at_func_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
34509 $at_failed && at_func_log_failure
34516 $at_times_p && times >"$at_times_file"
34517 ) 5>&1 2>&1 | eval $at_tee_pipe
34518 at_status=`cat "$at_status_file"`
34521 # 99. update.at:28: update unchanged directories
34522 at_setup_line='update.at:28'
34523 at_desc="update unchanged directories"
34524 $at_quiet $as_echo_n " 99: $at_desc "
34526 test -f $XFAILFILE && at_xfail=yes
34527 echo "# -*- compilation -*-" >> "$at_group_log"
34529 $as_echo "99. update.at:28: testing ..."
34537 $as_echo "$at_srcdir/update.at:31:
34541 export TEST_TAR_FORMAT
34542 TAR_OPTIONS=\"-H v7\"
34547 test -z "`sort < /dev/null 2>&1`" || exit 77
34550 genfile --length 10240 --pattern zeros --file directory/file1
34551 genfile --length 10240 --pattern default --file directory/file2
34553 tar cf archive directory || exit 1
34555 tar uf archive directory || exit 1
34557 tar tf archive | sort || exit 1
34559 echo update.at:31 >"$at_check_line_file"
34561 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34567 export TEST_TAR_FORMAT
34568 TAR_OPTIONS="-H v7"
34573 test -z "`sort < /dev/null 2>&1`" || exit 77
34576 genfile --length 10240 --pattern zeros --file directory/file1
34577 genfile --length 10240 --pattern default --file directory/file2
34579 tar cf archive directory || exit 1
34581 tar uf archive directory || exit 1
34583 tar tf archive | sort || exit 1
34584 ) ) >"$at_stdout" 2>"$at_stder1"
34585 at_func_filter_trace $?
34591 export TEST_TAR_FORMAT
34592 TAR_OPTIONS="-H v7"
34597 test -z "`sort < /dev/null 2>&1`" || exit 77
34600 genfile --length 10240 --pattern zeros --file directory/file1
34601 genfile --length 10240 --pattern default --file directory/file2
34603 tar cf archive directory || exit 1
34605 tar uf archive directory || exit 1
34607 tar tf archive | sort || exit 1
34608 ) ) >"$at_stdout" 2>"$at_stderr"
34612 at_func_diff_devnull "$at_stderr" || at_failed=:
34613 echo >>"$at_stdout"; $as_echo "separator
34619 $at_diff - "$at_stdout" || at_failed=:
34620 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34622 $at_failed && at_func_log_failure
34626 $as_echo "$at_srcdir/update.at:31:
34629 TEST_TAR_FORMAT=oldgnu
34630 export TEST_TAR_FORMAT
34631 TAR_OPTIONS=\"-H oldgnu\"
34636 test -z "`sort < /dev/null 2>&1`" || exit 77
34639 genfile --length 10240 --pattern zeros --file directory/file1
34640 genfile --length 10240 --pattern default --file directory/file2
34642 tar cf archive directory || exit 1
34644 tar uf archive directory || exit 1
34646 tar tf archive | sort || exit 1
34648 echo update.at:31 >"$at_check_line_file"
34650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34655 TEST_TAR_FORMAT=oldgnu
34656 export TEST_TAR_FORMAT
34657 TAR_OPTIONS="-H oldgnu"
34662 test -z "`sort < /dev/null 2>&1`" || exit 77
34665 genfile --length 10240 --pattern zeros --file directory/file1
34666 genfile --length 10240 --pattern default --file directory/file2
34668 tar cf archive directory || exit 1
34670 tar uf archive directory || exit 1
34672 tar tf archive | sort || exit 1
34673 ) ) >"$at_stdout" 2>"$at_stder1"
34674 at_func_filter_trace $?
34679 TEST_TAR_FORMAT=oldgnu
34680 export TEST_TAR_FORMAT
34681 TAR_OPTIONS="-H oldgnu"
34686 test -z "`sort < /dev/null 2>&1`" || exit 77
34689 genfile --length 10240 --pattern zeros --file directory/file1
34690 genfile --length 10240 --pattern default --file directory/file2
34692 tar cf archive directory || exit 1
34694 tar uf archive directory || exit 1
34696 tar tf archive | sort || exit 1
34697 ) ) >"$at_stdout" 2>"$at_stderr"
34701 at_func_diff_devnull "$at_stderr" || at_failed=:
34702 echo >>"$at_stdout"; $as_echo "separator
34708 $at_diff - "$at_stdout" || at_failed=:
34709 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34711 $at_failed && at_func_log_failure
34715 $as_echo "$at_srcdir/update.at:31:
34718 TEST_TAR_FORMAT=ustar
34719 export TEST_TAR_FORMAT
34720 TAR_OPTIONS=\"-H ustar\"
34725 test -z "`sort < /dev/null 2>&1`" || exit 77
34728 genfile --length 10240 --pattern zeros --file directory/file1
34729 genfile --length 10240 --pattern default --file directory/file2
34731 tar cf archive directory || exit 1
34733 tar uf archive directory || exit 1
34735 tar tf archive | sort || exit 1
34737 echo update.at:31 >"$at_check_line_file"
34739 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34744 TEST_TAR_FORMAT=ustar
34745 export TEST_TAR_FORMAT
34746 TAR_OPTIONS="-H ustar"
34751 test -z "`sort < /dev/null 2>&1`" || exit 77
34754 genfile --length 10240 --pattern zeros --file directory/file1
34755 genfile --length 10240 --pattern default --file directory/file2
34757 tar cf archive directory || exit 1
34759 tar uf archive directory || exit 1
34761 tar tf archive | sort || exit 1
34762 ) ) >"$at_stdout" 2>"$at_stder1"
34763 at_func_filter_trace $?
34768 TEST_TAR_FORMAT=ustar
34769 export TEST_TAR_FORMAT
34770 TAR_OPTIONS="-H ustar"
34775 test -z "`sort < /dev/null 2>&1`" || exit 77
34778 genfile --length 10240 --pattern zeros --file directory/file1
34779 genfile --length 10240 --pattern default --file directory/file2
34781 tar cf archive directory || exit 1
34783 tar uf archive directory || exit 1
34785 tar tf archive | sort || exit 1
34786 ) ) >"$at_stdout" 2>"$at_stderr"
34790 at_func_diff_devnull "$at_stderr" || at_failed=:
34791 echo >>"$at_stdout"; $as_echo "separator
34797 $at_diff - "$at_stdout" || at_failed=:
34798 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34800 $at_failed && at_func_log_failure
34804 $as_echo "$at_srcdir/update.at:31:
34807 TEST_TAR_FORMAT=posix
34808 export TEST_TAR_FORMAT
34809 TAR_OPTIONS=\"-H posix\"
34814 test -z "`sort < /dev/null 2>&1`" || exit 77
34817 genfile --length 10240 --pattern zeros --file directory/file1
34818 genfile --length 10240 --pattern default --file directory/file2
34820 tar cf archive directory || exit 1
34822 tar uf archive directory || exit 1
34824 tar tf archive | sort || exit 1
34826 echo update.at:31 >"$at_check_line_file"
34828 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34833 TEST_TAR_FORMAT=posix
34834 export TEST_TAR_FORMAT
34835 TAR_OPTIONS="-H posix"
34840 test -z "`sort < /dev/null 2>&1`" || exit 77
34843 genfile --length 10240 --pattern zeros --file directory/file1
34844 genfile --length 10240 --pattern default --file directory/file2
34846 tar cf archive directory || exit 1
34848 tar uf archive directory || exit 1
34850 tar tf archive | sort || exit 1
34851 ) ) >"$at_stdout" 2>"$at_stder1"
34852 at_func_filter_trace $?
34857 TEST_TAR_FORMAT=posix
34858 export TEST_TAR_FORMAT
34859 TAR_OPTIONS="-H posix"
34864 test -z "`sort < /dev/null 2>&1`" || exit 77
34867 genfile --length 10240 --pattern zeros --file directory/file1
34868 genfile --length 10240 --pattern default --file directory/file2
34870 tar cf archive directory || exit 1
34872 tar uf archive directory || exit 1
34874 tar tf archive | sort || exit 1
34875 ) ) >"$at_stdout" 2>"$at_stderr"
34879 at_func_diff_devnull "$at_stderr" || at_failed=:
34880 echo >>"$at_stdout"; $as_echo "separator
34886 $at_diff - "$at_stdout" || at_failed=:
34887 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34889 $at_failed && at_func_log_failure
34893 $as_echo "$at_srcdir/update.at:31:
34896 TEST_TAR_FORMAT=gnu
34897 export TEST_TAR_FORMAT
34898 TAR_OPTIONS=\"-H gnu\"
34903 test -z "`sort < /dev/null 2>&1`" || exit 77
34906 genfile --length 10240 --pattern zeros --file directory/file1
34907 genfile --length 10240 --pattern default --file directory/file2
34909 tar cf archive directory || exit 1
34911 tar uf archive directory || exit 1
34913 tar tf archive | sort || exit 1
34915 echo update.at:31 >"$at_check_line_file"
34917 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34922 TEST_TAR_FORMAT=gnu
34923 export TEST_TAR_FORMAT
34924 TAR_OPTIONS="-H gnu"
34929 test -z "`sort < /dev/null 2>&1`" || exit 77
34932 genfile --length 10240 --pattern zeros --file directory/file1
34933 genfile --length 10240 --pattern default --file directory/file2
34935 tar cf archive directory || exit 1
34937 tar uf archive directory || exit 1
34939 tar tf archive | sort || exit 1
34940 ) ) >"$at_stdout" 2>"$at_stder1"
34941 at_func_filter_trace $?
34946 TEST_TAR_FORMAT=gnu
34947 export TEST_TAR_FORMAT
34948 TAR_OPTIONS="-H gnu"
34953 test -z "`sort < /dev/null 2>&1`" || exit 77
34956 genfile --length 10240 --pattern zeros --file directory/file1
34957 genfile --length 10240 --pattern default --file directory/file2
34959 tar cf archive directory || exit 1
34961 tar uf archive directory || exit 1
34963 tar tf archive | sort || exit 1
34964 ) ) >"$at_stdout" 2>"$at_stderr"
34968 at_func_diff_devnull "$at_stderr" || at_failed=:
34969 echo >>"$at_stdout"; $as_echo "separator
34975 $at_diff - "$at_stdout" || at_failed=:
34976 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34978 $at_failed && at_func_log_failure
34985 $at_times_p && times >"$at_times_file"
34986 ) 5>&1 2>&1 | eval $at_tee_pipe
34987 at_status=`cat "$at_status_file"`
34990 # 100. update01.at:29: update directories
34991 at_setup_line='update01.at:29'
34992 at_desc="update directories"
34993 $at_quiet $as_echo_n "100: $at_desc "
34995 test -f $XFAILFILE && at_xfail=yes
34996 echo "# -*- compilation -*-" >> "$at_group_log"
34998 $as_echo "100. update01.at:29: testing ..."
35006 $as_echo "$at_srcdir/update01.at:32:
35010 export TEST_TAR_FORMAT
35011 TAR_OPTIONS=\"-H v7\"
35016 test -z "`sort < /dev/null 2>&1`" || exit 77
35030 tar tf arc | sort || exit 1
35032 echo update01.at:32 >"$at_check_line_file"
35034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35040 export TEST_TAR_FORMAT
35041 TAR_OPTIONS="-H v7"
35046 test -z "`sort < /dev/null 2>&1`" || exit 77
35060 tar tf arc | sort || exit 1
35061 ) ) >"$at_stdout" 2>"$at_stder1"
35062 at_func_filter_trace $?
35068 export TEST_TAR_FORMAT
35069 TAR_OPTIONS="-H v7"
35074 test -z "`sort < /dev/null 2>&1`" || exit 77
35088 tar tf arc | sort || exit 1
35089 ) ) >"$at_stdout" 2>"$at_stderr"
35093 at_func_diff_devnull "$at_stderr" || at_failed=:
35094 echo >>"$at_stdout"; $as_echo "separator
35101 $at_diff - "$at_stdout" || at_failed=:
35102 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35104 $at_failed && at_func_log_failure
35108 $as_echo "$at_srcdir/update01.at:32:
35111 TEST_TAR_FORMAT=oldgnu
35112 export TEST_TAR_FORMAT
35113 TAR_OPTIONS=\"-H oldgnu\"
35118 test -z "`sort < /dev/null 2>&1`" || exit 77
35132 tar tf arc | sort || exit 1
35134 echo update01.at:32 >"$at_check_line_file"
35136 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35141 TEST_TAR_FORMAT=oldgnu
35142 export TEST_TAR_FORMAT
35143 TAR_OPTIONS="-H oldgnu"
35148 test -z "`sort < /dev/null 2>&1`" || exit 77
35162 tar tf arc | sort || exit 1
35163 ) ) >"$at_stdout" 2>"$at_stder1"
35164 at_func_filter_trace $?
35169 TEST_TAR_FORMAT=oldgnu
35170 export TEST_TAR_FORMAT
35171 TAR_OPTIONS="-H oldgnu"
35176 test -z "`sort < /dev/null 2>&1`" || exit 77
35190 tar tf arc | sort || exit 1
35191 ) ) >"$at_stdout" 2>"$at_stderr"
35195 at_func_diff_devnull "$at_stderr" || at_failed=:
35196 echo >>"$at_stdout"; $as_echo "separator
35203 $at_diff - "$at_stdout" || at_failed=:
35204 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35206 $at_failed && at_func_log_failure
35210 $as_echo "$at_srcdir/update01.at:32:
35213 TEST_TAR_FORMAT=ustar
35214 export TEST_TAR_FORMAT
35215 TAR_OPTIONS=\"-H ustar\"
35220 test -z "`sort < /dev/null 2>&1`" || exit 77
35234 tar tf arc | sort || exit 1
35236 echo update01.at:32 >"$at_check_line_file"
35238 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35243 TEST_TAR_FORMAT=ustar
35244 export TEST_TAR_FORMAT
35245 TAR_OPTIONS="-H ustar"
35250 test -z "`sort < /dev/null 2>&1`" || exit 77
35264 tar tf arc | sort || exit 1
35265 ) ) >"$at_stdout" 2>"$at_stder1"
35266 at_func_filter_trace $?
35271 TEST_TAR_FORMAT=ustar
35272 export TEST_TAR_FORMAT
35273 TAR_OPTIONS="-H ustar"
35278 test -z "`sort < /dev/null 2>&1`" || exit 77
35292 tar tf arc | sort || exit 1
35293 ) ) >"$at_stdout" 2>"$at_stderr"
35297 at_func_diff_devnull "$at_stderr" || at_failed=:
35298 echo >>"$at_stdout"; $as_echo "separator
35305 $at_diff - "$at_stdout" || at_failed=:
35306 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35308 $at_failed && at_func_log_failure
35312 $as_echo "$at_srcdir/update01.at:32:
35315 TEST_TAR_FORMAT=posix
35316 export TEST_TAR_FORMAT
35317 TAR_OPTIONS=\"-H posix\"
35322 test -z "`sort < /dev/null 2>&1`" || exit 77
35336 tar tf arc | sort || exit 1
35338 echo update01.at:32 >"$at_check_line_file"
35340 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35345 TEST_TAR_FORMAT=posix
35346 export TEST_TAR_FORMAT
35347 TAR_OPTIONS="-H posix"
35352 test -z "`sort < /dev/null 2>&1`" || exit 77
35366 tar tf arc | sort || exit 1
35367 ) ) >"$at_stdout" 2>"$at_stder1"
35368 at_func_filter_trace $?
35373 TEST_TAR_FORMAT=posix
35374 export TEST_TAR_FORMAT
35375 TAR_OPTIONS="-H posix"
35380 test -z "`sort < /dev/null 2>&1`" || exit 77
35394 tar tf arc | sort || exit 1
35395 ) ) >"$at_stdout" 2>"$at_stderr"
35399 at_func_diff_devnull "$at_stderr" || at_failed=:
35400 echo >>"$at_stdout"; $as_echo "separator
35407 $at_diff - "$at_stdout" || at_failed=:
35408 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35410 $at_failed && at_func_log_failure
35414 $as_echo "$at_srcdir/update01.at:32:
35417 TEST_TAR_FORMAT=gnu
35418 export TEST_TAR_FORMAT
35419 TAR_OPTIONS=\"-H gnu\"
35424 test -z "`sort < /dev/null 2>&1`" || exit 77
35438 tar tf arc | sort || exit 1
35440 echo update01.at:32 >"$at_check_line_file"
35442 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35447 TEST_TAR_FORMAT=gnu
35448 export TEST_TAR_FORMAT
35449 TAR_OPTIONS="-H gnu"
35454 test -z "`sort < /dev/null 2>&1`" || exit 77
35468 tar tf arc | sort || exit 1
35469 ) ) >"$at_stdout" 2>"$at_stder1"
35470 at_func_filter_trace $?
35475 TEST_TAR_FORMAT=gnu
35476 export TEST_TAR_FORMAT
35477 TAR_OPTIONS="-H gnu"
35482 test -z "`sort < /dev/null 2>&1`" || exit 77
35496 tar tf arc | sort || exit 1
35497 ) ) >"$at_stdout" 2>"$at_stderr"
35501 at_func_diff_devnull "$at_stderr" || at_failed=:
35502 echo >>"$at_stdout"; $as_echo "separator
35509 $at_diff - "$at_stdout" || at_failed=:
35510 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35512 $at_failed && at_func_log_failure
35519 $at_times_p && times >"$at_times_file"
35520 ) 5>&1 2>&1 | eval $at_tee_pipe
35521 at_status=`cat "$at_status_file"`
35524 # 101. update02.at:26: update changed files
35525 at_setup_line='update02.at:26'
35526 at_desc="update changed files"
35527 $at_quiet $as_echo_n "101: $at_desc "
35529 test -f $XFAILFILE && at_xfail=yes
35530 echo "# -*- compilation -*-" >> "$at_group_log"
35532 $as_echo "101. update02.at:26: testing ..."
35540 $as_echo "$at_srcdir/update02.at:29:
35544 export TEST_TAR_FORMAT
35545 TAR_OPTIONS=\"-H v7\"
35550 test -z "`sort < /dev/null 2>&1`" || exit 77
35564 tar tf arc | sort || exit 1
35566 echo update02.at:29 >"$at_check_line_file"
35568 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35574 export TEST_TAR_FORMAT
35575 TAR_OPTIONS="-H v7"
35580 test -z "`sort < /dev/null 2>&1`" || exit 77
35594 tar tf arc | sort || exit 1
35595 ) ) >"$at_stdout" 2>"$at_stder1"
35596 at_func_filter_trace $?
35602 export TEST_TAR_FORMAT
35603 TAR_OPTIONS="-H v7"
35608 test -z "`sort < /dev/null 2>&1`" || exit 77
35622 tar tf arc | sort || exit 1
35623 ) ) >"$at_stdout" 2>"$at_stderr"
35627 at_func_diff_devnull "$at_stderr" || at_failed=:
35628 echo >>"$at_stdout"; $as_echo "separator
35635 $at_diff - "$at_stdout" || at_failed=:
35636 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35638 $at_failed && at_func_log_failure
35642 $as_echo "$at_srcdir/update02.at:29:
35645 TEST_TAR_FORMAT=oldgnu
35646 export TEST_TAR_FORMAT
35647 TAR_OPTIONS=\"-H oldgnu\"
35652 test -z "`sort < /dev/null 2>&1`" || exit 77
35666 tar tf arc | sort || exit 1
35668 echo update02.at:29 >"$at_check_line_file"
35670 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35675 TEST_TAR_FORMAT=oldgnu
35676 export TEST_TAR_FORMAT
35677 TAR_OPTIONS="-H oldgnu"
35682 test -z "`sort < /dev/null 2>&1`" || exit 77
35696 tar tf arc | sort || exit 1
35697 ) ) >"$at_stdout" 2>"$at_stder1"
35698 at_func_filter_trace $?
35703 TEST_TAR_FORMAT=oldgnu
35704 export TEST_TAR_FORMAT
35705 TAR_OPTIONS="-H oldgnu"
35710 test -z "`sort < /dev/null 2>&1`" || exit 77
35724 tar tf arc | sort || exit 1
35725 ) ) >"$at_stdout" 2>"$at_stderr"
35729 at_func_diff_devnull "$at_stderr" || at_failed=:
35730 echo >>"$at_stdout"; $as_echo "separator
35737 $at_diff - "$at_stdout" || at_failed=:
35738 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35740 $at_failed && at_func_log_failure
35744 $as_echo "$at_srcdir/update02.at:29:
35747 TEST_TAR_FORMAT=ustar
35748 export TEST_TAR_FORMAT
35749 TAR_OPTIONS=\"-H ustar\"
35754 test -z "`sort < /dev/null 2>&1`" || exit 77
35768 tar tf arc | sort || exit 1
35770 echo update02.at:29 >"$at_check_line_file"
35772 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35777 TEST_TAR_FORMAT=ustar
35778 export TEST_TAR_FORMAT
35779 TAR_OPTIONS="-H ustar"
35784 test -z "`sort < /dev/null 2>&1`" || exit 77
35798 tar tf arc | sort || exit 1
35799 ) ) >"$at_stdout" 2>"$at_stder1"
35800 at_func_filter_trace $?
35805 TEST_TAR_FORMAT=ustar
35806 export TEST_TAR_FORMAT
35807 TAR_OPTIONS="-H ustar"
35812 test -z "`sort < /dev/null 2>&1`" || exit 77
35826 tar tf arc | sort || exit 1
35827 ) ) >"$at_stdout" 2>"$at_stderr"
35831 at_func_diff_devnull "$at_stderr" || at_failed=:
35832 echo >>"$at_stdout"; $as_echo "separator
35839 $at_diff - "$at_stdout" || at_failed=:
35840 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35842 $at_failed && at_func_log_failure
35846 $as_echo "$at_srcdir/update02.at:29:
35849 TEST_TAR_FORMAT=posix
35850 export TEST_TAR_FORMAT
35851 TAR_OPTIONS=\"-H posix\"
35856 test -z "`sort < /dev/null 2>&1`" || exit 77
35870 tar tf arc | sort || exit 1
35872 echo update02.at:29 >"$at_check_line_file"
35874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35879 TEST_TAR_FORMAT=posix
35880 export TEST_TAR_FORMAT
35881 TAR_OPTIONS="-H posix"
35886 test -z "`sort < /dev/null 2>&1`" || exit 77
35900 tar tf arc | sort || exit 1
35901 ) ) >"$at_stdout" 2>"$at_stder1"
35902 at_func_filter_trace $?
35907 TEST_TAR_FORMAT=posix
35908 export TEST_TAR_FORMAT
35909 TAR_OPTIONS="-H posix"
35914 test -z "`sort < /dev/null 2>&1`" || exit 77
35928 tar tf arc | sort || exit 1
35929 ) ) >"$at_stdout" 2>"$at_stderr"
35933 at_func_diff_devnull "$at_stderr" || at_failed=:
35934 echo >>"$at_stdout"; $as_echo "separator
35941 $at_diff - "$at_stdout" || at_failed=:
35942 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35944 $at_failed && at_func_log_failure
35948 $as_echo "$at_srcdir/update02.at:29:
35951 TEST_TAR_FORMAT=gnu
35952 export TEST_TAR_FORMAT
35953 TAR_OPTIONS=\"-H gnu\"
35958 test -z "`sort < /dev/null 2>&1`" || exit 77
35972 tar tf arc | sort || exit 1
35974 echo update02.at:29 >"$at_check_line_file"
35976 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35981 TEST_TAR_FORMAT=gnu
35982 export TEST_TAR_FORMAT
35983 TAR_OPTIONS="-H gnu"
35988 test -z "`sort < /dev/null 2>&1`" || exit 77
36002 tar tf arc | sort || exit 1
36003 ) ) >"$at_stdout" 2>"$at_stder1"
36004 at_func_filter_trace $?
36009 TEST_TAR_FORMAT=gnu
36010 export TEST_TAR_FORMAT
36011 TAR_OPTIONS="-H gnu"
36016 test -z "`sort < /dev/null 2>&1`" || exit 77
36030 tar tf arc | sort || exit 1
36031 ) ) >"$at_stdout" 2>"$at_stderr"
36035 at_func_diff_devnull "$at_stderr" || at_failed=:
36036 echo >>"$at_stdout"; $as_echo "separator
36043 $at_diff - "$at_stdout" || at_failed=:
36044 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
36046 $at_failed && at_func_log_failure
36053 $at_times_p && times >"$at_times_file"
36054 ) 5>&1 2>&1 | eval $at_tee_pipe
36055 at_status=`cat "$at_status_file"`
36058 # 102. volume.at:23: volume
36059 at_setup_line='volume.at:23'
36061 $at_quiet $as_echo_n "102: $at_desc "
36063 test -f $XFAILFILE && at_xfail=yes
36064 echo "# -*- compilation -*-" >> "$at_group_log"
36066 $as_echo "102. volume.at:23: testing ..."
36074 $as_echo "$at_srcdir/volume.at:26:
36077 TEST_TAR_FORMAT=gnu
36078 export TEST_TAR_FORMAT
36079 TAR_OPTIONS=\"-H gnu\"
36083 tar -cf archive -V label -T /dev/null || exit 1
36085 tar xfV archive label || exit 1
36086 tar xfV archive 'la?el' || exit 1
36087 tar xfV archive 'l*l' || exit 1
36090 tar xfV archive lab
36091 test \$? = 2 || exit 1
36093 tar xfV archive bel
36094 test \$? = 2 || exit 1
36096 tar xfV archive babel
36099 echo volume.at:26 >"$at_check_line_file"
36101 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36106 TEST_TAR_FORMAT=gnu
36107 export TEST_TAR_FORMAT
36108 TAR_OPTIONS="-H gnu"
36112 tar -cf archive -V label -T /dev/null || exit 1
36114 tar xfV archive label || exit 1
36115 tar xfV archive 'la?el' || exit 1
36116 tar xfV archive 'l*l' || exit 1
36119 tar xfV archive lab
36120 test $? = 2 || exit 1
36122 tar xfV archive bel
36123 test $? = 2 || exit 1
36125 tar xfV archive babel
36127 ) ) >"$at_stdout" 2>"$at_stder1"
36128 at_func_filter_trace $?
36133 TEST_TAR_FORMAT=gnu
36134 export TEST_TAR_FORMAT
36135 TAR_OPTIONS="-H gnu"
36139 tar -cf archive -V label -T /dev/null || exit 1
36141 tar xfV archive label || exit 1
36142 tar xfV archive 'la?el' || exit 1
36143 tar xfV archive 'l*l' || exit 1
36146 tar xfV archive lab
36147 test $? = 2 || exit 1
36149 tar xfV archive bel
36150 test $? = 2 || exit 1
36152 tar xfV archive babel
36154 ) ) >"$at_stdout" 2>"$at_stderr"
36158 echo >>"$at_stderr"; $as_echo "-----
36159 tar: Volume \`label' does not match \`lab'
36160 tar: Error is not recoverable: exiting now
36162 tar: Volume \`label' does not match \`bel'
36163 tar: Error is not recoverable: exiting now
36165 tar: Volume \`label' does not match \`babel'
36166 tar: Error is not recoverable: exiting now
36168 $at_diff - "$at_stderr" || at_failed=:
36169 at_func_diff_devnull "$at_stdout" || at_failed=:
36170 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36172 $at_failed && at_func_log_failure
36176 $as_echo "$at_srcdir/volume.at:26:
36179 TEST_TAR_FORMAT=oldgnu
36180 export TEST_TAR_FORMAT
36181 TAR_OPTIONS=\"-H oldgnu\"
36185 tar -cf archive -V label -T /dev/null || exit 1
36187 tar xfV archive label || exit 1
36188 tar xfV archive 'la?el' || exit 1
36189 tar xfV archive 'l*l' || exit 1
36192 tar xfV archive lab
36193 test \$? = 2 || exit 1
36195 tar xfV archive bel
36196 test \$? = 2 || exit 1
36198 tar xfV archive babel
36201 echo volume.at:26 >"$at_check_line_file"
36203 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36208 TEST_TAR_FORMAT=oldgnu
36209 export TEST_TAR_FORMAT
36210 TAR_OPTIONS="-H oldgnu"
36214 tar -cf archive -V label -T /dev/null || exit 1
36216 tar xfV archive label || exit 1
36217 tar xfV archive 'la?el' || exit 1
36218 tar xfV archive 'l*l' || exit 1
36221 tar xfV archive lab
36222 test $? = 2 || exit 1
36224 tar xfV archive bel
36225 test $? = 2 || exit 1
36227 tar xfV archive babel
36229 ) ) >"$at_stdout" 2>"$at_stder1"
36230 at_func_filter_trace $?
36235 TEST_TAR_FORMAT=oldgnu
36236 export TEST_TAR_FORMAT
36237 TAR_OPTIONS="-H oldgnu"
36241 tar -cf archive -V label -T /dev/null || exit 1
36243 tar xfV archive label || exit 1
36244 tar xfV archive 'la?el' || exit 1
36245 tar xfV archive 'l*l' || exit 1
36248 tar xfV archive lab
36249 test $? = 2 || exit 1
36251 tar xfV archive bel
36252 test $? = 2 || exit 1
36254 tar xfV archive babel
36256 ) ) >"$at_stdout" 2>"$at_stderr"
36260 echo >>"$at_stderr"; $as_echo "-----
36261 tar: Volume \`label' does not match \`lab'
36262 tar: Error is not recoverable: exiting now
36264 tar: Volume \`label' does not match \`bel'
36265 tar: Error is not recoverable: exiting now
36267 tar: Volume \`label' does not match \`babel'
36268 tar: Error is not recoverable: exiting now
36270 $at_diff - "$at_stderr" || at_failed=:
36271 at_func_diff_devnull "$at_stdout" || at_failed=:
36272 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36274 $at_failed && at_func_log_failure
36281 $at_times_p && times >"$at_times_file"
36282 ) 5>&1 2>&1 | eval $at_tee_pipe
36283 at_status=`cat "$at_status_file"`
36286 # 103. volsize.at:29: volume header size
36287 at_setup_line='volsize.at:29'
36288 at_desc="volume header size"
36289 $at_quiet $as_echo_n "103: $at_desc "
36291 test -f $XFAILFILE && at_xfail=yes
36292 echo "# -*- compilation -*-" >> "$at_group_log"
36294 $as_echo "103. volsize.at:29: testing ..."
36302 $as_echo "$at_srcdir/volsize.at:32:
36306 export TEST_TAR_FORMAT
36307 TAR_OPTIONS=\"-H v7\"
36312 test -z "`sort < /dev/null 2>&1`" || exit 77
36315 test -z "$TEST_DATA_DIR" && exit 77
36316 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36319 tar tf \$TEST_DATA_DIR/abc.tar
36320 echo Verbose Listing
36321 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36322 echo Extracted directory
36323 tar xf \$TEST_DATA_DIR/abc.tar
36326 echo volsize.at:32 >"$at_check_line_file"
36328 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36334 export TEST_TAR_FORMAT
36335 TAR_OPTIONS="-H v7"
36340 test -z "`sort < /dev/null 2>&1`" || exit 77
36343 test -z "$TEST_DATA_DIR" && exit 77
36344 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36347 tar tf $TEST_DATA_DIR/abc.tar
36348 echo Verbose Listing
36349 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36350 echo Extracted directory
36351 tar xf $TEST_DATA_DIR/abc.tar
36353 ) ) >"$at_stdout" 2>"$at_stder1"
36354 at_func_filter_trace $?
36360 export TEST_TAR_FORMAT
36361 TAR_OPTIONS="-H v7"
36366 test -z "`sort < /dev/null 2>&1`" || exit 77
36369 test -z "$TEST_DATA_DIR" && exit 77
36370 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36373 tar tf $TEST_DATA_DIR/abc.tar
36374 echo Verbose Listing
36375 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36376 echo Extracted directory
36377 tar xf $TEST_DATA_DIR/abc.tar
36379 ) ) >"$at_stdout" 2>"$at_stderr"
36383 at_func_diff_devnull "$at_stderr" || at_failed=:
36384 echo >>"$at_stdout"; $as_echo "Short Listing
36388 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36389 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
36390 Extracted directory
36394 $at_diff - "$at_stdout" || at_failed=:
36395 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36397 $at_failed && at_func_log_failure
36401 $as_echo "$at_srcdir/volsize.at:32:
36404 TEST_TAR_FORMAT=oldgnu
36405 export TEST_TAR_FORMAT
36406 TAR_OPTIONS=\"-H oldgnu\"
36411 test -z "`sort < /dev/null 2>&1`" || exit 77
36414 test -z "$TEST_DATA_DIR" && exit 77
36415 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36418 tar tf \$TEST_DATA_DIR/abc.tar
36419 echo Verbose Listing
36420 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36421 echo Extracted directory
36422 tar xf \$TEST_DATA_DIR/abc.tar
36425 echo volsize.at:32 >"$at_check_line_file"
36427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36432 TEST_TAR_FORMAT=oldgnu
36433 export TEST_TAR_FORMAT
36434 TAR_OPTIONS="-H oldgnu"
36439 test -z "`sort < /dev/null 2>&1`" || exit 77
36442 test -z "$TEST_DATA_DIR" && exit 77
36443 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36446 tar tf $TEST_DATA_DIR/abc.tar
36447 echo Verbose Listing
36448 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36449 echo Extracted directory
36450 tar xf $TEST_DATA_DIR/abc.tar
36452 ) ) >"$at_stdout" 2>"$at_stder1"
36453 at_func_filter_trace $?
36458 TEST_TAR_FORMAT=oldgnu
36459 export TEST_TAR_FORMAT
36460 TAR_OPTIONS="-H oldgnu"
36465 test -z "`sort < /dev/null 2>&1`" || exit 77
36468 test -z "$TEST_DATA_DIR" && exit 77
36469 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36472 tar tf $TEST_DATA_DIR/abc.tar
36473 echo Verbose Listing
36474 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36475 echo Extracted directory
36476 tar xf $TEST_DATA_DIR/abc.tar
36478 ) ) >"$at_stdout" 2>"$at_stderr"
36482 at_func_diff_devnull "$at_stderr" || at_failed=:
36483 echo >>"$at_stdout"; $as_echo "Short Listing
36487 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36488 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
36489 Extracted directory
36493 $at_diff - "$at_stdout" || at_failed=:
36494 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36496 $at_failed && at_func_log_failure
36500 $as_echo "$at_srcdir/volsize.at:32:
36503 TEST_TAR_FORMAT=ustar
36504 export TEST_TAR_FORMAT
36505 TAR_OPTIONS=\"-H ustar\"
36510 test -z "`sort < /dev/null 2>&1`" || exit 77
36513 test -z "$TEST_DATA_DIR" && exit 77
36514 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36517 tar tf \$TEST_DATA_DIR/abc.tar
36518 echo Verbose Listing
36519 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36520 echo Extracted directory
36521 tar xf \$TEST_DATA_DIR/abc.tar
36524 echo volsize.at:32 >"$at_check_line_file"
36526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36531 TEST_TAR_FORMAT=ustar
36532 export TEST_TAR_FORMAT
36533 TAR_OPTIONS="-H ustar"
36538 test -z "`sort < /dev/null 2>&1`" || exit 77
36541 test -z "$TEST_DATA_DIR" && exit 77
36542 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36545 tar tf $TEST_DATA_DIR/abc.tar
36546 echo Verbose Listing
36547 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36548 echo Extracted directory
36549 tar xf $TEST_DATA_DIR/abc.tar
36551 ) ) >"$at_stdout" 2>"$at_stder1"
36552 at_func_filter_trace $?
36557 TEST_TAR_FORMAT=ustar
36558 export TEST_TAR_FORMAT
36559 TAR_OPTIONS="-H ustar"
36564 test -z "`sort < /dev/null 2>&1`" || exit 77
36567 test -z "$TEST_DATA_DIR" && exit 77
36568 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36571 tar tf $TEST_DATA_DIR/abc.tar
36572 echo Verbose Listing
36573 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36574 echo Extracted directory
36575 tar xf $TEST_DATA_DIR/abc.tar
36577 ) ) >"$at_stdout" 2>"$at_stderr"
36581 at_func_diff_devnull "$at_stderr" || at_failed=:
36582 echo >>"$at_stdout"; $as_echo "Short Listing
36586 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36587 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
36588 Extracted directory
36592 $at_diff - "$at_stdout" || at_failed=:
36593 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36595 $at_failed && at_func_log_failure
36599 $as_echo "$at_srcdir/volsize.at:32:
36602 TEST_TAR_FORMAT=posix
36603 export TEST_TAR_FORMAT
36604 TAR_OPTIONS=\"-H posix\"
36609 test -z "`sort < /dev/null 2>&1`" || exit 77
36612 test -z "$TEST_DATA_DIR" && exit 77
36613 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36616 tar tf \$TEST_DATA_DIR/abc.tar
36617 echo Verbose Listing
36618 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36619 echo Extracted directory
36620 tar xf \$TEST_DATA_DIR/abc.tar
36623 echo volsize.at:32 >"$at_check_line_file"
36625 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36630 TEST_TAR_FORMAT=posix
36631 export TEST_TAR_FORMAT
36632 TAR_OPTIONS="-H posix"
36637 test -z "`sort < /dev/null 2>&1`" || exit 77
36640 test -z "$TEST_DATA_DIR" && exit 77
36641 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36644 tar tf $TEST_DATA_DIR/abc.tar
36645 echo Verbose Listing
36646 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36647 echo Extracted directory
36648 tar xf $TEST_DATA_DIR/abc.tar
36650 ) ) >"$at_stdout" 2>"$at_stder1"
36651 at_func_filter_trace $?
36656 TEST_TAR_FORMAT=posix
36657 export TEST_TAR_FORMAT
36658 TAR_OPTIONS="-H posix"
36663 test -z "`sort < /dev/null 2>&1`" || exit 77
36666 test -z "$TEST_DATA_DIR" && exit 77
36667 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36670 tar tf $TEST_DATA_DIR/abc.tar
36671 echo Verbose Listing
36672 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36673 echo Extracted directory
36674 tar xf $TEST_DATA_DIR/abc.tar
36676 ) ) >"$at_stdout" 2>"$at_stderr"
36680 at_func_diff_devnull "$at_stderr" || at_failed=:
36681 echo >>"$at_stdout"; $as_echo "Short Listing
36685 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36686 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
36687 Extracted directory
36691 $at_diff - "$at_stdout" || at_failed=:
36692 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36694 $at_failed && at_func_log_failure
36698 $as_echo "$at_srcdir/volsize.at:32:
36701 TEST_TAR_FORMAT=gnu
36702 export TEST_TAR_FORMAT
36703 TAR_OPTIONS=\"-H gnu\"
36708 test -z "`sort < /dev/null 2>&1`" || exit 77
36711 test -z "$TEST_DATA_DIR" && exit 77
36712 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36715 tar tf \$TEST_DATA_DIR/abc.tar
36716 echo Verbose Listing
36717 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36718 echo Extracted directory
36719 tar xf \$TEST_DATA_DIR/abc.tar
36722 echo volsize.at:32 >"$at_check_line_file"
36724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36729 TEST_TAR_FORMAT=gnu
36730 export TEST_TAR_FORMAT
36731 TAR_OPTIONS="-H gnu"
36736 test -z "`sort < /dev/null 2>&1`" || exit 77
36739 test -z "$TEST_DATA_DIR" && exit 77
36740 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36743 tar tf $TEST_DATA_DIR/abc.tar
36744 echo Verbose Listing
36745 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36746 echo Extracted directory
36747 tar xf $TEST_DATA_DIR/abc.tar
36749 ) ) >"$at_stdout" 2>"$at_stder1"
36750 at_func_filter_trace $?
36755 TEST_TAR_FORMAT=gnu
36756 export TEST_TAR_FORMAT
36757 TAR_OPTIONS="-H gnu"
36762 test -z "`sort < /dev/null 2>&1`" || exit 77
36765 test -z "$TEST_DATA_DIR" && exit 77
36766 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36769 tar tf $TEST_DATA_DIR/abc.tar
36770 echo Verbose Listing
36771 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36772 echo Extracted directory
36773 tar xf $TEST_DATA_DIR/abc.tar
36775 ) ) >"$at_stdout" 2>"$at_stderr"
36779 at_func_diff_devnull "$at_stderr" || at_failed=:
36780 echo >>"$at_stdout"; $as_echo "Short Listing
36784 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36785 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
36786 Extracted directory
36790 $at_diff - "$at_stdout" || at_failed=:
36791 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36793 $at_failed && at_func_log_failure
36800 $at_times_p && times >"$at_times_file"
36801 ) 5>&1 2>&1 | eval $at_tee_pipe
36802 at_status=`cat "$at_status_file"`
36805 # 104. comprec.at:21: compressed format recognition
36806 at_setup_line='comprec.at:21'
36807 at_desc="compressed format recognition"
36808 $at_quiet $as_echo_n "104: $at_desc "
36810 test -f $XFAILFILE && at_xfail=yes
36811 echo "# -*- compilation -*-" >> "$at_group_log"
36813 $as_echo "104. comprec.at:21: testing ..."
36822 $as_echo "$at_srcdir/comprec.at:25:
36826 export TEST_TAR_FORMAT
36827 TAR_OPTIONS=\"-H v7\"
36832 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36834 genfile --length 10240 --file file1
36836 tar cfz archive file1
36839 tar xfv archive --warning=no-timestamp
36842 echo comprec.at:25 >"$at_check_line_file"
36844 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36850 export TEST_TAR_FORMAT
36851 TAR_OPTIONS="-H v7"
36856 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36858 genfile --length 10240 --file file1
36860 tar cfz archive file1
36863 tar xfv archive --warning=no-timestamp
36865 ) ) >"$at_stdout" 2>"$at_stder1"
36866 at_func_filter_trace $?
36872 export TEST_TAR_FORMAT
36873 TAR_OPTIONS="-H v7"
36878 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36880 genfile --length 10240 --file file1
36882 tar cfz archive file1
36885 tar xfv archive --warning=no-timestamp
36887 ) ) >"$at_stdout" 2>"$at_stderr"
36891 at_func_diff_devnull "$at_stderr" || at_failed=:
36892 echo >>"$at_stdout"; $as_echo "separator
36896 $at_diff - "$at_stdout" || at_failed=:
36897 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36899 $at_failed && at_func_log_failure
36903 $as_echo "$at_srcdir/comprec.at:25:
36906 TEST_TAR_FORMAT=oldgnu
36907 export TEST_TAR_FORMAT
36908 TAR_OPTIONS=\"-H oldgnu\"
36913 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36915 genfile --length 10240 --file file1
36917 tar cfz archive file1
36920 tar xfv archive --warning=no-timestamp
36923 echo comprec.at:25 >"$at_check_line_file"
36925 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36930 TEST_TAR_FORMAT=oldgnu
36931 export TEST_TAR_FORMAT
36932 TAR_OPTIONS="-H oldgnu"
36937 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36939 genfile --length 10240 --file file1
36941 tar cfz archive file1
36944 tar xfv archive --warning=no-timestamp
36946 ) ) >"$at_stdout" 2>"$at_stder1"
36947 at_func_filter_trace $?
36952 TEST_TAR_FORMAT=oldgnu
36953 export TEST_TAR_FORMAT
36954 TAR_OPTIONS="-H oldgnu"
36959 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36961 genfile --length 10240 --file file1
36963 tar cfz archive file1
36966 tar xfv archive --warning=no-timestamp
36968 ) ) >"$at_stdout" 2>"$at_stderr"
36972 at_func_diff_devnull "$at_stderr" || at_failed=:
36973 echo >>"$at_stdout"; $as_echo "separator
36977 $at_diff - "$at_stdout" || at_failed=:
36978 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36980 $at_failed && at_func_log_failure
36984 $as_echo "$at_srcdir/comprec.at:25:
36987 TEST_TAR_FORMAT=ustar
36988 export TEST_TAR_FORMAT
36989 TAR_OPTIONS=\"-H ustar\"
36994 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36996 genfile --length 10240 --file file1
36998 tar cfz archive file1
37001 tar xfv archive --warning=no-timestamp
37004 echo comprec.at:25 >"$at_check_line_file"
37006 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37011 TEST_TAR_FORMAT=ustar
37012 export TEST_TAR_FORMAT
37013 TAR_OPTIONS="-H ustar"
37018 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37020 genfile --length 10240 --file file1
37022 tar cfz archive file1
37025 tar xfv archive --warning=no-timestamp
37027 ) ) >"$at_stdout" 2>"$at_stder1"
37028 at_func_filter_trace $?
37033 TEST_TAR_FORMAT=ustar
37034 export TEST_TAR_FORMAT
37035 TAR_OPTIONS="-H ustar"
37040 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37042 genfile --length 10240 --file file1
37044 tar cfz archive file1
37047 tar xfv archive --warning=no-timestamp
37049 ) ) >"$at_stdout" 2>"$at_stderr"
37053 at_func_diff_devnull "$at_stderr" || at_failed=:
37054 echo >>"$at_stdout"; $as_echo "separator
37058 $at_diff - "$at_stdout" || at_failed=:
37059 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37061 $at_failed && at_func_log_failure
37065 $as_echo "$at_srcdir/comprec.at:25:
37068 TEST_TAR_FORMAT=posix
37069 export TEST_TAR_FORMAT
37070 TAR_OPTIONS=\"-H posix\"
37075 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37077 genfile --length 10240 --file file1
37079 tar cfz archive file1
37082 tar xfv archive --warning=no-timestamp
37085 echo comprec.at:25 >"$at_check_line_file"
37087 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37092 TEST_TAR_FORMAT=posix
37093 export TEST_TAR_FORMAT
37094 TAR_OPTIONS="-H posix"
37099 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37101 genfile --length 10240 --file file1
37103 tar cfz archive file1
37106 tar xfv archive --warning=no-timestamp
37108 ) ) >"$at_stdout" 2>"$at_stder1"
37109 at_func_filter_trace $?
37114 TEST_TAR_FORMAT=posix
37115 export TEST_TAR_FORMAT
37116 TAR_OPTIONS="-H posix"
37121 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37123 genfile --length 10240 --file file1
37125 tar cfz archive file1
37128 tar xfv archive --warning=no-timestamp
37130 ) ) >"$at_stdout" 2>"$at_stderr"
37134 at_func_diff_devnull "$at_stderr" || at_failed=:
37135 echo >>"$at_stdout"; $as_echo "separator
37139 $at_diff - "$at_stdout" || at_failed=:
37140 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37142 $at_failed && at_func_log_failure
37146 $as_echo "$at_srcdir/comprec.at:25:
37149 TEST_TAR_FORMAT=gnu
37150 export TEST_TAR_FORMAT
37151 TAR_OPTIONS=\"-H gnu\"
37156 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37158 genfile --length 10240 --file file1
37160 tar cfz archive file1
37163 tar xfv archive --warning=no-timestamp
37166 echo comprec.at:25 >"$at_check_line_file"
37168 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37173 TEST_TAR_FORMAT=gnu
37174 export TEST_TAR_FORMAT
37175 TAR_OPTIONS="-H gnu"
37180 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37182 genfile --length 10240 --file file1
37184 tar cfz archive file1
37187 tar xfv archive --warning=no-timestamp
37189 ) ) >"$at_stdout" 2>"$at_stder1"
37190 at_func_filter_trace $?
37195 TEST_TAR_FORMAT=gnu
37196 export TEST_TAR_FORMAT
37197 TAR_OPTIONS="-H gnu"
37202 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37204 genfile --length 10240 --file file1
37206 tar cfz archive file1
37209 tar xfv archive --warning=no-timestamp
37211 ) ) >"$at_stdout" 2>"$at_stderr"
37215 at_func_diff_devnull "$at_stderr" || at_failed=:
37216 echo >>"$at_stdout"; $as_echo "separator
37220 $at_diff - "$at_stdout" || at_failed=:
37221 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37223 $at_failed && at_func_log_failure
37230 $at_times_p && times >"$at_times_file"
37231 ) 5>&1 2>&1 | eval $at_tee_pipe
37232 at_status=`cat "$at_status_file"`
37235 # 105. shortfile.at:26: short input files
37236 at_setup_line='shortfile.at:26'
37237 at_desc="short input files"
37238 $at_quiet $as_echo_n "105: $at_desc "
37240 test -f $XFAILFILE && at_xfail=yes
37241 echo "# -*- compilation -*-" >> "$at_group_log"
37243 $as_echo "105. shortfile.at:26: testing ..."
37251 $as_echo "$at_srcdir/shortfile.at:29:
37254 TEST_TAR_FORMAT=gnu
37255 export TEST_TAR_FORMAT
37256 TAR_OPTIONS=\"-H gnu\"
37260 genfile --length 511 --file foo || exit 5
37263 echo shortfile.at:29 >"$at_check_line_file"
37265 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37270 TEST_TAR_FORMAT=gnu
37271 export TEST_TAR_FORMAT
37272 TAR_OPTIONS="-H gnu"
37276 genfile --length 511 --file foo || exit 5
37278 ) ) >"$at_stdout" 2>"$at_stder1"
37279 at_func_filter_trace $?
37284 TEST_TAR_FORMAT=gnu
37285 export TEST_TAR_FORMAT
37286 TAR_OPTIONS="-H gnu"
37290 genfile --length 511 --file foo || exit 5
37292 ) ) >"$at_stdout" 2>"$at_stderr"
37296 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
37297 tar: Exiting with failure status due to previous errors
37299 $at_diff - "$at_stderr" || at_failed=:
37300 at_func_diff_devnull "$at_stdout" || at_failed=:
37301 at_func_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
37303 $at_failed && at_func_log_failure
37310 $at_times_p && times >"$at_times_file"
37311 ) 5>&1 2>&1 | eval $at_tee_pipe
37312 at_status=`cat "$at_status_file"`
37315 # 106. shortupd.at:29: updating short archives
37316 at_setup_line='shortupd.at:29'
37317 at_desc="updating short archives"
37318 $at_quiet $as_echo_n "106: $at_desc "
37320 test -f $XFAILFILE && at_xfail=yes
37321 echo "# -*- compilation -*-" >> "$at_group_log"
37323 $as_echo "106. shortupd.at:29: testing ..."
37331 $as_echo "$at_srcdir/shortupd.at:32:
37335 export TEST_TAR_FORMAT
37336 TAR_OPTIONS=\"-H v7\"
37343 echo shortupd.at:32 >"$at_check_line_file"
37345 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37351 export TEST_TAR_FORMAT
37352 TAR_OPTIONS="-H v7"
37358 ) ) >"$at_stdout" 2>"$at_stder1"
37359 at_func_filter_trace $?
37365 export TEST_TAR_FORMAT
37366 TAR_OPTIONS="-H v7"
37372 ) ) >"$at_stdout" 2>"$at_stderr"
37376 at_func_diff_devnull "$at_stderr" || at_failed=:
37377 at_func_diff_devnull "$at_stdout" || at_failed=:
37378 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37380 $at_failed && at_func_log_failure
37384 $as_echo "$at_srcdir/shortupd.at:32:
37387 TEST_TAR_FORMAT=oldgnu
37388 export TEST_TAR_FORMAT
37389 TAR_OPTIONS=\"-H oldgnu\"
37396 echo shortupd.at:32 >"$at_check_line_file"
37398 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37403 TEST_TAR_FORMAT=oldgnu
37404 export TEST_TAR_FORMAT
37405 TAR_OPTIONS="-H oldgnu"
37411 ) ) >"$at_stdout" 2>"$at_stder1"
37412 at_func_filter_trace $?
37417 TEST_TAR_FORMAT=oldgnu
37418 export TEST_TAR_FORMAT
37419 TAR_OPTIONS="-H oldgnu"
37425 ) ) >"$at_stdout" 2>"$at_stderr"
37429 at_func_diff_devnull "$at_stderr" || at_failed=:
37430 at_func_diff_devnull "$at_stdout" || at_failed=:
37431 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37433 $at_failed && at_func_log_failure
37437 $as_echo "$at_srcdir/shortupd.at:32:
37440 TEST_TAR_FORMAT=ustar
37441 export TEST_TAR_FORMAT
37442 TAR_OPTIONS=\"-H ustar\"
37449 echo shortupd.at:32 >"$at_check_line_file"
37451 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37456 TEST_TAR_FORMAT=ustar
37457 export TEST_TAR_FORMAT
37458 TAR_OPTIONS="-H ustar"
37464 ) ) >"$at_stdout" 2>"$at_stder1"
37465 at_func_filter_trace $?
37470 TEST_TAR_FORMAT=ustar
37471 export TEST_TAR_FORMAT
37472 TAR_OPTIONS="-H ustar"
37478 ) ) >"$at_stdout" 2>"$at_stderr"
37482 at_func_diff_devnull "$at_stderr" || at_failed=:
37483 at_func_diff_devnull "$at_stdout" || at_failed=:
37484 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37486 $at_failed && at_func_log_failure
37490 $as_echo "$at_srcdir/shortupd.at:32:
37493 TEST_TAR_FORMAT=posix
37494 export TEST_TAR_FORMAT
37495 TAR_OPTIONS=\"-H posix\"
37502 echo shortupd.at:32 >"$at_check_line_file"
37504 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37509 TEST_TAR_FORMAT=posix
37510 export TEST_TAR_FORMAT
37511 TAR_OPTIONS="-H posix"
37517 ) ) >"$at_stdout" 2>"$at_stder1"
37518 at_func_filter_trace $?
37523 TEST_TAR_FORMAT=posix
37524 export TEST_TAR_FORMAT
37525 TAR_OPTIONS="-H posix"
37531 ) ) >"$at_stdout" 2>"$at_stderr"
37535 at_func_diff_devnull "$at_stderr" || at_failed=:
37536 at_func_diff_devnull "$at_stdout" || at_failed=:
37537 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37539 $at_failed && at_func_log_failure
37543 $as_echo "$at_srcdir/shortupd.at:32:
37546 TEST_TAR_FORMAT=gnu
37547 export TEST_TAR_FORMAT
37548 TAR_OPTIONS=\"-H gnu\"
37555 echo shortupd.at:32 >"$at_check_line_file"
37557 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37562 TEST_TAR_FORMAT=gnu
37563 export TEST_TAR_FORMAT
37564 TAR_OPTIONS="-H gnu"
37570 ) ) >"$at_stdout" 2>"$at_stder1"
37571 at_func_filter_trace $?
37576 TEST_TAR_FORMAT=gnu
37577 export TEST_TAR_FORMAT
37578 TAR_OPTIONS="-H gnu"
37584 ) ) >"$at_stdout" 2>"$at_stderr"
37588 at_func_diff_devnull "$at_stderr" || at_failed=:
37589 at_func_diff_devnull "$at_stdout" || at_failed=:
37590 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37592 $at_failed && at_func_log_failure
37599 $at_times_p && times >"$at_times_file"
37600 ) 5>&1 2>&1 | eval $at_tee_pipe
37601 at_status=`cat "$at_status_file"`
37604 # 107. truncate.at:29: truncate
37605 at_setup_line='truncate.at:29'
37607 $at_quiet $as_echo_n "107: $at_desc "
37609 test -f $XFAILFILE && at_xfail=yes
37610 echo "# -*- compilation -*-" >> "$at_group_log"
37612 $as_echo "107. truncate.at:29: testing ..."
37620 $as_echo "$at_srcdir/truncate.at:32:
37624 export TEST_TAR_FORMAT
37625 TAR_OPTIONS=\"-H v7\"
37629 genfile --file foo --length 50000k
37631 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37632 echo Exit status: \$?
37635 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37637 echo truncate.at:32 >"$at_check_line_file"
37639 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37645 export TEST_TAR_FORMAT
37646 TAR_OPTIONS="-H v7"
37650 genfile --file foo --length 50000k
37652 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37653 echo Exit status: $?
37656 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37657 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37658 at_func_filter_trace $?
37664 export TEST_TAR_FORMAT
37665 TAR_OPTIONS="-H v7"
37669 genfile --file foo --length 50000k
37671 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37672 echo Exit status: $?
37675 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37676 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37680 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37682 $at_diff - "$at_stderr" || at_failed=:
37683 echo >>"$at_stdout"; $as_echo "foo
37688 foo: Mod time differs
37691 $at_diff - "$at_stdout" || at_failed=:
37692 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37694 $at_failed && at_func_log_failure
37698 $as_echo "$at_srcdir/truncate.at:32:
37701 TEST_TAR_FORMAT=oldgnu
37702 export TEST_TAR_FORMAT
37703 TAR_OPTIONS=\"-H oldgnu\"
37707 genfile --file foo --length 50000k
37709 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37710 echo Exit status: \$?
37713 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37715 echo truncate.at:32 >"$at_check_line_file"
37717 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37722 TEST_TAR_FORMAT=oldgnu
37723 export TEST_TAR_FORMAT
37724 TAR_OPTIONS="-H oldgnu"
37728 genfile --file foo --length 50000k
37730 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37731 echo Exit status: $?
37734 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37735 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37736 at_func_filter_trace $?
37741 TEST_TAR_FORMAT=oldgnu
37742 export TEST_TAR_FORMAT
37743 TAR_OPTIONS="-H oldgnu"
37747 genfile --file foo --length 50000k
37749 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37750 echo Exit status: $?
37753 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37754 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37758 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37760 $at_diff - "$at_stderr" || at_failed=:
37761 echo >>"$at_stdout"; $as_echo "foo
37766 foo: Mod time differs
37769 $at_diff - "$at_stdout" || at_failed=:
37770 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37772 $at_failed && at_func_log_failure
37776 $as_echo "$at_srcdir/truncate.at:32:
37779 TEST_TAR_FORMAT=ustar
37780 export TEST_TAR_FORMAT
37781 TAR_OPTIONS=\"-H ustar\"
37785 genfile --file foo --length 50000k
37787 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37788 echo Exit status: \$?
37791 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37793 echo truncate.at:32 >"$at_check_line_file"
37795 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37800 TEST_TAR_FORMAT=ustar
37801 export TEST_TAR_FORMAT
37802 TAR_OPTIONS="-H ustar"
37806 genfile --file foo --length 50000k
37808 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37809 echo Exit status: $?
37812 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37813 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37814 at_func_filter_trace $?
37819 TEST_TAR_FORMAT=ustar
37820 export TEST_TAR_FORMAT
37821 TAR_OPTIONS="-H ustar"
37825 genfile --file foo --length 50000k
37827 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37828 echo Exit status: $?
37831 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37832 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37836 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37838 $at_diff - "$at_stderr" || at_failed=:
37839 echo >>"$at_stdout"; $as_echo "foo
37844 foo: Mod time differs
37847 $at_diff - "$at_stdout" || at_failed=:
37848 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37850 $at_failed && at_func_log_failure
37854 $as_echo "$at_srcdir/truncate.at:32:
37857 TEST_TAR_FORMAT=posix
37858 export TEST_TAR_FORMAT
37859 TAR_OPTIONS=\"-H posix\"
37863 genfile --file foo --length 50000k
37865 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37866 echo Exit status: \$?
37869 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37871 echo truncate.at:32 >"$at_check_line_file"
37873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37878 TEST_TAR_FORMAT=posix
37879 export TEST_TAR_FORMAT
37880 TAR_OPTIONS="-H posix"
37884 genfile --file foo --length 50000k
37886 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37887 echo Exit status: $?
37890 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37891 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37892 at_func_filter_trace $?
37897 TEST_TAR_FORMAT=posix
37898 export TEST_TAR_FORMAT
37899 TAR_OPTIONS="-H posix"
37903 genfile --file foo --length 50000k
37905 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37906 echo Exit status: $?
37909 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37910 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37914 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37916 $at_diff - "$at_stderr" || at_failed=:
37917 echo >>"$at_stdout"; $as_echo "foo
37922 foo: Mod time differs
37925 $at_diff - "$at_stdout" || at_failed=:
37926 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37928 $at_failed && at_func_log_failure
37932 $as_echo "$at_srcdir/truncate.at:32:
37935 TEST_TAR_FORMAT=gnu
37936 export TEST_TAR_FORMAT
37937 TAR_OPTIONS=\"-H gnu\"
37941 genfile --file foo --length 50000k
37943 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37944 echo Exit status: \$?
37947 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37949 echo truncate.at:32 >"$at_check_line_file"
37951 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37956 TEST_TAR_FORMAT=gnu
37957 export TEST_TAR_FORMAT
37958 TAR_OPTIONS="-H gnu"
37962 genfile --file foo --length 50000k
37964 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37965 echo Exit status: $?
37968 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37969 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37970 at_func_filter_trace $?
37975 TEST_TAR_FORMAT=gnu
37976 export TEST_TAR_FORMAT
37977 TAR_OPTIONS="-H gnu"
37981 genfile --file foo --length 50000k
37983 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37984 echo Exit status: $?
37987 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37988 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37992 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37994 $at_diff - "$at_stderr" || at_failed=:
37995 echo >>"$at_stdout"; $as_echo "foo
38000 foo: Mod time differs
38003 $at_diff - "$at_stdout" || at_failed=:
38004 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38006 $at_failed && at_func_log_failure
38013 $at_times_p && times >"$at_times_file"
38014 ) 5>&1 2>&1 | eval $at_tee_pipe
38015 at_status=`cat "$at_status_file"`
38018 # 108. grow.at:24: grow
38019 at_setup_line='grow.at:24'
38021 $at_quiet $as_echo_n "108: $at_desc "
38023 test -f $XFAILFILE && at_xfail=yes
38024 echo "# -*- compilation -*-" >> "$at_group_log"
38026 $as_echo "108. grow.at:24: testing ..."
38034 $as_echo "$at_srcdir/grow.at:27:
38038 export TEST_TAR_FORMAT
38039 TAR_OPTIONS=\"-H v7\"
38043 genfile --file foo --length 50000k
38045 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38047 echo grow.at:27 >"$at_check_line_file"
38049 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38055 export TEST_TAR_FORMAT
38056 TAR_OPTIONS="-H v7"
38060 genfile --file foo --length 50000k
38062 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38063 ) ) >"$at_stdout" 2>"$at_stder1"
38064 at_func_filter_trace $?
38070 export TEST_TAR_FORMAT
38071 TAR_OPTIONS="-H v7"
38075 genfile --file foo --length 50000k
38077 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38078 ) ) >"$at_stdout" 2>"$at_stderr"
38082 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38084 $at_diff - "$at_stderr" || at_failed=:
38085 echo >>"$at_stdout"; $as_echo "foo
38088 $at_diff - "$at_stdout" || at_failed=:
38089 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38091 $at_failed && at_func_log_failure
38095 $as_echo "$at_srcdir/grow.at:27:
38098 TEST_TAR_FORMAT=oldgnu
38099 export TEST_TAR_FORMAT
38100 TAR_OPTIONS=\"-H oldgnu\"
38104 genfile --file foo --length 50000k
38106 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38108 echo grow.at:27 >"$at_check_line_file"
38110 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38115 TEST_TAR_FORMAT=oldgnu
38116 export TEST_TAR_FORMAT
38117 TAR_OPTIONS="-H oldgnu"
38121 genfile --file foo --length 50000k
38123 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38124 ) ) >"$at_stdout" 2>"$at_stder1"
38125 at_func_filter_trace $?
38130 TEST_TAR_FORMAT=oldgnu
38131 export TEST_TAR_FORMAT
38132 TAR_OPTIONS="-H oldgnu"
38136 genfile --file foo --length 50000k
38138 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38139 ) ) >"$at_stdout" 2>"$at_stderr"
38143 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38145 $at_diff - "$at_stderr" || at_failed=:
38146 echo >>"$at_stdout"; $as_echo "foo
38149 $at_diff - "$at_stdout" || at_failed=:
38150 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38152 $at_failed && at_func_log_failure
38156 $as_echo "$at_srcdir/grow.at:27:
38159 TEST_TAR_FORMAT=ustar
38160 export TEST_TAR_FORMAT
38161 TAR_OPTIONS=\"-H ustar\"
38165 genfile --file foo --length 50000k
38167 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38169 echo grow.at:27 >"$at_check_line_file"
38171 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38176 TEST_TAR_FORMAT=ustar
38177 export TEST_TAR_FORMAT
38178 TAR_OPTIONS="-H ustar"
38182 genfile --file foo --length 50000k
38184 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38185 ) ) >"$at_stdout" 2>"$at_stder1"
38186 at_func_filter_trace $?
38191 TEST_TAR_FORMAT=ustar
38192 export TEST_TAR_FORMAT
38193 TAR_OPTIONS="-H ustar"
38197 genfile --file foo --length 50000k
38199 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38200 ) ) >"$at_stdout" 2>"$at_stderr"
38204 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38206 $at_diff - "$at_stderr" || at_failed=:
38207 echo >>"$at_stdout"; $as_echo "foo
38210 $at_diff - "$at_stdout" || at_failed=:
38211 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38213 $at_failed && at_func_log_failure
38217 $as_echo "$at_srcdir/grow.at:27:
38220 TEST_TAR_FORMAT=posix
38221 export TEST_TAR_FORMAT
38222 TAR_OPTIONS=\"-H posix\"
38226 genfile --file foo --length 50000k
38228 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38230 echo grow.at:27 >"$at_check_line_file"
38232 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38237 TEST_TAR_FORMAT=posix
38238 export TEST_TAR_FORMAT
38239 TAR_OPTIONS="-H posix"
38243 genfile --file foo --length 50000k
38245 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38246 ) ) >"$at_stdout" 2>"$at_stder1"
38247 at_func_filter_trace $?
38252 TEST_TAR_FORMAT=posix
38253 export TEST_TAR_FORMAT
38254 TAR_OPTIONS="-H posix"
38258 genfile --file foo --length 50000k
38260 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38261 ) ) >"$at_stdout" 2>"$at_stderr"
38265 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38267 $at_diff - "$at_stderr" || at_failed=:
38268 echo >>"$at_stdout"; $as_echo "foo
38271 $at_diff - "$at_stdout" || at_failed=:
38272 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38274 $at_failed && at_func_log_failure
38278 $as_echo "$at_srcdir/grow.at:27:
38281 TEST_TAR_FORMAT=gnu
38282 export TEST_TAR_FORMAT
38283 TAR_OPTIONS=\"-H gnu\"
38287 genfile --file foo --length 50000k
38289 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38291 echo grow.at:27 >"$at_check_line_file"
38293 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38298 TEST_TAR_FORMAT=gnu
38299 export TEST_TAR_FORMAT
38300 TAR_OPTIONS="-H gnu"
38304 genfile --file foo --length 50000k
38306 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38307 ) ) >"$at_stdout" 2>"$at_stder1"
38308 at_func_filter_trace $?
38313 TEST_TAR_FORMAT=gnu
38314 export TEST_TAR_FORMAT
38315 TAR_OPTIONS="-H gnu"
38319 genfile --file foo --length 50000k
38321 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38322 ) ) >"$at_stdout" 2>"$at_stderr"
38326 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38328 $at_diff - "$at_stderr" || at_failed=:
38329 echo >>"$at_stdout"; $as_echo "foo
38332 $at_diff - "$at_stdout" || at_failed=:
38333 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38335 $at_failed && at_func_log_failure
38342 $at_times_p && times >"$at_times_file"
38343 ) 5>&1 2>&1 | eval $at_tee_pipe
38344 at_status=`cat "$at_status_file"`
38347 # 109. remfiles01.at:28: remove-files with compression
38348 at_setup_line='remfiles01.at:28'
38349 at_desc="remove-files with compression"
38350 $at_quiet $as_echo_n "109: $at_desc "
38352 echo "# -*- compilation -*-" >> "$at_group_log"
38354 $as_echo "109. remfiles01.at:28: testing ..."
38361 $as_echo "$at_srcdir/remfiles01.at:32:
38365 cat $$ > /dev/null 2>&1
38368 test $result -eq 0 && exit 77
38371 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38374 test -z "`sort < /dev/null 2>&1`" || exit 77
38379 genfile --file a --length 0
38384 # Depending on when the SIGPIPE gets delivered, the invocation below
38385 # may finish with either
38386 # tar: a: Cannot write: Broken pipe
38388 # tar: Child returned status 2
38390 # Discard diagnostics that some shells generate about broken pipes,
38391 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
38392 # Gzip's exit code is propagated to the shell. Usually it is 141.
38393 # Convert all non-zero exits to 2 to make it predictable.
38394 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38396 sed -n '/(child)/p' err >&2
38401 echo remfiles01.at:32 >"$at_check_line_file"
38403 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38409 cat $$ > /dev/null 2>&1
38412 test $result -eq 0 && exit 77
38415 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38418 test -z "`sort < /dev/null 2>&1`" || exit 77
38423 genfile --file a --length 0
38428 # Depending on when the SIGPIPE gets delivered, the invocation below
38429 # may finish with either
38430 # tar: a: Cannot write: Broken pipe
38432 # tar: Child returned status 2
38434 # Discard diagnostics that some shells generate about broken pipes,
38435 # and discard all of tar's diagnostics except for the ones saying "(child)".
38436 # Gzip's exit code is propagated to the shell. Usually it is 141.
38437 # Convert all non-zero exits to 2 to make it predictable.
38438 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38440 sed -n '/(child)/p' err >&2
38444 ) >"$at_stdout" 2>"$at_stder1"
38445 at_func_filter_trace $?
38451 cat $$ > /dev/null 2>&1
38454 test $result -eq 0 && exit 77
38457 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38460 test -z "`sort < /dev/null 2>&1`" || exit 77
38465 genfile --file a --length 0
38470 # Depending on when the SIGPIPE gets delivered, the invocation below
38471 # may finish with either
38472 # tar: a: Cannot write: Broken pipe
38474 # tar: Child returned status 2
38476 # Discard diagnostics that some shells generate about broken pipes,
38477 # and discard all of tar's diagnostics except for the ones saying "(child)".
38478 # Gzip's exit code is propagated to the shell. Usually it is 141.
38479 # Convert all non-zero exits to 2 to make it predictable.
38480 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38482 sed -n '/(child)/p' err >&2
38486 ) >"$at_stdout" 2>"$at_stderr"
38490 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
38491 tar (child): Error is not recoverable: exiting now
38493 $at_diff - "$at_stderr" || at_failed=:
38494 echo >>"$at_stdout"; $as_echo ".
38499 $at_diff - "$at_stdout" || at_failed=:
38500 at_func_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
38502 $at_failed && at_func_log_failure
38507 $at_times_p && times >"$at_times_file"
38508 ) 5>&1 2>&1 | eval $at_tee_pipe
38509 at_status=`cat "$at_status_file"`
38512 # 110. remfiles02.at:28: remove-files with compression: grand-child
38513 at_setup_line='remfiles02.at:28'
38514 at_desc="remove-files with compression: grand-child"
38515 $at_quiet $as_echo_n "110: $at_desc "
38517 echo "# -*- compilation -*-" >> "$at_group_log"
38519 $as_echo "110. remfiles02.at:28: testing ..."
38526 $as_echo "$at_srcdir/remfiles02.at:32:
38528 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38531 test -z "`sort < /dev/null 2>&1`" || exit 77
38540 tar -c -f a -z --remove-files b c 2>err
38542 sed -n '/(child)/p' err >&2
38547 echo remfiles02.at:32 >"$at_check_line_file"
38549 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38553 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38556 test -z "`sort < /dev/null 2>&1`" || exit 77
38565 tar -c -f a -z --remove-files b c 2>err
38567 sed -n '/(child)/p' err >&2
38571 ) >"$at_stdout" 2>"$at_stder1"
38572 at_func_filter_trace $?
38576 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38579 test -z "`sort < /dev/null 2>&1`" || exit 77
38588 tar -c -f a -z --remove-files b c 2>err
38590 sed -n '/(child)/p' err >&2
38594 ) >"$at_stdout" 2>"$at_stderr"
38598 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
38599 tar (child): Error is not recoverable: exiting now
38601 $at_diff - "$at_stderr" || at_failed=:
38602 echo >>"$at_stdout"; $as_echo ".
38607 $at_diff - "$at_stdout" || at_failed=:
38608 at_func_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
38610 $at_failed && at_func_log_failure
38615 $at_times_p && times >"$at_times_file"
38616 ) 5>&1 2>&1 | eval $at_tee_pipe
38617 at_status=`cat "$at_status_file"`
38620 # 111. remfiles03.at:28: remove-files with symbolic links
38621 at_setup_line='remfiles03.at:28'
38622 at_desc="remove-files with symbolic links"
38623 $at_quiet $as_echo_n "111: $at_desc "
38625 echo "# -*- compilation -*-" >> "$at_group_log"
38627 $as_echo "111. remfiles03.at:28: testing ..."
38633 $as_echo "$at_srcdir/remfiles03.at:31:
38636 ln -s b a/c || exit 77
38637 tar --remove-files -cf a.tar a
38640 echo remfiles03.at:31 >"$at_check_line_file"
38642 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38647 ln -s b a/c || exit 77
38648 tar --remove-files -cf a.tar a
38650 ) >"$at_stdout" 2>"$at_stder1"
38651 at_func_filter_trace $?
38656 ln -s b a/c || exit 77
38657 tar --remove-files -cf a.tar a
38659 ) >"$at_stdout" 2>"$at_stderr"
38663 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
38665 $at_diff - "$at_stderr" || at_failed=:
38666 at_func_diff_devnull "$at_stdout" || at_failed=:
38667 at_func_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
38669 $at_failed && at_func_log_failure
38674 $at_times_p && times >"$at_times_file"
38675 ) 5>&1 2>&1 | eval $at_tee_pipe
38676 at_status=`cat "$at_status_file"`
38679 # 112. sigpipe.at:19: sigpipe handling
38680 at_setup_line='sigpipe.at:19'
38681 at_desc="sigpipe handling"
38682 $at_quiet $as_echo_n "112: $at_desc "
38684 echo "# -*- compilation -*-" >> "$at_group_log"
38686 $as_echo "112. sigpipe.at:19: testing ..."
38691 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
38692 # error" diagnostics when piping output to another programs.
38693 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
38694 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
38695 # <20100319184141.GC30047@wo.int.altlinux.org>
38698 $as_echo "$at_srcdir/sigpipe.at:28:
38699 genfile --length 2048 --file first
38700 genfile --length 2048 --file second
38701 genfile --length 2049 --file third
38703 tar cf archive first second third
38705 # Discard diagnostics that some shells generate about broken pipes.
38706 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38708 echo sigpipe.at:28 >"$at_check_line_file"
38710 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38713 genfile --length 2048 --file first
38714 genfile --length 2048 --file second
38715 genfile --length 2049 --file third
38717 tar cf archive first second third
38719 # Discard diagnostics that some shells generate about broken pipes.
38720 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38721 ) >"$at_stdout" 2>"$at_stder1"
38722 at_func_filter_trace $?
38725 genfile --length 2048 --file first
38726 genfile --length 2048 --file second
38727 genfile --length 2049 --file third
38729 tar cf archive first second third
38731 # Discard diagnostics that some shells generate about broken pipes.
38732 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38733 ) >"$at_stdout" 2>"$at_stderr"
38737 at_func_diff_devnull "$at_stderr" || at_failed=:
38738 at_func_diff_devnull "$at_stdout" || at_failed=:
38739 at_func_check_status 0 $at_status "$at_srcdir/sigpipe.at:28"
38741 $at_failed && at_func_log_failure
38746 $at_times_p && times >"$at_times_file"
38747 ) 5>&1 2>&1 | eval $at_tee_pipe
38748 at_status=`cat "$at_status_file"`
38751 # 113. gtarfail.at:21: gtarfail
38752 at_setup_line='gtarfail.at:21'
38754 $at_quiet $as_echo_n "113: $at_desc "
38756 echo "# -*- compilation -*-" >> "$at_group_log"
38758 $as_echo "113. gtarfail.at:21: testing ..."
38766 $as_echo "$at_srcdir/gtarfail.at:26:
38768 test -z "$STAR_TESTSCRIPTS" && exit 77
38769 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38772 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
38774 echo gtarfail.at:26 >"$at_check_line_file"
38776 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38780 test -z "$STAR_TESTSCRIPTS" && exit 77
38781 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38784 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
38785 ) >"$at_stdout" 2>"$at_stder1"
38786 at_func_filter_trace $?
38790 test -z "$STAR_TESTSCRIPTS" && exit 77
38791 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38794 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
38795 ) >"$at_stdout" 2>"$at_stderr"
38799 at_func_diff_devnull "$at_stderr" || at_failed=:
38800 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
38801 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
38802 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
38803 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
38804 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
38805 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
38807 $at_diff - "$at_stdout" || at_failed=:
38808 at_func_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
38810 $at_failed && at_func_log_failure
38815 $at_times_p && times >"$at_times_file"
38816 ) 5>&1 2>&1 | eval $at_tee_pipe
38817 at_status=`cat "$at_status_file"`
38820 # 114. gtarfail2.at:21: gtarfail2
38821 at_setup_line='gtarfail2.at:21'
38822 at_desc="gtarfail2"
38823 $at_quiet $as_echo_n "114: $at_desc "
38825 echo "# -*- compilation -*-" >> "$at_group_log"
38827 $as_echo "114. gtarfail2.at:21: testing ..."
38835 $as_echo "$at_srcdir/gtarfail2.at:26:
38837 test -z "$STAR_TESTSCRIPTS" && exit 77
38838 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38840 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
38842 echo gtarfail2.at:26 >"$at_check_line_file"
38844 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38848 test -z "$STAR_TESTSCRIPTS" && exit 77
38849 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38851 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
38852 ) >"$at_stdout" 2>"$at_stder1"
38853 at_func_filter_trace $?
38857 test -z "$STAR_TESTSCRIPTS" && exit 77
38858 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38860 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
38861 ) >"$at_stdout" 2>"$at_stderr"
38865 at_func_diff_devnull "$at_stderr" || at_failed=:
38866 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
38867 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
38868 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
38869 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
38870 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
38871 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
38872 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
38873 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
38874 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
38875 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
38877 $at_diff - "$at_stdout" || at_failed=:
38878 at_func_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
38880 $at_failed && at_func_log_failure
38885 $at_times_p && times >"$at_times_file"
38886 ) 5>&1 2>&1 | eval $at_tee_pipe
38887 at_status=`cat "$at_status_file"`
38890 # 115. multi-fail.at:21: multi-fail
38891 at_setup_line='multi-fail.at:21'
38892 at_desc="multi-fail"
38893 $at_quiet $as_echo_n "115: $at_desc "
38895 echo "# -*- compilation -*-" >> "$at_group_log"
38897 $as_echo "115. multi-fail.at:21: testing ..."
38905 $as_echo "$at_srcdir/multi-fail.at:26:
38907 test -z "$STAR_TESTSCRIPTS" && exit 77
38908 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38911 test -z "$STAR_TESTSCRIPTS" && exit 77
38912 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38915 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
38916 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38918 echo multi-fail.at:26 >"$at_check_line_file"
38920 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38924 test -z "$STAR_TESTSCRIPTS" && exit 77
38925 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38928 test -z "$STAR_TESTSCRIPTS" && exit 77
38929 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38932 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
38933 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38934 ) >"$at_stdout" 2>"$at_stder1"
38935 at_func_filter_trace $?
38939 test -z "$STAR_TESTSCRIPTS" && exit 77
38940 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38943 test -z "$STAR_TESTSCRIPTS" && exit 77
38944 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38947 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
38948 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38949 ) >"$at_stdout" 2>"$at_stderr"
38953 at_func_diff_devnull "$at_stderr" || at_failed=:
38954 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
38955 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
38956 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
38957 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
38958 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
38959 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
38960 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
38961 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
38962 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
38963 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
38964 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
38965 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
38966 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
38967 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
38968 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
38969 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
38970 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
38971 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
38972 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
38973 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
38974 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
38975 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
38976 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
38977 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
38978 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
38979 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
38980 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
38981 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
38982 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
38983 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
38984 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
38985 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
38986 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
38987 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
38988 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
38989 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
38990 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
38991 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
38992 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
38993 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
38994 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
38995 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
38996 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
38997 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
38998 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
38999 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
39000 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
39001 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
39002 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
39003 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
39004 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
39005 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
39007 $at_diff - "$at_stdout" || at_failed=:
39008 at_func_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
39010 $at_failed && at_func_log_failure
39015 $at_times_p && times >"$at_times_file"
39016 ) 5>&1 2>&1 | eval $at_tee_pipe
39017 at_status=`cat "$at_status_file"`
39020 # 116. ustar-big-2g.at:21: ustar-big-2g
39021 at_setup_line='ustar-big-2g.at:21'
39022 at_desc="ustar-big-2g"
39023 $at_quiet $as_echo_n "116: $at_desc "
39025 echo "# -*- compilation -*-" >> "$at_group_log"
39027 $as_echo "116. ustar-big-2g.at:21: testing ..."
39035 $as_echo "$at_srcdir/ustar-big-2g.at:26:
39037 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39040 test -z "$STAR_TESTSCRIPTS" && exit 77
39041 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39044 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39046 echo ustar-big-2g.at:26 >"$at_check_line_file"
39048 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39052 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39055 test -z "$STAR_TESTSCRIPTS" && exit 77
39056 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39059 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39060 ) >"$at_stdout" 2>"$at_stder1"
39061 at_func_filter_trace $?
39065 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39068 test -z "$STAR_TESTSCRIPTS" && exit 77
39069 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39072 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39073 ) >"$at_stdout" 2>"$at_stderr"
39077 echo stderr:; tee stderr <"$at_stderr"
39078 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
39079 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
39081 $at_diff - "$at_stdout" || at_failed=:
39082 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
39084 $at_failed && at_func_log_failure
39089 cat >stderr.re <<'_ATEOF'
39090 tar: Record size = .*
39093 awk '{print NR " " $0}' stderr > $$.1
39094 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39095 while read NUM RE LINE
39097 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39102 $at_times_p && times >"$at_times_file"
39103 ) 5>&1 2>&1 | eval $at_tee_pipe
39104 at_status=`cat "$at_status_file"`
39107 # 117. ustar-big-8g.at:21: ustar-big-8g
39108 at_setup_line='ustar-big-8g.at:21'
39109 at_desc="ustar-big-8g"
39110 $at_quiet $as_echo_n "117: $at_desc "
39112 echo "# -*- compilation -*-" >> "$at_group_log"
39114 $as_echo "117. ustar-big-8g.at:21: testing ..."
39122 $as_echo "$at_srcdir/ustar-big-8g.at:26:
39124 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39127 test -z "$STAR_TESTSCRIPTS" && exit 77
39128 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39131 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39133 echo ustar-big-8g.at:26 >"$at_check_line_file"
39135 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39139 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39142 test -z "$STAR_TESTSCRIPTS" && exit 77
39143 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39146 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39147 ) >"$at_stdout" 2>"$at_stder1"
39148 at_func_filter_trace $?
39152 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39155 test -z "$STAR_TESTSCRIPTS" && exit 77
39156 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39159 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39160 ) >"$at_stdout" 2>"$at_stderr"
39164 echo stderr:; tee stderr <"$at_stderr"
39165 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
39166 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
39168 $at_diff - "$at_stdout" || at_failed=:
39169 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
39171 $at_failed && at_func_log_failure
39176 cat >stderr.re <<'_ATEOF'
39177 tar: Record size = .*
39180 awk '{print NR " " $0}' stderr > $$.1
39181 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39182 while read NUM RE LINE
39184 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39189 $at_times_p && times >"$at_times_file"
39190 ) 5>&1 2>&1 | eval $at_tee_pipe
39191 at_status=`cat "$at_status_file"`
39194 # 118. pax-big-10g.at:21: pax-big-10g
39195 at_setup_line='pax-big-10g.at:21'
39196 at_desc="pax-big-10g"
39197 $at_quiet $as_echo_n "118: $at_desc "
39199 echo "# -*- compilation -*-" >> "$at_group_log"
39201 $as_echo "118. pax-big-10g.at:21: testing ..."
39209 $as_echo "$at_srcdir/pax-big-10g.at:26:
39211 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39214 test -z "$STAR_TESTSCRIPTS" && exit 77
39215 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39218 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39220 echo pax-big-10g.at:26 >"$at_check_line_file"
39222 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39226 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39229 test -z "$STAR_TESTSCRIPTS" && exit 77
39230 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39233 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39234 ) >"$at_stdout" 2>"$at_stder1"
39235 at_func_filter_trace $?
39239 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39242 test -z "$STAR_TESTSCRIPTS" && exit 77
39243 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39246 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39247 ) >"$at_stdout" 2>"$at_stderr"
39251 echo stderr:; tee stderr <"$at_stderr"
39252 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
39253 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
39255 $at_diff - "$at_stdout" || at_failed=:
39256 at_func_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
39258 $at_failed && at_func_log_failure
39263 cat >stderr.re <<'_ATEOF'
39264 tar: Record size = .*
39267 awk '{print NR " " $0}' stderr > $$.1
39268 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39269 while read NUM RE LINE
39271 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39276 $at_times_p && times >"$at_times_file"
39277 ) 5>&1 2>&1 | eval $at_tee_pipe
39278 at_status=`cat "$at_status_file"`