3 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
5 # This test suite is free software; the Free Software Foundation gives
6 # unlimited permission to copy, distribute and modify it.
7 ## --------------------- ##
8 ## M4sh Initialization. ##
9 ## --------------------- ##
11 # Be more Bourne compatible
12 DUALCASE=1; export DUALCASE # for MKS sh
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
21 case `(set -o) 2>/dev/null` in
22 *posix*) set -o posix ;;
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
246 case `(set -o) 2>/dev/null` in
247 *posix*) set -o posix ;;
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550 SHELL=${CONFIG_SHELL-/bin/sh}
555 # Load the config file.
556 for at_file in atconfig atlocal
558 test -r $at_file || continue
559 . ./$at_file || { echo "$as_me: error: invalid content: $at_file" >&2
560 { (exit 1); exit 1; }; }
563 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
564 : ${at_top_build_prefix=$at_top_builddir}
566 # atconfig delivers names relative to the directory the test suite is
567 # in, but the groups themselves are run in testsuite-dir/group-dir.
568 if test -n "$at_top_srcdir"; then
570 for at_dir in srcdir top_srcdir top_build_prefix
572 at_val=`eval echo '${'at_$at_dir'}'`
573 eval "$at_dir=\$at_val/../.."
577 # Not all shells have the 'times' builtin; the subshell is needed to make
578 # sure we discard the 'times: not found' message from the shell.
580 (times) >/dev/null 2>&1 && at_times_p=:
582 # CLI Arguments to pass to the debugging scripts.
586 # Shall we be verbose?
590 # Shall we keep the debug scripts? Must be `:' when the suite is
591 # run by a debug script, so that the script doesn't remove itself.
593 # Display help message?
595 # Display the version message?
602 # The directory we are in.
604 # The directory the whole suite works in.
605 # Should be absolutely to let the user `cd' at will.
606 at_suite_dir=$at_dir/$as_me.dir
607 # The file containing the suite.
608 at_suite_log=$at_dir/$as_me.log
609 # The file containing the location of the last AT_CHECK.
610 at_check_line_file=$at_suite_dir/at-check-line
611 # The file containing the exit status of the last command.
612 at_status_file=$at_suite_dir/at-status
613 # The files containing the output of the tested commands.
614 at_stdout=$at_suite_dir/at-stdout
615 at_stder1=$at_suite_dir/at-stder1
616 at_stderr=$at_suite_dir/at-stderr
617 # The file containing dates.
618 at_times_file=$at_suite_dir/at-times
620 # List of the tested programs.
622 # List of the all the test groups.
623 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'
624 # As many question marks as there are digits in the last test group number.
625 # Used to normalize the test group numbers so that `ls' lists them in
628 # Description of all the test groups.
629 at_help_all="1;version.at:19;tar version;;
630 2;pipe.at:29;decompressing from stdin;pipe;
631 3;options.at:24;mixing options;options options00;
632 4;options02.at:26;interspersed options;options options02;
633 5;T-empty.at:26;files-from: empty entries;files-from empty;
634 6;T-null.at:21;files-from: 0-separated file without -0;files-from null T-null;
635 7;indexfile.at:26;tar --index-file=this_is_a_very_long_file_name_which_raises_issues.c --file=-;stdout indexfile;
636 8;verbose.at:26;tar cvf -;stdout verbose;
637 9;append.at:21;append;append append00;
638 10;append01.at:29;appending files with long names;append append01;
639 11;append02.at:40;append vs. create;append append02 append-gnu;
640 12;exclude.at:23;exclude;exclude;
641 13;delete01.at:23;deleting a member after a big one;delete delete01;
642 14;delete02.at:23;deleting a member from stdin archive;delete delete02;
643 15;delete03.at:21;deleting members with long names;delete delete03;
644 16;delete04.at:23;deleting a large last member;delete delete04;
645 17;delete05.at:27;deleting non-existing member;delete delete05;
646 18;extrac01.at:23;extract over an existing directory;extract extract01;
647 19;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
648 20;extrac03.at:23;extraction loops;extract extract03;
649 21;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
650 22;extrac05.at:30;extracting selected members from pax;extract extract05;
651 23;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;
652 24;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
653 25;gzip.at:23;gzip;gzip;
654 26;incremental.at:23;incremental;incremental incr00;
655 27;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
656 28;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
657 29;listed01.at:26;--listed for individual files;listed incremental listed01;
658 30;listed02.at:28;working --listed;listed incremental listed02;
659 31;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
660 32;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
661 33;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
662 34;rename02.at:24;move between hierarchies;incremental rename rename02;
663 35;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
664 36;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
665 37;rename05.at:24;renamed subdirectories;incremental rename05 rename;
666 38;chtype.at:27;changed file types in incrementals;incremental chtype;
667 39;ignfail.at:23;ignfail;ignfail;
668 40;link01.at:33;link count gt 2;link01;
669 41;longv7.at:24;long names in V7 archives;longname longv7;
670 42;long01.at:28;long file names divisible by block size;longname long512;
671 43;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
672 44;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
673 45;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
674 46;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
675 47;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
676 48;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
677 49;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
678 50;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
679 51;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
680 52;old.at:23;old archives;old;
681 53;recurse.at:21;recurse;recurse;
682 54;same-order01.at:26;working -C with --same-order;same-order same-order01;
683 55;same-order02.at:25;multiple -C options;same-order same-order02;
684 56;shortrec.at:25;short records;shortrec;
685 57;sparse01.at:21;sparse files;sparse sparse01;
686 58;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
687 59;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
688 60;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
689 61;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multiv sparsemvp sparsemvp00;
690 62;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
691 63;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multiv sparsemvp sparsemvp10;
692 64;update.at:27;update unchanged directories;update;
693 65;volume.at:23;volume;volume volcheck;
694 66;volsize.at:29;volume header size;volume volsize;
695 67;comprec.at:21;compressed format recognition;comprec;
696 68;shortfile.at:26;short input files;shortfile shortfile0;
697 69;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
698 70;truncate.at:29;truncate;truncate filechange;
699 71;grow.at:24;grow;grow filechange;
700 72;gtarfail.at:21;gtarfail;star gtarfail;
701 73;gtarfail2.at:21;gtarfail2;star gtarfail2;
702 74;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
703 75;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
704 76;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
705 77;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
711 # If the previous option needs an argument, assign it.
712 if test -n "$at_prev"; then
713 at_option=$at_prev=$at_option
718 *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
722 # Accept the important Cygnus configure options, so we can diagnose typos.
738 test -d "$at_suite_dir" &&
739 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
740 rm -f -r "$at_suite_dir" "$at_suite_log"
754 at_verbose=echo; at_quiet=:
758 at_traceon='set -x'; at_traceoff='set +x'
761 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
762 at_groups="$at_groups$at_option "
766 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
767 at_range_start=`echo $at_option |tr -d X-`
768 at_range=`echo " $at_groups_all " | \
769 sed -e 's/^.* \('$at_range_start' \)/\1/'`
770 at_groups="$at_groups$at_range "
773 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
774 at_range_end=`echo $at_option |tr -d X-`
775 at_range=`echo " $at_groups_all " | \
776 sed -e 's/\( '$at_range_end'\) .*$/\1/'`
777 at_groups="$at_groups$at_range "
780 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
781 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
782 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
783 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
784 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
785 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
786 at_range_start=`expr $at_option : '\(.*\)-'`
787 at_range_end=`expr $at_option : '.*-\(.*\)'`
788 if test $at_range_start -gt $at_range_end; then
790 at_range_end=$at_range_start
791 at_range_start=$at_tmp
793 at_range=`echo " $at_groups_all " | \
794 sed -e 's/^.*\( '$at_range_start' \)/\1/' \
795 -e 's/\( '$at_range_end'\) .*$/\1/'`
796 at_groups="$at_groups$at_range "
804 at_groups_selected=$at_help_all
816 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
819 # It is on purpose that we match the test group titles too.
820 at_groups_selected=`echo "$at_groups_selected" |
821 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
823 at_groups_selected=`echo "$at_groups_selected" | sed 's/;.*//'`
824 # Smash the newlines.
825 at_groups="$at_groups`echo $at_groups_selected` "
829 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
830 # Reject names that are not valid shell variable names.
831 expr "x$at_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
832 { echo "$as_me: error: invalid variable name: $at_envvar" >&2
833 { (exit 1); exit 1; }; }
834 at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
835 eval "$at_envvar='$at_value'"
837 # Propagate to debug scripts.
838 at_debug_args="$at_debug_args $at_envvar='$at_value'"
841 *) echo "$as_me: invalid option: $at_option" >&2
842 echo "Try \`$0 --help' for more information." >&2
848 # Selected test groups.
849 if test -z "$at_groups"; then
850 at_groups=$at_groups_all
852 # Sort the tests, removing duplicates:
853 at_groups=`echo $at_groups | tr ' ' "$as_nl" | sort -nu`
854 # and add banners. (Passing at_groups_all is tricky--see the comment
855 # starting with "Passing at_groups is tricky.")
856 at_groups=`echo "$at_groups$as_nl $at_groups_all" |
857 awk 'BEGIN { FS = "@" } # Effectively switch off field splitting.
858 /^$/ { next } # Ignore the empty line.
859 !/ / { groups++; selected[$ 0] = 1; next }
860 # The last line, containing at_groups_all.
862 n = split($ 0, a, " ")
863 # If there are several tests, select their banners:
865 for (i = 1; i <= n; i++) {
866 if (a[i] ~ /^banner-/)
868 else if (banner != "" && selected[a[i]] == 1)
872 for (i = 1; i <= n; i++)
873 if (selected[a[i]] == 1)
882 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
884 Run all the tests, or the selected TESTS, given by numeric ranges, and
885 save a detailed log file. Upon failure, create debugging scripts.
887 You should not change environment variables unless explicitly passed
888 as command line arguments. Set \`AUTOTEST_PATH' to select the executables
889 to exercise. Each relative directory is expanded as build and source
890 directories relatively to the top level of this distribution. E.g.,
892 $ $0 AUTOTEST_PATH=bin
894 possibly amounts into
896 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
901 -h, --help print the help message, then exit
902 -V, --version print version number, then exit
903 -c, --clean remove all the files this test suite might create and exit
904 -l, --list describes all the tests, or the selected TESTS
909 -k, --keywords=KEYWORDS
910 select the tests matching all the comma-separated KEYWORDS
911 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
912 -e, --errexit abort as soon as a test fails; implies --debug
913 -v, --verbose force more detailed output
914 default for debugging scripts
915 -d, --debug inhibit clean up and top-level logging
916 default for debugging scripts
917 -x, --trace enable tests shell tracing
921 Report bugs to <bug-tar@gnu.org>.
929 GNU tar 1.22 test suite test groups:
931 NUM: FILE-NAME:LINE TEST-GROUP-NAME
935 # Passing at_groups is tricky. We cannot use it to form a literal string
936 # or regexp because of the limitation of AIX awk. And Solaris' awk
937 # doesn't grok more than 99 fields in a record, so we have to use `split'.
938 echo "$at_groups$as_nl$at_help_all" |
939 awk 'BEGIN { FS = ";" }
941 for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
946 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
947 if ($ 4) printf " %s\n", $ 4
952 if $at_version_p; then
953 echo "$as_me (GNU tar 1.22)"
956 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
958 This test suite is free software; the Free Software Foundation gives
959 unlimited permission to copy, distribute and modify it.
964 # Don't take risks: use only absolute directories in PATH.
966 # For stand-alone test suites, AUTOTEST_PATH is relative to `.'.
968 # For embedded test suites, AUTOTEST_PATH is relative to the top level
969 # of the package. Then expand it into build/src parts, since users
970 # may create executables in both places.
971 AUTOTEST_PATH=`echo $AUTOTEST_PATH | sed "s&:&$PATH_SEPARATOR&g"`
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 for as_dir in $AUTOTEST_PATH $PATH
977 test -z "$as_dir" && as_dir=.
978 test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
981 at_path=$at_path$as_dir
984 if test -z "$at_top_build_prefix"; then
985 # Stand-alone test suite.
986 at_path=$at_path$as_dir
988 # Embedded test suite.
989 at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
990 at_path=$at_path$at_top_srcdir/$as_dir
998 # Now build and simplify PATH.
1000 # There might be directories that don't exist, but don't redirect
1001 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $at_path
1007 test -z "$as_dir" && as_dir=.
1008 as_dir=`(cd "$as_dir" && pwd) 2>/dev/null`
1009 test -d "$as_dir" || continue
1012 $as_dir$PATH_SEPARATOR* | \
1013 *$PATH_SEPARATOR$as_dir | \
1014 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR* ) ;;
1017 *) PATH=$PATH$PATH_SEPARATOR$as_dir ;;
1024 # Setting up the FDs.
1025 # 5 is the log file. Not to be overwritten if `-d'.
1027 if $at_debug_p; then
1028 at_suite_log=/dev/null
1032 exec 5>>"$at_suite_log"
1036 ## ------------------------ ##
1037 ## GNU tar 1.22 test suite. ##
1038 ## ------------------------ ##
1042 ## ------------------------ ##
1043 ## GNU tar 1.22 test suite. ##
1044 ## ------------------------ ##
1048 echo "$as_me: command line was:"
1049 echo " $ $0 $at_cli_args"
1052 # Try to find a few ChangeLogs in case it might help determining the
1053 # exact version. Use the relative dir: if the top dir is a symlink,
1054 # find will not follow it (and options to follow the links are not
1055 # portable), which would result in no output here.
1056 if test -n "$at_top_srcdir"; then
1063 for at_file in `find "$at_top_srcdir" -name ChangeLog -print`
1065 echo "$as_me: $at_file:"
1066 sed 's/^/| /;10q' $at_file
1076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1099 test -z "$as_dir" && as_dir=.
1100 echo "PATH: $as_dir"
1108 # Contents of the config files.
1109 for at_file in atconfig atlocal
1111 test -r $at_file || continue
1112 echo "$as_me: $at_file:"
1113 sed 's/^/| /' $at_file
1118 ## ---------------- ##
1119 ## Tested programs. ##
1120 ## ---------------- ##
1125 # Report what programs are being tested.
1126 for at_program in : $at_tested
1128 test "$at_program" = : && continue
1129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1133 test -z "$as_dir" && as_dir=.
1134 test -f "$as_dir/$at_program" && break
1138 if test -f "$as_dir/$at_program"; then
1140 echo "$at_srcdir/testsuite.at:104: $as_dir/$at_program --version"
1141 "$as_dir/$at_program" --version
1145 { { echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1146 echo "$as_me: error: cannot find $at_program" >&2;}
1147 { (exit 1); exit 1; }; }
1153 ## ------------------ ##
1154 ## Running the tests. ##
1155 ## ------------------ ##
1159 at_start_date=`date`
1160 at_start_time=`date +%s 2>/dev/null`
1161 echo "$as_me: starting at: $at_start_date" >&5
1169 # Create the master directory if it doesn't already exist.
1170 test -d "$at_suite_dir" ||
1171 mkdir "$at_suite_dir" ||
1172 { { echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1173 echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1174 { (exit 1); exit 1; }; }
1176 # Can we diff with `/dev/null'? DU 5.0 refuses.
1177 if diff /dev/null /dev/null >/dev/null 2>&1; then
1178 at_devnull=/dev/null
1180 at_devnull=$at_suite_dir/devnull
1184 # Use `diff -u' when possible.
1185 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1193 for at_group in $at_groups
1195 # Be sure to come back to the top test directory.
1200 at_group_log=$at_suite_log
1204 at_group_normalized=$at_group
1207 case $at_group_normalized in #(
1208 $at_format*) break;;
1210 at_group_normalized=0$at_group_normalized
1214 # Create a fresh directory for the next test group, and enter.
1215 at_group_dir=$at_suite_dir/$at_group_normalized
1216 at_group_log=$at_group_dir/$as_me.log
1217 if test -d "$at_group_dir"; then
1218 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1219 rm -fr "$at_group_dir"
1221 # Be tolerant if the above `rm' was not able to remove the directory.
1222 { as_dir=$at_group_dir
1224 -*) as_dir=./$as_dir;;
1226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
1231 *) as_qdir=$as_dir;;
1233 as_dirs="'$as_qdir' $as_dirs"
1234 as_dir=`$as_dirname -- "$as_dir" ||
1235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_dir" : 'X\(//\)[^/]' \| \
1237 X"$as_dir" : 'X\(//\)$' \| \
1238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 test -d "$as_dir" && break
1259 test -z "$as_dirs" || eval "mkdir $as_dirs"
1260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1261 echo "$as_me: error: cannot create directory $as_dir" >&2;}
1262 { (exit 1); exit 1; }; }; }
1267 echo 0 > "$at_status_file"
1269 # Clearly separate the test groups when verbose.
1270 test $at_group_count != 0 && $at_verbose
1272 # In verbose mode, append to the log file *and* show on
1273 # the standard output; in quiet mode only write to the log
1274 if test $at_verbose = echo; then
1275 at_tee_pipe='tee -a "$at_group_log"'
1277 at_tee_pipe='cat >> "$at_group_log"'
1281 1 ) # 1. version.at:19: tar version
1282 at_setup_line='version.at:19'
1283 at_desc="tar version"
1284 $at_quiet $ECHO_N " 1: tar version $ECHO_C"
1286 echo "# -*- compilation -*-" >> "$at_group_log"
1288 echo "1. version.at:19: testing ..."
1293 echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1294 echo version.at:21 >"$at_check_line_file"
1297 if test -n "$at_traceon"; then
1301 if test -n "$at_trace_this"; then
1302 ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1304 grep '^ *+' "$at_stder1" >&2
1305 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1307 ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1312 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1313 echo >>"$at_stdout"; echo "tar (GNU tar) 1.22
1314 " | $at_diff - "$at_stdout" || at_failed=:
1316 77) echo 77 > "$at_status_file"; exit 77;;
1318 *) echo "$at_srcdir/version.at:21: exit code was $at_status, expected 0"
1322 cat >$XFAILFILE <<'_EOT'
1324 ==============================================================
1325 WARNING: Not using the proper version, *all* checks dubious...
1326 ==============================================================
1330 echo 1 > "$at_status_file"
1340 $at_times_p && times >"$at_times_file"
1341 ) 5>&1 2>&1 | eval $at_tee_pipe
1342 at_status=`cat "$at_status_file"`
1345 2 ) # 2. pipe.at:29: decompressing from stdin
1346 at_setup_line='pipe.at:29'
1347 at_desc="decompressing from stdin"
1348 $at_quiet $ECHO_N " 2: decompressing from stdin $ECHO_C"
1350 test -f $XFAILFILE && at_xfail=yes
1351 echo "# -*- compilation -*-" >> "$at_group_log"
1353 echo "2. pipe.at:29: testing ..."
1364 echo "$at_srcdir/pipe.at:33:
1368 export TEST_TAR_FORMAT
1369 TAR_OPTIONS=\"-H v7\"
1374 test -z "`sort < /dev/null 2>&1`" || exit 77
1378 genfile --length 10240 --pattern zeros --file directory/file1
1379 genfile --length 13 --file directory/file2
1380 tar cf archive directory|sort
1382 cat archive | tar xfv - | sort
1384 cmp orig/file1 directory/file1
1386 cmp orig/file2 directory/file2)"
1387 echo pipe.at:33 >"$at_check_line_file"
1390 if test -n "$at_traceon"; then
1391 echo 'Not enabling shell tracing (command contains an embedded newline)'
1394 if test -n "$at_trace_this"; then
1399 export TEST_TAR_FORMAT
1405 test -z "`sort < /dev/null 2>&1`" || exit 77
1409 genfile --length 10240 --pattern zeros --file directory/file1
1410 genfile --length 13 --file directory/file2
1411 tar cf archive directory|sort
1413 cat archive | tar xfv - | sort
1415 cmp orig/file1 directory/file1
1417 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1419 grep '^ *+' "$at_stder1" >&2
1420 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1426 export TEST_TAR_FORMAT
1432 test -z "`sort < /dev/null 2>&1`" || exit 77
1436 genfile --length 10240 --pattern zeros --file directory/file1
1437 genfile --length 13 --file directory/file2
1438 tar cf archive directory|sort
1440 cat archive | tar xfv - | sort
1442 cmp orig/file1 directory/file1
1444 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1449 echo stderr:; tee stderr <"$at_stderr"
1450 echo >>"$at_stdout"; echo "directory/
1455 " | $at_diff - "$at_stdout" || at_failed=:
1457 77) echo 77 > "$at_status_file"; exit 77;;
1459 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1465 echo 1 > "$at_status_file"
1473 echo "$at_srcdir/pipe.at:33: grep -v '^.*tar: Record size = ' stderr; exit 0"
1474 echo pipe.at:33 >"$at_check_line_file"
1477 if test -n "$at_traceon"; then
1481 if test -n "$at_trace_this"; then
1482 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
1484 grep '^ *+' "$at_stder1" >&2
1485 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1487 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
1492 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1493 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
1495 77) echo 77 > "$at_status_file"; exit 77;;
1497 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1503 echo 1 > "$at_status_file"
1510 echo "$at_srcdir/pipe.at:33:
1513 TEST_TAR_FORMAT=oldgnu
1514 export TEST_TAR_FORMAT
1515 TAR_OPTIONS=\"-H oldgnu\"
1520 test -z "`sort < /dev/null 2>&1`" || exit 77
1524 genfile --length 10240 --pattern zeros --file directory/file1
1525 genfile --length 13 --file directory/file2
1526 tar cf archive directory|sort
1528 cat archive | tar xfv - | sort
1530 cmp orig/file1 directory/file1
1532 cmp orig/file2 directory/file2)"
1533 echo pipe.at:33 >"$at_check_line_file"
1536 if test -n "$at_traceon"; then
1537 echo 'Not enabling shell tracing (command contains an embedded newline)'
1540 if test -n "$at_trace_this"; then
1544 TEST_TAR_FORMAT=oldgnu
1545 export TEST_TAR_FORMAT
1546 TAR_OPTIONS="-H oldgnu"
1551 test -z "`sort < /dev/null 2>&1`" || exit 77
1555 genfile --length 10240 --pattern zeros --file directory/file1
1556 genfile --length 13 --file directory/file2
1557 tar cf archive directory|sort
1559 cat archive | tar xfv - | sort
1561 cmp orig/file1 directory/file1
1563 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1565 grep '^ *+' "$at_stder1" >&2
1566 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1571 TEST_TAR_FORMAT=oldgnu
1572 export TEST_TAR_FORMAT
1573 TAR_OPTIONS="-H oldgnu"
1578 test -z "`sort < /dev/null 2>&1`" || exit 77
1582 genfile --length 10240 --pattern zeros --file directory/file1
1583 genfile --length 13 --file directory/file2
1584 tar cf archive directory|sort
1586 cat archive | tar xfv - | sort
1588 cmp orig/file1 directory/file1
1590 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1595 echo stderr:; tee stderr <"$at_stderr"
1596 echo >>"$at_stdout"; echo "directory/
1601 " | $at_diff - "$at_stdout" || at_failed=:
1603 77) echo 77 > "$at_status_file"; exit 77;;
1605 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1611 echo 1 > "$at_status_file"
1619 echo "$at_srcdir/pipe.at:33: grep -v '^.*tar: Record size = ' stderr; exit 0"
1620 echo pipe.at:33 >"$at_check_line_file"
1623 if test -n "$at_traceon"; then
1627 if test -n "$at_trace_this"; then
1628 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
1630 grep '^ *+' "$at_stder1" >&2
1631 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1633 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
1638 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1639 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
1641 77) echo 77 > "$at_status_file"; exit 77;;
1643 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1649 echo 1 > "$at_status_file"
1656 echo "$at_srcdir/pipe.at:33:
1659 TEST_TAR_FORMAT=ustar
1660 export TEST_TAR_FORMAT
1661 TAR_OPTIONS=\"-H ustar\"
1666 test -z "`sort < /dev/null 2>&1`" || exit 77
1670 genfile --length 10240 --pattern zeros --file directory/file1
1671 genfile --length 13 --file directory/file2
1672 tar cf archive directory|sort
1674 cat archive | tar xfv - | sort
1676 cmp orig/file1 directory/file1
1678 cmp orig/file2 directory/file2)"
1679 echo pipe.at:33 >"$at_check_line_file"
1682 if test -n "$at_traceon"; then
1683 echo 'Not enabling shell tracing (command contains an embedded newline)'
1686 if test -n "$at_trace_this"; then
1690 TEST_TAR_FORMAT=ustar
1691 export TEST_TAR_FORMAT
1692 TAR_OPTIONS="-H ustar"
1697 test -z "`sort < /dev/null 2>&1`" || exit 77
1701 genfile --length 10240 --pattern zeros --file directory/file1
1702 genfile --length 13 --file directory/file2
1703 tar cf archive directory|sort
1705 cat archive | tar xfv - | sort
1707 cmp orig/file1 directory/file1
1709 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1711 grep '^ *+' "$at_stder1" >&2
1712 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1717 TEST_TAR_FORMAT=ustar
1718 export TEST_TAR_FORMAT
1719 TAR_OPTIONS="-H ustar"
1724 test -z "`sort < /dev/null 2>&1`" || exit 77
1728 genfile --length 10240 --pattern zeros --file directory/file1
1729 genfile --length 13 --file directory/file2
1730 tar cf archive directory|sort
1732 cat archive | tar xfv - | sort
1734 cmp orig/file1 directory/file1
1736 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1741 echo stderr:; tee stderr <"$at_stderr"
1742 echo >>"$at_stdout"; echo "directory/
1747 " | $at_diff - "$at_stdout" || at_failed=:
1749 77) echo 77 > "$at_status_file"; exit 77;;
1751 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1757 echo 1 > "$at_status_file"
1765 echo "$at_srcdir/pipe.at:33: grep -v '^.*tar: Record size = ' stderr; exit 0"
1766 echo pipe.at:33 >"$at_check_line_file"
1769 if test -n "$at_traceon"; then
1773 if test -n "$at_trace_this"; then
1774 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
1776 grep '^ *+' "$at_stder1" >&2
1777 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1779 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
1784 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1785 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
1787 77) echo 77 > "$at_status_file"; exit 77;;
1789 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1795 echo 1 > "$at_status_file"
1802 echo "$at_srcdir/pipe.at:33:
1805 TEST_TAR_FORMAT=posix
1806 export TEST_TAR_FORMAT
1807 TAR_OPTIONS=\"-H posix\"
1812 test -z "`sort < /dev/null 2>&1`" || exit 77
1816 genfile --length 10240 --pattern zeros --file directory/file1
1817 genfile --length 13 --file directory/file2
1818 tar cf archive directory|sort
1820 cat archive | tar xfv - | sort
1822 cmp orig/file1 directory/file1
1824 cmp orig/file2 directory/file2)"
1825 echo pipe.at:33 >"$at_check_line_file"
1828 if test -n "$at_traceon"; then
1829 echo 'Not enabling shell tracing (command contains an embedded newline)'
1832 if test -n "$at_trace_this"; then
1836 TEST_TAR_FORMAT=posix
1837 export TEST_TAR_FORMAT
1838 TAR_OPTIONS="-H posix"
1843 test -z "`sort < /dev/null 2>&1`" || exit 77
1847 genfile --length 10240 --pattern zeros --file directory/file1
1848 genfile --length 13 --file directory/file2
1849 tar cf archive directory|sort
1851 cat archive | tar xfv - | sort
1853 cmp orig/file1 directory/file1
1855 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1857 grep '^ *+' "$at_stder1" >&2
1858 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1863 TEST_TAR_FORMAT=posix
1864 export TEST_TAR_FORMAT
1865 TAR_OPTIONS="-H posix"
1870 test -z "`sort < /dev/null 2>&1`" || exit 77
1874 genfile --length 10240 --pattern zeros --file directory/file1
1875 genfile --length 13 --file directory/file2
1876 tar cf archive directory|sort
1878 cat archive | tar xfv - | sort
1880 cmp orig/file1 directory/file1
1882 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1887 echo stderr:; tee stderr <"$at_stderr"
1888 echo >>"$at_stdout"; echo "directory/
1893 " | $at_diff - "$at_stdout" || at_failed=:
1895 77) echo 77 > "$at_status_file"; exit 77;;
1897 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1903 echo 1 > "$at_status_file"
1911 echo "$at_srcdir/pipe.at:33: grep -v '^.*tar: Record size = ' stderr; exit 0"
1912 echo pipe.at:33 >"$at_check_line_file"
1915 if test -n "$at_traceon"; then
1919 if test -n "$at_trace_this"; then
1920 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
1922 grep '^ *+' "$at_stder1" >&2
1923 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1925 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
1930 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1931 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
1933 77) echo 77 > "$at_status_file"; exit 77;;
1935 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1941 echo 1 > "$at_status_file"
1948 echo "$at_srcdir/pipe.at:33:
1952 export TEST_TAR_FORMAT
1953 TAR_OPTIONS=\"-H gnu\"
1958 test -z "`sort < /dev/null 2>&1`" || exit 77
1962 genfile --length 10240 --pattern zeros --file directory/file1
1963 genfile --length 13 --file directory/file2
1964 tar cf archive directory|sort
1966 cat archive | tar xfv - | sort
1968 cmp orig/file1 directory/file1
1970 cmp orig/file2 directory/file2)"
1971 echo pipe.at:33 >"$at_check_line_file"
1974 if test -n "$at_traceon"; then
1975 echo 'Not enabling shell tracing (command contains an embedded newline)'
1978 if test -n "$at_trace_this"; then
1983 export TEST_TAR_FORMAT
1984 TAR_OPTIONS="-H gnu"
1989 test -z "`sort < /dev/null 2>&1`" || exit 77
1993 genfile --length 10240 --pattern zeros --file directory/file1
1994 genfile --length 13 --file directory/file2
1995 tar cf archive directory|sort
1997 cat archive | tar xfv - | sort
1999 cmp orig/file1 directory/file1
2001 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2003 grep '^ *+' "$at_stder1" >&2
2004 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2010 export TEST_TAR_FORMAT
2011 TAR_OPTIONS="-H gnu"
2016 test -z "`sort < /dev/null 2>&1`" || exit 77
2020 genfile --length 10240 --pattern zeros --file directory/file1
2021 genfile --length 13 --file directory/file2
2022 tar cf archive directory|sort
2024 cat archive | tar xfv - | sort
2026 cmp orig/file1 directory/file1
2028 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2033 echo stderr:; tee stderr <"$at_stderr"
2034 echo >>"$at_stdout"; echo "directory/
2039 " | $at_diff - "$at_stdout" || at_failed=:
2041 77) echo 77 > "$at_status_file"; exit 77;;
2043 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
2049 echo 1 > "$at_status_file"
2057 echo "$at_srcdir/pipe.at:33: grep -v '^.*tar: Record size = ' stderr; exit 0"
2058 echo pipe.at:33 >"$at_check_line_file"
2061 if test -n "$at_traceon"; then
2065 if test -n "$at_trace_this"; then
2066 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
2068 grep '^ *+' "$at_stder1" >&2
2069 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2071 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
2076 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2077 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
2079 77) echo 77 > "$at_status_file"; exit 77;;
2081 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
2087 echo 1 > "$at_status_file"
2099 $at_times_p && times >"$at_times_file"
2100 ) 5>&1 2>&1 | eval $at_tee_pipe
2101 at_status=`cat "$at_status_file"`
2104 3 ) # 3. options.at:24: mixing options
2105 at_setup_line='options.at:24'
2106 at_desc="mixing options"
2107 $at_quiet $ECHO_N " 3: mixing options $ECHO_C"
2109 echo "# -*- compilation -*-" >> "$at_group_log"
2111 echo "3. options.at:24: testing ..."
2117 echo "$at_srcdir/options.at:27:
2119 TAR_OPTIONS=--numeric-owner tar chof archive file1
2122 echo options.at:27 >"$at_check_line_file"
2125 if test -n "$at_traceon"; then
2126 echo 'Not enabling shell tracing (command contains an embedded newline)'
2129 if test -n "$at_trace_this"; then
2132 TAR_OPTIONS=--numeric-owner tar chof archive file1
2134 ) >"$at_stdout" 2>"$at_stder1"
2136 grep '^ *+' "$at_stder1" >&2
2137 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2141 TAR_OPTIONS=--numeric-owner tar chof archive file1
2143 ) >"$at_stdout" 2>"$at_stderr"
2148 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2149 echo >>"$at_stdout"; echo "file1
2150 " | $at_diff - "$at_stdout" || at_failed=:
2152 77) echo 77 > "$at_status_file"; exit 77;;
2154 *) echo "$at_srcdir/options.at:27: exit code was $at_status, expected 0"
2160 echo 1 > "$at_status_file"
2168 $at_times_p && times >"$at_times_file"
2169 ) 5>&1 2>&1 | eval $at_tee_pipe
2170 at_status=`cat "$at_status_file"`
2173 4 ) # 4. options02.at:26: interspersed options
2174 at_setup_line='options02.at:26'
2175 at_desc="interspersed options"
2176 $at_quiet $ECHO_N " 4: interspersed options $ECHO_C"
2178 echo "# -*- compilation -*-" >> "$at_group_log"
2180 echo "4. options02.at:26: testing ..."
2186 echo "$at_srcdir/options02.at:29:
2188 tar c file1 -f archive
2191 echo options02.at:29 >"$at_check_line_file"
2194 if test -n "$at_traceon"; then
2195 echo 'Not enabling shell tracing (command contains an embedded newline)'
2198 if test -n "$at_trace_this"; then
2201 tar c file1 -f archive
2203 ) >"$at_stdout" 2>"$at_stder1"
2205 grep '^ *+' "$at_stder1" >&2
2206 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2210 tar c file1 -f archive
2212 ) >"$at_stdout" 2>"$at_stderr"
2217 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2218 echo >>"$at_stdout"; echo "file1
2219 " | $at_diff - "$at_stdout" || at_failed=:
2221 77) echo 77 > "$at_status_file"; exit 77;;
2223 *) echo "$at_srcdir/options02.at:29: exit code was $at_status, expected 0"
2229 echo 1 > "$at_status_file"
2237 $at_times_p && times >"$at_times_file"
2238 ) 5>&1 2>&1 | eval $at_tee_pipe
2239 at_status=`cat "$at_status_file"`
2242 5 ) # 5. T-empty.at:26: files-from: empty entries
2243 at_setup_line='T-empty.at:26'
2244 at_desc="files-from: empty entries"
2245 $at_quiet $ECHO_N " 5: files-from: empty entries $ECHO_C"
2247 test -f $XFAILFILE && at_xfail=yes
2248 echo "# -*- compilation -*-" >> "$at_group_log"
2250 echo "5. T-empty.at:26: testing ..."
2255 cat >file-list <<'_ATEOF'
2266 echo "$at_srcdir/T-empty.at:36:
2269 TEST_TAR_FORMAT=ustar
2270 export TEST_TAR_FORMAT
2271 TAR_OPTIONS=\"-H ustar\"
2276 test -z "`sort < /dev/null 2>&1`" || exit 77
2279 genfile --file jeden
2283 tar cfvT archive ../file-list | sort
2285 echo T-empty.at:36 >"$at_check_line_file"
2288 if test -n "$at_traceon"; then
2289 echo 'Not enabling shell tracing (command contains an embedded newline)'
2292 if test -n "$at_trace_this"; then
2296 TEST_TAR_FORMAT=ustar
2297 export TEST_TAR_FORMAT
2298 TAR_OPTIONS="-H ustar"
2303 test -z "`sort < /dev/null 2>&1`" || exit 77
2306 genfile --file jeden
2310 tar cfvT archive ../file-list | sort
2311 ) ) >"$at_stdout" 2>"$at_stder1"
2313 grep '^ *+' "$at_stder1" >&2
2314 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2319 TEST_TAR_FORMAT=ustar
2320 export TEST_TAR_FORMAT
2321 TAR_OPTIONS="-H ustar"
2326 test -z "`sort < /dev/null 2>&1`" || exit 77
2329 genfile --file jeden
2333 tar cfvT archive ../file-list | sort
2334 ) ) >"$at_stdout" 2>"$at_stderr"
2339 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2340 echo >>"$at_stdout"; echo "dwa
2343 " | $at_diff - "$at_stdout" || at_failed=:
2345 77) echo 77 > "$at_status_file"; exit 77;;
2347 *) echo "$at_srcdir/T-empty.at:36: exit code was $at_status, expected 0"
2353 echo 1 > "$at_status_file"
2360 # Testing one format is enough
2363 $at_times_p && times >"$at_times_file"
2364 ) 5>&1 2>&1 | eval $at_tee_pipe
2365 at_status=`cat "$at_status_file"`
2368 6 ) # 6. T-null.at:21: files-from: 0-separated file without -0
2369 at_setup_line='T-null.at:21'
2370 at_desc="files-from: 0-separated file without -0"
2371 $at_quiet $ECHO_N " 6: files-from: 0-separated file without -0 $ECHO_C"
2373 test -f $XFAILFILE && at_xfail=yes
2374 echo "# -*- compilation -*-" >> "$at_group_log"
2376 echo "6. T-null.at:21: testing ..."
2381 cat >expout <<'_ATEOF'
2390 echo "$at_srcdir/T-null.at:28:
2393 TEST_TAR_FORMAT=ustar
2394 export TEST_TAR_FORMAT
2395 TAR_OPTIONS=\"-H ustar\"
2400 test -z "`sort < /dev/null 2>&1`" || exit 77
2405 cat temp | tr '\\n' '\\0' > temp1
2406 echo jeden > file-list
2407 cat temp1 >> file-list
2413 tar cfTv archive file-list | sort
2415 echo T-null.at:28 >"$at_check_line_file"
2418 if test -n "$at_traceon"; then
2419 echo 'Not enabling shell tracing (command contains an embedded newline)'
2422 if test -n "$at_trace_this"; then
2426 TEST_TAR_FORMAT=ustar
2427 export TEST_TAR_FORMAT
2428 TAR_OPTIONS="-H ustar"
2433 test -z "`sort < /dev/null 2>&1`" || exit 77
2438 cat temp | tr '\n' '\0' > temp1
2439 echo jeden > file-list
2440 cat temp1 >> file-list
2446 tar cfTv archive file-list | sort
2447 ) ) >"$at_stdout" 2>"$at_stder1"
2449 grep '^ *+' "$at_stder1" >&2
2450 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2455 TEST_TAR_FORMAT=ustar
2456 export TEST_TAR_FORMAT
2457 TAR_OPTIONS="-H ustar"
2462 test -z "`sort < /dev/null 2>&1`" || exit 77
2467 cat temp | tr '\n' '\0' > temp1
2468 echo jeden > file-list
2469 cat temp1 >> file-list
2475 tar cfTv archive file-list | sort
2476 ) ) >"$at_stdout" 2>"$at_stderr"
2481 echo >>"$at_stderr"; echo "tar: file-list: file name read contains nul character
2482 " | $at_diff - "$at_stderr" || at_failed=:
2483 $at_diff expout "$at_stdout" || at_failed=:
2485 77) echo 77 > "$at_status_file"; exit 77;;
2487 *) echo "$at_srcdir/T-null.at:28: exit code was $at_status, expected 0"
2493 echo 1 > "$at_status_file"
2500 # Testing one format is enough
2503 $at_times_p && times >"$at_times_file"
2504 ) 5>&1 2>&1 | eval $at_tee_pipe
2505 at_status=`cat "$at_status_file"`
2508 7 ) # 7. indexfile.at:26: tar --index-file=FILE --file=-
2509 at_setup_line='indexfile.at:26'
2510 at_desc="tar --index-file=FILE --file=-"
2511 $at_quiet $ECHO_N " 7: tar --index-file=FILE --file=- $ECHO_C"
2513 test -f $XFAILFILE && at_xfail=yes
2514 echo "# -*- compilation -*-" >> "$at_group_log"
2516 echo "7. indexfile.at:26: testing ..."
2524 echo "$at_srcdir/indexfile.at:29:
2528 export TEST_TAR_FORMAT
2529 TAR_OPTIONS=\"-H v7\"
2535 genfile --file=directory/a --length=1035
2537 echo \"Creating the archive\"
2538 tar -c -v -f - --index-file=idx directory > archive
2540 echo \"Testing the archive\"
2543 echo indexfile.at:29 >"$at_check_line_file"
2546 if test -n "$at_traceon"; then
2547 echo 'Not enabling shell tracing (command contains an embedded newline)'
2550 if test -n "$at_trace_this"; then
2555 export TEST_TAR_FORMAT
2562 genfile --file=directory/a --length=1035
2564 echo "Creating the archive"
2565 tar -c -v -f - --index-file=idx directory > archive
2567 echo "Testing the archive"
2569 ) ) >"$at_stdout" 2>"$at_stder1"
2571 grep '^ *+' "$at_stder1" >&2
2572 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2578 export TEST_TAR_FORMAT
2585 genfile --file=directory/a --length=1035
2587 echo "Creating the archive"
2588 tar -c -v -f - --index-file=idx directory > archive
2590 echo "Testing the archive"
2592 ) ) >"$at_stdout" 2>"$at_stderr"
2597 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2598 echo >>"$at_stdout"; echo "Creating the archive
2602 " | $at_diff - "$at_stdout" || at_failed=:
2604 77) echo 77 > "$at_status_file"; exit 77;;
2606 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2612 echo 1 > "$at_status_file"
2619 echo "$at_srcdir/indexfile.at:29:
2622 TEST_TAR_FORMAT=oldgnu
2623 export TEST_TAR_FORMAT
2624 TAR_OPTIONS=\"-H oldgnu\"
2630 genfile --file=directory/a --length=1035
2632 echo \"Creating the archive\"
2633 tar -c -v -f - --index-file=idx directory > archive
2635 echo \"Testing the archive\"
2638 echo indexfile.at:29 >"$at_check_line_file"
2641 if test -n "$at_traceon"; then
2642 echo 'Not enabling shell tracing (command contains an embedded newline)'
2645 if test -n "$at_trace_this"; then
2649 TEST_TAR_FORMAT=oldgnu
2650 export TEST_TAR_FORMAT
2651 TAR_OPTIONS="-H oldgnu"
2657 genfile --file=directory/a --length=1035
2659 echo "Creating the archive"
2660 tar -c -v -f - --index-file=idx directory > archive
2662 echo "Testing the archive"
2664 ) ) >"$at_stdout" 2>"$at_stder1"
2666 grep '^ *+' "$at_stder1" >&2
2667 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2672 TEST_TAR_FORMAT=oldgnu
2673 export TEST_TAR_FORMAT
2674 TAR_OPTIONS="-H oldgnu"
2680 genfile --file=directory/a --length=1035
2682 echo "Creating the archive"
2683 tar -c -v -f - --index-file=idx directory > archive
2685 echo "Testing the archive"
2687 ) ) >"$at_stdout" 2>"$at_stderr"
2692 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2693 echo >>"$at_stdout"; echo "Creating the archive
2697 " | $at_diff - "$at_stdout" || at_failed=:
2699 77) echo 77 > "$at_status_file"; exit 77;;
2701 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2707 echo 1 > "$at_status_file"
2714 echo "$at_srcdir/indexfile.at:29:
2717 TEST_TAR_FORMAT=ustar
2718 export TEST_TAR_FORMAT
2719 TAR_OPTIONS=\"-H ustar\"
2725 genfile --file=directory/a --length=1035
2727 echo \"Creating the archive\"
2728 tar -c -v -f - --index-file=idx directory > archive
2730 echo \"Testing the archive\"
2733 echo indexfile.at:29 >"$at_check_line_file"
2736 if test -n "$at_traceon"; then
2737 echo 'Not enabling shell tracing (command contains an embedded newline)'
2740 if test -n "$at_trace_this"; then
2744 TEST_TAR_FORMAT=ustar
2745 export TEST_TAR_FORMAT
2746 TAR_OPTIONS="-H ustar"
2752 genfile --file=directory/a --length=1035
2754 echo "Creating the archive"
2755 tar -c -v -f - --index-file=idx directory > archive
2757 echo "Testing the archive"
2759 ) ) >"$at_stdout" 2>"$at_stder1"
2761 grep '^ *+' "$at_stder1" >&2
2762 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2767 TEST_TAR_FORMAT=ustar
2768 export TEST_TAR_FORMAT
2769 TAR_OPTIONS="-H ustar"
2775 genfile --file=directory/a --length=1035
2777 echo "Creating the archive"
2778 tar -c -v -f - --index-file=idx directory > archive
2780 echo "Testing the archive"
2782 ) ) >"$at_stdout" 2>"$at_stderr"
2787 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2788 echo >>"$at_stdout"; echo "Creating the archive
2792 " | $at_diff - "$at_stdout" || at_failed=:
2794 77) echo 77 > "$at_status_file"; exit 77;;
2796 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2802 echo 1 > "$at_status_file"
2809 echo "$at_srcdir/indexfile.at:29:
2812 TEST_TAR_FORMAT=posix
2813 export TEST_TAR_FORMAT
2814 TAR_OPTIONS=\"-H posix\"
2820 genfile --file=directory/a --length=1035
2822 echo \"Creating the archive\"
2823 tar -c -v -f - --index-file=idx directory > archive
2825 echo \"Testing the archive\"
2828 echo indexfile.at:29 >"$at_check_line_file"
2831 if test -n "$at_traceon"; then
2832 echo 'Not enabling shell tracing (command contains an embedded newline)'
2835 if test -n "$at_trace_this"; then
2839 TEST_TAR_FORMAT=posix
2840 export TEST_TAR_FORMAT
2841 TAR_OPTIONS="-H posix"
2847 genfile --file=directory/a --length=1035
2849 echo "Creating the archive"
2850 tar -c -v -f - --index-file=idx directory > archive
2852 echo "Testing the archive"
2854 ) ) >"$at_stdout" 2>"$at_stder1"
2856 grep '^ *+' "$at_stder1" >&2
2857 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2862 TEST_TAR_FORMAT=posix
2863 export TEST_TAR_FORMAT
2864 TAR_OPTIONS="-H posix"
2870 genfile --file=directory/a --length=1035
2872 echo "Creating the archive"
2873 tar -c -v -f - --index-file=idx directory > archive
2875 echo "Testing the archive"
2877 ) ) >"$at_stdout" 2>"$at_stderr"
2882 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2883 echo >>"$at_stdout"; echo "Creating the archive
2887 " | $at_diff - "$at_stdout" || at_failed=:
2889 77) echo 77 > "$at_status_file"; exit 77;;
2891 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2897 echo 1 > "$at_status_file"
2904 echo "$at_srcdir/indexfile.at:29:
2908 export TEST_TAR_FORMAT
2909 TAR_OPTIONS=\"-H gnu\"
2915 genfile --file=directory/a --length=1035
2917 echo \"Creating the archive\"
2918 tar -c -v -f - --index-file=idx directory > archive
2920 echo \"Testing the archive\"
2923 echo indexfile.at:29 >"$at_check_line_file"
2926 if test -n "$at_traceon"; then
2927 echo 'Not enabling shell tracing (command contains an embedded newline)'
2930 if test -n "$at_trace_this"; then
2935 export TEST_TAR_FORMAT
2936 TAR_OPTIONS="-H gnu"
2942 genfile --file=directory/a --length=1035
2944 echo "Creating the archive"
2945 tar -c -v -f - --index-file=idx directory > archive
2947 echo "Testing the archive"
2949 ) ) >"$at_stdout" 2>"$at_stder1"
2951 grep '^ *+' "$at_stder1" >&2
2952 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2958 export TEST_TAR_FORMAT
2959 TAR_OPTIONS="-H gnu"
2965 genfile --file=directory/a --length=1035
2967 echo "Creating the archive"
2968 tar -c -v -f - --index-file=idx directory > archive
2970 echo "Testing the archive"
2972 ) ) >"$at_stdout" 2>"$at_stderr"
2977 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2978 echo >>"$at_stdout"; echo "Creating the archive
2982 " | $at_diff - "$at_stdout" || at_failed=:
2984 77) echo 77 > "$at_status_file"; exit 77;;
2986 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2992 echo 1 > "$at_status_file"
3002 $at_times_p && times >"$at_times_file"
3003 ) 5>&1 2>&1 | eval $at_tee_pipe
3004 at_status=`cat "$at_status_file"`
3007 8 ) # 8. verbose.at:26: tar cvf -
3008 at_setup_line='verbose.at:26'
3010 $at_quiet $ECHO_N " 8: tar cvf - $ECHO_C"
3012 test -f $XFAILFILE && at_xfail=yes
3013 echo "# -*- compilation -*-" >> "$at_group_log"
3015 echo "8. verbose.at:26: testing ..."
3023 echo "$at_srcdir/verbose.at:29:
3027 export TEST_TAR_FORMAT
3028 TAR_OPTIONS=\"-H v7\"
3032 genfile --file file --length 10240
3033 echo Creating the archive
3034 tar cvf - file > archive
3035 echo Testing the archive
3038 echo verbose.at:29 >"$at_check_line_file"
3041 if test -n "$at_traceon"; then
3042 echo 'Not enabling shell tracing (command contains an embedded newline)'
3045 if test -n "$at_trace_this"; then
3050 export TEST_TAR_FORMAT
3055 genfile --file file --length 10240
3056 echo Creating the archive
3057 tar cvf - file > archive
3058 echo Testing the archive
3060 ) ) >"$at_stdout" 2>"$at_stder1"
3062 grep '^ *+' "$at_stder1" >&2
3063 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3069 export TEST_TAR_FORMAT
3074 genfile --file file --length 10240
3075 echo Creating the archive
3076 tar cvf - file > archive
3077 echo Testing the archive
3079 ) ) >"$at_stdout" 2>"$at_stderr"
3084 echo >>"$at_stderr"; echo "file
3085 " | $at_diff - "$at_stderr" || at_failed=:
3086 echo >>"$at_stdout"; echo "Creating the archive
3089 " | $at_diff - "$at_stdout" || at_failed=:
3091 77) echo 77 > "$at_status_file"; exit 77;;
3093 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3099 echo 1 > "$at_status_file"
3106 echo "$at_srcdir/verbose.at:29:
3109 TEST_TAR_FORMAT=oldgnu
3110 export TEST_TAR_FORMAT
3111 TAR_OPTIONS=\"-H oldgnu\"
3115 genfile --file file --length 10240
3116 echo Creating the archive
3117 tar cvf - file > archive
3118 echo Testing the archive
3121 echo verbose.at:29 >"$at_check_line_file"
3124 if test -n "$at_traceon"; then
3125 echo 'Not enabling shell tracing (command contains an embedded newline)'
3128 if test -n "$at_trace_this"; then
3132 TEST_TAR_FORMAT=oldgnu
3133 export TEST_TAR_FORMAT
3134 TAR_OPTIONS="-H oldgnu"
3138 genfile --file file --length 10240
3139 echo Creating the archive
3140 tar cvf - file > archive
3141 echo Testing the archive
3143 ) ) >"$at_stdout" 2>"$at_stder1"
3145 grep '^ *+' "$at_stder1" >&2
3146 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3151 TEST_TAR_FORMAT=oldgnu
3152 export TEST_TAR_FORMAT
3153 TAR_OPTIONS="-H oldgnu"
3157 genfile --file file --length 10240
3158 echo Creating the archive
3159 tar cvf - file > archive
3160 echo Testing the archive
3162 ) ) >"$at_stdout" 2>"$at_stderr"
3167 echo >>"$at_stderr"; echo "file
3168 " | $at_diff - "$at_stderr" || at_failed=:
3169 echo >>"$at_stdout"; echo "Creating the archive
3172 " | $at_diff - "$at_stdout" || at_failed=:
3174 77) echo 77 > "$at_status_file"; exit 77;;
3176 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3182 echo 1 > "$at_status_file"
3189 echo "$at_srcdir/verbose.at:29:
3192 TEST_TAR_FORMAT=ustar
3193 export TEST_TAR_FORMAT
3194 TAR_OPTIONS=\"-H ustar\"
3198 genfile --file file --length 10240
3199 echo Creating the archive
3200 tar cvf - file > archive
3201 echo Testing the archive
3204 echo verbose.at:29 >"$at_check_line_file"
3207 if test -n "$at_traceon"; then
3208 echo 'Not enabling shell tracing (command contains an embedded newline)'
3211 if test -n "$at_trace_this"; then
3215 TEST_TAR_FORMAT=ustar
3216 export TEST_TAR_FORMAT
3217 TAR_OPTIONS="-H ustar"
3221 genfile --file file --length 10240
3222 echo Creating the archive
3223 tar cvf - file > archive
3224 echo Testing the archive
3226 ) ) >"$at_stdout" 2>"$at_stder1"
3228 grep '^ *+' "$at_stder1" >&2
3229 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3234 TEST_TAR_FORMAT=ustar
3235 export TEST_TAR_FORMAT
3236 TAR_OPTIONS="-H ustar"
3240 genfile --file file --length 10240
3241 echo Creating the archive
3242 tar cvf - file > archive
3243 echo Testing the archive
3245 ) ) >"$at_stdout" 2>"$at_stderr"
3250 echo >>"$at_stderr"; echo "file
3251 " | $at_diff - "$at_stderr" || at_failed=:
3252 echo >>"$at_stdout"; echo "Creating the archive
3255 " | $at_diff - "$at_stdout" || at_failed=:
3257 77) echo 77 > "$at_status_file"; exit 77;;
3259 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3265 echo 1 > "$at_status_file"
3272 echo "$at_srcdir/verbose.at:29:
3275 TEST_TAR_FORMAT=posix
3276 export TEST_TAR_FORMAT
3277 TAR_OPTIONS=\"-H posix\"
3281 genfile --file file --length 10240
3282 echo Creating the archive
3283 tar cvf - file > archive
3284 echo Testing the archive
3287 echo verbose.at:29 >"$at_check_line_file"
3290 if test -n "$at_traceon"; then
3291 echo 'Not enabling shell tracing (command contains an embedded newline)'
3294 if test -n "$at_trace_this"; then
3298 TEST_TAR_FORMAT=posix
3299 export TEST_TAR_FORMAT
3300 TAR_OPTIONS="-H posix"
3304 genfile --file file --length 10240
3305 echo Creating the archive
3306 tar cvf - file > archive
3307 echo Testing the archive
3309 ) ) >"$at_stdout" 2>"$at_stder1"
3311 grep '^ *+' "$at_stder1" >&2
3312 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3317 TEST_TAR_FORMAT=posix
3318 export TEST_TAR_FORMAT
3319 TAR_OPTIONS="-H posix"
3323 genfile --file file --length 10240
3324 echo Creating the archive
3325 tar cvf - file > archive
3326 echo Testing the archive
3328 ) ) >"$at_stdout" 2>"$at_stderr"
3333 echo >>"$at_stderr"; echo "file
3334 " | $at_diff - "$at_stderr" || at_failed=:
3335 echo >>"$at_stdout"; echo "Creating the archive
3338 " | $at_diff - "$at_stdout" || at_failed=:
3340 77) echo 77 > "$at_status_file"; exit 77;;
3342 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3348 echo 1 > "$at_status_file"
3355 echo "$at_srcdir/verbose.at:29:
3359 export TEST_TAR_FORMAT
3360 TAR_OPTIONS=\"-H gnu\"
3364 genfile --file file --length 10240
3365 echo Creating the archive
3366 tar cvf - file > archive
3367 echo Testing the archive
3370 echo verbose.at:29 >"$at_check_line_file"
3373 if test -n "$at_traceon"; then
3374 echo 'Not enabling shell tracing (command contains an embedded newline)'
3377 if test -n "$at_trace_this"; then
3382 export TEST_TAR_FORMAT
3383 TAR_OPTIONS="-H gnu"
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_stder1"
3394 grep '^ *+' "$at_stder1" >&2
3395 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3401 export TEST_TAR_FORMAT
3402 TAR_OPTIONS="-H gnu"
3406 genfile --file file --length 10240
3407 echo Creating the archive
3408 tar cvf - file > archive
3409 echo Testing the archive
3411 ) ) >"$at_stdout" 2>"$at_stderr"
3416 echo >>"$at_stderr"; echo "file
3417 " | $at_diff - "$at_stderr" || at_failed=:
3418 echo >>"$at_stdout"; echo "Creating the archive
3421 " | $at_diff - "$at_stdout" || at_failed=:
3423 77) echo 77 > "$at_status_file"; exit 77;;
3425 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3431 echo 1 > "$at_status_file"
3441 $at_times_p && times >"$at_times_file"
3442 ) 5>&1 2>&1 | eval $at_tee_pipe
3443 at_status=`cat "$at_status_file"`
3446 9 ) # 9. append.at:21: append
3447 at_setup_line='append.at:21'
3449 $at_quiet $ECHO_N " 9: append $ECHO_C"
3451 test -f $XFAILFILE && at_xfail=yes
3452 echo "# -*- compilation -*-" >> "$at_group_log"
3454 echo "9. append.at:21: testing ..."
3462 echo "$at_srcdir/append.at:24:
3466 export TEST_TAR_FORMAT
3467 TAR_OPTIONS=\"-H v7\"
3472 tar cf archive file1
3473 tar rf archive file2
3475 echo append.at:24 >"$at_check_line_file"
3478 if test -n "$at_traceon"; then
3479 echo 'Not enabling shell tracing (command contains an embedded newline)'
3482 if test -n "$at_trace_this"; then
3487 export TEST_TAR_FORMAT
3493 tar cf archive file1
3494 tar rf archive file2
3495 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3497 grep '^ *+' "$at_stder1" >&2
3498 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3504 export TEST_TAR_FORMAT
3510 tar cf archive file1
3511 tar rf archive file2
3512 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3517 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3518 echo >>"$at_stdout"; echo "file1
3520 " | $at_diff - "$at_stdout" || at_failed=:
3522 77) echo 77 > "$at_status_file"; exit 77;;
3524 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3530 echo 1 > "$at_status_file"
3537 echo "$at_srcdir/append.at:24:
3540 TEST_TAR_FORMAT=oldgnu
3541 export TEST_TAR_FORMAT
3542 TAR_OPTIONS=\"-H oldgnu\"
3547 tar cf archive file1
3548 tar rf archive file2
3550 echo append.at:24 >"$at_check_line_file"
3553 if test -n "$at_traceon"; then
3554 echo 'Not enabling shell tracing (command contains an embedded newline)'
3557 if test -n "$at_trace_this"; then
3561 TEST_TAR_FORMAT=oldgnu
3562 export TEST_TAR_FORMAT
3563 TAR_OPTIONS="-H oldgnu"
3568 tar cf archive file1
3569 tar rf archive file2
3570 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3572 grep '^ *+' "$at_stder1" >&2
3573 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3578 TEST_TAR_FORMAT=oldgnu
3579 export TEST_TAR_FORMAT
3580 TAR_OPTIONS="-H oldgnu"
3585 tar cf archive file1
3586 tar rf archive file2
3587 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3592 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3593 echo >>"$at_stdout"; echo "file1
3595 " | $at_diff - "$at_stdout" || at_failed=:
3597 77) echo 77 > "$at_status_file"; exit 77;;
3599 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3605 echo 1 > "$at_status_file"
3612 echo "$at_srcdir/append.at:24:
3615 TEST_TAR_FORMAT=ustar
3616 export TEST_TAR_FORMAT
3617 TAR_OPTIONS=\"-H ustar\"
3622 tar cf archive file1
3623 tar rf archive file2
3625 echo append.at:24 >"$at_check_line_file"
3628 if test -n "$at_traceon"; then
3629 echo 'Not enabling shell tracing (command contains an embedded newline)'
3632 if test -n "$at_trace_this"; then
3636 TEST_TAR_FORMAT=ustar
3637 export TEST_TAR_FORMAT
3638 TAR_OPTIONS="-H ustar"
3643 tar cf archive file1
3644 tar rf archive file2
3645 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3647 grep '^ *+' "$at_stder1" >&2
3648 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3653 TEST_TAR_FORMAT=ustar
3654 export TEST_TAR_FORMAT
3655 TAR_OPTIONS="-H ustar"
3660 tar cf archive file1
3661 tar rf archive file2
3662 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3667 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3668 echo >>"$at_stdout"; echo "file1
3670 " | $at_diff - "$at_stdout" || at_failed=:
3672 77) echo 77 > "$at_status_file"; exit 77;;
3674 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3680 echo 1 > "$at_status_file"
3687 echo "$at_srcdir/append.at:24:
3690 TEST_TAR_FORMAT=posix
3691 export TEST_TAR_FORMAT
3692 TAR_OPTIONS=\"-H posix\"
3697 tar cf archive file1
3698 tar rf archive file2
3700 echo append.at:24 >"$at_check_line_file"
3703 if test -n "$at_traceon"; then
3704 echo 'Not enabling shell tracing (command contains an embedded newline)'
3707 if test -n "$at_trace_this"; then
3711 TEST_TAR_FORMAT=posix
3712 export TEST_TAR_FORMAT
3713 TAR_OPTIONS="-H posix"
3718 tar cf archive file1
3719 tar rf archive file2
3720 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3722 grep '^ *+' "$at_stder1" >&2
3723 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3728 TEST_TAR_FORMAT=posix
3729 export TEST_TAR_FORMAT
3730 TAR_OPTIONS="-H posix"
3735 tar cf archive file1
3736 tar rf archive file2
3737 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3742 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3743 echo >>"$at_stdout"; echo "file1
3745 " | $at_diff - "$at_stdout" || at_failed=:
3747 77) echo 77 > "$at_status_file"; exit 77;;
3749 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3755 echo 1 > "$at_status_file"
3762 echo "$at_srcdir/append.at:24:
3766 export TEST_TAR_FORMAT
3767 TAR_OPTIONS=\"-H gnu\"
3772 tar cf archive file1
3773 tar rf archive file2
3775 echo append.at:24 >"$at_check_line_file"
3778 if test -n "$at_traceon"; then
3779 echo 'Not enabling shell tracing (command contains an embedded newline)'
3782 if test -n "$at_trace_this"; then
3787 export TEST_TAR_FORMAT
3788 TAR_OPTIONS="-H gnu"
3793 tar cf archive file1
3794 tar rf archive file2
3795 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3797 grep '^ *+' "$at_stder1" >&2
3798 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3804 export TEST_TAR_FORMAT
3805 TAR_OPTIONS="-H gnu"
3810 tar cf archive file1
3811 tar rf archive file2
3812 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3817 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3818 echo >>"$at_stdout"; echo "file1
3820 " | $at_diff - "$at_stdout" || at_failed=:
3822 77) echo 77 > "$at_status_file"; exit 77;;
3824 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3830 echo 1 > "$at_status_file"
3840 $at_times_p && times >"$at_times_file"
3841 ) 5>&1 2>&1 | eval $at_tee_pipe
3842 at_status=`cat "$at_status_file"`
3845 10 ) # 10. append01.at:29: appending files with long names
3846 at_setup_line='append01.at:29'
3847 at_desc="appending files with long names"
3848 $at_quiet $ECHO_N " 10: appending files with long names $ECHO_C"
3850 test -f $XFAILFILE && at_xfail=yes
3851 echo "# -*- compilation -*-" >> "$at_group_log"
3853 echo "10. append01.at:29: testing ..."
3863 echo "$at_srcdir/append01.at:34:
3866 TEST_TAR_FORMAT=oldgnu
3867 export TEST_TAR_FORMAT
3868 TAR_OPTIONS=\"-H oldgnu\"
3872 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
3873 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
3874 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
3875 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
3878 echo append01.at:34 >"$at_check_line_file"
3881 if test -n "$at_traceon"; then
3882 echo 'Not enabling shell tracing (command contains an embedded newline)'
3885 if test -n "$at_trace_this"; then
3889 TEST_TAR_FORMAT=oldgnu
3890 export TEST_TAR_FORMAT
3891 TAR_OPTIONS="-H oldgnu"
3895 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
3896 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
3897 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
3898 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
3900 ) ) >"$at_stdout" 2>"$at_stder1"
3902 grep '^ *+' "$at_stder1" >&2
3903 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3908 TEST_TAR_FORMAT=oldgnu
3909 export TEST_TAR_FORMAT
3910 TAR_OPTIONS="-H oldgnu"
3914 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
3915 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
3916 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
3917 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
3919 ) ) >"$at_stdout" 2>"$at_stderr"
3924 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3925 echo >>"$at_stdout"; 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
3926 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
3927 " | $at_diff - "$at_stdout" || at_failed=:
3929 77) echo 77 > "$at_status_file"; exit 77;;
3931 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3937 echo 1 > "$at_status_file"
3944 echo "$at_srcdir/append01.at:34:
3947 TEST_TAR_FORMAT=ustar
3948 export TEST_TAR_FORMAT
3949 TAR_OPTIONS=\"-H ustar\"
3953 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
3954 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
3955 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
3956 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
3959 echo append01.at:34 >"$at_check_line_file"
3962 if test -n "$at_traceon"; then
3963 echo 'Not enabling shell tracing (command contains an embedded newline)'
3966 if test -n "$at_trace_this"; then
3970 TEST_TAR_FORMAT=ustar
3971 export TEST_TAR_FORMAT
3972 TAR_OPTIONS="-H ustar"
3976 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
3977 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
3978 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
3979 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
3981 ) ) >"$at_stdout" 2>"$at_stder1"
3983 grep '^ *+' "$at_stder1" >&2
3984 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3989 TEST_TAR_FORMAT=ustar
3990 export TEST_TAR_FORMAT
3991 TAR_OPTIONS="-H ustar"
3995 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
3996 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
3997 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
3998 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
4000 ) ) >"$at_stdout" 2>"$at_stderr"
4005 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4006 echo >>"$at_stdout"; 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
4007 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
4008 " | $at_diff - "$at_stdout" || at_failed=:
4010 77) echo 77 > "$at_status_file"; exit 77;;
4012 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
4018 echo 1 > "$at_status_file"
4025 echo "$at_srcdir/append01.at:34:
4028 TEST_TAR_FORMAT=posix
4029 export TEST_TAR_FORMAT
4030 TAR_OPTIONS=\"-H posix\"
4034 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
4035 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
4036 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
4037 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
4040 echo append01.at:34 >"$at_check_line_file"
4043 if test -n "$at_traceon"; then
4044 echo 'Not enabling shell tracing (command contains an embedded newline)'
4047 if test -n "$at_trace_this"; then
4051 TEST_TAR_FORMAT=posix
4052 export TEST_TAR_FORMAT
4053 TAR_OPTIONS="-H posix"
4057 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
4058 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
4059 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
4060 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
4062 ) ) >"$at_stdout" 2>"$at_stder1"
4064 grep '^ *+' "$at_stder1" >&2
4065 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4070 TEST_TAR_FORMAT=posix
4071 export TEST_TAR_FORMAT
4072 TAR_OPTIONS="-H posix"
4076 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
4077 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
4078 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
4079 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
4081 ) ) >"$at_stdout" 2>"$at_stderr"
4086 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4087 echo >>"$at_stdout"; 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
4088 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
4089 " | $at_diff - "$at_stdout" || at_failed=:
4091 77) echo 77 > "$at_status_file"; exit 77;;
4093 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
4099 echo 1 > "$at_status_file"
4106 echo "$at_srcdir/append01.at:34:
4110 export TEST_TAR_FORMAT
4111 TAR_OPTIONS=\"-H gnu\"
4115 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
4116 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
4117 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
4118 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
4121 echo append01.at:34 >"$at_check_line_file"
4124 if test -n "$at_traceon"; then
4125 echo 'Not enabling shell tracing (command contains an embedded newline)'
4128 if test -n "$at_trace_this"; then
4133 export TEST_TAR_FORMAT
4134 TAR_OPTIONS="-H gnu"
4138 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
4139 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
4140 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
4141 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
4143 ) ) >"$at_stdout" 2>"$at_stder1"
4145 grep '^ *+' "$at_stder1" >&2
4146 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4152 export TEST_TAR_FORMAT
4153 TAR_OPTIONS="-H gnu"
4157 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
4158 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
4159 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
4160 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
4162 ) ) >"$at_stdout" 2>"$at_stderr"
4167 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4168 echo >>"$at_stdout"; 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
4169 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
4170 " | $at_diff - "$at_stdout" || at_failed=:
4172 77) echo 77 > "$at_status_file"; exit 77;;
4174 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
4180 echo 1 > "$at_status_file"
4190 $at_times_p && times >"$at_times_file"
4191 ) 5>&1 2>&1 | eval $at_tee_pipe
4192 at_status=`cat "$at_status_file"`
4195 11 ) # 11. append02.at:40: append vs. create
4196 at_setup_line='append02.at:40'
4197 at_desc="append vs. create"
4198 $at_quiet $ECHO_N " 11: append vs. create $ECHO_C"
4200 test -f $XFAILFILE && at_xfail=yes
4201 echo "# -*- compilation -*-" >> "$at_group_log"
4203 echo "11. append02.at:40: testing ..."
4211 echo "$at_srcdir/append02.at:43:
4215 export TEST_TAR_FORMAT
4216 TAR_OPTIONS=\"-H v7\"
4220 genfile --file file1
4221 genfile --file file2
4223 # Make sure file timestamps in the archive will not differ
4224 MTIME=\"--mtime=@0\"
4226 # For PAX archives, we need to make sure extended header names are
4227 # reproducible and that their contents won't change with time
4228 if test \$TEST_TAR_FORMAT = posix; then
4229 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4232 echo Creating archive.1
4233 tar \$MTIME -cf archive.1 file1 file2
4235 echo Creating archive.2
4236 tar \$MTIME -cf archive.2 -T /dev/null
4237 tar \$MTIME -rf archive.2 file1
4238 tar \$MTIME -rf archive.2 file2
4240 echo Comparing archives
4241 cmp archive.1 archive.2
4243 echo append02.at:43 >"$at_check_line_file"
4246 if test -n "$at_traceon"; then
4247 echo 'Not enabling shell tracing (command contains an embedded newline)'
4250 if test -n "$at_trace_this"; then
4255 export TEST_TAR_FORMAT
4260 genfile --file file1
4261 genfile --file file2
4263 # Make sure file timestamps in the archive will not differ
4266 # For PAX archives, we need to make sure extended header names are
4267 # reproducible and that their contents won't change with time
4268 if test $TEST_TAR_FORMAT = posix; then
4269 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4272 echo Creating archive.1
4273 tar $MTIME -cf archive.1 file1 file2
4275 echo Creating archive.2
4276 tar $MTIME -cf archive.2 -T /dev/null
4277 tar $MTIME -rf archive.2 file1
4278 tar $MTIME -rf archive.2 file2
4280 echo Comparing archives
4281 cmp archive.1 archive.2
4282 ) ) >"$at_stdout" 2>"$at_stder1"
4284 grep '^ *+' "$at_stder1" >&2
4285 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4291 export TEST_TAR_FORMAT
4296 genfile --file file1
4297 genfile --file file2
4299 # Make sure file timestamps in the archive will not differ
4302 # For PAX archives, we need to make sure extended header names are
4303 # reproducible and that their contents won't change with time
4304 if test $TEST_TAR_FORMAT = posix; then
4305 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4308 echo Creating archive.1
4309 tar $MTIME -cf archive.1 file1 file2
4311 echo Creating archive.2
4312 tar $MTIME -cf archive.2 -T /dev/null
4313 tar $MTIME -rf archive.2 file1
4314 tar $MTIME -rf archive.2 file2
4316 echo Comparing archives
4317 cmp archive.1 archive.2
4318 ) ) >"$at_stdout" 2>"$at_stderr"
4323 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4324 echo >>"$at_stdout"; echo "Creating archive.1
4327 " | $at_diff - "$at_stdout" || at_failed=:
4329 77) echo 77 > "$at_status_file"; exit 77;;
4331 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4337 echo 1 > "$at_status_file"
4344 echo "$at_srcdir/append02.at:43:
4347 TEST_TAR_FORMAT=oldgnu
4348 export TEST_TAR_FORMAT
4349 TAR_OPTIONS=\"-H oldgnu\"
4353 genfile --file file1
4354 genfile --file file2
4356 # Make sure file timestamps in the archive will not differ
4357 MTIME=\"--mtime=@0\"
4359 # For PAX archives, we need to make sure extended header names are
4360 # reproducible and that their contents won't change with time
4361 if test \$TEST_TAR_FORMAT = posix; then
4362 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4365 echo Creating archive.1
4366 tar \$MTIME -cf archive.1 file1 file2
4368 echo Creating archive.2
4369 tar \$MTIME -cf archive.2 -T /dev/null
4370 tar \$MTIME -rf archive.2 file1
4371 tar \$MTIME -rf archive.2 file2
4373 echo Comparing archives
4374 cmp archive.1 archive.2
4376 echo append02.at:43 >"$at_check_line_file"
4379 if test -n "$at_traceon"; then
4380 echo 'Not enabling shell tracing (command contains an embedded newline)'
4383 if test -n "$at_trace_this"; then
4387 TEST_TAR_FORMAT=oldgnu
4388 export TEST_TAR_FORMAT
4389 TAR_OPTIONS="-H oldgnu"
4393 genfile --file file1
4394 genfile --file file2
4396 # Make sure file timestamps in the archive will not differ
4399 # For PAX archives, we need to make sure extended header names are
4400 # reproducible and that their contents won't change with time
4401 if test $TEST_TAR_FORMAT = posix; then
4402 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4405 echo Creating archive.1
4406 tar $MTIME -cf archive.1 file1 file2
4408 echo Creating archive.2
4409 tar $MTIME -cf archive.2 -T /dev/null
4410 tar $MTIME -rf archive.2 file1
4411 tar $MTIME -rf archive.2 file2
4413 echo Comparing archives
4414 cmp archive.1 archive.2
4415 ) ) >"$at_stdout" 2>"$at_stder1"
4417 grep '^ *+' "$at_stder1" >&2
4418 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4423 TEST_TAR_FORMAT=oldgnu
4424 export TEST_TAR_FORMAT
4425 TAR_OPTIONS="-H oldgnu"
4429 genfile --file file1
4430 genfile --file file2
4432 # Make sure file timestamps in the archive will not differ
4435 # For PAX archives, we need to make sure extended header names are
4436 # reproducible and that their contents won't change with time
4437 if test $TEST_TAR_FORMAT = posix; then
4438 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4441 echo Creating archive.1
4442 tar $MTIME -cf archive.1 file1 file2
4444 echo Creating archive.2
4445 tar $MTIME -cf archive.2 -T /dev/null
4446 tar $MTIME -rf archive.2 file1
4447 tar $MTIME -rf archive.2 file2
4449 echo Comparing archives
4450 cmp archive.1 archive.2
4451 ) ) >"$at_stdout" 2>"$at_stderr"
4456 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4457 echo >>"$at_stdout"; echo "Creating archive.1
4460 " | $at_diff - "$at_stdout" || at_failed=:
4462 77) echo 77 > "$at_status_file"; exit 77;;
4464 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4470 echo 1 > "$at_status_file"
4477 echo "$at_srcdir/append02.at:43:
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:43 >"$at_check_line_file"
4512 if test -n "$at_traceon"; then
4513 echo 'Not enabling shell tracing (command contains an embedded newline)'
4516 if test -n "$at_trace_this"; then
4520 TEST_TAR_FORMAT=ustar
4521 export TEST_TAR_FORMAT
4522 TAR_OPTIONS="-H ustar"
4526 genfile --file file1
4527 genfile --file file2
4529 # Make sure file timestamps in the archive will not differ
4532 # For PAX archives, we need to make sure extended header names are
4533 # reproducible and that their contents won't change with time
4534 if test $TEST_TAR_FORMAT = posix; then
4535 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4538 echo Creating archive.1
4539 tar $MTIME -cf archive.1 file1 file2
4541 echo Creating archive.2
4542 tar $MTIME -cf archive.2 -T /dev/null
4543 tar $MTIME -rf archive.2 file1
4544 tar $MTIME -rf archive.2 file2
4546 echo Comparing archives
4547 cmp archive.1 archive.2
4548 ) ) >"$at_stdout" 2>"$at_stder1"
4550 grep '^ *+' "$at_stder1" >&2
4551 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4556 TEST_TAR_FORMAT=ustar
4557 export TEST_TAR_FORMAT
4558 TAR_OPTIONS="-H ustar"
4562 genfile --file file1
4563 genfile --file file2
4565 # Make sure file timestamps in the archive will not differ
4568 # For PAX archives, we need to make sure extended header names are
4569 # reproducible and that their contents won't change with time
4570 if test $TEST_TAR_FORMAT = posix; then
4571 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4574 echo Creating archive.1
4575 tar $MTIME -cf archive.1 file1 file2
4577 echo Creating archive.2
4578 tar $MTIME -cf archive.2 -T /dev/null
4579 tar $MTIME -rf archive.2 file1
4580 tar $MTIME -rf archive.2 file2
4582 echo Comparing archives
4583 cmp archive.1 archive.2
4584 ) ) >"$at_stdout" 2>"$at_stderr"
4589 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4590 echo >>"$at_stdout"; echo "Creating archive.1
4593 " | $at_diff - "$at_stdout" || at_failed=:
4595 77) echo 77 > "$at_status_file"; exit 77;;
4597 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4603 echo 1 > "$at_status_file"
4610 echo "$at_srcdir/append02.at:43:
4613 TEST_TAR_FORMAT=posix
4614 export TEST_TAR_FORMAT
4615 TAR_OPTIONS=\"-H posix\"
4619 genfile --file file1
4620 genfile --file file2
4622 # Make sure file timestamps in the archive will not differ
4623 MTIME=\"--mtime=@0\"
4625 # For PAX archives, we need to make sure extended header names are
4626 # reproducible and that their contents won't change with time
4627 if test \$TEST_TAR_FORMAT = posix; then
4628 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4631 echo Creating archive.1
4632 tar \$MTIME -cf archive.1 file1 file2
4634 echo Creating archive.2
4635 tar \$MTIME -cf archive.2 -T /dev/null
4636 tar \$MTIME -rf archive.2 file1
4637 tar \$MTIME -rf archive.2 file2
4639 echo Comparing archives
4640 cmp archive.1 archive.2
4642 echo append02.at:43 >"$at_check_line_file"
4645 if test -n "$at_traceon"; then
4646 echo 'Not enabling shell tracing (command contains an embedded newline)'
4649 if test -n "$at_trace_this"; then
4653 TEST_TAR_FORMAT=posix
4654 export TEST_TAR_FORMAT
4655 TAR_OPTIONS="-H posix"
4659 genfile --file file1
4660 genfile --file file2
4662 # Make sure file timestamps in the archive will not differ
4665 # For PAX archives, we need to make sure extended header names are
4666 # reproducible and that their contents won't change with time
4667 if test $TEST_TAR_FORMAT = posix; then
4668 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4671 echo Creating archive.1
4672 tar $MTIME -cf archive.1 file1 file2
4674 echo Creating archive.2
4675 tar $MTIME -cf archive.2 -T /dev/null
4676 tar $MTIME -rf archive.2 file1
4677 tar $MTIME -rf archive.2 file2
4679 echo Comparing archives
4680 cmp archive.1 archive.2
4681 ) ) >"$at_stdout" 2>"$at_stder1"
4683 grep '^ *+' "$at_stder1" >&2
4684 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4689 TEST_TAR_FORMAT=posix
4690 export TEST_TAR_FORMAT
4691 TAR_OPTIONS="-H posix"
4695 genfile --file file1
4696 genfile --file file2
4698 # Make sure file timestamps in the archive will not differ
4701 # For PAX archives, we need to make sure extended header names are
4702 # reproducible and that their contents won't change with time
4703 if test $TEST_TAR_FORMAT = posix; then
4704 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4707 echo Creating archive.1
4708 tar $MTIME -cf archive.1 file1 file2
4710 echo Creating archive.2
4711 tar $MTIME -cf archive.2 -T /dev/null
4712 tar $MTIME -rf archive.2 file1
4713 tar $MTIME -rf archive.2 file2
4715 echo Comparing archives
4716 cmp archive.1 archive.2
4717 ) ) >"$at_stdout" 2>"$at_stderr"
4722 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4723 echo >>"$at_stdout"; echo "Creating archive.1
4726 " | $at_diff - "$at_stdout" || at_failed=:
4728 77) echo 77 > "$at_status_file"; exit 77;;
4730 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4736 echo 1 > "$at_status_file"
4743 echo "$at_srcdir/append02.at:43:
4747 export TEST_TAR_FORMAT
4748 TAR_OPTIONS=\"-H gnu\"
4752 genfile --file file1
4753 genfile --file file2
4755 # Make sure file timestamps in the archive will not differ
4756 MTIME=\"--mtime=@0\"
4758 # For PAX archives, we need to make sure extended header names are
4759 # reproducible and that their contents won't change with time
4760 if test \$TEST_TAR_FORMAT = posix; then
4761 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4764 echo Creating archive.1
4765 tar \$MTIME -cf archive.1 file1 file2
4767 echo Creating archive.2
4768 tar \$MTIME -cf archive.2 -T /dev/null
4769 tar \$MTIME -rf archive.2 file1
4770 tar \$MTIME -rf archive.2 file2
4772 echo Comparing archives
4773 cmp archive.1 archive.2
4775 echo append02.at:43 >"$at_check_line_file"
4778 if test -n "$at_traceon"; then
4779 echo 'Not enabling shell tracing (command contains an embedded newline)'
4782 if test -n "$at_trace_this"; then
4787 export TEST_TAR_FORMAT
4788 TAR_OPTIONS="-H gnu"
4792 genfile --file file1
4793 genfile --file file2
4795 # Make sure file timestamps in the archive will not differ
4798 # For PAX archives, we need to make sure extended header names are
4799 # reproducible and that their contents won't change with time
4800 if test $TEST_TAR_FORMAT = posix; then
4801 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4804 echo Creating archive.1
4805 tar $MTIME -cf archive.1 file1 file2
4807 echo Creating archive.2
4808 tar $MTIME -cf archive.2 -T /dev/null
4809 tar $MTIME -rf archive.2 file1
4810 tar $MTIME -rf archive.2 file2
4812 echo Comparing archives
4813 cmp archive.1 archive.2
4814 ) ) >"$at_stdout" 2>"$at_stder1"
4816 grep '^ *+' "$at_stder1" >&2
4817 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4823 export TEST_TAR_FORMAT
4824 TAR_OPTIONS="-H gnu"
4828 genfile --file file1
4829 genfile --file file2
4831 # Make sure file timestamps in the archive will not differ
4834 # For PAX archives, we need to make sure extended header names are
4835 # reproducible and that their contents won't change with time
4836 if test $TEST_TAR_FORMAT = posix; then
4837 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4840 echo Creating archive.1
4841 tar $MTIME -cf archive.1 file1 file2
4843 echo Creating archive.2
4844 tar $MTIME -cf archive.2 -T /dev/null
4845 tar $MTIME -rf archive.2 file1
4846 tar $MTIME -rf archive.2 file2
4848 echo Comparing archives
4849 cmp archive.1 archive.2
4850 ) ) >"$at_stdout" 2>"$at_stderr"
4855 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4856 echo >>"$at_stdout"; echo "Creating archive.1
4859 " | $at_diff - "$at_stdout" || at_failed=:
4861 77) echo 77 > "$at_status_file"; exit 77;;
4863 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4869 echo 1 > "$at_status_file"
4879 $at_times_p && times >"$at_times_file"
4880 ) 5>&1 2>&1 | eval $at_tee_pipe
4881 at_status=`cat "$at_status_file"`
4884 12 ) # 12. exclude.at:23: exclude
4885 at_setup_line='exclude.at:23'
4887 $at_quiet $ECHO_N " 12: exclude $ECHO_C"
4889 test -f $XFAILFILE && at_xfail=yes
4890 echo "# -*- compilation -*-" >> "$at_group_log"
4892 echo "12. exclude.at:23: testing ..."
4900 echo "$at_srcdir/exclude.at:26:
4903 TEST_TAR_FORMAT=ustar
4904 export TEST_TAR_FORMAT
4905 TAR_OPTIONS=\"-H ustar\"
4910 test -z "`sort < /dev/null 2>&1`" || exit 77
4914 echo blues > dir/blues
4915 echo jazz > dir/jazz
4917 echo tagfile > dir/folk/tagfile
4918 echo sanjuan > dir/folk/sanjuan
4920 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
4921 echo \"test\" > dir/rock/file
4923 for option in exclude-caches exclude-caches-under exclude-caches-all
4925 echo OPTION \$option
4926 tar -cf archive.tar --\$option -v dir 2>err | sort
4929 tar tf archive.tar | sort
4932 for option in exclude-tag exclude-tag-under exclude-tag-all
4934 echo OPTION \$option
4935 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
4938 tar tf archive.tar | sort
4941 echo exclude.at:26 >"$at_check_line_file"
4944 if test -n "$at_traceon"; then
4945 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
4948 if test -n "$at_trace_this"; then
4952 TEST_TAR_FORMAT=ustar
4953 export TEST_TAR_FORMAT
4954 TAR_OPTIONS="-H ustar"
4959 test -z "`sort < /dev/null 2>&1`" || exit 77
4963 echo blues > dir/blues
4964 echo jazz > dir/jazz
4966 echo tagfile > dir/folk/tagfile
4967 echo sanjuan > dir/folk/sanjuan
4969 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
4970 echo "test" > dir/rock/file
4972 for option in exclude-caches exclude-caches-under exclude-caches-all
4975 tar -cf archive.tar --$option -v dir 2>err | sort
4978 tar tf archive.tar | sort
4981 for option in exclude-tag exclude-tag-under exclude-tag-all
4984 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
4987 tar tf archive.tar | sort
4989 ) ) >"$at_stdout" 2>"$at_stder1"
4991 grep '^ *+' "$at_stder1" >&2
4992 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4997 TEST_TAR_FORMAT=ustar
4998 export TEST_TAR_FORMAT
4999 TAR_OPTIONS="-H ustar"
5004 test -z "`sort < /dev/null 2>&1`" || exit 77
5008 echo blues > dir/blues
5009 echo jazz > dir/jazz
5011 echo tagfile > dir/folk/tagfile
5012 echo sanjuan > dir/folk/sanjuan
5014 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
5015 echo "test" > dir/rock/file
5017 for option in exclude-caches exclude-caches-under exclude-caches-all
5020 tar -cf archive.tar --$option -v dir 2>err | sort
5023 tar tf archive.tar | sort
5026 for option in exclude-tag exclude-tag-under exclude-tag-all
5029 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
5032 tar tf archive.tar | sort
5034 ) ) >"$at_stdout" 2>"$at_stderr"
5039 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5040 echo >>"$at_stdout"; echo "OPTION exclude-caches
5048 dir/rock/CACHEDIR.TAG
5049 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5058 dir/rock/CACHEDIR.TAG
5059 OPTION exclude-caches-under
5067 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5076 OPTION exclude-caches-all
5083 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
5098 dir/rock/CACHEDIR.TAG
5100 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5108 dir/rock/CACHEDIR.TAG
5110 OPTION exclude-tag-under
5116 dir/rock/CACHEDIR.TAG
5118 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5125 dir/rock/CACHEDIR.TAG
5127 OPTION exclude-tag-all
5132 dir/rock/CACHEDIR.TAG
5134 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
5140 dir/rock/CACHEDIR.TAG
5142 " | $at_diff - "$at_stdout" || at_failed=:
5144 77) echo 77 > "$at_status_file"; exit 77;;
5146 *) echo "$at_srcdir/exclude.at:26: exit code was $at_status, expected 0"
5152 echo 1 > "$at_status_file"
5162 $at_times_p && times >"$at_times_file"
5163 ) 5>&1 2>&1 | eval $at_tee_pipe
5164 at_status=`cat "$at_status_file"`
5167 13 ) # 13. delete01.at:23: deleting a member after a big one
5168 at_setup_line='delete01.at:23'
5169 at_desc="deleting a member after a big one"
5170 $at_quiet $ECHO_N " 13: deleting a member after a big one $ECHO_C"
5172 test -f $XFAILFILE && at_xfail=yes
5173 echo "# -*- compilation -*-" >> "$at_group_log"
5175 echo "13. delete01.at:23: testing ..."
5183 echo "$at_srcdir/delete01.at:26:
5187 export TEST_TAR_FORMAT
5188 TAR_OPTIONS=\"-H v7\"
5192 genfile -l 50000 --file file1
5193 genfile -l 1024 --file file2
5194 tar cf archive file1 file2
5195 tar f archive --delete file2
5197 echo delete01.at:26 >"$at_check_line_file"
5200 if test -n "$at_traceon"; then
5201 echo 'Not enabling shell tracing (command contains an embedded newline)'
5204 if test -n "$at_trace_this"; then
5209 export TEST_TAR_FORMAT
5214 genfile -l 50000 --file file1
5215 genfile -l 1024 --file file2
5216 tar cf archive file1 file2
5217 tar f archive --delete file2
5218 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5220 grep '^ *+' "$at_stder1" >&2
5221 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5227 export TEST_TAR_FORMAT
5232 genfile -l 50000 --file file1
5233 genfile -l 1024 --file file2
5234 tar cf archive file1 file2
5235 tar f archive --delete file2
5236 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5241 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5242 echo >>"$at_stdout"; echo "file1
5243 " | $at_diff - "$at_stdout" || at_failed=:
5245 77) echo 77 > "$at_status_file"; exit 77;;
5247 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5253 echo 1 > "$at_status_file"
5260 echo "$at_srcdir/delete01.at:26:
5263 TEST_TAR_FORMAT=oldgnu
5264 export TEST_TAR_FORMAT
5265 TAR_OPTIONS=\"-H oldgnu\"
5269 genfile -l 50000 --file file1
5270 genfile -l 1024 --file file2
5271 tar cf archive file1 file2
5272 tar f archive --delete file2
5274 echo delete01.at:26 >"$at_check_line_file"
5277 if test -n "$at_traceon"; then
5278 echo 'Not enabling shell tracing (command contains an embedded newline)'
5281 if test -n "$at_trace_this"; then
5285 TEST_TAR_FORMAT=oldgnu
5286 export TEST_TAR_FORMAT
5287 TAR_OPTIONS="-H oldgnu"
5291 genfile -l 50000 --file file1
5292 genfile -l 1024 --file file2
5293 tar cf archive file1 file2
5294 tar f archive --delete file2
5295 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5297 grep '^ *+' "$at_stder1" >&2
5298 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5303 TEST_TAR_FORMAT=oldgnu
5304 export TEST_TAR_FORMAT
5305 TAR_OPTIONS="-H oldgnu"
5309 genfile -l 50000 --file file1
5310 genfile -l 1024 --file file2
5311 tar cf archive file1 file2
5312 tar f archive --delete file2
5313 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5318 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5319 echo >>"$at_stdout"; echo "file1
5320 " | $at_diff - "$at_stdout" || at_failed=:
5322 77) echo 77 > "$at_status_file"; exit 77;;
5324 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5330 echo 1 > "$at_status_file"
5337 echo "$at_srcdir/delete01.at:26:
5340 TEST_TAR_FORMAT=ustar
5341 export TEST_TAR_FORMAT
5342 TAR_OPTIONS=\"-H ustar\"
5346 genfile -l 50000 --file file1
5347 genfile -l 1024 --file file2
5348 tar cf archive file1 file2
5349 tar f archive --delete file2
5351 echo delete01.at:26 >"$at_check_line_file"
5354 if test -n "$at_traceon"; then
5355 echo 'Not enabling shell tracing (command contains an embedded newline)'
5358 if test -n "$at_trace_this"; then
5362 TEST_TAR_FORMAT=ustar
5363 export TEST_TAR_FORMAT
5364 TAR_OPTIONS="-H ustar"
5368 genfile -l 50000 --file file1
5369 genfile -l 1024 --file file2
5370 tar cf archive file1 file2
5371 tar f archive --delete file2
5372 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5374 grep '^ *+' "$at_stder1" >&2
5375 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5380 TEST_TAR_FORMAT=ustar
5381 export TEST_TAR_FORMAT
5382 TAR_OPTIONS="-H ustar"
5386 genfile -l 50000 --file file1
5387 genfile -l 1024 --file file2
5388 tar cf archive file1 file2
5389 tar f archive --delete file2
5390 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5395 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5396 echo >>"$at_stdout"; echo "file1
5397 " | $at_diff - "$at_stdout" || at_failed=:
5399 77) echo 77 > "$at_status_file"; exit 77;;
5401 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5407 echo 1 > "$at_status_file"
5414 echo "$at_srcdir/delete01.at:26:
5417 TEST_TAR_FORMAT=posix
5418 export TEST_TAR_FORMAT
5419 TAR_OPTIONS=\"-H posix\"
5423 genfile -l 50000 --file file1
5424 genfile -l 1024 --file file2
5425 tar cf archive file1 file2
5426 tar f archive --delete file2
5428 echo delete01.at:26 >"$at_check_line_file"
5431 if test -n "$at_traceon"; then
5432 echo 'Not enabling shell tracing (command contains an embedded newline)'
5435 if test -n "$at_trace_this"; then
5439 TEST_TAR_FORMAT=posix
5440 export TEST_TAR_FORMAT
5441 TAR_OPTIONS="-H posix"
5445 genfile -l 50000 --file file1
5446 genfile -l 1024 --file file2
5447 tar cf archive file1 file2
5448 tar f archive --delete file2
5449 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5451 grep '^ *+' "$at_stder1" >&2
5452 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5457 TEST_TAR_FORMAT=posix
5458 export TEST_TAR_FORMAT
5459 TAR_OPTIONS="-H posix"
5463 genfile -l 50000 --file file1
5464 genfile -l 1024 --file file2
5465 tar cf archive file1 file2
5466 tar f archive --delete file2
5467 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5472 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5473 echo >>"$at_stdout"; echo "file1
5474 " | $at_diff - "$at_stdout" || at_failed=:
5476 77) echo 77 > "$at_status_file"; exit 77;;
5478 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5484 echo 1 > "$at_status_file"
5491 echo "$at_srcdir/delete01.at:26:
5495 export TEST_TAR_FORMAT
5496 TAR_OPTIONS=\"-H gnu\"
5500 genfile -l 50000 --file file1
5501 genfile -l 1024 --file file2
5502 tar cf archive file1 file2
5503 tar f archive --delete file2
5505 echo delete01.at:26 >"$at_check_line_file"
5508 if test -n "$at_traceon"; then
5509 echo 'Not enabling shell tracing (command contains an embedded newline)'
5512 if test -n "$at_trace_this"; then
5517 export TEST_TAR_FORMAT
5518 TAR_OPTIONS="-H gnu"
5522 genfile -l 50000 --file file1
5523 genfile -l 1024 --file file2
5524 tar cf archive file1 file2
5525 tar f archive --delete file2
5526 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5528 grep '^ *+' "$at_stder1" >&2
5529 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5535 export TEST_TAR_FORMAT
5536 TAR_OPTIONS="-H gnu"
5540 genfile -l 50000 --file file1
5541 genfile -l 1024 --file file2
5542 tar cf archive file1 file2
5543 tar f archive --delete file2
5544 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5549 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5550 echo >>"$at_stdout"; echo "file1
5551 " | $at_diff - "$at_stdout" || at_failed=:
5553 77) echo 77 > "$at_status_file"; exit 77;;
5555 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5561 echo 1 > "$at_status_file"
5571 $at_times_p && times >"$at_times_file"
5572 ) 5>&1 2>&1 | eval $at_tee_pipe
5573 at_status=`cat "$at_status_file"`
5576 14 ) # 14. delete02.at:23: deleting a member from stdin archive
5577 at_setup_line='delete02.at:23'
5578 at_desc="deleting a member from stdin archive"
5579 $at_quiet $ECHO_N " 14: deleting a member from stdin archive $ECHO_C"
5581 test -f $XFAILFILE && at_xfail=yes
5582 echo "# -*- compilation -*-" >> "$at_group_log"
5584 echo "14. delete02.at:23: testing ..."
5592 echo "$at_srcdir/delete02.at:26:
5596 export TEST_TAR_FORMAT
5597 TAR_OPTIONS=\"-H v7\"
5601 genfile -l 3073 -p zeros --file 1
5604 tar cf archive 1 2 3
5606 cat archive | tar f - --delete 2 > archive2
5609 echo delete02.at:26 >"$at_check_line_file"
5612 if test -n "$at_traceon"; then
5613 echo 'Not enabling shell tracing (command contains an embedded newline)'
5616 if test -n "$at_trace_this"; then
5621 export TEST_TAR_FORMAT
5626 genfile -l 3073 -p zeros --file 1
5629 tar cf archive 1 2 3
5631 cat archive | tar f - --delete 2 > archive2
5633 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5635 grep '^ *+' "$at_stder1" >&2
5636 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5642 export TEST_TAR_FORMAT
5647 genfile -l 3073 -p zeros --file 1
5650 tar cf archive 1 2 3
5652 cat archive | tar f - --delete 2 > archive2
5654 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5659 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5660 echo >>"$at_stdout"; echo "1
5666 " | $at_diff - "$at_stdout" || at_failed=:
5668 77) echo 77 > "$at_status_file"; exit 77;;
5670 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5676 echo 1 > "$at_status_file"
5683 echo "$at_srcdir/delete02.at:26:
5686 TEST_TAR_FORMAT=oldgnu
5687 export TEST_TAR_FORMAT
5688 TAR_OPTIONS=\"-H oldgnu\"
5692 genfile -l 3073 -p zeros --file 1
5695 tar cf archive 1 2 3
5697 cat archive | tar f - --delete 2 > archive2
5700 echo delete02.at:26 >"$at_check_line_file"
5703 if test -n "$at_traceon"; then
5704 echo 'Not enabling shell tracing (command contains an embedded newline)'
5707 if test -n "$at_trace_this"; then
5711 TEST_TAR_FORMAT=oldgnu
5712 export TEST_TAR_FORMAT
5713 TAR_OPTIONS="-H oldgnu"
5717 genfile -l 3073 -p zeros --file 1
5720 tar cf archive 1 2 3
5722 cat archive | tar f - --delete 2 > archive2
5724 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5726 grep '^ *+' "$at_stder1" >&2
5727 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5732 TEST_TAR_FORMAT=oldgnu
5733 export TEST_TAR_FORMAT
5734 TAR_OPTIONS="-H oldgnu"
5738 genfile -l 3073 -p zeros --file 1
5741 tar cf archive 1 2 3
5743 cat archive | tar f - --delete 2 > archive2
5745 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5750 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5751 echo >>"$at_stdout"; echo "1
5757 " | $at_diff - "$at_stdout" || at_failed=:
5759 77) echo 77 > "$at_status_file"; exit 77;;
5761 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5767 echo 1 > "$at_status_file"
5774 echo "$at_srcdir/delete02.at:26:
5777 TEST_TAR_FORMAT=ustar
5778 export TEST_TAR_FORMAT
5779 TAR_OPTIONS=\"-H ustar\"
5783 genfile -l 3073 -p zeros --file 1
5786 tar cf archive 1 2 3
5788 cat archive | tar f - --delete 2 > archive2
5791 echo delete02.at:26 >"$at_check_line_file"
5794 if test -n "$at_traceon"; then
5795 echo 'Not enabling shell tracing (command contains an embedded newline)'
5798 if test -n "$at_trace_this"; then
5802 TEST_TAR_FORMAT=ustar
5803 export TEST_TAR_FORMAT
5804 TAR_OPTIONS="-H ustar"
5808 genfile -l 3073 -p zeros --file 1
5811 tar cf archive 1 2 3
5813 cat archive | tar f - --delete 2 > archive2
5815 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5817 grep '^ *+' "$at_stder1" >&2
5818 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5823 TEST_TAR_FORMAT=ustar
5824 export TEST_TAR_FORMAT
5825 TAR_OPTIONS="-H ustar"
5829 genfile -l 3073 -p zeros --file 1
5832 tar cf archive 1 2 3
5834 cat archive | tar f - --delete 2 > archive2
5836 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5841 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5842 echo >>"$at_stdout"; echo "1
5848 " | $at_diff - "$at_stdout" || at_failed=:
5850 77) echo 77 > "$at_status_file"; exit 77;;
5852 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5858 echo 1 > "$at_status_file"
5865 echo "$at_srcdir/delete02.at:26:
5868 TEST_TAR_FORMAT=posix
5869 export TEST_TAR_FORMAT
5870 TAR_OPTIONS=\"-H posix\"
5874 genfile -l 3073 -p zeros --file 1
5877 tar cf archive 1 2 3
5879 cat archive | tar f - --delete 2 > archive2
5882 echo delete02.at:26 >"$at_check_line_file"
5885 if test -n "$at_traceon"; then
5886 echo 'Not enabling shell tracing (command contains an embedded newline)'
5889 if test -n "$at_trace_this"; then
5893 TEST_TAR_FORMAT=posix
5894 export TEST_TAR_FORMAT
5895 TAR_OPTIONS="-H posix"
5899 genfile -l 3073 -p zeros --file 1
5902 tar cf archive 1 2 3
5904 cat archive | tar f - --delete 2 > archive2
5906 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5908 grep '^ *+' "$at_stder1" >&2
5909 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5914 TEST_TAR_FORMAT=posix
5915 export TEST_TAR_FORMAT
5916 TAR_OPTIONS="-H posix"
5920 genfile -l 3073 -p zeros --file 1
5923 tar cf archive 1 2 3
5925 cat archive | tar f - --delete 2 > archive2
5927 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5932 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5933 echo >>"$at_stdout"; echo "1
5939 " | $at_diff - "$at_stdout" || at_failed=:
5941 77) echo 77 > "$at_status_file"; exit 77;;
5943 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5949 echo 1 > "$at_status_file"
5956 echo "$at_srcdir/delete02.at:26:
5960 export TEST_TAR_FORMAT
5961 TAR_OPTIONS=\"-H gnu\"
5965 genfile -l 3073 -p zeros --file 1
5968 tar cf archive 1 2 3
5970 cat archive | tar f - --delete 2 > archive2
5973 echo delete02.at:26 >"$at_check_line_file"
5976 if test -n "$at_traceon"; then
5977 echo 'Not enabling shell tracing (command contains an embedded newline)'
5980 if test -n "$at_trace_this"; then
5985 export TEST_TAR_FORMAT
5986 TAR_OPTIONS="-H gnu"
5990 genfile -l 3073 -p zeros --file 1
5993 tar cf archive 1 2 3
5995 cat archive | tar f - --delete 2 > archive2
5997 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5999 grep '^ *+' "$at_stder1" >&2
6000 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6006 export TEST_TAR_FORMAT
6007 TAR_OPTIONS="-H gnu"
6011 genfile -l 3073 -p zeros --file 1
6014 tar cf archive 1 2 3
6016 cat archive | tar f - --delete 2 > archive2
6018 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
6023 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6024 echo >>"$at_stdout"; echo "1
6030 " | $at_diff - "$at_stdout" || at_failed=:
6032 77) echo 77 > "$at_status_file"; exit 77;;
6034 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
6040 echo 1 > "$at_status_file"
6050 $at_times_p && times >"$at_times_file"
6051 ) 5>&1 2>&1 | eval $at_tee_pipe
6052 at_status=`cat "$at_status_file"`
6055 15 ) # 15. delete03.at:21: deleting members with long names
6056 at_setup_line='delete03.at:21'
6057 at_desc="deleting members with long names"
6058 $at_quiet $ECHO_N " 15: deleting members with long names $ECHO_C"
6060 test -f $XFAILFILE && at_xfail=yes
6061 echo "# -*- compilation -*-" >> "$at_group_log"
6063 echo "15. delete03.at:21: testing ..."
6073 echo "$at_srcdir/delete03.at:26:
6077 export TEST_TAR_FORMAT
6078 TAR_OPTIONS=\"-H gnu\"
6083 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
6085 for i in 1 2 3 4 5 6 7 8 9
6086 do touch \$prefix\$i
6088 tar -cf archive ./\$prefix* &&
6089 tar --delete -f archive ./\${prefix}5 &&
6092 echo delete03.at:26 >"$at_check_line_file"
6095 if test -n "$at_traceon"; then
6096 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
6099 if test -n "$at_trace_this"; then
6104 export TEST_TAR_FORMAT
6105 TAR_OPTIONS="-H gnu"
6110 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
6112 for i in 1 2 3 4 5 6 7 8 9
6115 tar -cf archive ./$prefix* &&
6116 tar --delete -f archive ./${prefix}5 &&
6118 ) ) >"$at_stdout" 2>"$at_stder1"
6120 grep '^ *+' "$at_stder1" >&2
6121 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6127 export TEST_TAR_FORMAT
6128 TAR_OPTIONS="-H gnu"
6133 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
6135 for i in 1 2 3 4 5 6 7 8 9
6138 tar -cf archive ./$prefix* &&
6139 tar --delete -f archive ./${prefix}5 &&
6141 ) ) >"$at_stdout" 2>"$at_stderr"
6146 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6147 echo >>"$at_stdout"; 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
6148 ./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
6149 ./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
6150 ./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
6151 ./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
6152 ./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
6153 ./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
6154 ./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
6155 " | $at_diff - "$at_stdout" || at_failed=:
6157 77) echo 77 > "$at_status_file"; exit 77;;
6159 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6165 echo 1 > "$at_status_file"
6172 echo "$at_srcdir/delete03.at:26:
6175 TEST_TAR_FORMAT=oldgnu
6176 export TEST_TAR_FORMAT
6177 TAR_OPTIONS=\"-H oldgnu\"
6182 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
6184 for i in 1 2 3 4 5 6 7 8 9
6185 do touch \$prefix\$i
6187 tar -cf archive ./\$prefix* &&
6188 tar --delete -f archive ./\${prefix}5 &&
6191 echo delete03.at:26 >"$at_check_line_file"
6194 if test -n "$at_traceon"; then
6195 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
6198 if test -n "$at_trace_this"; then
6202 TEST_TAR_FORMAT=oldgnu
6203 export TEST_TAR_FORMAT
6204 TAR_OPTIONS="-H oldgnu"
6209 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
6211 for i in 1 2 3 4 5 6 7 8 9
6214 tar -cf archive ./$prefix* &&
6215 tar --delete -f archive ./${prefix}5 &&
6217 ) ) >"$at_stdout" 2>"$at_stder1"
6219 grep '^ *+' "$at_stder1" >&2
6220 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6225 TEST_TAR_FORMAT=oldgnu
6226 export TEST_TAR_FORMAT
6227 TAR_OPTIONS="-H oldgnu"
6232 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
6234 for i in 1 2 3 4 5 6 7 8 9
6237 tar -cf archive ./$prefix* &&
6238 tar --delete -f archive ./${prefix}5 &&
6240 ) ) >"$at_stdout" 2>"$at_stderr"
6245 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6246 echo >>"$at_stdout"; 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
6247 ./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
6248 ./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
6249 ./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
6250 ./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
6251 ./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
6252 ./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
6253 ./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
6254 " | $at_diff - "$at_stdout" || at_failed=:
6256 77) echo 77 > "$at_status_file"; exit 77;;
6258 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6264 echo 1 > "$at_status_file"
6271 echo "$at_srcdir/delete03.at:26:
6274 TEST_TAR_FORMAT=posix
6275 export TEST_TAR_FORMAT
6276 TAR_OPTIONS=\"-H posix\"
6281 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
6283 for i in 1 2 3 4 5 6 7 8 9
6284 do touch \$prefix\$i
6286 tar -cf archive ./\$prefix* &&
6287 tar --delete -f archive ./\${prefix}5 &&
6290 echo delete03.at:26 >"$at_check_line_file"
6293 if test -n "$at_traceon"; then
6294 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
6297 if test -n "$at_trace_this"; then
6301 TEST_TAR_FORMAT=posix
6302 export TEST_TAR_FORMAT
6303 TAR_OPTIONS="-H posix"
6308 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
6310 for i in 1 2 3 4 5 6 7 8 9
6313 tar -cf archive ./$prefix* &&
6314 tar --delete -f archive ./${prefix}5 &&
6316 ) ) >"$at_stdout" 2>"$at_stder1"
6318 grep '^ *+' "$at_stder1" >&2
6319 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6324 TEST_TAR_FORMAT=posix
6325 export TEST_TAR_FORMAT
6326 TAR_OPTIONS="-H posix"
6331 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
6333 for i in 1 2 3 4 5 6 7 8 9
6336 tar -cf archive ./$prefix* &&
6337 tar --delete -f archive ./${prefix}5 &&
6339 ) ) >"$at_stdout" 2>"$at_stderr"
6344 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6345 echo >>"$at_stdout"; 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
6346 ./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
6347 ./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
6348 ./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
6349 ./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
6350 ./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
6351 ./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
6352 ./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
6353 " | $at_diff - "$at_stdout" || at_failed=:
6355 77) echo 77 > "$at_status_file"; exit 77;;
6357 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6363 echo 1 > "$at_status_file"
6373 $at_times_p && times >"$at_times_file"
6374 ) 5>&1 2>&1 | eval $at_tee_pipe
6375 at_status=`cat "$at_status_file"`
6378 16 ) # 16. delete04.at:23: deleting a large last member
6379 at_setup_line='delete04.at:23'
6380 at_desc="deleting a large last member"
6381 $at_quiet $ECHO_N " 16: deleting a large last member $ECHO_C"
6383 test -f $XFAILFILE && at_xfail=yes
6384 echo "# -*- compilation -*-" >> "$at_group_log"
6386 echo "16. delete04.at:23: testing ..."
6394 echo "$at_srcdir/delete04.at:26:
6398 export TEST_TAR_FORMAT
6399 TAR_OPTIONS=\"-H v7\"
6403 genfile -l 3 -f file1
6404 genfile -l 5 -f file2
6405 genfile -l 3 -f file3
6406 genfile -l 6 -f file4
6407 genfile -l 24 -f file5
6408 genfile -l 13 -f file6
6409 genfile -l 1385 -f file7
6410 genfile -l 30 -f file8
6411 genfile -l 10 -f file9
6412 genfile -l 256000 -f file10
6413 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6414 tar f archive --delete file10
6417 echo delete04.at:26 >"$at_check_line_file"
6420 if test -n "$at_traceon"; then
6421 echo 'Not enabling shell tracing (command contains an embedded newline)'
6424 if test -n "$at_trace_this"; then
6429 export TEST_TAR_FORMAT
6434 genfile -l 3 -f file1
6435 genfile -l 5 -f file2
6436 genfile -l 3 -f file3
6437 genfile -l 6 -f file4
6438 genfile -l 24 -f file5
6439 genfile -l 13 -f file6
6440 genfile -l 1385 -f file7
6441 genfile -l 30 -f file8
6442 genfile -l 10 -f file9
6443 genfile -l 256000 -f file10
6444 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6445 tar f archive --delete file10
6447 ) ) >"$at_stdout" 2>"$at_stder1"
6449 grep '^ *+' "$at_stder1" >&2
6450 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6456 export TEST_TAR_FORMAT
6461 genfile -l 3 -f file1
6462 genfile -l 5 -f file2
6463 genfile -l 3 -f file3
6464 genfile -l 6 -f file4
6465 genfile -l 24 -f file5
6466 genfile -l 13 -f file6
6467 genfile -l 1385 -f file7
6468 genfile -l 30 -f file8
6469 genfile -l 10 -f file9
6470 genfile -l 256000 -f file10
6471 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6472 tar f archive --delete file10
6474 ) ) >"$at_stdout" 2>"$at_stderr"
6479 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6480 echo >>"$at_stdout"; echo "file1
6489 " | $at_diff - "$at_stdout" || at_failed=:
6491 77) echo 77 > "$at_status_file"; exit 77;;
6493 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6499 echo 1 > "$at_status_file"
6506 echo "$at_srcdir/delete04.at:26:
6509 TEST_TAR_FORMAT=oldgnu
6510 export TEST_TAR_FORMAT
6511 TAR_OPTIONS=\"-H oldgnu\"
6515 genfile -l 3 -f file1
6516 genfile -l 5 -f file2
6517 genfile -l 3 -f file3
6518 genfile -l 6 -f file4
6519 genfile -l 24 -f file5
6520 genfile -l 13 -f file6
6521 genfile -l 1385 -f file7
6522 genfile -l 30 -f file8
6523 genfile -l 10 -f file9
6524 genfile -l 256000 -f file10
6525 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6526 tar f archive --delete file10
6529 echo delete04.at:26 >"$at_check_line_file"
6532 if test -n "$at_traceon"; then
6533 echo 'Not enabling shell tracing (command contains an embedded newline)'
6536 if test -n "$at_trace_this"; then
6540 TEST_TAR_FORMAT=oldgnu
6541 export TEST_TAR_FORMAT
6542 TAR_OPTIONS="-H oldgnu"
6546 genfile -l 3 -f file1
6547 genfile -l 5 -f file2
6548 genfile -l 3 -f file3
6549 genfile -l 6 -f file4
6550 genfile -l 24 -f file5
6551 genfile -l 13 -f file6
6552 genfile -l 1385 -f file7
6553 genfile -l 30 -f file8
6554 genfile -l 10 -f file9
6555 genfile -l 256000 -f file10
6556 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6557 tar f archive --delete file10
6559 ) ) >"$at_stdout" 2>"$at_stder1"
6561 grep '^ *+' "$at_stder1" >&2
6562 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6567 TEST_TAR_FORMAT=oldgnu
6568 export TEST_TAR_FORMAT
6569 TAR_OPTIONS="-H oldgnu"
6573 genfile -l 3 -f file1
6574 genfile -l 5 -f file2
6575 genfile -l 3 -f file3
6576 genfile -l 6 -f file4
6577 genfile -l 24 -f file5
6578 genfile -l 13 -f file6
6579 genfile -l 1385 -f file7
6580 genfile -l 30 -f file8
6581 genfile -l 10 -f file9
6582 genfile -l 256000 -f file10
6583 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6584 tar f archive --delete file10
6586 ) ) >"$at_stdout" 2>"$at_stderr"
6591 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6592 echo >>"$at_stdout"; echo "file1
6601 " | $at_diff - "$at_stdout" || at_failed=:
6603 77) echo 77 > "$at_status_file"; exit 77;;
6605 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6611 echo 1 > "$at_status_file"
6618 echo "$at_srcdir/delete04.at:26:
6621 TEST_TAR_FORMAT=ustar
6622 export TEST_TAR_FORMAT
6623 TAR_OPTIONS=\"-H ustar\"
6627 genfile -l 3 -f file1
6628 genfile -l 5 -f file2
6629 genfile -l 3 -f file3
6630 genfile -l 6 -f file4
6631 genfile -l 24 -f file5
6632 genfile -l 13 -f file6
6633 genfile -l 1385 -f file7
6634 genfile -l 30 -f file8
6635 genfile -l 10 -f file9
6636 genfile -l 256000 -f file10
6637 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6638 tar f archive --delete file10
6641 echo delete04.at:26 >"$at_check_line_file"
6644 if test -n "$at_traceon"; then
6645 echo 'Not enabling shell tracing (command contains an embedded newline)'
6648 if test -n "$at_trace_this"; then
6652 TEST_TAR_FORMAT=ustar
6653 export TEST_TAR_FORMAT
6654 TAR_OPTIONS="-H ustar"
6658 genfile -l 3 -f file1
6659 genfile -l 5 -f file2
6660 genfile -l 3 -f file3
6661 genfile -l 6 -f file4
6662 genfile -l 24 -f file5
6663 genfile -l 13 -f file6
6664 genfile -l 1385 -f file7
6665 genfile -l 30 -f file8
6666 genfile -l 10 -f file9
6667 genfile -l 256000 -f file10
6668 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6669 tar f archive --delete file10
6671 ) ) >"$at_stdout" 2>"$at_stder1"
6673 grep '^ *+' "$at_stder1" >&2
6674 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6679 TEST_TAR_FORMAT=ustar
6680 export TEST_TAR_FORMAT
6681 TAR_OPTIONS="-H ustar"
6685 genfile -l 3 -f file1
6686 genfile -l 5 -f file2
6687 genfile -l 3 -f file3
6688 genfile -l 6 -f file4
6689 genfile -l 24 -f file5
6690 genfile -l 13 -f file6
6691 genfile -l 1385 -f file7
6692 genfile -l 30 -f file8
6693 genfile -l 10 -f file9
6694 genfile -l 256000 -f file10
6695 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6696 tar f archive --delete file10
6698 ) ) >"$at_stdout" 2>"$at_stderr"
6703 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6704 echo >>"$at_stdout"; echo "file1
6713 " | $at_diff - "$at_stdout" || at_failed=:
6715 77) echo 77 > "$at_status_file"; exit 77;;
6717 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6723 echo 1 > "$at_status_file"
6730 echo "$at_srcdir/delete04.at:26:
6733 TEST_TAR_FORMAT=posix
6734 export TEST_TAR_FORMAT
6735 TAR_OPTIONS=\"-H posix\"
6739 genfile -l 3 -f file1
6740 genfile -l 5 -f file2
6741 genfile -l 3 -f file3
6742 genfile -l 6 -f file4
6743 genfile -l 24 -f file5
6744 genfile -l 13 -f file6
6745 genfile -l 1385 -f file7
6746 genfile -l 30 -f file8
6747 genfile -l 10 -f file9
6748 genfile -l 256000 -f file10
6749 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6750 tar f archive --delete file10
6753 echo delete04.at:26 >"$at_check_line_file"
6756 if test -n "$at_traceon"; then
6757 echo 'Not enabling shell tracing (command contains an embedded newline)'
6760 if test -n "$at_trace_this"; then
6764 TEST_TAR_FORMAT=posix
6765 export TEST_TAR_FORMAT
6766 TAR_OPTIONS="-H posix"
6770 genfile -l 3 -f file1
6771 genfile -l 5 -f file2
6772 genfile -l 3 -f file3
6773 genfile -l 6 -f file4
6774 genfile -l 24 -f file5
6775 genfile -l 13 -f file6
6776 genfile -l 1385 -f file7
6777 genfile -l 30 -f file8
6778 genfile -l 10 -f file9
6779 genfile -l 256000 -f file10
6780 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6781 tar f archive --delete file10
6783 ) ) >"$at_stdout" 2>"$at_stder1"
6785 grep '^ *+' "$at_stder1" >&2
6786 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6791 TEST_TAR_FORMAT=posix
6792 export TEST_TAR_FORMAT
6793 TAR_OPTIONS="-H posix"
6797 genfile -l 3 -f file1
6798 genfile -l 5 -f file2
6799 genfile -l 3 -f file3
6800 genfile -l 6 -f file4
6801 genfile -l 24 -f file5
6802 genfile -l 13 -f file6
6803 genfile -l 1385 -f file7
6804 genfile -l 30 -f file8
6805 genfile -l 10 -f file9
6806 genfile -l 256000 -f file10
6807 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6808 tar f archive --delete file10
6810 ) ) >"$at_stdout" 2>"$at_stderr"
6815 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6816 echo >>"$at_stdout"; echo "file1
6825 " | $at_diff - "$at_stdout" || at_failed=:
6827 77) echo 77 > "$at_status_file"; exit 77;;
6829 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6835 echo 1 > "$at_status_file"
6842 echo "$at_srcdir/delete04.at:26:
6846 export TEST_TAR_FORMAT
6847 TAR_OPTIONS=\"-H gnu\"
6851 genfile -l 3 -f file1
6852 genfile -l 5 -f file2
6853 genfile -l 3 -f file3
6854 genfile -l 6 -f file4
6855 genfile -l 24 -f file5
6856 genfile -l 13 -f file6
6857 genfile -l 1385 -f file7
6858 genfile -l 30 -f file8
6859 genfile -l 10 -f file9
6860 genfile -l 256000 -f file10
6861 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6862 tar f archive --delete file10
6865 echo delete04.at:26 >"$at_check_line_file"
6868 if test -n "$at_traceon"; then
6869 echo 'Not enabling shell tracing (command contains an embedded newline)'
6872 if test -n "$at_trace_this"; then
6877 export TEST_TAR_FORMAT
6878 TAR_OPTIONS="-H gnu"
6882 genfile -l 3 -f file1
6883 genfile -l 5 -f file2
6884 genfile -l 3 -f file3
6885 genfile -l 6 -f file4
6886 genfile -l 24 -f file5
6887 genfile -l 13 -f file6
6888 genfile -l 1385 -f file7
6889 genfile -l 30 -f file8
6890 genfile -l 10 -f file9
6891 genfile -l 256000 -f file10
6892 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6893 tar f archive --delete file10
6895 ) ) >"$at_stdout" 2>"$at_stder1"
6897 grep '^ *+' "$at_stder1" >&2
6898 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6904 export TEST_TAR_FORMAT
6905 TAR_OPTIONS="-H gnu"
6909 genfile -l 3 -f file1
6910 genfile -l 5 -f file2
6911 genfile -l 3 -f file3
6912 genfile -l 6 -f file4
6913 genfile -l 24 -f file5
6914 genfile -l 13 -f file6
6915 genfile -l 1385 -f file7
6916 genfile -l 30 -f file8
6917 genfile -l 10 -f file9
6918 genfile -l 256000 -f file10
6919 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6920 tar f archive --delete file10
6922 ) ) >"$at_stdout" 2>"$at_stderr"
6927 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6928 echo >>"$at_stdout"; echo "file1
6937 " | $at_diff - "$at_stdout" || at_failed=:
6939 77) echo 77 > "$at_status_file"; exit 77;;
6941 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6947 echo 1 > "$at_status_file"
6957 $at_times_p && times >"$at_times_file"
6958 ) 5>&1 2>&1 | eval $at_tee_pipe
6959 at_status=`cat "$at_status_file"`
6962 17 ) # 17. delete05.at:27: deleting non-existing member
6963 at_setup_line='delete05.at:27'
6964 at_desc="deleting non-existing member"
6965 $at_quiet $ECHO_N " 17: deleting non-existing member $ECHO_C"
6967 test -f $XFAILFILE && at_xfail=yes
6968 echo "# -*- compilation -*-" >> "$at_group_log"
6970 echo "17. delete05.at:27: testing ..."
6978 echo "$at_srcdir/delete05.at:30:
6982 export TEST_TAR_FORMAT
6983 TAR_OPTIONS=\"-H v7\"
6987 genfile -l 1024 -f en
6988 genfile -l 1024 -f to
6990 tar cf archive en to
6991 # Make sure we don't use bogus blocking factor.
6992 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6993 tar --file archive --blocking-factor=20 --delete tre
6996 echo delete05.at:30 >"$at_check_line_file"
6999 if test -n "$at_traceon"; then
7000 echo 'Not enabling shell tracing (command contains an embedded newline)'
7003 if test -n "$at_trace_this"; then
7008 export TEST_TAR_FORMAT
7013 genfile -l 1024 -f en
7014 genfile -l 1024 -f to
7016 tar cf archive en to
7017 # Make sure we don't use bogus blocking factor.
7018 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7019 tar --file archive --blocking-factor=20 --delete tre
7021 ) ) >"$at_stdout" 2>"$at_stder1"
7023 grep '^ *+' "$at_stder1" >&2
7024 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7030 export TEST_TAR_FORMAT
7035 genfile -l 1024 -f en
7036 genfile -l 1024 -f to
7038 tar cf archive en to
7039 # Make sure we don't use bogus blocking factor.
7040 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7041 tar --file archive --blocking-factor=20 --delete tre
7043 ) ) >"$at_stdout" 2>"$at_stderr"
7048 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7049 tar: Exiting with failure status due to previous errors
7050 " | $at_diff - "$at_stderr" || at_failed=:
7051 echo >>"$at_stdout"; echo "en
7053 " | $at_diff - "$at_stdout" || at_failed=:
7055 77) echo 77 > "$at_status_file"; exit 77;;
7057 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7063 echo 1 > "$at_status_file"
7070 echo "$at_srcdir/delete05.at:30:
7073 TEST_TAR_FORMAT=oldgnu
7074 export TEST_TAR_FORMAT
7075 TAR_OPTIONS=\"-H oldgnu\"
7079 genfile -l 1024 -f en
7080 genfile -l 1024 -f to
7082 tar cf archive en to
7083 # Make sure we don't use bogus blocking factor.
7084 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7085 tar --file archive --blocking-factor=20 --delete tre
7088 echo delete05.at:30 >"$at_check_line_file"
7091 if test -n "$at_traceon"; then
7092 echo 'Not enabling shell tracing (command contains an embedded newline)'
7095 if test -n "$at_trace_this"; then
7099 TEST_TAR_FORMAT=oldgnu
7100 export TEST_TAR_FORMAT
7101 TAR_OPTIONS="-H oldgnu"
7105 genfile -l 1024 -f en
7106 genfile -l 1024 -f to
7108 tar cf archive en to
7109 # Make sure we don't use bogus blocking factor.
7110 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7111 tar --file archive --blocking-factor=20 --delete tre
7113 ) ) >"$at_stdout" 2>"$at_stder1"
7115 grep '^ *+' "$at_stder1" >&2
7116 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7121 TEST_TAR_FORMAT=oldgnu
7122 export TEST_TAR_FORMAT
7123 TAR_OPTIONS="-H oldgnu"
7127 genfile -l 1024 -f en
7128 genfile -l 1024 -f to
7130 tar cf archive en to
7131 # Make sure we don't use bogus blocking factor.
7132 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7133 tar --file archive --blocking-factor=20 --delete tre
7135 ) ) >"$at_stdout" 2>"$at_stderr"
7140 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7141 tar: Exiting with failure status due to previous errors
7142 " | $at_diff - "$at_stderr" || at_failed=:
7143 echo >>"$at_stdout"; echo "en
7145 " | $at_diff - "$at_stdout" || at_failed=:
7147 77) echo 77 > "$at_status_file"; exit 77;;
7149 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7155 echo 1 > "$at_status_file"
7162 echo "$at_srcdir/delete05.at:30:
7165 TEST_TAR_FORMAT=ustar
7166 export TEST_TAR_FORMAT
7167 TAR_OPTIONS=\"-H ustar\"
7171 genfile -l 1024 -f en
7172 genfile -l 1024 -f to
7174 tar cf archive en to
7175 # Make sure we don't use bogus blocking factor.
7176 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7177 tar --file archive --blocking-factor=20 --delete tre
7180 echo delete05.at:30 >"$at_check_line_file"
7183 if test -n "$at_traceon"; then
7184 echo 'Not enabling shell tracing (command contains an embedded newline)'
7187 if test -n "$at_trace_this"; then
7191 TEST_TAR_FORMAT=ustar
7192 export TEST_TAR_FORMAT
7193 TAR_OPTIONS="-H ustar"
7197 genfile -l 1024 -f en
7198 genfile -l 1024 -f to
7200 tar cf archive en to
7201 # Make sure we don't use bogus blocking factor.
7202 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7203 tar --file archive --blocking-factor=20 --delete tre
7205 ) ) >"$at_stdout" 2>"$at_stder1"
7207 grep '^ *+' "$at_stder1" >&2
7208 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7213 TEST_TAR_FORMAT=ustar
7214 export TEST_TAR_FORMAT
7215 TAR_OPTIONS="-H ustar"
7219 genfile -l 1024 -f en
7220 genfile -l 1024 -f to
7222 tar cf archive en to
7223 # Make sure we don't use bogus blocking factor.
7224 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7225 tar --file archive --blocking-factor=20 --delete tre
7227 ) ) >"$at_stdout" 2>"$at_stderr"
7232 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7233 tar: Exiting with failure status due to previous errors
7234 " | $at_diff - "$at_stderr" || at_failed=:
7235 echo >>"$at_stdout"; echo "en
7237 " | $at_diff - "$at_stdout" || at_failed=:
7239 77) echo 77 > "$at_status_file"; exit 77;;
7241 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7247 echo 1 > "$at_status_file"
7254 echo "$at_srcdir/delete05.at:30:
7257 TEST_TAR_FORMAT=posix
7258 export TEST_TAR_FORMAT
7259 TAR_OPTIONS=\"-H posix\"
7263 genfile -l 1024 -f en
7264 genfile -l 1024 -f to
7266 tar cf archive en to
7267 # Make sure we don't use bogus blocking factor.
7268 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7269 tar --file archive --blocking-factor=20 --delete tre
7272 echo delete05.at:30 >"$at_check_line_file"
7275 if test -n "$at_traceon"; then
7276 echo 'Not enabling shell tracing (command contains an embedded newline)'
7279 if test -n "$at_trace_this"; then
7283 TEST_TAR_FORMAT=posix
7284 export TEST_TAR_FORMAT
7285 TAR_OPTIONS="-H posix"
7289 genfile -l 1024 -f en
7290 genfile -l 1024 -f to
7292 tar cf archive en to
7293 # Make sure we don't use bogus blocking factor.
7294 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7295 tar --file archive --blocking-factor=20 --delete tre
7297 ) ) >"$at_stdout" 2>"$at_stder1"
7299 grep '^ *+' "$at_stder1" >&2
7300 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7305 TEST_TAR_FORMAT=posix
7306 export TEST_TAR_FORMAT
7307 TAR_OPTIONS="-H posix"
7311 genfile -l 1024 -f en
7312 genfile -l 1024 -f to
7314 tar cf archive en to
7315 # Make sure we don't use bogus blocking factor.
7316 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7317 tar --file archive --blocking-factor=20 --delete tre
7319 ) ) >"$at_stdout" 2>"$at_stderr"
7324 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7325 tar: Exiting with failure status due to previous errors
7326 " | $at_diff - "$at_stderr" || at_failed=:
7327 echo >>"$at_stdout"; echo "en
7329 " | $at_diff - "$at_stdout" || at_failed=:
7331 77) echo 77 > "$at_status_file"; exit 77;;
7333 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7339 echo 1 > "$at_status_file"
7346 echo "$at_srcdir/delete05.at:30:
7350 export TEST_TAR_FORMAT
7351 TAR_OPTIONS=\"-H gnu\"
7355 genfile -l 1024 -f en
7356 genfile -l 1024 -f to
7358 tar cf archive en to
7359 # Make sure we don't use bogus blocking factor.
7360 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7361 tar --file archive --blocking-factor=20 --delete tre
7364 echo delete05.at:30 >"$at_check_line_file"
7367 if test -n "$at_traceon"; then
7368 echo 'Not enabling shell tracing (command contains an embedded newline)'
7371 if test -n "$at_trace_this"; then
7376 export TEST_TAR_FORMAT
7377 TAR_OPTIONS="-H gnu"
7381 genfile -l 1024 -f en
7382 genfile -l 1024 -f to
7384 tar cf archive en to
7385 # Make sure we don't use bogus blocking factor.
7386 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7387 tar --file archive --blocking-factor=20 --delete tre
7389 ) ) >"$at_stdout" 2>"$at_stder1"
7391 grep '^ *+' "$at_stder1" >&2
7392 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7398 export TEST_TAR_FORMAT
7399 TAR_OPTIONS="-H gnu"
7403 genfile -l 1024 -f en
7404 genfile -l 1024 -f to
7406 tar cf archive en to
7407 # Make sure we don't use bogus blocking factor.
7408 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7409 tar --file archive --blocking-factor=20 --delete tre
7411 ) ) >"$at_stdout" 2>"$at_stderr"
7416 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7417 tar: Exiting with failure status due to previous errors
7418 " | $at_diff - "$at_stderr" || at_failed=:
7419 echo >>"$at_stdout"; echo "en
7421 " | $at_diff - "$at_stdout" || at_failed=:
7423 77) echo 77 > "$at_status_file"; exit 77;;
7425 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7431 echo 1 > "$at_status_file"
7441 $at_times_p && times >"$at_times_file"
7442 ) 5>&1 2>&1 | eval $at_tee_pipe
7443 at_status=`cat "$at_status_file"`
7446 18 ) # 18. extrac01.at:23: extract over an existing directory
7447 at_setup_line='extrac01.at:23'
7448 at_desc="extract over an existing directory"
7449 $at_quiet $ECHO_N " 18: extract over an existing directory $ECHO_C"
7451 test -f $XFAILFILE && at_xfail=yes
7452 echo "# -*- compilation -*-" >> "$at_group_log"
7454 echo "18. extrac01.at:23: testing ..."
7462 echo "$at_srcdir/extrac01.at:26:
7466 export TEST_TAR_FORMAT
7467 TAR_OPTIONS=\"-H v7\"
7472 touch directory/file
7473 tar cf archive directory || exit 1
7474 tar xf archive || exit 1
7476 echo extrac01.at:26 >"$at_check_line_file"
7479 if test -n "$at_traceon"; then
7480 echo 'Not enabling shell tracing (command contains an embedded newline)'
7483 if test -n "$at_trace_this"; then
7488 export TEST_TAR_FORMAT
7494 touch directory/file
7495 tar cf archive directory || exit 1
7496 tar xf archive || exit 1
7497 ) ) >"$at_stdout" 2>"$at_stder1"
7499 grep '^ *+' "$at_stder1" >&2
7500 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7506 export TEST_TAR_FORMAT
7512 touch directory/file
7513 tar cf archive directory || exit 1
7514 tar xf archive || exit 1
7515 ) ) >"$at_stdout" 2>"$at_stderr"
7520 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7521 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7523 77) echo 77 > "$at_status_file"; exit 77;;
7525 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7531 echo 1 > "$at_status_file"
7538 echo "$at_srcdir/extrac01.at:26:
7541 TEST_TAR_FORMAT=oldgnu
7542 export TEST_TAR_FORMAT
7543 TAR_OPTIONS=\"-H oldgnu\"
7548 touch directory/file
7549 tar cf archive directory || exit 1
7550 tar xf archive || exit 1
7552 echo extrac01.at:26 >"$at_check_line_file"
7555 if test -n "$at_traceon"; then
7556 echo 'Not enabling shell tracing (command contains an embedded newline)'
7559 if test -n "$at_trace_this"; then
7563 TEST_TAR_FORMAT=oldgnu
7564 export TEST_TAR_FORMAT
7565 TAR_OPTIONS="-H oldgnu"
7570 touch directory/file
7571 tar cf archive directory || exit 1
7572 tar xf archive || exit 1
7573 ) ) >"$at_stdout" 2>"$at_stder1"
7575 grep '^ *+' "$at_stder1" >&2
7576 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7581 TEST_TAR_FORMAT=oldgnu
7582 export TEST_TAR_FORMAT
7583 TAR_OPTIONS="-H oldgnu"
7588 touch directory/file
7589 tar cf archive directory || exit 1
7590 tar xf archive || exit 1
7591 ) ) >"$at_stdout" 2>"$at_stderr"
7596 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7597 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7599 77) echo 77 > "$at_status_file"; exit 77;;
7601 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7607 echo 1 > "$at_status_file"
7614 echo "$at_srcdir/extrac01.at:26:
7617 TEST_TAR_FORMAT=ustar
7618 export TEST_TAR_FORMAT
7619 TAR_OPTIONS=\"-H ustar\"
7624 touch directory/file
7625 tar cf archive directory || exit 1
7626 tar xf archive || exit 1
7628 echo extrac01.at:26 >"$at_check_line_file"
7631 if test -n "$at_traceon"; then
7632 echo 'Not enabling shell tracing (command contains an embedded newline)'
7635 if test -n "$at_trace_this"; then
7639 TEST_TAR_FORMAT=ustar
7640 export TEST_TAR_FORMAT
7641 TAR_OPTIONS="-H ustar"
7646 touch directory/file
7647 tar cf archive directory || exit 1
7648 tar xf archive || exit 1
7649 ) ) >"$at_stdout" 2>"$at_stder1"
7651 grep '^ *+' "$at_stder1" >&2
7652 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7657 TEST_TAR_FORMAT=ustar
7658 export TEST_TAR_FORMAT
7659 TAR_OPTIONS="-H ustar"
7664 touch directory/file
7665 tar cf archive directory || exit 1
7666 tar xf archive || exit 1
7667 ) ) >"$at_stdout" 2>"$at_stderr"
7672 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7673 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7675 77) echo 77 > "$at_status_file"; exit 77;;
7677 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7683 echo 1 > "$at_status_file"
7690 echo "$at_srcdir/extrac01.at:26:
7693 TEST_TAR_FORMAT=posix
7694 export TEST_TAR_FORMAT
7695 TAR_OPTIONS=\"-H posix\"
7700 touch directory/file
7701 tar cf archive directory || exit 1
7702 tar xf archive || exit 1
7704 echo extrac01.at:26 >"$at_check_line_file"
7707 if test -n "$at_traceon"; then
7708 echo 'Not enabling shell tracing (command contains an embedded newline)'
7711 if test -n "$at_trace_this"; then
7715 TEST_TAR_FORMAT=posix
7716 export TEST_TAR_FORMAT
7717 TAR_OPTIONS="-H posix"
7722 touch directory/file
7723 tar cf archive directory || exit 1
7724 tar xf archive || exit 1
7725 ) ) >"$at_stdout" 2>"$at_stder1"
7727 grep '^ *+' "$at_stder1" >&2
7728 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7733 TEST_TAR_FORMAT=posix
7734 export TEST_TAR_FORMAT
7735 TAR_OPTIONS="-H posix"
7740 touch directory/file
7741 tar cf archive directory || exit 1
7742 tar xf archive || exit 1
7743 ) ) >"$at_stdout" 2>"$at_stderr"
7748 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7749 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7751 77) echo 77 > "$at_status_file"; exit 77;;
7753 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7759 echo 1 > "$at_status_file"
7766 echo "$at_srcdir/extrac01.at:26:
7770 export TEST_TAR_FORMAT
7771 TAR_OPTIONS=\"-H gnu\"
7776 touch directory/file
7777 tar cf archive directory || exit 1
7778 tar xf archive || exit 1
7780 echo extrac01.at:26 >"$at_check_line_file"
7783 if test -n "$at_traceon"; then
7784 echo 'Not enabling shell tracing (command contains an embedded newline)'
7787 if test -n "$at_trace_this"; then
7792 export TEST_TAR_FORMAT
7793 TAR_OPTIONS="-H gnu"
7798 touch directory/file
7799 tar cf archive directory || exit 1
7800 tar xf archive || exit 1
7801 ) ) >"$at_stdout" 2>"$at_stder1"
7803 grep '^ *+' "$at_stder1" >&2
7804 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7810 export TEST_TAR_FORMAT
7811 TAR_OPTIONS="-H gnu"
7816 touch directory/file
7817 tar cf archive directory || exit 1
7818 tar xf archive || exit 1
7819 ) ) >"$at_stdout" 2>"$at_stderr"
7824 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7825 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7827 77) echo 77 > "$at_status_file"; exit 77;;
7829 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7835 echo 1 > "$at_status_file"
7845 $at_times_p && times >"$at_times_file"
7846 ) 5>&1 2>&1 | eval $at_tee_pipe
7847 at_status=`cat "$at_status_file"`
7850 19 ) # 19. extrac02.at:23: extracting symlinks over an existing file
7851 at_setup_line='extrac02.at:23'
7852 at_desc="extracting symlinks over an existing file"
7853 $at_quiet $ECHO_N " 19: extracting symlinks over an existing file $ECHO_C"
7855 test -f $XFAILFILE && at_xfail=yes
7856 echo "# -*- compilation -*-" >> "$at_group_log"
7858 echo "19. extrac02.at:23: testing ..."
7863 # FIXME: Skip if symlinks are not supported on the system
7868 echo "$at_srcdir/extrac02.at:28:
7872 export TEST_TAR_FORMAT
7873 TAR_OPTIONS=\"-H v7\"
7878 ln -s file link 2> /dev/null || ln file link
7884 echo extrac02.at:28 >"$at_check_line_file"
7887 if test -n "$at_traceon"; then
7888 echo 'Not enabling shell tracing (command contains an embedded newline)'
7891 if test -n "$at_trace_this"; then
7896 export TEST_TAR_FORMAT
7902 ln -s file link 2> /dev/null || ln file link
7907 ) ) >"$at_stdout" 2>"$at_stder1"
7909 grep '^ *+' "$at_stder1" >&2
7910 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7916 export TEST_TAR_FORMAT
7922 ln -s file link 2> /dev/null || ln file link
7927 ) ) >"$at_stdout" 2>"$at_stderr"
7932 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7933 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7935 77) echo 77 > "$at_status_file"; exit 77;;
7937 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7943 echo 1 > "$at_status_file"
7950 echo "$at_srcdir/extrac02.at:28:
7953 TEST_TAR_FORMAT=oldgnu
7954 export TEST_TAR_FORMAT
7955 TAR_OPTIONS=\"-H oldgnu\"
7960 ln -s file link 2> /dev/null || ln file link
7966 echo extrac02.at:28 >"$at_check_line_file"
7969 if test -n "$at_traceon"; then
7970 echo 'Not enabling shell tracing (command contains an embedded newline)'
7973 if test -n "$at_trace_this"; then
7977 TEST_TAR_FORMAT=oldgnu
7978 export TEST_TAR_FORMAT
7979 TAR_OPTIONS="-H oldgnu"
7984 ln -s file link 2> /dev/null || ln file link
7989 ) ) >"$at_stdout" 2>"$at_stder1"
7991 grep '^ *+' "$at_stder1" >&2
7992 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7997 TEST_TAR_FORMAT=oldgnu
7998 export TEST_TAR_FORMAT
7999 TAR_OPTIONS="-H oldgnu"
8004 ln -s file link 2> /dev/null || ln file link
8009 ) ) >"$at_stdout" 2>"$at_stderr"
8014 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8015 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8017 77) echo 77 > "$at_status_file"; exit 77;;
8019 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8025 echo 1 > "$at_status_file"
8032 echo "$at_srcdir/extrac02.at:28:
8035 TEST_TAR_FORMAT=ustar
8036 export TEST_TAR_FORMAT
8037 TAR_OPTIONS=\"-H ustar\"
8042 ln -s file link 2> /dev/null || ln file link
8048 echo extrac02.at:28 >"$at_check_line_file"
8051 if test -n "$at_traceon"; then
8052 echo 'Not enabling shell tracing (command contains an embedded newline)'
8055 if test -n "$at_trace_this"; then
8059 TEST_TAR_FORMAT=ustar
8060 export TEST_TAR_FORMAT
8061 TAR_OPTIONS="-H ustar"
8066 ln -s file link 2> /dev/null || ln file link
8071 ) ) >"$at_stdout" 2>"$at_stder1"
8073 grep '^ *+' "$at_stder1" >&2
8074 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8079 TEST_TAR_FORMAT=ustar
8080 export TEST_TAR_FORMAT
8081 TAR_OPTIONS="-H ustar"
8086 ln -s file link 2> /dev/null || ln file link
8091 ) ) >"$at_stdout" 2>"$at_stderr"
8096 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8097 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8099 77) echo 77 > "$at_status_file"; exit 77;;
8101 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8107 echo 1 > "$at_status_file"
8114 echo "$at_srcdir/extrac02.at:28:
8117 TEST_TAR_FORMAT=posix
8118 export TEST_TAR_FORMAT
8119 TAR_OPTIONS=\"-H posix\"
8124 ln -s file link 2> /dev/null || ln file link
8130 echo extrac02.at:28 >"$at_check_line_file"
8133 if test -n "$at_traceon"; then
8134 echo 'Not enabling shell tracing (command contains an embedded newline)'
8137 if test -n "$at_trace_this"; then
8141 TEST_TAR_FORMAT=posix
8142 export TEST_TAR_FORMAT
8143 TAR_OPTIONS="-H posix"
8148 ln -s file link 2> /dev/null || ln file link
8153 ) ) >"$at_stdout" 2>"$at_stder1"
8155 grep '^ *+' "$at_stder1" >&2
8156 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8161 TEST_TAR_FORMAT=posix
8162 export TEST_TAR_FORMAT
8163 TAR_OPTIONS="-H posix"
8168 ln -s file link 2> /dev/null || ln file link
8173 ) ) >"$at_stdout" 2>"$at_stderr"
8178 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8179 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8181 77) echo 77 > "$at_status_file"; exit 77;;
8183 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8189 echo 1 > "$at_status_file"
8196 echo "$at_srcdir/extrac02.at:28:
8200 export TEST_TAR_FORMAT
8201 TAR_OPTIONS=\"-H gnu\"
8206 ln -s file link 2> /dev/null || ln file link
8212 echo extrac02.at:28 >"$at_check_line_file"
8215 if test -n "$at_traceon"; then
8216 echo 'Not enabling shell tracing (command contains an embedded newline)'
8219 if test -n "$at_trace_this"; then
8224 export TEST_TAR_FORMAT
8225 TAR_OPTIONS="-H gnu"
8230 ln -s file link 2> /dev/null || ln file link
8235 ) ) >"$at_stdout" 2>"$at_stder1"
8237 grep '^ *+' "$at_stder1" >&2
8238 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8244 export TEST_TAR_FORMAT
8245 TAR_OPTIONS="-H gnu"
8250 ln -s file link 2> /dev/null || ln file link
8255 ) ) >"$at_stdout" 2>"$at_stderr"
8260 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8261 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8263 77) echo 77 > "$at_status_file"; exit 77;;
8265 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8271 echo 1 > "$at_status_file"
8281 $at_times_p && times >"$at_times_file"
8282 ) 5>&1 2>&1 | eval $at_tee_pipe
8283 at_status=`cat "$at_status_file"`
8286 20 ) # 20. extrac03.at:23: extraction loops
8287 at_setup_line='extrac03.at:23'
8288 at_desc="extraction loops"
8289 $at_quiet $ECHO_N " 20: extraction loops $ECHO_C"
8291 test -f $XFAILFILE && at_xfail=yes
8292 echo "# -*- compilation -*-" >> "$at_group_log"
8294 echo "20. extrac03.at:23: testing ..."
8302 echo "$at_srcdir/extrac03.at:26:
8306 export TEST_TAR_FORMAT
8307 TAR_OPTIONS=\"-H v7\"
8312 tar -cPvf archive directory/../directory
8315 echo extrac03.at:26 >"$at_check_line_file"
8318 if test -n "$at_traceon"; then
8319 echo 'Not enabling shell tracing (command contains an embedded newline)'
8322 if test -n "$at_trace_this"; then
8327 export TEST_TAR_FORMAT
8333 tar -cPvf archive directory/../directory
8335 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8337 grep '^ *+' "$at_stder1" >&2
8338 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8344 export TEST_TAR_FORMAT
8350 tar -cPvf archive directory/../directory
8352 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8357 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8358 echo >>"$at_stdout"; echo "directory/../directory/
8360 directory/../directory/
8361 " | $at_diff - "$at_stdout" || at_failed=:
8363 77) echo 77 > "$at_status_file"; exit 77;;
8365 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8371 echo 1 > "$at_status_file"
8378 echo "$at_srcdir/extrac03.at:26:
8381 TEST_TAR_FORMAT=oldgnu
8382 export TEST_TAR_FORMAT
8383 TAR_OPTIONS=\"-H oldgnu\"
8388 tar -cPvf archive directory/../directory
8391 echo extrac03.at:26 >"$at_check_line_file"
8394 if test -n "$at_traceon"; then
8395 echo 'Not enabling shell tracing (command contains an embedded newline)'
8398 if test -n "$at_trace_this"; then
8402 TEST_TAR_FORMAT=oldgnu
8403 export TEST_TAR_FORMAT
8404 TAR_OPTIONS="-H oldgnu"
8409 tar -cPvf archive directory/../directory
8411 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8413 grep '^ *+' "$at_stder1" >&2
8414 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8419 TEST_TAR_FORMAT=oldgnu
8420 export TEST_TAR_FORMAT
8421 TAR_OPTIONS="-H oldgnu"
8426 tar -cPvf archive directory/../directory
8428 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8433 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8434 echo >>"$at_stdout"; echo "directory/../directory/
8436 directory/../directory/
8437 " | $at_diff - "$at_stdout" || at_failed=:
8439 77) echo 77 > "$at_status_file"; exit 77;;
8441 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8447 echo 1 > "$at_status_file"
8454 echo "$at_srcdir/extrac03.at:26:
8457 TEST_TAR_FORMAT=ustar
8458 export TEST_TAR_FORMAT
8459 TAR_OPTIONS=\"-H ustar\"
8464 tar -cPvf archive directory/../directory
8467 echo extrac03.at:26 >"$at_check_line_file"
8470 if test -n "$at_traceon"; then
8471 echo 'Not enabling shell tracing (command contains an embedded newline)'
8474 if test -n "$at_trace_this"; then
8478 TEST_TAR_FORMAT=ustar
8479 export TEST_TAR_FORMAT
8480 TAR_OPTIONS="-H ustar"
8485 tar -cPvf archive directory/../directory
8487 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8489 grep '^ *+' "$at_stder1" >&2
8490 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8495 TEST_TAR_FORMAT=ustar
8496 export TEST_TAR_FORMAT
8497 TAR_OPTIONS="-H ustar"
8502 tar -cPvf archive directory/../directory
8504 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8509 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8510 echo >>"$at_stdout"; echo "directory/../directory/
8512 directory/../directory/
8513 " | $at_diff - "$at_stdout" || at_failed=:
8515 77) echo 77 > "$at_status_file"; exit 77;;
8517 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8523 echo 1 > "$at_status_file"
8530 echo "$at_srcdir/extrac03.at:26:
8533 TEST_TAR_FORMAT=posix
8534 export TEST_TAR_FORMAT
8535 TAR_OPTIONS=\"-H posix\"
8540 tar -cPvf archive directory/../directory
8543 echo extrac03.at:26 >"$at_check_line_file"
8546 if test -n "$at_traceon"; then
8547 echo 'Not enabling shell tracing (command contains an embedded newline)'
8550 if test -n "$at_trace_this"; then
8554 TEST_TAR_FORMAT=posix
8555 export TEST_TAR_FORMAT
8556 TAR_OPTIONS="-H posix"
8561 tar -cPvf archive directory/../directory
8563 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8565 grep '^ *+' "$at_stder1" >&2
8566 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8571 TEST_TAR_FORMAT=posix
8572 export TEST_TAR_FORMAT
8573 TAR_OPTIONS="-H posix"
8578 tar -cPvf archive directory/../directory
8580 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8585 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8586 echo >>"$at_stdout"; echo "directory/../directory/
8588 directory/../directory/
8589 " | $at_diff - "$at_stdout" || at_failed=:
8591 77) echo 77 > "$at_status_file"; exit 77;;
8593 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8599 echo 1 > "$at_status_file"
8606 echo "$at_srcdir/extrac03.at:26:
8610 export TEST_TAR_FORMAT
8611 TAR_OPTIONS=\"-H gnu\"
8616 tar -cPvf archive directory/../directory
8619 echo extrac03.at:26 >"$at_check_line_file"
8622 if test -n "$at_traceon"; then
8623 echo 'Not enabling shell tracing (command contains an embedded newline)'
8626 if test -n "$at_trace_this"; then
8631 export TEST_TAR_FORMAT
8632 TAR_OPTIONS="-H gnu"
8637 tar -cPvf archive directory/../directory
8639 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8641 grep '^ *+' "$at_stder1" >&2
8642 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8648 export TEST_TAR_FORMAT
8649 TAR_OPTIONS="-H gnu"
8654 tar -cPvf archive directory/../directory
8656 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8661 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8662 echo >>"$at_stdout"; echo "directory/../directory/
8664 directory/../directory/
8665 " | $at_diff - "$at_stdout" || at_failed=:
8667 77) echo 77 > "$at_status_file"; exit 77;;
8669 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8675 echo 1 > "$at_status_file"
8685 $at_times_p && times >"$at_times_file"
8686 ) 5>&1 2>&1 | eval $at_tee_pipe
8687 at_status=`cat "$at_status_file"`
8690 21 ) # 21. extrac04.at:23: extract + fnmatch
8691 at_setup_line='extrac04.at:23'
8692 at_desc="extract + fnmatch"
8693 $at_quiet $ECHO_N " 21: extract + fnmatch $ECHO_C"
8695 test -f $XFAILFILE && at_xfail=yes
8696 echo "# -*- compilation -*-" >> "$at_group_log"
8698 echo "21. extrac04.at:23: testing ..."
8706 echo "$at_srcdir/extrac04.at:26:
8710 export TEST_TAR_FORMAT
8711 TAR_OPTIONS=\"-H v7\"
8716 test -z "`sort < /dev/null 2>&1`" || exit 77
8720 mkdir directory/subdirectory
8721 touch directory/file1
8722 touch directory/file2
8723 touch directory/subdirectory/file1
8724 touch directory/subdirectory/file2
8725 tar -cf archive ./file1 directory
8728 --exclude='d*/*1' \\
8729 --exclude='d*/s*/*2' | sort
8731 echo extrac04.at:26 >"$at_check_line_file"
8734 if test -n "$at_traceon"; then
8735 echo 'Not enabling shell tracing (command contains an embedded newline)'
8738 if test -n "$at_trace_this"; then
8743 export TEST_TAR_FORMAT
8749 test -z "`sort < /dev/null 2>&1`" || exit 77
8753 mkdir directory/subdirectory
8754 touch directory/file1
8755 touch directory/file2
8756 touch directory/subdirectory/file1
8757 touch directory/subdirectory/file2
8758 tar -cf archive ./file1 directory
8762 --exclude='d*/s*/*2' | sort
8763 ) ) >"$at_stdout" 2>"$at_stder1"
8765 grep '^ *+' "$at_stder1" >&2
8766 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8772 export TEST_TAR_FORMAT
8778 test -z "`sort < /dev/null 2>&1`" || exit 77
8782 mkdir directory/subdirectory
8783 touch directory/file1
8784 touch directory/file2
8785 touch directory/subdirectory/file1
8786 touch directory/subdirectory/file2
8787 tar -cf archive ./file1 directory
8791 --exclude='d*/s*/*2' | sort
8792 ) ) >"$at_stdout" 2>"$at_stderr"
8797 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8798 echo >>"$at_stdout"; echo "directory/
8800 directory/subdirectory/
8801 " | $at_diff - "$at_stdout" || at_failed=:
8803 77) echo 77 > "$at_status_file"; exit 77;;
8805 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8811 echo 1 > "$at_status_file"
8818 echo "$at_srcdir/extrac04.at:26:
8821 TEST_TAR_FORMAT=oldgnu
8822 export TEST_TAR_FORMAT
8823 TAR_OPTIONS=\"-H oldgnu\"
8828 test -z "`sort < /dev/null 2>&1`" || exit 77
8832 mkdir directory/subdirectory
8833 touch directory/file1
8834 touch directory/file2
8835 touch directory/subdirectory/file1
8836 touch directory/subdirectory/file2
8837 tar -cf archive ./file1 directory
8840 --exclude='d*/*1' \\
8841 --exclude='d*/s*/*2' | sort
8843 echo extrac04.at:26 >"$at_check_line_file"
8846 if test -n "$at_traceon"; then
8847 echo 'Not enabling shell tracing (command contains an embedded newline)'
8850 if test -n "$at_trace_this"; then
8854 TEST_TAR_FORMAT=oldgnu
8855 export TEST_TAR_FORMAT
8856 TAR_OPTIONS="-H oldgnu"
8861 test -z "`sort < /dev/null 2>&1`" || exit 77
8865 mkdir directory/subdirectory
8866 touch directory/file1
8867 touch directory/file2
8868 touch directory/subdirectory/file1
8869 touch directory/subdirectory/file2
8870 tar -cf archive ./file1 directory
8874 --exclude='d*/s*/*2' | sort
8875 ) ) >"$at_stdout" 2>"$at_stder1"
8877 grep '^ *+' "$at_stder1" >&2
8878 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8883 TEST_TAR_FORMAT=oldgnu
8884 export TEST_TAR_FORMAT
8885 TAR_OPTIONS="-H oldgnu"
8890 test -z "`sort < /dev/null 2>&1`" || exit 77
8894 mkdir directory/subdirectory
8895 touch directory/file1
8896 touch directory/file2
8897 touch directory/subdirectory/file1
8898 touch directory/subdirectory/file2
8899 tar -cf archive ./file1 directory
8903 --exclude='d*/s*/*2' | sort
8904 ) ) >"$at_stdout" 2>"$at_stderr"
8909 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8910 echo >>"$at_stdout"; echo "directory/
8912 directory/subdirectory/
8913 " | $at_diff - "$at_stdout" || at_failed=:
8915 77) echo 77 > "$at_status_file"; exit 77;;
8917 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8923 echo 1 > "$at_status_file"
8930 echo "$at_srcdir/extrac04.at:26:
8933 TEST_TAR_FORMAT=ustar
8934 export TEST_TAR_FORMAT
8935 TAR_OPTIONS=\"-H ustar\"
8940 test -z "`sort < /dev/null 2>&1`" || exit 77
8944 mkdir directory/subdirectory
8945 touch directory/file1
8946 touch directory/file2
8947 touch directory/subdirectory/file1
8948 touch directory/subdirectory/file2
8949 tar -cf archive ./file1 directory
8952 --exclude='d*/*1' \\
8953 --exclude='d*/s*/*2' | sort
8955 echo extrac04.at:26 >"$at_check_line_file"
8958 if test -n "$at_traceon"; then
8959 echo 'Not enabling shell tracing (command contains an embedded newline)'
8962 if test -n "$at_trace_this"; then
8966 TEST_TAR_FORMAT=ustar
8967 export TEST_TAR_FORMAT
8968 TAR_OPTIONS="-H ustar"
8973 test -z "`sort < /dev/null 2>&1`" || exit 77
8977 mkdir directory/subdirectory
8978 touch directory/file1
8979 touch directory/file2
8980 touch directory/subdirectory/file1
8981 touch directory/subdirectory/file2
8982 tar -cf archive ./file1 directory
8986 --exclude='d*/s*/*2' | sort
8987 ) ) >"$at_stdout" 2>"$at_stder1"
8989 grep '^ *+' "$at_stder1" >&2
8990 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8995 TEST_TAR_FORMAT=ustar
8996 export TEST_TAR_FORMAT
8997 TAR_OPTIONS="-H ustar"
9002 test -z "`sort < /dev/null 2>&1`" || exit 77
9006 mkdir directory/subdirectory
9007 touch directory/file1
9008 touch directory/file2
9009 touch directory/subdirectory/file1
9010 touch directory/subdirectory/file2
9011 tar -cf archive ./file1 directory
9015 --exclude='d*/s*/*2' | sort
9016 ) ) >"$at_stdout" 2>"$at_stderr"
9021 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9022 echo >>"$at_stdout"; echo "directory/
9024 directory/subdirectory/
9025 " | $at_diff - "$at_stdout" || at_failed=:
9027 77) echo 77 > "$at_status_file"; exit 77;;
9029 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
9035 echo 1 > "$at_status_file"
9042 echo "$at_srcdir/extrac04.at:26:
9045 TEST_TAR_FORMAT=posix
9046 export TEST_TAR_FORMAT
9047 TAR_OPTIONS=\"-H posix\"
9052 test -z "`sort < /dev/null 2>&1`" || exit 77
9056 mkdir directory/subdirectory
9057 touch directory/file1
9058 touch directory/file2
9059 touch directory/subdirectory/file1
9060 touch directory/subdirectory/file2
9061 tar -cf archive ./file1 directory
9064 --exclude='d*/*1' \\
9065 --exclude='d*/s*/*2' | sort
9067 echo extrac04.at:26 >"$at_check_line_file"
9070 if test -n "$at_traceon"; then
9071 echo 'Not enabling shell tracing (command contains an embedded newline)'
9074 if test -n "$at_trace_this"; then
9078 TEST_TAR_FORMAT=posix
9079 export TEST_TAR_FORMAT
9080 TAR_OPTIONS="-H posix"
9085 test -z "`sort < /dev/null 2>&1`" || exit 77
9089 mkdir directory/subdirectory
9090 touch directory/file1
9091 touch directory/file2
9092 touch directory/subdirectory/file1
9093 touch directory/subdirectory/file2
9094 tar -cf archive ./file1 directory
9098 --exclude='d*/s*/*2' | sort
9099 ) ) >"$at_stdout" 2>"$at_stder1"
9101 grep '^ *+' "$at_stder1" >&2
9102 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9107 TEST_TAR_FORMAT=posix
9108 export TEST_TAR_FORMAT
9109 TAR_OPTIONS="-H posix"
9114 test -z "`sort < /dev/null 2>&1`" || exit 77
9118 mkdir directory/subdirectory
9119 touch directory/file1
9120 touch directory/file2
9121 touch directory/subdirectory/file1
9122 touch directory/subdirectory/file2
9123 tar -cf archive ./file1 directory
9127 --exclude='d*/s*/*2' | sort
9128 ) ) >"$at_stdout" 2>"$at_stderr"
9133 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9134 echo >>"$at_stdout"; echo "directory/
9136 directory/subdirectory/
9137 " | $at_diff - "$at_stdout" || at_failed=:
9139 77) echo 77 > "$at_status_file"; exit 77;;
9141 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
9147 echo 1 > "$at_status_file"
9154 echo "$at_srcdir/extrac04.at:26:
9158 export TEST_TAR_FORMAT
9159 TAR_OPTIONS=\"-H gnu\"
9164 test -z "`sort < /dev/null 2>&1`" || exit 77
9168 mkdir directory/subdirectory
9169 touch directory/file1
9170 touch directory/file2
9171 touch directory/subdirectory/file1
9172 touch directory/subdirectory/file2
9173 tar -cf archive ./file1 directory
9176 --exclude='d*/*1' \\
9177 --exclude='d*/s*/*2' | sort
9179 echo extrac04.at:26 >"$at_check_line_file"
9182 if test -n "$at_traceon"; then
9183 echo 'Not enabling shell tracing (command contains an embedded newline)'
9186 if test -n "$at_trace_this"; then
9191 export TEST_TAR_FORMAT
9192 TAR_OPTIONS="-H gnu"
9197 test -z "`sort < /dev/null 2>&1`" || exit 77
9201 mkdir directory/subdirectory
9202 touch directory/file1
9203 touch directory/file2
9204 touch directory/subdirectory/file1
9205 touch directory/subdirectory/file2
9206 tar -cf archive ./file1 directory
9210 --exclude='d*/s*/*2' | sort
9211 ) ) >"$at_stdout" 2>"$at_stder1"
9213 grep '^ *+' "$at_stder1" >&2
9214 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9220 export TEST_TAR_FORMAT
9221 TAR_OPTIONS="-H gnu"
9226 test -z "`sort < /dev/null 2>&1`" || exit 77
9230 mkdir directory/subdirectory
9231 touch directory/file1
9232 touch directory/file2
9233 touch directory/subdirectory/file1
9234 touch directory/subdirectory/file2
9235 tar -cf archive ./file1 directory
9239 --exclude='d*/s*/*2' | sort
9240 ) ) >"$at_stdout" 2>"$at_stderr"
9245 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9246 echo >>"$at_stdout"; echo "directory/
9248 directory/subdirectory/
9249 " | $at_diff - "$at_stdout" || at_failed=:
9251 77) echo 77 > "$at_status_file"; exit 77;;
9253 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
9259 echo 1 > "$at_status_file"
9269 $at_times_p && times >"$at_times_file"
9270 ) 5>&1 2>&1 | eval $at_tee_pipe
9271 at_status=`cat "$at_status_file"`
9274 22 ) # 22. extrac05.at:30: extracting selected members from pax
9275 at_setup_line='extrac05.at:30'
9276 at_desc="extracting selected members from pax"
9277 $at_quiet $ECHO_N " 22: extracting selected members from pax $ECHO_C"
9279 test -f $XFAILFILE && at_xfail=yes
9280 echo "# -*- compilation -*-" >> "$at_group_log"
9282 echo "22. extrac05.at:30: testing ..."
9287 cat >list <<'_ATEOF'
9296 echo "$at_srcdir/extrac05.at:38:
9299 TEST_TAR_FORMAT=posix
9300 export TEST_TAR_FORMAT
9301 TAR_OPTIONS=\"-H posix\"
9305 genfile --length 118 --file jeden
9306 genfile --length 223 --file dwa
9307 genfile --length 517 --file trzy
9308 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9309 genfile --length 110 --file cztery
9311 tar cf archive jeden dwa trzy cztery || exit 1
9316 tar xvfT ../archive ../../list || exit 1
9320 echo extrac05.at:38 >"$at_check_line_file"
9323 if test -n "$at_traceon"; then
9324 echo 'Not enabling shell tracing (command contains an embedded newline)'
9327 if test -n "$at_trace_this"; then
9331 TEST_TAR_FORMAT=posix
9332 export TEST_TAR_FORMAT
9333 TAR_OPTIONS="-H posix"
9337 genfile --length 118 --file jeden
9338 genfile --length 223 --file dwa
9339 genfile --length 517 --file trzy
9340 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9341 genfile --length 110 --file cztery
9343 tar cf archive jeden dwa trzy cztery || exit 1
9348 tar xvfT ../archive ../../list || exit 1
9351 ) ) >"$at_stdout" 2>"$at_stder1"
9353 grep '^ *+' "$at_stder1" >&2
9354 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9359 TEST_TAR_FORMAT=posix
9360 export TEST_TAR_FORMAT
9361 TAR_OPTIONS="-H posix"
9365 genfile --length 118 --file jeden
9366 genfile --length 223 --file dwa
9367 genfile --length 517 --file trzy
9368 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9369 genfile --length 110 --file cztery
9371 tar cf archive jeden dwa trzy cztery || exit 1
9376 tar xvfT ../archive ../../list || exit 1
9379 ) ) >"$at_stdout" 2>"$at_stderr"
9384 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9385 echo >>"$at_stdout"; echo "jeden
9387 " | $at_diff - "$at_stdout" || at_failed=:
9389 77) echo 77 > "$at_status_file"; exit 77;;
9391 *) echo "$at_srcdir/extrac05.at:38: exit code was $at_status, expected 0"
9397 echo 1 > "$at_status_file"
9407 $at_times_p && times >"$at_times_file"
9408 ) 5>&1 2>&1 | eval $at_tee_pipe
9409 at_status=`cat "$at_status_file"`
9412 23 ) # 23. extrac06.at:33: mode of extracted directories
9413 at_setup_line='extrac06.at:33'
9414 at_desc="mode of extracted directories"
9415 $at_quiet $ECHO_N " 23: mode of extracted directories $ECHO_C"
9417 test -f $XFAILFILE && at_xfail=yes
9418 echo "# -*- compilation -*-" >> "$at_group_log"
9420 echo "23. extrac06.at:33: testing ..."
9428 echo "$at_srcdir/extrac06.at:36:
9432 export TEST_TAR_FORMAT
9433 TAR_OPTIONS=\"-H v7\"
9441 # Make sure user's umask is honored, even if we are superuser
9442 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9444 # Create a directory
9447 genfile --stat=mode:777 directory
9450 tar cf arc directory
9452 # Change its permissions ...
9454 genfile --stat=mode:777 directory
9456 # ... and attempt to restore it twice
9457 tar xf arc directory
9458 genfile --stat=mode:777 directory
9460 tar xf arc directory
9461 genfile --stat=mode:777 directory
9463 # After both restores, the directory mode should be 755
9465 echo extrac06.at:36 >"$at_check_line_file"
9468 if test -n "$at_traceon"; then
9469 echo 'Not enabling shell tracing (command contains an embedded newline)'
9472 if test -n "$at_trace_this"; then
9477 export TEST_TAR_FORMAT
9486 # Make sure user's umask is honored, even if we are superuser
9487 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9489 # Create a directory
9492 genfile --stat=mode:777 directory
9495 tar cf arc directory
9497 # Change its permissions ...
9499 genfile --stat=mode:777 directory
9501 # ... and attempt to restore it twice
9502 tar xf arc directory
9503 genfile --stat=mode:777 directory
9505 tar xf arc directory
9506 genfile --stat=mode:777 directory
9508 # After both restores, the directory mode should be 755
9509 ) ) >"$at_stdout" 2>"$at_stder1"
9511 grep '^ *+' "$at_stder1" >&2
9512 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9518 export TEST_TAR_FORMAT
9527 # Make sure user's umask is honored, even if we are superuser
9528 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9530 # Create a directory
9533 genfile --stat=mode:777 directory
9536 tar cf arc directory
9538 # Change its permissions ...
9540 genfile --stat=mode:777 directory
9542 # ... and attempt to restore it twice
9543 tar xf arc directory
9544 genfile --stat=mode:777 directory
9546 tar xf arc directory
9547 genfile --stat=mode:777 directory
9549 # After both restores, the directory mode should be 755
9550 ) ) >"$at_stdout" 2>"$at_stderr"
9555 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9556 echo >>"$at_stdout"; echo "777
9560 " | $at_diff - "$at_stdout" || at_failed=:
9562 77) echo 77 > "$at_status_file"; exit 77;;
9564 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9570 echo 1 > "$at_status_file"
9577 echo "$at_srcdir/extrac06.at:36:
9580 TEST_TAR_FORMAT=oldgnu
9581 export TEST_TAR_FORMAT
9582 TAR_OPTIONS=\"-H oldgnu\"
9590 # Make sure user's umask is honored, even if we are superuser
9591 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9593 # Create a directory
9596 genfile --stat=mode:777 directory
9599 tar cf arc directory
9601 # Change its permissions ...
9603 genfile --stat=mode:777 directory
9605 # ... and attempt to restore it twice
9606 tar xf arc directory
9607 genfile --stat=mode:777 directory
9609 tar xf arc directory
9610 genfile --stat=mode:777 directory
9612 # After both restores, the directory mode should be 755
9614 echo extrac06.at:36 >"$at_check_line_file"
9617 if test -n "$at_traceon"; then
9618 echo 'Not enabling shell tracing (command contains an embedded newline)'
9621 if test -n "$at_trace_this"; then
9625 TEST_TAR_FORMAT=oldgnu
9626 export TEST_TAR_FORMAT
9627 TAR_OPTIONS="-H oldgnu"
9635 # Make sure user's umask is honored, even if we are superuser
9636 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9638 # Create a directory
9641 genfile --stat=mode:777 directory
9644 tar cf arc directory
9646 # Change its permissions ...
9648 genfile --stat=mode:777 directory
9650 # ... and attempt to restore it twice
9651 tar xf arc directory
9652 genfile --stat=mode:777 directory
9654 tar xf arc directory
9655 genfile --stat=mode:777 directory
9657 # After both restores, the directory mode should be 755
9658 ) ) >"$at_stdout" 2>"$at_stder1"
9660 grep '^ *+' "$at_stder1" >&2
9661 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9666 TEST_TAR_FORMAT=oldgnu
9667 export TEST_TAR_FORMAT
9668 TAR_OPTIONS="-H oldgnu"
9676 # Make sure user's umask is honored, even if we are superuser
9677 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9679 # Create a directory
9682 genfile --stat=mode:777 directory
9685 tar cf arc directory
9687 # Change its permissions ...
9689 genfile --stat=mode:777 directory
9691 # ... and attempt to restore it twice
9692 tar xf arc directory
9693 genfile --stat=mode:777 directory
9695 tar xf arc directory
9696 genfile --stat=mode:777 directory
9698 # After both restores, the directory mode should be 755
9699 ) ) >"$at_stdout" 2>"$at_stderr"
9704 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9705 echo >>"$at_stdout"; echo "777
9709 " | $at_diff - "$at_stdout" || at_failed=:
9711 77) echo 77 > "$at_status_file"; exit 77;;
9713 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9719 echo 1 > "$at_status_file"
9726 echo "$at_srcdir/extrac06.at:36:
9729 TEST_TAR_FORMAT=ustar
9730 export TEST_TAR_FORMAT
9731 TAR_OPTIONS=\"-H ustar\"
9739 # Make sure user's umask is honored, even if we are superuser
9740 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9742 # Create a directory
9745 genfile --stat=mode:777 directory
9748 tar cf arc directory
9750 # Change its permissions ...
9752 genfile --stat=mode:777 directory
9754 # ... and attempt to restore it twice
9755 tar xf arc directory
9756 genfile --stat=mode:777 directory
9758 tar xf arc directory
9759 genfile --stat=mode:777 directory
9761 # After both restores, the directory mode should be 755
9763 echo extrac06.at:36 >"$at_check_line_file"
9766 if test -n "$at_traceon"; then
9767 echo 'Not enabling shell tracing (command contains an embedded newline)'
9770 if test -n "$at_trace_this"; then
9774 TEST_TAR_FORMAT=ustar
9775 export TEST_TAR_FORMAT
9776 TAR_OPTIONS="-H ustar"
9784 # Make sure user's umask is honored, even if we are superuser
9785 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9787 # Create a directory
9790 genfile --stat=mode:777 directory
9793 tar cf arc directory
9795 # Change its permissions ...
9797 genfile --stat=mode:777 directory
9799 # ... and attempt to restore it twice
9800 tar xf arc directory
9801 genfile --stat=mode:777 directory
9803 tar xf arc directory
9804 genfile --stat=mode:777 directory
9806 # After both restores, the directory mode should be 755
9807 ) ) >"$at_stdout" 2>"$at_stder1"
9809 grep '^ *+' "$at_stder1" >&2
9810 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9815 TEST_TAR_FORMAT=ustar
9816 export TEST_TAR_FORMAT
9817 TAR_OPTIONS="-H ustar"
9825 # Make sure user's umask is honored, even if we are superuser
9826 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9828 # Create a directory
9831 genfile --stat=mode:777 directory
9834 tar cf arc directory
9836 # Change its permissions ...
9838 genfile --stat=mode:777 directory
9840 # ... and attempt to restore it twice
9841 tar xf arc directory
9842 genfile --stat=mode:777 directory
9844 tar xf arc directory
9845 genfile --stat=mode:777 directory
9847 # After both restores, the directory mode should be 755
9848 ) ) >"$at_stdout" 2>"$at_stderr"
9853 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9854 echo >>"$at_stdout"; echo "777
9858 " | $at_diff - "$at_stdout" || at_failed=:
9860 77) echo 77 > "$at_status_file"; exit 77;;
9862 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9868 echo 1 > "$at_status_file"
9875 echo "$at_srcdir/extrac06.at:36:
9878 TEST_TAR_FORMAT=posix
9879 export TEST_TAR_FORMAT
9880 TAR_OPTIONS=\"-H posix\"
9888 # Make sure user's umask is honored, even if we are superuser
9889 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9891 # Create a directory
9894 genfile --stat=mode:777 directory
9897 tar cf arc directory
9899 # Change its permissions ...
9901 genfile --stat=mode:777 directory
9903 # ... and attempt to restore it twice
9904 tar xf arc directory
9905 genfile --stat=mode:777 directory
9907 tar xf arc directory
9908 genfile --stat=mode:777 directory
9910 # After both restores, the directory mode should be 755
9912 echo extrac06.at:36 >"$at_check_line_file"
9915 if test -n "$at_traceon"; then
9916 echo 'Not enabling shell tracing (command contains an embedded newline)'
9919 if test -n "$at_trace_this"; then
9923 TEST_TAR_FORMAT=posix
9924 export TEST_TAR_FORMAT
9925 TAR_OPTIONS="-H posix"
9933 # Make sure user's umask is honored, even if we are superuser
9934 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9936 # Create a directory
9939 genfile --stat=mode:777 directory
9942 tar cf arc directory
9944 # Change its permissions ...
9946 genfile --stat=mode:777 directory
9948 # ... and attempt to restore it twice
9949 tar xf arc directory
9950 genfile --stat=mode:777 directory
9952 tar xf arc directory
9953 genfile --stat=mode:777 directory
9955 # After both restores, the directory mode should be 755
9956 ) ) >"$at_stdout" 2>"$at_stder1"
9958 grep '^ *+' "$at_stder1" >&2
9959 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9964 TEST_TAR_FORMAT=posix
9965 export TEST_TAR_FORMAT
9966 TAR_OPTIONS="-H posix"
9974 # Make sure user's umask is honored, even if we are superuser
9975 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9977 # Create a directory
9980 genfile --stat=mode:777 directory
9983 tar cf arc directory
9985 # Change its permissions ...
9987 genfile --stat=mode:777 directory
9989 # ... and attempt to restore it twice
9990 tar xf arc directory
9991 genfile --stat=mode:777 directory
9993 tar xf arc directory
9994 genfile --stat=mode:777 directory
9996 # After both restores, the directory mode should be 755
9997 ) ) >"$at_stdout" 2>"$at_stderr"
10002 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10003 echo >>"$at_stdout"; echo "777
10007 " | $at_diff - "$at_stdout" || at_failed=:
10009 77) echo 77 > "$at_status_file"; exit 77;;
10011 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
10014 if $at_failed; then
10017 echo 1 > "$at_status_file"
10024 echo "$at_srcdir/extrac06.at:36:
10027 TEST_TAR_FORMAT=gnu
10028 export TEST_TAR_FORMAT
10029 TAR_OPTIONS=\"-H gnu\"
10037 # Make sure user's umask is honored, even if we are superuser
10038 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
10040 # Create a directory
10042 chmod 777 directory
10043 genfile --stat=mode:777 directory
10046 tar cf arc directory
10048 # Change its permissions ...
10049 chmod 755 directory
10050 genfile --stat=mode:777 directory
10052 # ... and attempt to restore it twice
10053 tar xf arc directory
10054 genfile --stat=mode:777 directory
10056 tar xf arc directory
10057 genfile --stat=mode:777 directory
10059 # After both restores, the directory mode should be 755
10061 echo extrac06.at:36 >"$at_check_line_file"
10064 if test -n "$at_traceon"; then
10065 echo 'Not enabling shell tracing (command contains an embedded newline)'
10068 if test -n "$at_trace_this"; then
10072 TEST_TAR_FORMAT=gnu
10073 export TEST_TAR_FORMAT
10074 TAR_OPTIONS="-H gnu"
10082 # Make sure user's umask is honored, even if we are superuser
10083 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
10085 # Create a directory
10087 chmod 777 directory
10088 genfile --stat=mode:777 directory
10091 tar cf arc directory
10093 # Change its permissions ...
10094 chmod 755 directory
10095 genfile --stat=mode:777 directory
10097 # ... and attempt to restore it twice
10098 tar xf arc directory
10099 genfile --stat=mode:777 directory
10101 tar xf arc directory
10102 genfile --stat=mode:777 directory
10104 # After both restores, the directory mode should be 755
10105 ) ) >"$at_stdout" 2>"$at_stder1"
10107 grep '^ *+' "$at_stder1" >&2
10108 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10113 TEST_TAR_FORMAT=gnu
10114 export TEST_TAR_FORMAT
10115 TAR_OPTIONS="-H gnu"
10123 # Make sure user's umask is honored, even if we are superuser
10124 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
10126 # Create a directory
10128 chmod 777 directory
10129 genfile --stat=mode:777 directory
10132 tar cf arc directory
10134 # Change its permissions ...
10135 chmod 755 directory
10136 genfile --stat=mode:777 directory
10138 # ... and attempt to restore it twice
10139 tar xf arc directory
10140 genfile --stat=mode:777 directory
10142 tar xf arc directory
10143 genfile --stat=mode:777 directory
10145 # After both restores, the directory mode should be 755
10146 ) ) >"$at_stdout" 2>"$at_stderr"
10151 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10152 echo >>"$at_stdout"; echo "777
10156 " | $at_diff - "$at_stdout" || at_failed=:
10158 77) echo 77 > "$at_status_file"; exit 77;;
10160 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
10163 if $at_failed; then
10166 echo 1 > "$at_status_file"
10176 $at_times_p && times >"$at_times_file"
10177 ) 5>&1 2>&1 | eval $at_tee_pipe
10178 at_status=`cat "$at_status_file"`
10181 24 ) # 24. extrac07.at:27: extracting symlinks to a read-only dir
10182 at_setup_line='extrac07.at:27'
10183 at_desc="extracting symlinks to a read-only dir"
10184 $at_quiet $ECHO_N " 24: extracting symlinks to a read-only dir $ECHO_C"
10186 test -f $XFAILFILE && at_xfail=yes
10187 echo "# -*- compilation -*-" >> "$at_group_log"
10189 echo "24. extrac07.at:27: testing ..."
10197 echo "$at_srcdir/extrac07.at:30:
10201 export TEST_TAR_FORMAT
10202 TAR_OPTIONS=\"-H v7\"
10206 echo Prepare the directory
10214 echo Create the archive
10215 tar cf archive dir || exit 1
10221 tar -C out -xvf archive
10223 echo extrac07.at:30 >"$at_check_line_file"
10226 if test -n "$at_traceon"; then
10227 echo 'Not enabling shell tracing (command contains an embedded newline)'
10230 if test -n "$at_trace_this"; then
10235 export TEST_TAR_FORMAT
10236 TAR_OPTIONS="-H v7"
10240 echo Prepare the directory
10248 echo Create the archive
10249 tar cf archive dir || exit 1
10255 tar -C out -xvf archive
10256 ) ) >"$at_stdout" 2>"$at_stder1"
10258 grep '^ *+' "$at_stder1" >&2
10259 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10265 export TEST_TAR_FORMAT
10266 TAR_OPTIONS="-H v7"
10270 echo Prepare the directory
10278 echo Create the archive
10279 tar cf archive dir || exit 1
10285 tar -C out -xvf archive
10286 ) ) >"$at_stdout" 2>"$at_stderr"
10291 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10292 echo >>"$at_stdout"; echo "Prepare the directory
10297 " | $at_diff - "$at_stdout" || at_failed=:
10299 77) echo 77 > "$at_status_file"; exit 77;;
10301 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10304 if $at_failed; then
10307 echo 1 > "$at_status_file"
10316 echo "$at_srcdir/extrac07.at:30:
10319 TEST_TAR_FORMAT=oldgnu
10320 export TEST_TAR_FORMAT
10321 TAR_OPTIONS=\"-H oldgnu\"
10325 echo Prepare the directory
10333 echo Create the archive
10334 tar cf archive dir || exit 1
10340 tar -C out -xvf archive
10342 echo extrac07.at:30 >"$at_check_line_file"
10345 if test -n "$at_traceon"; then
10346 echo 'Not enabling shell tracing (command contains an embedded newline)'
10349 if test -n "$at_trace_this"; then
10353 TEST_TAR_FORMAT=oldgnu
10354 export TEST_TAR_FORMAT
10355 TAR_OPTIONS="-H oldgnu"
10359 echo Prepare the directory
10367 echo Create the archive
10368 tar cf archive dir || exit 1
10374 tar -C out -xvf archive
10375 ) ) >"$at_stdout" 2>"$at_stder1"
10377 grep '^ *+' "$at_stder1" >&2
10378 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10383 TEST_TAR_FORMAT=oldgnu
10384 export TEST_TAR_FORMAT
10385 TAR_OPTIONS="-H oldgnu"
10389 echo Prepare the directory
10397 echo Create the archive
10398 tar cf archive dir || exit 1
10404 tar -C out -xvf archive
10405 ) ) >"$at_stdout" 2>"$at_stderr"
10410 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10411 echo >>"$at_stdout"; echo "Prepare the directory
10416 " | $at_diff - "$at_stdout" || at_failed=:
10418 77) echo 77 > "$at_status_file"; exit 77;;
10420 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10423 if $at_failed; then
10426 echo 1 > "$at_status_file"
10435 echo "$at_srcdir/extrac07.at:30:
10438 TEST_TAR_FORMAT=ustar
10439 export TEST_TAR_FORMAT
10440 TAR_OPTIONS=\"-H ustar\"
10444 echo Prepare the directory
10452 echo Create the archive
10453 tar cf archive dir || exit 1
10459 tar -C out -xvf archive
10461 echo extrac07.at:30 >"$at_check_line_file"
10464 if test -n "$at_traceon"; then
10465 echo 'Not enabling shell tracing (command contains an embedded newline)'
10468 if test -n "$at_trace_this"; then
10472 TEST_TAR_FORMAT=ustar
10473 export TEST_TAR_FORMAT
10474 TAR_OPTIONS="-H ustar"
10478 echo Prepare the directory
10486 echo Create the archive
10487 tar cf archive dir || exit 1
10493 tar -C out -xvf archive
10494 ) ) >"$at_stdout" 2>"$at_stder1"
10496 grep '^ *+' "$at_stder1" >&2
10497 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10502 TEST_TAR_FORMAT=ustar
10503 export TEST_TAR_FORMAT
10504 TAR_OPTIONS="-H ustar"
10508 echo Prepare the directory
10516 echo Create the archive
10517 tar cf archive dir || exit 1
10523 tar -C out -xvf archive
10524 ) ) >"$at_stdout" 2>"$at_stderr"
10529 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10530 echo >>"$at_stdout"; echo "Prepare the directory
10535 " | $at_diff - "$at_stdout" || at_failed=:
10537 77) echo 77 > "$at_status_file"; exit 77;;
10539 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10542 if $at_failed; then
10545 echo 1 > "$at_status_file"
10554 echo "$at_srcdir/extrac07.at:30:
10557 TEST_TAR_FORMAT=posix
10558 export TEST_TAR_FORMAT
10559 TAR_OPTIONS=\"-H posix\"
10563 echo Prepare the directory
10571 echo Create the archive
10572 tar cf archive dir || exit 1
10578 tar -C out -xvf archive
10580 echo extrac07.at:30 >"$at_check_line_file"
10583 if test -n "$at_traceon"; then
10584 echo 'Not enabling shell tracing (command contains an embedded newline)'
10587 if test -n "$at_trace_this"; then
10591 TEST_TAR_FORMAT=posix
10592 export TEST_TAR_FORMAT
10593 TAR_OPTIONS="-H posix"
10597 echo Prepare the directory
10605 echo Create the archive
10606 tar cf archive dir || exit 1
10612 tar -C out -xvf archive
10613 ) ) >"$at_stdout" 2>"$at_stder1"
10615 grep '^ *+' "$at_stder1" >&2
10616 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10621 TEST_TAR_FORMAT=posix
10622 export TEST_TAR_FORMAT
10623 TAR_OPTIONS="-H posix"
10627 echo Prepare the directory
10635 echo Create the archive
10636 tar cf archive dir || exit 1
10642 tar -C out -xvf archive
10643 ) ) >"$at_stdout" 2>"$at_stderr"
10648 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10649 echo >>"$at_stdout"; echo "Prepare the directory
10654 " | $at_diff - "$at_stdout" || at_failed=:
10656 77) echo 77 > "$at_status_file"; exit 77;;
10658 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10661 if $at_failed; then
10664 echo 1 > "$at_status_file"
10673 echo "$at_srcdir/extrac07.at:30:
10676 TEST_TAR_FORMAT=gnu
10677 export TEST_TAR_FORMAT
10678 TAR_OPTIONS=\"-H gnu\"
10682 echo Prepare the directory
10690 echo Create the archive
10691 tar cf archive dir || exit 1
10697 tar -C out -xvf archive
10699 echo extrac07.at:30 >"$at_check_line_file"
10702 if test -n "$at_traceon"; then
10703 echo 'Not enabling shell tracing (command contains an embedded newline)'
10706 if test -n "$at_trace_this"; then
10710 TEST_TAR_FORMAT=gnu
10711 export TEST_TAR_FORMAT
10712 TAR_OPTIONS="-H gnu"
10716 echo Prepare the directory
10724 echo Create the archive
10725 tar cf archive dir || exit 1
10731 tar -C out -xvf archive
10732 ) ) >"$at_stdout" 2>"$at_stder1"
10734 grep '^ *+' "$at_stder1" >&2
10735 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10740 TEST_TAR_FORMAT=gnu
10741 export TEST_TAR_FORMAT
10742 TAR_OPTIONS="-H gnu"
10746 echo Prepare the directory
10754 echo Create the archive
10755 tar cf archive dir || exit 1
10761 tar -C out -xvf archive
10762 ) ) >"$at_stdout" 2>"$at_stderr"
10767 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10768 echo >>"$at_stdout"; echo "Prepare the directory
10773 " | $at_diff - "$at_stdout" || at_failed=:
10775 77) echo 77 > "$at_status_file"; exit 77;;
10777 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10780 if $at_failed; then
10783 echo 1 > "$at_status_file"
10792 # Testing one format is enough
10795 $at_times_p && times >"$at_times_file"
10796 ) 5>&1 2>&1 | eval $at_tee_pipe
10797 at_status=`cat "$at_status_file"`
10800 25 ) # 25. gzip.at:23: gzip
10801 at_setup_line='gzip.at:23'
10803 $at_quiet $ECHO_N " 25: gzip $ECHO_C"
10805 echo "# -*- compilation -*-" >> "$at_group_log"
10807 echo "25. gzip.at:23: testing ..."
10815 echo "$at_srcdir/gzip.at:28:
10817 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10820 test \$? = 2 || exit 1
10822 echo gzip.at:28 >"$at_check_line_file"
10825 if test -n "$at_traceon"; then
10826 echo 'Not enabling shell tracing (command contains an embedded newline)'
10829 if test -n "$at_trace_this"; then
10832 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10835 test $? = 2 || exit 1
10836 ) >"$at_stdout" 2>"$at_stder1"
10838 grep '^ *+' "$at_stder1" >&2
10839 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10843 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10846 test $? = 2 || exit 1
10847 ) >"$at_stdout" 2>"$at_stderr"
10852 echo >>"$at_stderr"; echo "
10853 gzip: stdin: unexpected end of file
10854 tar: Child returned status 1
10855 tar: Exiting with failure status due to previous errors
10856 " | $at_diff - "$at_stderr" || at_failed=:
10857 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
10859 77) echo 77 > "$at_status_file"; exit 77;;
10861 *) echo "$at_srcdir/gzip.at:28: exit code was $at_status, expected 0"
10864 if $at_failed; then
10867 echo 1 > "$at_status_file"
10875 $at_times_p && times >"$at_times_file"
10876 ) 5>&1 2>&1 | eval $at_tee_pipe
10877 at_status=`cat "$at_status_file"`
10880 26 ) # 26. incremental.at:23: incremental
10881 at_setup_line='incremental.at:23'
10882 at_desc="incremental"
10883 $at_quiet $ECHO_N " 26: incremental $ECHO_C"
10885 test -f $XFAILFILE && at_xfail=yes
10886 echo "# -*- compilation -*-" >> "$at_group_log"
10888 echo "26. incremental.at:23: testing ..."
10896 echo "$at_srcdir/incremental.at:26:
10899 TEST_TAR_FORMAT=gnu
10900 export TEST_TAR_FORMAT
10901 TAR_OPTIONS=\"-H gnu\"
10906 echo x >structure/file
10908 # On Nextstep (and perhaps other 4.3BSD systems),
10909 # a newly created file's ctime isn't updated
10910 # until the next sync or stat operation on the file.
10911 ls -l structure/file >/dev/null
10913 # If the time of an initial backup and the creation time of a file contained
10914 # in that backup are the same, the file will be backed up again when an
10915 # incremental backup is done, because the incremental backup backs up
10916 # files created \`on or after' the initial backup time. Without the sleep
10917 # command, behaviour of tar becomes variable, depending whether the system
10918 # clock ticked over to the next second between creating the file and
10922 tar cf archive --listed=list structure
10923 tar cfv archive --listed=list structure
10925 # ReiserFS often offsets the timestamps of newly created files
10926 # 1 second to the past. Try to compensate for it, until a better
10927 # solution is found.
10929 echo y >structure/file
10930 tar cfv archive --listed=list structure
10932 echo incremental.at:26 >"$at_check_line_file"
10935 if test -n "$at_traceon"; then
10936 echo 'Not enabling shell tracing (command contains an embedded newline)'
10939 if test -n "$at_trace_this"; then
10943 TEST_TAR_FORMAT=gnu
10944 export TEST_TAR_FORMAT
10945 TAR_OPTIONS="-H gnu"
10950 echo x >structure/file
10952 # On Nextstep (and perhaps other 4.3BSD systems),
10953 # a newly created file's ctime isn't updated
10954 # until the next sync or stat operation on the file.
10955 ls -l structure/file >/dev/null
10957 # If the time of an initial backup and the creation time of a file contained
10958 # in that backup are the same, the file will be backed up again when an
10959 # incremental backup is done, because the incremental backup backs up
10960 # files created `on or after' the initial backup time. Without the sleep
10961 # command, behaviour of tar becomes variable, depending whether the system
10962 # clock ticked over to the next second between creating the file and
10966 tar cf archive --listed=list structure
10967 tar cfv archive --listed=list structure
10969 # ReiserFS often offsets the timestamps of newly created files
10970 # 1 second to the past. Try to compensate for it, until a better
10971 # solution is found.
10973 echo y >structure/file
10974 tar cfv archive --listed=list structure
10975 ) ) >"$at_stdout" 2>"$at_stder1"
10977 grep '^ *+' "$at_stder1" >&2
10978 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10983 TEST_TAR_FORMAT=gnu
10984 export TEST_TAR_FORMAT
10985 TAR_OPTIONS="-H gnu"
10990 echo x >structure/file
10992 # On Nextstep (and perhaps other 4.3BSD systems),
10993 # a newly created file's ctime isn't updated
10994 # until the next sync or stat operation on the file.
10995 ls -l structure/file >/dev/null
10997 # If the time of an initial backup and the creation time of a file contained
10998 # in that backup are the same, the file will be backed up again when an
10999 # incremental backup is done, because the incremental backup backs up
11000 # files created `on or after' the initial backup time. Without the sleep
11001 # command, behaviour of tar becomes variable, depending whether the system
11002 # clock ticked over to the next second between creating the file and
11006 tar cf archive --listed=list structure
11007 tar cfv archive --listed=list structure
11009 # ReiserFS often offsets the timestamps of newly created files
11010 # 1 second to the past. Try to compensate for it, until a better
11011 # solution is found.
11013 echo y >structure/file
11014 tar cfv archive --listed=list structure
11015 ) ) >"$at_stdout" 2>"$at_stderr"
11020 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11021 echo >>"$at_stdout"; echo "structure/
11025 " | $at_diff - "$at_stdout" || at_failed=:
11027 77) echo 77 > "$at_status_file"; exit 77;;
11029 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
11032 if $at_failed; then
11035 echo 1 > "$at_status_file"
11042 echo "$at_srcdir/incremental.at:26:
11045 TEST_TAR_FORMAT=oldgnu
11046 export TEST_TAR_FORMAT
11047 TAR_OPTIONS=\"-H oldgnu\"
11052 echo x >structure/file
11054 # On Nextstep (and perhaps other 4.3BSD systems),
11055 # a newly created file's ctime isn't updated
11056 # until the next sync or stat operation on the file.
11057 ls -l structure/file >/dev/null
11059 # If the time of an initial backup and the creation time of a file contained
11060 # in that backup are the same, the file will be backed up again when an
11061 # incremental backup is done, because the incremental backup backs up
11062 # files created \`on or after' the initial backup time. Without the sleep
11063 # command, behaviour of tar becomes variable, depending whether the system
11064 # clock ticked over to the next second between creating the file and
11068 tar cf archive --listed=list structure
11069 tar cfv archive --listed=list structure
11071 # ReiserFS often offsets the timestamps of newly created files
11072 # 1 second to the past. Try to compensate for it, until a better
11073 # solution is found.
11075 echo y >structure/file
11076 tar cfv archive --listed=list structure
11078 echo incremental.at:26 >"$at_check_line_file"
11081 if test -n "$at_traceon"; then
11082 echo 'Not enabling shell tracing (command contains an embedded newline)'
11085 if test -n "$at_trace_this"; then
11089 TEST_TAR_FORMAT=oldgnu
11090 export TEST_TAR_FORMAT
11091 TAR_OPTIONS="-H oldgnu"
11096 echo x >structure/file
11098 # On Nextstep (and perhaps other 4.3BSD systems),
11099 # a newly created file's ctime isn't updated
11100 # until the next sync or stat operation on the file.
11101 ls -l structure/file >/dev/null
11103 # If the time of an initial backup and the creation time of a file contained
11104 # in that backup are the same, the file will be backed up again when an
11105 # incremental backup is done, because the incremental backup backs up
11106 # files created `on or after' the initial backup time. Without the sleep
11107 # command, behaviour of tar becomes variable, depending whether the system
11108 # clock ticked over to the next second between creating the file and
11112 tar cf archive --listed=list structure
11113 tar cfv archive --listed=list structure
11115 # ReiserFS often offsets the timestamps of newly created files
11116 # 1 second to the past. Try to compensate for it, until a better
11117 # solution is found.
11119 echo y >structure/file
11120 tar cfv archive --listed=list structure
11121 ) ) >"$at_stdout" 2>"$at_stder1"
11123 grep '^ *+' "$at_stder1" >&2
11124 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11129 TEST_TAR_FORMAT=oldgnu
11130 export TEST_TAR_FORMAT
11131 TAR_OPTIONS="-H oldgnu"
11136 echo x >structure/file
11138 # On Nextstep (and perhaps other 4.3BSD systems),
11139 # a newly created file's ctime isn't updated
11140 # until the next sync or stat operation on the file.
11141 ls -l structure/file >/dev/null
11143 # If the time of an initial backup and the creation time of a file contained
11144 # in that backup are the same, the file will be backed up again when an
11145 # incremental backup is done, because the incremental backup backs up
11146 # files created `on or after' the initial backup time. Without the sleep
11147 # command, behaviour of tar becomes variable, depending whether the system
11148 # clock ticked over to the next second between creating the file and
11152 tar cf archive --listed=list structure
11153 tar cfv archive --listed=list structure
11155 # ReiserFS often offsets the timestamps of newly created files
11156 # 1 second to the past. Try to compensate for it, until a better
11157 # solution is found.
11159 echo y >structure/file
11160 tar cfv archive --listed=list structure
11161 ) ) >"$at_stdout" 2>"$at_stderr"
11166 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11167 echo >>"$at_stdout"; echo "structure/
11171 " | $at_diff - "$at_stdout" || at_failed=:
11173 77) echo 77 > "$at_status_file"; exit 77;;
11175 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
11178 if $at_failed; then
11181 echo 1 > "$at_status_file"
11188 echo "$at_srcdir/incremental.at:26:
11191 TEST_TAR_FORMAT=posix
11192 export TEST_TAR_FORMAT
11193 TAR_OPTIONS=\"-H posix\"
11198 echo x >structure/file
11200 # On Nextstep (and perhaps other 4.3BSD systems),
11201 # a newly created file's ctime isn't updated
11202 # until the next sync or stat operation on the file.
11203 ls -l structure/file >/dev/null
11205 # If the time of an initial backup and the creation time of a file contained
11206 # in that backup are the same, the file will be backed up again when an
11207 # incremental backup is done, because the incremental backup backs up
11208 # files created \`on or after' the initial backup time. Without the sleep
11209 # command, behaviour of tar becomes variable, depending whether the system
11210 # clock ticked over to the next second between creating the file and
11214 tar cf archive --listed=list structure
11215 tar cfv archive --listed=list structure
11217 # ReiserFS often offsets the timestamps of newly created files
11218 # 1 second to the past. Try to compensate for it, until a better
11219 # solution is found.
11221 echo y >structure/file
11222 tar cfv archive --listed=list structure
11224 echo incremental.at:26 >"$at_check_line_file"
11227 if test -n "$at_traceon"; then
11228 echo 'Not enabling shell tracing (command contains an embedded newline)'
11231 if test -n "$at_trace_this"; then
11235 TEST_TAR_FORMAT=posix
11236 export TEST_TAR_FORMAT
11237 TAR_OPTIONS="-H posix"
11242 echo x >structure/file
11244 # On Nextstep (and perhaps other 4.3BSD systems),
11245 # a newly created file's ctime isn't updated
11246 # until the next sync or stat operation on the file.
11247 ls -l structure/file >/dev/null
11249 # If the time of an initial backup and the creation time of a file contained
11250 # in that backup are the same, the file will be backed up again when an
11251 # incremental backup is done, because the incremental backup backs up
11252 # files created `on or after' the initial backup time. Without the sleep
11253 # command, behaviour of tar becomes variable, depending whether the system
11254 # clock ticked over to the next second between creating the file and
11258 tar cf archive --listed=list structure
11259 tar cfv archive --listed=list structure
11261 # ReiserFS often offsets the timestamps of newly created files
11262 # 1 second to the past. Try to compensate for it, until a better
11263 # solution is found.
11265 echo y >structure/file
11266 tar cfv archive --listed=list structure
11267 ) ) >"$at_stdout" 2>"$at_stder1"
11269 grep '^ *+' "$at_stder1" >&2
11270 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11275 TEST_TAR_FORMAT=posix
11276 export TEST_TAR_FORMAT
11277 TAR_OPTIONS="-H posix"
11282 echo x >structure/file
11284 # On Nextstep (and perhaps other 4.3BSD systems),
11285 # a newly created file's ctime isn't updated
11286 # until the next sync or stat operation on the file.
11287 ls -l structure/file >/dev/null
11289 # If the time of an initial backup and the creation time of a file contained
11290 # in that backup are the same, the file will be backed up again when an
11291 # incremental backup is done, because the incremental backup backs up
11292 # files created `on or after' the initial backup time. Without the sleep
11293 # command, behaviour of tar becomes variable, depending whether the system
11294 # clock ticked over to the next second between creating the file and
11298 tar cf archive --listed=list structure
11299 tar cfv archive --listed=list structure
11301 # ReiserFS often offsets the timestamps of newly created files
11302 # 1 second to the past. Try to compensate for it, until a better
11303 # solution is found.
11305 echo y >structure/file
11306 tar cfv archive --listed=list structure
11307 ) ) >"$at_stdout" 2>"$at_stderr"
11312 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11313 echo >>"$at_stdout"; echo "structure/
11317 " | $at_diff - "$at_stdout" || at_failed=:
11319 77) echo 77 > "$at_status_file"; exit 77;;
11321 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
11324 if $at_failed; then
11327 echo 1 > "$at_status_file"
11337 $at_times_p && times >"$at_times_file"
11338 ) 5>&1 2>&1 | eval $at_tee_pipe
11339 at_status=`cat "$at_status_file"`
11342 27 ) # 27. incr01.at:27: restore broken symlinks from incremental
11343 at_setup_line='incr01.at:27'
11344 at_desc="restore broken symlinks from incremental"
11345 $at_quiet $ECHO_N " 27: restore broken symlinks from incremental $ECHO_C"
11347 test -f $XFAILFILE && at_xfail=yes
11348 echo "# -*- compilation -*-" >> "$at_group_log"
11350 echo "27. incr01.at:27: testing ..."
11358 echo "$at_srcdir/incr01.at:30:
11361 TEST_TAR_FORMAT=gnu
11362 export TEST_TAR_FORMAT
11363 TAR_OPTIONS=\"-H gnu\"
11368 \$as_ln_s foo directory/bar
11370 tar -cf archive.0 -g db directory
11372 tar -cf archive.1 -g db directory
11376 tar xvfg archive.0 /dev/null
11378 tar xvfg archive.1 /dev/null
11380 echo incr01.at:30 >"$at_check_line_file"
11383 if test -n "$at_traceon"; then
11384 echo 'Not enabling shell tracing (command contains an embedded newline)'
11387 if test -n "$at_trace_this"; then
11391 TEST_TAR_FORMAT=gnu
11392 export TEST_TAR_FORMAT
11393 TAR_OPTIONS="-H gnu"
11398 $as_ln_s foo directory/bar
11400 tar -cf archive.0 -g db directory
11402 tar -cf archive.1 -g db directory
11406 tar xvfg archive.0 /dev/null
11408 tar xvfg archive.1 /dev/null
11409 ) ) >"$at_stdout" 2>"$at_stder1"
11411 grep '^ *+' "$at_stder1" >&2
11412 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11417 TEST_TAR_FORMAT=gnu
11418 export TEST_TAR_FORMAT
11419 TAR_OPTIONS="-H gnu"
11424 $as_ln_s foo directory/bar
11426 tar -cf archive.0 -g db directory
11428 tar -cf archive.1 -g db directory
11432 tar xvfg archive.0 /dev/null
11434 tar xvfg archive.1 /dev/null
11435 ) ) >"$at_stdout" 2>"$at_stderr"
11440 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11441 echo >>"$at_stdout"; echo "directory/
11445 tar: Deleting \`directory/bar'
11446 " | $at_diff - "$at_stdout" || at_failed=:
11448 77) echo 77 > "$at_status_file"; exit 77;;
11450 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11453 if $at_failed; then
11456 echo 1 > "$at_status_file"
11463 echo "$at_srcdir/incr01.at:30:
11466 TEST_TAR_FORMAT=oldgnu
11467 export TEST_TAR_FORMAT
11468 TAR_OPTIONS=\"-H oldgnu\"
11473 \$as_ln_s foo directory/bar
11475 tar -cf archive.0 -g db directory
11477 tar -cf archive.1 -g db directory
11481 tar xvfg archive.0 /dev/null
11483 tar xvfg archive.1 /dev/null
11485 echo incr01.at:30 >"$at_check_line_file"
11488 if test -n "$at_traceon"; then
11489 echo 'Not enabling shell tracing (command contains an embedded newline)'
11492 if test -n "$at_trace_this"; then
11496 TEST_TAR_FORMAT=oldgnu
11497 export TEST_TAR_FORMAT
11498 TAR_OPTIONS="-H oldgnu"
11503 $as_ln_s foo directory/bar
11505 tar -cf archive.0 -g db directory
11507 tar -cf archive.1 -g db directory
11511 tar xvfg archive.0 /dev/null
11513 tar xvfg archive.1 /dev/null
11514 ) ) >"$at_stdout" 2>"$at_stder1"
11516 grep '^ *+' "$at_stder1" >&2
11517 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11522 TEST_TAR_FORMAT=oldgnu
11523 export TEST_TAR_FORMAT
11524 TAR_OPTIONS="-H oldgnu"
11529 $as_ln_s foo directory/bar
11531 tar -cf archive.0 -g db directory
11533 tar -cf archive.1 -g db directory
11537 tar xvfg archive.0 /dev/null
11539 tar xvfg archive.1 /dev/null
11540 ) ) >"$at_stdout" 2>"$at_stderr"
11545 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11546 echo >>"$at_stdout"; echo "directory/
11550 tar: Deleting \`directory/bar'
11551 " | $at_diff - "$at_stdout" || at_failed=:
11553 77) echo 77 > "$at_status_file"; exit 77;;
11555 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11558 if $at_failed; then
11561 echo 1 > "$at_status_file"
11568 echo "$at_srcdir/incr01.at:30:
11571 TEST_TAR_FORMAT=posix
11572 export TEST_TAR_FORMAT
11573 TAR_OPTIONS=\"-H posix\"
11578 \$as_ln_s foo directory/bar
11580 tar -cf archive.0 -g db directory
11582 tar -cf archive.1 -g db directory
11586 tar xvfg archive.0 /dev/null
11588 tar xvfg archive.1 /dev/null
11590 echo incr01.at:30 >"$at_check_line_file"
11593 if test -n "$at_traceon"; then
11594 echo 'Not enabling shell tracing (command contains an embedded newline)'
11597 if test -n "$at_trace_this"; then
11601 TEST_TAR_FORMAT=posix
11602 export TEST_TAR_FORMAT
11603 TAR_OPTIONS="-H posix"
11608 $as_ln_s foo directory/bar
11610 tar -cf archive.0 -g db directory
11612 tar -cf archive.1 -g db directory
11616 tar xvfg archive.0 /dev/null
11618 tar xvfg archive.1 /dev/null
11619 ) ) >"$at_stdout" 2>"$at_stder1"
11621 grep '^ *+' "$at_stder1" >&2
11622 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11627 TEST_TAR_FORMAT=posix
11628 export TEST_TAR_FORMAT
11629 TAR_OPTIONS="-H posix"
11634 $as_ln_s foo directory/bar
11636 tar -cf archive.0 -g db directory
11638 tar -cf archive.1 -g db directory
11642 tar xvfg archive.0 /dev/null
11644 tar xvfg archive.1 /dev/null
11645 ) ) >"$at_stdout" 2>"$at_stderr"
11650 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11651 echo >>"$at_stdout"; echo "directory/
11655 tar: Deleting \`directory/bar'
11656 " | $at_diff - "$at_stdout" || at_failed=:
11658 77) echo 77 > "$at_status_file"; exit 77;;
11660 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11663 if $at_failed; then
11666 echo 1 > "$at_status_file"
11676 $at_times_p && times >"$at_times_file"
11677 ) 5>&1 2>&1 | eval $at_tee_pipe
11678 at_status=`cat "$at_status_file"`
11681 28 ) # 28. incr02.at:32: restoring timestamps from incremental
11682 at_setup_line='incr02.at:32'
11683 at_desc="restoring timestamps from incremental"
11684 $at_quiet $ECHO_N " 28: restoring timestamps from incremental $ECHO_C"
11686 test -f $XFAILFILE && at_xfail=yes
11687 echo "# -*- compilation -*-" >> "$at_group_log"
11689 echo "28. incr02.at:32: testing ..."
11697 echo "$at_srcdir/incr02.at:35:
11700 TEST_TAR_FORMAT=gnu
11701 export TEST_TAR_FORMAT
11702 TAR_OPTIONS=\"-H gnu\"
11706 # Create directory structure
11710 genfile --length 10 --file dir/subdir1/file
11712 # Save mtime for later comparison
11713 genfile --stat=mtime dir/subdir1 > ts
11715 # Create an archive. Using incremental mode makes sure the
11716 # archive will have a directory-first member ordering,
11721 # dir/subdir1/foofile
11723 # When restoring from this directory structure, \`dir/subdir2/' used to
11724 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11725 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11726 # latter clobbered the directory timestamp.
11728 tar -cf archive -g db dir
11730 # Move away the directory
11733 # Wait enough time for timestamps to differ in case of failure.
11736 # Restore the directory
11737 tar -xf archive dir
11739 # Check the timestamp
11740 genfile --stat=mtime dir/subdir1 | diff ts -
11742 echo incr02.at:35 >"$at_check_line_file"
11745 if test -n "$at_traceon"; then
11746 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11749 if test -n "$at_trace_this"; then
11753 TEST_TAR_FORMAT=gnu
11754 export TEST_TAR_FORMAT
11755 TAR_OPTIONS="-H gnu"
11759 # Create directory structure
11763 genfile --length 10 --file dir/subdir1/file
11765 # Save mtime for later comparison
11766 genfile --stat=mtime dir/subdir1 > ts
11768 # Create an archive. Using incremental mode makes sure the
11769 # archive will have a directory-first member ordering,
11774 # dir/subdir1/foofile
11776 # When restoring from this directory structure, `dir/subdir2/' used to
11777 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11778 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11779 # latter clobbered the directory timestamp.
11781 tar -cf archive -g db dir
11783 # Move away the directory
11786 # Wait enough time for timestamps to differ in case of failure.
11789 # Restore the directory
11790 tar -xf archive dir
11792 # Check the timestamp
11793 genfile --stat=mtime dir/subdir1 | diff ts -
11794 ) ) >"$at_stdout" 2>"$at_stder1"
11796 grep '^ *+' "$at_stder1" >&2
11797 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11802 TEST_TAR_FORMAT=gnu
11803 export TEST_TAR_FORMAT
11804 TAR_OPTIONS="-H gnu"
11808 # Create directory structure
11812 genfile --length 10 --file dir/subdir1/file
11814 # Save mtime for later comparison
11815 genfile --stat=mtime dir/subdir1 > ts
11817 # Create an archive. Using incremental mode makes sure the
11818 # archive will have a directory-first member ordering,
11823 # dir/subdir1/foofile
11825 # When restoring from this directory structure, `dir/subdir2/' used to
11826 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11827 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11828 # latter clobbered the directory timestamp.
11830 tar -cf archive -g db dir
11832 # Move away the directory
11835 # Wait enough time for timestamps to differ in case of failure.
11838 # Restore the directory
11839 tar -xf archive dir
11841 # Check the timestamp
11842 genfile --stat=mtime dir/subdir1 | diff ts -
11843 ) ) >"$at_stdout" 2>"$at_stderr"
11848 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11849 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11851 77) echo 77 > "$at_status_file"; exit 77;;
11853 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11856 if $at_failed; then
11859 echo 1 > "$at_status_file"
11866 echo "$at_srcdir/incr02.at:35:
11869 TEST_TAR_FORMAT=oldgnu
11870 export TEST_TAR_FORMAT
11871 TAR_OPTIONS=\"-H oldgnu\"
11875 # Create directory structure
11879 genfile --length 10 --file dir/subdir1/file
11881 # Save mtime for later comparison
11882 genfile --stat=mtime dir/subdir1 > ts
11884 # Create an archive. Using incremental mode makes sure the
11885 # archive will have a directory-first member ordering,
11890 # dir/subdir1/foofile
11892 # When restoring from this directory structure, \`dir/subdir2/' used to
11893 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11894 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11895 # latter clobbered the directory timestamp.
11897 tar -cf archive -g db dir
11899 # Move away the directory
11902 # Wait enough time for timestamps to differ in case of failure.
11905 # Restore the directory
11906 tar -xf archive dir
11908 # Check the timestamp
11909 genfile --stat=mtime dir/subdir1 | diff ts -
11911 echo incr02.at:35 >"$at_check_line_file"
11914 if test -n "$at_traceon"; then
11915 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11918 if test -n "$at_trace_this"; then
11922 TEST_TAR_FORMAT=oldgnu
11923 export TEST_TAR_FORMAT
11924 TAR_OPTIONS="-H oldgnu"
11928 # Create directory structure
11932 genfile --length 10 --file dir/subdir1/file
11934 # Save mtime for later comparison
11935 genfile --stat=mtime dir/subdir1 > ts
11937 # Create an archive. Using incremental mode makes sure the
11938 # archive will have a directory-first member ordering,
11943 # dir/subdir1/foofile
11945 # When restoring from this directory structure, `dir/subdir2/' used to
11946 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11947 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11948 # latter clobbered the directory timestamp.
11950 tar -cf archive -g db dir
11952 # Move away the directory
11955 # Wait enough time for timestamps to differ in case of failure.
11958 # Restore the directory
11959 tar -xf archive dir
11961 # Check the timestamp
11962 genfile --stat=mtime dir/subdir1 | diff ts -
11963 ) ) >"$at_stdout" 2>"$at_stder1"
11965 grep '^ *+' "$at_stder1" >&2
11966 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11971 TEST_TAR_FORMAT=oldgnu
11972 export TEST_TAR_FORMAT
11973 TAR_OPTIONS="-H oldgnu"
11977 # Create directory structure
11981 genfile --length 10 --file dir/subdir1/file
11983 # Save mtime for later comparison
11984 genfile --stat=mtime dir/subdir1 > ts
11986 # Create an archive. Using incremental mode makes sure the
11987 # archive will have a directory-first member ordering,
11992 # dir/subdir1/foofile
11994 # When restoring from this directory structure, `dir/subdir2/' used to
11995 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11996 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11997 # latter clobbered the directory timestamp.
11999 tar -cf archive -g db dir
12001 # Move away the directory
12004 # Wait enough time for timestamps to differ in case of failure.
12007 # Restore the directory
12008 tar -xf archive dir
12010 # Check the timestamp
12011 genfile --stat=mtime dir/subdir1 | diff ts -
12012 ) ) >"$at_stdout" 2>"$at_stderr"
12017 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12018 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
12020 77) echo 77 > "$at_status_file"; exit 77;;
12022 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
12025 if $at_failed; then
12028 echo 1 > "$at_status_file"
12035 echo "$at_srcdir/incr02.at:35:
12038 TEST_TAR_FORMAT=posix
12039 export TEST_TAR_FORMAT
12040 TAR_OPTIONS=\"-H posix\"
12044 # Create directory structure
12048 genfile --length 10 --file dir/subdir1/file
12050 # Save mtime for later comparison
12051 genfile --stat=mtime dir/subdir1 > ts
12053 # Create an archive. Using incremental mode makes sure the
12054 # archive will have a directory-first member ordering,
12059 # dir/subdir1/foofile
12061 # When restoring from this directory structure, \`dir/subdir2/' used to
12062 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
12063 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
12064 # latter clobbered the directory timestamp.
12066 tar -cf archive -g db dir
12068 # Move away the directory
12071 # Wait enough time for timestamps to differ in case of failure.
12074 # Restore the directory
12075 tar -xf archive dir
12077 # Check the timestamp
12078 genfile --stat=mtime dir/subdir1 | diff ts -
12080 echo incr02.at:35 >"$at_check_line_file"
12083 if test -n "$at_traceon"; then
12084 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
12087 if test -n "$at_trace_this"; then
12091 TEST_TAR_FORMAT=posix
12092 export TEST_TAR_FORMAT
12093 TAR_OPTIONS="-H posix"
12097 # Create directory structure
12101 genfile --length 10 --file dir/subdir1/file
12103 # Save mtime for later comparison
12104 genfile --stat=mtime dir/subdir1 > ts
12106 # Create an archive. Using incremental mode makes sure the
12107 # archive will have a directory-first member ordering,
12112 # dir/subdir1/foofile
12114 # When restoring from this directory structure, `dir/subdir2/' used to
12115 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
12116 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
12117 # latter clobbered the directory timestamp.
12119 tar -cf archive -g db dir
12121 # Move away the directory
12124 # Wait enough time for timestamps to differ in case of failure.
12127 # Restore the directory
12128 tar -xf archive dir
12130 # Check the timestamp
12131 genfile --stat=mtime dir/subdir1 | diff ts -
12132 ) ) >"$at_stdout" 2>"$at_stder1"
12134 grep '^ *+' "$at_stder1" >&2
12135 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12140 TEST_TAR_FORMAT=posix
12141 export TEST_TAR_FORMAT
12142 TAR_OPTIONS="-H posix"
12146 # Create directory structure
12150 genfile --length 10 --file dir/subdir1/file
12152 # Save mtime for later comparison
12153 genfile --stat=mtime dir/subdir1 > ts
12155 # Create an archive. Using incremental mode makes sure the
12156 # archive will have a directory-first member ordering,
12161 # dir/subdir1/foofile
12163 # When restoring from this directory structure, `dir/subdir2/' used to
12164 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
12165 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
12166 # latter clobbered the directory timestamp.
12168 tar -cf archive -g db dir
12170 # Move away the directory
12173 # Wait enough time for timestamps to differ in case of failure.
12176 # Restore the directory
12177 tar -xf archive dir
12179 # Check the timestamp
12180 genfile --stat=mtime dir/subdir1 | diff ts -
12181 ) ) >"$at_stdout" 2>"$at_stderr"
12186 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12187 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
12189 77) echo 77 > "$at_status_file"; exit 77;;
12191 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
12194 if $at_failed; then
12197 echo 1 > "$at_status_file"
12207 $at_times_p && times >"$at_times_file"
12208 ) 5>&1 2>&1 | eval $at_tee_pipe
12209 at_status=`cat "$at_status_file"`
12212 29 ) # 29. listed01.at:26: --listed for individual files
12213 at_setup_line='listed01.at:26'
12214 at_desc="--listed for individual files"
12215 $at_quiet $ECHO_N " 29: --listed for individual files $ECHO_C"
12217 test -f $XFAILFILE && at_xfail=yes
12218 echo "# -*- compilation -*-" >> "$at_group_log"
12220 echo "29. listed01.at:26: testing ..."
12228 echo "$at_srcdir/listed01.at:29:
12231 TEST_TAR_FORMAT=gnu
12232 export TEST_TAR_FORMAT
12233 TAR_OPTIONS=\"-H gnu\"
12238 genfile --length 10240 --pattern zeros --file directory/file1
12239 # Let the things settle
12243 --file=archive.1 \\
12244 --listed-incremental=listing \\
12247 tar tf archive.1 || exit 1
12251 genfile --length 10240 --pattern zeros --file directory/file2
12256 --file=archive.2 \\
12257 --listed-incremental=listing \\
12258 directory/file* || exit 1
12260 tar tf archive.2 || exit 1
12262 echo listed01.at:29 >"$at_check_line_file"
12265 if test -n "$at_traceon"; then
12266 echo 'Not enabling shell tracing (command contains an embedded newline)'
12269 if test -n "$at_trace_this"; then
12273 TEST_TAR_FORMAT=gnu
12274 export TEST_TAR_FORMAT
12275 TAR_OPTIONS="-H gnu"
12280 genfile --length 10240 --pattern zeros --file directory/file1
12281 # Let the things settle
12286 --listed-incremental=listing \
12289 tar tf archive.1 || exit 1
12293 genfile --length 10240 --pattern zeros --file directory/file2
12299 --listed-incremental=listing \
12300 directory/file* || exit 1
12302 tar tf archive.2 || exit 1
12303 ) ) >"$at_stdout" 2>"$at_stder1"
12305 grep '^ *+' "$at_stder1" >&2
12306 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12311 TEST_TAR_FORMAT=gnu
12312 export TEST_TAR_FORMAT
12313 TAR_OPTIONS="-H gnu"
12318 genfile --length 10240 --pattern zeros --file directory/file1
12319 # Let the things settle
12324 --listed-incremental=listing \
12327 tar tf archive.1 || exit 1
12331 genfile --length 10240 --pattern zeros --file directory/file2
12337 --listed-incremental=listing \
12338 directory/file* || exit 1
12340 tar tf archive.2 || exit 1
12341 ) ) >"$at_stdout" 2>"$at_stderr"
12346 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12347 echo >>"$at_stdout"; echo "directory/file1
12350 " | $at_diff - "$at_stdout" || at_failed=:
12352 77) echo 77 > "$at_status_file"; exit 77;;
12354 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12357 if $at_failed; then
12360 echo 1 > "$at_status_file"
12367 echo "$at_srcdir/listed01.at:29:
12370 TEST_TAR_FORMAT=oldgnu
12371 export TEST_TAR_FORMAT
12372 TAR_OPTIONS=\"-H oldgnu\"
12377 genfile --length 10240 --pattern zeros --file directory/file1
12378 # Let the things settle
12382 --file=archive.1 \\
12383 --listed-incremental=listing \\
12386 tar tf archive.1 || exit 1
12390 genfile --length 10240 --pattern zeros --file directory/file2
12395 --file=archive.2 \\
12396 --listed-incremental=listing \\
12397 directory/file* || exit 1
12399 tar tf archive.2 || exit 1
12401 echo listed01.at:29 >"$at_check_line_file"
12404 if test -n "$at_traceon"; then
12405 echo 'Not enabling shell tracing (command contains an embedded newline)'
12408 if test -n "$at_trace_this"; then
12412 TEST_TAR_FORMAT=oldgnu
12413 export TEST_TAR_FORMAT
12414 TAR_OPTIONS="-H oldgnu"
12419 genfile --length 10240 --pattern zeros --file directory/file1
12420 # Let the things settle
12425 --listed-incremental=listing \
12428 tar tf archive.1 || exit 1
12432 genfile --length 10240 --pattern zeros --file directory/file2
12438 --listed-incremental=listing \
12439 directory/file* || exit 1
12441 tar tf archive.2 || exit 1
12442 ) ) >"$at_stdout" 2>"$at_stder1"
12444 grep '^ *+' "$at_stder1" >&2
12445 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12450 TEST_TAR_FORMAT=oldgnu
12451 export TEST_TAR_FORMAT
12452 TAR_OPTIONS="-H oldgnu"
12457 genfile --length 10240 --pattern zeros --file directory/file1
12458 # Let the things settle
12463 --listed-incremental=listing \
12466 tar tf archive.1 || exit 1
12470 genfile --length 10240 --pattern zeros --file directory/file2
12476 --listed-incremental=listing \
12477 directory/file* || exit 1
12479 tar tf archive.2 || exit 1
12480 ) ) >"$at_stdout" 2>"$at_stderr"
12485 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12486 echo >>"$at_stdout"; echo "directory/file1
12489 " | $at_diff - "$at_stdout" || at_failed=:
12491 77) echo 77 > "$at_status_file"; exit 77;;
12493 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12496 if $at_failed; then
12499 echo 1 > "$at_status_file"
12509 $at_times_p && times >"$at_times_file"
12510 ) 5>&1 2>&1 | eval $at_tee_pipe
12511 at_status=`cat "$at_status_file"`
12514 30 ) # 30. listed02.at:28: working --listed
12515 at_setup_line='listed02.at:28'
12516 at_desc="working --listed"
12517 $at_quiet $ECHO_N " 30: working --listed $ECHO_C"
12519 test -f $XFAILFILE && at_xfail=yes
12520 echo "# -*- compilation -*-" >> "$at_group_log"
12522 echo "30. listed02.at:28: testing ..."
12530 echo "$at_srcdir/listed02.at:31:
12533 TEST_TAR_FORMAT=gnu
12534 export TEST_TAR_FORMAT
12535 TAR_OPTIONS=\"-H gnu\"
12540 test -z "`sort < /dev/null 2>&1`" || exit 77
12542 echo Create directories
12551 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12553 echo File \$file > \$file
12558 echo Creating main archive
12559 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12561 # The above prints two lines to stderr announcing the new directories c0 and c1.
12562 # Ensure that they appear in this script's stderr in sorted order.
12563 sort err 1>&2; rm -f err
12566 echo Modifying filesystem
12573 echo Directory contents
12574 find tart -print | sort 2>/dev/null
12577 echo Creating incremental archive
12578 cp -p tart.incr1 tart.incr2
12579 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12584 echo Extracting main archive
12585 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12586 echo Extracting incremental archive
12587 # This command should produce three messages about deletion
12588 # of the existing files, that may appear in any order. Piping
12589 # to sort makes sure we don't depend on any particular ordering.
12590 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12593 find tart -print | sort 2>/dev/null
12595 echo listed02.at:31 >"$at_check_line_file"
12598 if test -n "$at_traceon"; then
12599 echo 'Not enabling shell tracing (command contains an embedded newline)'
12602 if test -n "$at_trace_this"; then
12606 TEST_TAR_FORMAT=gnu
12607 export TEST_TAR_FORMAT
12608 TAR_OPTIONS="-H gnu"
12613 test -z "`sort < /dev/null 2>&1`" || exit 77
12615 echo Create directories
12624 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12626 echo File $file > $file
12631 echo Creating main archive
12632 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12634 # The above prints two lines to stderr announcing the new directories c0 and c1.
12635 # Ensure that they appear in this script's stderr in sorted order.
12636 sort err 1>&2; rm -f err
12639 echo Modifying filesystem
12646 echo Directory contents
12647 find tart -print | sort 2>/dev/null
12650 echo Creating incremental archive
12651 cp -p tart.incr1 tart.incr2
12652 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12657 echo Extracting main archive
12658 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12659 echo Extracting incremental archive
12660 # This command should produce three messages about deletion
12661 # of the existing files, that may appear in any order. Piping
12662 # to sort makes sure we don't depend on any particular ordering.
12663 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12666 find tart -print | sort 2>/dev/null
12667 ) ) >"$at_stdout" 2>"$at_stder1"
12669 grep '^ *+' "$at_stder1" >&2
12670 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12675 TEST_TAR_FORMAT=gnu
12676 export TEST_TAR_FORMAT
12677 TAR_OPTIONS="-H gnu"
12682 test -z "`sort < /dev/null 2>&1`" || exit 77
12684 echo Create directories
12693 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12695 echo File $file > $file
12700 echo Creating main archive
12701 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12703 # The above prints two lines to stderr announcing the new directories c0 and c1.
12704 # Ensure that they appear in this script's stderr in sorted order.
12705 sort err 1>&2; rm -f err
12708 echo Modifying filesystem
12715 echo Directory contents
12716 find tart -print | sort 2>/dev/null
12719 echo Creating incremental archive
12720 cp -p tart.incr1 tart.incr2
12721 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12726 echo Extracting main archive
12727 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12728 echo Extracting incremental archive
12729 # This command should produce three messages about deletion
12730 # of the existing files, that may appear in any order. Piping
12731 # to sort makes sure we don't depend on any particular ordering.
12732 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12735 find tart -print | sort 2>/dev/null
12736 ) ) >"$at_stdout" 2>"$at_stderr"
12741 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
12742 tar: tart/c1: Directory is new
12743 tar: tart/c2: Directory has been renamed from \`tart/c1'
12744 " | $at_diff - "$at_stderr" || at_failed=:
12745 echo >>"$at_stdout"; echo "Create directories
12746 Creating main archive
12756 Modifying filesystem
12767 Creating incremental archive
12773 Extracting main archive
12783 Extracting incremental archive
12784 tar: Deleting \`tart/a1'
12785 tar: Deleting \`tart/b1'
12801 " | $at_diff - "$at_stdout" || at_failed=:
12803 77) echo 77 > "$at_status_file"; exit 77;;
12805 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
12808 if $at_failed; then
12811 echo 1 > "$at_status_file"
12818 echo "$at_srcdir/listed02.at:31:
12821 TEST_TAR_FORMAT=oldgnu
12822 export TEST_TAR_FORMAT
12823 TAR_OPTIONS=\"-H oldgnu\"
12828 test -z "`sort < /dev/null 2>&1`" || exit 77
12830 echo Create directories
12839 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12841 echo File \$file > \$file
12846 echo Creating main archive
12847 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12849 # The above prints two lines to stderr announcing the new directories c0 and c1.
12850 # Ensure that they appear in this script's stderr in sorted order.
12851 sort err 1>&2; rm -f err
12854 echo Modifying filesystem
12861 echo Directory contents
12862 find tart -print | sort 2>/dev/null
12865 echo Creating incremental archive
12866 cp -p tart.incr1 tart.incr2
12867 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12872 echo Extracting main archive
12873 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12874 echo Extracting incremental archive
12875 # This command should produce three messages about deletion
12876 # of the existing files, that may appear in any order. Piping
12877 # to sort makes sure we don't depend on any particular ordering.
12878 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12881 find tart -print | sort 2>/dev/null
12883 echo listed02.at:31 >"$at_check_line_file"
12886 if test -n "$at_traceon"; then
12887 echo 'Not enabling shell tracing (command contains an embedded newline)'
12890 if test -n "$at_trace_this"; then
12894 TEST_TAR_FORMAT=oldgnu
12895 export TEST_TAR_FORMAT
12896 TAR_OPTIONS="-H oldgnu"
12901 test -z "`sort < /dev/null 2>&1`" || exit 77
12903 echo Create directories
12912 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12914 echo File $file > $file
12919 echo Creating main archive
12920 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12922 # The above prints two lines to stderr announcing the new directories c0 and c1.
12923 # Ensure that they appear in this script's stderr in sorted order.
12924 sort err 1>&2; rm -f err
12927 echo Modifying filesystem
12934 echo Directory contents
12935 find tart -print | sort 2>/dev/null
12938 echo Creating incremental archive
12939 cp -p tart.incr1 tart.incr2
12940 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12945 echo Extracting main archive
12946 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12947 echo Extracting incremental archive
12948 # This command should produce three messages about deletion
12949 # of the existing files, that may appear in any order. Piping
12950 # to sort makes sure we don't depend on any particular ordering.
12951 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12954 find tart -print | sort 2>/dev/null
12955 ) ) >"$at_stdout" 2>"$at_stder1"
12957 grep '^ *+' "$at_stder1" >&2
12958 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12963 TEST_TAR_FORMAT=oldgnu
12964 export TEST_TAR_FORMAT
12965 TAR_OPTIONS="-H oldgnu"
12970 test -z "`sort < /dev/null 2>&1`" || exit 77
12972 echo Create directories
12981 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12983 echo File $file > $file
12988 echo Creating main archive
12989 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12991 # The above prints two lines to stderr announcing the new directories c0 and c1.
12992 # Ensure that they appear in this script's stderr in sorted order.
12993 sort err 1>&2; rm -f err
12996 echo Modifying filesystem
13003 echo Directory contents
13004 find tart -print | sort 2>/dev/null
13007 echo Creating incremental archive
13008 cp -p tart.incr1 tart.incr2
13009 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
13014 echo Extracting main archive
13015 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
13016 echo Extracting incremental archive
13017 # This command should produce three messages about deletion
13018 # of the existing files, that may appear in any order. Piping
13019 # to sort makes sure we don't depend on any particular ordering.
13020 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
13023 find tart -print | sort 2>/dev/null
13024 ) ) >"$at_stdout" 2>"$at_stderr"
13029 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
13030 tar: tart/c1: Directory is new
13031 tar: tart/c2: Directory has been renamed from \`tart/c1'
13032 " | $at_diff - "$at_stderr" || at_failed=:
13033 echo >>"$at_stdout"; echo "Create directories
13034 Creating main archive
13044 Modifying filesystem
13055 Creating incremental archive
13061 Extracting main archive
13071 Extracting incremental archive
13072 tar: Deleting \`tart/a1'
13073 tar: Deleting \`tart/b1'
13089 " | $at_diff - "$at_stdout" || at_failed=:
13091 77) echo 77 > "$at_status_file"; exit 77;;
13093 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
13096 if $at_failed; then
13099 echo 1 > "$at_status_file"
13109 $at_times_p && times >"$at_times_file"
13110 ) 5>&1 2>&1 | eval $at_tee_pipe
13111 at_status=`cat "$at_status_file"`
13114 31 ) # 31. incr03.at:28: renamed files in incrementals
13115 at_setup_line='incr03.at:28'
13116 at_desc="renamed files in incrementals"
13117 $at_quiet $ECHO_N " 31: renamed files in incrementals $ECHO_C"
13119 test -f $XFAILFILE && at_xfail=yes
13120 echo "# -*- compilation -*-" >> "$at_group_log"
13122 echo "31. incr03.at:28: testing ..."
13130 echo "$at_srcdir/incr03.at:31:
13133 TEST_TAR_FORMAT=gnu
13134 export TEST_TAR_FORMAT
13135 TAR_OPTIONS=\"-H gnu\"
13140 test -z "`sort < /dev/null 2>&1`" || exit 77
13143 genfile --file=directory/x
13144 genfile --file=directory/y
13148 tar -cf archive.1 -g db directory
13150 mv directory/x directory/z
13151 tar -cf archive.2 -g db directory
13155 echo Listing of archive.1
13156 tar -tf archive.1 | sort
13157 echo Listing of archive.2
13158 tar -tf archive.2 | sort
13160 echo Directory after first restore
13161 tar -xf archive.1 -g db
13162 find directory | sort
13164 echo Directory after second restore
13165 tar -xf archive.2 -g db
13166 find directory | sort
13168 echo incr03.at:31 >"$at_check_line_file"
13171 if test -n "$at_traceon"; then
13172 echo 'Not enabling shell tracing (command contains an embedded newline)'
13175 if test -n "$at_trace_this"; then
13179 TEST_TAR_FORMAT=gnu
13180 export TEST_TAR_FORMAT
13181 TAR_OPTIONS="-H gnu"
13186 test -z "`sort < /dev/null 2>&1`" || exit 77
13189 genfile --file=directory/x
13190 genfile --file=directory/y
13194 tar -cf archive.1 -g db directory
13196 mv directory/x directory/z
13197 tar -cf archive.2 -g db directory
13201 echo Listing of archive.1
13202 tar -tf archive.1 | sort
13203 echo Listing of archive.2
13204 tar -tf archive.2 | sort
13206 echo Directory after first restore
13207 tar -xf archive.1 -g db
13208 find directory | sort
13210 echo Directory after second restore
13211 tar -xf archive.2 -g db
13212 find directory | sort
13213 ) ) >"$at_stdout" 2>"$at_stder1"
13215 grep '^ *+' "$at_stder1" >&2
13216 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13221 TEST_TAR_FORMAT=gnu
13222 export TEST_TAR_FORMAT
13223 TAR_OPTIONS="-H gnu"
13228 test -z "`sort < /dev/null 2>&1`" || exit 77
13231 genfile --file=directory/x
13232 genfile --file=directory/y
13236 tar -cf archive.1 -g db directory
13238 mv directory/x directory/z
13239 tar -cf archive.2 -g db directory
13243 echo Listing of archive.1
13244 tar -tf archive.1 | sort
13245 echo Listing of archive.2
13246 tar -tf archive.2 | sort
13248 echo Directory after first restore
13249 tar -xf archive.1 -g db
13250 find directory | sort
13252 echo Directory after second restore
13253 tar -xf archive.2 -g db
13254 find directory | sort
13255 ) ) >"$at_stdout" 2>"$at_stderr"
13260 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13261 echo >>"$at_stdout"; echo "Listing of archive.1
13265 Listing of archive.2
13268 Directory after first restore
13272 Directory after second restore
13276 " | $at_diff - "$at_stdout" || at_failed=:
13278 77) echo 77 > "$at_status_file"; exit 77;;
13280 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13283 if $at_failed; then
13286 echo 1 > "$at_status_file"
13293 echo "$at_srcdir/incr03.at:31:
13296 TEST_TAR_FORMAT=oldgnu
13297 export TEST_TAR_FORMAT
13298 TAR_OPTIONS=\"-H oldgnu\"
13303 test -z "`sort < /dev/null 2>&1`" || exit 77
13306 genfile --file=directory/x
13307 genfile --file=directory/y
13311 tar -cf archive.1 -g db directory
13313 mv directory/x directory/z
13314 tar -cf archive.2 -g db directory
13318 echo Listing of archive.1
13319 tar -tf archive.1 | sort
13320 echo Listing of archive.2
13321 tar -tf archive.2 | sort
13323 echo Directory after first restore
13324 tar -xf archive.1 -g db
13325 find directory | sort
13327 echo Directory after second restore
13328 tar -xf archive.2 -g db
13329 find directory | sort
13331 echo incr03.at:31 >"$at_check_line_file"
13334 if test -n "$at_traceon"; then
13335 echo 'Not enabling shell tracing (command contains an embedded newline)'
13338 if test -n "$at_trace_this"; then
13342 TEST_TAR_FORMAT=oldgnu
13343 export TEST_TAR_FORMAT
13344 TAR_OPTIONS="-H oldgnu"
13349 test -z "`sort < /dev/null 2>&1`" || exit 77
13352 genfile --file=directory/x
13353 genfile --file=directory/y
13357 tar -cf archive.1 -g db directory
13359 mv directory/x directory/z
13360 tar -cf archive.2 -g db directory
13364 echo Listing of archive.1
13365 tar -tf archive.1 | sort
13366 echo Listing of archive.2
13367 tar -tf archive.2 | sort
13369 echo Directory after first restore
13370 tar -xf archive.1 -g db
13371 find directory | sort
13373 echo Directory after second restore
13374 tar -xf archive.2 -g db
13375 find directory | sort
13376 ) ) >"$at_stdout" 2>"$at_stder1"
13378 grep '^ *+' "$at_stder1" >&2
13379 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13384 TEST_TAR_FORMAT=oldgnu
13385 export TEST_TAR_FORMAT
13386 TAR_OPTIONS="-H oldgnu"
13391 test -z "`sort < /dev/null 2>&1`" || exit 77
13394 genfile --file=directory/x
13395 genfile --file=directory/y
13399 tar -cf archive.1 -g db directory
13401 mv directory/x directory/z
13402 tar -cf archive.2 -g db directory
13406 echo Listing of archive.1
13407 tar -tf archive.1 | sort
13408 echo Listing of archive.2
13409 tar -tf archive.2 | sort
13411 echo Directory after first restore
13412 tar -xf archive.1 -g db
13413 find directory | sort
13415 echo Directory after second restore
13416 tar -xf archive.2 -g db
13417 find directory | sort
13418 ) ) >"$at_stdout" 2>"$at_stderr"
13423 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13424 echo >>"$at_stdout"; echo "Listing of archive.1
13428 Listing of archive.2
13431 Directory after first restore
13435 Directory after second restore
13439 " | $at_diff - "$at_stdout" || at_failed=:
13441 77) echo 77 > "$at_status_file"; exit 77;;
13443 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13446 if $at_failed; then
13449 echo 1 > "$at_status_file"
13456 echo "$at_srcdir/incr03.at:31:
13459 TEST_TAR_FORMAT=posix
13460 export TEST_TAR_FORMAT
13461 TAR_OPTIONS=\"-H posix\"
13466 test -z "`sort < /dev/null 2>&1`" || exit 77
13469 genfile --file=directory/x
13470 genfile --file=directory/y
13474 tar -cf archive.1 -g db directory
13476 mv directory/x directory/z
13477 tar -cf archive.2 -g db directory
13481 echo Listing of archive.1
13482 tar -tf archive.1 | sort
13483 echo Listing of archive.2
13484 tar -tf archive.2 | sort
13486 echo Directory after first restore
13487 tar -xf archive.1 -g db
13488 find directory | sort
13490 echo Directory after second restore
13491 tar -xf archive.2 -g db
13492 find directory | sort
13494 echo incr03.at:31 >"$at_check_line_file"
13497 if test -n "$at_traceon"; then
13498 echo 'Not enabling shell tracing (command contains an embedded newline)'
13501 if test -n "$at_trace_this"; then
13505 TEST_TAR_FORMAT=posix
13506 export TEST_TAR_FORMAT
13507 TAR_OPTIONS="-H posix"
13512 test -z "`sort < /dev/null 2>&1`" || exit 77
13515 genfile --file=directory/x
13516 genfile --file=directory/y
13520 tar -cf archive.1 -g db directory
13522 mv directory/x directory/z
13523 tar -cf archive.2 -g db directory
13527 echo Listing of archive.1
13528 tar -tf archive.1 | sort
13529 echo Listing of archive.2
13530 tar -tf archive.2 | sort
13532 echo Directory after first restore
13533 tar -xf archive.1 -g db
13534 find directory | sort
13536 echo Directory after second restore
13537 tar -xf archive.2 -g db
13538 find directory | sort
13539 ) ) >"$at_stdout" 2>"$at_stder1"
13541 grep '^ *+' "$at_stder1" >&2
13542 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13547 TEST_TAR_FORMAT=posix
13548 export TEST_TAR_FORMAT
13549 TAR_OPTIONS="-H posix"
13554 test -z "`sort < /dev/null 2>&1`" || exit 77
13557 genfile --file=directory/x
13558 genfile --file=directory/y
13562 tar -cf archive.1 -g db directory
13564 mv directory/x directory/z
13565 tar -cf archive.2 -g db directory
13569 echo Listing of archive.1
13570 tar -tf archive.1 | sort
13571 echo Listing of archive.2
13572 tar -tf archive.2 | sort
13574 echo Directory after first restore
13575 tar -xf archive.1 -g db
13576 find directory | sort
13578 echo Directory after second restore
13579 tar -xf archive.2 -g db
13580 find directory | sort
13581 ) ) >"$at_stdout" 2>"$at_stderr"
13586 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13587 echo >>"$at_stdout"; echo "Listing of archive.1
13591 Listing of archive.2
13594 Directory after first restore
13598 Directory after second restore
13602 " | $at_diff - "$at_stdout" || at_failed=:
13604 77) echo 77 > "$at_status_file"; exit 77;;
13606 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13609 if $at_failed; then
13612 echo 1 > "$at_status_file"
13622 $at_times_p && times >"$at_times_file"
13623 ) 5>&1 2>&1 | eval $at_tee_pipe
13624 at_status=`cat "$at_status_file"`
13627 32 ) # 32. incr04.at:29: proper icontents initialization
13628 at_setup_line='incr04.at:29'
13629 at_desc="proper icontents initialization"
13630 $at_quiet $ECHO_N " 32: proper icontents initialization $ECHO_C"
13632 test -f $XFAILFILE && at_xfail=yes
13633 echo "# -*- compilation -*-" >> "$at_group_log"
13635 echo "32. incr04.at:29: testing ..."
13645 echo "$at_srcdir/incr04.at:34:
13648 TEST_TAR_FORMAT=gnu
13649 export TEST_TAR_FORMAT
13650 TAR_OPTIONS=\"-H gnu\"
13655 install-sh -d a/b >/dev/null || exit 77
13657 for (i=1;i<=142;i++)
13658 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13659 }' < /dev/null | genfile --files-from -
13663 echo \"Initial dump\"
13664 tar cvf a0.tar -g a.sna a
13666 echo \"Incremental dump\"
13667 tar cvf a1.tar -g a.sna a
13669 echo incr04.at:34 >"$at_check_line_file"
13672 if test -n "$at_traceon"; then
13673 echo 'Not enabling shell tracing (command contains an embedded newline)'
13676 if test -n "$at_trace_this"; then
13680 TEST_TAR_FORMAT=gnu
13681 export TEST_TAR_FORMAT
13682 TAR_OPTIONS="-H gnu"
13687 install-sh -d a/b >/dev/null || exit 77
13689 for (i=1;i<=142;i++)
13690 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13691 }' < /dev/null | genfile --files-from -
13695 echo "Initial dump"
13696 tar cvf a0.tar -g a.sna a
13698 echo "Incremental dump"
13699 tar cvf a1.tar -g a.sna a
13700 ) ) >"$at_stdout" 2>"$at_stder1"
13702 grep '^ *+' "$at_stder1" >&2
13703 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13708 TEST_TAR_FORMAT=gnu
13709 export TEST_TAR_FORMAT
13710 TAR_OPTIONS="-H gnu"
13715 install-sh -d a/b >/dev/null || exit 77
13717 for (i=1;i<=142;i++)
13718 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13719 }' < /dev/null | genfile --files-from -
13723 echo "Initial dump"
13724 tar cvf a0.tar -g a.sna a
13726 echo "Incremental dump"
13727 tar cvf a1.tar -g a.sna a
13728 ) ) >"$at_stdout" 2>"$at_stderr"
13733 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13734 tar: a/c: Directory has been renamed from \`a/b'
13735 " | $at_diff - "$at_stderr" || at_failed=:
13736 echo >>"$at_stdout"; echo "Initial dump
13739 a/b/one_31_chars_long_file_name_001
13740 a/b/one_31_chars_long_file_name_002
13741 a/b/one_31_chars_long_file_name_003
13742 a/b/one_31_chars_long_file_name_004
13743 a/b/one_31_chars_long_file_name_005
13744 a/b/one_31_chars_long_file_name_006
13745 a/b/one_31_chars_long_file_name_007
13746 a/b/one_31_chars_long_file_name_008
13747 a/b/one_31_chars_long_file_name_009
13748 a/b/one_31_chars_long_file_name_010
13749 a/b/one_31_chars_long_file_name_011
13750 a/b/one_31_chars_long_file_name_012
13751 a/b/one_31_chars_long_file_name_013
13752 a/b/one_31_chars_long_file_name_014
13753 a/b/one_31_chars_long_file_name_015
13754 a/b/one_31_chars_long_file_name_016
13755 a/b/one_31_chars_long_file_name_017
13756 a/b/one_31_chars_long_file_name_018
13757 a/b/one_31_chars_long_file_name_019
13758 a/b/one_31_chars_long_file_name_020
13759 a/b/one_31_chars_long_file_name_021
13760 a/b/one_31_chars_long_file_name_022
13761 a/b/one_31_chars_long_file_name_023
13762 a/b/one_31_chars_long_file_name_024
13763 a/b/one_31_chars_long_file_name_025
13764 a/b/one_31_chars_long_file_name_026
13765 a/b/one_31_chars_long_file_name_027
13766 a/b/one_31_chars_long_file_name_028
13767 a/b/one_31_chars_long_file_name_029
13768 a/b/one_31_chars_long_file_name_030
13769 a/b/one_31_chars_long_file_name_031
13770 a/b/one_31_chars_long_file_name_032
13771 a/b/one_31_chars_long_file_name_033
13772 a/b/one_31_chars_long_file_name_034
13773 a/b/one_31_chars_long_file_name_035
13774 a/b/one_31_chars_long_file_name_036
13775 a/b/one_31_chars_long_file_name_037
13776 a/b/one_31_chars_long_file_name_038
13777 a/b/one_31_chars_long_file_name_039
13778 a/b/one_31_chars_long_file_name_040
13779 a/b/one_31_chars_long_file_name_041
13780 a/b/one_31_chars_long_file_name_042
13781 a/b/one_31_chars_long_file_name_043
13782 a/b/one_31_chars_long_file_name_044
13783 a/b/one_31_chars_long_file_name_045
13784 a/b/one_31_chars_long_file_name_046
13785 a/b/one_31_chars_long_file_name_047
13786 a/b/one_31_chars_long_file_name_048
13787 a/b/one_31_chars_long_file_name_049
13788 a/b/one_31_chars_long_file_name_050
13789 a/b/one_31_chars_long_file_name_051
13790 a/b/one_31_chars_long_file_name_052
13791 a/b/one_31_chars_long_file_name_053
13792 a/b/one_31_chars_long_file_name_054
13793 a/b/one_31_chars_long_file_name_055
13794 a/b/one_31_chars_long_file_name_056
13795 a/b/one_31_chars_long_file_name_057
13796 a/b/one_31_chars_long_file_name_058
13797 a/b/one_31_chars_long_file_name_059
13798 a/b/one_31_chars_long_file_name_060
13799 a/b/one_31_chars_long_file_name_061
13800 a/b/one_31_chars_long_file_name_062
13801 a/b/one_31_chars_long_file_name_063
13802 a/b/one_31_chars_long_file_name_064
13803 a/b/one_31_chars_long_file_name_065
13804 a/b/one_31_chars_long_file_name_066
13805 a/b/one_31_chars_long_file_name_067
13806 a/b/one_31_chars_long_file_name_068
13807 a/b/one_31_chars_long_file_name_069
13808 a/b/one_31_chars_long_file_name_070
13809 a/b/one_31_chars_long_file_name_071
13810 a/b/one_31_chars_long_file_name_072
13811 a/b/one_31_chars_long_file_name_073
13812 a/b/one_31_chars_long_file_name_074
13813 a/b/one_31_chars_long_file_name_075
13814 a/b/one_31_chars_long_file_name_076
13815 a/b/one_31_chars_long_file_name_077
13816 a/b/one_31_chars_long_file_name_078
13817 a/b/one_31_chars_long_file_name_079
13818 a/b/one_31_chars_long_file_name_080
13819 a/b/one_31_chars_long_file_name_081
13820 a/b/one_31_chars_long_file_name_082
13821 a/b/one_31_chars_long_file_name_083
13822 a/b/one_31_chars_long_file_name_084
13823 a/b/one_31_chars_long_file_name_085
13824 a/b/one_31_chars_long_file_name_086
13825 a/b/one_31_chars_long_file_name_087
13826 a/b/one_31_chars_long_file_name_088
13827 a/b/one_31_chars_long_file_name_089
13828 a/b/one_31_chars_long_file_name_090
13829 a/b/one_31_chars_long_file_name_091
13830 a/b/one_31_chars_long_file_name_092
13831 a/b/one_31_chars_long_file_name_093
13832 a/b/one_31_chars_long_file_name_094
13833 a/b/one_31_chars_long_file_name_095
13834 a/b/one_31_chars_long_file_name_096
13835 a/b/one_31_chars_long_file_name_097
13836 a/b/one_31_chars_long_file_name_098
13837 a/b/one_31_chars_long_file_name_099
13838 a/b/one_31_chars_long_file_name_100
13839 a/b/one_31_chars_long_file_name_101
13840 a/b/one_31_chars_long_file_name_102
13841 a/b/one_31_chars_long_file_name_103
13842 a/b/one_31_chars_long_file_name_104
13843 a/b/one_31_chars_long_file_name_105
13844 a/b/one_31_chars_long_file_name_106
13845 a/b/one_31_chars_long_file_name_107
13846 a/b/one_31_chars_long_file_name_108
13847 a/b/one_31_chars_long_file_name_109
13848 a/b/one_31_chars_long_file_name_110
13849 a/b/one_31_chars_long_file_name_111
13850 a/b/one_31_chars_long_file_name_112
13851 a/b/one_31_chars_long_file_name_113
13852 a/b/one_31_chars_long_file_name_114
13853 a/b/one_31_chars_long_file_name_115
13854 a/b/one_31_chars_long_file_name_116
13855 a/b/one_31_chars_long_file_name_117
13856 a/b/one_31_chars_long_file_name_118
13857 a/b/one_31_chars_long_file_name_119
13858 a/b/one_31_chars_long_file_name_120
13859 a/b/one_31_chars_long_file_name_121
13860 a/b/one_31_chars_long_file_name_122
13861 a/b/one_31_chars_long_file_name_123
13862 a/b/one_31_chars_long_file_name_124
13863 a/b/one_31_chars_long_file_name_125
13864 a/b/one_31_chars_long_file_name_126
13865 a/b/one_31_chars_long_file_name_127
13866 a/b/one_31_chars_long_file_name_128
13867 a/b/one_31_chars_long_file_name_129
13868 a/b/one_31_chars_long_file_name_130
13869 a/b/one_31_chars_long_file_name_131
13870 a/b/one_31_chars_long_file_name_132
13871 a/b/one_31_chars_long_file_name_133
13872 a/b/one_31_chars_long_file_name_134
13873 a/b/one_31_chars_long_file_name_135
13874 a/b/one_31_chars_long_file_name_136
13875 a/b/one_31_chars_long_file_name_137
13876 a/b/one_31_chars_long_file_name_138
13877 a/b/one_31_chars_long_file_name_139
13878 a/b/one_31_chars_long_file_name_140
13879 a/b/one_31_chars_long_file_name_141
13880 a/b/one_31_chars_long_file_name_142
13884 " | $at_diff - "$at_stdout" || at_failed=:
13886 77) echo 77 > "$at_status_file"; exit 77;;
13888 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
13891 if $at_failed; then
13894 echo 1 > "$at_status_file"
13901 echo "$at_srcdir/incr04.at:34:
13904 TEST_TAR_FORMAT=oldgnu
13905 export TEST_TAR_FORMAT
13906 TAR_OPTIONS=\"-H oldgnu\"
13911 install-sh -d a/b >/dev/null || exit 77
13913 for (i=1;i<=142;i++)
13914 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13915 }' < /dev/null | genfile --files-from -
13919 echo \"Initial dump\"
13920 tar cvf a0.tar -g a.sna a
13922 echo \"Incremental dump\"
13923 tar cvf a1.tar -g a.sna a
13925 echo incr04.at:34 >"$at_check_line_file"
13928 if test -n "$at_traceon"; then
13929 echo 'Not enabling shell tracing (command contains an embedded newline)'
13932 if test -n "$at_trace_this"; then
13936 TEST_TAR_FORMAT=oldgnu
13937 export TEST_TAR_FORMAT
13938 TAR_OPTIONS="-H oldgnu"
13943 install-sh -d a/b >/dev/null || exit 77
13945 for (i=1;i<=142;i++)
13946 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13947 }' < /dev/null | genfile --files-from -
13951 echo "Initial dump"
13952 tar cvf a0.tar -g a.sna a
13954 echo "Incremental dump"
13955 tar cvf a1.tar -g a.sna a
13956 ) ) >"$at_stdout" 2>"$at_stder1"
13958 grep '^ *+' "$at_stder1" >&2
13959 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13964 TEST_TAR_FORMAT=oldgnu
13965 export TEST_TAR_FORMAT
13966 TAR_OPTIONS="-H oldgnu"
13971 install-sh -d a/b >/dev/null || exit 77
13973 for (i=1;i<=142;i++)
13974 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13975 }' < /dev/null | genfile --files-from -
13979 echo "Initial dump"
13980 tar cvf a0.tar -g a.sna a
13982 echo "Incremental dump"
13983 tar cvf a1.tar -g a.sna a
13984 ) ) >"$at_stdout" 2>"$at_stderr"
13989 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13990 tar: a/c: Directory has been renamed from \`a/b'
13991 " | $at_diff - "$at_stderr" || at_failed=:
13992 echo >>"$at_stdout"; echo "Initial dump
13995 a/b/one_31_chars_long_file_name_001
13996 a/b/one_31_chars_long_file_name_002
13997 a/b/one_31_chars_long_file_name_003
13998 a/b/one_31_chars_long_file_name_004
13999 a/b/one_31_chars_long_file_name_005
14000 a/b/one_31_chars_long_file_name_006
14001 a/b/one_31_chars_long_file_name_007
14002 a/b/one_31_chars_long_file_name_008
14003 a/b/one_31_chars_long_file_name_009
14004 a/b/one_31_chars_long_file_name_010
14005 a/b/one_31_chars_long_file_name_011
14006 a/b/one_31_chars_long_file_name_012
14007 a/b/one_31_chars_long_file_name_013
14008 a/b/one_31_chars_long_file_name_014
14009 a/b/one_31_chars_long_file_name_015
14010 a/b/one_31_chars_long_file_name_016
14011 a/b/one_31_chars_long_file_name_017
14012 a/b/one_31_chars_long_file_name_018
14013 a/b/one_31_chars_long_file_name_019
14014 a/b/one_31_chars_long_file_name_020
14015 a/b/one_31_chars_long_file_name_021
14016 a/b/one_31_chars_long_file_name_022
14017 a/b/one_31_chars_long_file_name_023
14018 a/b/one_31_chars_long_file_name_024
14019 a/b/one_31_chars_long_file_name_025
14020 a/b/one_31_chars_long_file_name_026
14021 a/b/one_31_chars_long_file_name_027
14022 a/b/one_31_chars_long_file_name_028
14023 a/b/one_31_chars_long_file_name_029
14024 a/b/one_31_chars_long_file_name_030
14025 a/b/one_31_chars_long_file_name_031
14026 a/b/one_31_chars_long_file_name_032
14027 a/b/one_31_chars_long_file_name_033
14028 a/b/one_31_chars_long_file_name_034
14029 a/b/one_31_chars_long_file_name_035
14030 a/b/one_31_chars_long_file_name_036
14031 a/b/one_31_chars_long_file_name_037
14032 a/b/one_31_chars_long_file_name_038
14033 a/b/one_31_chars_long_file_name_039
14034 a/b/one_31_chars_long_file_name_040
14035 a/b/one_31_chars_long_file_name_041
14036 a/b/one_31_chars_long_file_name_042
14037 a/b/one_31_chars_long_file_name_043
14038 a/b/one_31_chars_long_file_name_044
14039 a/b/one_31_chars_long_file_name_045
14040 a/b/one_31_chars_long_file_name_046
14041 a/b/one_31_chars_long_file_name_047
14042 a/b/one_31_chars_long_file_name_048
14043 a/b/one_31_chars_long_file_name_049
14044 a/b/one_31_chars_long_file_name_050
14045 a/b/one_31_chars_long_file_name_051
14046 a/b/one_31_chars_long_file_name_052
14047 a/b/one_31_chars_long_file_name_053
14048 a/b/one_31_chars_long_file_name_054
14049 a/b/one_31_chars_long_file_name_055
14050 a/b/one_31_chars_long_file_name_056
14051 a/b/one_31_chars_long_file_name_057
14052 a/b/one_31_chars_long_file_name_058
14053 a/b/one_31_chars_long_file_name_059
14054 a/b/one_31_chars_long_file_name_060
14055 a/b/one_31_chars_long_file_name_061
14056 a/b/one_31_chars_long_file_name_062
14057 a/b/one_31_chars_long_file_name_063
14058 a/b/one_31_chars_long_file_name_064
14059 a/b/one_31_chars_long_file_name_065
14060 a/b/one_31_chars_long_file_name_066
14061 a/b/one_31_chars_long_file_name_067
14062 a/b/one_31_chars_long_file_name_068
14063 a/b/one_31_chars_long_file_name_069
14064 a/b/one_31_chars_long_file_name_070
14065 a/b/one_31_chars_long_file_name_071
14066 a/b/one_31_chars_long_file_name_072
14067 a/b/one_31_chars_long_file_name_073
14068 a/b/one_31_chars_long_file_name_074
14069 a/b/one_31_chars_long_file_name_075
14070 a/b/one_31_chars_long_file_name_076
14071 a/b/one_31_chars_long_file_name_077
14072 a/b/one_31_chars_long_file_name_078
14073 a/b/one_31_chars_long_file_name_079
14074 a/b/one_31_chars_long_file_name_080
14075 a/b/one_31_chars_long_file_name_081
14076 a/b/one_31_chars_long_file_name_082
14077 a/b/one_31_chars_long_file_name_083
14078 a/b/one_31_chars_long_file_name_084
14079 a/b/one_31_chars_long_file_name_085
14080 a/b/one_31_chars_long_file_name_086
14081 a/b/one_31_chars_long_file_name_087
14082 a/b/one_31_chars_long_file_name_088
14083 a/b/one_31_chars_long_file_name_089
14084 a/b/one_31_chars_long_file_name_090
14085 a/b/one_31_chars_long_file_name_091
14086 a/b/one_31_chars_long_file_name_092
14087 a/b/one_31_chars_long_file_name_093
14088 a/b/one_31_chars_long_file_name_094
14089 a/b/one_31_chars_long_file_name_095
14090 a/b/one_31_chars_long_file_name_096
14091 a/b/one_31_chars_long_file_name_097
14092 a/b/one_31_chars_long_file_name_098
14093 a/b/one_31_chars_long_file_name_099
14094 a/b/one_31_chars_long_file_name_100
14095 a/b/one_31_chars_long_file_name_101
14096 a/b/one_31_chars_long_file_name_102
14097 a/b/one_31_chars_long_file_name_103
14098 a/b/one_31_chars_long_file_name_104
14099 a/b/one_31_chars_long_file_name_105
14100 a/b/one_31_chars_long_file_name_106
14101 a/b/one_31_chars_long_file_name_107
14102 a/b/one_31_chars_long_file_name_108
14103 a/b/one_31_chars_long_file_name_109
14104 a/b/one_31_chars_long_file_name_110
14105 a/b/one_31_chars_long_file_name_111
14106 a/b/one_31_chars_long_file_name_112
14107 a/b/one_31_chars_long_file_name_113
14108 a/b/one_31_chars_long_file_name_114
14109 a/b/one_31_chars_long_file_name_115
14110 a/b/one_31_chars_long_file_name_116
14111 a/b/one_31_chars_long_file_name_117
14112 a/b/one_31_chars_long_file_name_118
14113 a/b/one_31_chars_long_file_name_119
14114 a/b/one_31_chars_long_file_name_120
14115 a/b/one_31_chars_long_file_name_121
14116 a/b/one_31_chars_long_file_name_122
14117 a/b/one_31_chars_long_file_name_123
14118 a/b/one_31_chars_long_file_name_124
14119 a/b/one_31_chars_long_file_name_125
14120 a/b/one_31_chars_long_file_name_126
14121 a/b/one_31_chars_long_file_name_127
14122 a/b/one_31_chars_long_file_name_128
14123 a/b/one_31_chars_long_file_name_129
14124 a/b/one_31_chars_long_file_name_130
14125 a/b/one_31_chars_long_file_name_131
14126 a/b/one_31_chars_long_file_name_132
14127 a/b/one_31_chars_long_file_name_133
14128 a/b/one_31_chars_long_file_name_134
14129 a/b/one_31_chars_long_file_name_135
14130 a/b/one_31_chars_long_file_name_136
14131 a/b/one_31_chars_long_file_name_137
14132 a/b/one_31_chars_long_file_name_138
14133 a/b/one_31_chars_long_file_name_139
14134 a/b/one_31_chars_long_file_name_140
14135 a/b/one_31_chars_long_file_name_141
14136 a/b/one_31_chars_long_file_name_142
14140 " | $at_diff - "$at_stdout" || at_failed=:
14142 77) echo 77 > "$at_status_file"; exit 77;;
14144 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
14147 if $at_failed; then
14150 echo 1 > "$at_status_file"
14157 echo "$at_srcdir/incr04.at:34:
14160 TEST_TAR_FORMAT=posix
14161 export TEST_TAR_FORMAT
14162 TAR_OPTIONS=\"-H posix\"
14167 install-sh -d a/b >/dev/null || exit 77
14169 for (i=1;i<=142;i++)
14170 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
14171 }' < /dev/null | genfile --files-from -
14175 echo \"Initial dump\"
14176 tar cvf a0.tar -g a.sna a
14178 echo \"Incremental dump\"
14179 tar cvf a1.tar -g a.sna a
14181 echo incr04.at:34 >"$at_check_line_file"
14184 if test -n "$at_traceon"; then
14185 echo 'Not enabling shell tracing (command contains an embedded newline)'
14188 if test -n "$at_trace_this"; then
14192 TEST_TAR_FORMAT=posix
14193 export TEST_TAR_FORMAT
14194 TAR_OPTIONS="-H posix"
14199 install-sh -d a/b >/dev/null || exit 77
14201 for (i=1;i<=142;i++)
14202 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
14203 }' < /dev/null | genfile --files-from -
14207 echo "Initial dump"
14208 tar cvf a0.tar -g a.sna a
14210 echo "Incremental dump"
14211 tar cvf a1.tar -g a.sna a
14212 ) ) >"$at_stdout" 2>"$at_stder1"
14214 grep '^ *+' "$at_stder1" >&2
14215 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14220 TEST_TAR_FORMAT=posix
14221 export TEST_TAR_FORMAT
14222 TAR_OPTIONS="-H posix"
14227 install-sh -d a/b >/dev/null || exit 77
14229 for (i=1;i<=142;i++)
14230 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
14231 }' < /dev/null | genfile --files-from -
14235 echo "Initial dump"
14236 tar cvf a0.tar -g a.sna a
14238 echo "Incremental dump"
14239 tar cvf a1.tar -g a.sna a
14240 ) ) >"$at_stdout" 2>"$at_stderr"
14245 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
14246 tar: a/c: Directory has been renamed from \`a/b'
14247 " | $at_diff - "$at_stderr" || at_failed=:
14248 echo >>"$at_stdout"; echo "Initial dump
14251 a/b/one_31_chars_long_file_name_001
14252 a/b/one_31_chars_long_file_name_002
14253 a/b/one_31_chars_long_file_name_003
14254 a/b/one_31_chars_long_file_name_004
14255 a/b/one_31_chars_long_file_name_005
14256 a/b/one_31_chars_long_file_name_006
14257 a/b/one_31_chars_long_file_name_007
14258 a/b/one_31_chars_long_file_name_008
14259 a/b/one_31_chars_long_file_name_009
14260 a/b/one_31_chars_long_file_name_010
14261 a/b/one_31_chars_long_file_name_011
14262 a/b/one_31_chars_long_file_name_012
14263 a/b/one_31_chars_long_file_name_013
14264 a/b/one_31_chars_long_file_name_014
14265 a/b/one_31_chars_long_file_name_015
14266 a/b/one_31_chars_long_file_name_016
14267 a/b/one_31_chars_long_file_name_017
14268 a/b/one_31_chars_long_file_name_018
14269 a/b/one_31_chars_long_file_name_019
14270 a/b/one_31_chars_long_file_name_020
14271 a/b/one_31_chars_long_file_name_021
14272 a/b/one_31_chars_long_file_name_022
14273 a/b/one_31_chars_long_file_name_023
14274 a/b/one_31_chars_long_file_name_024
14275 a/b/one_31_chars_long_file_name_025
14276 a/b/one_31_chars_long_file_name_026
14277 a/b/one_31_chars_long_file_name_027
14278 a/b/one_31_chars_long_file_name_028
14279 a/b/one_31_chars_long_file_name_029
14280 a/b/one_31_chars_long_file_name_030
14281 a/b/one_31_chars_long_file_name_031
14282 a/b/one_31_chars_long_file_name_032
14283 a/b/one_31_chars_long_file_name_033
14284 a/b/one_31_chars_long_file_name_034
14285 a/b/one_31_chars_long_file_name_035
14286 a/b/one_31_chars_long_file_name_036
14287 a/b/one_31_chars_long_file_name_037
14288 a/b/one_31_chars_long_file_name_038
14289 a/b/one_31_chars_long_file_name_039
14290 a/b/one_31_chars_long_file_name_040
14291 a/b/one_31_chars_long_file_name_041
14292 a/b/one_31_chars_long_file_name_042
14293 a/b/one_31_chars_long_file_name_043
14294 a/b/one_31_chars_long_file_name_044
14295 a/b/one_31_chars_long_file_name_045
14296 a/b/one_31_chars_long_file_name_046
14297 a/b/one_31_chars_long_file_name_047
14298 a/b/one_31_chars_long_file_name_048
14299 a/b/one_31_chars_long_file_name_049
14300 a/b/one_31_chars_long_file_name_050
14301 a/b/one_31_chars_long_file_name_051
14302 a/b/one_31_chars_long_file_name_052
14303 a/b/one_31_chars_long_file_name_053
14304 a/b/one_31_chars_long_file_name_054
14305 a/b/one_31_chars_long_file_name_055
14306 a/b/one_31_chars_long_file_name_056
14307 a/b/one_31_chars_long_file_name_057
14308 a/b/one_31_chars_long_file_name_058
14309 a/b/one_31_chars_long_file_name_059
14310 a/b/one_31_chars_long_file_name_060
14311 a/b/one_31_chars_long_file_name_061
14312 a/b/one_31_chars_long_file_name_062
14313 a/b/one_31_chars_long_file_name_063
14314 a/b/one_31_chars_long_file_name_064
14315 a/b/one_31_chars_long_file_name_065
14316 a/b/one_31_chars_long_file_name_066
14317 a/b/one_31_chars_long_file_name_067
14318 a/b/one_31_chars_long_file_name_068
14319 a/b/one_31_chars_long_file_name_069
14320 a/b/one_31_chars_long_file_name_070
14321 a/b/one_31_chars_long_file_name_071
14322 a/b/one_31_chars_long_file_name_072
14323 a/b/one_31_chars_long_file_name_073
14324 a/b/one_31_chars_long_file_name_074
14325 a/b/one_31_chars_long_file_name_075
14326 a/b/one_31_chars_long_file_name_076
14327 a/b/one_31_chars_long_file_name_077
14328 a/b/one_31_chars_long_file_name_078
14329 a/b/one_31_chars_long_file_name_079
14330 a/b/one_31_chars_long_file_name_080
14331 a/b/one_31_chars_long_file_name_081
14332 a/b/one_31_chars_long_file_name_082
14333 a/b/one_31_chars_long_file_name_083
14334 a/b/one_31_chars_long_file_name_084
14335 a/b/one_31_chars_long_file_name_085
14336 a/b/one_31_chars_long_file_name_086
14337 a/b/one_31_chars_long_file_name_087
14338 a/b/one_31_chars_long_file_name_088
14339 a/b/one_31_chars_long_file_name_089
14340 a/b/one_31_chars_long_file_name_090
14341 a/b/one_31_chars_long_file_name_091
14342 a/b/one_31_chars_long_file_name_092
14343 a/b/one_31_chars_long_file_name_093
14344 a/b/one_31_chars_long_file_name_094
14345 a/b/one_31_chars_long_file_name_095
14346 a/b/one_31_chars_long_file_name_096
14347 a/b/one_31_chars_long_file_name_097
14348 a/b/one_31_chars_long_file_name_098
14349 a/b/one_31_chars_long_file_name_099
14350 a/b/one_31_chars_long_file_name_100
14351 a/b/one_31_chars_long_file_name_101
14352 a/b/one_31_chars_long_file_name_102
14353 a/b/one_31_chars_long_file_name_103
14354 a/b/one_31_chars_long_file_name_104
14355 a/b/one_31_chars_long_file_name_105
14356 a/b/one_31_chars_long_file_name_106
14357 a/b/one_31_chars_long_file_name_107
14358 a/b/one_31_chars_long_file_name_108
14359 a/b/one_31_chars_long_file_name_109
14360 a/b/one_31_chars_long_file_name_110
14361 a/b/one_31_chars_long_file_name_111
14362 a/b/one_31_chars_long_file_name_112
14363 a/b/one_31_chars_long_file_name_113
14364 a/b/one_31_chars_long_file_name_114
14365 a/b/one_31_chars_long_file_name_115
14366 a/b/one_31_chars_long_file_name_116
14367 a/b/one_31_chars_long_file_name_117
14368 a/b/one_31_chars_long_file_name_118
14369 a/b/one_31_chars_long_file_name_119
14370 a/b/one_31_chars_long_file_name_120
14371 a/b/one_31_chars_long_file_name_121
14372 a/b/one_31_chars_long_file_name_122
14373 a/b/one_31_chars_long_file_name_123
14374 a/b/one_31_chars_long_file_name_124
14375 a/b/one_31_chars_long_file_name_125
14376 a/b/one_31_chars_long_file_name_126
14377 a/b/one_31_chars_long_file_name_127
14378 a/b/one_31_chars_long_file_name_128
14379 a/b/one_31_chars_long_file_name_129
14380 a/b/one_31_chars_long_file_name_130
14381 a/b/one_31_chars_long_file_name_131
14382 a/b/one_31_chars_long_file_name_132
14383 a/b/one_31_chars_long_file_name_133
14384 a/b/one_31_chars_long_file_name_134
14385 a/b/one_31_chars_long_file_name_135
14386 a/b/one_31_chars_long_file_name_136
14387 a/b/one_31_chars_long_file_name_137
14388 a/b/one_31_chars_long_file_name_138
14389 a/b/one_31_chars_long_file_name_139
14390 a/b/one_31_chars_long_file_name_140
14391 a/b/one_31_chars_long_file_name_141
14392 a/b/one_31_chars_long_file_name_142
14396 " | $at_diff - "$at_stdout" || at_failed=:
14398 77) echo 77 > "$at_status_file"; exit 77;;
14400 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
14403 if $at_failed; then
14406 echo 1 > "$at_status_file"
14416 $at_times_p && times >"$at_times_file"
14417 ) 5>&1 2>&1 | eval $at_tee_pipe
14418 at_status=`cat "$at_status_file"`
14421 33 ) # 33. rename01.at:24: renamed dirs in incrementals
14422 at_setup_line='rename01.at:24'
14423 at_desc="renamed dirs in incrementals"
14424 $at_quiet $ECHO_N " 33: renamed dirs in incrementals $ECHO_C"
14426 test -f $XFAILFILE && at_xfail=yes
14427 echo "# -*- compilation -*-" >> "$at_group_log"
14429 echo "33. rename01.at:24: testing ..."
14437 echo "$at_srcdir/rename01.at:27:
14440 TEST_TAR_FORMAT=gnu
14441 export TEST_TAR_FORMAT
14442 TAR_OPTIONS=\"-H gnu\"
14447 test -z "`sort < /dev/null 2>&1`" || exit 77
14451 genfile --file foo/file1
14452 genfile --file foo/file2
14454 genfile --file foo/bar/file
14456 echo \"Creating base archive\"
14457 tar -g incr -cf arch.1 -v foo
14461 echo \"Creating incremental archive\"
14462 tar -g incr -cf arch.2 -v foo
14466 tar xfg arch.1 /dev/null
14468 echo \"Begin directory listing 1\"
14470 echo \"End directory listing 1\"
14472 tar xfg arch.2 /dev/null
14473 echo Begin directory listing 2
14475 echo End directory listing 2
14477 echo rename01.at:27 >"$at_check_line_file"
14480 if test -n "$at_traceon"; then
14481 echo 'Not enabling shell tracing (command contains an embedded newline)'
14484 if test -n "$at_trace_this"; then
14488 TEST_TAR_FORMAT=gnu
14489 export TEST_TAR_FORMAT
14490 TAR_OPTIONS="-H gnu"
14495 test -z "`sort < /dev/null 2>&1`" || exit 77
14499 genfile --file foo/file1
14500 genfile --file foo/file2
14502 genfile --file foo/bar/file
14504 echo "Creating base archive"
14505 tar -g incr -cf arch.1 -v foo
14509 echo "Creating incremental archive"
14510 tar -g incr -cf arch.2 -v foo
14514 tar xfg arch.1 /dev/null
14516 echo "Begin directory listing 1"
14518 echo "End directory listing 1"
14520 tar xfg arch.2 /dev/null
14521 echo Begin directory listing 2
14523 echo End directory listing 2
14524 ) ) >"$at_stdout" 2>"$at_stder1"
14526 grep '^ *+' "$at_stder1" >&2
14527 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14532 TEST_TAR_FORMAT=gnu
14533 export TEST_TAR_FORMAT
14534 TAR_OPTIONS="-H gnu"
14539 test -z "`sort < /dev/null 2>&1`" || exit 77
14543 genfile --file foo/file1
14544 genfile --file foo/file2
14546 genfile --file foo/bar/file
14548 echo "Creating base archive"
14549 tar -g incr -cf arch.1 -v foo
14553 echo "Creating incremental archive"
14554 tar -g incr -cf arch.2 -v foo
14558 tar xfg arch.1 /dev/null
14560 echo "Begin directory listing 1"
14562 echo "End directory listing 1"
14564 tar xfg arch.2 /dev/null
14565 echo Begin directory listing 2
14567 echo End directory listing 2
14568 ) ) >"$at_stdout" 2>"$at_stderr"
14573 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14574 tar: foo/baz: Directory has been renamed from \`foo/bar'
14575 " | $at_diff - "$at_stderr" || at_failed=:
14576 echo >>"$at_stdout"; echo "Creating base archive
14582 Creating incremental archive
14585 Begin directory listing 1
14591 End directory listing 1
14592 Begin directory listing 2
14598 End directory listing 2
14599 " | $at_diff - "$at_stdout" || at_failed=:
14601 77) echo 77 > "$at_status_file"; exit 77;;
14603 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14606 if $at_failed; then
14609 echo 1 > "$at_status_file"
14616 echo "$at_srcdir/rename01.at:27:
14619 TEST_TAR_FORMAT=oldgnu
14620 export TEST_TAR_FORMAT
14621 TAR_OPTIONS=\"-H oldgnu\"
14626 test -z "`sort < /dev/null 2>&1`" || exit 77
14630 genfile --file foo/file1
14631 genfile --file foo/file2
14633 genfile --file foo/bar/file
14635 echo \"Creating base archive\"
14636 tar -g incr -cf arch.1 -v foo
14640 echo \"Creating incremental archive\"
14641 tar -g incr -cf arch.2 -v foo
14645 tar xfg arch.1 /dev/null
14647 echo \"Begin directory listing 1\"
14649 echo \"End directory listing 1\"
14651 tar xfg arch.2 /dev/null
14652 echo Begin directory listing 2
14654 echo End directory listing 2
14656 echo rename01.at:27 >"$at_check_line_file"
14659 if test -n "$at_traceon"; then
14660 echo 'Not enabling shell tracing (command contains an embedded newline)'
14663 if test -n "$at_trace_this"; then
14667 TEST_TAR_FORMAT=oldgnu
14668 export TEST_TAR_FORMAT
14669 TAR_OPTIONS="-H oldgnu"
14674 test -z "`sort < /dev/null 2>&1`" || exit 77
14678 genfile --file foo/file1
14679 genfile --file foo/file2
14681 genfile --file foo/bar/file
14683 echo "Creating base archive"
14684 tar -g incr -cf arch.1 -v foo
14688 echo "Creating incremental archive"
14689 tar -g incr -cf arch.2 -v foo
14693 tar xfg arch.1 /dev/null
14695 echo "Begin directory listing 1"
14697 echo "End directory listing 1"
14699 tar xfg arch.2 /dev/null
14700 echo Begin directory listing 2
14702 echo End directory listing 2
14703 ) ) >"$at_stdout" 2>"$at_stder1"
14705 grep '^ *+' "$at_stder1" >&2
14706 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14711 TEST_TAR_FORMAT=oldgnu
14712 export TEST_TAR_FORMAT
14713 TAR_OPTIONS="-H oldgnu"
14718 test -z "`sort < /dev/null 2>&1`" || exit 77
14722 genfile --file foo/file1
14723 genfile --file foo/file2
14725 genfile --file foo/bar/file
14727 echo "Creating base archive"
14728 tar -g incr -cf arch.1 -v foo
14732 echo "Creating incremental archive"
14733 tar -g incr -cf arch.2 -v foo
14737 tar xfg arch.1 /dev/null
14739 echo "Begin directory listing 1"
14741 echo "End directory listing 1"
14743 tar xfg arch.2 /dev/null
14744 echo Begin directory listing 2
14746 echo End directory listing 2
14747 ) ) >"$at_stdout" 2>"$at_stderr"
14752 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14753 tar: foo/baz: Directory has been renamed from \`foo/bar'
14754 " | $at_diff - "$at_stderr" || at_failed=:
14755 echo >>"$at_stdout"; echo "Creating base archive
14761 Creating incremental archive
14764 Begin directory listing 1
14770 End directory listing 1
14771 Begin directory listing 2
14777 End directory listing 2
14778 " | $at_diff - "$at_stdout" || at_failed=:
14780 77) echo 77 > "$at_status_file"; exit 77;;
14782 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14785 if $at_failed; then
14788 echo 1 > "$at_status_file"
14795 echo "$at_srcdir/rename01.at:27:
14798 TEST_TAR_FORMAT=posix
14799 export TEST_TAR_FORMAT
14800 TAR_OPTIONS=\"-H posix\"
14805 test -z "`sort < /dev/null 2>&1`" || exit 77
14809 genfile --file foo/file1
14810 genfile --file foo/file2
14812 genfile --file foo/bar/file
14814 echo \"Creating base archive\"
14815 tar -g incr -cf arch.1 -v foo
14819 echo \"Creating incremental archive\"
14820 tar -g incr -cf arch.2 -v foo
14824 tar xfg arch.1 /dev/null
14826 echo \"Begin directory listing 1\"
14828 echo \"End directory listing 1\"
14830 tar xfg arch.2 /dev/null
14831 echo Begin directory listing 2
14833 echo End directory listing 2
14835 echo rename01.at:27 >"$at_check_line_file"
14838 if test -n "$at_traceon"; then
14839 echo 'Not enabling shell tracing (command contains an embedded newline)'
14842 if test -n "$at_trace_this"; then
14846 TEST_TAR_FORMAT=posix
14847 export TEST_TAR_FORMAT
14848 TAR_OPTIONS="-H posix"
14853 test -z "`sort < /dev/null 2>&1`" || exit 77
14857 genfile --file foo/file1
14858 genfile --file foo/file2
14860 genfile --file foo/bar/file
14862 echo "Creating base archive"
14863 tar -g incr -cf arch.1 -v foo
14867 echo "Creating incremental archive"
14868 tar -g incr -cf arch.2 -v foo
14872 tar xfg arch.1 /dev/null
14874 echo "Begin directory listing 1"
14876 echo "End directory listing 1"
14878 tar xfg arch.2 /dev/null
14879 echo Begin directory listing 2
14881 echo End directory listing 2
14882 ) ) >"$at_stdout" 2>"$at_stder1"
14884 grep '^ *+' "$at_stder1" >&2
14885 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14890 TEST_TAR_FORMAT=posix
14891 export TEST_TAR_FORMAT
14892 TAR_OPTIONS="-H posix"
14897 test -z "`sort < /dev/null 2>&1`" || exit 77
14901 genfile --file foo/file1
14902 genfile --file foo/file2
14904 genfile --file foo/bar/file
14906 echo "Creating base archive"
14907 tar -g incr -cf arch.1 -v foo
14911 echo "Creating incremental archive"
14912 tar -g incr -cf arch.2 -v foo
14916 tar xfg arch.1 /dev/null
14918 echo "Begin directory listing 1"
14920 echo "End directory listing 1"
14922 tar xfg arch.2 /dev/null
14923 echo Begin directory listing 2
14925 echo End directory listing 2
14926 ) ) >"$at_stdout" 2>"$at_stderr"
14931 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14932 tar: foo/baz: Directory has been renamed from \`foo/bar'
14933 " | $at_diff - "$at_stderr" || at_failed=:
14934 echo >>"$at_stdout"; echo "Creating base archive
14940 Creating incremental archive
14943 Begin directory listing 1
14949 End directory listing 1
14950 Begin directory listing 2
14956 End directory listing 2
14957 " | $at_diff - "$at_stdout" || at_failed=:
14959 77) echo 77 > "$at_status_file"; exit 77;;
14961 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14964 if $at_failed; then
14967 echo 1 > "$at_status_file"
14977 $at_times_p && times >"$at_times_file"
14978 ) 5>&1 2>&1 | eval $at_tee_pipe
14979 at_status=`cat "$at_status_file"`
14982 34 ) # 34. rename02.at:24: move between hierarchies
14983 at_setup_line='rename02.at:24'
14984 at_desc="move between hierarchies"
14985 $at_quiet $ECHO_N " 34: move between hierarchies $ECHO_C"
14987 test -f $XFAILFILE && at_xfail=yes
14988 echo "# -*- compilation -*-" >> "$at_group_log"
14990 echo "34. rename02.at:24: testing ..."
14998 echo "$at_srcdir/rename02.at:27:
15001 TEST_TAR_FORMAT=gnu
15002 export TEST_TAR_FORMAT
15003 TAR_OPTIONS=\"-H gnu\"
15008 test -z "`sort < /dev/null 2>&1`" || exit 77
15011 genfile --file foo/file1
15012 genfile --file foo/file2
15014 genfile --file foo/bar/file.r
15016 genfile --file foo/bar/baz/file.z
15020 echo \"Creating base archive\"
15021 tar -g incr -cf arch.1 -v foo
15025 echo \"Creating incremental archive\"
15026 tar -g incr -cf arch.2 -v foo
15030 tar xfg arch.1 /dev/null 2>tmperr
15033 echo \"Begin directory listing 1\"
15035 echo \"End directory listing 1\"
15037 tar xfgv arch.2 /dev/null
15038 echo Begin directory listing 2
15040 echo End directory listing 2
15042 echo rename02.at:27 >"$at_check_line_file"
15045 if test -n "$at_traceon"; then
15046 echo 'Not enabling shell tracing (command contains an embedded newline)'
15049 if test -n "$at_trace_this"; then
15053 TEST_TAR_FORMAT=gnu
15054 export TEST_TAR_FORMAT
15055 TAR_OPTIONS="-H gnu"
15060 test -z "`sort < /dev/null 2>&1`" || exit 77
15063 genfile --file foo/file1
15064 genfile --file foo/file2
15066 genfile --file foo/bar/file.r
15068 genfile --file foo/bar/baz/file.z
15072 echo "Creating base archive"
15073 tar -g incr -cf arch.1 -v foo
15077 echo "Creating incremental archive"
15078 tar -g incr -cf arch.2 -v foo
15082 tar xfg arch.1 /dev/null 2>tmperr
15085 echo "Begin directory listing 1"
15087 echo "End directory listing 1"
15089 tar xfgv arch.2 /dev/null
15090 echo Begin directory listing 2
15092 echo End directory listing 2
15093 ) ) >"$at_stdout" 2>"$at_stder1"
15095 grep '^ *+' "$at_stder1" >&2
15096 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15101 TEST_TAR_FORMAT=gnu
15102 export TEST_TAR_FORMAT
15103 TAR_OPTIONS="-H gnu"
15108 test -z "`sort < /dev/null 2>&1`" || exit 77
15111 genfile --file foo/file1
15112 genfile --file foo/file2
15114 genfile --file foo/bar/file.r
15116 genfile --file foo/bar/baz/file.z
15120 echo "Creating base archive"
15121 tar -g incr -cf arch.1 -v foo
15125 echo "Creating incremental archive"
15126 tar -g incr -cf arch.2 -v foo
15130 tar xfg arch.1 /dev/null 2>tmperr
15133 echo "Begin directory listing 1"
15135 echo "End directory listing 1"
15137 tar xfgv arch.2 /dev/null
15138 echo Begin directory listing 2
15140 echo End directory listing 2
15141 ) ) >"$at_stdout" 2>"$at_stderr"
15146 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15147 tar: foo/bar/baz: Directory is new
15148 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15149 " | $at_diff - "$at_stderr" || at_failed=:
15150 echo >>"$at_stdout"; echo "Creating base archive
15158 Creating incremental archive
15162 Begin directory listing 1
15170 End directory listing 1
15174 Begin directory listing 2
15182 End directory listing 2
15183 " | $at_diff - "$at_stdout" || at_failed=:
15185 77) echo 77 > "$at_status_file"; exit 77;;
15187 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15190 if $at_failed; then
15193 echo 1 > "$at_status_file"
15200 echo "$at_srcdir/rename02.at:27:
15203 TEST_TAR_FORMAT=oldgnu
15204 export TEST_TAR_FORMAT
15205 TAR_OPTIONS=\"-H oldgnu\"
15210 test -z "`sort < /dev/null 2>&1`" || exit 77
15213 genfile --file foo/file1
15214 genfile --file foo/file2
15216 genfile --file foo/bar/file.r
15218 genfile --file foo/bar/baz/file.z
15222 echo \"Creating base archive\"
15223 tar -g incr -cf arch.1 -v foo
15227 echo \"Creating incremental archive\"
15228 tar -g incr -cf arch.2 -v foo
15232 tar xfg arch.1 /dev/null 2>tmperr
15235 echo \"Begin directory listing 1\"
15237 echo \"End directory listing 1\"
15239 tar xfgv arch.2 /dev/null
15240 echo Begin directory listing 2
15242 echo End directory listing 2
15244 echo rename02.at:27 >"$at_check_line_file"
15247 if test -n "$at_traceon"; then
15248 echo 'Not enabling shell tracing (command contains an embedded newline)'
15251 if test -n "$at_trace_this"; then
15255 TEST_TAR_FORMAT=oldgnu
15256 export TEST_TAR_FORMAT
15257 TAR_OPTIONS="-H oldgnu"
15262 test -z "`sort < /dev/null 2>&1`" || exit 77
15265 genfile --file foo/file1
15266 genfile --file foo/file2
15268 genfile --file foo/bar/file.r
15270 genfile --file foo/bar/baz/file.z
15274 echo "Creating base archive"
15275 tar -g incr -cf arch.1 -v foo
15279 echo "Creating incremental archive"
15280 tar -g incr -cf arch.2 -v foo
15284 tar xfg arch.1 /dev/null 2>tmperr
15287 echo "Begin directory listing 1"
15289 echo "End directory listing 1"
15291 tar xfgv arch.2 /dev/null
15292 echo Begin directory listing 2
15294 echo End directory listing 2
15295 ) ) >"$at_stdout" 2>"$at_stder1"
15297 grep '^ *+' "$at_stder1" >&2
15298 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15303 TEST_TAR_FORMAT=oldgnu
15304 export TEST_TAR_FORMAT
15305 TAR_OPTIONS="-H oldgnu"
15310 test -z "`sort < /dev/null 2>&1`" || exit 77
15313 genfile --file foo/file1
15314 genfile --file foo/file2
15316 genfile --file foo/bar/file.r
15318 genfile --file foo/bar/baz/file.z
15322 echo "Creating base archive"
15323 tar -g incr -cf arch.1 -v foo
15327 echo "Creating incremental archive"
15328 tar -g incr -cf arch.2 -v foo
15332 tar xfg arch.1 /dev/null 2>tmperr
15335 echo "Begin directory listing 1"
15337 echo "End directory listing 1"
15339 tar xfgv arch.2 /dev/null
15340 echo Begin directory listing 2
15342 echo End directory listing 2
15343 ) ) >"$at_stdout" 2>"$at_stderr"
15348 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15349 tar: foo/bar/baz: Directory is new
15350 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15351 " | $at_diff - "$at_stderr" || at_failed=:
15352 echo >>"$at_stdout"; echo "Creating base archive
15360 Creating incremental archive
15364 Begin directory listing 1
15372 End directory listing 1
15376 Begin directory listing 2
15384 End directory listing 2
15385 " | $at_diff - "$at_stdout" || at_failed=:
15387 77) echo 77 > "$at_status_file"; exit 77;;
15389 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15392 if $at_failed; then
15395 echo 1 > "$at_status_file"
15402 echo "$at_srcdir/rename02.at:27:
15405 TEST_TAR_FORMAT=posix
15406 export TEST_TAR_FORMAT
15407 TAR_OPTIONS=\"-H posix\"
15412 test -z "`sort < /dev/null 2>&1`" || exit 77
15415 genfile --file foo/file1
15416 genfile --file foo/file2
15418 genfile --file foo/bar/file.r
15420 genfile --file foo/bar/baz/file.z
15424 echo \"Creating base archive\"
15425 tar -g incr -cf arch.1 -v foo
15429 echo \"Creating incremental archive\"
15430 tar -g incr -cf arch.2 -v foo
15434 tar xfg arch.1 /dev/null 2>tmperr
15437 echo \"Begin directory listing 1\"
15439 echo \"End directory listing 1\"
15441 tar xfgv arch.2 /dev/null
15442 echo Begin directory listing 2
15444 echo End directory listing 2
15446 echo rename02.at:27 >"$at_check_line_file"
15449 if test -n "$at_traceon"; then
15450 echo 'Not enabling shell tracing (command contains an embedded newline)'
15453 if test -n "$at_trace_this"; then
15457 TEST_TAR_FORMAT=posix
15458 export TEST_TAR_FORMAT
15459 TAR_OPTIONS="-H posix"
15464 test -z "`sort < /dev/null 2>&1`" || exit 77
15467 genfile --file foo/file1
15468 genfile --file foo/file2
15470 genfile --file foo/bar/file.r
15472 genfile --file foo/bar/baz/file.z
15476 echo "Creating base archive"
15477 tar -g incr -cf arch.1 -v foo
15481 echo "Creating incremental archive"
15482 tar -g incr -cf arch.2 -v foo
15486 tar xfg arch.1 /dev/null 2>tmperr
15489 echo "Begin directory listing 1"
15491 echo "End directory listing 1"
15493 tar xfgv arch.2 /dev/null
15494 echo Begin directory listing 2
15496 echo End directory listing 2
15497 ) ) >"$at_stdout" 2>"$at_stder1"
15499 grep '^ *+' "$at_stder1" >&2
15500 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15505 TEST_TAR_FORMAT=posix
15506 export TEST_TAR_FORMAT
15507 TAR_OPTIONS="-H posix"
15512 test -z "`sort < /dev/null 2>&1`" || exit 77
15515 genfile --file foo/file1
15516 genfile --file foo/file2
15518 genfile --file foo/bar/file.r
15520 genfile --file foo/bar/baz/file.z
15524 echo "Creating base archive"
15525 tar -g incr -cf arch.1 -v foo
15529 echo "Creating incremental archive"
15530 tar -g incr -cf arch.2 -v foo
15534 tar xfg arch.1 /dev/null 2>tmperr
15537 echo "Begin directory listing 1"
15539 echo "End directory listing 1"
15541 tar xfgv arch.2 /dev/null
15542 echo Begin directory listing 2
15544 echo End directory listing 2
15545 ) ) >"$at_stdout" 2>"$at_stderr"
15550 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15551 tar: foo/bar/baz: Directory is new
15552 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15553 " | $at_diff - "$at_stderr" || at_failed=:
15554 echo >>"$at_stdout"; echo "Creating base archive
15562 Creating incremental archive
15566 Begin directory listing 1
15574 End directory listing 1
15578 Begin directory listing 2
15586 End directory listing 2
15587 " | $at_diff - "$at_stdout" || at_failed=:
15589 77) echo 77 > "$at_status_file"; exit 77;;
15591 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15594 if $at_failed; then
15597 echo 1 > "$at_status_file"
15607 $at_times_p && times >"$at_times_file"
15608 ) 5>&1 2>&1 | eval $at_tee_pipe
15609 at_status=`cat "$at_status_file"`
15612 35 ) # 35. rename03.at:23: cyclic renames
15613 at_setup_line='rename03.at:23'
15614 at_desc="cyclic renames"
15615 $at_quiet $ECHO_N " 35: cyclic renames $ECHO_C"
15617 test -f $XFAILFILE && at_xfail=yes
15618 echo "# -*- compilation -*-" >> "$at_group_log"
15620 echo "35. rename03.at:23: testing ..."
15628 echo "$at_srcdir/rename03.at:26:
15631 TEST_TAR_FORMAT=gnu
15632 export TEST_TAR_FORMAT
15633 TAR_OPTIONS=\"-H gnu\"
15638 test -z "`sort < /dev/null 2>&1`" || exit 77
15642 genfile --file foo/file1
15643 genfile --file foo/file2
15646 genfile --file foo/a/filea
15649 genfile --file foo/b/fileb
15652 genfile --file foo/c/filec
15656 echo \"First dump\"
15657 echo \"First dump\">&2
15658 tar -g incr -cf arch.1 -v foo 2>tmperr
15661 # Shuffle directories:
15668 echo \"Second dump\"
15669 echo \"Second dump\" >&2
15670 tar -g incr -cf arch.2 -v foo 2>tmperr
15673 tar xfg arch.1 /dev/null
15675 echo \"Begin directory listing 1\"
15677 echo \"End directory listing 1\"
15679 tar xfgv arch.2 /dev/null
15680 echo Begin directory listing 2
15682 echo End directory listing 2
15684 echo rename03.at:26 >"$at_check_line_file"
15687 if test -n "$at_traceon"; then
15688 echo 'Not enabling shell tracing (command contains an embedded newline)'
15691 if test -n "$at_trace_this"; then
15695 TEST_TAR_FORMAT=gnu
15696 export TEST_TAR_FORMAT
15697 TAR_OPTIONS="-H gnu"
15702 test -z "`sort < /dev/null 2>&1`" || exit 77
15706 genfile --file foo/file1
15707 genfile --file foo/file2
15710 genfile --file foo/a/filea
15713 genfile --file foo/b/fileb
15716 genfile --file foo/c/filec
15721 echo "First dump">&2
15722 tar -g incr -cf arch.1 -v foo 2>tmperr
15725 # Shuffle directories:
15733 echo "Second dump" >&2
15734 tar -g incr -cf arch.2 -v foo 2>tmperr
15737 tar xfg arch.1 /dev/null
15739 echo "Begin directory listing 1"
15741 echo "End directory listing 1"
15743 tar xfgv arch.2 /dev/null
15744 echo Begin directory listing 2
15746 echo End directory listing 2
15747 ) ) >"$at_stdout" 2>"$at_stder1"
15749 grep '^ *+' "$at_stder1" >&2
15750 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15755 TEST_TAR_FORMAT=gnu
15756 export TEST_TAR_FORMAT
15757 TAR_OPTIONS="-H gnu"
15762 test -z "`sort < /dev/null 2>&1`" || exit 77
15766 genfile --file foo/file1
15767 genfile --file foo/file2
15770 genfile --file foo/a/filea
15773 genfile --file foo/b/fileb
15776 genfile --file foo/c/filec
15781 echo "First dump">&2
15782 tar -g incr -cf arch.1 -v foo 2>tmperr
15785 # Shuffle directories:
15793 echo "Second dump" >&2
15794 tar -g incr -cf arch.2 -v foo 2>tmperr
15797 tar xfg arch.1 /dev/null
15799 echo "Begin directory listing 1"
15801 echo "End directory listing 1"
15803 tar xfgv arch.2 /dev/null
15804 echo Begin directory listing 2
15806 echo End directory listing 2
15807 ) ) >"$at_stdout" 2>"$at_stderr"
15812 echo >>"$at_stderr"; echo "First dump
15813 tar: foo/a: Directory is new
15814 tar: foo/b: Directory is new
15815 tar: foo/c: Directory is new
15817 tar: foo/a: Directory has been renamed from \`foo/c'
15818 tar: foo/b: Directory has been renamed from \`foo/a'
15819 tar: foo/c: Directory has been renamed from \`foo/b'
15820 " | $at_diff - "$at_stderr" || at_failed=:
15821 echo >>"$at_stdout"; echo "First dump
15836 Begin directory listing 1
15846 End directory listing 1
15851 Begin directory listing 2
15861 End directory listing 2
15862 " | $at_diff - "$at_stdout" || at_failed=:
15864 77) echo 77 > "$at_status_file"; exit 77;;
15866 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
15869 if $at_failed; then
15872 echo 1 > "$at_status_file"
15879 echo "$at_srcdir/rename03.at:26:
15882 TEST_TAR_FORMAT=oldgnu
15883 export TEST_TAR_FORMAT
15884 TAR_OPTIONS=\"-H oldgnu\"
15889 test -z "`sort < /dev/null 2>&1`" || exit 77
15893 genfile --file foo/file1
15894 genfile --file foo/file2
15897 genfile --file foo/a/filea
15900 genfile --file foo/b/fileb
15903 genfile --file foo/c/filec
15907 echo \"First dump\"
15908 echo \"First dump\">&2
15909 tar -g incr -cf arch.1 -v foo 2>tmperr
15912 # Shuffle directories:
15919 echo \"Second dump\"
15920 echo \"Second dump\" >&2
15921 tar -g incr -cf arch.2 -v foo 2>tmperr
15924 tar xfg arch.1 /dev/null
15926 echo \"Begin directory listing 1\"
15928 echo \"End directory listing 1\"
15930 tar xfgv arch.2 /dev/null
15931 echo Begin directory listing 2
15933 echo End directory listing 2
15935 echo rename03.at:26 >"$at_check_line_file"
15938 if test -n "$at_traceon"; then
15939 echo 'Not enabling shell tracing (command contains an embedded newline)'
15942 if test -n "$at_trace_this"; then
15946 TEST_TAR_FORMAT=oldgnu
15947 export TEST_TAR_FORMAT
15948 TAR_OPTIONS="-H oldgnu"
15953 test -z "`sort < /dev/null 2>&1`" || exit 77
15957 genfile --file foo/file1
15958 genfile --file foo/file2
15961 genfile --file foo/a/filea
15964 genfile --file foo/b/fileb
15967 genfile --file foo/c/filec
15972 echo "First dump">&2
15973 tar -g incr -cf arch.1 -v foo 2>tmperr
15976 # Shuffle directories:
15984 echo "Second dump" >&2
15985 tar -g incr -cf arch.2 -v foo 2>tmperr
15988 tar xfg arch.1 /dev/null
15990 echo "Begin directory listing 1"
15992 echo "End directory listing 1"
15994 tar xfgv arch.2 /dev/null
15995 echo Begin directory listing 2
15997 echo End directory listing 2
15998 ) ) >"$at_stdout" 2>"$at_stder1"
16000 grep '^ *+' "$at_stder1" >&2
16001 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16006 TEST_TAR_FORMAT=oldgnu
16007 export TEST_TAR_FORMAT
16008 TAR_OPTIONS="-H oldgnu"
16013 test -z "`sort < /dev/null 2>&1`" || exit 77
16017 genfile --file foo/file1
16018 genfile --file foo/file2
16021 genfile --file foo/a/filea
16024 genfile --file foo/b/fileb
16027 genfile --file foo/c/filec
16032 echo "First dump">&2
16033 tar -g incr -cf arch.1 -v foo 2>tmperr
16036 # Shuffle directories:
16044 echo "Second dump" >&2
16045 tar -g incr -cf arch.2 -v foo 2>tmperr
16048 tar xfg arch.1 /dev/null
16050 echo "Begin directory listing 1"
16052 echo "End directory listing 1"
16054 tar xfgv arch.2 /dev/null
16055 echo Begin directory listing 2
16057 echo End directory listing 2
16058 ) ) >"$at_stdout" 2>"$at_stderr"
16063 echo >>"$at_stderr"; echo "First dump
16064 tar: foo/a: Directory is new
16065 tar: foo/b: Directory is new
16066 tar: foo/c: Directory is new
16068 tar: foo/a: Directory has been renamed from \`foo/c'
16069 tar: foo/b: Directory has been renamed from \`foo/a'
16070 tar: foo/c: Directory has been renamed from \`foo/b'
16071 " | $at_diff - "$at_stderr" || at_failed=:
16072 echo >>"$at_stdout"; echo "First dump
16087 Begin directory listing 1
16097 End directory listing 1
16102 Begin directory listing 2
16112 End directory listing 2
16113 " | $at_diff - "$at_stdout" || at_failed=:
16115 77) echo 77 > "$at_status_file"; exit 77;;
16117 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
16120 if $at_failed; then
16123 echo 1 > "$at_status_file"
16130 echo "$at_srcdir/rename03.at:26:
16133 TEST_TAR_FORMAT=posix
16134 export TEST_TAR_FORMAT
16135 TAR_OPTIONS=\"-H posix\"
16140 test -z "`sort < /dev/null 2>&1`" || exit 77
16144 genfile --file foo/file1
16145 genfile --file foo/file2
16148 genfile --file foo/a/filea
16151 genfile --file foo/b/fileb
16154 genfile --file foo/c/filec
16158 echo \"First dump\"
16159 echo \"First dump\">&2
16160 tar -g incr -cf arch.1 -v foo 2>tmperr
16163 # Shuffle directories:
16170 echo \"Second dump\"
16171 echo \"Second dump\" >&2
16172 tar -g incr -cf arch.2 -v foo 2>tmperr
16175 tar xfg arch.1 /dev/null
16177 echo \"Begin directory listing 1\"
16179 echo \"End directory listing 1\"
16181 tar xfgv arch.2 /dev/null
16182 echo Begin directory listing 2
16184 echo End directory listing 2
16186 echo rename03.at:26 >"$at_check_line_file"
16189 if test -n "$at_traceon"; then
16190 echo 'Not enabling shell tracing (command contains an embedded newline)'
16193 if test -n "$at_trace_this"; then
16197 TEST_TAR_FORMAT=posix
16198 export TEST_TAR_FORMAT
16199 TAR_OPTIONS="-H posix"
16204 test -z "`sort < /dev/null 2>&1`" || exit 77
16208 genfile --file foo/file1
16209 genfile --file foo/file2
16212 genfile --file foo/a/filea
16215 genfile --file foo/b/fileb
16218 genfile --file foo/c/filec
16223 echo "First dump">&2
16224 tar -g incr -cf arch.1 -v foo 2>tmperr
16227 # Shuffle directories:
16235 echo "Second dump" >&2
16236 tar -g incr -cf arch.2 -v foo 2>tmperr
16239 tar xfg arch.1 /dev/null
16241 echo "Begin directory listing 1"
16243 echo "End directory listing 1"
16245 tar xfgv arch.2 /dev/null
16246 echo Begin directory listing 2
16248 echo End directory listing 2
16249 ) ) >"$at_stdout" 2>"$at_stder1"
16251 grep '^ *+' "$at_stder1" >&2
16252 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16257 TEST_TAR_FORMAT=posix
16258 export TEST_TAR_FORMAT
16259 TAR_OPTIONS="-H posix"
16264 test -z "`sort < /dev/null 2>&1`" || exit 77
16268 genfile --file foo/file1
16269 genfile --file foo/file2
16272 genfile --file foo/a/filea
16275 genfile --file foo/b/fileb
16278 genfile --file foo/c/filec
16283 echo "First dump">&2
16284 tar -g incr -cf arch.1 -v foo 2>tmperr
16287 # Shuffle directories:
16295 echo "Second dump" >&2
16296 tar -g incr -cf arch.2 -v foo 2>tmperr
16299 tar xfg arch.1 /dev/null
16301 echo "Begin directory listing 1"
16303 echo "End directory listing 1"
16305 tar xfgv arch.2 /dev/null
16306 echo Begin directory listing 2
16308 echo End directory listing 2
16309 ) ) >"$at_stdout" 2>"$at_stderr"
16314 echo >>"$at_stderr"; echo "First dump
16315 tar: foo/a: Directory is new
16316 tar: foo/b: Directory is new
16317 tar: foo/c: Directory is new
16319 tar: foo/a: Directory has been renamed from \`foo/c'
16320 tar: foo/b: Directory has been renamed from \`foo/a'
16321 tar: foo/c: Directory has been renamed from \`foo/b'
16322 " | $at_diff - "$at_stderr" || at_failed=:
16323 echo >>"$at_stdout"; echo "First dump
16338 Begin directory listing 1
16348 End directory listing 1
16353 Begin directory listing 2
16363 End directory listing 2
16364 " | $at_diff - "$at_stdout" || at_failed=:
16366 77) echo 77 > "$at_status_file"; exit 77;;
16368 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
16371 if $at_failed; then
16374 echo 1 > "$at_status_file"
16384 $at_times_p && times >"$at_times_file"
16385 ) 5>&1 2>&1 | eval $at_tee_pipe
16386 at_status=`cat "$at_status_file"`
16389 36 ) # 36. rename04.at:27: renamed directory containing subdirectories
16390 at_setup_line='rename04.at:27'
16391 at_desc="renamed directory containing subdirectories"
16392 $at_quiet $ECHO_N " 36: renamed directory containing subdirectories $ECHO_C"
16394 test -f $XFAILFILE && at_xfail=yes
16395 echo "# -*- compilation -*-" >> "$at_group_log"
16397 echo "36. rename04.at:27: testing ..."
16405 echo "$at_srcdir/rename04.at:30:
16408 TEST_TAR_FORMAT=gnu
16409 export TEST_TAR_FORMAT
16410 TAR_OPTIONS=\"-H gnu\"
16415 test -z "`sort < /dev/null 2>&1`" || exit 77
16418 decho Creating directory structure
16420 mkdir directory/subdir
16421 genfile --file=directory/file
16423 decho Creating initial archive
16424 tar -cf archive.1 -g db.1 directory
16429 decho Creating incremental archive
16431 tar -cf archive.2 -g db.2 dir
16435 decho First restore
16436 tar -xf archive.1 -g db.1
16437 find directory | sort
16439 decho Second restore
16440 tar -xf archive.2 -g db.2
16443 echo rename04.at:30 >"$at_check_line_file"
16446 if test -n "$at_traceon"; then
16447 echo 'Not enabling shell tracing (command contains an embedded newline)'
16450 if test -n "$at_trace_this"; then
16454 TEST_TAR_FORMAT=gnu
16455 export TEST_TAR_FORMAT
16456 TAR_OPTIONS="-H gnu"
16461 test -z "`sort < /dev/null 2>&1`" || exit 77
16464 decho Creating directory structure
16466 mkdir directory/subdir
16467 genfile --file=directory/file
16469 decho Creating initial archive
16470 tar -cf archive.1 -g db.1 directory
16475 decho Creating incremental archive
16477 tar -cf archive.2 -g db.2 dir
16481 decho First restore
16482 tar -xf archive.1 -g db.1
16483 find directory | sort
16485 decho Second restore
16486 tar -xf archive.2 -g db.2
16488 ) ) >"$at_stdout" 2>"$at_stder1"
16490 grep '^ *+' "$at_stder1" >&2
16491 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16496 TEST_TAR_FORMAT=gnu
16497 export TEST_TAR_FORMAT
16498 TAR_OPTIONS="-H gnu"
16503 test -z "`sort < /dev/null 2>&1`" || exit 77
16506 decho Creating directory structure
16508 mkdir directory/subdir
16509 genfile --file=directory/file
16511 decho Creating initial archive
16512 tar -cf archive.1 -g db.1 directory
16517 decho Creating incremental archive
16519 tar -cf archive.2 -g db.2 dir
16523 decho First restore
16524 tar -xf archive.1 -g db.1
16525 find directory | sort
16527 decho Second restore
16528 tar -xf archive.2 -g db.2
16530 ) ) >"$at_stdout" 2>"$at_stderr"
16535 echo >>"$at_stderr"; echo "Creating directory structure
16536 Creating initial archive
16538 Creating incremental archive
16541 " | $at_diff - "$at_stderr" || at_failed=:
16542 echo >>"$at_stdout"; echo "Creating directory structure
16543 Creating initial archive
16545 Creating incremental archive
16553 " | $at_diff - "$at_stdout" || at_failed=:
16555 77) echo 77 > "$at_status_file"; exit 77;;
16557 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16560 if $at_failed; then
16563 echo 1 > "$at_status_file"
16570 echo "$at_srcdir/rename04.at:30:
16573 TEST_TAR_FORMAT=oldgnu
16574 export TEST_TAR_FORMAT
16575 TAR_OPTIONS=\"-H oldgnu\"
16580 test -z "`sort < /dev/null 2>&1`" || exit 77
16583 decho Creating directory structure
16585 mkdir directory/subdir
16586 genfile --file=directory/file
16588 decho Creating initial archive
16589 tar -cf archive.1 -g db.1 directory
16594 decho Creating incremental archive
16596 tar -cf archive.2 -g db.2 dir
16600 decho First restore
16601 tar -xf archive.1 -g db.1
16602 find directory | sort
16604 decho Second restore
16605 tar -xf archive.2 -g db.2
16608 echo rename04.at:30 >"$at_check_line_file"
16611 if test -n "$at_traceon"; then
16612 echo 'Not enabling shell tracing (command contains an embedded newline)'
16615 if test -n "$at_trace_this"; then
16619 TEST_TAR_FORMAT=oldgnu
16620 export TEST_TAR_FORMAT
16621 TAR_OPTIONS="-H oldgnu"
16626 test -z "`sort < /dev/null 2>&1`" || exit 77
16629 decho Creating directory structure
16631 mkdir directory/subdir
16632 genfile --file=directory/file
16634 decho Creating initial archive
16635 tar -cf archive.1 -g db.1 directory
16640 decho Creating incremental archive
16642 tar -cf archive.2 -g db.2 dir
16646 decho First restore
16647 tar -xf archive.1 -g db.1
16648 find directory | sort
16650 decho Second restore
16651 tar -xf archive.2 -g db.2
16653 ) ) >"$at_stdout" 2>"$at_stder1"
16655 grep '^ *+' "$at_stder1" >&2
16656 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16661 TEST_TAR_FORMAT=oldgnu
16662 export TEST_TAR_FORMAT
16663 TAR_OPTIONS="-H oldgnu"
16668 test -z "`sort < /dev/null 2>&1`" || exit 77
16671 decho Creating directory structure
16673 mkdir directory/subdir
16674 genfile --file=directory/file
16676 decho Creating initial archive
16677 tar -cf archive.1 -g db.1 directory
16682 decho Creating incremental archive
16684 tar -cf archive.2 -g db.2 dir
16688 decho First restore
16689 tar -xf archive.1 -g db.1
16690 find directory | sort
16692 decho Second restore
16693 tar -xf archive.2 -g db.2
16695 ) ) >"$at_stdout" 2>"$at_stderr"
16700 echo >>"$at_stderr"; echo "Creating directory structure
16701 Creating initial archive
16703 Creating incremental archive
16706 " | $at_diff - "$at_stderr" || at_failed=:
16707 echo >>"$at_stdout"; echo "Creating directory structure
16708 Creating initial archive
16710 Creating incremental archive
16718 " | $at_diff - "$at_stdout" || at_failed=:
16720 77) echo 77 > "$at_status_file"; exit 77;;
16722 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16725 if $at_failed; then
16728 echo 1 > "$at_status_file"
16735 echo "$at_srcdir/rename04.at:30:
16738 TEST_TAR_FORMAT=posix
16739 export TEST_TAR_FORMAT
16740 TAR_OPTIONS=\"-H posix\"
16745 test -z "`sort < /dev/null 2>&1`" || exit 77
16748 decho Creating directory structure
16750 mkdir directory/subdir
16751 genfile --file=directory/file
16753 decho Creating initial archive
16754 tar -cf archive.1 -g db.1 directory
16759 decho Creating incremental archive
16761 tar -cf archive.2 -g db.2 dir
16765 decho First restore
16766 tar -xf archive.1 -g db.1
16767 find directory | sort
16769 decho Second restore
16770 tar -xf archive.2 -g db.2
16773 echo rename04.at:30 >"$at_check_line_file"
16776 if test -n "$at_traceon"; then
16777 echo 'Not enabling shell tracing (command contains an embedded newline)'
16780 if test -n "$at_trace_this"; then
16784 TEST_TAR_FORMAT=posix
16785 export TEST_TAR_FORMAT
16786 TAR_OPTIONS="-H posix"
16791 test -z "`sort < /dev/null 2>&1`" || exit 77
16794 decho Creating directory structure
16796 mkdir directory/subdir
16797 genfile --file=directory/file
16799 decho Creating initial archive
16800 tar -cf archive.1 -g db.1 directory
16805 decho Creating incremental archive
16807 tar -cf archive.2 -g db.2 dir
16811 decho First restore
16812 tar -xf archive.1 -g db.1
16813 find directory | sort
16815 decho Second restore
16816 tar -xf archive.2 -g db.2
16818 ) ) >"$at_stdout" 2>"$at_stder1"
16820 grep '^ *+' "$at_stder1" >&2
16821 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16826 TEST_TAR_FORMAT=posix
16827 export TEST_TAR_FORMAT
16828 TAR_OPTIONS="-H posix"
16833 test -z "`sort < /dev/null 2>&1`" || exit 77
16836 decho Creating directory structure
16838 mkdir directory/subdir
16839 genfile --file=directory/file
16841 decho Creating initial archive
16842 tar -cf archive.1 -g db.1 directory
16847 decho Creating incremental archive
16849 tar -cf archive.2 -g db.2 dir
16853 decho First restore
16854 tar -xf archive.1 -g db.1
16855 find directory | sort
16857 decho Second restore
16858 tar -xf archive.2 -g db.2
16860 ) ) >"$at_stdout" 2>"$at_stderr"
16865 echo >>"$at_stderr"; echo "Creating directory structure
16866 Creating initial archive
16868 Creating incremental archive
16871 " | $at_diff - "$at_stderr" || at_failed=:
16872 echo >>"$at_stdout"; echo "Creating directory structure
16873 Creating initial archive
16875 Creating incremental archive
16883 " | $at_diff - "$at_stdout" || at_failed=:
16885 77) echo 77 > "$at_status_file"; exit 77;;
16887 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16890 if $at_failed; then
16893 echo 1 > "$at_status_file"
16903 $at_times_p && times >"$at_times_file"
16904 ) 5>&1 2>&1 | eval $at_tee_pipe
16905 at_status=`cat "$at_status_file"`
16908 37 ) # 37. rename05.at:24: renamed subdirectories
16909 at_setup_line='rename05.at:24'
16910 at_desc="renamed subdirectories"
16911 $at_quiet $ECHO_N " 37: renamed subdirectories $ECHO_C"
16913 test -f $XFAILFILE && at_xfail=yes
16914 echo "# -*- compilation -*-" >> "$at_group_log"
16916 echo "37. rename05.at:24: testing ..."
16924 echo "$at_srcdir/rename05.at:27:
16927 TEST_TAR_FORMAT=gnu
16928 export TEST_TAR_FORMAT
16929 TAR_OPTIONS=\"-H gnu\"
16934 test -z "`sort < /dev/null 2>&1`" || exit 77
16937 decho Creating directory structure
16939 mkdir directory/subdir
16940 genfile --file=directory/file
16942 decho Creating initial archive
16943 tar -cf archive.1 -g db.1 directory
16946 mv directory/subdir directory/subdir.0
16949 decho Creating incremental archive
16951 tar -cf archive.2 -g db.2 dir
16955 decho First restore
16956 tar -xf archive.1 -g db.1
16957 find directory | sort
16959 decho Second restore
16960 tar -xf archive.2 -g db.2
16963 echo rename05.at:27 >"$at_check_line_file"
16966 if test -n "$at_traceon"; then
16967 echo 'Not enabling shell tracing (command contains an embedded newline)'
16970 if test -n "$at_trace_this"; then
16974 TEST_TAR_FORMAT=gnu
16975 export TEST_TAR_FORMAT
16976 TAR_OPTIONS="-H gnu"
16981 test -z "`sort < /dev/null 2>&1`" || exit 77
16984 decho Creating directory structure
16986 mkdir directory/subdir
16987 genfile --file=directory/file
16989 decho Creating initial archive
16990 tar -cf archive.1 -g db.1 directory
16993 mv directory/subdir directory/subdir.0
16996 decho Creating incremental archive
16998 tar -cf archive.2 -g db.2 dir
17002 decho First restore
17003 tar -xf archive.1 -g db.1
17004 find directory | sort
17006 decho Second restore
17007 tar -xf archive.2 -g db.2
17009 ) ) >"$at_stdout" 2>"$at_stder1"
17011 grep '^ *+' "$at_stder1" >&2
17012 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17017 TEST_TAR_FORMAT=gnu
17018 export TEST_TAR_FORMAT
17019 TAR_OPTIONS="-H gnu"
17024 test -z "`sort < /dev/null 2>&1`" || exit 77
17027 decho Creating directory structure
17029 mkdir directory/subdir
17030 genfile --file=directory/file
17032 decho Creating initial archive
17033 tar -cf archive.1 -g db.1 directory
17036 mv directory/subdir directory/subdir.0
17039 decho Creating incremental archive
17041 tar -cf archive.2 -g db.2 dir
17045 decho First restore
17046 tar -xf archive.1 -g db.1
17047 find directory | sort
17049 decho Second restore
17050 tar -xf archive.2 -g db.2
17052 ) ) >"$at_stdout" 2>"$at_stderr"
17057 echo >>"$at_stderr"; echo "Creating directory structure
17058 Creating initial archive
17060 Creating incremental archive
17063 " | $at_diff - "$at_stderr" || at_failed=:
17064 echo >>"$at_stdout"; echo "Creating directory structure
17065 Creating initial archive
17067 Creating incremental archive
17075 " | $at_diff - "$at_stdout" || at_failed=:
17077 77) echo 77 > "$at_status_file"; exit 77;;
17079 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
17082 if $at_failed; then
17085 echo 1 > "$at_status_file"
17092 echo "$at_srcdir/rename05.at:27:
17095 TEST_TAR_FORMAT=oldgnu
17096 export TEST_TAR_FORMAT
17097 TAR_OPTIONS=\"-H oldgnu\"
17102 test -z "`sort < /dev/null 2>&1`" || exit 77
17105 decho Creating directory structure
17107 mkdir directory/subdir
17108 genfile --file=directory/file
17110 decho Creating initial archive
17111 tar -cf archive.1 -g db.1 directory
17114 mv directory/subdir directory/subdir.0
17117 decho Creating incremental archive
17119 tar -cf archive.2 -g db.2 dir
17123 decho First restore
17124 tar -xf archive.1 -g db.1
17125 find directory | sort
17127 decho Second restore
17128 tar -xf archive.2 -g db.2
17131 echo rename05.at:27 >"$at_check_line_file"
17134 if test -n "$at_traceon"; then
17135 echo 'Not enabling shell tracing (command contains an embedded newline)'
17138 if test -n "$at_trace_this"; then
17142 TEST_TAR_FORMAT=oldgnu
17143 export TEST_TAR_FORMAT
17144 TAR_OPTIONS="-H oldgnu"
17149 test -z "`sort < /dev/null 2>&1`" || exit 77
17152 decho Creating directory structure
17154 mkdir directory/subdir
17155 genfile --file=directory/file
17157 decho Creating initial archive
17158 tar -cf archive.1 -g db.1 directory
17161 mv directory/subdir directory/subdir.0
17164 decho Creating incremental archive
17166 tar -cf archive.2 -g db.2 dir
17170 decho First restore
17171 tar -xf archive.1 -g db.1
17172 find directory | sort
17174 decho Second restore
17175 tar -xf archive.2 -g db.2
17177 ) ) >"$at_stdout" 2>"$at_stder1"
17179 grep '^ *+' "$at_stder1" >&2
17180 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17185 TEST_TAR_FORMAT=oldgnu
17186 export TEST_TAR_FORMAT
17187 TAR_OPTIONS="-H oldgnu"
17192 test -z "`sort < /dev/null 2>&1`" || exit 77
17195 decho Creating directory structure
17197 mkdir directory/subdir
17198 genfile --file=directory/file
17200 decho Creating initial archive
17201 tar -cf archive.1 -g db.1 directory
17204 mv directory/subdir directory/subdir.0
17207 decho Creating incremental archive
17209 tar -cf archive.2 -g db.2 dir
17213 decho First restore
17214 tar -xf archive.1 -g db.1
17215 find directory | sort
17217 decho Second restore
17218 tar -xf archive.2 -g db.2
17220 ) ) >"$at_stdout" 2>"$at_stderr"
17225 echo >>"$at_stderr"; echo "Creating directory structure
17226 Creating initial archive
17228 Creating incremental archive
17231 " | $at_diff - "$at_stderr" || at_failed=:
17232 echo >>"$at_stdout"; echo "Creating directory structure
17233 Creating initial archive
17235 Creating incremental archive
17243 " | $at_diff - "$at_stdout" || at_failed=:
17245 77) echo 77 > "$at_status_file"; exit 77;;
17247 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
17250 if $at_failed; then
17253 echo 1 > "$at_status_file"
17260 echo "$at_srcdir/rename05.at:27:
17263 TEST_TAR_FORMAT=posix
17264 export TEST_TAR_FORMAT
17265 TAR_OPTIONS=\"-H posix\"
17270 test -z "`sort < /dev/null 2>&1`" || exit 77
17273 decho Creating directory structure
17275 mkdir directory/subdir
17276 genfile --file=directory/file
17278 decho Creating initial archive
17279 tar -cf archive.1 -g db.1 directory
17282 mv directory/subdir directory/subdir.0
17285 decho Creating incremental archive
17287 tar -cf archive.2 -g db.2 dir
17291 decho First restore
17292 tar -xf archive.1 -g db.1
17293 find directory | sort
17295 decho Second restore
17296 tar -xf archive.2 -g db.2
17299 echo rename05.at:27 >"$at_check_line_file"
17302 if test -n "$at_traceon"; then
17303 echo 'Not enabling shell tracing (command contains an embedded newline)'
17306 if test -n "$at_trace_this"; then
17310 TEST_TAR_FORMAT=posix
17311 export TEST_TAR_FORMAT
17312 TAR_OPTIONS="-H posix"
17317 test -z "`sort < /dev/null 2>&1`" || exit 77
17320 decho Creating directory structure
17322 mkdir directory/subdir
17323 genfile --file=directory/file
17325 decho Creating initial archive
17326 tar -cf archive.1 -g db.1 directory
17329 mv directory/subdir directory/subdir.0
17332 decho Creating incremental archive
17334 tar -cf archive.2 -g db.2 dir
17338 decho First restore
17339 tar -xf archive.1 -g db.1
17340 find directory | sort
17342 decho Second restore
17343 tar -xf archive.2 -g db.2
17345 ) ) >"$at_stdout" 2>"$at_stder1"
17347 grep '^ *+' "$at_stder1" >&2
17348 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17353 TEST_TAR_FORMAT=posix
17354 export TEST_TAR_FORMAT
17355 TAR_OPTIONS="-H posix"
17360 test -z "`sort < /dev/null 2>&1`" || exit 77
17363 decho Creating directory structure
17365 mkdir directory/subdir
17366 genfile --file=directory/file
17368 decho Creating initial archive
17369 tar -cf archive.1 -g db.1 directory
17372 mv directory/subdir directory/subdir.0
17375 decho Creating incremental archive
17377 tar -cf archive.2 -g db.2 dir
17381 decho First restore
17382 tar -xf archive.1 -g db.1
17383 find directory | sort
17385 decho Second restore
17386 tar -xf archive.2 -g db.2
17388 ) ) >"$at_stdout" 2>"$at_stderr"
17393 echo >>"$at_stderr"; echo "Creating directory structure
17394 Creating initial archive
17396 Creating incremental archive
17399 " | $at_diff - "$at_stderr" || at_failed=:
17400 echo >>"$at_stdout"; echo "Creating directory structure
17401 Creating initial archive
17403 Creating incremental archive
17411 " | $at_diff - "$at_stdout" || at_failed=:
17413 77) echo 77 > "$at_status_file"; exit 77;;
17415 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
17418 if $at_failed; then
17421 echo 1 > "$at_status_file"
17431 $at_times_p && times >"$at_times_file"
17432 ) 5>&1 2>&1 | eval $at_tee_pipe
17433 at_status=`cat "$at_status_file"`
17436 38 ) # 38. chtype.at:27: changed file types in incrementals
17437 at_setup_line='chtype.at:27'
17438 at_desc="changed file types in incrementals"
17439 $at_quiet $ECHO_N " 38: changed file types in incrementals $ECHO_C"
17441 test -f $XFAILFILE && at_xfail=yes
17442 echo "# -*- compilation -*-" >> "$at_group_log"
17444 echo "38. chtype.at:27: testing ..."
17452 echo "$at_srcdir/chtype.at:30:
17455 TEST_TAR_FORMAT=gnu
17456 export TEST_TAR_FORMAT
17457 TAR_OPTIONS=\"-H gnu\"
17462 test -z "`sort < /dev/null 2>&1`" || exit 77
17465 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17467 genfile --file directory/a/a
17470 tar --create --file=archive.1 --listed-incremental=db.1 directory
17474 # Remove directory b and create a file with this name.
17475 # Previous versions were not able to restore over this file.
17477 genfile --file directory/b
17478 genfile --file directory/a/b
17481 tar --create --file=archive.2 --listed-incremental=db.2 directory
17486 echo Restore archive.1
17487 tar -xf archive.1 --listed-incremental=/dev/null
17488 echo Restore archive.2
17489 tar -xf archive.2 --listed-incremental=/dev/null
17490 find directory | sort
17492 echo chtype.at:30 >"$at_check_line_file"
17495 if test -n "$at_traceon"; then
17496 echo 'Not enabling shell tracing (command contains an embedded newline)'
17499 if test -n "$at_trace_this"; then
17503 TEST_TAR_FORMAT=gnu
17504 export TEST_TAR_FORMAT
17505 TAR_OPTIONS="-H gnu"
17510 test -z "`sort < /dev/null 2>&1`" || exit 77
17513 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17515 genfile --file directory/a/a
17518 tar --create --file=archive.1 --listed-incremental=db.1 directory
17522 # Remove directory b and create a file with this name.
17523 # Previous versions were not able to restore over this file.
17525 genfile --file directory/b
17526 genfile --file directory/a/b
17529 tar --create --file=archive.2 --listed-incremental=db.2 directory
17534 echo Restore archive.1
17535 tar -xf archive.1 --listed-incremental=/dev/null
17536 echo Restore archive.2
17537 tar -xf archive.2 --listed-incremental=/dev/null
17538 find directory | sort
17539 ) ) >"$at_stdout" 2>"$at_stder1"
17541 grep '^ *+' "$at_stder1" >&2
17542 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17547 TEST_TAR_FORMAT=gnu
17548 export TEST_TAR_FORMAT
17549 TAR_OPTIONS="-H gnu"
17554 test -z "`sort < /dev/null 2>&1`" || exit 77
17557 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17559 genfile --file directory/a/a
17562 tar --create --file=archive.1 --listed-incremental=db.1 directory
17566 # Remove directory b and create a file with this name.
17567 # Previous versions were not able to restore over this file.
17569 genfile --file directory/b
17570 genfile --file directory/a/b
17573 tar --create --file=archive.2 --listed-incremental=db.2 directory
17578 echo Restore archive.1
17579 tar -xf archive.1 --listed-incremental=/dev/null
17580 echo Restore archive.2
17581 tar -xf archive.2 --listed-incremental=/dev/null
17582 find directory | sort
17583 ) ) >"$at_stdout" 2>"$at_stderr"
17588 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17589 echo >>"$at_stdout"; echo "First backup
17598 " | $at_diff - "$at_stdout" || at_failed=:
17600 77) echo 77 > "$at_status_file"; exit 77;;
17602 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17605 if $at_failed; then
17608 echo 1 > "$at_status_file"
17615 echo "$at_srcdir/chtype.at:30:
17618 TEST_TAR_FORMAT=oldgnu
17619 export TEST_TAR_FORMAT
17620 TAR_OPTIONS=\"-H oldgnu\"
17625 test -z "`sort < /dev/null 2>&1`" || exit 77
17628 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17630 genfile --file directory/a/a
17633 tar --create --file=archive.1 --listed-incremental=db.1 directory
17637 # Remove directory b and create a file with this name.
17638 # Previous versions were not able to restore over this file.
17640 genfile --file directory/b
17641 genfile --file directory/a/b
17644 tar --create --file=archive.2 --listed-incremental=db.2 directory
17649 echo Restore archive.1
17650 tar -xf archive.1 --listed-incremental=/dev/null
17651 echo Restore archive.2
17652 tar -xf archive.2 --listed-incremental=/dev/null
17653 find directory | sort
17655 echo chtype.at:30 >"$at_check_line_file"
17658 if test -n "$at_traceon"; then
17659 echo 'Not enabling shell tracing (command contains an embedded newline)'
17662 if test -n "$at_trace_this"; then
17666 TEST_TAR_FORMAT=oldgnu
17667 export TEST_TAR_FORMAT
17668 TAR_OPTIONS="-H oldgnu"
17673 test -z "`sort < /dev/null 2>&1`" || exit 77
17676 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17678 genfile --file directory/a/a
17681 tar --create --file=archive.1 --listed-incremental=db.1 directory
17685 # Remove directory b and create a file with this name.
17686 # Previous versions were not able to restore over this file.
17688 genfile --file directory/b
17689 genfile --file directory/a/b
17692 tar --create --file=archive.2 --listed-incremental=db.2 directory
17697 echo Restore archive.1
17698 tar -xf archive.1 --listed-incremental=/dev/null
17699 echo Restore archive.2
17700 tar -xf archive.2 --listed-incremental=/dev/null
17701 find directory | sort
17702 ) ) >"$at_stdout" 2>"$at_stder1"
17704 grep '^ *+' "$at_stder1" >&2
17705 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17710 TEST_TAR_FORMAT=oldgnu
17711 export TEST_TAR_FORMAT
17712 TAR_OPTIONS="-H oldgnu"
17717 test -z "`sort < /dev/null 2>&1`" || exit 77
17720 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17722 genfile --file directory/a/a
17725 tar --create --file=archive.1 --listed-incremental=db.1 directory
17729 # Remove directory b and create a file with this name.
17730 # Previous versions were not able to restore over this file.
17732 genfile --file directory/b
17733 genfile --file directory/a/b
17736 tar --create --file=archive.2 --listed-incremental=db.2 directory
17741 echo Restore archive.1
17742 tar -xf archive.1 --listed-incremental=/dev/null
17743 echo Restore archive.2
17744 tar -xf archive.2 --listed-incremental=/dev/null
17745 find directory | sort
17746 ) ) >"$at_stdout" 2>"$at_stderr"
17751 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17752 echo >>"$at_stdout"; echo "First backup
17761 " | $at_diff - "$at_stdout" || at_failed=:
17763 77) echo 77 > "$at_status_file"; exit 77;;
17765 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17768 if $at_failed; then
17771 echo 1 > "$at_status_file"
17778 echo "$at_srcdir/chtype.at:30:
17781 TEST_TAR_FORMAT=posix
17782 export TEST_TAR_FORMAT
17783 TAR_OPTIONS=\"-H posix\"
17788 test -z "`sort < /dev/null 2>&1`" || exit 77
17791 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17793 genfile --file directory/a/a
17796 tar --create --file=archive.1 --listed-incremental=db.1 directory
17800 # Remove directory b and create a file with this name.
17801 # Previous versions were not able to restore over this file.
17803 genfile --file directory/b
17804 genfile --file directory/a/b
17807 tar --create --file=archive.2 --listed-incremental=db.2 directory
17812 echo Restore archive.1
17813 tar -xf archive.1 --listed-incremental=/dev/null
17814 echo Restore archive.2
17815 tar -xf archive.2 --listed-incremental=/dev/null
17816 find directory | sort
17818 echo chtype.at:30 >"$at_check_line_file"
17821 if test -n "$at_traceon"; then
17822 echo 'Not enabling shell tracing (command contains an embedded newline)'
17825 if test -n "$at_trace_this"; then
17829 TEST_TAR_FORMAT=posix
17830 export TEST_TAR_FORMAT
17831 TAR_OPTIONS="-H posix"
17836 test -z "`sort < /dev/null 2>&1`" || exit 77
17839 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17841 genfile --file directory/a/a
17844 tar --create --file=archive.1 --listed-incremental=db.1 directory
17848 # Remove directory b and create a file with this name.
17849 # Previous versions were not able to restore over this file.
17851 genfile --file directory/b
17852 genfile --file directory/a/b
17855 tar --create --file=archive.2 --listed-incremental=db.2 directory
17860 echo Restore archive.1
17861 tar -xf archive.1 --listed-incremental=/dev/null
17862 echo Restore archive.2
17863 tar -xf archive.2 --listed-incremental=/dev/null
17864 find directory | sort
17865 ) ) >"$at_stdout" 2>"$at_stder1"
17867 grep '^ *+' "$at_stder1" >&2
17868 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17873 TEST_TAR_FORMAT=posix
17874 export TEST_TAR_FORMAT
17875 TAR_OPTIONS="-H posix"
17880 test -z "`sort < /dev/null 2>&1`" || exit 77
17883 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17885 genfile --file directory/a/a
17888 tar --create --file=archive.1 --listed-incremental=db.1 directory
17892 # Remove directory b and create a file with this name.
17893 # Previous versions were not able to restore over this file.
17895 genfile --file directory/b
17896 genfile --file directory/a/b
17899 tar --create --file=archive.2 --listed-incremental=db.2 directory
17904 echo Restore archive.1
17905 tar -xf archive.1 --listed-incremental=/dev/null
17906 echo Restore archive.2
17907 tar -xf archive.2 --listed-incremental=/dev/null
17908 find directory | sort
17909 ) ) >"$at_stdout" 2>"$at_stderr"
17914 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17915 echo >>"$at_stdout"; echo "First backup
17924 " | $at_diff - "$at_stdout" || at_failed=:
17926 77) echo 77 > "$at_status_file"; exit 77;;
17928 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17931 if $at_failed; then
17934 echo 1 > "$at_status_file"
17944 $at_times_p && times >"$at_times_file"
17945 ) 5>&1 2>&1 | eval $at_tee_pipe
17946 at_status=`cat "$at_status_file"`
17949 39 ) # 39. ignfail.at:23: ignfail
17950 at_setup_line='ignfail.at:23'
17952 $at_quiet $ECHO_N " 39: ignfail $ECHO_C"
17954 test -f $XFAILFILE && at_xfail=yes
17955 echo "# -*- compilation -*-" >> "$at_group_log"
17957 echo "39. ignfail.at:23: testing ..."
17965 echo "$at_srcdir/ignfail.at:26:
17969 export TEST_TAR_FORMAT
17970 TAR_OPTIONS=\"-H v7\"
17974 # The test is meaningless for super-user.
17978 cat $$ > /dev/null 2>&1
17981 test $result -eq 0 && exit 77
17986 touch directory/file
17990 tar cf archive file
17993 test \$status = 2 || exit 1
17997 tar cf archive --ignore-failed-read file || exit 1
18000 test \$status = 0 || exit 1
18003 chmod 000 directory
18004 tar cf archive directory
18006 chmod 700 directory
18007 test \$status = 2 || exit 1
18010 chmod 000 directory
18011 tar cf archive --ignore-failed-read directory || exit 1
18013 chmod 700 directory
18016 echo ignfail.at:26 >"$at_check_line_file"
18019 if test -n "$at_traceon"; then
18020 echo 'Not enabling shell tracing (command contains an embedded newline)'
18023 if test -n "$at_trace_this"; then
18028 export TEST_TAR_FORMAT
18029 TAR_OPTIONS="-H v7"
18033 # The test is meaningless for super-user.
18037 cat $$ > /dev/null 2>&1
18040 test $result -eq 0 && exit 77
18045 touch directory/file
18049 tar cf archive file
18052 test $status = 2 || exit 1
18056 tar cf archive --ignore-failed-read file || exit 1
18059 test $status = 0 || exit 1
18062 chmod 000 directory
18063 tar cf archive directory
18065 chmod 700 directory
18066 test $status = 2 || exit 1
18069 chmod 000 directory
18070 tar cf archive --ignore-failed-read directory || exit 1
18072 chmod 700 directory
18074 ) ) >"$at_stdout" 2>"$at_stder1"
18076 grep '^ *+' "$at_stder1" >&2
18077 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18083 export TEST_TAR_FORMAT
18084 TAR_OPTIONS="-H v7"
18088 # The test is meaningless for super-user.
18092 cat $$ > /dev/null 2>&1
18095 test $result -eq 0 && exit 77
18100 touch directory/file
18104 tar cf archive file
18107 test $status = 2 || exit 1
18111 tar cf archive --ignore-failed-read file || exit 1
18114 test $status = 0 || exit 1
18117 chmod 000 directory
18118 tar cf archive directory
18120 chmod 700 directory
18121 test $status = 2 || exit 1
18124 chmod 000 directory
18125 tar cf archive --ignore-failed-read directory || exit 1
18127 chmod 700 directory
18129 ) ) >"$at_stdout" 2>"$at_stderr"
18134 echo >>"$at_stderr"; echo "-----
18135 tar: file: Cannot open: Permission denied
18136 tar: Exiting with failure status due to previous errors
18138 tar: file: Warning: Cannot open: Permission denied
18140 tar: directory: Cannot open: Permission denied
18141 tar: Exiting with failure status due to previous errors
18143 tar: directory: Warning: Cannot open: Permission denied
18144 " | $at_diff - "$at_stderr" || at_failed=:
18145 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18147 77) echo 77 > "$at_status_file"; exit 77;;
18149 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18152 if $at_failed; then
18155 echo 1 > "$at_status_file"
18162 echo "$at_srcdir/ignfail.at:26:
18165 TEST_TAR_FORMAT=oldgnu
18166 export TEST_TAR_FORMAT
18167 TAR_OPTIONS=\"-H oldgnu\"
18171 # The test is meaningless for super-user.
18175 cat $$ > /dev/null 2>&1
18178 test $result -eq 0 && exit 77
18183 touch directory/file
18187 tar cf archive file
18190 test \$status = 2 || exit 1
18194 tar cf archive --ignore-failed-read file || exit 1
18197 test \$status = 0 || exit 1
18200 chmod 000 directory
18201 tar cf archive directory
18203 chmod 700 directory
18204 test \$status = 2 || exit 1
18207 chmod 000 directory
18208 tar cf archive --ignore-failed-read directory || exit 1
18210 chmod 700 directory
18213 echo ignfail.at:26 >"$at_check_line_file"
18216 if test -n "$at_traceon"; then
18217 echo 'Not enabling shell tracing (command contains an embedded newline)'
18220 if test -n "$at_trace_this"; then
18224 TEST_TAR_FORMAT=oldgnu
18225 export TEST_TAR_FORMAT
18226 TAR_OPTIONS="-H oldgnu"
18230 # The test is meaningless for super-user.
18234 cat $$ > /dev/null 2>&1
18237 test $result -eq 0 && exit 77
18242 touch directory/file
18246 tar cf archive file
18249 test $status = 2 || exit 1
18253 tar cf archive --ignore-failed-read file || exit 1
18256 test $status = 0 || exit 1
18259 chmod 000 directory
18260 tar cf archive directory
18262 chmod 700 directory
18263 test $status = 2 || exit 1
18266 chmod 000 directory
18267 tar cf archive --ignore-failed-read directory || exit 1
18269 chmod 700 directory
18271 ) ) >"$at_stdout" 2>"$at_stder1"
18273 grep '^ *+' "$at_stder1" >&2
18274 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18279 TEST_TAR_FORMAT=oldgnu
18280 export TEST_TAR_FORMAT
18281 TAR_OPTIONS="-H oldgnu"
18285 # The test is meaningless for super-user.
18289 cat $$ > /dev/null 2>&1
18292 test $result -eq 0 && exit 77
18297 touch directory/file
18301 tar cf archive file
18304 test $status = 2 || exit 1
18308 tar cf archive --ignore-failed-read file || exit 1
18311 test $status = 0 || exit 1
18314 chmod 000 directory
18315 tar cf archive directory
18317 chmod 700 directory
18318 test $status = 2 || exit 1
18321 chmod 000 directory
18322 tar cf archive --ignore-failed-read directory || exit 1
18324 chmod 700 directory
18326 ) ) >"$at_stdout" 2>"$at_stderr"
18331 echo >>"$at_stderr"; echo "-----
18332 tar: file: Cannot open: Permission denied
18333 tar: Exiting with failure status due to previous errors
18335 tar: file: Warning: Cannot open: Permission denied
18337 tar: directory: Cannot open: Permission denied
18338 tar: Exiting with failure status due to previous errors
18340 tar: directory: Warning: Cannot open: Permission denied
18341 " | $at_diff - "$at_stderr" || at_failed=:
18342 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18344 77) echo 77 > "$at_status_file"; exit 77;;
18346 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18349 if $at_failed; then
18352 echo 1 > "$at_status_file"
18359 echo "$at_srcdir/ignfail.at:26:
18362 TEST_TAR_FORMAT=ustar
18363 export TEST_TAR_FORMAT
18364 TAR_OPTIONS=\"-H ustar\"
18368 # The test is meaningless for super-user.
18372 cat $$ > /dev/null 2>&1
18375 test $result -eq 0 && exit 77
18380 touch directory/file
18384 tar cf archive file
18387 test \$status = 2 || exit 1
18391 tar cf archive --ignore-failed-read file || exit 1
18394 test \$status = 0 || exit 1
18397 chmod 000 directory
18398 tar cf archive directory
18400 chmod 700 directory
18401 test \$status = 2 || exit 1
18404 chmod 000 directory
18405 tar cf archive --ignore-failed-read directory || exit 1
18407 chmod 700 directory
18410 echo ignfail.at:26 >"$at_check_line_file"
18413 if test -n "$at_traceon"; then
18414 echo 'Not enabling shell tracing (command contains an embedded newline)'
18417 if test -n "$at_trace_this"; then
18421 TEST_TAR_FORMAT=ustar
18422 export TEST_TAR_FORMAT
18423 TAR_OPTIONS="-H ustar"
18427 # The test is meaningless for super-user.
18431 cat $$ > /dev/null 2>&1
18434 test $result -eq 0 && exit 77
18439 touch directory/file
18443 tar cf archive file
18446 test $status = 2 || exit 1
18450 tar cf archive --ignore-failed-read file || exit 1
18453 test $status = 0 || exit 1
18456 chmod 000 directory
18457 tar cf archive directory
18459 chmod 700 directory
18460 test $status = 2 || exit 1
18463 chmod 000 directory
18464 tar cf archive --ignore-failed-read directory || exit 1
18466 chmod 700 directory
18468 ) ) >"$at_stdout" 2>"$at_stder1"
18470 grep '^ *+' "$at_stder1" >&2
18471 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18476 TEST_TAR_FORMAT=ustar
18477 export TEST_TAR_FORMAT
18478 TAR_OPTIONS="-H ustar"
18482 # The test is meaningless for super-user.
18486 cat $$ > /dev/null 2>&1
18489 test $result -eq 0 && exit 77
18494 touch directory/file
18498 tar cf archive file
18501 test $status = 2 || exit 1
18505 tar cf archive --ignore-failed-read file || exit 1
18508 test $status = 0 || exit 1
18511 chmod 000 directory
18512 tar cf archive directory
18514 chmod 700 directory
18515 test $status = 2 || exit 1
18518 chmod 000 directory
18519 tar cf archive --ignore-failed-read directory || exit 1
18521 chmod 700 directory
18523 ) ) >"$at_stdout" 2>"$at_stderr"
18528 echo >>"$at_stderr"; echo "-----
18529 tar: file: Cannot open: Permission denied
18530 tar: Exiting with failure status due to previous errors
18532 tar: file: Warning: Cannot open: Permission denied
18534 tar: directory: Cannot open: Permission denied
18535 tar: Exiting with failure status due to previous errors
18537 tar: directory: Warning: Cannot open: Permission denied
18538 " | $at_diff - "$at_stderr" || at_failed=:
18539 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18541 77) echo 77 > "$at_status_file"; exit 77;;
18543 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18546 if $at_failed; then
18549 echo 1 > "$at_status_file"
18556 echo "$at_srcdir/ignfail.at:26:
18559 TEST_TAR_FORMAT=posix
18560 export TEST_TAR_FORMAT
18561 TAR_OPTIONS=\"-H posix\"
18565 # The test is meaningless for super-user.
18569 cat $$ > /dev/null 2>&1
18572 test $result -eq 0 && exit 77
18577 touch directory/file
18581 tar cf archive file
18584 test \$status = 2 || exit 1
18588 tar cf archive --ignore-failed-read file || exit 1
18591 test \$status = 0 || exit 1
18594 chmod 000 directory
18595 tar cf archive directory
18597 chmod 700 directory
18598 test \$status = 2 || exit 1
18601 chmod 000 directory
18602 tar cf archive --ignore-failed-read directory || exit 1
18604 chmod 700 directory
18607 echo ignfail.at:26 >"$at_check_line_file"
18610 if test -n "$at_traceon"; then
18611 echo 'Not enabling shell tracing (command contains an embedded newline)'
18614 if test -n "$at_trace_this"; then
18618 TEST_TAR_FORMAT=posix
18619 export TEST_TAR_FORMAT
18620 TAR_OPTIONS="-H posix"
18624 # The test is meaningless for super-user.
18628 cat $$ > /dev/null 2>&1
18631 test $result -eq 0 && exit 77
18636 touch directory/file
18640 tar cf archive file
18643 test $status = 2 || exit 1
18647 tar cf archive --ignore-failed-read file || exit 1
18650 test $status = 0 || exit 1
18653 chmod 000 directory
18654 tar cf archive directory
18656 chmod 700 directory
18657 test $status = 2 || exit 1
18660 chmod 000 directory
18661 tar cf archive --ignore-failed-read directory || exit 1
18663 chmod 700 directory
18665 ) ) >"$at_stdout" 2>"$at_stder1"
18667 grep '^ *+' "$at_stder1" >&2
18668 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18673 TEST_TAR_FORMAT=posix
18674 export TEST_TAR_FORMAT
18675 TAR_OPTIONS="-H posix"
18679 # The test is meaningless for super-user.
18683 cat $$ > /dev/null 2>&1
18686 test $result -eq 0 && exit 77
18691 touch directory/file
18695 tar cf archive file
18698 test $status = 2 || exit 1
18702 tar cf archive --ignore-failed-read file || exit 1
18705 test $status = 0 || exit 1
18708 chmod 000 directory
18709 tar cf archive directory
18711 chmod 700 directory
18712 test $status = 2 || exit 1
18715 chmod 000 directory
18716 tar cf archive --ignore-failed-read directory || exit 1
18718 chmod 700 directory
18720 ) ) >"$at_stdout" 2>"$at_stderr"
18725 echo >>"$at_stderr"; echo "-----
18726 tar: file: Cannot open: Permission denied
18727 tar: Exiting with failure status due to previous errors
18729 tar: file: Warning: Cannot open: Permission denied
18731 tar: directory: Cannot open: Permission denied
18732 tar: Exiting with failure status due to previous errors
18734 tar: directory: Warning: Cannot open: Permission denied
18735 " | $at_diff - "$at_stderr" || at_failed=:
18736 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18738 77) echo 77 > "$at_status_file"; exit 77;;
18740 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18743 if $at_failed; then
18746 echo 1 > "$at_status_file"
18753 echo "$at_srcdir/ignfail.at:26:
18756 TEST_TAR_FORMAT=gnu
18757 export TEST_TAR_FORMAT
18758 TAR_OPTIONS=\"-H gnu\"
18762 # The test is meaningless for super-user.
18766 cat $$ > /dev/null 2>&1
18769 test $result -eq 0 && exit 77
18774 touch directory/file
18778 tar cf archive file
18781 test \$status = 2 || exit 1
18785 tar cf archive --ignore-failed-read file || exit 1
18788 test \$status = 0 || exit 1
18791 chmod 000 directory
18792 tar cf archive directory
18794 chmod 700 directory
18795 test \$status = 2 || exit 1
18798 chmod 000 directory
18799 tar cf archive --ignore-failed-read directory || exit 1
18801 chmod 700 directory
18804 echo ignfail.at:26 >"$at_check_line_file"
18807 if test -n "$at_traceon"; then
18808 echo 'Not enabling shell tracing (command contains an embedded newline)'
18811 if test -n "$at_trace_this"; then
18815 TEST_TAR_FORMAT=gnu
18816 export TEST_TAR_FORMAT
18817 TAR_OPTIONS="-H gnu"
18821 # The test is meaningless for super-user.
18825 cat $$ > /dev/null 2>&1
18828 test $result -eq 0 && exit 77
18833 touch directory/file
18837 tar cf archive file
18840 test $status = 2 || exit 1
18844 tar cf archive --ignore-failed-read file || exit 1
18847 test $status = 0 || exit 1
18850 chmod 000 directory
18851 tar cf archive directory
18853 chmod 700 directory
18854 test $status = 2 || exit 1
18857 chmod 000 directory
18858 tar cf archive --ignore-failed-read directory || exit 1
18860 chmod 700 directory
18862 ) ) >"$at_stdout" 2>"$at_stder1"
18864 grep '^ *+' "$at_stder1" >&2
18865 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18870 TEST_TAR_FORMAT=gnu
18871 export TEST_TAR_FORMAT
18872 TAR_OPTIONS="-H gnu"
18876 # The test is meaningless for super-user.
18880 cat $$ > /dev/null 2>&1
18883 test $result -eq 0 && exit 77
18888 touch directory/file
18892 tar cf archive file
18895 test $status = 2 || exit 1
18899 tar cf archive --ignore-failed-read file || exit 1
18902 test $status = 0 || exit 1
18905 chmod 000 directory
18906 tar cf archive directory
18908 chmod 700 directory
18909 test $status = 2 || exit 1
18912 chmod 000 directory
18913 tar cf archive --ignore-failed-read directory || exit 1
18915 chmod 700 directory
18917 ) ) >"$at_stdout" 2>"$at_stderr"
18922 echo >>"$at_stderr"; echo "-----
18923 tar: file: Cannot open: Permission denied
18924 tar: Exiting with failure status due to previous errors
18926 tar: file: Warning: Cannot open: Permission denied
18928 tar: directory: Cannot open: Permission denied
18929 tar: Exiting with failure status due to previous errors
18931 tar: directory: Warning: Cannot open: Permission denied
18932 " | $at_diff - "$at_stderr" || at_failed=:
18933 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18935 77) echo 77 > "$at_status_file"; exit 77;;
18937 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18940 if $at_failed; then
18943 echo 1 > "$at_status_file"
18953 $at_times_p && times >"$at_times_file"
18954 ) 5>&1 2>&1 | eval $at_tee_pipe
18955 at_status=`cat "$at_status_file"`
18958 40 ) # 40. link01.at:33: link count gt 2
18959 at_setup_line='link01.at:33'
18960 at_desc="link count gt 2"
18961 $at_quiet $ECHO_N " 40: link count gt 2 $ECHO_C"
18963 test -f $XFAILFILE && at_xfail=yes
18964 echo "# -*- compilation -*-" >> "$at_group_log"
18966 echo "40. link01.at:33: testing ..."
18974 echo "$at_srcdir/link01.at:36:
18978 export TEST_TAR_FORMAT
18979 TAR_OPTIONS=\"-H v7\"
18984 mkdir directory/test1
18985 mkdir directory/test2
18987 echo TEST > directory/test1/test.txt
18988 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18990 tar cf archive directory/test1/test.txt directory/test1/test.txt
18997 echo link01.at:36 >"$at_check_line_file"
19000 if test -n "$at_traceon"; then
19001 echo 'Not enabling shell tracing (command contains an embedded newline)'
19004 if test -n "$at_trace_this"; then
19009 export TEST_TAR_FORMAT
19010 TAR_OPTIONS="-H v7"
19015 mkdir directory/test1
19016 mkdir directory/test2
19018 echo TEST > directory/test1/test.txt
19019 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19021 tar cf archive directory/test1/test.txt directory/test1/test.txt
19027 ) ) >"$at_stdout" 2>"$at_stder1"
19029 grep '^ *+' "$at_stder1" >&2
19030 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19036 export TEST_TAR_FORMAT
19037 TAR_OPTIONS="-H v7"
19042 mkdir directory/test1
19043 mkdir directory/test2
19045 echo TEST > directory/test1/test.txt
19046 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19048 tar cf archive directory/test1/test.txt directory/test1/test.txt
19054 ) ) >"$at_stdout" 2>"$at_stderr"
19059 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19060 echo >>"$at_stdout"; echo "test.txt
19061 " | $at_diff - "$at_stdout" || at_failed=:
19063 77) echo 77 > "$at_status_file"; exit 77;;
19065 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19068 if $at_failed; then
19071 echo 1 > "$at_status_file"
19078 echo "$at_srcdir/link01.at:36:
19081 TEST_TAR_FORMAT=oldgnu
19082 export TEST_TAR_FORMAT
19083 TAR_OPTIONS=\"-H oldgnu\"
19088 mkdir directory/test1
19089 mkdir directory/test2
19091 echo TEST > directory/test1/test.txt
19092 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19094 tar cf archive directory/test1/test.txt directory/test1/test.txt
19101 echo link01.at:36 >"$at_check_line_file"
19104 if test -n "$at_traceon"; then
19105 echo 'Not enabling shell tracing (command contains an embedded newline)'
19108 if test -n "$at_trace_this"; then
19112 TEST_TAR_FORMAT=oldgnu
19113 export TEST_TAR_FORMAT
19114 TAR_OPTIONS="-H oldgnu"
19119 mkdir directory/test1
19120 mkdir directory/test2
19122 echo TEST > directory/test1/test.txt
19123 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19125 tar cf archive directory/test1/test.txt directory/test1/test.txt
19131 ) ) >"$at_stdout" 2>"$at_stder1"
19133 grep '^ *+' "$at_stder1" >&2
19134 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19139 TEST_TAR_FORMAT=oldgnu
19140 export TEST_TAR_FORMAT
19141 TAR_OPTIONS="-H oldgnu"
19146 mkdir directory/test1
19147 mkdir directory/test2
19149 echo TEST > directory/test1/test.txt
19150 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19152 tar cf archive directory/test1/test.txt directory/test1/test.txt
19158 ) ) >"$at_stdout" 2>"$at_stderr"
19163 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19164 echo >>"$at_stdout"; echo "test.txt
19165 " | $at_diff - "$at_stdout" || at_failed=:
19167 77) echo 77 > "$at_status_file"; exit 77;;
19169 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19172 if $at_failed; then
19175 echo 1 > "$at_status_file"
19182 echo "$at_srcdir/link01.at:36:
19185 TEST_TAR_FORMAT=ustar
19186 export TEST_TAR_FORMAT
19187 TAR_OPTIONS=\"-H ustar\"
19192 mkdir directory/test1
19193 mkdir directory/test2
19195 echo TEST > directory/test1/test.txt
19196 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19198 tar cf archive directory/test1/test.txt directory/test1/test.txt
19205 echo link01.at:36 >"$at_check_line_file"
19208 if test -n "$at_traceon"; then
19209 echo 'Not enabling shell tracing (command contains an embedded newline)'
19212 if test -n "$at_trace_this"; then
19216 TEST_TAR_FORMAT=ustar
19217 export TEST_TAR_FORMAT
19218 TAR_OPTIONS="-H ustar"
19223 mkdir directory/test1
19224 mkdir directory/test2
19226 echo TEST > directory/test1/test.txt
19227 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19229 tar cf archive directory/test1/test.txt directory/test1/test.txt
19235 ) ) >"$at_stdout" 2>"$at_stder1"
19237 grep '^ *+' "$at_stder1" >&2
19238 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19243 TEST_TAR_FORMAT=ustar
19244 export TEST_TAR_FORMAT
19245 TAR_OPTIONS="-H ustar"
19250 mkdir directory/test1
19251 mkdir directory/test2
19253 echo TEST > directory/test1/test.txt
19254 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19256 tar cf archive directory/test1/test.txt directory/test1/test.txt
19262 ) ) >"$at_stdout" 2>"$at_stderr"
19267 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19268 echo >>"$at_stdout"; echo "test.txt
19269 " | $at_diff - "$at_stdout" || at_failed=:
19271 77) echo 77 > "$at_status_file"; exit 77;;
19273 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19276 if $at_failed; then
19279 echo 1 > "$at_status_file"
19286 echo "$at_srcdir/link01.at:36:
19289 TEST_TAR_FORMAT=posix
19290 export TEST_TAR_FORMAT
19291 TAR_OPTIONS=\"-H posix\"
19296 mkdir directory/test1
19297 mkdir directory/test2
19299 echo TEST > directory/test1/test.txt
19300 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19302 tar cf archive directory/test1/test.txt directory/test1/test.txt
19309 echo link01.at:36 >"$at_check_line_file"
19312 if test -n "$at_traceon"; then
19313 echo 'Not enabling shell tracing (command contains an embedded newline)'
19316 if test -n "$at_trace_this"; then
19320 TEST_TAR_FORMAT=posix
19321 export TEST_TAR_FORMAT
19322 TAR_OPTIONS="-H posix"
19327 mkdir directory/test1
19328 mkdir directory/test2
19330 echo TEST > directory/test1/test.txt
19331 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19333 tar cf archive directory/test1/test.txt directory/test1/test.txt
19339 ) ) >"$at_stdout" 2>"$at_stder1"
19341 grep '^ *+' "$at_stder1" >&2
19342 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19347 TEST_TAR_FORMAT=posix
19348 export TEST_TAR_FORMAT
19349 TAR_OPTIONS="-H posix"
19354 mkdir directory/test1
19355 mkdir directory/test2
19357 echo TEST > directory/test1/test.txt
19358 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19360 tar cf archive directory/test1/test.txt directory/test1/test.txt
19366 ) ) >"$at_stdout" 2>"$at_stderr"
19371 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19372 echo >>"$at_stdout"; echo "test.txt
19373 " | $at_diff - "$at_stdout" || at_failed=:
19375 77) echo 77 > "$at_status_file"; exit 77;;
19377 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19380 if $at_failed; then
19383 echo 1 > "$at_status_file"
19390 echo "$at_srcdir/link01.at:36:
19393 TEST_TAR_FORMAT=gnu
19394 export TEST_TAR_FORMAT
19395 TAR_OPTIONS=\"-H gnu\"
19400 mkdir directory/test1
19401 mkdir directory/test2
19403 echo TEST > directory/test1/test.txt
19404 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19406 tar cf archive directory/test1/test.txt directory/test1/test.txt
19413 echo link01.at:36 >"$at_check_line_file"
19416 if test -n "$at_traceon"; then
19417 echo 'Not enabling shell tracing (command contains an embedded newline)'
19420 if test -n "$at_trace_this"; then
19424 TEST_TAR_FORMAT=gnu
19425 export TEST_TAR_FORMAT
19426 TAR_OPTIONS="-H gnu"
19431 mkdir directory/test1
19432 mkdir directory/test2
19434 echo TEST > directory/test1/test.txt
19435 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19437 tar cf archive directory/test1/test.txt directory/test1/test.txt
19443 ) ) >"$at_stdout" 2>"$at_stder1"
19445 grep '^ *+' "$at_stder1" >&2
19446 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19451 TEST_TAR_FORMAT=gnu
19452 export TEST_TAR_FORMAT
19453 TAR_OPTIONS="-H gnu"
19458 mkdir directory/test1
19459 mkdir directory/test2
19461 echo TEST > directory/test1/test.txt
19462 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19464 tar cf archive directory/test1/test.txt directory/test1/test.txt
19470 ) ) >"$at_stdout" 2>"$at_stderr"
19475 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19476 echo >>"$at_stdout"; echo "test.txt
19477 " | $at_diff - "$at_stdout" || at_failed=:
19479 77) echo 77 > "$at_status_file"; exit 77;;
19481 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19484 if $at_failed; then
19487 echo 1 > "$at_status_file"
19497 $at_times_p && times >"$at_times_file"
19498 ) 5>&1 2>&1 | eval $at_tee_pipe
19499 at_status=`cat "$at_status_file"`
19502 41 ) # 41. longv7.at:24: long names in V7 archives
19503 at_setup_line='longv7.at:24'
19504 at_desc="long names in V7 archives"
19505 $at_quiet $ECHO_N " 41: long names in V7 archives $ECHO_C"
19507 test -f $XFAILFILE && at_xfail=yes
19508 echo "# -*- compilation -*-" >> "$at_group_log"
19510 echo "41. longv7.at:24: testing ..."
19521 echo "$at_srcdir/longv7.at:30:
19525 export TEST_TAR_FORMAT
19526 TAR_OPTIONS=\"-H v7\"
19530 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19531 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19533 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19537 echo longv7.at:30 >"$at_check_line_file"
19540 if test -n "$at_traceon"; then
19541 echo 'Not enabling shell tracing (command contains an embedded newline)'
19544 if test -n "$at_trace_this"; then
19549 export TEST_TAR_FORMAT
19550 TAR_OPTIONS="-H v7"
19554 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19555 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19557 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19560 ) ) >"$at_stdout" 2>"$at_stder1"
19562 grep '^ *+' "$at_stder1" >&2
19563 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19569 export TEST_TAR_FORMAT
19570 TAR_OPTIONS="-H v7"
19574 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19575 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19577 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19580 ) ) >"$at_stdout" 2>"$at_stderr"
19585 echo >>"$at_stderr"; 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
19586 tar: Exiting with failure status due to previous errors
19587 " | $at_diff - "$at_stderr" || at_failed=:
19588 echo >>"$at_stdout"; echo "separator
19589 this_is_a_very_long_name_for_a_directory_which_causes_problems/
19590 " | $at_diff - "$at_stdout" || at_failed=:
19592 77) echo 77 > "$at_status_file"; exit 77;;
19594 *) echo "$at_srcdir/longv7.at:30: exit code was $at_status, expected 0"
19597 if $at_failed; then
19600 echo 1 > "$at_status_file"
19610 $at_times_p && times >"$at_times_file"
19611 ) 5>&1 2>&1 | eval $at_tee_pipe
19612 at_status=`cat "$at_status_file"`
19615 42 ) # 42. long01.at:28: long file names divisible by block size
19616 at_setup_line='long01.at:28'
19617 at_desc="long file names divisible by block size"
19618 $at_quiet $ECHO_N " 42: long file names divisible by block size $ECHO_C"
19620 test -f $XFAILFILE && at_xfail=yes
19621 echo "# -*- compilation -*-" >> "$at_group_log"
19623 echo "42. long01.at:28: testing ..."
19635 echo "$at_srcdir/long01.at:36:
19638 TEST_TAR_FORMAT=gnu
19639 export TEST_TAR_FORMAT
19640 TAR_OPTIONS=\"-H gnu\"
19645 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
19646 echo test > endfile
19648 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
19650 echo long01.at:36 >"$at_check_line_file"
19653 if test -n "$at_traceon"; then
19654 echo 'Not enabling shell tracing (command contains an embedded newline)'
19657 if test -n "$at_trace_this"; then
19661 TEST_TAR_FORMAT=gnu
19662 export TEST_TAR_FORMAT
19663 TAR_OPTIONS="-H gnu"
19668 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
19669 echo test > endfile
19671 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
19672 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
19674 grep '^ *+' "$at_stder1" >&2
19675 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19680 TEST_TAR_FORMAT=gnu
19681 export TEST_TAR_FORMAT
19682 TAR_OPTIONS="-H gnu"
19687 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
19688 echo test > endfile
19690 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
19691 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
19696 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19697 echo >>"$at_stdout"; 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
19699 " | $at_diff - "$at_stdout" || at_failed=:
19701 77) echo 77 > "$at_status_file"; exit 77;;
19703 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
19706 if $at_failed; then
19709 echo 1 > "$at_status_file"
19716 echo "$at_srcdir/long01.at:36:
19719 TEST_TAR_FORMAT=oldgnu
19720 export TEST_TAR_FORMAT
19721 TAR_OPTIONS=\"-H oldgnu\"
19726 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
19727 echo test > endfile
19729 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
19731 echo long01.at:36 >"$at_check_line_file"
19734 if test -n "$at_traceon"; then
19735 echo 'Not enabling shell tracing (command contains an embedded newline)'
19738 if test -n "$at_trace_this"; then
19742 TEST_TAR_FORMAT=oldgnu
19743 export TEST_TAR_FORMAT
19744 TAR_OPTIONS="-H oldgnu"
19749 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
19750 echo test > endfile
19752 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
19753 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
19755 grep '^ *+' "$at_stder1" >&2
19756 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19761 TEST_TAR_FORMAT=oldgnu
19762 export TEST_TAR_FORMAT
19763 TAR_OPTIONS="-H oldgnu"
19768 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
19769 echo test > endfile
19771 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
19772 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
19777 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19778 echo >>"$at_stdout"; 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
19780 " | $at_diff - "$at_stdout" || at_failed=:
19782 77) echo 77 > "$at_status_file"; exit 77;;
19784 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
19787 if $at_failed; then
19790 echo 1 > "$at_status_file"
19800 $at_times_p && times >"$at_times_file"
19801 ) 5>&1 2>&1 | eval $at_tee_pipe
19802 at_status=`cat "$at_status_file"`
19805 43 ) # 43. lustar01.at:21: ustar: unsplittable file name
19806 at_setup_line='lustar01.at:21'
19807 at_desc="ustar: unsplittable file name"
19808 $at_quiet $ECHO_N " 43: ustar: unsplittable file name $ECHO_C"
19810 test -f $XFAILFILE && at_xfail=yes
19811 echo "# -*- compilation -*-" >> "$at_group_log"
19813 echo "43. lustar01.at:21: testing ..."
19823 echo "$at_srcdir/lustar01.at:27:
19826 TEST_TAR_FORMAT=ustar
19827 export TEST_TAR_FORMAT
19828 TAR_OPTIONS=\"-H ustar\"
19832 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
19833 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
19835 echo lustar01.at:27 >"$at_check_line_file"
19838 if test -n "$at_traceon"; then
19839 echo 'Not enabling shell tracing (command contains an embedded newline)'
19842 if test -n "$at_trace_this"; then
19846 TEST_TAR_FORMAT=ustar
19847 export TEST_TAR_FORMAT
19848 TAR_OPTIONS="-H ustar"
19852 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
19853 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
19854 ) ) >"$at_stdout" 2>"$at_stder1"
19856 grep '^ *+' "$at_stder1" >&2
19857 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19862 TEST_TAR_FORMAT=ustar
19863 export TEST_TAR_FORMAT
19864 TAR_OPTIONS="-H ustar"
19868 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
19869 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
19870 ) ) >"$at_stdout" 2>"$at_stderr"
19875 echo >>"$at_stderr"; 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
19876 tar: Exiting with failure status due to previous errors
19877 " | $at_diff - "$at_stderr" || at_failed=:
19878 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19880 77) echo 77 > "$at_status_file"; exit 77;;
19882 *) echo "$at_srcdir/lustar01.at:27: exit code was $at_status, expected 2"
19885 if $at_failed; then
19888 echo 1 > "$at_status_file"
19898 $at_times_p && times >"$at_times_file"
19899 ) 5>&1 2>&1 | eval $at_tee_pipe
19900 at_status=`cat "$at_status_file"`
19903 44 ) # 44. lustar02.at:21: ustar: unsplittable path name
19904 at_setup_line='lustar02.at:21'
19905 at_desc="ustar: unsplittable path name"
19906 $at_quiet $ECHO_N " 44: ustar: unsplittable path name $ECHO_C"
19908 test -f $XFAILFILE && at_xfail=yes
19909 echo "# -*- compilation -*-" >> "$at_group_log"
19911 echo "44. lustar02.at:21: testing ..."
19925 echo "$at_srcdir/lustar02.at:32:
19928 TEST_TAR_FORMAT=ustar
19929 export TEST_TAR_FORMAT
19930 TAR_OPTIONS=\"-H ustar\"
19935 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
19936 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
19938 echo lustar02.at:32 >"$at_check_line_file"
19941 if test -n "$at_traceon"; then
19942 echo 'Not enabling shell tracing (command contains an embedded newline)'
19945 if test -n "$at_trace_this"; then
19949 TEST_TAR_FORMAT=ustar
19950 export TEST_TAR_FORMAT
19951 TAR_OPTIONS="-H ustar"
19956 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
19957 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
19958 ) ) >"$at_stdout" 2>"$at_stder1"
19960 grep '^ *+' "$at_stder1" >&2
19961 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19966 TEST_TAR_FORMAT=ustar
19967 export TEST_TAR_FORMAT
19968 TAR_OPTIONS="-H ustar"
19973 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
19974 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
19975 ) ) >"$at_stdout" 2>"$at_stderr"
19980 echo >>"$at_stderr"; 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
19981 tar: Exiting with failure status due to previous errors
19982 " | $at_diff - "$at_stderr" || at_failed=:
19983 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19985 77) echo 77 > "$at_status_file"; exit 77;;
19987 *) echo "$at_srcdir/lustar02.at:32: exit code was $at_status, expected 2"
19990 if $at_failed; then
19993 echo 1 > "$at_status_file"
20003 $at_times_p && times >"$at_times_file"
20004 ) 5>&1 2>&1 | eval $at_tee_pipe
20005 at_status=`cat "$at_status_file"`
20008 45 ) # 45. lustar03.at:21: ustar: splitting long names
20009 at_setup_line='lustar03.at:21'
20010 at_desc="ustar: splitting long names"
20011 $at_quiet $ECHO_N " 45: ustar: splitting long names $ECHO_C"
20013 test -f $XFAILFILE && at_xfail=yes
20014 echo "# -*- compilation -*-" >> "$at_group_log"
20016 echo "45. lustar03.at:21: testing ..."
20028 echo "$at_srcdir/lustar03.at:29:
20031 TEST_TAR_FORMAT=ustar
20032 export TEST_TAR_FORMAT
20033 TAR_OPTIONS=\"-H ustar\"
20038 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
20039 echo \"Create archive\"
20040 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
20041 echo \"List archive\"
20043 echo lustar03.at:29 >"$at_check_line_file"
20046 if test -n "$at_traceon"; then
20047 echo 'Not enabling shell tracing (command contains an embedded newline)'
20050 if test -n "$at_trace_this"; then
20054 TEST_TAR_FORMAT=ustar
20055 export TEST_TAR_FORMAT
20056 TAR_OPTIONS="-H ustar"
20061 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
20062 echo "Create archive"
20063 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
20064 echo "List archive"
20065 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
20067 grep '^ *+' "$at_stder1" >&2
20068 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20073 TEST_TAR_FORMAT=ustar
20074 export TEST_TAR_FORMAT
20075 TAR_OPTIONS="-H ustar"
20080 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
20081 echo "Create archive"
20082 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
20083 echo "List archive"
20084 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
20089 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20090 echo >>"$at_stdout"; echo "Create archive
20092 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/
20093 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
20094 " | $at_diff - "$at_stdout" || at_failed=:
20096 77) echo 77 > "$at_status_file"; exit 77;;
20098 *) echo "$at_srcdir/lustar03.at:29: exit code was $at_status, expected 0"
20101 if $at_failed; then
20104 echo 1 > "$at_status_file"
20114 $at_times_p && times >"$at_times_file"
20115 ) 5>&1 2>&1 | eval $at_tee_pipe
20116 at_status=`cat "$at_status_file"`
20119 46 ) # 46. multiv01.at:23: multivolume dumps from pipes
20120 at_setup_line='multiv01.at:23'
20121 at_desc="multivolume dumps from pipes"
20122 $at_quiet $ECHO_N " 46: multivolume dumps from pipes $ECHO_C"
20124 test -f $XFAILFILE && at_xfail=yes
20125 echo "# -*- compilation -*-" >> "$at_group_log"
20127 echo "46. multiv01.at:23: testing ..."
20132 # Fixme: should be configurable
20133 # TRUSS=truss -o /tmp/tr
20139 echo "$at_srcdir/multiv01.at:30:
20142 TEST_TAR_FORMAT=gnu
20143 export TEST_TAR_FORMAT
20144 TAR_OPTIONS=\"-H gnu\"
20149 genfile --length 7168 --file file1
20151 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
20152 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
20153 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20154 for count in 2 3 4 5 6 7 8 ; do
20155 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20159 if test \$TEST_TAR_FORMAT = pax; then
20165 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
20166 --listed-incremental=t.snar \\
20167 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20169 mkdir extract-dir-pipe
20170 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20171 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
20172 -C extract-dir-pipe -x --multi-volume \\
20173 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
20175 cmp file1 extract-dir-pipe/file1
20176 cmp file2 extract-dir-pipe/file2
20178 echo multiv01.at:30 >"$at_check_line_file"
20181 if test -n "$at_traceon"; then
20182 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
20185 if test -n "$at_trace_this"; then
20189 TEST_TAR_FORMAT=gnu
20190 export TEST_TAR_FORMAT
20191 TAR_OPTIONS="-H gnu"
20196 genfile --length 7168 --file file1
20198 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20199 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20200 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20201 for count in 2 3 4 5 6 7 8 ; do
20202 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20206 if test $TEST_TAR_FORMAT = pax; then
20212 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20213 --listed-incremental=t.snar \
20214 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20216 mkdir extract-dir-pipe
20217 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20218 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20219 -C extract-dir-pipe -x --multi-volume \
20220 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20222 cmp file1 extract-dir-pipe/file1
20223 cmp file2 extract-dir-pipe/file2
20224 ) ) >"$at_stdout" 2>"$at_stder1"
20226 grep '^ *+' "$at_stder1" >&2
20227 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20232 TEST_TAR_FORMAT=gnu
20233 export TEST_TAR_FORMAT
20234 TAR_OPTIONS="-H gnu"
20239 genfile --length 7168 --file file1
20241 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20242 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20243 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20244 for count in 2 3 4 5 6 7 8 ; do
20245 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20249 if test $TEST_TAR_FORMAT = pax; then
20255 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20256 --listed-incremental=t.snar \
20257 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20259 mkdir extract-dir-pipe
20260 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20261 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20262 -C extract-dir-pipe -x --multi-volume \
20263 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20265 cmp file1 extract-dir-pipe/file1
20266 cmp file2 extract-dir-pipe/file2
20267 ) ) >"$at_stdout" 2>"$at_stderr"
20272 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20273 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
20275 77) echo 77 > "$at_status_file"; exit 77;;
20277 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
20280 if $at_failed; then
20283 echo 1 > "$at_status_file"
20290 echo "$at_srcdir/multiv01.at:30:
20293 TEST_TAR_FORMAT=oldgnu
20294 export TEST_TAR_FORMAT
20295 TAR_OPTIONS=\"-H oldgnu\"
20300 genfile --length 7168 --file file1
20302 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
20303 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
20304 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20305 for count in 2 3 4 5 6 7 8 ; do
20306 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20310 if test \$TEST_TAR_FORMAT = pax; then
20316 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
20317 --listed-incremental=t.snar \\
20318 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20320 mkdir extract-dir-pipe
20321 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20322 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
20323 -C extract-dir-pipe -x --multi-volume \\
20324 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
20326 cmp file1 extract-dir-pipe/file1
20327 cmp file2 extract-dir-pipe/file2
20329 echo multiv01.at:30 >"$at_check_line_file"
20332 if test -n "$at_traceon"; then
20333 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
20336 if test -n "$at_trace_this"; then
20340 TEST_TAR_FORMAT=oldgnu
20341 export TEST_TAR_FORMAT
20342 TAR_OPTIONS="-H oldgnu"
20347 genfile --length 7168 --file file1
20349 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20350 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20351 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20352 for count in 2 3 4 5 6 7 8 ; do
20353 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20357 if test $TEST_TAR_FORMAT = pax; then
20363 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20364 --listed-incremental=t.snar \
20365 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20367 mkdir extract-dir-pipe
20368 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20369 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20370 -C extract-dir-pipe -x --multi-volume \
20371 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20373 cmp file1 extract-dir-pipe/file1
20374 cmp file2 extract-dir-pipe/file2
20375 ) ) >"$at_stdout" 2>"$at_stder1"
20377 grep '^ *+' "$at_stder1" >&2
20378 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20383 TEST_TAR_FORMAT=oldgnu
20384 export TEST_TAR_FORMAT
20385 TAR_OPTIONS="-H oldgnu"
20390 genfile --length 7168 --file file1
20392 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20393 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20394 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20395 for count in 2 3 4 5 6 7 8 ; do
20396 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20400 if test $TEST_TAR_FORMAT = pax; then
20406 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20407 --listed-incremental=t.snar \
20408 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20410 mkdir extract-dir-pipe
20411 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20412 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20413 -C extract-dir-pipe -x --multi-volume \
20414 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20416 cmp file1 extract-dir-pipe/file1
20417 cmp file2 extract-dir-pipe/file2
20418 ) ) >"$at_stdout" 2>"$at_stderr"
20423 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20424 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
20426 77) echo 77 > "$at_status_file"; exit 77;;
20428 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
20431 if $at_failed; then
20434 echo 1 > "$at_status_file"
20441 echo "$at_srcdir/multiv01.at:30:
20444 TEST_TAR_FORMAT=pax
20445 export TEST_TAR_FORMAT
20446 TAR_OPTIONS=\"-H pax\"
20451 genfile --length 7168 --file file1
20453 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
20454 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
20455 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20456 for count in 2 3 4 5 6 7 8 ; do
20457 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20461 if test \$TEST_TAR_FORMAT = pax; then
20467 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
20468 --listed-incremental=t.snar \\
20469 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20471 mkdir extract-dir-pipe
20472 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20473 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
20474 -C extract-dir-pipe -x --multi-volume \\
20475 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
20477 cmp file1 extract-dir-pipe/file1
20478 cmp file2 extract-dir-pipe/file2
20480 echo multiv01.at:30 >"$at_check_line_file"
20483 if test -n "$at_traceon"; then
20484 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
20487 if test -n "$at_trace_this"; then
20491 TEST_TAR_FORMAT=pax
20492 export TEST_TAR_FORMAT
20493 TAR_OPTIONS="-H pax"
20498 genfile --length 7168 --file file1
20500 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20501 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20502 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20503 for count in 2 3 4 5 6 7 8 ; do
20504 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20508 if test $TEST_TAR_FORMAT = pax; then
20514 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20515 --listed-incremental=t.snar \
20516 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20518 mkdir extract-dir-pipe
20519 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20520 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20521 -C extract-dir-pipe -x --multi-volume \
20522 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20524 cmp file1 extract-dir-pipe/file1
20525 cmp file2 extract-dir-pipe/file2
20526 ) ) >"$at_stdout" 2>"$at_stder1"
20528 grep '^ *+' "$at_stder1" >&2
20529 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20534 TEST_TAR_FORMAT=pax
20535 export TEST_TAR_FORMAT
20536 TAR_OPTIONS="-H pax"
20541 genfile --length 7168 --file file1
20543 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20544 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20545 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20546 for count in 2 3 4 5 6 7 8 ; do
20547 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20551 if test $TEST_TAR_FORMAT = pax; then
20557 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20558 --listed-incremental=t.snar \
20559 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20561 mkdir extract-dir-pipe
20562 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20563 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20564 -C extract-dir-pipe -x --multi-volume \
20565 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20567 cmp file1 extract-dir-pipe/file1
20568 cmp file2 extract-dir-pipe/file2
20569 ) ) >"$at_stdout" 2>"$at_stderr"
20574 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20575 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
20577 77) echo 77 > "$at_status_file"; exit 77;;
20579 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
20582 if $at_failed; then
20585 echo 1 > "$at_status_file"
20595 $at_times_p && times >"$at_times_file"
20596 ) 5>&1 2>&1 | eval $at_tee_pipe
20597 at_status=`cat "$at_status_file"`
20600 47 ) # 47. multiv02.at:28: skipping a straddling member
20601 at_setup_line='multiv02.at:28'
20602 at_desc="skipping a straddling member"
20603 $at_quiet $ECHO_N " 47: skipping a straddling member $ECHO_C"
20605 test -f $XFAILFILE && at_xfail=yes
20606 echo "# -*- compilation -*-" >> "$at_group_log"
20608 echo "47. multiv02.at:28: testing ..."
20616 echo "$at_srcdir/multiv02.at:31:
20619 TEST_TAR_FORMAT=gnu
20620 export TEST_TAR_FORMAT
20621 TAR_OPTIONS=\"-H gnu\"
20625 genfile --length 10240 --file en
20626 genfile --length 20000 --file to
20627 genfile --length 20000 --file tre
20628 genfile --length 10240 --file fire
20632 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20634 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20636 echo multiv02.at:31 >"$at_check_line_file"
20639 if test -n "$at_traceon"; then
20640 echo 'Not enabling shell tracing (command contains an embedded newline)'
20643 if test -n "$at_trace_this"; then
20647 TEST_TAR_FORMAT=gnu
20648 export TEST_TAR_FORMAT
20649 TAR_OPTIONS="-H gnu"
20653 genfile --length 10240 --file en
20654 genfile --length 20000 --file to
20655 genfile --length 20000 --file tre
20656 genfile --length 10240 --file fire
20660 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20662 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20663 ) ) >"$at_stdout" 2>"$at_stder1"
20665 grep '^ *+' "$at_stder1" >&2
20666 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20671 TEST_TAR_FORMAT=gnu
20672 export TEST_TAR_FORMAT
20673 TAR_OPTIONS="-H gnu"
20677 genfile --length 10240 --file en
20678 genfile --length 20000 --file to
20679 genfile --length 20000 --file tre
20680 genfile --length 10240 --file fire
20684 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20686 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20687 ) ) >"$at_stdout" 2>"$at_stderr"
20692 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20693 echo >>"$at_stdout"; echo "separator
20695 " | $at_diff - "$at_stdout" || at_failed=:
20697 77) echo 77 > "$at_status_file"; exit 77;;
20699 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20702 if $at_failed; then
20705 echo 1 > "$at_status_file"
20712 echo "$at_srcdir/multiv02.at:31:
20715 TEST_TAR_FORMAT=oldgnu
20716 export TEST_TAR_FORMAT
20717 TAR_OPTIONS=\"-H oldgnu\"
20721 genfile --length 10240 --file en
20722 genfile --length 20000 --file to
20723 genfile --length 20000 --file tre
20724 genfile --length 10240 --file fire
20728 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20730 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20732 echo multiv02.at:31 >"$at_check_line_file"
20735 if test -n "$at_traceon"; then
20736 echo 'Not enabling shell tracing (command contains an embedded newline)'
20739 if test -n "$at_trace_this"; then
20743 TEST_TAR_FORMAT=oldgnu
20744 export TEST_TAR_FORMAT
20745 TAR_OPTIONS="-H oldgnu"
20749 genfile --length 10240 --file en
20750 genfile --length 20000 --file to
20751 genfile --length 20000 --file tre
20752 genfile --length 10240 --file fire
20756 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20758 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20759 ) ) >"$at_stdout" 2>"$at_stder1"
20761 grep '^ *+' "$at_stder1" >&2
20762 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20767 TEST_TAR_FORMAT=oldgnu
20768 export TEST_TAR_FORMAT
20769 TAR_OPTIONS="-H oldgnu"
20773 genfile --length 10240 --file en
20774 genfile --length 20000 --file to
20775 genfile --length 20000 --file tre
20776 genfile --length 10240 --file fire
20780 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20782 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20783 ) ) >"$at_stdout" 2>"$at_stderr"
20788 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20789 echo >>"$at_stdout"; echo "separator
20791 " | $at_diff - "$at_stdout" || at_failed=:
20793 77) echo 77 > "$at_status_file"; exit 77;;
20795 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20798 if $at_failed; then
20801 echo 1 > "$at_status_file"
20808 echo "$at_srcdir/multiv02.at:31:
20811 TEST_TAR_FORMAT=pax
20812 export TEST_TAR_FORMAT
20813 TAR_OPTIONS=\"-H pax\"
20817 genfile --length 10240 --file en
20818 genfile --length 20000 --file to
20819 genfile --length 20000 --file tre
20820 genfile --length 10240 --file fire
20824 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20826 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20828 echo multiv02.at:31 >"$at_check_line_file"
20831 if test -n "$at_traceon"; then
20832 echo 'Not enabling shell tracing (command contains an embedded newline)'
20835 if test -n "$at_trace_this"; then
20839 TEST_TAR_FORMAT=pax
20840 export TEST_TAR_FORMAT
20841 TAR_OPTIONS="-H pax"
20845 genfile --length 10240 --file en
20846 genfile --length 20000 --file to
20847 genfile --length 20000 --file tre
20848 genfile --length 10240 --file fire
20852 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20854 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20855 ) ) >"$at_stdout" 2>"$at_stder1"
20857 grep '^ *+' "$at_stder1" >&2
20858 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20863 TEST_TAR_FORMAT=pax
20864 export TEST_TAR_FORMAT
20865 TAR_OPTIONS="-H pax"
20869 genfile --length 10240 --file en
20870 genfile --length 20000 --file to
20871 genfile --length 20000 --file tre
20872 genfile --length 10240 --file fire
20876 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20878 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20879 ) ) >"$at_stdout" 2>"$at_stderr"
20884 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20885 echo >>"$at_stdout"; echo "separator
20887 " | $at_diff - "$at_stdout" || at_failed=:
20889 77) echo 77 > "$at_status_file"; exit 77;;
20891 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20894 if $at_failed; then
20897 echo 1 > "$at_status_file"
20907 $at_times_p && times >"$at_times_file"
20908 ) 5>&1 2>&1 | eval $at_tee_pipe
20909 at_status=`cat "$at_status_file"`
20912 48 ) # 48. multiv03.at:30: MV archive & long filenames
20913 at_setup_line='multiv03.at:30'
20914 at_desc="MV archive & long filenames"
20915 $at_quiet $ECHO_N " 48: MV archive & long filenames $ECHO_C"
20917 test -f $XFAILFILE && at_xfail=yes
20918 echo "# -*- compilation -*-" >> "$at_group_log"
20920 echo "48. multiv03.at:30: testing ..."
20928 echo "$at_srcdir/multiv03.at:33:
20931 TEST_TAR_FORMAT=gnu
20932 export TEST_TAR_FORMAT
20933 TAR_OPTIONS=\"-H gnu\"
20937 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
20938 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
20940 cat > ../experr <<EOF
20941 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
20942 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
20945 cat > ../expout <<EOF
20951 genfile --length 15360 --file \$AFILE
20955 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
20956 tar -tM -f arch.1 -f arch.2 || exit 1
20960 genfile --length 15360 --file \$BFILE
20961 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
20965 tar -M -x -f arch.1 -f arch.2 || exit 1
20968 echo multiv03.at:33 >"$at_check_line_file"
20971 if test -n "$at_traceon"; then
20972 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
20975 if test -n "$at_trace_this"; then
20979 TEST_TAR_FORMAT=gnu
20980 export TEST_TAR_FORMAT
20981 TAR_OPTIONS="-H gnu"
20985 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
20986 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
20988 cat > ../experr <<EOF
20989 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
20990 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
20993 cat > ../expout <<EOF
20999 genfile --length 15360 --file $AFILE
21003 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
21004 tar -tM -f arch.1 -f arch.2 || exit 1
21008 genfile --length 15360 --file $BFILE
21009 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
21013 tar -M -x -f arch.1 -f arch.2 || exit 1
21015 ) ) >"$at_stdout" 2>"$at_stder1"
21017 grep '^ *+' "$at_stder1" >&2
21018 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21023 TEST_TAR_FORMAT=gnu
21024 export TEST_TAR_FORMAT
21025 TAR_OPTIONS="-H gnu"
21029 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
21030 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
21032 cat > ../experr <<EOF
21033 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
21034 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
21037 cat > ../expout <<EOF
21043 genfile --length 15360 --file $AFILE
21047 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
21048 tar -tM -f arch.1 -f arch.2 || exit 1
21052 genfile --length 15360 --file $BFILE
21053 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
21057 tar -M -x -f arch.1 -f arch.2 || exit 1
21059 ) ) >"$at_stdout" 2>"$at_stderr"
21064 $at_diff experr "$at_stderr" || at_failed=:
21065 $at_diff expout "$at_stdout" || at_failed=:
21067 77) echo 77 > "$at_status_file"; exit 77;;
21069 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
21072 if $at_failed; then
21075 echo 1 > "$at_status_file"
21082 echo "$at_srcdir/multiv03.at:33:
21085 TEST_TAR_FORMAT=oldgnu
21086 export TEST_TAR_FORMAT
21087 TAR_OPTIONS=\"-H oldgnu\"
21091 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
21092 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
21094 cat > ../experr <<EOF
21095 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
21096 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
21099 cat > ../expout <<EOF
21105 genfile --length 15360 --file \$AFILE
21109 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
21110 tar -tM -f arch.1 -f arch.2 || exit 1
21114 genfile --length 15360 --file \$BFILE
21115 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
21119 tar -M -x -f arch.1 -f arch.2 || exit 1
21122 echo multiv03.at:33 >"$at_check_line_file"
21125 if test -n "$at_traceon"; then
21126 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21129 if test -n "$at_trace_this"; then
21133 TEST_TAR_FORMAT=oldgnu
21134 export TEST_TAR_FORMAT
21135 TAR_OPTIONS="-H oldgnu"
21139 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
21140 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
21142 cat > ../experr <<EOF
21143 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
21144 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
21147 cat > ../expout <<EOF
21153 genfile --length 15360 --file $AFILE
21157 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
21158 tar -tM -f arch.1 -f arch.2 || exit 1
21162 genfile --length 15360 --file $BFILE
21163 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
21167 tar -M -x -f arch.1 -f arch.2 || exit 1
21169 ) ) >"$at_stdout" 2>"$at_stder1"
21171 grep '^ *+' "$at_stder1" >&2
21172 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21177 TEST_TAR_FORMAT=oldgnu
21178 export TEST_TAR_FORMAT
21179 TAR_OPTIONS="-H oldgnu"
21183 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
21184 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
21186 cat > ../experr <<EOF
21187 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
21188 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
21191 cat > ../expout <<EOF
21197 genfile --length 15360 --file $AFILE
21201 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
21202 tar -tM -f arch.1 -f arch.2 || exit 1
21206 genfile --length 15360 --file $BFILE
21207 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
21211 tar -M -x -f arch.1 -f arch.2 || exit 1
21213 ) ) >"$at_stdout" 2>"$at_stderr"
21218 $at_diff experr "$at_stderr" || at_failed=:
21219 $at_diff expout "$at_stdout" || at_failed=:
21221 77) echo 77 > "$at_status_file"; exit 77;;
21223 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
21226 if $at_failed; then
21229 echo 1 > "$at_status_file"
21239 $at_times_p && times >"$at_times_file"
21240 ) 5>&1 2>&1 | eval $at_tee_pipe
21241 at_status=`cat "$at_status_file"`
21244 49 ) # 49. multiv04.at:36: split directory members in a MV archive
21245 at_setup_line='multiv04.at:36'
21246 at_desc="split directory members in a MV archive"
21247 $at_quiet $ECHO_N " 49: split directory members in a MV archive $ECHO_C"
21249 test -f $XFAILFILE && at_xfail=yes
21250 echo "# -*- compilation -*-" >> "$at_group_log"
21252 echo "49. multiv04.at:36: testing ..."
21260 echo "$at_srcdir/multiv04.at:39:
21263 TEST_TAR_FORMAT=gnu
21264 export TEST_TAR_FORMAT
21265 TAR_OPTIONS=\"-H gnu\"
21271 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
21277 tar --listed-incremental=list -c -f archive.a directory
21281 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21285 tar -MRt -f arc.1 -f arc.2)"
21286 echo multiv04.at:39 >"$at_check_line_file"
21289 if test -n "$at_traceon"; then
21290 echo 'Not enabling shell tracing (command contains an embedded newline)'
21293 if test -n "$at_trace_this"; then
21297 TEST_TAR_FORMAT=gnu
21298 export TEST_TAR_FORMAT
21299 TAR_OPTIONS="-H gnu"
21305 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21311 tar --listed-incremental=list -c -f archive.a directory
21315 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21319 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
21321 grep '^ *+' "$at_stder1" >&2
21322 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21327 TEST_TAR_FORMAT=gnu
21328 export TEST_TAR_FORMAT
21329 TAR_OPTIONS="-H gnu"
21335 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21341 tar --listed-incremental=list -c -f archive.a directory
21345 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21349 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
21354 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21355 echo >>"$at_stdout"; echo "directory/
21357 block 0: directory/
21358 block 35: ** Block of NULs **
21359 " | $at_diff - "$at_stdout" || at_failed=:
21361 77) echo 77 > "$at_status_file"; exit 77;;
21363 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
21366 if $at_failed; then
21369 echo 1 > "$at_status_file"
21376 echo "$at_srcdir/multiv04.at:39:
21379 TEST_TAR_FORMAT=oldgnu
21380 export TEST_TAR_FORMAT
21381 TAR_OPTIONS=\"-H oldgnu\"
21387 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
21393 tar --listed-incremental=list -c -f archive.a directory
21397 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21401 tar -MRt -f arc.1 -f arc.2)"
21402 echo multiv04.at:39 >"$at_check_line_file"
21405 if test -n "$at_traceon"; then
21406 echo 'Not enabling shell tracing (command contains an embedded newline)'
21409 if test -n "$at_trace_this"; then
21413 TEST_TAR_FORMAT=oldgnu
21414 export TEST_TAR_FORMAT
21415 TAR_OPTIONS="-H oldgnu"
21421 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21427 tar --listed-incremental=list -c -f archive.a directory
21431 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21435 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
21437 grep '^ *+' "$at_stder1" >&2
21438 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21443 TEST_TAR_FORMAT=oldgnu
21444 export TEST_TAR_FORMAT
21445 TAR_OPTIONS="-H oldgnu"
21451 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21457 tar --listed-incremental=list -c -f archive.a directory
21461 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21465 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
21470 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21471 echo >>"$at_stdout"; echo "directory/
21473 block 0: directory/
21474 block 35: ** Block of NULs **
21475 " | $at_diff - "$at_stdout" || at_failed=:
21477 77) echo 77 > "$at_status_file"; exit 77;;
21479 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
21482 if $at_failed; then
21485 echo 1 > "$at_status_file"
21495 $at_times_p && times >"$at_times_file"
21496 ) 5>&1 2>&1 | eval $at_tee_pipe
21497 at_status=`cat "$at_status_file"`
21500 50 ) # 50. multiv05.at:26: Restoring after an out of sync volume
21501 at_setup_line='multiv05.at:26'
21502 at_desc="Restoring after an out of sync volume"
21503 $at_quiet $ECHO_N " 50: Restoring after an out of sync volume $ECHO_C"
21505 test -f $XFAILFILE && at_xfail=yes
21506 echo "# -*- compilation -*-" >> "$at_group_log"
21508 echo "50. multiv05.at:26: testing ..."
21517 echo "$at_srcdir/multiv05.at:30:
21520 TEST_TAR_FORMAT=gnu
21521 export TEST_TAR_FORMAT
21522 TAR_OPTIONS=\"-H gnu\"
21528 genfile --length 250k --file jeden
21529 genfile --length 250k --file dwa
21530 genfile --length 250k --file trzy
21531 genfile --length 250k --file cztery
21532 genfile --length 250k --file piec
21533 genfile --length 250k --file szesc
21536 echo Creating archive
21537 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21540 mv jeden dwa trzy cztery piec szesc bak
21541 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21543 cmp bak/jeden jeden || exit 1
21545 cmp bak/dwa dwa || exit 1
21547 cmp bak/trzy trzy || exit 1
21548 echo Diffing cztery
21549 cmp bak/cztery cztery || exit 1
21551 cmp bak/piec piec || exit 1
21553 cmp bak/szesc szesc || exit 1
21555 echo multiv05.at:30 >"$at_check_line_file"
21558 if test -n "$at_traceon"; then
21559 echo 'Not enabling shell tracing (command contains an embedded newline)'
21562 if test -n "$at_trace_this"; then
21566 TEST_TAR_FORMAT=gnu
21567 export TEST_TAR_FORMAT
21568 TAR_OPTIONS="-H gnu"
21574 genfile --length 250k --file jeden
21575 genfile --length 250k --file dwa
21576 genfile --length 250k --file trzy
21577 genfile --length 250k --file cztery
21578 genfile --length 250k --file piec
21579 genfile --length 250k --file szesc
21582 echo Creating archive
21583 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21586 mv jeden dwa trzy cztery piec szesc bak
21587 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21589 cmp bak/jeden jeden || exit 1
21591 cmp bak/dwa dwa || exit 1
21593 cmp bak/trzy trzy || exit 1
21594 echo Diffing cztery
21595 cmp bak/cztery cztery || exit 1
21597 cmp bak/piec piec || exit 1
21599 cmp bak/szesc szesc || exit 1
21600 ) ) >"$at_stdout" 2>"$at_stder1"
21602 grep '^ *+' "$at_stder1" >&2
21603 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21608 TEST_TAR_FORMAT=gnu
21609 export TEST_TAR_FORMAT
21610 TAR_OPTIONS="-H gnu"
21616 genfile --length 250k --file jeden
21617 genfile --length 250k --file dwa
21618 genfile --length 250k --file trzy
21619 genfile --length 250k --file cztery
21620 genfile --length 250k --file piec
21621 genfile --length 250k --file szesc
21624 echo Creating archive
21625 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21628 mv jeden dwa trzy cztery piec szesc bak
21629 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21631 cmp bak/jeden jeden || exit 1
21633 cmp bak/dwa dwa || exit 1
21635 cmp bak/trzy trzy || exit 1
21636 echo Diffing cztery
21637 cmp bak/cztery cztery || exit 1
21639 cmp bak/piec piec || exit 1
21641 cmp bak/szesc szesc || exit 1
21642 ) ) >"$at_stdout" 2>"$at_stderr"
21647 echo >>"$at_stderr"; echo "tar: \`trzy' is not continued on this volume
21648 " | $at_diff - "$at_stderr" || at_failed=:
21649 echo >>"$at_stdout"; echo "Creating archive
21663 " | $at_diff - "$at_stdout" || at_failed=:
21665 77) echo 77 > "$at_status_file"; exit 77;;
21667 *) echo "$at_srcdir/multiv05.at:30: exit code was $at_status, expected 0"
21670 if $at_failed; then
21673 echo 1 > "$at_status_file"
21683 $at_times_p && times >"$at_times_file"
21684 ) 5>&1 2>&1 | eval $at_tee_pipe
21685 at_status=`cat "$at_status_file"`
21688 51 ) # 51. multiv06.at:27: Multivolumes with L=record_size
21689 at_setup_line='multiv06.at:27'
21690 at_desc="Multivolumes with L=record_size"
21691 $at_quiet $ECHO_N " 51: Multivolumes with L=record_size $ECHO_C"
21693 test -f $XFAILFILE && at_xfail=yes
21694 echo "# -*- compilation -*-" >> "$at_group_log"
21696 echo "51. multiv06.at:27: testing ..."
21704 echo "$at_srcdir/multiv06.at:30:
21707 TEST_TAR_FORMAT=gnu
21708 export TEST_TAR_FORMAT
21709 TAR_OPTIONS=\"-H gnu\"
21714 decho Creating file
21715 genfile --length 20139 --file file
21716 decho Creating archive
21717 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21718 decho Testing archive
21719 tar -t -M -farc.1 -farc.2 -farc.3)"
21720 echo multiv06.at:30 >"$at_check_line_file"
21723 if test -n "$at_traceon"; then
21724 echo 'Not enabling shell tracing (command contains an embedded newline)'
21727 if test -n "$at_trace_this"; then
21731 TEST_TAR_FORMAT=gnu
21732 export TEST_TAR_FORMAT
21733 TAR_OPTIONS="-H gnu"
21738 decho Creating file
21739 genfile --length 20139 --file file
21740 decho Creating archive
21741 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21742 decho Testing archive
21743 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
21745 grep '^ *+' "$at_stder1" >&2
21746 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21751 TEST_TAR_FORMAT=gnu
21752 export TEST_TAR_FORMAT
21753 TAR_OPTIONS="-H gnu"
21758 decho Creating file
21759 genfile --length 20139 --file file
21760 decho Creating archive
21761 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21762 decho Testing archive
21763 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
21768 echo >>"$at_stderr"; echo "Creating file
21771 " | $at_diff - "$at_stderr" || at_failed=:
21772 echo >>"$at_stdout"; echo "Creating file
21776 " | $at_diff - "$at_stdout" || at_failed=:
21778 77) echo 77 > "$at_status_file"; exit 77;;
21780 *) echo "$at_srcdir/multiv06.at:30: exit code was $at_status, expected 0"
21783 if $at_failed; then
21786 echo 1 > "$at_status_file"
21793 echo "$at_srcdir/multiv06.at:30:
21796 TEST_TAR_FORMAT=pax
21797 export TEST_TAR_FORMAT
21798 TAR_OPTIONS=\"-H pax\"
21803 decho Creating file
21804 genfile --length 20139 --file file
21805 decho Creating archive
21806 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21807 decho Testing archive
21808 tar -t -M -farc.1 -farc.2 -farc.3)"
21809 echo multiv06.at:30 >"$at_check_line_file"
21812 if test -n "$at_traceon"; then
21813 echo 'Not enabling shell tracing (command contains an embedded newline)'
21816 if test -n "$at_trace_this"; then
21820 TEST_TAR_FORMAT=pax
21821 export TEST_TAR_FORMAT
21822 TAR_OPTIONS="-H pax"
21827 decho Creating file
21828 genfile --length 20139 --file file
21829 decho Creating archive
21830 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21831 decho Testing archive
21832 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
21834 grep '^ *+' "$at_stder1" >&2
21835 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21840 TEST_TAR_FORMAT=pax
21841 export TEST_TAR_FORMAT
21842 TAR_OPTIONS="-H pax"
21847 decho Creating file
21848 genfile --length 20139 --file file
21849 decho Creating archive
21850 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21851 decho Testing archive
21852 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
21857 echo >>"$at_stderr"; echo "Creating file
21860 " | $at_diff - "$at_stderr" || at_failed=:
21861 echo >>"$at_stdout"; echo "Creating file
21865 " | $at_diff - "$at_stdout" || at_failed=:
21867 77) echo 77 > "$at_status_file"; exit 77;;
21869 *) echo "$at_srcdir/multiv06.at:30: exit code was $at_status, expected 0"
21872 if $at_failed; then
21875 echo 1 > "$at_status_file"
21885 $at_times_p && times >"$at_times_file"
21886 ) 5>&1 2>&1 | eval $at_tee_pipe
21887 at_status=`cat "$at_status_file"`
21890 52 ) # 52. old.at:23: old archives
21891 at_setup_line='old.at:23'
21892 at_desc="old archives"
21893 $at_quiet $ECHO_N " 52: old archives $ECHO_C"
21895 echo "# -*- compilation -*-" >> "$at_group_log"
21897 echo "52. old.at:23: testing ..."
21904 echo "$at_srcdir/old.at:27:
21906 tar cfvo archive directory || exit 1
21909 echo old.at:27 >"$at_check_line_file"
21912 if test -n "$at_traceon"; then
21913 echo 'Not enabling shell tracing (command contains an embedded newline)'
21916 if test -n "$at_trace_this"; then
21919 tar cfvo archive directory || exit 1
21921 ) >"$at_stdout" 2>"$at_stder1"
21923 grep '^ *+' "$at_stder1" >&2
21924 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21928 tar cfvo archive directory || exit 1
21930 ) >"$at_stdout" 2>"$at_stderr"
21935 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21936 echo >>"$at_stdout"; echo "directory/
21938 " | $at_diff - "$at_stdout" || at_failed=:
21940 77) echo 77 > "$at_status_file"; exit 77;;
21942 *) echo "$at_srcdir/old.at:27: exit code was $at_status, expected 0"
21945 if $at_failed; then
21948 echo 1 > "$at_status_file"
21956 $at_times_p && times >"$at_times_file"
21957 ) 5>&1 2>&1 | eval $at_tee_pipe
21958 at_status=`cat "$at_status_file"`
21961 53 ) # 53. recurse.at:21: recurse
21962 at_setup_line='recurse.at:21'
21964 $at_quiet $ECHO_N " 53: recurse $ECHO_C"
21966 test -f $XFAILFILE && at_xfail=yes
21967 echo "# -*- compilation -*-" >> "$at_group_log"
21969 echo "53. recurse.at:21: testing ..."
21977 echo "$at_srcdir/recurse.at:24:
21981 export TEST_TAR_FORMAT
21982 TAR_OPTIONS=\"-H v7\"
21987 touch directory/file
21988 tar --create --file archive --no-recursion directory || exit 1
21991 echo recurse.at:24 >"$at_check_line_file"
21994 if test -n "$at_traceon"; then
21995 echo 'Not enabling shell tracing (command contains an embedded newline)'
21998 if test -n "$at_trace_this"; then
22003 export TEST_TAR_FORMAT
22004 TAR_OPTIONS="-H v7"
22009 touch directory/file
22010 tar --create --file archive --no-recursion directory || exit 1
22012 ) ) >"$at_stdout" 2>"$at_stder1"
22014 grep '^ *+' "$at_stder1" >&2
22015 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22021 export TEST_TAR_FORMAT
22022 TAR_OPTIONS="-H v7"
22027 touch directory/file
22028 tar --create --file archive --no-recursion directory || exit 1
22030 ) ) >"$at_stdout" 2>"$at_stderr"
22035 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22036 echo >>"$at_stdout"; echo "directory/
22037 " | $at_diff - "$at_stdout" || at_failed=:
22039 77) echo 77 > "$at_status_file"; exit 77;;
22041 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22044 if $at_failed; then
22047 echo 1 > "$at_status_file"
22054 echo "$at_srcdir/recurse.at:24:
22057 TEST_TAR_FORMAT=oldgnu
22058 export TEST_TAR_FORMAT
22059 TAR_OPTIONS=\"-H oldgnu\"
22064 touch directory/file
22065 tar --create --file archive --no-recursion directory || exit 1
22068 echo recurse.at:24 >"$at_check_line_file"
22071 if test -n "$at_traceon"; then
22072 echo 'Not enabling shell tracing (command contains an embedded newline)'
22075 if test -n "$at_trace_this"; then
22079 TEST_TAR_FORMAT=oldgnu
22080 export TEST_TAR_FORMAT
22081 TAR_OPTIONS="-H oldgnu"
22086 touch directory/file
22087 tar --create --file archive --no-recursion directory || exit 1
22089 ) ) >"$at_stdout" 2>"$at_stder1"
22091 grep '^ *+' "$at_stder1" >&2
22092 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22097 TEST_TAR_FORMAT=oldgnu
22098 export TEST_TAR_FORMAT
22099 TAR_OPTIONS="-H oldgnu"
22104 touch directory/file
22105 tar --create --file archive --no-recursion directory || exit 1
22107 ) ) >"$at_stdout" 2>"$at_stderr"
22112 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22113 echo >>"$at_stdout"; echo "directory/
22114 " | $at_diff - "$at_stdout" || at_failed=:
22116 77) echo 77 > "$at_status_file"; exit 77;;
22118 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22121 if $at_failed; then
22124 echo 1 > "$at_status_file"
22131 echo "$at_srcdir/recurse.at:24:
22134 TEST_TAR_FORMAT=ustar
22135 export TEST_TAR_FORMAT
22136 TAR_OPTIONS=\"-H ustar\"
22141 touch directory/file
22142 tar --create --file archive --no-recursion directory || exit 1
22145 echo recurse.at:24 >"$at_check_line_file"
22148 if test -n "$at_traceon"; then
22149 echo 'Not enabling shell tracing (command contains an embedded newline)'
22152 if test -n "$at_trace_this"; then
22156 TEST_TAR_FORMAT=ustar
22157 export TEST_TAR_FORMAT
22158 TAR_OPTIONS="-H ustar"
22163 touch directory/file
22164 tar --create --file archive --no-recursion directory || exit 1
22166 ) ) >"$at_stdout" 2>"$at_stder1"
22168 grep '^ *+' "$at_stder1" >&2
22169 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22174 TEST_TAR_FORMAT=ustar
22175 export TEST_TAR_FORMAT
22176 TAR_OPTIONS="-H ustar"
22181 touch directory/file
22182 tar --create --file archive --no-recursion directory || exit 1
22184 ) ) >"$at_stdout" 2>"$at_stderr"
22189 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22190 echo >>"$at_stdout"; echo "directory/
22191 " | $at_diff - "$at_stdout" || at_failed=:
22193 77) echo 77 > "$at_status_file"; exit 77;;
22195 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22198 if $at_failed; then
22201 echo 1 > "$at_status_file"
22208 echo "$at_srcdir/recurse.at:24:
22211 TEST_TAR_FORMAT=posix
22212 export TEST_TAR_FORMAT
22213 TAR_OPTIONS=\"-H posix\"
22218 touch directory/file
22219 tar --create --file archive --no-recursion directory || exit 1
22222 echo recurse.at:24 >"$at_check_line_file"
22225 if test -n "$at_traceon"; then
22226 echo 'Not enabling shell tracing (command contains an embedded newline)'
22229 if test -n "$at_trace_this"; then
22233 TEST_TAR_FORMAT=posix
22234 export TEST_TAR_FORMAT
22235 TAR_OPTIONS="-H posix"
22240 touch directory/file
22241 tar --create --file archive --no-recursion directory || exit 1
22243 ) ) >"$at_stdout" 2>"$at_stder1"
22245 grep '^ *+' "$at_stder1" >&2
22246 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22251 TEST_TAR_FORMAT=posix
22252 export TEST_TAR_FORMAT
22253 TAR_OPTIONS="-H posix"
22258 touch directory/file
22259 tar --create --file archive --no-recursion directory || exit 1
22261 ) ) >"$at_stdout" 2>"$at_stderr"
22266 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22267 echo >>"$at_stdout"; echo "directory/
22268 " | $at_diff - "$at_stdout" || at_failed=:
22270 77) echo 77 > "$at_status_file"; exit 77;;
22272 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22275 if $at_failed; then
22278 echo 1 > "$at_status_file"
22285 echo "$at_srcdir/recurse.at:24:
22288 TEST_TAR_FORMAT=gnu
22289 export TEST_TAR_FORMAT
22290 TAR_OPTIONS=\"-H gnu\"
22295 touch directory/file
22296 tar --create --file archive --no-recursion directory || exit 1
22299 echo recurse.at:24 >"$at_check_line_file"
22302 if test -n "$at_traceon"; then
22303 echo 'Not enabling shell tracing (command contains an embedded newline)'
22306 if test -n "$at_trace_this"; then
22310 TEST_TAR_FORMAT=gnu
22311 export TEST_TAR_FORMAT
22312 TAR_OPTIONS="-H gnu"
22317 touch directory/file
22318 tar --create --file archive --no-recursion directory || exit 1
22320 ) ) >"$at_stdout" 2>"$at_stder1"
22322 grep '^ *+' "$at_stder1" >&2
22323 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22328 TEST_TAR_FORMAT=gnu
22329 export TEST_TAR_FORMAT
22330 TAR_OPTIONS="-H gnu"
22335 touch directory/file
22336 tar --create --file archive --no-recursion directory || exit 1
22338 ) ) >"$at_stdout" 2>"$at_stderr"
22343 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22344 echo >>"$at_stdout"; echo "directory/
22345 " | $at_diff - "$at_stdout" || at_failed=:
22347 77) echo 77 > "$at_status_file"; exit 77;;
22349 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22352 if $at_failed; then
22355 echo 1 > "$at_status_file"
22365 $at_times_p && times >"$at_times_file"
22366 ) 5>&1 2>&1 | eval $at_tee_pipe
22367 at_status=`cat "$at_status_file"`
22370 54 ) # 54. same-order01.at:26: working -C with --same-order
22371 at_setup_line='same-order01.at:26'
22372 at_desc="working -C with --same-order"
22373 $at_quiet $ECHO_N " 54: working -C with --same-order $ECHO_C"
22375 test -f $XFAILFILE && at_xfail=yes
22376 echo "# -*- compilation -*-" >> "$at_group_log"
22378 echo "54. same-order01.at:26: testing ..."
22386 echo "$at_srcdir/same-order01.at:29:
22390 export TEST_TAR_FORMAT
22391 TAR_OPTIONS=\"-H v7\"
22396 test -z "`sort < /dev/null 2>&1`" || exit 77
22399 genfile -l 1024 -f file1
22400 genfile -l 1024 -f file2
22401 tar cf archive file1 file2
22404 tar -xf archive --same-order -C directory || exit 1
22408 echo same-order01.at:29 >"$at_check_line_file"
22411 if test -n "$at_traceon"; then
22412 echo 'Not enabling shell tracing (command contains an embedded newline)'
22415 if test -n "$at_trace_this"; then
22420 export TEST_TAR_FORMAT
22421 TAR_OPTIONS="-H v7"
22426 test -z "`sort < /dev/null 2>&1`" || exit 77
22429 genfile -l 1024 -f file1
22430 genfile -l 1024 -f file2
22431 tar cf archive file1 file2
22434 tar -xf archive --same-order -C directory || exit 1
22437 ) ) >"$at_stdout" 2>"$at_stder1"
22439 grep '^ *+' "$at_stder1" >&2
22440 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22446 export TEST_TAR_FORMAT
22447 TAR_OPTIONS="-H v7"
22452 test -z "`sort < /dev/null 2>&1`" || exit 77
22455 genfile -l 1024 -f file1
22456 genfile -l 1024 -f file2
22457 tar cf archive file1 file2
22460 tar -xf archive --same-order -C directory || exit 1
22463 ) ) >"$at_stdout" 2>"$at_stderr"
22468 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22469 echo >>"$at_stdout"; echo "file1
22471 " | $at_diff - "$at_stdout" || at_failed=:
22473 77) echo 77 > "$at_status_file"; exit 77;;
22475 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22478 if $at_failed; then
22481 echo 1 > "$at_status_file"
22488 echo "$at_srcdir/same-order01.at:29:
22491 TEST_TAR_FORMAT=oldgnu
22492 export TEST_TAR_FORMAT
22493 TAR_OPTIONS=\"-H oldgnu\"
22498 test -z "`sort < /dev/null 2>&1`" || exit 77
22501 genfile -l 1024 -f file1
22502 genfile -l 1024 -f file2
22503 tar cf archive file1 file2
22506 tar -xf archive --same-order -C directory || exit 1
22510 echo same-order01.at:29 >"$at_check_line_file"
22513 if test -n "$at_traceon"; then
22514 echo 'Not enabling shell tracing (command contains an embedded newline)'
22517 if test -n "$at_trace_this"; then
22521 TEST_TAR_FORMAT=oldgnu
22522 export TEST_TAR_FORMAT
22523 TAR_OPTIONS="-H oldgnu"
22528 test -z "`sort < /dev/null 2>&1`" || exit 77
22531 genfile -l 1024 -f file1
22532 genfile -l 1024 -f file2
22533 tar cf archive file1 file2
22536 tar -xf archive --same-order -C directory || exit 1
22539 ) ) >"$at_stdout" 2>"$at_stder1"
22541 grep '^ *+' "$at_stder1" >&2
22542 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22547 TEST_TAR_FORMAT=oldgnu
22548 export TEST_TAR_FORMAT
22549 TAR_OPTIONS="-H oldgnu"
22554 test -z "`sort < /dev/null 2>&1`" || exit 77
22557 genfile -l 1024 -f file1
22558 genfile -l 1024 -f file2
22559 tar cf archive file1 file2
22562 tar -xf archive --same-order -C directory || exit 1
22565 ) ) >"$at_stdout" 2>"$at_stderr"
22570 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22571 echo >>"$at_stdout"; echo "file1
22573 " | $at_diff - "$at_stdout" || at_failed=:
22575 77) echo 77 > "$at_status_file"; exit 77;;
22577 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22580 if $at_failed; then
22583 echo 1 > "$at_status_file"
22590 echo "$at_srcdir/same-order01.at:29:
22593 TEST_TAR_FORMAT=ustar
22594 export TEST_TAR_FORMAT
22595 TAR_OPTIONS=\"-H ustar\"
22600 test -z "`sort < /dev/null 2>&1`" || exit 77
22603 genfile -l 1024 -f file1
22604 genfile -l 1024 -f file2
22605 tar cf archive file1 file2
22608 tar -xf archive --same-order -C directory || exit 1
22612 echo same-order01.at:29 >"$at_check_line_file"
22615 if test -n "$at_traceon"; then
22616 echo 'Not enabling shell tracing (command contains an embedded newline)'
22619 if test -n "$at_trace_this"; then
22623 TEST_TAR_FORMAT=ustar
22624 export TEST_TAR_FORMAT
22625 TAR_OPTIONS="-H ustar"
22630 test -z "`sort < /dev/null 2>&1`" || exit 77
22633 genfile -l 1024 -f file1
22634 genfile -l 1024 -f file2
22635 tar cf archive file1 file2
22638 tar -xf archive --same-order -C directory || exit 1
22641 ) ) >"$at_stdout" 2>"$at_stder1"
22643 grep '^ *+' "$at_stder1" >&2
22644 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22649 TEST_TAR_FORMAT=ustar
22650 export TEST_TAR_FORMAT
22651 TAR_OPTIONS="-H ustar"
22656 test -z "`sort < /dev/null 2>&1`" || exit 77
22659 genfile -l 1024 -f file1
22660 genfile -l 1024 -f file2
22661 tar cf archive file1 file2
22664 tar -xf archive --same-order -C directory || exit 1
22667 ) ) >"$at_stdout" 2>"$at_stderr"
22672 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22673 echo >>"$at_stdout"; echo "file1
22675 " | $at_diff - "$at_stdout" || at_failed=:
22677 77) echo 77 > "$at_status_file"; exit 77;;
22679 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22682 if $at_failed; then
22685 echo 1 > "$at_status_file"
22692 echo "$at_srcdir/same-order01.at:29:
22695 TEST_TAR_FORMAT=posix
22696 export TEST_TAR_FORMAT
22697 TAR_OPTIONS=\"-H posix\"
22702 test -z "`sort < /dev/null 2>&1`" || exit 77
22705 genfile -l 1024 -f file1
22706 genfile -l 1024 -f file2
22707 tar cf archive file1 file2
22710 tar -xf archive --same-order -C directory || exit 1
22714 echo same-order01.at:29 >"$at_check_line_file"
22717 if test -n "$at_traceon"; then
22718 echo 'Not enabling shell tracing (command contains an embedded newline)'
22721 if test -n "$at_trace_this"; then
22725 TEST_TAR_FORMAT=posix
22726 export TEST_TAR_FORMAT
22727 TAR_OPTIONS="-H posix"
22732 test -z "`sort < /dev/null 2>&1`" || exit 77
22735 genfile -l 1024 -f file1
22736 genfile -l 1024 -f file2
22737 tar cf archive file1 file2
22740 tar -xf archive --same-order -C directory || exit 1
22743 ) ) >"$at_stdout" 2>"$at_stder1"
22745 grep '^ *+' "$at_stder1" >&2
22746 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22751 TEST_TAR_FORMAT=posix
22752 export TEST_TAR_FORMAT
22753 TAR_OPTIONS="-H posix"
22758 test -z "`sort < /dev/null 2>&1`" || exit 77
22761 genfile -l 1024 -f file1
22762 genfile -l 1024 -f file2
22763 tar cf archive file1 file2
22766 tar -xf archive --same-order -C directory || exit 1
22769 ) ) >"$at_stdout" 2>"$at_stderr"
22774 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22775 echo >>"$at_stdout"; echo "file1
22777 " | $at_diff - "$at_stdout" || at_failed=:
22779 77) echo 77 > "$at_status_file"; exit 77;;
22781 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22784 if $at_failed; then
22787 echo 1 > "$at_status_file"
22794 echo "$at_srcdir/same-order01.at:29:
22797 TEST_TAR_FORMAT=gnu
22798 export TEST_TAR_FORMAT
22799 TAR_OPTIONS=\"-H gnu\"
22804 test -z "`sort < /dev/null 2>&1`" || exit 77
22807 genfile -l 1024 -f file1
22808 genfile -l 1024 -f file2
22809 tar cf archive file1 file2
22812 tar -xf archive --same-order -C directory || exit 1
22816 echo same-order01.at:29 >"$at_check_line_file"
22819 if test -n "$at_traceon"; then
22820 echo 'Not enabling shell tracing (command contains an embedded newline)'
22823 if test -n "$at_trace_this"; then
22827 TEST_TAR_FORMAT=gnu
22828 export TEST_TAR_FORMAT
22829 TAR_OPTIONS="-H gnu"
22834 test -z "`sort < /dev/null 2>&1`" || exit 77
22837 genfile -l 1024 -f file1
22838 genfile -l 1024 -f file2
22839 tar cf archive file1 file2
22842 tar -xf archive --same-order -C directory || exit 1
22845 ) ) >"$at_stdout" 2>"$at_stder1"
22847 grep '^ *+' "$at_stder1" >&2
22848 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22853 TEST_TAR_FORMAT=gnu
22854 export TEST_TAR_FORMAT
22855 TAR_OPTIONS="-H gnu"
22860 test -z "`sort < /dev/null 2>&1`" || exit 77
22863 genfile -l 1024 -f file1
22864 genfile -l 1024 -f file2
22865 tar cf archive file1 file2
22868 tar -xf archive --same-order -C directory || exit 1
22871 ) ) >"$at_stdout" 2>"$at_stderr"
22876 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22877 echo >>"$at_stdout"; echo "file1
22879 " | $at_diff - "$at_stdout" || at_failed=:
22881 77) echo 77 > "$at_status_file"; exit 77;;
22883 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22886 if $at_failed; then
22889 echo 1 > "$at_status_file"
22899 $at_times_p && times >"$at_times_file"
22900 ) 5>&1 2>&1 | eval $at_tee_pipe
22901 at_status=`cat "$at_status_file"`
22904 55 ) # 55. same-order02.at:25: multiple -C options
22905 at_setup_line='same-order02.at:25'
22906 at_desc="multiple -C options"
22907 $at_quiet $ECHO_N " 55: multiple -C options $ECHO_C"
22909 test -f $XFAILFILE && at_xfail=yes
22910 echo "# -*- compilation -*-" >> "$at_group_log"
22912 echo "55. same-order02.at:25: testing ..."
22920 echo "$at_srcdir/same-order02.at:28:
22924 export TEST_TAR_FORMAT
22925 TAR_OPTIONS=\"-H v7\"
22929 genfile -l 1024 -f file1
22930 genfile -l 1024 -f file2
22931 tar cf archive file1 file2
22937 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
22943 echo same-order02.at:28 >"$at_check_line_file"
22946 if test -n "$at_traceon"; then
22947 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
22950 if test -n "$at_trace_this"; then
22955 export TEST_TAR_FORMAT
22956 TAR_OPTIONS="-H v7"
22960 genfile -l 1024 -f file1
22961 genfile -l 1024 -f file2
22962 tar cf archive file1 file2
22968 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22973 ) ) >"$at_stdout" 2>"$at_stder1"
22975 grep '^ *+' "$at_stder1" >&2
22976 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22982 export TEST_TAR_FORMAT
22983 TAR_OPTIONS="-H v7"
22987 genfile -l 1024 -f file1
22988 genfile -l 1024 -f file2
22989 tar cf archive file1 file2
22995 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23000 ) ) >"$at_stdout" 2>"$at_stderr"
23005 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23006 echo >>"$at_stdout"; echo "file1
23009 " | $at_diff - "$at_stdout" || at_failed=:
23011 77) echo 77 > "$at_status_file"; exit 77;;
23013 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23016 if $at_failed; then
23019 echo 1 > "$at_status_file"
23026 echo "$at_srcdir/same-order02.at:28:
23029 TEST_TAR_FORMAT=oldgnu
23030 export TEST_TAR_FORMAT
23031 TAR_OPTIONS=\"-H oldgnu\"
23035 genfile -l 1024 -f file1
23036 genfile -l 1024 -f file2
23037 tar cf archive file1 file2
23043 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
23049 echo same-order02.at:28 >"$at_check_line_file"
23052 if test -n "$at_traceon"; then
23053 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
23056 if test -n "$at_trace_this"; then
23060 TEST_TAR_FORMAT=oldgnu
23061 export TEST_TAR_FORMAT
23062 TAR_OPTIONS="-H oldgnu"
23066 genfile -l 1024 -f file1
23067 genfile -l 1024 -f file2
23068 tar cf archive file1 file2
23074 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23079 ) ) >"$at_stdout" 2>"$at_stder1"
23081 grep '^ *+' "$at_stder1" >&2
23082 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23087 TEST_TAR_FORMAT=oldgnu
23088 export TEST_TAR_FORMAT
23089 TAR_OPTIONS="-H oldgnu"
23093 genfile -l 1024 -f file1
23094 genfile -l 1024 -f file2
23095 tar cf archive file1 file2
23101 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23106 ) ) >"$at_stdout" 2>"$at_stderr"
23111 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23112 echo >>"$at_stdout"; echo "file1
23115 " | $at_diff - "$at_stdout" || at_failed=:
23117 77) echo 77 > "$at_status_file"; exit 77;;
23119 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23122 if $at_failed; then
23125 echo 1 > "$at_status_file"
23132 echo "$at_srcdir/same-order02.at:28:
23135 TEST_TAR_FORMAT=ustar
23136 export TEST_TAR_FORMAT
23137 TAR_OPTIONS=\"-H ustar\"
23141 genfile -l 1024 -f file1
23142 genfile -l 1024 -f file2
23143 tar cf archive file1 file2
23149 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
23155 echo same-order02.at:28 >"$at_check_line_file"
23158 if test -n "$at_traceon"; then
23159 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
23162 if test -n "$at_trace_this"; then
23166 TEST_TAR_FORMAT=ustar
23167 export TEST_TAR_FORMAT
23168 TAR_OPTIONS="-H ustar"
23172 genfile -l 1024 -f file1
23173 genfile -l 1024 -f file2
23174 tar cf archive file1 file2
23180 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23185 ) ) >"$at_stdout" 2>"$at_stder1"
23187 grep '^ *+' "$at_stder1" >&2
23188 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23193 TEST_TAR_FORMAT=ustar
23194 export TEST_TAR_FORMAT
23195 TAR_OPTIONS="-H ustar"
23199 genfile -l 1024 -f file1
23200 genfile -l 1024 -f file2
23201 tar cf archive file1 file2
23207 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23212 ) ) >"$at_stdout" 2>"$at_stderr"
23217 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23218 echo >>"$at_stdout"; echo "file1
23221 " | $at_diff - "$at_stdout" || at_failed=:
23223 77) echo 77 > "$at_status_file"; exit 77;;
23225 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23228 if $at_failed; then
23231 echo 1 > "$at_status_file"
23238 echo "$at_srcdir/same-order02.at:28:
23241 TEST_TAR_FORMAT=posix
23242 export TEST_TAR_FORMAT
23243 TAR_OPTIONS=\"-H posix\"
23247 genfile -l 1024 -f file1
23248 genfile -l 1024 -f file2
23249 tar cf archive file1 file2
23255 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
23261 echo same-order02.at:28 >"$at_check_line_file"
23264 if test -n "$at_traceon"; then
23265 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
23268 if test -n "$at_trace_this"; then
23272 TEST_TAR_FORMAT=posix
23273 export TEST_TAR_FORMAT
23274 TAR_OPTIONS="-H posix"
23278 genfile -l 1024 -f file1
23279 genfile -l 1024 -f file2
23280 tar cf archive file1 file2
23286 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23291 ) ) >"$at_stdout" 2>"$at_stder1"
23293 grep '^ *+' "$at_stder1" >&2
23294 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23299 TEST_TAR_FORMAT=posix
23300 export TEST_TAR_FORMAT
23301 TAR_OPTIONS="-H posix"
23305 genfile -l 1024 -f file1
23306 genfile -l 1024 -f file2
23307 tar cf archive file1 file2
23313 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23318 ) ) >"$at_stdout" 2>"$at_stderr"
23323 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23324 echo >>"$at_stdout"; echo "file1
23327 " | $at_diff - "$at_stdout" || at_failed=:
23329 77) echo 77 > "$at_status_file"; exit 77;;
23331 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23334 if $at_failed; then
23337 echo 1 > "$at_status_file"
23344 echo "$at_srcdir/same-order02.at:28:
23347 TEST_TAR_FORMAT=gnu
23348 export TEST_TAR_FORMAT
23349 TAR_OPTIONS=\"-H gnu\"
23353 genfile -l 1024 -f file1
23354 genfile -l 1024 -f file2
23355 tar cf archive file1 file2
23361 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
23367 echo same-order02.at:28 >"$at_check_line_file"
23370 if test -n "$at_traceon"; then
23371 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
23374 if test -n "$at_trace_this"; then
23378 TEST_TAR_FORMAT=gnu
23379 export TEST_TAR_FORMAT
23380 TAR_OPTIONS="-H gnu"
23384 genfile -l 1024 -f file1
23385 genfile -l 1024 -f file2
23386 tar cf archive file1 file2
23392 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23397 ) ) >"$at_stdout" 2>"$at_stder1"
23399 grep '^ *+' "$at_stder1" >&2
23400 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23405 TEST_TAR_FORMAT=gnu
23406 export TEST_TAR_FORMAT
23407 TAR_OPTIONS="-H gnu"
23411 genfile -l 1024 -f file1
23412 genfile -l 1024 -f file2
23413 tar cf archive file1 file2
23419 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23424 ) ) >"$at_stdout" 2>"$at_stderr"
23429 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23430 echo >>"$at_stdout"; echo "file1
23433 " | $at_diff - "$at_stdout" || at_failed=:
23435 77) echo 77 > "$at_status_file"; exit 77;;
23437 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23440 if $at_failed; then
23443 echo 1 > "$at_status_file"
23453 $at_times_p && times >"$at_times_file"
23454 ) 5>&1 2>&1 | eval $at_tee_pipe
23455 at_status=`cat "$at_status_file"`
23458 56 ) # 56. shortrec.at:25: short records
23459 at_setup_line='shortrec.at:25'
23460 at_desc="short records"
23461 $at_quiet $ECHO_N " 56: short records $ECHO_C"
23463 test -f $XFAILFILE && at_xfail=yes
23464 echo "# -*- compilation -*-" >> "$at_group_log"
23466 echo "56. shortrec.at:25: testing ..."
23476 echo "$at_srcdir/shortrec.at:28:
23480 export TEST_TAR_FORMAT
23481 TAR_OPTIONS=\"-H v7\"
23486 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23487 tar -c -b 1 -f - directory | tar -t -f -
23488 tar -c -b 1 -f archive directory
23490 tar -t -f - < archive
23494 echo shortrec.at:28 >"$at_check_line_file"
23497 if test -n "$at_traceon"; then
23498 echo 'Not enabling shell tracing (command contains an embedded newline)'
23501 if test -n "$at_trace_this"; then
23506 export TEST_TAR_FORMAT
23507 TAR_OPTIONS="-H v7"
23512 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23513 tar -c -b 1 -f - directory | tar -t -f -
23514 tar -c -b 1 -f archive directory
23516 tar -t -f - < archive
23519 ) ) >"$at_stdout" 2>"$at_stder1"
23521 grep '^ *+' "$at_stder1" >&2
23522 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23528 export TEST_TAR_FORMAT
23529 TAR_OPTIONS="-H v7"
23534 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23535 tar -c -b 1 -f - directory | tar -t -f -
23536 tar -c -b 1 -f archive directory
23538 tar -t -f - < archive
23541 ) ) >"$at_stdout" 2>"$at_stderr"
23546 echo stderr:; tee stderr <"$at_stderr"
23547 echo stdout:; cat "$at_stdout"
23549 77) echo 77 > "$at_status_file"; exit 77;;
23551 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23554 if $at_failed; then
23557 echo 1 > "$at_status_file"
23565 echo "$at_srcdir/shortrec.at:28: grep -v '^.*tar: Record size = ' stderr; exit 0"
23566 echo shortrec.at:28 >"$at_check_line_file"
23569 if test -n "$at_traceon"; then
23573 if test -n "$at_trace_this"; then
23574 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
23576 grep '^ *+' "$at_stder1" >&2
23577 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23579 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
23584 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23585 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23587 77) echo 77 > "$at_status_file"; exit 77;;
23589 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23592 if $at_failed; then
23595 echo 1 > "$at_status_file"
23602 echo "$at_srcdir/shortrec.at:28:
23605 TEST_TAR_FORMAT=oldgnu
23606 export TEST_TAR_FORMAT
23607 TAR_OPTIONS=\"-H oldgnu\"
23612 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23613 tar -c -b 1 -f - directory | tar -t -f -
23614 tar -c -b 1 -f archive directory
23616 tar -t -f - < archive
23620 echo shortrec.at:28 >"$at_check_line_file"
23623 if test -n "$at_traceon"; then
23624 echo 'Not enabling shell tracing (command contains an embedded newline)'
23627 if test -n "$at_trace_this"; then
23631 TEST_TAR_FORMAT=oldgnu
23632 export TEST_TAR_FORMAT
23633 TAR_OPTIONS="-H oldgnu"
23638 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23639 tar -c -b 1 -f - directory | tar -t -f -
23640 tar -c -b 1 -f archive directory
23642 tar -t -f - < archive
23645 ) ) >"$at_stdout" 2>"$at_stder1"
23647 grep '^ *+' "$at_stder1" >&2
23648 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23653 TEST_TAR_FORMAT=oldgnu
23654 export TEST_TAR_FORMAT
23655 TAR_OPTIONS="-H oldgnu"
23660 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23661 tar -c -b 1 -f - directory | tar -t -f -
23662 tar -c -b 1 -f archive directory
23664 tar -t -f - < archive
23667 ) ) >"$at_stdout" 2>"$at_stderr"
23672 echo stderr:; tee stderr <"$at_stderr"
23673 echo stdout:; cat "$at_stdout"
23675 77) echo 77 > "$at_status_file"; exit 77;;
23677 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23680 if $at_failed; then
23683 echo 1 > "$at_status_file"
23691 echo "$at_srcdir/shortrec.at:28: grep -v '^.*tar: Record size = ' stderr; exit 0"
23692 echo shortrec.at:28 >"$at_check_line_file"
23695 if test -n "$at_traceon"; then
23699 if test -n "$at_trace_this"; then
23700 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
23702 grep '^ *+' "$at_stder1" >&2
23703 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23705 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
23710 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23711 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23713 77) echo 77 > "$at_status_file"; exit 77;;
23715 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23718 if $at_failed; then
23721 echo 1 > "$at_status_file"
23728 echo "$at_srcdir/shortrec.at:28:
23731 TEST_TAR_FORMAT=ustar
23732 export TEST_TAR_FORMAT
23733 TAR_OPTIONS=\"-H ustar\"
23738 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23739 tar -c -b 1 -f - directory | tar -t -f -
23740 tar -c -b 1 -f archive directory
23742 tar -t -f - < archive
23746 echo shortrec.at:28 >"$at_check_line_file"
23749 if test -n "$at_traceon"; then
23750 echo 'Not enabling shell tracing (command contains an embedded newline)'
23753 if test -n "$at_trace_this"; then
23757 TEST_TAR_FORMAT=ustar
23758 export TEST_TAR_FORMAT
23759 TAR_OPTIONS="-H ustar"
23764 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23765 tar -c -b 1 -f - directory | tar -t -f -
23766 tar -c -b 1 -f archive directory
23768 tar -t -f - < archive
23771 ) ) >"$at_stdout" 2>"$at_stder1"
23773 grep '^ *+' "$at_stder1" >&2
23774 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23779 TEST_TAR_FORMAT=ustar
23780 export TEST_TAR_FORMAT
23781 TAR_OPTIONS="-H ustar"
23786 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23787 tar -c -b 1 -f - directory | tar -t -f -
23788 tar -c -b 1 -f archive directory
23790 tar -t -f - < archive
23793 ) ) >"$at_stdout" 2>"$at_stderr"
23798 echo stderr:; tee stderr <"$at_stderr"
23799 echo stdout:; cat "$at_stdout"
23801 77) echo 77 > "$at_status_file"; exit 77;;
23803 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23806 if $at_failed; then
23809 echo 1 > "$at_status_file"
23817 echo "$at_srcdir/shortrec.at:28: grep -v '^.*tar: Record size = ' stderr; exit 0"
23818 echo shortrec.at:28 >"$at_check_line_file"
23821 if test -n "$at_traceon"; then
23825 if test -n "$at_trace_this"; then
23826 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
23828 grep '^ *+' "$at_stder1" >&2
23829 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23831 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
23836 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23837 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23839 77) echo 77 > "$at_status_file"; exit 77;;
23841 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23844 if $at_failed; then
23847 echo 1 > "$at_status_file"
23854 echo "$at_srcdir/shortrec.at:28:
23857 TEST_TAR_FORMAT=posix
23858 export TEST_TAR_FORMAT
23859 TAR_OPTIONS=\"-H posix\"
23864 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23865 tar -c -b 1 -f - directory | tar -t -f -
23866 tar -c -b 1 -f archive directory
23868 tar -t -f - < archive
23872 echo shortrec.at:28 >"$at_check_line_file"
23875 if test -n "$at_traceon"; then
23876 echo 'Not enabling shell tracing (command contains an embedded newline)'
23879 if test -n "$at_trace_this"; then
23883 TEST_TAR_FORMAT=posix
23884 export TEST_TAR_FORMAT
23885 TAR_OPTIONS="-H posix"
23890 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23891 tar -c -b 1 -f - directory | tar -t -f -
23892 tar -c -b 1 -f archive directory
23894 tar -t -f - < archive
23897 ) ) >"$at_stdout" 2>"$at_stder1"
23899 grep '^ *+' "$at_stder1" >&2
23900 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23905 TEST_TAR_FORMAT=posix
23906 export TEST_TAR_FORMAT
23907 TAR_OPTIONS="-H posix"
23912 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23913 tar -c -b 1 -f - directory | tar -t -f -
23914 tar -c -b 1 -f archive directory
23916 tar -t -f - < archive
23919 ) ) >"$at_stdout" 2>"$at_stderr"
23924 echo stderr:; tee stderr <"$at_stderr"
23925 echo stdout:; cat "$at_stdout"
23927 77) echo 77 > "$at_status_file"; exit 77;;
23929 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23932 if $at_failed; then
23935 echo 1 > "$at_status_file"
23943 echo "$at_srcdir/shortrec.at:28: grep -v '^.*tar: Record size = ' stderr; exit 0"
23944 echo shortrec.at:28 >"$at_check_line_file"
23947 if test -n "$at_traceon"; then
23951 if test -n "$at_trace_this"; then
23952 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
23954 grep '^ *+' "$at_stder1" >&2
23955 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23957 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
23962 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23963 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23965 77) echo 77 > "$at_status_file"; exit 77;;
23967 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23970 if $at_failed; then
23973 echo 1 > "$at_status_file"
23980 echo "$at_srcdir/shortrec.at:28:
23983 TEST_TAR_FORMAT=gnu
23984 export TEST_TAR_FORMAT
23985 TAR_OPTIONS=\"-H gnu\"
23990 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23991 tar -c -b 1 -f - directory | tar -t -f -
23992 tar -c -b 1 -f archive directory
23994 tar -t -f - < archive
23998 echo shortrec.at:28 >"$at_check_line_file"
24001 if test -n "$at_traceon"; then
24002 echo 'Not enabling shell tracing (command contains an embedded newline)'
24005 if test -n "$at_trace_this"; then
24009 TEST_TAR_FORMAT=gnu
24010 export TEST_TAR_FORMAT
24011 TAR_OPTIONS="-H gnu"
24016 (cd directory && touch a b c d e f g h i j k l m n o p q r)
24017 tar -c -b 1 -f - directory | tar -t -f -
24018 tar -c -b 1 -f archive directory
24020 tar -t -f - < archive
24023 ) ) >"$at_stdout" 2>"$at_stder1"
24025 grep '^ *+' "$at_stder1" >&2
24026 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24031 TEST_TAR_FORMAT=gnu
24032 export TEST_TAR_FORMAT
24033 TAR_OPTIONS="-H gnu"
24038 (cd directory && touch a b c d e f g h i j k l m n o p q r)
24039 tar -c -b 1 -f - directory | tar -t -f -
24040 tar -c -b 1 -f archive directory
24042 tar -t -f - < archive
24045 ) ) >"$at_stdout" 2>"$at_stderr"
24050 echo stderr:; tee stderr <"$at_stderr"
24051 echo stdout:; cat "$at_stdout"
24053 77) echo 77 > "$at_status_file"; exit 77;;
24055 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
24058 if $at_failed; then
24061 echo 1 > "$at_status_file"
24069 echo "$at_srcdir/shortrec.at:28: grep -v '^.*tar: Record size = ' stderr; exit 0"
24070 echo shortrec.at:28 >"$at_check_line_file"
24073 if test -n "$at_traceon"; then
24077 if test -n "$at_trace_this"; then
24078 ( $at_traceon; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stder1"
24080 grep '^ *+' "$at_stder1" >&2
24081 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24083 ( :; grep -v '^.*tar: Record size = ' stderr; exit 0 ) >"$at_stdout" 2>"$at_stderr"
24088 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24089 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
24091 77) echo 77 > "$at_status_file"; exit 77;;
24093 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
24096 if $at_failed; then
24099 echo 1 > "$at_status_file"
24112 $at_times_p && times >"$at_times_file"
24113 ) 5>&1 2>&1 | eval $at_tee_pipe
24114 at_status=`cat "$at_status_file"`
24117 57 ) # 57. sparse01.at:21: sparse files
24118 at_setup_line='sparse01.at:21'
24119 at_desc="sparse files"
24120 $at_quiet $ECHO_N " 57: sparse files $ECHO_C"
24122 test -f $XFAILFILE && at_xfail=yes
24123 echo "# -*- compilation -*-" >> "$at_group_log"
24125 echo "57. sparse01.at:21: testing ..."
24133 echo "$at_srcdir/sparse01.at:24:
24136 TEST_TAR_FORMAT=posix
24137 export TEST_TAR_FORMAT
24138 TAR_OPTIONS=\"-H posix\"
24142 genfile --length 1000 -f begin
24143 genfile --length 1000 -f end
24144 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24145 tar -c -f archive --sparse begin sparsefile end || exit 1
24151 tar Cxf directory archive
24152 genfile --stat=name,size sparsefile
24153 cmp sparsefile directory/sparsefile
24155 echo sparse01.at:24 >"$at_check_line_file"
24158 if test -n "$at_traceon"; then
24159 echo 'Not enabling shell tracing (command contains an embedded newline)'
24162 if test -n "$at_trace_this"; then
24166 TEST_TAR_FORMAT=posix
24167 export TEST_TAR_FORMAT
24168 TAR_OPTIONS="-H posix"
24172 genfile --length 1000 -f begin
24173 genfile --length 1000 -f end
24174 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24175 tar -c -f archive --sparse begin sparsefile end || exit 1
24181 tar Cxf directory archive
24182 genfile --stat=name,size sparsefile
24183 cmp sparsefile directory/sparsefile
24184 ) ) >"$at_stdout" 2>"$at_stder1"
24186 grep '^ *+' "$at_stder1" >&2
24187 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24192 TEST_TAR_FORMAT=posix
24193 export TEST_TAR_FORMAT
24194 TAR_OPTIONS="-H posix"
24198 genfile --length 1000 -f begin
24199 genfile --length 1000 -f end
24200 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24201 tar -c -f archive --sparse begin sparsefile end || exit 1
24207 tar Cxf directory archive
24208 genfile --stat=name,size sparsefile
24209 cmp sparsefile directory/sparsefile
24210 ) ) >"$at_stdout" 2>"$at_stderr"
24215 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24216 echo stdout:; tee stdout <"$at_stdout"
24218 77) echo 77 > "$at_status_file"; exit 77;;
24220 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
24223 if $at_failed; then
24226 echo 1 > "$at_status_file"
24233 echo "$at_srcdir/sparse01.at:24:
24236 TEST_TAR_FORMAT=gnu
24237 export TEST_TAR_FORMAT
24238 TAR_OPTIONS=\"-H gnu\"
24242 genfile --length 1000 -f begin
24243 genfile --length 1000 -f end
24244 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24245 tar -c -f archive --sparse begin sparsefile end || exit 1
24251 tar Cxf directory archive
24252 genfile --stat=name,size sparsefile
24253 cmp sparsefile directory/sparsefile
24255 echo sparse01.at:24 >"$at_check_line_file"
24258 if test -n "$at_traceon"; then
24259 echo 'Not enabling shell tracing (command contains an embedded newline)'
24262 if test -n "$at_trace_this"; then
24266 TEST_TAR_FORMAT=gnu
24267 export TEST_TAR_FORMAT
24268 TAR_OPTIONS="-H gnu"
24272 genfile --length 1000 -f begin
24273 genfile --length 1000 -f end
24274 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24275 tar -c -f archive --sparse begin sparsefile end || exit 1
24281 tar Cxf directory archive
24282 genfile --stat=name,size sparsefile
24283 cmp sparsefile directory/sparsefile
24284 ) ) >"$at_stdout" 2>"$at_stder1"
24286 grep '^ *+' "$at_stder1" >&2
24287 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24292 TEST_TAR_FORMAT=gnu
24293 export TEST_TAR_FORMAT
24294 TAR_OPTIONS="-H gnu"
24298 genfile --length 1000 -f begin
24299 genfile --length 1000 -f end
24300 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24301 tar -c -f archive --sparse begin sparsefile end || exit 1
24307 tar Cxf directory archive
24308 genfile --stat=name,size sparsefile
24309 cmp sparsefile directory/sparsefile
24310 ) ) >"$at_stdout" 2>"$at_stderr"
24315 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24316 echo stdout:; tee stdout <"$at_stdout"
24318 77) echo 77 > "$at_status_file"; exit 77;;
24320 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
24323 if $at_failed; then
24326 echo 1 > "$at_status_file"
24333 echo "$at_srcdir/sparse01.at:24:
24336 TEST_TAR_FORMAT=oldgnu
24337 export TEST_TAR_FORMAT
24338 TAR_OPTIONS=\"-H oldgnu\"
24342 genfile --length 1000 -f begin
24343 genfile --length 1000 -f end
24344 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24345 tar -c -f archive --sparse begin sparsefile end || exit 1
24351 tar Cxf directory archive
24352 genfile --stat=name,size sparsefile
24353 cmp sparsefile directory/sparsefile
24355 echo sparse01.at:24 >"$at_check_line_file"
24358 if test -n "$at_traceon"; then
24359 echo 'Not enabling shell tracing (command contains an embedded newline)'
24362 if test -n "$at_trace_this"; then
24366 TEST_TAR_FORMAT=oldgnu
24367 export TEST_TAR_FORMAT
24368 TAR_OPTIONS="-H oldgnu"
24372 genfile --length 1000 -f begin
24373 genfile --length 1000 -f end
24374 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24375 tar -c -f archive --sparse begin sparsefile end || exit 1
24381 tar Cxf directory archive
24382 genfile --stat=name,size sparsefile
24383 cmp sparsefile directory/sparsefile
24384 ) ) >"$at_stdout" 2>"$at_stder1"
24386 grep '^ *+' "$at_stder1" >&2
24387 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24392 TEST_TAR_FORMAT=oldgnu
24393 export TEST_TAR_FORMAT
24394 TAR_OPTIONS="-H oldgnu"
24398 genfile --length 1000 -f begin
24399 genfile --length 1000 -f end
24400 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24401 tar -c -f archive --sparse begin sparsefile end || exit 1
24407 tar Cxf directory archive
24408 genfile --stat=name,size sparsefile
24409 cmp sparsefile directory/sparsefile
24410 ) ) >"$at_stdout" 2>"$at_stderr"
24415 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24416 echo stdout:; tee stdout <"$at_stdout"
24418 77) echo 77 > "$at_status_file"; exit 77;;
24420 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
24423 if $at_failed; then
24426 echo 1 > "$at_status_file"
24436 cat >stdout.re <<'_ATEOF'
24438 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
24439 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
24440 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
24442 sparsefile 10344448
24445 awk '{print NR " " $0}' stdout > $$.1
24446 awk '{print NR " " $0}' stdout.re | join - $$.1 |
24447 while read NUM RE LINE
24449 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
24454 $at_times_p && times >"$at_times_file"
24455 ) 5>&1 2>&1 | eval $at_tee_pipe
24456 at_status=`cat "$at_status_file"`
24459 58 ) # 58. sparse02.at:21: extracting sparse file over a pipe
24460 at_setup_line='sparse02.at:21'
24461 at_desc="extracting sparse file over a pipe"
24462 $at_quiet $ECHO_N " 58: extracting sparse file over a pipe $ECHO_C"
24464 test -f $XFAILFILE && at_xfail=yes
24465 echo "# -*- compilation -*-" >> "$at_group_log"
24467 echo "58. sparse02.at:21: testing ..."
24472 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
24473 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
24474 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
24479 echo "$at_srcdir/sparse02.at:28:
24482 TEST_TAR_FORMAT=posix
24483 export TEST_TAR_FORMAT
24484 TAR_OPTIONS=\"-H posix\"
24488 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24489 tar -c -f archive --sparse sparsefile || exit 1
24492 tar xfO archive | cat - > sparsecopy || exit 1
24493 cmp sparsefile sparsecopy
24495 echo sparse02.at:28 >"$at_check_line_file"
24498 if test -n "$at_traceon"; then
24499 echo 'Not enabling shell tracing (command contains an embedded newline)'
24502 if test -n "$at_trace_this"; then
24506 TEST_TAR_FORMAT=posix
24507 export TEST_TAR_FORMAT
24508 TAR_OPTIONS="-H posix"
24512 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24513 tar -c -f archive --sparse sparsefile || exit 1
24516 tar xfO archive | cat - > sparsecopy || exit 1
24517 cmp sparsefile sparsecopy
24518 ) ) >"$at_stdout" 2>"$at_stder1"
24520 grep '^ *+' "$at_stder1" >&2
24521 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24526 TEST_TAR_FORMAT=posix
24527 export TEST_TAR_FORMAT
24528 TAR_OPTIONS="-H posix"
24532 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24533 tar -c -f archive --sparse sparsefile || exit 1
24536 tar xfO archive | cat - > sparsecopy || exit 1
24537 cmp sparsefile sparsecopy
24538 ) ) >"$at_stdout" 2>"$at_stderr"
24543 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24544 echo >>"$at_stdout"; echo "separator
24545 " | $at_diff - "$at_stdout" || at_failed=:
24547 77) echo 77 > "$at_status_file"; exit 77;;
24549 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
24552 if $at_failed; then
24555 echo 1 > "$at_status_file"
24562 echo "$at_srcdir/sparse02.at:28:
24565 TEST_TAR_FORMAT=gnu
24566 export TEST_TAR_FORMAT
24567 TAR_OPTIONS=\"-H gnu\"
24571 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24572 tar -c -f archive --sparse sparsefile || exit 1
24575 tar xfO archive | cat - > sparsecopy || exit 1
24576 cmp sparsefile sparsecopy
24578 echo sparse02.at:28 >"$at_check_line_file"
24581 if test -n "$at_traceon"; then
24582 echo 'Not enabling shell tracing (command contains an embedded newline)'
24585 if test -n "$at_trace_this"; then
24589 TEST_TAR_FORMAT=gnu
24590 export TEST_TAR_FORMAT
24591 TAR_OPTIONS="-H gnu"
24595 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24596 tar -c -f archive --sparse sparsefile || exit 1
24599 tar xfO archive | cat - > sparsecopy || exit 1
24600 cmp sparsefile sparsecopy
24601 ) ) >"$at_stdout" 2>"$at_stder1"
24603 grep '^ *+' "$at_stder1" >&2
24604 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24609 TEST_TAR_FORMAT=gnu
24610 export TEST_TAR_FORMAT
24611 TAR_OPTIONS="-H gnu"
24615 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24616 tar -c -f archive --sparse sparsefile || exit 1
24619 tar xfO archive | cat - > sparsecopy || exit 1
24620 cmp sparsefile sparsecopy
24621 ) ) >"$at_stdout" 2>"$at_stderr"
24626 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24627 echo >>"$at_stdout"; echo "separator
24628 " | $at_diff - "$at_stdout" || at_failed=:
24630 77) echo 77 > "$at_status_file"; exit 77;;
24632 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
24635 if $at_failed; then
24638 echo 1 > "$at_status_file"
24645 echo "$at_srcdir/sparse02.at:28:
24648 TEST_TAR_FORMAT=oldgnu
24649 export TEST_TAR_FORMAT
24650 TAR_OPTIONS=\"-H oldgnu\"
24654 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24655 tar -c -f archive --sparse sparsefile || exit 1
24658 tar xfO archive | cat - > sparsecopy || exit 1
24659 cmp sparsefile sparsecopy
24661 echo sparse02.at:28 >"$at_check_line_file"
24664 if test -n "$at_traceon"; then
24665 echo 'Not enabling shell tracing (command contains an embedded newline)'
24668 if test -n "$at_trace_this"; then
24672 TEST_TAR_FORMAT=oldgnu
24673 export TEST_TAR_FORMAT
24674 TAR_OPTIONS="-H oldgnu"
24678 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24679 tar -c -f archive --sparse sparsefile || exit 1
24682 tar xfO archive | cat - > sparsecopy || exit 1
24683 cmp sparsefile sparsecopy
24684 ) ) >"$at_stdout" 2>"$at_stder1"
24686 grep '^ *+' "$at_stder1" >&2
24687 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24692 TEST_TAR_FORMAT=oldgnu
24693 export TEST_TAR_FORMAT
24694 TAR_OPTIONS="-H oldgnu"
24698 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24699 tar -c -f archive --sparse sparsefile || exit 1
24702 tar xfO archive | cat - > sparsecopy || exit 1
24703 cmp sparsefile sparsecopy
24704 ) ) >"$at_stdout" 2>"$at_stderr"
24709 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24710 echo >>"$at_stdout"; echo "separator
24711 " | $at_diff - "$at_stdout" || at_failed=:
24713 77) echo 77 > "$at_status_file"; exit 77;;
24715 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
24718 if $at_failed; then
24721 echo 1 > "$at_status_file"
24731 $at_times_p && times >"$at_times_file"
24732 ) 5>&1 2>&1 | eval $at_tee_pipe
24733 at_status=`cat "$at_status_file"`
24736 59 ) # 59. sparse03.at:21: storing sparse files > 8G
24737 at_setup_line='sparse03.at:21'
24738 at_desc="storing sparse files > 8G"
24739 $at_quiet $ECHO_N " 59: storing sparse files > 8G $ECHO_C"
24741 test -f $XFAILFILE && at_xfail=yes
24742 echo "# -*- compilation -*-" >> "$at_group_log"
24744 echo "59. sparse03.at:21: testing ..."
24749 # Tar 1.15.1 incorrectly computed sparse member size if the extended
24750 # PAX header contained size keyword.
24751 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
24752 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
24757 echo "$at_srcdir/sparse03.at:29:
24760 TEST_TAR_FORMAT=posix
24761 export TEST_TAR_FORMAT
24762 TAR_OPTIONS=\"-H posix\"
24766 genfile --length 1000 --file begin
24767 genfile --length 1000 --file end
24768 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24769 tar -c -f archive --sparse begin sparsefile end || exit 1
24775 tar Cxf directory archive
24776 genfile --stat=name,size sparsefile
24777 cmp sparsefile directory/sparsefile
24779 echo sparse03.at:29 >"$at_check_line_file"
24782 if test -n "$at_traceon"; then
24783 echo 'Not enabling shell tracing (command contains an embedded newline)'
24786 if test -n "$at_trace_this"; then
24790 TEST_TAR_FORMAT=posix
24791 export TEST_TAR_FORMAT
24792 TAR_OPTIONS="-H posix"
24796 genfile --length 1000 --file begin
24797 genfile --length 1000 --file end
24798 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24799 tar -c -f archive --sparse begin sparsefile end || exit 1
24805 tar Cxf directory archive
24806 genfile --stat=name,size sparsefile
24807 cmp sparsefile directory/sparsefile
24808 ) ) >"$at_stdout" 2>"$at_stder1"
24810 grep '^ *+' "$at_stder1" >&2
24811 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24816 TEST_TAR_FORMAT=posix
24817 export TEST_TAR_FORMAT
24818 TAR_OPTIONS="-H posix"
24822 genfile --length 1000 --file begin
24823 genfile --length 1000 --file end
24824 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24825 tar -c -f archive --sparse begin sparsefile end || exit 1
24831 tar Cxf directory archive
24832 genfile --stat=name,size sparsefile
24833 cmp sparsefile directory/sparsefile
24834 ) ) >"$at_stdout" 2>"$at_stderr"
24839 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24840 echo stdout:; tee stdout <"$at_stdout"
24842 77) echo 77 > "$at_status_file"; exit 77;;
24844 *) echo "$at_srcdir/sparse03.at:29: exit code was $at_status, expected 0"
24847 if $at_failed; then
24850 echo 1 > "$at_status_file"
24860 cat >stdout.re <<'_ATEOF'
24862 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
24863 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
24864 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
24866 sparsefile 8589935104
24869 awk '{print NR " " $0}' stdout > $$.1
24870 awk '{print NR " " $0}' stdout.re | join - $$.1 |
24871 while read NUM RE LINE
24873 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
24878 $at_times_p && times >"$at_times_file"
24879 ) 5>&1 2>&1 | eval $at_tee_pipe
24880 at_status=`cat "$at_status_file"`
24883 60 ) # 60. sparsemv.at:21: sparse files in MV archives
24884 at_setup_line='sparsemv.at:21'
24885 at_desc="sparse files in MV archives"
24886 $at_quiet $ECHO_N " 60: sparse files in MV archives $ECHO_C"
24888 test -f $XFAILFILE && at_xfail=yes
24889 echo "# -*- compilation -*-" >> "$at_group_log"
24891 echo "60. sparsemv.at:21: testing ..."
24896 # Check if sparse files are correctly split between GNU multi-volume
24898 # There are two cases: the file can be split within an empty (null) block,
24899 # or within a data block. Since null blocks are not archived, the first
24900 # case means the file is split between two consecutive data blocks.
24906 echo "$at_srcdir/sparsemv.at:31:
24909 TEST_TAR_FORMAT=gnu
24910 export TEST_TAR_FORMAT
24911 TAR_OPTIONS=\"-H gnu\"
24916 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24917 echo \"Pass 1: Split between data blocks\"
24918 echo \"Create archive\"
24919 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24920 echo \"Test archive\"
24921 tar --record-size=512 -t -M -f arc.1 -f arc.2
24922 echo \"Compare archive\"
24923 tar --record-size=512 -d -M -f arc.1 -f arc.2
24925 echo \"Pass 2: Split within a data block\"
24926 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24927 echo \"Create archive\"
24928 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24929 echo \"Test archive\"
24930 tar --record-size=512 -t -M -f arc.1 -f arc.2
24931 echo \"Compare archive\"
24932 tar --record-size=512 -d -M -f arc.1 -f arc.2
24934 echo sparsemv.at:31 >"$at_check_line_file"
24937 if test -n "$at_traceon"; then
24938 echo 'Not enabling shell tracing (command contains an embedded newline)'
24941 if test -n "$at_trace_this"; then
24945 TEST_TAR_FORMAT=gnu
24946 export TEST_TAR_FORMAT
24947 TAR_OPTIONS="-H gnu"
24952 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24953 echo "Pass 1: Split between data blocks"
24954 echo "Create archive"
24955 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24956 echo "Test archive"
24957 tar --record-size=512 -t -M -f arc.1 -f arc.2
24958 echo "Compare archive"
24959 tar --record-size=512 -d -M -f arc.1 -f arc.2
24961 echo "Pass 2: Split within a data block"
24962 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24963 echo "Create archive"
24964 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24965 echo "Test archive"
24966 tar --record-size=512 -t -M -f arc.1 -f arc.2
24967 echo "Compare archive"
24968 tar --record-size=512 -d -M -f arc.1 -f arc.2
24969 ) ) >"$at_stdout" 2>"$at_stder1"
24971 grep '^ *+' "$at_stder1" >&2
24972 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24977 TEST_TAR_FORMAT=gnu
24978 export TEST_TAR_FORMAT
24979 TAR_OPTIONS="-H gnu"
24984 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24985 echo "Pass 1: Split between data blocks"
24986 echo "Create archive"
24987 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24988 echo "Test archive"
24989 tar --record-size=512 -t -M -f arc.1 -f arc.2
24990 echo "Compare archive"
24991 tar --record-size=512 -d -M -f arc.1 -f arc.2
24993 echo "Pass 2: Split within a data block"
24994 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24995 echo "Create archive"
24996 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24997 echo "Test archive"
24998 tar --record-size=512 -t -M -f arc.1 -f arc.2
24999 echo "Compare archive"
25000 tar --record-size=512 -d -M -f arc.1 -f arc.2
25001 ) ) >"$at_stdout" 2>"$at_stderr"
25006 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25007 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25012 Pass 2: Split within a data block
25017 " | $at_diff - "$at_stdout" || at_failed=:
25019 77) echo 77 > "$at_status_file"; exit 77;;
25021 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
25024 if $at_failed; then
25027 echo 1 > "$at_status_file"
25034 echo "$at_srcdir/sparsemv.at:31:
25037 TEST_TAR_FORMAT=oldgnu
25038 export TEST_TAR_FORMAT
25039 TAR_OPTIONS=\"-H oldgnu\"
25044 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25045 echo \"Pass 1: Split between data blocks\"
25046 echo \"Create archive\"
25047 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25048 echo \"Test archive\"
25049 tar --record-size=512 -t -M -f arc.1 -f arc.2
25050 echo \"Compare archive\"
25051 tar --record-size=512 -d -M -f arc.1 -f arc.2
25053 echo \"Pass 2: Split within a data block\"
25054 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25055 echo \"Create archive\"
25056 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25057 echo \"Test archive\"
25058 tar --record-size=512 -t -M -f arc.1 -f arc.2
25059 echo \"Compare archive\"
25060 tar --record-size=512 -d -M -f arc.1 -f arc.2
25062 echo sparsemv.at:31 >"$at_check_line_file"
25065 if test -n "$at_traceon"; then
25066 echo 'Not enabling shell tracing (command contains an embedded newline)'
25069 if test -n "$at_trace_this"; then
25073 TEST_TAR_FORMAT=oldgnu
25074 export TEST_TAR_FORMAT
25075 TAR_OPTIONS="-H oldgnu"
25080 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25081 echo "Pass 1: Split between data blocks"
25082 echo "Create archive"
25083 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25084 echo "Test archive"
25085 tar --record-size=512 -t -M -f arc.1 -f arc.2
25086 echo "Compare archive"
25087 tar --record-size=512 -d -M -f arc.1 -f arc.2
25089 echo "Pass 2: Split within a data block"
25090 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25091 echo "Create archive"
25092 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25093 echo "Test archive"
25094 tar --record-size=512 -t -M -f arc.1 -f arc.2
25095 echo "Compare archive"
25096 tar --record-size=512 -d -M -f arc.1 -f arc.2
25097 ) ) >"$at_stdout" 2>"$at_stder1"
25099 grep '^ *+' "$at_stder1" >&2
25100 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25105 TEST_TAR_FORMAT=oldgnu
25106 export TEST_TAR_FORMAT
25107 TAR_OPTIONS="-H oldgnu"
25112 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25113 echo "Pass 1: Split between data blocks"
25114 echo "Create archive"
25115 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25116 echo "Test archive"
25117 tar --record-size=512 -t -M -f arc.1 -f arc.2
25118 echo "Compare archive"
25119 tar --record-size=512 -d -M -f arc.1 -f arc.2
25121 echo "Pass 2: Split within a data block"
25122 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25123 echo "Create archive"
25124 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
25125 echo "Test archive"
25126 tar --record-size=512 -t -M -f arc.1 -f arc.2
25127 echo "Compare archive"
25128 tar --record-size=512 -d -M -f arc.1 -f arc.2
25129 ) ) >"$at_stdout" 2>"$at_stderr"
25134 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25135 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25140 Pass 2: Split within a data block
25145 " | $at_diff - "$at_stdout" || at_failed=:
25147 77) echo 77 > "$at_status_file"; exit 77;;
25149 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
25152 if $at_failed; then
25155 echo 1 > "$at_status_file"
25165 $at_times_p && times >"$at_times_file"
25166 ) 5>&1 2>&1 | eval $at_tee_pipe
25167 at_status=`cat "$at_status_file"`
25170 61 ) # 61. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
25171 at_setup_line='spmvp00.at:21'
25172 at_desc="sparse files in PAX MV archives, v.0.0"
25173 $at_quiet $ECHO_N " 61: sparse files in PAX MV archives, v.0.0 $ECHO_C"
25175 test -f $XFAILFILE && at_xfail=yes
25176 echo "# -*- compilation -*-" >> "$at_group_log"
25178 echo "61. spmvp00.at:21: testing ..."
25187 echo "$at_srcdir/spmvp00.at:24:
25190 TEST_TAR_FORMAT=pax
25191 export TEST_TAR_FORMAT
25192 TAR_OPTIONS=\"-H pax\"
25197 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
25198 echo \"Pass 1: Split between data blocks\"
25199 echo \"Create archive\"
25200 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25201 echo \"Test archive\"
25202 tar -t -M -f arc.1 -f arc.2 -f arc.3
25203 echo \"Compare archive\"
25204 tar -d -M -f arc.1 -f arc.2 -f arc.3
25206 echo \"Pass 2: Split within a data block\"
25207 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25208 echo \"Create archive\"
25209 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25210 echo \"Test archive\"
25211 tar -t -M -f arc.1 -f arc.2 -f arc.3
25212 echo \"Compare archive\"
25213 tar -d -M -f arc.1 -f arc.2 -f arc.3
25215 echo spmvp00.at:24 >"$at_check_line_file"
25218 if test -n "$at_traceon"; then
25219 echo 'Not enabling shell tracing (command contains an embedded newline)'
25222 if test -n "$at_trace_this"; then
25226 TEST_TAR_FORMAT=pax
25227 export TEST_TAR_FORMAT
25228 TAR_OPTIONS="-H pax"
25233 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
25234 echo "Pass 1: Split between data blocks"
25235 echo "Create archive"
25236 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25237 echo "Test archive"
25238 tar -t -M -f arc.1 -f arc.2 -f arc.3
25239 echo "Compare archive"
25240 tar -d -M -f arc.1 -f arc.2 -f arc.3
25242 echo "Pass 2: Split within a data block"
25243 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25244 echo "Create archive"
25245 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25246 echo "Test archive"
25247 tar -t -M -f arc.1 -f arc.2 -f arc.3
25248 echo "Compare archive"
25249 tar -d -M -f arc.1 -f arc.2 -f arc.3
25250 ) ) >"$at_stdout" 2>"$at_stder1"
25252 grep '^ *+' "$at_stder1" >&2
25253 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25258 TEST_TAR_FORMAT=pax
25259 export TEST_TAR_FORMAT
25260 TAR_OPTIONS="-H pax"
25265 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
25266 echo "Pass 1: Split between data blocks"
25267 echo "Create archive"
25268 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25269 echo "Test archive"
25270 tar -t -M -f arc.1 -f arc.2 -f arc.3
25271 echo "Compare archive"
25272 tar -d -M -f arc.1 -f arc.2 -f arc.3
25274 echo "Pass 2: Split within a data block"
25275 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25276 echo "Create archive"
25277 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25278 echo "Test archive"
25279 tar -t -M -f arc.1 -f arc.2 -f arc.3
25280 echo "Compare archive"
25281 tar -d -M -f arc.1 -f arc.2 -f arc.3
25282 ) ) >"$at_stdout" 2>"$at_stderr"
25287 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
25288 tar: Record size = 12 blocks
25289 " | $at_diff - "$at_stderr" || at_failed=:
25290 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25295 Pass 2: Split within a data block
25300 " | $at_diff - "$at_stdout" || at_failed=:
25302 77) echo 77 > "$at_status_file"; exit 77;;
25304 *) echo "$at_srcdir/spmvp00.at:24: exit code was $at_status, expected 0"
25307 if $at_failed; then
25310 echo 1 > "$at_status_file"
25320 $at_times_p && times >"$at_times_file"
25321 ) 5>&1 2>&1 | eval $at_tee_pipe
25322 at_status=`cat "$at_status_file"`
25325 62 ) # 62. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
25326 at_setup_line='spmvp01.at:21'
25327 at_desc="sparse files in PAX MV archives, v.0.1"
25328 $at_quiet $ECHO_N " 62: sparse files in PAX MV archives, v.0.1 $ECHO_C"
25330 test -f $XFAILFILE && at_xfail=yes
25331 echo "# -*- compilation -*-" >> "$at_group_log"
25333 echo "62. spmvp01.at:21: testing ..."
25342 echo "$at_srcdir/spmvp01.at:24:
25345 TEST_TAR_FORMAT=pax
25346 export TEST_TAR_FORMAT
25347 TAR_OPTIONS=\"-H pax\"
25352 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25353 echo \"Pass 1: Split between data blocks\"
25354 echo \"Create archive\"
25355 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25356 echo \"Test archive\"
25357 tar -t -M -f arc.1 -f arc.2 -f arc.3
25358 echo \"Compare archive\"
25359 tar -d -M -f arc.1 -f arc.2 -f arc.3
25361 echo \"Pass 2: Split within a data block\"
25362 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25363 echo \"Create archive\"
25364 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25365 echo \"Test archive\"
25366 tar -t -M -f arc.1 -f arc.2 -f arc.3
25367 echo \"Compare archive\"
25368 tar -d -M -f arc.1 -f arc.2 -f arc.3
25370 echo spmvp01.at:24 >"$at_check_line_file"
25373 if test -n "$at_traceon"; then
25374 echo 'Not enabling shell tracing (command contains an embedded newline)'
25377 if test -n "$at_trace_this"; then
25381 TEST_TAR_FORMAT=pax
25382 export TEST_TAR_FORMAT
25383 TAR_OPTIONS="-H pax"
25388 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25389 echo "Pass 1: Split between data blocks"
25390 echo "Create archive"
25391 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25392 echo "Test archive"
25393 tar -t -M -f arc.1 -f arc.2 -f arc.3
25394 echo "Compare archive"
25395 tar -d -M -f arc.1 -f arc.2 -f arc.3
25397 echo "Pass 2: Split within a data block"
25398 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25399 echo "Create archive"
25400 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25401 echo "Test archive"
25402 tar -t -M -f arc.1 -f arc.2 -f arc.3
25403 echo "Compare archive"
25404 tar -d -M -f arc.1 -f arc.2 -f arc.3
25405 ) ) >"$at_stdout" 2>"$at_stder1"
25407 grep '^ *+' "$at_stder1" >&2
25408 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25413 TEST_TAR_FORMAT=pax
25414 export TEST_TAR_FORMAT
25415 TAR_OPTIONS="-H pax"
25420 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
25421 echo "Pass 1: Split between data blocks"
25422 echo "Create archive"
25423 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25424 echo "Test archive"
25425 tar -t -M -f arc.1 -f arc.2 -f arc.3
25426 echo "Compare archive"
25427 tar -d -M -f arc.1 -f arc.2 -f arc.3
25429 echo "Pass 2: Split within a data block"
25430 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
25431 echo "Create archive"
25432 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25433 echo "Test archive"
25434 tar -t -M -f arc.1 -f arc.2 -f arc.3
25435 echo "Compare archive"
25436 tar -d -M -f arc.1 -f arc.2 -f arc.3
25437 ) ) >"$at_stdout" 2>"$at_stderr"
25442 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
25443 tar: Record size = 12 blocks
25444 " | $at_diff - "$at_stderr" || at_failed=:
25445 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25450 Pass 2: Split within a data block
25455 " | $at_diff - "$at_stdout" || at_failed=:
25457 77) echo 77 > "$at_status_file"; exit 77;;
25459 *) echo "$at_srcdir/spmvp01.at:24: exit code was $at_status, expected 0"
25462 if $at_failed; then
25465 echo 1 > "$at_status_file"
25475 $at_times_p && times >"$at_times_file"
25476 ) 5>&1 2>&1 | eval $at_tee_pipe
25477 at_status=`cat "$at_status_file"`
25480 63 ) # 63. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
25481 at_setup_line='spmvp10.at:21'
25482 at_desc="sparse files in PAX MV archives, v.1.0"
25483 $at_quiet $ECHO_N " 63: sparse files in PAX MV archives, v.1.0 $ECHO_C"
25485 test -f $XFAILFILE && at_xfail=yes
25486 echo "# -*- compilation -*-" >> "$at_group_log"
25488 echo "63. spmvp10.at:21: testing ..."
25497 echo "$at_srcdir/spmvp10.at:24:
25500 TEST_TAR_FORMAT=pax
25501 export TEST_TAR_FORMAT
25502 TAR_OPTIONS=\"-H pax\"
25507 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25508 echo \"Pass 1: Split between data blocks\"
25509 echo \"Create archive\"
25510 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25511 echo \"Test archive\"
25512 tar -t -M -f arc.1 -f arc.2 -f arc.3
25513 echo \"Compare archive\"
25514 tar -d -M -f arc.1 -f arc.2 -f arc.3
25516 echo \"Pass 2: Split within a data block\"
25517 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
25518 echo \"Create archive\"
25519 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25520 echo \"Test archive\"
25521 tar -t -M -f arc.1 -f arc.2 -f arc.3
25522 echo \"Compare archive\"
25523 tar -d -M -f arc.1 -f arc.2 -f arc.3
25525 echo spmvp10.at:24 >"$at_check_line_file"
25528 if test -n "$at_traceon"; then
25529 echo 'Not enabling shell tracing (command contains an embedded newline)'
25532 if test -n "$at_trace_this"; then
25536 TEST_TAR_FORMAT=pax
25537 export TEST_TAR_FORMAT
25538 TAR_OPTIONS="-H pax"
25543 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25544 echo "Pass 1: Split between data blocks"
25545 echo "Create archive"
25546 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25547 echo "Test archive"
25548 tar -t -M -f arc.1 -f arc.2 -f arc.3
25549 echo "Compare archive"
25550 tar -d -M -f arc.1 -f arc.2 -f arc.3
25552 echo "Pass 2: Split within a data block"
25553 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
25554 echo "Create archive"
25555 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25556 echo "Test archive"
25557 tar -t -M -f arc.1 -f arc.2 -f arc.3
25558 echo "Compare archive"
25559 tar -d -M -f arc.1 -f arc.2 -f arc.3
25560 ) ) >"$at_stdout" 2>"$at_stder1"
25562 grep '^ *+' "$at_stder1" >&2
25563 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25568 TEST_TAR_FORMAT=pax
25569 export TEST_TAR_FORMAT
25570 TAR_OPTIONS="-H pax"
25575 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25576 echo "Pass 1: Split between data blocks"
25577 echo "Create archive"
25578 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25579 echo "Test archive"
25580 tar -t -M -f arc.1 -f arc.2 -f arc.3
25581 echo "Compare archive"
25582 tar -d -M -f arc.1 -f arc.2 -f arc.3
25584 echo "Pass 2: Split within a data block"
25585 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
25586 echo "Create archive"
25587 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25588 echo "Test archive"
25589 tar -t -M -f arc.1 -f arc.2 -f arc.3
25590 echo "Compare archive"
25591 tar -d -M -f arc.1 -f arc.2 -f arc.3
25592 ) ) >"$at_stdout" 2>"$at_stderr"
25597 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
25598 tar: Record size = 12 blocks
25599 " | $at_diff - "$at_stderr" || at_failed=:
25600 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25605 Pass 2: Split within a data block
25610 " | $at_diff - "$at_stdout" || at_failed=:
25612 77) echo 77 > "$at_status_file"; exit 77;;
25614 *) echo "$at_srcdir/spmvp10.at:24: exit code was $at_status, expected 0"
25617 if $at_failed; then
25620 echo 1 > "$at_status_file"
25630 $at_times_p && times >"$at_times_file"
25631 ) 5>&1 2>&1 | eval $at_tee_pipe
25632 at_status=`cat "$at_status_file"`
25635 64 ) # 64. update.at:27: update unchanged directories
25636 at_setup_line='update.at:27'
25637 at_desc="update unchanged directories"
25638 $at_quiet $ECHO_N " 64: update unchanged directories $ECHO_C"
25640 test -f $XFAILFILE && at_xfail=yes
25641 echo "# -*- compilation -*-" >> "$at_group_log"
25643 echo "64. update.at:27: testing ..."
25651 echo "$at_srcdir/update.at:30:
25655 export TEST_TAR_FORMAT
25656 TAR_OPTIONS=\"-H v7\"
25661 test -z "`sort < /dev/null 2>&1`" || exit 77
25664 genfile --length 10240 --pattern zeros --file directory/file1
25665 genfile --length 10240 --pattern default --file directory/file2
25667 tar cf archive directory || exit 1
25669 tar uf archive directory || exit 1
25671 tar tf archive | sort || exit 1
25673 echo update.at:30 >"$at_check_line_file"
25676 if test -n "$at_traceon"; then
25677 echo 'Not enabling shell tracing (command contains an embedded newline)'
25680 if test -n "$at_trace_this"; then
25685 export TEST_TAR_FORMAT
25686 TAR_OPTIONS="-H v7"
25691 test -z "`sort < /dev/null 2>&1`" || exit 77
25694 genfile --length 10240 --pattern zeros --file directory/file1
25695 genfile --length 10240 --pattern default --file directory/file2
25697 tar cf archive directory || exit 1
25699 tar uf archive directory || exit 1
25701 tar tf archive | sort || exit 1
25702 ) ) >"$at_stdout" 2>"$at_stder1"
25704 grep '^ *+' "$at_stder1" >&2
25705 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25711 export TEST_TAR_FORMAT
25712 TAR_OPTIONS="-H v7"
25717 test -z "`sort < /dev/null 2>&1`" || exit 77
25720 genfile --length 10240 --pattern zeros --file directory/file1
25721 genfile --length 10240 --pattern default --file directory/file2
25723 tar cf archive directory || exit 1
25725 tar uf archive directory || exit 1
25727 tar tf archive | sort || exit 1
25728 ) ) >"$at_stdout" 2>"$at_stderr"
25733 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25734 echo >>"$at_stdout"; echo "separator
25739 " | $at_diff - "$at_stdout" || at_failed=:
25741 77) echo 77 > "$at_status_file"; exit 77;;
25743 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25746 if $at_failed; then
25749 echo 1 > "$at_status_file"
25756 echo "$at_srcdir/update.at:30:
25759 TEST_TAR_FORMAT=oldgnu
25760 export TEST_TAR_FORMAT
25761 TAR_OPTIONS=\"-H oldgnu\"
25766 test -z "`sort < /dev/null 2>&1`" || exit 77
25769 genfile --length 10240 --pattern zeros --file directory/file1
25770 genfile --length 10240 --pattern default --file directory/file2
25772 tar cf archive directory || exit 1
25774 tar uf archive directory || exit 1
25776 tar tf archive | sort || exit 1
25778 echo update.at:30 >"$at_check_line_file"
25781 if test -n "$at_traceon"; then
25782 echo 'Not enabling shell tracing (command contains an embedded newline)'
25785 if test -n "$at_trace_this"; then
25789 TEST_TAR_FORMAT=oldgnu
25790 export TEST_TAR_FORMAT
25791 TAR_OPTIONS="-H oldgnu"
25796 test -z "`sort < /dev/null 2>&1`" || exit 77
25799 genfile --length 10240 --pattern zeros --file directory/file1
25800 genfile --length 10240 --pattern default --file directory/file2
25802 tar cf archive directory || exit 1
25804 tar uf archive directory || exit 1
25806 tar tf archive | sort || exit 1
25807 ) ) >"$at_stdout" 2>"$at_stder1"
25809 grep '^ *+' "$at_stder1" >&2
25810 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25815 TEST_TAR_FORMAT=oldgnu
25816 export TEST_TAR_FORMAT
25817 TAR_OPTIONS="-H oldgnu"
25822 test -z "`sort < /dev/null 2>&1`" || exit 77
25825 genfile --length 10240 --pattern zeros --file directory/file1
25826 genfile --length 10240 --pattern default --file directory/file2
25828 tar cf archive directory || exit 1
25830 tar uf archive directory || exit 1
25832 tar tf archive | sort || exit 1
25833 ) ) >"$at_stdout" 2>"$at_stderr"
25838 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25839 echo >>"$at_stdout"; echo "separator
25844 " | $at_diff - "$at_stdout" || at_failed=:
25846 77) echo 77 > "$at_status_file"; exit 77;;
25848 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25851 if $at_failed; then
25854 echo 1 > "$at_status_file"
25861 echo "$at_srcdir/update.at:30:
25864 TEST_TAR_FORMAT=ustar
25865 export TEST_TAR_FORMAT
25866 TAR_OPTIONS=\"-H ustar\"
25871 test -z "`sort < /dev/null 2>&1`" || exit 77
25874 genfile --length 10240 --pattern zeros --file directory/file1
25875 genfile --length 10240 --pattern default --file directory/file2
25877 tar cf archive directory || exit 1
25879 tar uf archive directory || exit 1
25881 tar tf archive | sort || exit 1
25883 echo update.at:30 >"$at_check_line_file"
25886 if test -n "$at_traceon"; then
25887 echo 'Not enabling shell tracing (command contains an embedded newline)'
25890 if test -n "$at_trace_this"; then
25894 TEST_TAR_FORMAT=ustar
25895 export TEST_TAR_FORMAT
25896 TAR_OPTIONS="-H ustar"
25901 test -z "`sort < /dev/null 2>&1`" || exit 77
25904 genfile --length 10240 --pattern zeros --file directory/file1
25905 genfile --length 10240 --pattern default --file directory/file2
25907 tar cf archive directory || exit 1
25909 tar uf archive directory || exit 1
25911 tar tf archive | sort || exit 1
25912 ) ) >"$at_stdout" 2>"$at_stder1"
25914 grep '^ *+' "$at_stder1" >&2
25915 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25920 TEST_TAR_FORMAT=ustar
25921 export TEST_TAR_FORMAT
25922 TAR_OPTIONS="-H ustar"
25927 test -z "`sort < /dev/null 2>&1`" || exit 77
25930 genfile --length 10240 --pattern zeros --file directory/file1
25931 genfile --length 10240 --pattern default --file directory/file2
25933 tar cf archive directory || exit 1
25935 tar uf archive directory || exit 1
25937 tar tf archive | sort || exit 1
25938 ) ) >"$at_stdout" 2>"$at_stderr"
25943 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25944 echo >>"$at_stdout"; echo "separator
25949 " | $at_diff - "$at_stdout" || at_failed=:
25951 77) echo 77 > "$at_status_file"; exit 77;;
25953 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25956 if $at_failed; then
25959 echo 1 > "$at_status_file"
25966 echo "$at_srcdir/update.at:30:
25969 TEST_TAR_FORMAT=posix
25970 export TEST_TAR_FORMAT
25971 TAR_OPTIONS=\"-H posix\"
25976 test -z "`sort < /dev/null 2>&1`" || exit 77
25979 genfile --length 10240 --pattern zeros --file directory/file1
25980 genfile --length 10240 --pattern default --file directory/file2
25982 tar cf archive directory || exit 1
25984 tar uf archive directory || exit 1
25986 tar tf archive | sort || exit 1
25988 echo update.at:30 >"$at_check_line_file"
25991 if test -n "$at_traceon"; then
25992 echo 'Not enabling shell tracing (command contains an embedded newline)'
25995 if test -n "$at_trace_this"; then
25999 TEST_TAR_FORMAT=posix
26000 export TEST_TAR_FORMAT
26001 TAR_OPTIONS="-H posix"
26006 test -z "`sort < /dev/null 2>&1`" || exit 77
26009 genfile --length 10240 --pattern zeros --file directory/file1
26010 genfile --length 10240 --pattern default --file directory/file2
26012 tar cf archive directory || exit 1
26014 tar uf archive directory || exit 1
26016 tar tf archive | sort || exit 1
26017 ) ) >"$at_stdout" 2>"$at_stder1"
26019 grep '^ *+' "$at_stder1" >&2
26020 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26025 TEST_TAR_FORMAT=posix
26026 export TEST_TAR_FORMAT
26027 TAR_OPTIONS="-H posix"
26032 test -z "`sort < /dev/null 2>&1`" || exit 77
26035 genfile --length 10240 --pattern zeros --file directory/file1
26036 genfile --length 10240 --pattern default --file directory/file2
26038 tar cf archive directory || exit 1
26040 tar uf archive directory || exit 1
26042 tar tf archive | sort || exit 1
26043 ) ) >"$at_stdout" 2>"$at_stderr"
26048 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26049 echo >>"$at_stdout"; echo "separator
26054 " | $at_diff - "$at_stdout" || at_failed=:
26056 77) echo 77 > "$at_status_file"; exit 77;;
26058 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
26061 if $at_failed; then
26064 echo 1 > "$at_status_file"
26071 echo "$at_srcdir/update.at:30:
26074 TEST_TAR_FORMAT=gnu
26075 export TEST_TAR_FORMAT
26076 TAR_OPTIONS=\"-H gnu\"
26081 test -z "`sort < /dev/null 2>&1`" || exit 77
26084 genfile --length 10240 --pattern zeros --file directory/file1
26085 genfile --length 10240 --pattern default --file directory/file2
26087 tar cf archive directory || exit 1
26089 tar uf archive directory || exit 1
26091 tar tf archive | sort || exit 1
26093 echo update.at:30 >"$at_check_line_file"
26096 if test -n "$at_traceon"; then
26097 echo 'Not enabling shell tracing (command contains an embedded newline)'
26100 if test -n "$at_trace_this"; then
26104 TEST_TAR_FORMAT=gnu
26105 export TEST_TAR_FORMAT
26106 TAR_OPTIONS="-H gnu"
26111 test -z "`sort < /dev/null 2>&1`" || exit 77
26114 genfile --length 10240 --pattern zeros --file directory/file1
26115 genfile --length 10240 --pattern default --file directory/file2
26117 tar cf archive directory || exit 1
26119 tar uf archive directory || exit 1
26121 tar tf archive | sort || exit 1
26122 ) ) >"$at_stdout" 2>"$at_stder1"
26124 grep '^ *+' "$at_stder1" >&2
26125 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26130 TEST_TAR_FORMAT=gnu
26131 export TEST_TAR_FORMAT
26132 TAR_OPTIONS="-H gnu"
26137 test -z "`sort < /dev/null 2>&1`" || exit 77
26140 genfile --length 10240 --pattern zeros --file directory/file1
26141 genfile --length 10240 --pattern default --file directory/file2
26143 tar cf archive directory || exit 1
26145 tar uf archive directory || exit 1
26147 tar tf archive | sort || exit 1
26148 ) ) >"$at_stdout" 2>"$at_stderr"
26153 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26154 echo >>"$at_stdout"; echo "separator
26159 " | $at_diff - "$at_stdout" || at_failed=:
26161 77) echo 77 > "$at_status_file"; exit 77;;
26163 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
26166 if $at_failed; then
26169 echo 1 > "$at_status_file"
26179 $at_times_p && times >"$at_times_file"
26180 ) 5>&1 2>&1 | eval $at_tee_pipe
26181 at_status=`cat "$at_status_file"`
26184 65 ) # 65. volume.at:23: volume
26185 at_setup_line='volume.at:23'
26187 $at_quiet $ECHO_N " 65: volume $ECHO_C"
26189 test -f $XFAILFILE && at_xfail=yes
26190 echo "# -*- compilation -*-" >> "$at_group_log"
26192 echo "65. volume.at:23: testing ..."
26200 echo "$at_srcdir/volume.at:26:
26203 TEST_TAR_FORMAT=gnu
26204 export TEST_TAR_FORMAT
26205 TAR_OPTIONS=\"-H gnu\"
26209 tar -cf archive -V label -T /dev/null || exit 1
26211 tar xfV archive label || exit 1
26212 tar xfV archive 'la?el' || exit 1
26213 tar xfV archive 'l*l' || exit 1
26216 tar xfV archive lab
26217 test \$? = 2 || exit 1
26219 tar xfV archive bel
26220 test \$? = 2 || exit 1
26222 tar xfV archive babel
26225 echo volume.at:26 >"$at_check_line_file"
26228 if test -n "$at_traceon"; then
26229 echo 'Not enabling shell tracing (command contains an embedded newline)'
26232 if test -n "$at_trace_this"; then
26236 TEST_TAR_FORMAT=gnu
26237 export TEST_TAR_FORMAT
26238 TAR_OPTIONS="-H gnu"
26242 tar -cf archive -V label -T /dev/null || exit 1
26244 tar xfV archive label || exit 1
26245 tar xfV archive 'la?el' || exit 1
26246 tar xfV archive 'l*l' || exit 1
26249 tar xfV archive lab
26250 test $? = 2 || exit 1
26252 tar xfV archive bel
26253 test $? = 2 || exit 1
26255 tar xfV archive babel
26257 ) ) >"$at_stdout" 2>"$at_stder1"
26259 grep '^ *+' "$at_stder1" >&2
26260 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26265 TEST_TAR_FORMAT=gnu
26266 export TEST_TAR_FORMAT
26267 TAR_OPTIONS="-H gnu"
26271 tar -cf archive -V label -T /dev/null || exit 1
26273 tar xfV archive label || exit 1
26274 tar xfV archive 'la?el' || exit 1
26275 tar xfV archive 'l*l' || exit 1
26278 tar xfV archive lab
26279 test $? = 2 || exit 1
26281 tar xfV archive bel
26282 test $? = 2 || exit 1
26284 tar xfV archive babel
26286 ) ) >"$at_stdout" 2>"$at_stderr"
26291 echo >>"$at_stderr"; echo "-----
26292 tar: Volume \`label' does not match \`lab'
26293 tar: Error is not recoverable: exiting now
26295 tar: Volume \`label' does not match \`bel'
26296 tar: Error is not recoverable: exiting now
26298 tar: Volume \`label' does not match \`babel'
26299 tar: Error is not recoverable: exiting now
26300 " | $at_diff - "$at_stderr" || at_failed=:
26301 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
26303 77) echo 77 > "$at_status_file"; exit 77;;
26305 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
26308 if $at_failed; then
26311 echo 1 > "$at_status_file"
26318 echo "$at_srcdir/volume.at:26:
26321 TEST_TAR_FORMAT=oldgnu
26322 export TEST_TAR_FORMAT
26323 TAR_OPTIONS=\"-H oldgnu\"
26327 tar -cf archive -V label -T /dev/null || exit 1
26329 tar xfV archive label || exit 1
26330 tar xfV archive 'la?el' || exit 1
26331 tar xfV archive 'l*l' || exit 1
26334 tar xfV archive lab
26335 test \$? = 2 || exit 1
26337 tar xfV archive bel
26338 test \$? = 2 || exit 1
26340 tar xfV archive babel
26343 echo volume.at:26 >"$at_check_line_file"
26346 if test -n "$at_traceon"; then
26347 echo 'Not enabling shell tracing (command contains an embedded newline)'
26350 if test -n "$at_trace_this"; then
26354 TEST_TAR_FORMAT=oldgnu
26355 export TEST_TAR_FORMAT
26356 TAR_OPTIONS="-H oldgnu"
26360 tar -cf archive -V label -T /dev/null || exit 1
26362 tar xfV archive label || exit 1
26363 tar xfV archive 'la?el' || exit 1
26364 tar xfV archive 'l*l' || exit 1
26367 tar xfV archive lab
26368 test $? = 2 || exit 1
26370 tar xfV archive bel
26371 test $? = 2 || exit 1
26373 tar xfV archive babel
26375 ) ) >"$at_stdout" 2>"$at_stder1"
26377 grep '^ *+' "$at_stder1" >&2
26378 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26383 TEST_TAR_FORMAT=oldgnu
26384 export TEST_TAR_FORMAT
26385 TAR_OPTIONS="-H oldgnu"
26389 tar -cf archive -V label -T /dev/null || exit 1
26391 tar xfV archive label || exit 1
26392 tar xfV archive 'la?el' || exit 1
26393 tar xfV archive 'l*l' || exit 1
26396 tar xfV archive lab
26397 test $? = 2 || exit 1
26399 tar xfV archive bel
26400 test $? = 2 || exit 1
26402 tar xfV archive babel
26404 ) ) >"$at_stdout" 2>"$at_stderr"
26409 echo >>"$at_stderr"; echo "-----
26410 tar: Volume \`label' does not match \`lab'
26411 tar: Error is not recoverable: exiting now
26413 tar: Volume \`label' does not match \`bel'
26414 tar: Error is not recoverable: exiting now
26416 tar: Volume \`label' does not match \`babel'
26417 tar: Error is not recoverable: exiting now
26418 " | $at_diff - "$at_stderr" || at_failed=:
26419 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
26421 77) echo 77 > "$at_status_file"; exit 77;;
26423 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
26426 if $at_failed; then
26429 echo 1 > "$at_status_file"
26439 $at_times_p && times >"$at_times_file"
26440 ) 5>&1 2>&1 | eval $at_tee_pipe
26441 at_status=`cat "$at_status_file"`
26444 66 ) # 66. volsize.at:29: volume header size
26445 at_setup_line='volsize.at:29'
26446 at_desc="volume header size"
26447 $at_quiet $ECHO_N " 66: volume header size $ECHO_C"
26449 test -f $XFAILFILE && at_xfail=yes
26450 echo "# -*- compilation -*-" >> "$at_group_log"
26452 echo "66. volsize.at:29: testing ..."
26460 echo "$at_srcdir/volsize.at:32:
26464 export TEST_TAR_FORMAT
26465 TAR_OPTIONS=\"-H v7\"
26470 test -z "`sort < /dev/null 2>&1`" || exit 77
26473 test -z "$TEST_DATA_DIR" && exit 77
26474 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26477 tar tf \$TEST_DATA_DIR/abc.tar
26478 echo Verbose Listing
26479 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26480 echo Extracted directory
26481 tar xf \$TEST_DATA_DIR/abc.tar
26484 echo volsize.at:32 >"$at_check_line_file"
26487 if test -n "$at_traceon"; then
26488 echo 'Not enabling shell tracing (command contains an embedded newline)'
26491 if test -n "$at_trace_this"; then
26496 export TEST_TAR_FORMAT
26497 TAR_OPTIONS="-H v7"
26502 test -z "`sort < /dev/null 2>&1`" || exit 77
26505 test -z "$TEST_DATA_DIR" && exit 77
26506 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26509 tar tf $TEST_DATA_DIR/abc.tar
26510 echo Verbose Listing
26511 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26512 echo Extracted directory
26513 tar xf $TEST_DATA_DIR/abc.tar
26515 ) ) >"$at_stdout" 2>"$at_stder1"
26517 grep '^ *+' "$at_stder1" >&2
26518 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26524 export TEST_TAR_FORMAT
26525 TAR_OPTIONS="-H v7"
26530 test -z "`sort < /dev/null 2>&1`" || exit 77
26533 test -z "$TEST_DATA_DIR" && exit 77
26534 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26537 tar tf $TEST_DATA_DIR/abc.tar
26538 echo Verbose Listing
26539 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26540 echo Extracted directory
26541 tar xf $TEST_DATA_DIR/abc.tar
26543 ) ) >"$at_stdout" 2>"$at_stderr"
26548 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26549 tar: Record size = 5 blocks
26550 " | $at_diff - "$at_stderr" || at_failed=:
26551 echo >>"$at_stdout"; echo "Short Listing
26555 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26556 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26557 Extracted directory
26560 " | $at_diff - "$at_stdout" || at_failed=:
26562 77) echo 77 > "$at_status_file"; exit 77;;
26564 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26567 if $at_failed; then
26570 echo 1 > "$at_status_file"
26577 echo "$at_srcdir/volsize.at:32:
26580 TEST_TAR_FORMAT=oldgnu
26581 export TEST_TAR_FORMAT
26582 TAR_OPTIONS=\"-H oldgnu\"
26587 test -z "`sort < /dev/null 2>&1`" || exit 77
26590 test -z "$TEST_DATA_DIR" && exit 77
26591 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26594 tar tf \$TEST_DATA_DIR/abc.tar
26595 echo Verbose Listing
26596 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26597 echo Extracted directory
26598 tar xf \$TEST_DATA_DIR/abc.tar
26601 echo volsize.at:32 >"$at_check_line_file"
26604 if test -n "$at_traceon"; then
26605 echo 'Not enabling shell tracing (command contains an embedded newline)'
26608 if test -n "$at_trace_this"; then
26612 TEST_TAR_FORMAT=oldgnu
26613 export TEST_TAR_FORMAT
26614 TAR_OPTIONS="-H oldgnu"
26619 test -z "`sort < /dev/null 2>&1`" || exit 77
26622 test -z "$TEST_DATA_DIR" && exit 77
26623 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26626 tar tf $TEST_DATA_DIR/abc.tar
26627 echo Verbose Listing
26628 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26629 echo Extracted directory
26630 tar xf $TEST_DATA_DIR/abc.tar
26632 ) ) >"$at_stdout" 2>"$at_stder1"
26634 grep '^ *+' "$at_stder1" >&2
26635 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26640 TEST_TAR_FORMAT=oldgnu
26641 export TEST_TAR_FORMAT
26642 TAR_OPTIONS="-H oldgnu"
26647 test -z "`sort < /dev/null 2>&1`" || exit 77
26650 test -z "$TEST_DATA_DIR" && exit 77
26651 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26654 tar tf $TEST_DATA_DIR/abc.tar
26655 echo Verbose Listing
26656 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26657 echo Extracted directory
26658 tar xf $TEST_DATA_DIR/abc.tar
26660 ) ) >"$at_stdout" 2>"$at_stderr"
26665 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26666 tar: Record size = 5 blocks
26667 " | $at_diff - "$at_stderr" || at_failed=:
26668 echo >>"$at_stdout"; echo "Short Listing
26672 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26673 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26674 Extracted directory
26677 " | $at_diff - "$at_stdout" || at_failed=:
26679 77) echo 77 > "$at_status_file"; exit 77;;
26681 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26684 if $at_failed; then
26687 echo 1 > "$at_status_file"
26694 echo "$at_srcdir/volsize.at:32:
26697 TEST_TAR_FORMAT=ustar
26698 export TEST_TAR_FORMAT
26699 TAR_OPTIONS=\"-H ustar\"
26704 test -z "`sort < /dev/null 2>&1`" || exit 77
26707 test -z "$TEST_DATA_DIR" && exit 77
26708 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26711 tar tf \$TEST_DATA_DIR/abc.tar
26712 echo Verbose Listing
26713 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26714 echo Extracted directory
26715 tar xf \$TEST_DATA_DIR/abc.tar
26718 echo volsize.at:32 >"$at_check_line_file"
26721 if test -n "$at_traceon"; then
26722 echo 'Not enabling shell tracing (command contains an embedded newline)'
26725 if test -n "$at_trace_this"; then
26729 TEST_TAR_FORMAT=ustar
26730 export TEST_TAR_FORMAT
26731 TAR_OPTIONS="-H ustar"
26736 test -z "`sort < /dev/null 2>&1`" || exit 77
26739 test -z "$TEST_DATA_DIR" && exit 77
26740 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26743 tar tf $TEST_DATA_DIR/abc.tar
26744 echo Verbose Listing
26745 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26746 echo Extracted directory
26747 tar xf $TEST_DATA_DIR/abc.tar
26749 ) ) >"$at_stdout" 2>"$at_stder1"
26751 grep '^ *+' "$at_stder1" >&2
26752 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26757 TEST_TAR_FORMAT=ustar
26758 export TEST_TAR_FORMAT
26759 TAR_OPTIONS="-H ustar"
26764 test -z "`sort < /dev/null 2>&1`" || exit 77
26767 test -z "$TEST_DATA_DIR" && exit 77
26768 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26771 tar tf $TEST_DATA_DIR/abc.tar
26772 echo Verbose Listing
26773 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26774 echo Extracted directory
26775 tar xf $TEST_DATA_DIR/abc.tar
26777 ) ) >"$at_stdout" 2>"$at_stderr"
26782 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26783 tar: Record size = 5 blocks
26784 " | $at_diff - "$at_stderr" || at_failed=:
26785 echo >>"$at_stdout"; echo "Short Listing
26789 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26790 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26791 Extracted directory
26794 " | $at_diff - "$at_stdout" || at_failed=:
26796 77) echo 77 > "$at_status_file"; exit 77;;
26798 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26801 if $at_failed; then
26804 echo 1 > "$at_status_file"
26811 echo "$at_srcdir/volsize.at:32:
26814 TEST_TAR_FORMAT=posix
26815 export TEST_TAR_FORMAT
26816 TAR_OPTIONS=\"-H posix\"
26821 test -z "`sort < /dev/null 2>&1`" || exit 77
26824 test -z "$TEST_DATA_DIR" && exit 77
26825 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26828 tar tf \$TEST_DATA_DIR/abc.tar
26829 echo Verbose Listing
26830 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26831 echo Extracted directory
26832 tar xf \$TEST_DATA_DIR/abc.tar
26835 echo volsize.at:32 >"$at_check_line_file"
26838 if test -n "$at_traceon"; then
26839 echo 'Not enabling shell tracing (command contains an embedded newline)'
26842 if test -n "$at_trace_this"; then
26846 TEST_TAR_FORMAT=posix
26847 export TEST_TAR_FORMAT
26848 TAR_OPTIONS="-H posix"
26853 test -z "`sort < /dev/null 2>&1`" || exit 77
26856 test -z "$TEST_DATA_DIR" && exit 77
26857 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26860 tar tf $TEST_DATA_DIR/abc.tar
26861 echo Verbose Listing
26862 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26863 echo Extracted directory
26864 tar xf $TEST_DATA_DIR/abc.tar
26866 ) ) >"$at_stdout" 2>"$at_stder1"
26868 grep '^ *+' "$at_stder1" >&2
26869 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26874 TEST_TAR_FORMAT=posix
26875 export TEST_TAR_FORMAT
26876 TAR_OPTIONS="-H posix"
26881 test -z "`sort < /dev/null 2>&1`" || exit 77
26884 test -z "$TEST_DATA_DIR" && exit 77
26885 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26888 tar tf $TEST_DATA_DIR/abc.tar
26889 echo Verbose Listing
26890 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26891 echo Extracted directory
26892 tar xf $TEST_DATA_DIR/abc.tar
26894 ) ) >"$at_stdout" 2>"$at_stderr"
26899 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26900 tar: Record size = 5 blocks
26901 " | $at_diff - "$at_stderr" || at_failed=:
26902 echo >>"$at_stdout"; echo "Short Listing
26906 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26907 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26908 Extracted directory
26911 " | $at_diff - "$at_stdout" || at_failed=:
26913 77) echo 77 > "$at_status_file"; exit 77;;
26915 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26918 if $at_failed; then
26921 echo 1 > "$at_status_file"
26928 echo "$at_srcdir/volsize.at:32:
26931 TEST_TAR_FORMAT=gnu
26932 export TEST_TAR_FORMAT
26933 TAR_OPTIONS=\"-H gnu\"
26938 test -z "`sort < /dev/null 2>&1`" || exit 77
26941 test -z "$TEST_DATA_DIR" && exit 77
26942 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26945 tar tf \$TEST_DATA_DIR/abc.tar
26946 echo Verbose Listing
26947 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26948 echo Extracted directory
26949 tar xf \$TEST_DATA_DIR/abc.tar
26952 echo volsize.at:32 >"$at_check_line_file"
26955 if test -n "$at_traceon"; then
26956 echo 'Not enabling shell tracing (command contains an embedded newline)'
26959 if test -n "$at_trace_this"; then
26963 TEST_TAR_FORMAT=gnu
26964 export TEST_TAR_FORMAT
26965 TAR_OPTIONS="-H gnu"
26970 test -z "`sort < /dev/null 2>&1`" || exit 77
26973 test -z "$TEST_DATA_DIR" && exit 77
26974 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26977 tar tf $TEST_DATA_DIR/abc.tar
26978 echo Verbose Listing
26979 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26980 echo Extracted directory
26981 tar xf $TEST_DATA_DIR/abc.tar
26983 ) ) >"$at_stdout" 2>"$at_stder1"
26985 grep '^ *+' "$at_stder1" >&2
26986 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26991 TEST_TAR_FORMAT=gnu
26992 export TEST_TAR_FORMAT
26993 TAR_OPTIONS="-H gnu"
26998 test -z "`sort < /dev/null 2>&1`" || exit 77
27001 test -z "$TEST_DATA_DIR" && exit 77
27002 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
27005 tar tf $TEST_DATA_DIR/abc.tar
27006 echo Verbose Listing
27007 tar --utc -tvf $TEST_DATA_DIR/abc.tar
27008 echo Extracted directory
27009 tar xf $TEST_DATA_DIR/abc.tar
27011 ) ) >"$at_stdout" 2>"$at_stderr"
27016 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
27017 tar: Record size = 5 blocks
27018 " | $at_diff - "$at_stderr" || at_failed=:
27019 echo >>"$at_stdout"; echo "Short Listing
27023 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
27024 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
27025 Extracted directory
27028 " | $at_diff - "$at_stdout" || at_failed=:
27030 77) echo 77 > "$at_status_file"; exit 77;;
27032 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
27035 if $at_failed; then
27038 echo 1 > "$at_status_file"
27048 $at_times_p && times >"$at_times_file"
27049 ) 5>&1 2>&1 | eval $at_tee_pipe
27050 at_status=`cat "$at_status_file"`
27053 67 ) # 67. comprec.at:21: compressed format recognition
27054 at_setup_line='comprec.at:21'
27055 at_desc="compressed format recognition"
27056 $at_quiet $ECHO_N " 67: compressed format recognition $ECHO_C"
27058 test -f $XFAILFILE && at_xfail=yes
27059 echo "# -*- compilation -*-" >> "$at_group_log"
27061 echo "67. comprec.at:21: testing ..."
27070 echo "$at_srcdir/comprec.at:25:
27074 export TEST_TAR_FORMAT
27075 TAR_OPTIONS=\"-H v7\"
27080 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27082 genfile --length 10240 --file file1
27084 tar cfz archive file1
27090 echo comprec.at:25 >"$at_check_line_file"
27093 if test -n "$at_traceon"; then
27094 echo 'Not enabling shell tracing (command contains an embedded newline)'
27097 if test -n "$at_trace_this"; then
27102 export TEST_TAR_FORMAT
27103 TAR_OPTIONS="-H v7"
27108 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27110 genfile --length 10240 --file file1
27112 tar cfz archive file1
27117 ) ) >"$at_stdout" 2>"$at_stder1"
27119 grep '^ *+' "$at_stder1" >&2
27120 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27126 export TEST_TAR_FORMAT
27127 TAR_OPTIONS="-H v7"
27132 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27134 genfile --length 10240 --file file1
27136 tar cfz archive file1
27141 ) ) >"$at_stdout" 2>"$at_stderr"
27146 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27147 echo >>"$at_stdout"; echo "separator
27150 " | $at_diff - "$at_stdout" || at_failed=:
27152 77) echo 77 > "$at_status_file"; exit 77;;
27154 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
27157 if $at_failed; then
27160 echo 1 > "$at_status_file"
27167 echo "$at_srcdir/comprec.at:25:
27170 TEST_TAR_FORMAT=oldgnu
27171 export TEST_TAR_FORMAT
27172 TAR_OPTIONS=\"-H oldgnu\"
27177 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27179 genfile --length 10240 --file file1
27181 tar cfz archive file1
27187 echo comprec.at:25 >"$at_check_line_file"
27190 if test -n "$at_traceon"; then
27191 echo 'Not enabling shell tracing (command contains an embedded newline)'
27194 if test -n "$at_trace_this"; then
27198 TEST_TAR_FORMAT=oldgnu
27199 export TEST_TAR_FORMAT
27200 TAR_OPTIONS="-H oldgnu"
27205 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27207 genfile --length 10240 --file file1
27209 tar cfz archive file1
27214 ) ) >"$at_stdout" 2>"$at_stder1"
27216 grep '^ *+' "$at_stder1" >&2
27217 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27222 TEST_TAR_FORMAT=oldgnu
27223 export TEST_TAR_FORMAT
27224 TAR_OPTIONS="-H oldgnu"
27229 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27231 genfile --length 10240 --file file1
27233 tar cfz archive file1
27238 ) ) >"$at_stdout" 2>"$at_stderr"
27243 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27244 echo >>"$at_stdout"; echo "separator
27247 " | $at_diff - "$at_stdout" || at_failed=:
27249 77) echo 77 > "$at_status_file"; exit 77;;
27251 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
27254 if $at_failed; then
27257 echo 1 > "$at_status_file"
27264 echo "$at_srcdir/comprec.at:25:
27267 TEST_TAR_FORMAT=ustar
27268 export TEST_TAR_FORMAT
27269 TAR_OPTIONS=\"-H ustar\"
27274 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27276 genfile --length 10240 --file file1
27278 tar cfz archive file1
27284 echo comprec.at:25 >"$at_check_line_file"
27287 if test -n "$at_traceon"; then
27288 echo 'Not enabling shell tracing (command contains an embedded newline)'
27291 if test -n "$at_trace_this"; then
27295 TEST_TAR_FORMAT=ustar
27296 export TEST_TAR_FORMAT
27297 TAR_OPTIONS="-H ustar"
27302 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27304 genfile --length 10240 --file file1
27306 tar cfz archive file1
27311 ) ) >"$at_stdout" 2>"$at_stder1"
27313 grep '^ *+' "$at_stder1" >&2
27314 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27319 TEST_TAR_FORMAT=ustar
27320 export TEST_TAR_FORMAT
27321 TAR_OPTIONS="-H ustar"
27326 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27328 genfile --length 10240 --file file1
27330 tar cfz archive file1
27335 ) ) >"$at_stdout" 2>"$at_stderr"
27340 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27341 echo >>"$at_stdout"; echo "separator
27344 " | $at_diff - "$at_stdout" || at_failed=:
27346 77) echo 77 > "$at_status_file"; exit 77;;
27348 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
27351 if $at_failed; then
27354 echo 1 > "$at_status_file"
27361 echo "$at_srcdir/comprec.at:25:
27364 TEST_TAR_FORMAT=posix
27365 export TEST_TAR_FORMAT
27366 TAR_OPTIONS=\"-H posix\"
27371 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27373 genfile --length 10240 --file file1
27375 tar cfz archive file1
27381 echo comprec.at:25 >"$at_check_line_file"
27384 if test -n "$at_traceon"; then
27385 echo 'Not enabling shell tracing (command contains an embedded newline)'
27388 if test -n "$at_trace_this"; then
27392 TEST_TAR_FORMAT=posix
27393 export TEST_TAR_FORMAT
27394 TAR_OPTIONS="-H posix"
27399 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27401 genfile --length 10240 --file file1
27403 tar cfz archive file1
27408 ) ) >"$at_stdout" 2>"$at_stder1"
27410 grep '^ *+' "$at_stder1" >&2
27411 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27416 TEST_TAR_FORMAT=posix
27417 export TEST_TAR_FORMAT
27418 TAR_OPTIONS="-H posix"
27423 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27425 genfile --length 10240 --file file1
27427 tar cfz archive file1
27432 ) ) >"$at_stdout" 2>"$at_stderr"
27437 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27438 echo >>"$at_stdout"; echo "separator
27441 " | $at_diff - "$at_stdout" || at_failed=:
27443 77) echo 77 > "$at_status_file"; exit 77;;
27445 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
27448 if $at_failed; then
27451 echo 1 > "$at_status_file"
27458 echo "$at_srcdir/comprec.at:25:
27461 TEST_TAR_FORMAT=gnu
27462 export TEST_TAR_FORMAT
27463 TAR_OPTIONS=\"-H gnu\"
27468 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27470 genfile --length 10240 --file file1
27472 tar cfz archive file1
27478 echo comprec.at:25 >"$at_check_line_file"
27481 if test -n "$at_traceon"; then
27482 echo 'Not enabling shell tracing (command contains an embedded newline)'
27485 if test -n "$at_trace_this"; then
27489 TEST_TAR_FORMAT=gnu
27490 export TEST_TAR_FORMAT
27491 TAR_OPTIONS="-H gnu"
27496 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27498 genfile --length 10240 --file file1
27500 tar cfz archive file1
27505 ) ) >"$at_stdout" 2>"$at_stder1"
27507 grep '^ *+' "$at_stder1" >&2
27508 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27513 TEST_TAR_FORMAT=gnu
27514 export TEST_TAR_FORMAT
27515 TAR_OPTIONS="-H gnu"
27520 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
27522 genfile --length 10240 --file file1
27524 tar cfz archive file1
27529 ) ) >"$at_stdout" 2>"$at_stderr"
27534 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27535 echo >>"$at_stdout"; echo "separator
27538 " | $at_diff - "$at_stdout" || at_failed=:
27540 77) echo 77 > "$at_status_file"; exit 77;;
27542 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
27545 if $at_failed; then
27548 echo 1 > "$at_status_file"
27558 $at_times_p && times >"$at_times_file"
27559 ) 5>&1 2>&1 | eval $at_tee_pipe
27560 at_status=`cat "$at_status_file"`
27563 68 ) # 68. shortfile.at:26: short input files
27564 at_setup_line='shortfile.at:26'
27565 at_desc="short input files"
27566 $at_quiet $ECHO_N " 68: short input files $ECHO_C"
27568 test -f $XFAILFILE && at_xfail=yes
27569 echo "# -*- compilation -*-" >> "$at_group_log"
27571 echo "68. shortfile.at:26: testing ..."
27579 echo "$at_srcdir/shortfile.at:29:
27582 TEST_TAR_FORMAT=gnu
27583 export TEST_TAR_FORMAT
27584 TAR_OPTIONS=\"-H gnu\"
27588 genfile --length 511 --file foo || exit 5
27591 echo shortfile.at:29 >"$at_check_line_file"
27594 if test -n "$at_traceon"; then
27595 echo 'Not enabling shell tracing (command contains an embedded newline)'
27598 if test -n "$at_trace_this"; then
27602 TEST_TAR_FORMAT=gnu
27603 export TEST_TAR_FORMAT
27604 TAR_OPTIONS="-H gnu"
27608 genfile --length 511 --file foo || exit 5
27610 ) ) >"$at_stdout" 2>"$at_stder1"
27612 grep '^ *+' "$at_stder1" >&2
27613 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27618 TEST_TAR_FORMAT=gnu
27619 export TEST_TAR_FORMAT
27620 TAR_OPTIONS="-H gnu"
27624 genfile --length 511 --file foo || exit 5
27626 ) ) >"$at_stdout" 2>"$at_stderr"
27631 echo >>"$at_stderr"; echo "tar: This does not look like a tar archive
27632 tar: Exiting with failure status due to previous errors
27633 " | $at_diff - "$at_stderr" || at_failed=:
27634 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27636 77) echo 77 > "$at_status_file"; exit 77;;
27638 *) echo "$at_srcdir/shortfile.at:29: exit code was $at_status, expected 2"
27641 if $at_failed; then
27644 echo 1 > "$at_status_file"
27654 $at_times_p && times >"$at_times_file"
27655 ) 5>&1 2>&1 | eval $at_tee_pipe
27656 at_status=`cat "$at_status_file"`
27659 69 ) # 69. shortupd.at:29: updating short archives
27660 at_setup_line='shortupd.at:29'
27661 at_desc="updating short archives"
27662 $at_quiet $ECHO_N " 69: updating short archives $ECHO_C"
27664 test -f $XFAILFILE && at_xfail=yes
27665 echo "# -*- compilation -*-" >> "$at_group_log"
27667 echo "69. shortupd.at:29: testing ..."
27675 echo "$at_srcdir/shortupd.at:32:
27679 export TEST_TAR_FORMAT
27680 TAR_OPTIONS=\"-H v7\"
27687 echo shortupd.at:32 >"$at_check_line_file"
27690 if test -n "$at_traceon"; then
27691 echo 'Not enabling shell tracing (command contains an embedded newline)'
27694 if test -n "$at_trace_this"; then
27699 export TEST_TAR_FORMAT
27700 TAR_OPTIONS="-H v7"
27706 ) ) >"$at_stdout" 2>"$at_stder1"
27708 grep '^ *+' "$at_stder1" >&2
27709 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27715 export TEST_TAR_FORMAT
27716 TAR_OPTIONS="-H v7"
27722 ) ) >"$at_stdout" 2>"$at_stderr"
27727 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27728 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27730 77) echo 77 > "$at_status_file"; exit 77;;
27732 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27735 if $at_failed; then
27738 echo 1 > "$at_status_file"
27745 echo "$at_srcdir/shortupd.at:32:
27748 TEST_TAR_FORMAT=oldgnu
27749 export TEST_TAR_FORMAT
27750 TAR_OPTIONS=\"-H oldgnu\"
27757 echo shortupd.at:32 >"$at_check_line_file"
27760 if test -n "$at_traceon"; then
27761 echo 'Not enabling shell tracing (command contains an embedded newline)'
27764 if test -n "$at_trace_this"; then
27768 TEST_TAR_FORMAT=oldgnu
27769 export TEST_TAR_FORMAT
27770 TAR_OPTIONS="-H oldgnu"
27776 ) ) >"$at_stdout" 2>"$at_stder1"
27778 grep '^ *+' "$at_stder1" >&2
27779 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27784 TEST_TAR_FORMAT=oldgnu
27785 export TEST_TAR_FORMAT
27786 TAR_OPTIONS="-H oldgnu"
27792 ) ) >"$at_stdout" 2>"$at_stderr"
27797 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27798 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27800 77) echo 77 > "$at_status_file"; exit 77;;
27802 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27805 if $at_failed; then
27808 echo 1 > "$at_status_file"
27815 echo "$at_srcdir/shortupd.at:32:
27818 TEST_TAR_FORMAT=ustar
27819 export TEST_TAR_FORMAT
27820 TAR_OPTIONS=\"-H ustar\"
27827 echo shortupd.at:32 >"$at_check_line_file"
27830 if test -n "$at_traceon"; then
27831 echo 'Not enabling shell tracing (command contains an embedded newline)'
27834 if test -n "$at_trace_this"; then
27838 TEST_TAR_FORMAT=ustar
27839 export TEST_TAR_FORMAT
27840 TAR_OPTIONS="-H ustar"
27846 ) ) >"$at_stdout" 2>"$at_stder1"
27848 grep '^ *+' "$at_stder1" >&2
27849 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27854 TEST_TAR_FORMAT=ustar
27855 export TEST_TAR_FORMAT
27856 TAR_OPTIONS="-H ustar"
27862 ) ) >"$at_stdout" 2>"$at_stderr"
27867 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27868 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27870 77) echo 77 > "$at_status_file"; exit 77;;
27872 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27875 if $at_failed; then
27878 echo 1 > "$at_status_file"
27885 echo "$at_srcdir/shortupd.at:32:
27888 TEST_TAR_FORMAT=posix
27889 export TEST_TAR_FORMAT
27890 TAR_OPTIONS=\"-H posix\"
27897 echo shortupd.at:32 >"$at_check_line_file"
27900 if test -n "$at_traceon"; then
27901 echo 'Not enabling shell tracing (command contains an embedded newline)'
27904 if test -n "$at_trace_this"; then
27908 TEST_TAR_FORMAT=posix
27909 export TEST_TAR_FORMAT
27910 TAR_OPTIONS="-H posix"
27916 ) ) >"$at_stdout" 2>"$at_stder1"
27918 grep '^ *+' "$at_stder1" >&2
27919 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27924 TEST_TAR_FORMAT=posix
27925 export TEST_TAR_FORMAT
27926 TAR_OPTIONS="-H posix"
27932 ) ) >"$at_stdout" 2>"$at_stderr"
27937 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27938 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27940 77) echo 77 > "$at_status_file"; exit 77;;
27942 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27945 if $at_failed; then
27948 echo 1 > "$at_status_file"
27955 echo "$at_srcdir/shortupd.at:32:
27958 TEST_TAR_FORMAT=gnu
27959 export TEST_TAR_FORMAT
27960 TAR_OPTIONS=\"-H gnu\"
27967 echo shortupd.at:32 >"$at_check_line_file"
27970 if test -n "$at_traceon"; then
27971 echo 'Not enabling shell tracing (command contains an embedded newline)'
27974 if test -n "$at_trace_this"; then
27978 TEST_TAR_FORMAT=gnu
27979 export TEST_TAR_FORMAT
27980 TAR_OPTIONS="-H gnu"
27986 ) ) >"$at_stdout" 2>"$at_stder1"
27988 grep '^ *+' "$at_stder1" >&2
27989 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27994 TEST_TAR_FORMAT=gnu
27995 export TEST_TAR_FORMAT
27996 TAR_OPTIONS="-H gnu"
28002 ) ) >"$at_stdout" 2>"$at_stderr"
28007 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
28008 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
28010 77) echo 77 > "$at_status_file"; exit 77;;
28012 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
28015 if $at_failed; then
28018 echo 1 > "$at_status_file"
28028 $at_times_p && times >"$at_times_file"
28029 ) 5>&1 2>&1 | eval $at_tee_pipe
28030 at_status=`cat "$at_status_file"`
28033 70 ) # 70. truncate.at:29: truncate
28034 at_setup_line='truncate.at:29'
28036 $at_quiet $ECHO_N " 70: truncate $ECHO_C"
28038 test -f $XFAILFILE && at_xfail=yes
28039 echo "# -*- compilation -*-" >> "$at_group_log"
28041 echo "70. truncate.at:29: testing ..."
28049 echo "$at_srcdir/truncate.at:32:
28053 export TEST_TAR_FORMAT
28054 TAR_OPTIONS=\"-H v7\"
28058 genfile --file foo --length 50000k
28060 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28061 echo Exit status: \$?
28064 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28066 echo truncate.at:32 >"$at_check_line_file"
28069 if test -n "$at_traceon"; then
28070 echo 'Not enabling shell tracing (command contains an embedded newline)'
28073 if test -n "$at_trace_this"; then
28078 export TEST_TAR_FORMAT
28079 TAR_OPTIONS="-H v7"
28083 genfile --file foo --length 50000k
28085 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28086 echo Exit status: $?
28089 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28090 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
28092 grep '^ *+' "$at_stder1" >&2
28093 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28099 export TEST_TAR_FORMAT
28100 TAR_OPTIONS="-H v7"
28104 genfile --file foo --length 50000k
28106 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28107 echo Exit status: $?
28110 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28111 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
28116 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
28117 " | $at_diff - "$at_stderr" || at_failed=:
28118 echo >>"$at_stdout"; echo "foo
28123 foo: Mod time differs
28125 " | $at_diff - "$at_stdout" || at_failed=:
28127 77) echo 77 > "$at_status_file"; exit 77;;
28129 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
28132 if $at_failed; then
28135 echo 1 > "$at_status_file"
28142 echo "$at_srcdir/truncate.at:32:
28145 TEST_TAR_FORMAT=oldgnu
28146 export TEST_TAR_FORMAT
28147 TAR_OPTIONS=\"-H oldgnu\"
28151 genfile --file foo --length 50000k
28153 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28154 echo Exit status: \$?
28157 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28159 echo truncate.at:32 >"$at_check_line_file"
28162 if test -n "$at_traceon"; then
28163 echo 'Not enabling shell tracing (command contains an embedded newline)'
28166 if test -n "$at_trace_this"; then
28170 TEST_TAR_FORMAT=oldgnu
28171 export TEST_TAR_FORMAT
28172 TAR_OPTIONS="-H oldgnu"
28176 genfile --file foo --length 50000k
28178 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28179 echo Exit status: $?
28182 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28183 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
28185 grep '^ *+' "$at_stder1" >&2
28186 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28191 TEST_TAR_FORMAT=oldgnu
28192 export TEST_TAR_FORMAT
28193 TAR_OPTIONS="-H oldgnu"
28197 genfile --file foo --length 50000k
28199 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28200 echo Exit status: $?
28203 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28204 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
28209 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
28210 " | $at_diff - "$at_stderr" || at_failed=:
28211 echo >>"$at_stdout"; echo "foo
28216 foo: Mod time differs
28218 " | $at_diff - "$at_stdout" || at_failed=:
28220 77) echo 77 > "$at_status_file"; exit 77;;
28222 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
28225 if $at_failed; then
28228 echo 1 > "$at_status_file"
28235 echo "$at_srcdir/truncate.at:32:
28238 TEST_TAR_FORMAT=ustar
28239 export TEST_TAR_FORMAT
28240 TAR_OPTIONS=\"-H ustar\"
28244 genfile --file foo --length 50000k
28246 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28247 echo Exit status: \$?
28250 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28252 echo truncate.at:32 >"$at_check_line_file"
28255 if test -n "$at_traceon"; then
28256 echo 'Not enabling shell tracing (command contains an embedded newline)'
28259 if test -n "$at_trace_this"; then
28263 TEST_TAR_FORMAT=ustar
28264 export TEST_TAR_FORMAT
28265 TAR_OPTIONS="-H ustar"
28269 genfile --file foo --length 50000k
28271 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28272 echo Exit status: $?
28275 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28276 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
28278 grep '^ *+' "$at_stder1" >&2
28279 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28284 TEST_TAR_FORMAT=ustar
28285 export TEST_TAR_FORMAT
28286 TAR_OPTIONS="-H ustar"
28290 genfile --file foo --length 50000k
28292 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28293 echo Exit status: $?
28296 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28297 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
28302 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
28303 " | $at_diff - "$at_stderr" || at_failed=:
28304 echo >>"$at_stdout"; echo "foo
28309 foo: Mod time differs
28311 " | $at_diff - "$at_stdout" || at_failed=:
28313 77) echo 77 > "$at_status_file"; exit 77;;
28315 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
28318 if $at_failed; then
28321 echo 1 > "$at_status_file"
28328 echo "$at_srcdir/truncate.at:32:
28331 TEST_TAR_FORMAT=posix
28332 export TEST_TAR_FORMAT
28333 TAR_OPTIONS=\"-H posix\"
28337 genfile --file foo --length 50000k
28339 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28340 echo Exit status: \$?
28343 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28345 echo truncate.at:32 >"$at_check_line_file"
28348 if test -n "$at_traceon"; then
28349 echo 'Not enabling shell tracing (command contains an embedded newline)'
28352 if test -n "$at_trace_this"; then
28356 TEST_TAR_FORMAT=posix
28357 export TEST_TAR_FORMAT
28358 TAR_OPTIONS="-H posix"
28362 genfile --file foo --length 50000k
28364 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28365 echo Exit status: $?
28368 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28369 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
28371 grep '^ *+' "$at_stder1" >&2
28372 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28377 TEST_TAR_FORMAT=posix
28378 export TEST_TAR_FORMAT
28379 TAR_OPTIONS="-H posix"
28383 genfile --file foo --length 50000k
28385 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28386 echo Exit status: $?
28389 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28390 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
28395 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
28396 " | $at_diff - "$at_stderr" || at_failed=:
28397 echo >>"$at_stdout"; echo "foo
28402 foo: Mod time differs
28404 " | $at_diff - "$at_stdout" || at_failed=:
28406 77) echo 77 > "$at_status_file"; exit 77;;
28408 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
28411 if $at_failed; then
28414 echo 1 > "$at_status_file"
28421 echo "$at_srcdir/truncate.at:32:
28424 TEST_TAR_FORMAT=gnu
28425 export TEST_TAR_FORMAT
28426 TAR_OPTIONS=\"-H gnu\"
28430 genfile --file foo --length 50000k
28432 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28433 echo Exit status: \$?
28436 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28438 echo truncate.at:32 >"$at_check_line_file"
28441 if test -n "$at_traceon"; then
28442 echo 'Not enabling shell tracing (command contains an embedded newline)'
28445 if test -n "$at_trace_this"; then
28449 TEST_TAR_FORMAT=gnu
28450 export TEST_TAR_FORMAT
28451 TAR_OPTIONS="-H gnu"
28455 genfile --file foo --length 50000k
28457 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28458 echo Exit status: $?
28461 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28462 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
28464 grep '^ *+' "$at_stder1" >&2
28465 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28470 TEST_TAR_FORMAT=gnu
28471 export TEST_TAR_FORMAT
28472 TAR_OPTIONS="-H gnu"
28476 genfile --file foo --length 50000k
28478 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
28479 echo Exit status: $?
28482 genfile --file foo --seek 49995k --length 5k --pattern=zeros
28483 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
28488 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
28489 " | $at_diff - "$at_stderr" || at_failed=:
28490 echo >>"$at_stdout"; echo "foo
28495 foo: Mod time differs
28497 " | $at_diff - "$at_stdout" || at_failed=:
28499 77) echo 77 > "$at_status_file"; exit 77;;
28501 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
28504 if $at_failed; then
28507 echo 1 > "$at_status_file"
28517 $at_times_p && times >"$at_times_file"
28518 ) 5>&1 2>&1 | eval $at_tee_pipe
28519 at_status=`cat "$at_status_file"`
28522 71 ) # 71. grow.at:24: grow
28523 at_setup_line='grow.at:24'
28525 $at_quiet $ECHO_N " 71: grow $ECHO_C"
28527 test -f $XFAILFILE && at_xfail=yes
28528 echo "# -*- compilation -*-" >> "$at_group_log"
28530 echo "71. grow.at:24: testing ..."
28538 echo "$at_srcdir/grow.at:27:
28542 export TEST_TAR_FORMAT
28543 TAR_OPTIONS=\"-H v7\"
28547 genfile --file foo --length 50000k
28549 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28552 echo grow.at:27 >"$at_check_line_file"
28555 if test -n "$at_traceon"; then
28556 echo 'Not enabling shell tracing (command contains an embedded newline)'
28559 if test -n "$at_trace_this"; then
28564 export TEST_TAR_FORMAT
28565 TAR_OPTIONS="-H v7"
28569 genfile --file foo --length 50000k
28571 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28573 ) ) >"$at_stdout" 2>"$at_stder1"
28575 grep '^ *+' "$at_stder1" >&2
28576 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28582 export TEST_TAR_FORMAT
28583 TAR_OPTIONS="-H v7"
28587 genfile --file foo --length 50000k
28589 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28591 ) ) >"$at_stdout" 2>"$at_stderr"
28596 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28597 " | $at_diff - "$at_stderr" || at_failed=:
28598 echo >>"$at_stdout"; echo "foo
28600 " | $at_diff - "$at_stdout" || at_failed=:
28602 77) echo 77 > "$at_status_file"; exit 77;;
28604 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28607 if $at_failed; then
28610 echo 1 > "$at_status_file"
28617 echo "$at_srcdir/grow.at:27:
28620 TEST_TAR_FORMAT=oldgnu
28621 export TEST_TAR_FORMAT
28622 TAR_OPTIONS=\"-H oldgnu\"
28626 genfile --file foo --length 50000k
28628 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28631 echo grow.at:27 >"$at_check_line_file"
28634 if test -n "$at_traceon"; then
28635 echo 'Not enabling shell tracing (command contains an embedded newline)'
28638 if test -n "$at_trace_this"; then
28642 TEST_TAR_FORMAT=oldgnu
28643 export TEST_TAR_FORMAT
28644 TAR_OPTIONS="-H oldgnu"
28648 genfile --file foo --length 50000k
28650 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28652 ) ) >"$at_stdout" 2>"$at_stder1"
28654 grep '^ *+' "$at_stder1" >&2
28655 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28660 TEST_TAR_FORMAT=oldgnu
28661 export TEST_TAR_FORMAT
28662 TAR_OPTIONS="-H oldgnu"
28666 genfile --file foo --length 50000k
28668 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28670 ) ) >"$at_stdout" 2>"$at_stderr"
28675 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28676 " | $at_diff - "$at_stderr" || at_failed=:
28677 echo >>"$at_stdout"; echo "foo
28679 " | $at_diff - "$at_stdout" || at_failed=:
28681 77) echo 77 > "$at_status_file"; exit 77;;
28683 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28686 if $at_failed; then
28689 echo 1 > "$at_status_file"
28696 echo "$at_srcdir/grow.at:27:
28699 TEST_TAR_FORMAT=ustar
28700 export TEST_TAR_FORMAT
28701 TAR_OPTIONS=\"-H ustar\"
28705 genfile --file foo --length 50000k
28707 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28710 echo grow.at:27 >"$at_check_line_file"
28713 if test -n "$at_traceon"; then
28714 echo 'Not enabling shell tracing (command contains an embedded newline)'
28717 if test -n "$at_trace_this"; then
28721 TEST_TAR_FORMAT=ustar
28722 export TEST_TAR_FORMAT
28723 TAR_OPTIONS="-H ustar"
28727 genfile --file foo --length 50000k
28729 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28731 ) ) >"$at_stdout" 2>"$at_stder1"
28733 grep '^ *+' "$at_stder1" >&2
28734 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28739 TEST_TAR_FORMAT=ustar
28740 export TEST_TAR_FORMAT
28741 TAR_OPTIONS="-H ustar"
28745 genfile --file foo --length 50000k
28747 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28749 ) ) >"$at_stdout" 2>"$at_stderr"
28754 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28755 " | $at_diff - "$at_stderr" || at_failed=:
28756 echo >>"$at_stdout"; echo "foo
28758 " | $at_diff - "$at_stdout" || at_failed=:
28760 77) echo 77 > "$at_status_file"; exit 77;;
28762 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28765 if $at_failed; then
28768 echo 1 > "$at_status_file"
28775 echo "$at_srcdir/grow.at:27:
28778 TEST_TAR_FORMAT=posix
28779 export TEST_TAR_FORMAT
28780 TAR_OPTIONS=\"-H posix\"
28784 genfile --file foo --length 50000k
28786 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28789 echo grow.at:27 >"$at_check_line_file"
28792 if test -n "$at_traceon"; then
28793 echo 'Not enabling shell tracing (command contains an embedded newline)'
28796 if test -n "$at_trace_this"; then
28800 TEST_TAR_FORMAT=posix
28801 export TEST_TAR_FORMAT
28802 TAR_OPTIONS="-H posix"
28806 genfile --file foo --length 50000k
28808 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28810 ) ) >"$at_stdout" 2>"$at_stder1"
28812 grep '^ *+' "$at_stder1" >&2
28813 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28818 TEST_TAR_FORMAT=posix
28819 export TEST_TAR_FORMAT
28820 TAR_OPTIONS="-H posix"
28824 genfile --file foo --length 50000k
28826 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28828 ) ) >"$at_stdout" 2>"$at_stderr"
28833 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28834 " | $at_diff - "$at_stderr" || at_failed=:
28835 echo >>"$at_stdout"; echo "foo
28837 " | $at_diff - "$at_stdout" || at_failed=:
28839 77) echo 77 > "$at_status_file"; exit 77;;
28841 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28844 if $at_failed; then
28847 echo 1 > "$at_status_file"
28854 echo "$at_srcdir/grow.at:27:
28857 TEST_TAR_FORMAT=gnu
28858 export TEST_TAR_FORMAT
28859 TAR_OPTIONS=\"-H gnu\"
28863 genfile --file foo --length 50000k
28865 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28868 echo grow.at:27 >"$at_check_line_file"
28871 if test -n "$at_traceon"; then
28872 echo 'Not enabling shell tracing (command contains an embedded newline)'
28875 if test -n "$at_trace_this"; then
28879 TEST_TAR_FORMAT=gnu
28880 export TEST_TAR_FORMAT
28881 TAR_OPTIONS="-H gnu"
28885 genfile --file foo --length 50000k
28887 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28889 ) ) >"$at_stdout" 2>"$at_stder1"
28891 grep '^ *+' "$at_stder1" >&2
28892 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28897 TEST_TAR_FORMAT=gnu
28898 export TEST_TAR_FORMAT
28899 TAR_OPTIONS="-H gnu"
28903 genfile --file foo --length 50000k
28905 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28907 ) ) >"$at_stdout" 2>"$at_stderr"
28912 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28913 " | $at_diff - "$at_stderr" || at_failed=:
28914 echo >>"$at_stdout"; echo "foo
28916 " | $at_diff - "$at_stdout" || at_failed=:
28918 77) echo 77 > "$at_status_file"; exit 77;;
28920 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28923 if $at_failed; then
28926 echo 1 > "$at_status_file"
28936 $at_times_p && times >"$at_times_file"
28937 ) 5>&1 2>&1 | eval $at_tee_pipe
28938 at_status=`cat "$at_status_file"`
28941 72 ) # 72. gtarfail.at:21: gtarfail
28942 at_setup_line='gtarfail.at:21'
28944 $at_quiet $ECHO_N " 72: gtarfail $ECHO_C"
28946 echo "# -*- compilation -*-" >> "$at_group_log"
28948 echo "72. gtarfail.at:21: testing ..."
28956 echo "$at_srcdir/gtarfail.at:26:
28958 test -z "$STAR_TESTSCRIPTS" && exit 77
28959 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28962 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
28964 echo gtarfail.at:26 >"$at_check_line_file"
28967 if test -n "$at_traceon"; then
28968 echo 'Not enabling shell tracing (command contains an embedded newline)'
28971 if test -n "$at_trace_this"; then
28974 test -z "$STAR_TESTSCRIPTS" && exit 77
28975 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28978 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
28979 ) >"$at_stdout" 2>"$at_stder1"
28981 grep '^ *+' "$at_stder1" >&2
28982 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28986 test -z "$STAR_TESTSCRIPTS" && exit 77
28987 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28990 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
28991 ) >"$at_stdout" 2>"$at_stderr"
28996 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
28997 echo >>"$at_stdout"; echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
28998 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
28999 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
29000 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
29001 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
29002 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
29003 " | $at_diff - "$at_stdout" || at_failed=:
29005 77) echo 77 > "$at_status_file"; exit 77;;
29007 *) echo "$at_srcdir/gtarfail.at:26: exit code was $at_status, expected 0"
29010 if $at_failed; then
29013 echo 1 > "$at_status_file"
29021 $at_times_p && times >"$at_times_file"
29022 ) 5>&1 2>&1 | eval $at_tee_pipe
29023 at_status=`cat "$at_status_file"`
29026 73 ) # 73. gtarfail2.at:21: gtarfail2
29027 at_setup_line='gtarfail2.at:21'
29028 at_desc="gtarfail2"
29029 $at_quiet $ECHO_N " 73: gtarfail2 $ECHO_C"
29031 echo "# -*- compilation -*-" >> "$at_group_log"
29033 echo "73. gtarfail2.at:21: testing ..."
29041 echo "$at_srcdir/gtarfail2.at:26:
29043 test -z "$STAR_TESTSCRIPTS" && exit 77
29044 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29046 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
29048 echo gtarfail2.at:26 >"$at_check_line_file"
29051 if test -n "$at_traceon"; then
29052 echo 'Not enabling shell tracing (command contains an embedded newline)'
29055 if test -n "$at_trace_this"; then
29058 test -z "$STAR_TESTSCRIPTS" && exit 77
29059 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29061 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
29062 ) >"$at_stdout" 2>"$at_stder1"
29064 grep '^ *+' "$at_stder1" >&2
29065 grep -v '^ *+' "$at_stder1" >"$at_stderr"
29069 test -z "$STAR_TESTSCRIPTS" && exit 77
29070 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29072 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
29073 ) >"$at_stdout" 2>"$at_stderr"
29078 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
29079 echo >>"$at_stdout"; echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
29080 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
29081 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
29082 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
29083 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
29084 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
29085 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
29086 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
29087 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
29088 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
29089 " | $at_diff - "$at_stdout" || at_failed=:
29091 77) echo 77 > "$at_status_file"; exit 77;;
29093 *) echo "$at_srcdir/gtarfail2.at:26: exit code was $at_status, expected 0"
29096 if $at_failed; then
29099 echo 1 > "$at_status_file"
29107 $at_times_p && times >"$at_times_file"
29108 ) 5>&1 2>&1 | eval $at_tee_pipe
29109 at_status=`cat "$at_status_file"`
29112 74 ) # 74. multi-fail.at:21: multi-fail
29113 at_setup_line='multi-fail.at:21'
29114 at_desc="multi-fail"
29115 $at_quiet $ECHO_N " 74: multi-fail $ECHO_C"
29117 echo "# -*- compilation -*-" >> "$at_group_log"
29119 echo "74. multi-fail.at:21: testing ..."
29127 echo "$at_srcdir/multi-fail.at:26:
29129 test -z "$STAR_TESTSCRIPTS" && exit 77
29130 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29133 test -z "$STAR_TESTSCRIPTS" && exit 77
29134 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29137 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
29138 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
29140 echo multi-fail.at:26 >"$at_check_line_file"
29143 if test -n "$at_traceon"; then
29144 echo 'Not enabling shell tracing (command contains an embedded newline)'
29147 if test -n "$at_trace_this"; then
29150 test -z "$STAR_TESTSCRIPTS" && exit 77
29151 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29154 test -z "$STAR_TESTSCRIPTS" && exit 77
29155 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29158 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
29159 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
29160 ) >"$at_stdout" 2>"$at_stder1"
29162 grep '^ *+' "$at_stder1" >&2
29163 grep -v '^ *+' "$at_stder1" >"$at_stderr"
29167 test -z "$STAR_TESTSCRIPTS" && exit 77
29168 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29171 test -z "$STAR_TESTSCRIPTS" && exit 77
29172 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29175 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
29176 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
29177 ) >"$at_stdout" 2>"$at_stderr"
29182 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
29183 echo >>"$at_stdout"; echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
29184 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
29185 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
29186 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
29187 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
29188 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
29189 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
29190 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
29191 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
29192 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
29193 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
29194 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
29195 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
29196 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
29197 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
29198 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
29199 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
29200 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
29201 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
29202 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
29203 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
29204 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
29205 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
29206 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
29207 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
29208 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
29209 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
29210 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
29211 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
29212 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
29213 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
29214 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
29215 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
29216 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
29217 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
29218 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
29219 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
29220 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
29221 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
29222 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
29223 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
29224 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
29225 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
29226 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
29227 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
29228 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
29229 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
29230 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
29231 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
29232 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
29233 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
29234 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
29235 " | $at_diff - "$at_stdout" || at_failed=:
29237 77) echo 77 > "$at_status_file"; exit 77;;
29239 *) echo "$at_srcdir/multi-fail.at:26: exit code was $at_status, expected 0"
29242 if $at_failed; then
29245 echo 1 > "$at_status_file"
29253 $at_times_p && times >"$at_times_file"
29254 ) 5>&1 2>&1 | eval $at_tee_pipe
29255 at_status=`cat "$at_status_file"`
29258 75 ) # 75. ustar-big-2g.at:21: ustar-big-2g
29259 at_setup_line='ustar-big-2g.at:21'
29260 at_desc="ustar-big-2g"
29261 $at_quiet $ECHO_N " 75: ustar-big-2g $ECHO_C"
29263 echo "# -*- compilation -*-" >> "$at_group_log"
29265 echo "75. ustar-big-2g.at:21: testing ..."
29273 echo "$at_srcdir/ustar-big-2g.at:26:
29275 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29278 test -z "$STAR_TESTSCRIPTS" && exit 77
29279 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29282 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
29284 echo ustar-big-2g.at:26 >"$at_check_line_file"
29287 if test -n "$at_traceon"; then
29288 echo 'Not enabling shell tracing (command contains an embedded newline)'
29291 if test -n "$at_trace_this"; then
29294 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29297 test -z "$STAR_TESTSCRIPTS" && exit 77
29298 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29301 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
29302 ) >"$at_stdout" 2>"$at_stder1"
29304 grep '^ *+' "$at_stder1" >&2
29305 grep -v '^ *+' "$at_stder1" >"$at_stderr"
29309 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29312 test -z "$STAR_TESTSCRIPTS" && exit 77
29313 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29316 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
29317 ) >"$at_stdout" 2>"$at_stderr"
29322 echo stderr:; tee stderr <"$at_stderr"
29323 echo >>"$at_stdout"; echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
29324 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
29325 " | $at_diff - "$at_stdout" || at_failed=:
29327 77) echo 77 > "$at_status_file"; exit 77;;
29329 *) echo "$at_srcdir/ustar-big-2g.at:26: exit code was $at_status, expected 0"
29332 if $at_failed; then
29335 echo 1 > "$at_status_file"
29343 cat >stderr.re <<'_ATEOF'
29344 tar: Record size = .*
29347 awk '{print NR " " $0}' stderr > $$.1
29348 awk '{print NR " " $0}' stderr.re | join - $$.1 |
29349 while read NUM RE LINE
29351 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29356 $at_times_p && times >"$at_times_file"
29357 ) 5>&1 2>&1 | eval $at_tee_pipe
29358 at_status=`cat "$at_status_file"`
29361 76 ) # 76. ustar-big-8g.at:21: ustar-big-8g
29362 at_setup_line='ustar-big-8g.at:21'
29363 at_desc="ustar-big-8g"
29364 $at_quiet $ECHO_N " 76: ustar-big-8g $ECHO_C"
29366 echo "# -*- compilation -*-" >> "$at_group_log"
29368 echo "76. ustar-big-8g.at:21: testing ..."
29376 echo "$at_srcdir/ustar-big-8g.at:26:
29378 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29381 test -z "$STAR_TESTSCRIPTS" && exit 77
29382 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29385 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
29387 echo ustar-big-8g.at:26 >"$at_check_line_file"
29390 if test -n "$at_traceon"; then
29391 echo 'Not enabling shell tracing (command contains an embedded newline)'
29394 if test -n "$at_trace_this"; then
29397 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29400 test -z "$STAR_TESTSCRIPTS" && exit 77
29401 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29404 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
29405 ) >"$at_stdout" 2>"$at_stder1"
29407 grep '^ *+' "$at_stder1" >&2
29408 grep -v '^ *+' "$at_stder1" >"$at_stderr"
29412 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29415 test -z "$STAR_TESTSCRIPTS" && exit 77
29416 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29419 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
29420 ) >"$at_stdout" 2>"$at_stderr"
29425 echo stderr:; tee stderr <"$at_stderr"
29426 echo >>"$at_stdout"; echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
29427 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
29428 " | $at_diff - "$at_stdout" || at_failed=:
29430 77) echo 77 > "$at_status_file"; exit 77;;
29432 *) echo "$at_srcdir/ustar-big-8g.at:26: exit code was $at_status, expected 0"
29435 if $at_failed; then
29438 echo 1 > "$at_status_file"
29446 cat >stderr.re <<'_ATEOF'
29447 tar: Record size = .*
29450 awk '{print NR " " $0}' stderr > $$.1
29451 awk '{print NR " " $0}' stderr.re | join - $$.1 |
29452 while read NUM RE LINE
29454 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29459 $at_times_p && times >"$at_times_file"
29460 ) 5>&1 2>&1 | eval $at_tee_pipe
29461 at_status=`cat "$at_status_file"`
29464 77 ) # 77. pax-big-10g.at:21: pax-big-10g
29465 at_setup_line='pax-big-10g.at:21'
29466 at_desc="pax-big-10g"
29467 $at_quiet $ECHO_N " 77: pax-big-10g $ECHO_C"
29469 echo "# -*- compilation -*-" >> "$at_group_log"
29471 echo "77. pax-big-10g.at:21: testing ..."
29479 echo "$at_srcdir/pax-big-10g.at:26:
29481 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29484 test -z "$STAR_TESTSCRIPTS" && exit 77
29485 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29488 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
29490 echo pax-big-10g.at:26 >"$at_check_line_file"
29493 if test -n "$at_traceon"; then
29494 echo 'Not enabling shell tracing (command contains an embedded newline)'
29497 if test -n "$at_trace_this"; then
29500 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29503 test -z "$STAR_TESTSCRIPTS" && exit 77
29504 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29507 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
29508 ) >"$at_stdout" 2>"$at_stder1"
29510 grep '^ *+' "$at_stder1" >&2
29511 grep -v '^ *+' "$at_stder1" >"$at_stderr"
29515 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
29518 test -z "$STAR_TESTSCRIPTS" && exit 77
29519 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
29522 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
29523 ) >"$at_stdout" 2>"$at_stderr"
29528 echo stderr:; tee stderr <"$at_stderr"
29529 echo >>"$at_stdout"; echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
29530 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
29531 " | $at_diff - "$at_stdout" || at_failed=:
29533 77) echo 77 > "$at_status_file"; exit 77;;
29535 *) echo "$at_srcdir/pax-big-10g.at:26: exit code was $at_status, expected 0"
29538 if $at_failed; then
29541 echo 1 > "$at_status_file"
29549 cat >stderr.re <<'_ATEOF'
29550 tar: Record size = .*
29553 awk '{print NR " " $0}' stderr > $$.1
29554 awk '{print NR " " $0}' stderr.re | join - $$.1 |
29555 while read NUM RE LINE
29557 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
29562 $at_times_p && times >"$at_times_file"
29563 ) 5>&1 2>&1 | eval $at_tee_pipe
29564 at_status=`cat "$at_status_file"`
29569 echo "$as_me: no such test group: $at_group" >&2
29574 # Be sure to come back to the suite directory, in particular
29575 # since below we might `rm' the group directory we are in currently.
29581 if test ! -f "$at_check_line_file"; then
29582 sed "s/^ */$as_me: warning: /" <<_ATEOF
29583 A failure happened in a test group before any test could be
29584 run. This means that test suite is improperly designed. Please
29585 report this failure to <bug-tar@gnu.org>.
29587 echo "$at_setup_line" >"$at_check_line_file"
29589 at_group_count=`expr 1 + $at_group_count`
29590 $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C"
29591 echo $ECHO_N "$at_group. $at_setup_line: $ECHO_C" >> "$at_group_log"
29592 case $at_xfail:$at_status in
29594 at_msg="UNEXPECTED PASS"
29595 at_xpass_list="$at_xpass_list $at_group"
29596 at_errexit=$at_errexit_p
29600 at_pass_list="$at_pass_list $at_group"
29604 at_msg='skipped ('`cat "$at_check_line_file"`')'
29605 at_skip_list="$at_skip_list $at_group"
29609 at_msg='expected failure ('`cat "$at_check_line_file"`')'
29610 at_xfail_list="$at_xfail_list $at_group"
29614 at_msg='FAILED ('`cat "$at_check_line_file"`')'
29615 at_fail_list="$at_fail_list $at_group"
29616 at_errexit=$at_errexit_p
29619 # Make sure there is a separator even with long titles.
29621 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
29624 # $at_times_file is only available if the group succeeded.
29625 # We're not including the group log, so the success message
29626 # is written in the global log separately. But we also
29627 # write to the group log in case they're using -d.
29628 if test -f "$at_times_file"; then
29629 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
29630 rm -f "$at_times_file"
29632 echo "$at_log_msg" >> "$at_group_log"
29633 echo "$at_log_msg" >&5
29635 # Cleanup the group directory, unless the user wants the files.
29636 if $at_debug_p ; then
29639 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
29640 echo "cd '$at_dir'"
29641 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
29642 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
29644 } >$at_group_dir/run
29645 chmod +x $at_group_dir/run
29647 elif test -d "$at_group_dir"; then
29648 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
29649 rm -fr "$at_group_dir"
29653 # Upon failure, include the log into the testsuite's global
29654 # log. The failure message is written in the group log. It
29655 # is later included in the global log.
29656 echo "$at_log_msg" >> "$at_group_log"
29658 # Upon failure, keep the group directory for autopsy, and
29659 # create the debugging script.
29662 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
29663 echo "cd '$at_dir'"
29664 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
29665 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
29667 } >$at_group_dir/run
29668 chmod +x $at_group_dir/run
29670 $at_errexit && break
29677 # Back to the top directory.
29680 # Compute the duration of the suite.
29681 at_stop_date=`date`
29682 at_stop_time=`date +%s 2>/dev/null`
29683 echo "$as_me: ending at: $at_stop_date" >&5
29684 case $at_start_time,$at_stop_time in
29686 at_duration_s=`expr $at_stop_time - $at_start_time`
29687 at_duration_m=`expr $at_duration_s / 60`
29688 at_duration_h=`expr $at_duration_m / 60`
29689 at_duration_s=`expr $at_duration_s % 60`
29690 at_duration_m=`expr $at_duration_m % 60`
29691 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
29692 echo "$as_me: test suite duration: $at_duration" >&5
29696 # Wrap up the test suite with summary statistics.
29697 at_skip_count=`set dummy $at_skip_list; shift; echo $#`
29698 at_fail_count=`set dummy $at_fail_list; shift; echo $#`
29699 at_xpass_count=`set dummy $at_xpass_list; shift; echo $#`
29700 at_xfail_count=`set dummy $at_xfail_list; shift; echo $#`
29702 at_run_count=`expr $at_group_count - $at_skip_count`
29703 at_unexpected_count=`expr $at_xpass_count + $at_fail_count`
29704 at_total_fail_count=`expr $at_xfail_count + $at_fail_count`
29708 ## ------------- ##
29709 ## Test results. ##
29710 ## ------------- ##
29716 ## ------------- ##
29717 ## Test results. ##
29718 ## ------------- ##
29723 if test $at_run_count = 1; then
29727 at_result="$at_run_count tests"
29730 if $at_errexit_p && test $at_unexpected_count != 0; then
29731 if test $at_xpass_count = 1; then
29732 at_result="$at_result $at_were run, one passed"
29734 at_result="$at_result $at_were run, one failed"
29736 at_result="$at_result unexpectedly and inhibited subsequent tests."
29738 # Don't you just love exponential explosion of the number of cases?
29739 case $at_xpass_count:$at_fail_count:$at_xfail_count in
29741 0:0:0) at_result="$at_result $at_were successful." ;;
29742 0:0:*) at_result="$at_result behaved as expected." ;;
29744 # Some unexpected failures
29745 0:*:0) at_result="$at_result $at_were run,
29746 $at_fail_count failed unexpectedly." ;;
29748 # Some failures, both expected and unexpected
29749 0:*:1) at_result="$at_result $at_were run,
29750 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
29751 0:*:*) at_result="$at_result $at_were run,
29752 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
29754 # No unexpected failures, but some xpasses
29755 *:0:*) at_result="$at_result $at_were run,
29756 $at_xpass_count passed unexpectedly." ;;
29758 # No expected failures, but failures and xpasses
29759 *:1:0) at_result="$at_result $at_were run,
29760 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
29761 *:*:0) at_result="$at_result $at_were run,
29762 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
29765 *:*:1) at_result="$at_result $at_were run,
29766 $at_xpass_count passed unexpectedly,
29767 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
29768 *:*:*) at_result="$at_result $at_were run,
29769 $at_xpass_count passed unexpectedly,
29770 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
29773 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
29774 at_result="All $at_result"
29778 # Now put skips in the mix.
29779 case $at_skip_count in
29781 1) at_result="$at_result
29782 1 test was skipped." ;;
29783 *) at_result="$at_result
29784 $at_skip_count tests were skipped." ;;
29787 if test $at_unexpected_count = 0; then
29789 echo "$at_result" >&5
29791 echo "ERROR: $at_result" >&2
29792 echo "ERROR: $at_result" >&5
29796 ## ------------------------ ##
29797 ## Summary of the failures. ##
29798 ## ------------------------ ##
29801 # Summary of failed and skipped tests.
29802 if test $at_fail_count != 0; then
29803 echo "Failed tests:"
29804 $SHELL "$0" $at_fail_list --list
29807 if test $at_skip_count != 0; then
29808 echo "Skipped tests:"
29809 $SHELL "$0" $at_skip_list --list
29812 if test $at_xpass_count != 0; then
29813 echo "Unexpected passes:"
29814 $SHELL "$0" $at_xpass_list --list
29817 if test $at_fail_count != 0; then
29819 ## ---------------------- ##
29820 ## Detailed failed tests. ##
29821 ## ---------------------- ##
29824 for at_group in $at_fail_list
29826 at_group_normalized=$at_group
29829 case $at_group_normalized in #(
29830 $at_format*) break;;
29832 at_group_normalized=0$at_group_normalized
29835 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
29840 if test -n "$at_top_srcdir"; then
29841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29842 ## ${at_top_build_prefix}config.log ##
29844 sed 's/^/| /' ${at_top_build_prefix}config.log
29849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29850 ## $as_me.log was created. ##
29854 echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:"
29856 echo " To: <bug-tar@gnu.org>"
29857 echo " Subject: [GNU tar 1.22] $as_me:$at_fail_list${at_fail_list:+ failed${at_xpass_list:+,}}$at_xpass_list${at_xpass_list:+ passed unexpectedly}"
29859 if test $at_debug_p = false; then
29861 echo 'You may investigate any problem if you feel able to do so, in which'
29862 echo 'case the test suite provides a good starting point. Its output may'
29863 echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."