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.at;
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.21 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.21)"
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.21 test suite. ##
1038 ## ------------------------ ##
1042 ## ------------------------ ##
1043 ## GNU tar 1.21 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:92: $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.21
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 ..."
1362 echo "$at_srcdir/pipe.at:33:
1366 export TEST_TAR_FORMAT
1367 TAR_OPTIONS=\"-H v7\"
1372 test -z "`sort < /dev/null 2>&1`" || exit 77
1376 genfile --length 10240 --pattern zeros --file directory/file1
1377 genfile --length 13 --file directory/file2
1378 tar cf archive directory|sort
1380 cat archive | tar xfv - | sort
1382 cmp orig/file1 directory/file1
1384 cmp orig/file2 directory/file2)"
1385 echo pipe.at:33 >"$at_check_line_file"
1388 if test -n "$at_traceon"; then
1389 echo 'Not enabling shell tracing (command contains an embedded newline)'
1392 if test -n "$at_trace_this"; then
1397 export TEST_TAR_FORMAT
1403 test -z "`sort < /dev/null 2>&1`" || exit 77
1407 genfile --length 10240 --pattern zeros --file directory/file1
1408 genfile --length 13 --file directory/file2
1409 tar cf archive directory|sort
1411 cat archive | tar xfv - | sort
1413 cmp orig/file1 directory/file1
1415 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1417 grep '^ *+' "$at_stder1" >&2
1418 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1424 export TEST_TAR_FORMAT
1430 test -z "`sort < /dev/null 2>&1`" || exit 77
1434 genfile --length 10240 --pattern zeros --file directory/file1
1435 genfile --length 13 --file directory/file2
1436 tar cf archive directory|sort
1438 cat archive | tar xfv - | sort
1440 cmp orig/file1 directory/file1
1442 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1447 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1448 echo >>"$at_stdout"; echo "directory/
1453 " | $at_diff - "$at_stdout" || at_failed=:
1455 77) echo 77 > "$at_status_file"; exit 77;;
1457 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1463 echo 1 > "$at_status_file"
1469 echo "$at_srcdir/pipe.at:33:
1472 TEST_TAR_FORMAT=oldgnu
1473 export TEST_TAR_FORMAT
1474 TAR_OPTIONS=\"-H oldgnu\"
1479 test -z "`sort < /dev/null 2>&1`" || exit 77
1483 genfile --length 10240 --pattern zeros --file directory/file1
1484 genfile --length 13 --file directory/file2
1485 tar cf archive directory|sort
1487 cat archive | tar xfv - | sort
1489 cmp orig/file1 directory/file1
1491 cmp orig/file2 directory/file2)"
1492 echo pipe.at:33 >"$at_check_line_file"
1495 if test -n "$at_traceon"; then
1496 echo 'Not enabling shell tracing (command contains an embedded newline)'
1499 if test -n "$at_trace_this"; then
1503 TEST_TAR_FORMAT=oldgnu
1504 export TEST_TAR_FORMAT
1505 TAR_OPTIONS="-H oldgnu"
1510 test -z "`sort < /dev/null 2>&1`" || exit 77
1514 genfile --length 10240 --pattern zeros --file directory/file1
1515 genfile --length 13 --file directory/file2
1516 tar cf archive directory|sort
1518 cat archive | tar xfv - | sort
1520 cmp orig/file1 directory/file1
1522 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1524 grep '^ *+' "$at_stder1" >&2
1525 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1530 TEST_TAR_FORMAT=oldgnu
1531 export TEST_TAR_FORMAT
1532 TAR_OPTIONS="-H oldgnu"
1537 test -z "`sort < /dev/null 2>&1`" || exit 77
1541 genfile --length 10240 --pattern zeros --file directory/file1
1542 genfile --length 13 --file directory/file2
1543 tar cf archive directory|sort
1545 cat archive | tar xfv - | sort
1547 cmp orig/file1 directory/file1
1549 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1554 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1555 echo >>"$at_stdout"; echo "directory/
1560 " | $at_diff - "$at_stdout" || at_failed=:
1562 77) echo 77 > "$at_status_file"; exit 77;;
1564 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1570 echo 1 > "$at_status_file"
1576 echo "$at_srcdir/pipe.at:33:
1579 TEST_TAR_FORMAT=ustar
1580 export TEST_TAR_FORMAT
1581 TAR_OPTIONS=\"-H ustar\"
1586 test -z "`sort < /dev/null 2>&1`" || exit 77
1590 genfile --length 10240 --pattern zeros --file directory/file1
1591 genfile --length 13 --file directory/file2
1592 tar cf archive directory|sort
1594 cat archive | tar xfv - | sort
1596 cmp orig/file1 directory/file1
1598 cmp orig/file2 directory/file2)"
1599 echo pipe.at:33 >"$at_check_line_file"
1602 if test -n "$at_traceon"; then
1603 echo 'Not enabling shell tracing (command contains an embedded newline)'
1606 if test -n "$at_trace_this"; then
1610 TEST_TAR_FORMAT=ustar
1611 export TEST_TAR_FORMAT
1612 TAR_OPTIONS="-H ustar"
1617 test -z "`sort < /dev/null 2>&1`" || exit 77
1621 genfile --length 10240 --pattern zeros --file directory/file1
1622 genfile --length 13 --file directory/file2
1623 tar cf archive directory|sort
1625 cat archive | tar xfv - | sort
1627 cmp orig/file1 directory/file1
1629 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1631 grep '^ *+' "$at_stder1" >&2
1632 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1637 TEST_TAR_FORMAT=ustar
1638 export TEST_TAR_FORMAT
1639 TAR_OPTIONS="-H ustar"
1644 test -z "`sort < /dev/null 2>&1`" || exit 77
1648 genfile --length 10240 --pattern zeros --file directory/file1
1649 genfile --length 13 --file directory/file2
1650 tar cf archive directory|sort
1652 cat archive | tar xfv - | sort
1654 cmp orig/file1 directory/file1
1656 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1661 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1662 echo >>"$at_stdout"; echo "directory/
1667 " | $at_diff - "$at_stdout" || at_failed=:
1669 77) echo 77 > "$at_status_file"; exit 77;;
1671 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1677 echo 1 > "$at_status_file"
1683 echo "$at_srcdir/pipe.at:33:
1686 TEST_TAR_FORMAT=posix
1687 export TEST_TAR_FORMAT
1688 TAR_OPTIONS=\"-H posix\"
1693 test -z "`sort < /dev/null 2>&1`" || exit 77
1697 genfile --length 10240 --pattern zeros --file directory/file1
1698 genfile --length 13 --file directory/file2
1699 tar cf archive directory|sort
1701 cat archive | tar xfv - | sort
1703 cmp orig/file1 directory/file1
1705 cmp orig/file2 directory/file2)"
1706 echo pipe.at:33 >"$at_check_line_file"
1709 if test -n "$at_traceon"; then
1710 echo 'Not enabling shell tracing (command contains an embedded newline)'
1713 if test -n "$at_trace_this"; then
1717 TEST_TAR_FORMAT=posix
1718 export TEST_TAR_FORMAT
1719 TAR_OPTIONS="-H posix"
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_stder1"
1738 grep '^ *+' "$at_stder1" >&2
1739 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1744 TEST_TAR_FORMAT=posix
1745 export TEST_TAR_FORMAT
1746 TAR_OPTIONS="-H posix"
1751 test -z "`sort < /dev/null 2>&1`" || exit 77
1755 genfile --length 10240 --pattern zeros --file directory/file1
1756 genfile --length 13 --file directory/file2
1757 tar cf archive directory|sort
1759 cat archive | tar xfv - | sort
1761 cmp orig/file1 directory/file1
1763 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1768 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1769 echo >>"$at_stdout"; echo "directory/
1774 " | $at_diff - "$at_stdout" || at_failed=:
1776 77) echo 77 > "$at_status_file"; exit 77;;
1778 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1784 echo 1 > "$at_status_file"
1790 echo "$at_srcdir/pipe.at:33:
1794 export TEST_TAR_FORMAT
1795 TAR_OPTIONS=\"-H gnu\"
1800 test -z "`sort < /dev/null 2>&1`" || exit 77
1804 genfile --length 10240 --pattern zeros --file directory/file1
1805 genfile --length 13 --file directory/file2
1806 tar cf archive directory|sort
1808 cat archive | tar xfv - | sort
1810 cmp orig/file1 directory/file1
1812 cmp orig/file2 directory/file2)"
1813 echo pipe.at:33 >"$at_check_line_file"
1816 if test -n "$at_traceon"; then
1817 echo 'Not enabling shell tracing (command contains an embedded newline)'
1820 if test -n "$at_trace_this"; then
1825 export TEST_TAR_FORMAT
1826 TAR_OPTIONS="-H gnu"
1831 test -z "`sort < /dev/null 2>&1`" || exit 77
1835 genfile --length 10240 --pattern zeros --file directory/file1
1836 genfile --length 13 --file directory/file2
1837 tar cf archive directory|sort
1839 cat archive | tar xfv - | sort
1841 cmp orig/file1 directory/file1
1843 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1845 grep '^ *+' "$at_stder1" >&2
1846 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1852 export TEST_TAR_FORMAT
1853 TAR_OPTIONS="-H gnu"
1858 test -z "`sort < /dev/null 2>&1`" || exit 77
1862 genfile --length 10240 --pattern zeros --file directory/file1
1863 genfile --length 13 --file directory/file2
1864 tar cf archive directory|sort
1866 cat archive | tar xfv - | sort
1868 cmp orig/file1 directory/file1
1870 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1875 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1876 echo >>"$at_stdout"; echo "directory/
1881 " | $at_diff - "$at_stdout" || at_failed=:
1883 77) echo 77 > "$at_status_file"; exit 77;;
1885 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1891 echo 1 > "$at_status_file"
1900 $at_times_p && times >"$at_times_file"
1901 ) 5>&1 2>&1 | eval $at_tee_pipe
1902 at_status=`cat "$at_status_file"`
1905 3 ) # 3. options.at:24: mixing options
1906 at_setup_line='options.at:24'
1907 at_desc="mixing options"
1908 $at_quiet $ECHO_N " 3: mixing options $ECHO_C"
1910 echo "# -*- compilation -*-" >> "$at_group_log"
1912 echo "3. options.at:24: testing ..."
1918 echo "$at_srcdir/options.at:27:
1920 TAR_OPTIONS=--numeric-owner tar chof archive file1
1923 echo options.at:27 >"$at_check_line_file"
1926 if test -n "$at_traceon"; then
1927 echo 'Not enabling shell tracing (command contains an embedded newline)'
1930 if test -n "$at_trace_this"; then
1933 TAR_OPTIONS=--numeric-owner tar chof archive file1
1935 ) >"$at_stdout" 2>"$at_stder1"
1937 grep '^ *+' "$at_stder1" >&2
1938 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1942 TAR_OPTIONS=--numeric-owner tar chof archive file1
1944 ) >"$at_stdout" 2>"$at_stderr"
1949 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1950 echo >>"$at_stdout"; echo "file1
1951 " | $at_diff - "$at_stdout" || at_failed=:
1953 77) echo 77 > "$at_status_file"; exit 77;;
1955 *) echo "$at_srcdir/options.at:27: exit code was $at_status, expected 0"
1961 echo 1 > "$at_status_file"
1969 $at_times_p && times >"$at_times_file"
1970 ) 5>&1 2>&1 | eval $at_tee_pipe
1971 at_status=`cat "$at_status_file"`
1974 4 ) # 4. options02.at:26: interspersed options
1975 at_setup_line='options02.at:26'
1976 at_desc="interspersed options"
1977 $at_quiet $ECHO_N " 4: interspersed options $ECHO_C"
1979 echo "# -*- compilation -*-" >> "$at_group_log"
1981 echo "4. options02.at:26: testing ..."
1987 echo "$at_srcdir/options02.at:29:
1989 tar c file1 -f archive
1992 echo options02.at:29 >"$at_check_line_file"
1995 if test -n "$at_traceon"; then
1996 echo 'Not enabling shell tracing (command contains an embedded newline)'
1999 if test -n "$at_trace_this"; then
2002 tar c file1 -f archive
2004 ) >"$at_stdout" 2>"$at_stder1"
2006 grep '^ *+' "$at_stder1" >&2
2007 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2011 tar c file1 -f archive
2013 ) >"$at_stdout" 2>"$at_stderr"
2018 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2019 echo >>"$at_stdout"; echo "file1
2020 " | $at_diff - "$at_stdout" || at_failed=:
2022 77) echo 77 > "$at_status_file"; exit 77;;
2024 *) echo "$at_srcdir/options02.at:29: exit code was $at_status, expected 0"
2030 echo 1 > "$at_status_file"
2038 $at_times_p && times >"$at_times_file"
2039 ) 5>&1 2>&1 | eval $at_tee_pipe
2040 at_status=`cat "$at_status_file"`
2043 5 ) # 5. T-empty.at:26: files-from: empty entries
2044 at_setup_line='T-empty.at:26'
2045 at_desc="files-from: empty entries"
2046 $at_quiet $ECHO_N " 5: files-from: empty entries $ECHO_C"
2048 test -f $XFAILFILE && at_xfail=yes
2049 echo "# -*- compilation -*-" >> "$at_group_log"
2051 echo "5. T-empty.at:26: testing ..."
2056 cat >file-list <<'_ATEOF'
2067 echo "$at_srcdir/T-empty.at:36:
2070 TEST_TAR_FORMAT=ustar
2071 export TEST_TAR_FORMAT
2072 TAR_OPTIONS=\"-H ustar\"
2077 test -z "`sort < /dev/null 2>&1`" || exit 77
2080 genfile --file jeden
2084 tar cfvT archive ../file-list | sort
2086 echo T-empty.at:36 >"$at_check_line_file"
2089 if test -n "$at_traceon"; then
2090 echo 'Not enabling shell tracing (command contains an embedded newline)'
2093 if test -n "$at_trace_this"; then
2097 TEST_TAR_FORMAT=ustar
2098 export TEST_TAR_FORMAT
2099 TAR_OPTIONS="-H ustar"
2104 test -z "`sort < /dev/null 2>&1`" || exit 77
2107 genfile --file jeden
2111 tar cfvT archive ../file-list | sort
2112 ) ) >"$at_stdout" 2>"$at_stder1"
2114 grep '^ *+' "$at_stder1" >&2
2115 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2120 TEST_TAR_FORMAT=ustar
2121 export TEST_TAR_FORMAT
2122 TAR_OPTIONS="-H ustar"
2127 test -z "`sort < /dev/null 2>&1`" || exit 77
2130 genfile --file jeden
2134 tar cfvT archive ../file-list | sort
2135 ) ) >"$at_stdout" 2>"$at_stderr"
2140 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2141 echo >>"$at_stdout"; echo "dwa
2144 " | $at_diff - "$at_stdout" || at_failed=:
2146 77) echo 77 > "$at_status_file"; exit 77;;
2148 *) echo "$at_srcdir/T-empty.at:36: exit code was $at_status, expected 0"
2154 echo 1 > "$at_status_file"
2160 # Testing one format is enough
2163 $at_times_p && times >"$at_times_file"
2164 ) 5>&1 2>&1 | eval $at_tee_pipe
2165 at_status=`cat "$at_status_file"`
2168 6 ) # 6. T-null.at:21: files-from: 0-separated file without -0
2169 at_setup_line='T-null.at:21'
2170 at_desc="files-from: 0-separated file without -0"
2171 $at_quiet $ECHO_N " 6: files-from: 0-separated file without -0 $ECHO_C"
2173 test -f $XFAILFILE && at_xfail=yes
2174 echo "# -*- compilation -*-" >> "$at_group_log"
2176 echo "6. T-null.at:21: testing ..."
2181 cat >expout <<'_ATEOF'
2190 echo "$at_srcdir/T-null.at:28:
2193 TEST_TAR_FORMAT=ustar
2194 export TEST_TAR_FORMAT
2195 TAR_OPTIONS=\"-H ustar\"
2200 test -z "`sort < /dev/null 2>&1`" || exit 77
2205 cat temp | tr '\\n' '\\0' > temp1
2206 echo jeden > file-list
2207 cat temp1 >> file-list
2213 tar cfTv archive file-list | sort
2215 echo T-null.at:28 >"$at_check_line_file"
2218 if test -n "$at_traceon"; then
2219 echo 'Not enabling shell tracing (command contains an embedded newline)'
2222 if test -n "$at_trace_this"; then
2226 TEST_TAR_FORMAT=ustar
2227 export TEST_TAR_FORMAT
2228 TAR_OPTIONS="-H ustar"
2233 test -z "`sort < /dev/null 2>&1`" || exit 77
2238 cat temp | tr '\n' '\0' > temp1
2239 echo jeden > file-list
2240 cat temp1 >> file-list
2246 tar cfTv archive file-list | sort
2247 ) ) >"$at_stdout" 2>"$at_stder1"
2249 grep '^ *+' "$at_stder1" >&2
2250 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2255 TEST_TAR_FORMAT=ustar
2256 export TEST_TAR_FORMAT
2257 TAR_OPTIONS="-H ustar"
2262 test -z "`sort < /dev/null 2>&1`" || exit 77
2267 cat temp | tr '\n' '\0' > temp1
2268 echo jeden > file-list
2269 cat temp1 >> file-list
2275 tar cfTv archive file-list | sort
2276 ) ) >"$at_stdout" 2>"$at_stderr"
2281 echo >>"$at_stderr"; echo "tar: file-list: file name read contains nul character
2282 " | $at_diff - "$at_stderr" || at_failed=:
2283 $at_diff expout "$at_stdout" || at_failed=:
2285 77) echo 77 > "$at_status_file"; exit 77;;
2287 *) echo "$at_srcdir/T-null.at:28: exit code was $at_status, expected 0"
2293 echo 1 > "$at_status_file"
2299 # Testing one format is enough
2302 $at_times_p && times >"$at_times_file"
2303 ) 5>&1 2>&1 | eval $at_tee_pipe
2304 at_status=`cat "$at_status_file"`
2307 7 ) # 7. indexfile.at:26: tar --index-file=FILE --file=-
2308 at_setup_line='indexfile.at:26'
2309 at_desc="tar --index-file=FILE --file=-"
2310 $at_quiet $ECHO_N " 7: tar --index-file=FILE --file=- $ECHO_C"
2312 test -f $XFAILFILE && at_xfail=yes
2313 echo "# -*- compilation -*-" >> "$at_group_log"
2315 echo "7. indexfile.at:26: testing ..."
2323 echo "$at_srcdir/indexfile.at:29:
2327 export TEST_TAR_FORMAT
2328 TAR_OPTIONS=\"-H v7\"
2334 genfile --file=directory/a --length=1035
2336 echo \"Creating the archive\"
2337 tar -c -v -f - --index-file=idx directory > archive
2339 echo \"Testing the archive\"
2342 echo indexfile.at:29 >"$at_check_line_file"
2345 if test -n "$at_traceon"; then
2346 echo 'Not enabling shell tracing (command contains an embedded newline)'
2349 if test -n "$at_trace_this"; then
2354 export TEST_TAR_FORMAT
2361 genfile --file=directory/a --length=1035
2363 echo "Creating the archive"
2364 tar -c -v -f - --index-file=idx directory > archive
2366 echo "Testing the archive"
2368 ) ) >"$at_stdout" 2>"$at_stder1"
2370 grep '^ *+' "$at_stder1" >&2
2371 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2377 export TEST_TAR_FORMAT
2384 genfile --file=directory/a --length=1035
2386 echo "Creating the archive"
2387 tar -c -v -f - --index-file=idx directory > archive
2389 echo "Testing the archive"
2391 ) ) >"$at_stdout" 2>"$at_stderr"
2396 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2397 echo >>"$at_stdout"; echo "Creating the archive
2401 " | $at_diff - "$at_stdout" || at_failed=:
2403 77) echo 77 > "$at_status_file"; exit 77;;
2405 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2411 echo 1 > "$at_status_file"
2417 echo "$at_srcdir/indexfile.at:29:
2420 TEST_TAR_FORMAT=oldgnu
2421 export TEST_TAR_FORMAT
2422 TAR_OPTIONS=\"-H oldgnu\"
2428 genfile --file=directory/a --length=1035
2430 echo \"Creating the archive\"
2431 tar -c -v -f - --index-file=idx directory > archive
2433 echo \"Testing the archive\"
2436 echo indexfile.at:29 >"$at_check_line_file"
2439 if test -n "$at_traceon"; then
2440 echo 'Not enabling shell tracing (command contains an embedded newline)'
2443 if test -n "$at_trace_this"; then
2447 TEST_TAR_FORMAT=oldgnu
2448 export TEST_TAR_FORMAT
2449 TAR_OPTIONS="-H oldgnu"
2455 genfile --file=directory/a --length=1035
2457 echo "Creating the archive"
2458 tar -c -v -f - --index-file=idx directory > archive
2460 echo "Testing the archive"
2462 ) ) >"$at_stdout" 2>"$at_stder1"
2464 grep '^ *+' "$at_stder1" >&2
2465 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2470 TEST_TAR_FORMAT=oldgnu
2471 export TEST_TAR_FORMAT
2472 TAR_OPTIONS="-H oldgnu"
2478 genfile --file=directory/a --length=1035
2480 echo "Creating the archive"
2481 tar -c -v -f - --index-file=idx directory > archive
2483 echo "Testing the archive"
2485 ) ) >"$at_stdout" 2>"$at_stderr"
2490 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2491 echo >>"$at_stdout"; echo "Creating the archive
2495 " | $at_diff - "$at_stdout" || at_failed=:
2497 77) echo 77 > "$at_status_file"; exit 77;;
2499 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2505 echo 1 > "$at_status_file"
2511 echo "$at_srcdir/indexfile.at:29:
2514 TEST_TAR_FORMAT=ustar
2515 export TEST_TAR_FORMAT
2516 TAR_OPTIONS=\"-H ustar\"
2522 genfile --file=directory/a --length=1035
2524 echo \"Creating the archive\"
2525 tar -c -v -f - --index-file=idx directory > archive
2527 echo \"Testing the archive\"
2530 echo indexfile.at:29 >"$at_check_line_file"
2533 if test -n "$at_traceon"; then
2534 echo 'Not enabling shell tracing (command contains an embedded newline)'
2537 if test -n "$at_trace_this"; then
2541 TEST_TAR_FORMAT=ustar
2542 export TEST_TAR_FORMAT
2543 TAR_OPTIONS="-H ustar"
2549 genfile --file=directory/a --length=1035
2551 echo "Creating the archive"
2552 tar -c -v -f - --index-file=idx directory > archive
2554 echo "Testing the archive"
2556 ) ) >"$at_stdout" 2>"$at_stder1"
2558 grep '^ *+' "$at_stder1" >&2
2559 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2564 TEST_TAR_FORMAT=ustar
2565 export TEST_TAR_FORMAT
2566 TAR_OPTIONS="-H ustar"
2572 genfile --file=directory/a --length=1035
2574 echo "Creating the archive"
2575 tar -c -v -f - --index-file=idx directory > archive
2577 echo "Testing the archive"
2579 ) ) >"$at_stdout" 2>"$at_stderr"
2584 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2585 echo >>"$at_stdout"; echo "Creating the archive
2589 " | $at_diff - "$at_stdout" || at_failed=:
2591 77) echo 77 > "$at_status_file"; exit 77;;
2593 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2599 echo 1 > "$at_status_file"
2605 echo "$at_srcdir/indexfile.at:29:
2608 TEST_TAR_FORMAT=posix
2609 export TEST_TAR_FORMAT
2610 TAR_OPTIONS=\"-H posix\"
2616 genfile --file=directory/a --length=1035
2618 echo \"Creating the archive\"
2619 tar -c -v -f - --index-file=idx directory > archive
2621 echo \"Testing the archive\"
2624 echo indexfile.at:29 >"$at_check_line_file"
2627 if test -n "$at_traceon"; then
2628 echo 'Not enabling shell tracing (command contains an embedded newline)'
2631 if test -n "$at_trace_this"; then
2635 TEST_TAR_FORMAT=posix
2636 export TEST_TAR_FORMAT
2637 TAR_OPTIONS="-H posix"
2643 genfile --file=directory/a --length=1035
2645 echo "Creating the archive"
2646 tar -c -v -f - --index-file=idx directory > archive
2648 echo "Testing the archive"
2650 ) ) >"$at_stdout" 2>"$at_stder1"
2652 grep '^ *+' "$at_stder1" >&2
2653 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2658 TEST_TAR_FORMAT=posix
2659 export TEST_TAR_FORMAT
2660 TAR_OPTIONS="-H posix"
2666 genfile --file=directory/a --length=1035
2668 echo "Creating the archive"
2669 tar -c -v -f - --index-file=idx directory > archive
2671 echo "Testing the archive"
2673 ) ) >"$at_stdout" 2>"$at_stderr"
2678 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2679 echo >>"$at_stdout"; echo "Creating the archive
2683 " | $at_diff - "$at_stdout" || at_failed=:
2685 77) echo 77 > "$at_status_file"; exit 77;;
2687 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2693 echo 1 > "$at_status_file"
2699 echo "$at_srcdir/indexfile.at:29:
2703 export TEST_TAR_FORMAT
2704 TAR_OPTIONS=\"-H gnu\"
2710 genfile --file=directory/a --length=1035
2712 echo \"Creating the archive\"
2713 tar -c -v -f - --index-file=idx directory > archive
2715 echo \"Testing the archive\"
2718 echo indexfile.at:29 >"$at_check_line_file"
2721 if test -n "$at_traceon"; then
2722 echo 'Not enabling shell tracing (command contains an embedded newline)'
2725 if test -n "$at_trace_this"; then
2730 export TEST_TAR_FORMAT
2731 TAR_OPTIONS="-H gnu"
2737 genfile --file=directory/a --length=1035
2739 echo "Creating the archive"
2740 tar -c -v -f - --index-file=idx directory > archive
2742 echo "Testing the archive"
2744 ) ) >"$at_stdout" 2>"$at_stder1"
2746 grep '^ *+' "$at_stder1" >&2
2747 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2753 export TEST_TAR_FORMAT
2754 TAR_OPTIONS="-H gnu"
2760 genfile --file=directory/a --length=1035
2762 echo "Creating the archive"
2763 tar -c -v -f - --index-file=idx directory > archive
2765 echo "Testing the archive"
2767 ) ) >"$at_stdout" 2>"$at_stderr"
2772 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2773 echo >>"$at_stdout"; echo "Creating the archive
2777 " | $at_diff - "$at_stdout" || at_failed=:
2779 77) echo 77 > "$at_status_file"; exit 77;;
2781 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2787 echo 1 > "$at_status_file"
2796 $at_times_p && times >"$at_times_file"
2797 ) 5>&1 2>&1 | eval $at_tee_pipe
2798 at_status=`cat "$at_status_file"`
2801 8 ) # 8. verbose.at:26: tar cvf -
2802 at_setup_line='verbose.at:26'
2804 $at_quiet $ECHO_N " 8: tar cvf - $ECHO_C"
2806 test -f $XFAILFILE && at_xfail=yes
2807 echo "# -*- compilation -*-" >> "$at_group_log"
2809 echo "8. verbose.at:26: testing ..."
2817 echo "$at_srcdir/verbose.at:29:
2821 export TEST_TAR_FORMAT
2822 TAR_OPTIONS=\"-H v7\"
2826 genfile --file file --length 10240
2827 echo Creating the archive
2828 tar cvf - file > archive
2829 echo Testing the archive
2832 echo verbose.at:29 >"$at_check_line_file"
2835 if test -n "$at_traceon"; then
2836 echo 'Not enabling shell tracing (command contains an embedded newline)'
2839 if test -n "$at_trace_this"; then
2844 export TEST_TAR_FORMAT
2849 genfile --file file --length 10240
2850 echo Creating the archive
2851 tar cvf - file > archive
2852 echo Testing the archive
2854 ) ) >"$at_stdout" 2>"$at_stder1"
2856 grep '^ *+' "$at_stder1" >&2
2857 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2863 export TEST_TAR_FORMAT
2868 genfile --file file --length 10240
2869 echo Creating the archive
2870 tar cvf - file > archive
2871 echo Testing the archive
2873 ) ) >"$at_stdout" 2>"$at_stderr"
2878 echo >>"$at_stderr"; echo "file
2879 " | $at_diff - "$at_stderr" || at_failed=:
2880 echo >>"$at_stdout"; echo "Creating the archive
2883 " | $at_diff - "$at_stdout" || at_failed=:
2885 77) echo 77 > "$at_status_file"; exit 77;;
2887 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
2893 echo 1 > "$at_status_file"
2899 echo "$at_srcdir/verbose.at:29:
2902 TEST_TAR_FORMAT=oldgnu
2903 export TEST_TAR_FORMAT
2904 TAR_OPTIONS=\"-H oldgnu\"
2908 genfile --file file --length 10240
2909 echo Creating the archive
2910 tar cvf - file > archive
2911 echo Testing the archive
2914 echo verbose.at:29 >"$at_check_line_file"
2917 if test -n "$at_traceon"; then
2918 echo 'Not enabling shell tracing (command contains an embedded newline)'
2921 if test -n "$at_trace_this"; then
2925 TEST_TAR_FORMAT=oldgnu
2926 export TEST_TAR_FORMAT
2927 TAR_OPTIONS="-H oldgnu"
2931 genfile --file file --length 10240
2932 echo Creating the archive
2933 tar cvf - file > archive
2934 echo Testing the archive
2936 ) ) >"$at_stdout" 2>"$at_stder1"
2938 grep '^ *+' "$at_stder1" >&2
2939 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2944 TEST_TAR_FORMAT=oldgnu
2945 export TEST_TAR_FORMAT
2946 TAR_OPTIONS="-H oldgnu"
2950 genfile --file file --length 10240
2951 echo Creating the archive
2952 tar cvf - file > archive
2953 echo Testing the archive
2955 ) ) >"$at_stdout" 2>"$at_stderr"
2960 echo >>"$at_stderr"; echo "file
2961 " | $at_diff - "$at_stderr" || at_failed=:
2962 echo >>"$at_stdout"; echo "Creating the archive
2965 " | $at_diff - "$at_stdout" || at_failed=:
2967 77) echo 77 > "$at_status_file"; exit 77;;
2969 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
2975 echo 1 > "$at_status_file"
2981 echo "$at_srcdir/verbose.at:29:
2984 TEST_TAR_FORMAT=ustar
2985 export TEST_TAR_FORMAT
2986 TAR_OPTIONS=\"-H ustar\"
2990 genfile --file file --length 10240
2991 echo Creating the archive
2992 tar cvf - file > archive
2993 echo Testing the archive
2996 echo verbose.at:29 >"$at_check_line_file"
2999 if test -n "$at_traceon"; then
3000 echo 'Not enabling shell tracing (command contains an embedded newline)'
3003 if test -n "$at_trace_this"; then
3007 TEST_TAR_FORMAT=ustar
3008 export TEST_TAR_FORMAT
3009 TAR_OPTIONS="-H ustar"
3013 genfile --file file --length 10240
3014 echo Creating the archive
3015 tar cvf - file > archive
3016 echo Testing the archive
3018 ) ) >"$at_stdout" 2>"$at_stder1"
3020 grep '^ *+' "$at_stder1" >&2
3021 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3026 TEST_TAR_FORMAT=ustar
3027 export TEST_TAR_FORMAT
3028 TAR_OPTIONS="-H ustar"
3032 genfile --file file --length 10240
3033 echo Creating the archive
3034 tar cvf - file > archive
3035 echo Testing the archive
3037 ) ) >"$at_stdout" 2>"$at_stderr"
3042 echo >>"$at_stderr"; echo "file
3043 " | $at_diff - "$at_stderr" || at_failed=:
3044 echo >>"$at_stdout"; echo "Creating the archive
3047 " | $at_diff - "$at_stdout" || at_failed=:
3049 77) echo 77 > "$at_status_file"; exit 77;;
3051 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3057 echo 1 > "$at_status_file"
3063 echo "$at_srcdir/verbose.at:29:
3066 TEST_TAR_FORMAT=posix
3067 export TEST_TAR_FORMAT
3068 TAR_OPTIONS=\"-H posix\"
3072 genfile --file file --length 10240
3073 echo Creating the archive
3074 tar cvf - file > archive
3075 echo Testing the archive
3078 echo verbose.at:29 >"$at_check_line_file"
3081 if test -n "$at_traceon"; then
3082 echo 'Not enabling shell tracing (command contains an embedded newline)'
3085 if test -n "$at_trace_this"; then
3089 TEST_TAR_FORMAT=posix
3090 export TEST_TAR_FORMAT
3091 TAR_OPTIONS="-H posix"
3095 genfile --file file --length 10240
3096 echo Creating the archive
3097 tar cvf - file > archive
3098 echo Testing the archive
3100 ) ) >"$at_stdout" 2>"$at_stder1"
3102 grep '^ *+' "$at_stder1" >&2
3103 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3108 TEST_TAR_FORMAT=posix
3109 export TEST_TAR_FORMAT
3110 TAR_OPTIONS="-H posix"
3114 genfile --file file --length 10240
3115 echo Creating the archive
3116 tar cvf - file > archive
3117 echo Testing the archive
3119 ) ) >"$at_stdout" 2>"$at_stderr"
3124 echo >>"$at_stderr"; echo "file
3125 " | $at_diff - "$at_stderr" || at_failed=:
3126 echo >>"$at_stdout"; echo "Creating the archive
3129 " | $at_diff - "$at_stdout" || at_failed=:
3131 77) echo 77 > "$at_status_file"; exit 77;;
3133 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3139 echo 1 > "$at_status_file"
3145 echo "$at_srcdir/verbose.at:29:
3149 export TEST_TAR_FORMAT
3150 TAR_OPTIONS=\"-H gnu\"
3154 genfile --file file --length 10240
3155 echo Creating the archive
3156 tar cvf - file > archive
3157 echo Testing the archive
3160 echo verbose.at:29 >"$at_check_line_file"
3163 if test -n "$at_traceon"; then
3164 echo 'Not enabling shell tracing (command contains an embedded newline)'
3167 if test -n "$at_trace_this"; then
3172 export TEST_TAR_FORMAT
3173 TAR_OPTIONS="-H gnu"
3177 genfile --file file --length 10240
3178 echo Creating the archive
3179 tar cvf - file > archive
3180 echo Testing the archive
3182 ) ) >"$at_stdout" 2>"$at_stder1"
3184 grep '^ *+' "$at_stder1" >&2
3185 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3191 export TEST_TAR_FORMAT
3192 TAR_OPTIONS="-H gnu"
3196 genfile --file file --length 10240
3197 echo Creating the archive
3198 tar cvf - file > archive
3199 echo Testing the archive
3201 ) ) >"$at_stdout" 2>"$at_stderr"
3206 echo >>"$at_stderr"; echo "file
3207 " | $at_diff - "$at_stderr" || at_failed=:
3208 echo >>"$at_stdout"; echo "Creating the archive
3211 " | $at_diff - "$at_stdout" || at_failed=:
3213 77) echo 77 > "$at_status_file"; exit 77;;
3215 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3221 echo 1 > "$at_status_file"
3230 $at_times_p && times >"$at_times_file"
3231 ) 5>&1 2>&1 | eval $at_tee_pipe
3232 at_status=`cat "$at_status_file"`
3235 9 ) # 9. append.at:21: append
3236 at_setup_line='append.at:21'
3238 $at_quiet $ECHO_N " 9: append $ECHO_C"
3240 test -f $XFAILFILE && at_xfail=yes
3241 echo "# -*- compilation -*-" >> "$at_group_log"
3243 echo "9. append.at:21: testing ..."
3251 echo "$at_srcdir/append.at:24:
3255 export TEST_TAR_FORMAT
3256 TAR_OPTIONS=\"-H v7\"
3261 tar cf archive file1
3262 tar rf archive file2
3264 echo append.at:24 >"$at_check_line_file"
3267 if test -n "$at_traceon"; then
3268 echo 'Not enabling shell tracing (command contains an embedded newline)'
3271 if test -n "$at_trace_this"; then
3276 export TEST_TAR_FORMAT
3282 tar cf archive file1
3283 tar rf archive file2
3284 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3286 grep '^ *+' "$at_stder1" >&2
3287 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3293 export TEST_TAR_FORMAT
3299 tar cf archive file1
3300 tar rf archive file2
3301 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3306 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3307 echo >>"$at_stdout"; echo "file1
3309 " | $at_diff - "$at_stdout" || at_failed=:
3311 77) echo 77 > "$at_status_file"; exit 77;;
3313 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3319 echo 1 > "$at_status_file"
3325 echo "$at_srcdir/append.at:24:
3328 TEST_TAR_FORMAT=oldgnu
3329 export TEST_TAR_FORMAT
3330 TAR_OPTIONS=\"-H oldgnu\"
3335 tar cf archive file1
3336 tar rf archive file2
3338 echo append.at:24 >"$at_check_line_file"
3341 if test -n "$at_traceon"; then
3342 echo 'Not enabling shell tracing (command contains an embedded newline)'
3345 if test -n "$at_trace_this"; then
3349 TEST_TAR_FORMAT=oldgnu
3350 export TEST_TAR_FORMAT
3351 TAR_OPTIONS="-H oldgnu"
3356 tar cf archive file1
3357 tar rf archive file2
3358 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3360 grep '^ *+' "$at_stder1" >&2
3361 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3366 TEST_TAR_FORMAT=oldgnu
3367 export TEST_TAR_FORMAT
3368 TAR_OPTIONS="-H oldgnu"
3373 tar cf archive file1
3374 tar rf archive file2
3375 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3380 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3381 echo >>"$at_stdout"; echo "file1
3383 " | $at_diff - "$at_stdout" || at_failed=:
3385 77) echo 77 > "$at_status_file"; exit 77;;
3387 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3393 echo 1 > "$at_status_file"
3399 echo "$at_srcdir/append.at:24:
3402 TEST_TAR_FORMAT=ustar
3403 export TEST_TAR_FORMAT
3404 TAR_OPTIONS=\"-H ustar\"
3409 tar cf archive file1
3410 tar rf archive file2
3412 echo append.at:24 >"$at_check_line_file"
3415 if test -n "$at_traceon"; then
3416 echo 'Not enabling shell tracing (command contains an embedded newline)'
3419 if test -n "$at_trace_this"; then
3423 TEST_TAR_FORMAT=ustar
3424 export TEST_TAR_FORMAT
3425 TAR_OPTIONS="-H ustar"
3430 tar cf archive file1
3431 tar rf archive file2
3432 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3434 grep '^ *+' "$at_stder1" >&2
3435 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3440 TEST_TAR_FORMAT=ustar
3441 export TEST_TAR_FORMAT
3442 TAR_OPTIONS="-H ustar"
3447 tar cf archive file1
3448 tar rf archive file2
3449 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3454 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3455 echo >>"$at_stdout"; echo "file1
3457 " | $at_diff - "$at_stdout" || at_failed=:
3459 77) echo 77 > "$at_status_file"; exit 77;;
3461 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3467 echo 1 > "$at_status_file"
3473 echo "$at_srcdir/append.at:24:
3476 TEST_TAR_FORMAT=posix
3477 export TEST_TAR_FORMAT
3478 TAR_OPTIONS=\"-H posix\"
3483 tar cf archive file1
3484 tar rf archive file2
3486 echo append.at:24 >"$at_check_line_file"
3489 if test -n "$at_traceon"; then
3490 echo 'Not enabling shell tracing (command contains an embedded newline)'
3493 if test -n "$at_trace_this"; then
3497 TEST_TAR_FORMAT=posix
3498 export TEST_TAR_FORMAT
3499 TAR_OPTIONS="-H posix"
3504 tar cf archive file1
3505 tar rf archive file2
3506 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3508 grep '^ *+' "$at_stder1" >&2
3509 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3514 TEST_TAR_FORMAT=posix
3515 export TEST_TAR_FORMAT
3516 TAR_OPTIONS="-H posix"
3521 tar cf archive file1
3522 tar rf archive file2
3523 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3528 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3529 echo >>"$at_stdout"; echo "file1
3531 " | $at_diff - "$at_stdout" || at_failed=:
3533 77) echo 77 > "$at_status_file"; exit 77;;
3535 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3541 echo 1 > "$at_status_file"
3547 echo "$at_srcdir/append.at:24:
3551 export TEST_TAR_FORMAT
3552 TAR_OPTIONS=\"-H gnu\"
3557 tar cf archive file1
3558 tar rf archive file2
3560 echo append.at:24 >"$at_check_line_file"
3563 if test -n "$at_traceon"; then
3564 echo 'Not enabling shell tracing (command contains an embedded newline)'
3567 if test -n "$at_trace_this"; then
3572 export TEST_TAR_FORMAT
3573 TAR_OPTIONS="-H gnu"
3578 tar cf archive file1
3579 tar rf archive file2
3580 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3582 grep '^ *+' "$at_stder1" >&2
3583 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3589 export TEST_TAR_FORMAT
3590 TAR_OPTIONS="-H gnu"
3595 tar cf archive file1
3596 tar rf archive file2
3597 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3602 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3603 echo >>"$at_stdout"; echo "file1
3605 " | $at_diff - "$at_stdout" || at_failed=:
3607 77) echo 77 > "$at_status_file"; exit 77;;
3609 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3615 echo 1 > "$at_status_file"
3624 $at_times_p && times >"$at_times_file"
3625 ) 5>&1 2>&1 | eval $at_tee_pipe
3626 at_status=`cat "$at_status_file"`
3629 10 ) # 10. append01.at:29: appending files with long names
3630 at_setup_line='append01.at:29'
3631 at_desc="appending files with long names"
3632 $at_quiet $ECHO_N " 10: appending files with long names $ECHO_C"
3634 test -f $XFAILFILE && at_xfail=yes
3635 echo "# -*- compilation -*-" >> "$at_group_log"
3637 echo "10. append01.at:29: testing ..."
3647 echo "$at_srcdir/append01.at:34:
3650 TEST_TAR_FORMAT=oldgnu
3651 export TEST_TAR_FORMAT
3652 TAR_OPTIONS=\"-H oldgnu\"
3656 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
3657 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
3658 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
3659 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
3662 echo append01.at:34 >"$at_check_line_file"
3665 if test -n "$at_traceon"; then
3666 echo 'Not enabling shell tracing (command contains an embedded newline)'
3669 if test -n "$at_trace_this"; then
3673 TEST_TAR_FORMAT=oldgnu
3674 export TEST_TAR_FORMAT
3675 TAR_OPTIONS="-H oldgnu"
3679 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
3680 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
3681 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
3682 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
3684 ) ) >"$at_stdout" 2>"$at_stder1"
3686 grep '^ *+' "$at_stder1" >&2
3687 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3692 TEST_TAR_FORMAT=oldgnu
3693 export TEST_TAR_FORMAT
3694 TAR_OPTIONS="-H oldgnu"
3698 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
3699 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
3700 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
3701 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
3703 ) ) >"$at_stdout" 2>"$at_stderr"
3708 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3709 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
3710 This_is_a_very_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
3711 " | $at_diff - "$at_stdout" || at_failed=:
3713 77) echo 77 > "$at_status_file"; exit 77;;
3715 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3721 echo 1 > "$at_status_file"
3727 echo "$at_srcdir/append01.at:34:
3730 TEST_TAR_FORMAT=ustar
3731 export TEST_TAR_FORMAT
3732 TAR_OPTIONS=\"-H ustar\"
3736 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
3737 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
3738 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
3739 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
3742 echo append01.at:34 >"$at_check_line_file"
3745 if test -n "$at_traceon"; then
3746 echo 'Not enabling shell tracing (command contains an embedded newline)'
3749 if test -n "$at_trace_this"; then
3753 TEST_TAR_FORMAT=ustar
3754 export TEST_TAR_FORMAT
3755 TAR_OPTIONS="-H ustar"
3759 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
3760 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
3761 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
3762 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
3764 ) ) >"$at_stdout" 2>"$at_stder1"
3766 grep '^ *+' "$at_stder1" >&2
3767 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3772 TEST_TAR_FORMAT=ustar
3773 export TEST_TAR_FORMAT
3774 TAR_OPTIONS="-H ustar"
3778 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
3779 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
3780 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
3781 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
3783 ) ) >"$at_stdout" 2>"$at_stderr"
3788 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3789 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
3790 This_is_a_very_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
3791 " | $at_diff - "$at_stdout" || at_failed=:
3793 77) echo 77 > "$at_status_file"; exit 77;;
3795 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3801 echo 1 > "$at_status_file"
3807 echo "$at_srcdir/append01.at:34:
3810 TEST_TAR_FORMAT=posix
3811 export TEST_TAR_FORMAT
3812 TAR_OPTIONS=\"-H posix\"
3816 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
3817 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
3818 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
3819 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
3822 echo append01.at:34 >"$at_check_line_file"
3825 if test -n "$at_traceon"; then
3826 echo 'Not enabling shell tracing (command contains an embedded newline)'
3829 if test -n "$at_trace_this"; then
3833 TEST_TAR_FORMAT=posix
3834 export TEST_TAR_FORMAT
3835 TAR_OPTIONS="-H posix"
3839 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
3840 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
3841 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
3842 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
3844 ) ) >"$at_stdout" 2>"$at_stder1"
3846 grep '^ *+' "$at_stder1" >&2
3847 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3852 TEST_TAR_FORMAT=posix
3853 export TEST_TAR_FORMAT
3854 TAR_OPTIONS="-H posix"
3858 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
3859 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
3860 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
3861 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
3863 ) ) >"$at_stdout" 2>"$at_stderr"
3868 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3869 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
3870 This_is_a_very_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
3871 " | $at_diff - "$at_stdout" || at_failed=:
3873 77) echo 77 > "$at_status_file"; exit 77;;
3875 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3881 echo 1 > "$at_status_file"
3887 echo "$at_srcdir/append01.at:34:
3891 export TEST_TAR_FORMAT
3892 TAR_OPTIONS=\"-H gnu\"
3896 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
3897 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
3898 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
3899 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
3902 echo append01.at:34 >"$at_check_line_file"
3905 if test -n "$at_traceon"; then
3906 echo 'Not enabling shell tracing (command contains an embedded newline)'
3909 if test -n "$at_trace_this"; then
3914 export TEST_TAR_FORMAT
3915 TAR_OPTIONS="-H gnu"
3919 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
3920 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
3921 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
3922 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
3924 ) ) >"$at_stdout" 2>"$at_stder1"
3926 grep '^ *+' "$at_stder1" >&2
3927 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3933 export TEST_TAR_FORMAT
3934 TAR_OPTIONS="-H gnu"
3938 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
3939 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
3940 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
3941 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
3943 ) ) >"$at_stdout" 2>"$at_stderr"
3948 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3949 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
3950 This_is_a_very_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
3951 " | $at_diff - "$at_stdout" || at_failed=:
3953 77) echo 77 > "$at_status_file"; exit 77;;
3955 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3961 echo 1 > "$at_status_file"
3970 $at_times_p && times >"$at_times_file"
3971 ) 5>&1 2>&1 | eval $at_tee_pipe
3972 at_status=`cat "$at_status_file"`
3975 11 ) # 11. append02.at:40: append vs. create
3976 at_setup_line='append02.at:40'
3977 at_desc="append vs. create"
3978 $at_quiet $ECHO_N " 11: append vs. create $ECHO_C"
3980 test -f $XFAILFILE && at_xfail=yes
3981 echo "# -*- compilation -*-" >> "$at_group_log"
3983 echo "11. append02.at:40: testing ..."
3991 echo "$at_srcdir/append02.at:43:
3995 export TEST_TAR_FORMAT
3996 TAR_OPTIONS=\"-H v7\"
4000 genfile --file file1
4001 genfile --file file2
4003 # Make sure file timestamps in the archive will not differ
4004 MTIME=\"--mtime=@0\"
4006 # For PAX archives, we need to make sure extended header names are
4007 # reproducible and that their contents won't change with time
4008 if test \$TEST_TAR_FORMAT = posix; then
4009 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4012 echo Creating archive.1
4013 tar \$MTIME -cf archive.1 file1 file2
4015 echo Creating archive.2
4016 tar \$MTIME -cf archive.2 -T /dev/null
4017 tar \$MTIME -rf archive.2 file1
4018 tar \$MTIME -rf archive.2 file2
4020 echo Comparing archives
4021 cmp archive.1 archive.2
4023 echo append02.at:43 >"$at_check_line_file"
4026 if test -n "$at_traceon"; then
4027 echo 'Not enabling shell tracing (command contains an embedded newline)'
4030 if test -n "$at_trace_this"; then
4035 export TEST_TAR_FORMAT
4040 genfile --file file1
4041 genfile --file file2
4043 # Make sure file timestamps in the archive will not differ
4046 # For PAX archives, we need to make sure extended header names are
4047 # reproducible and that their contents won't change with time
4048 if test $TEST_TAR_FORMAT = posix; then
4049 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4052 echo Creating archive.1
4053 tar $MTIME -cf archive.1 file1 file2
4055 echo Creating archive.2
4056 tar $MTIME -cf archive.2 -T /dev/null
4057 tar $MTIME -rf archive.2 file1
4058 tar $MTIME -rf archive.2 file2
4060 echo Comparing archives
4061 cmp archive.1 archive.2
4062 ) ) >"$at_stdout" 2>"$at_stder1"
4064 grep '^ *+' "$at_stder1" >&2
4065 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4071 export TEST_TAR_FORMAT
4076 genfile --file file1
4077 genfile --file file2
4079 # Make sure file timestamps in the archive will not differ
4082 # For PAX archives, we need to make sure extended header names are
4083 # reproducible and that their contents won't change with time
4084 if test $TEST_TAR_FORMAT = posix; then
4085 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4088 echo Creating archive.1
4089 tar $MTIME -cf archive.1 file1 file2
4091 echo Creating archive.2
4092 tar $MTIME -cf archive.2 -T /dev/null
4093 tar $MTIME -rf archive.2 file1
4094 tar $MTIME -rf archive.2 file2
4096 echo Comparing archives
4097 cmp archive.1 archive.2
4098 ) ) >"$at_stdout" 2>"$at_stderr"
4103 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4104 echo >>"$at_stdout"; echo "Creating archive.1
4107 " | $at_diff - "$at_stdout" || at_failed=:
4109 77) echo 77 > "$at_status_file"; exit 77;;
4111 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4117 echo 1 > "$at_status_file"
4123 echo "$at_srcdir/append02.at:43:
4126 TEST_TAR_FORMAT=oldgnu
4127 export TEST_TAR_FORMAT
4128 TAR_OPTIONS=\"-H oldgnu\"
4132 genfile --file file1
4133 genfile --file file2
4135 # Make sure file timestamps in the archive will not differ
4136 MTIME=\"--mtime=@0\"
4138 # For PAX archives, we need to make sure extended header names are
4139 # reproducible and that their contents won't change with time
4140 if test \$TEST_TAR_FORMAT = posix; then
4141 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4144 echo Creating archive.1
4145 tar \$MTIME -cf archive.1 file1 file2
4147 echo Creating archive.2
4148 tar \$MTIME -cf archive.2 -T /dev/null
4149 tar \$MTIME -rf archive.2 file1
4150 tar \$MTIME -rf archive.2 file2
4152 echo Comparing archives
4153 cmp archive.1 archive.2
4155 echo append02.at:43 >"$at_check_line_file"
4158 if test -n "$at_traceon"; then
4159 echo 'Not enabling shell tracing (command contains an embedded newline)'
4162 if test -n "$at_trace_this"; then
4166 TEST_TAR_FORMAT=oldgnu
4167 export TEST_TAR_FORMAT
4168 TAR_OPTIONS="-H oldgnu"
4172 genfile --file file1
4173 genfile --file file2
4175 # Make sure file timestamps in the archive will not differ
4178 # For PAX archives, we need to make sure extended header names are
4179 # reproducible and that their contents won't change with time
4180 if test $TEST_TAR_FORMAT = posix; then
4181 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4184 echo Creating archive.1
4185 tar $MTIME -cf archive.1 file1 file2
4187 echo Creating archive.2
4188 tar $MTIME -cf archive.2 -T /dev/null
4189 tar $MTIME -rf archive.2 file1
4190 tar $MTIME -rf archive.2 file2
4192 echo Comparing archives
4193 cmp archive.1 archive.2
4194 ) ) >"$at_stdout" 2>"$at_stder1"
4196 grep '^ *+' "$at_stder1" >&2
4197 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4202 TEST_TAR_FORMAT=oldgnu
4203 export TEST_TAR_FORMAT
4204 TAR_OPTIONS="-H oldgnu"
4208 genfile --file file1
4209 genfile --file file2
4211 # Make sure file timestamps in the archive will not differ
4214 # For PAX archives, we need to make sure extended header names are
4215 # reproducible and that their contents won't change with time
4216 if test $TEST_TAR_FORMAT = posix; then
4217 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4220 echo Creating archive.1
4221 tar $MTIME -cf archive.1 file1 file2
4223 echo Creating archive.2
4224 tar $MTIME -cf archive.2 -T /dev/null
4225 tar $MTIME -rf archive.2 file1
4226 tar $MTIME -rf archive.2 file2
4228 echo Comparing archives
4229 cmp archive.1 archive.2
4230 ) ) >"$at_stdout" 2>"$at_stderr"
4235 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4236 echo >>"$at_stdout"; echo "Creating archive.1
4239 " | $at_diff - "$at_stdout" || at_failed=:
4241 77) echo 77 > "$at_status_file"; exit 77;;
4243 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4249 echo 1 > "$at_status_file"
4255 echo "$at_srcdir/append02.at:43:
4258 TEST_TAR_FORMAT=ustar
4259 export TEST_TAR_FORMAT
4260 TAR_OPTIONS=\"-H ustar\"
4264 genfile --file file1
4265 genfile --file file2
4267 # Make sure file timestamps in the archive will not differ
4268 MTIME=\"--mtime=@0\"
4270 # For PAX archives, we need to make sure extended header names are
4271 # reproducible and that their contents won't change with time
4272 if test \$TEST_TAR_FORMAT = posix; then
4273 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4276 echo Creating archive.1
4277 tar \$MTIME -cf archive.1 file1 file2
4279 echo Creating archive.2
4280 tar \$MTIME -cf archive.2 -T /dev/null
4281 tar \$MTIME -rf archive.2 file1
4282 tar \$MTIME -rf archive.2 file2
4284 echo Comparing archives
4285 cmp archive.1 archive.2
4287 echo append02.at:43 >"$at_check_line_file"
4290 if test -n "$at_traceon"; then
4291 echo 'Not enabling shell tracing (command contains an embedded newline)'
4294 if test -n "$at_trace_this"; then
4298 TEST_TAR_FORMAT=ustar
4299 export TEST_TAR_FORMAT
4300 TAR_OPTIONS="-H ustar"
4304 genfile --file file1
4305 genfile --file file2
4307 # Make sure file timestamps in the archive will not differ
4310 # For PAX archives, we need to make sure extended header names are
4311 # reproducible and that their contents won't change with time
4312 if test $TEST_TAR_FORMAT = posix; then
4313 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4316 echo Creating archive.1
4317 tar $MTIME -cf archive.1 file1 file2
4319 echo Creating archive.2
4320 tar $MTIME -cf archive.2 -T /dev/null
4321 tar $MTIME -rf archive.2 file1
4322 tar $MTIME -rf archive.2 file2
4324 echo Comparing archives
4325 cmp archive.1 archive.2
4326 ) ) >"$at_stdout" 2>"$at_stder1"
4328 grep '^ *+' "$at_stder1" >&2
4329 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4334 TEST_TAR_FORMAT=ustar
4335 export TEST_TAR_FORMAT
4336 TAR_OPTIONS="-H ustar"
4340 genfile --file file1
4341 genfile --file file2
4343 # Make sure file timestamps in the archive will not differ
4346 # For PAX archives, we need to make sure extended header names are
4347 # reproducible and that their contents won't change with time
4348 if test $TEST_TAR_FORMAT = posix; then
4349 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4352 echo Creating archive.1
4353 tar $MTIME -cf archive.1 file1 file2
4355 echo Creating archive.2
4356 tar $MTIME -cf archive.2 -T /dev/null
4357 tar $MTIME -rf archive.2 file1
4358 tar $MTIME -rf archive.2 file2
4360 echo Comparing archives
4361 cmp archive.1 archive.2
4362 ) ) >"$at_stdout" 2>"$at_stderr"
4367 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4368 echo >>"$at_stdout"; echo "Creating archive.1
4371 " | $at_diff - "$at_stdout" || at_failed=:
4373 77) echo 77 > "$at_status_file"; exit 77;;
4375 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4381 echo 1 > "$at_status_file"
4387 echo "$at_srcdir/append02.at:43:
4390 TEST_TAR_FORMAT=posix
4391 export TEST_TAR_FORMAT
4392 TAR_OPTIONS=\"-H posix\"
4396 genfile --file file1
4397 genfile --file file2
4399 # Make sure file timestamps in the archive will not differ
4400 MTIME=\"--mtime=@0\"
4402 # For PAX archives, we need to make sure extended header names are
4403 # reproducible and that their contents won't change with time
4404 if test \$TEST_TAR_FORMAT = posix; then
4405 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4408 echo Creating archive.1
4409 tar \$MTIME -cf archive.1 file1 file2
4411 echo Creating archive.2
4412 tar \$MTIME -cf archive.2 -T /dev/null
4413 tar \$MTIME -rf archive.2 file1
4414 tar \$MTIME -rf archive.2 file2
4416 echo Comparing archives
4417 cmp archive.1 archive.2
4419 echo append02.at:43 >"$at_check_line_file"
4422 if test -n "$at_traceon"; then
4423 echo 'Not enabling shell tracing (command contains an embedded newline)'
4426 if test -n "$at_trace_this"; then
4430 TEST_TAR_FORMAT=posix
4431 export TEST_TAR_FORMAT
4432 TAR_OPTIONS="-H posix"
4436 genfile --file file1
4437 genfile --file file2
4439 # Make sure file timestamps in the archive will not differ
4442 # For PAX archives, we need to make sure extended header names are
4443 # reproducible and that their contents won't change with time
4444 if test $TEST_TAR_FORMAT = posix; then
4445 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4448 echo Creating archive.1
4449 tar $MTIME -cf archive.1 file1 file2
4451 echo Creating archive.2
4452 tar $MTIME -cf archive.2 -T /dev/null
4453 tar $MTIME -rf archive.2 file1
4454 tar $MTIME -rf archive.2 file2
4456 echo Comparing archives
4457 cmp archive.1 archive.2
4458 ) ) >"$at_stdout" 2>"$at_stder1"
4460 grep '^ *+' "$at_stder1" >&2
4461 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4466 TEST_TAR_FORMAT=posix
4467 export TEST_TAR_FORMAT
4468 TAR_OPTIONS="-H posix"
4472 genfile --file file1
4473 genfile --file file2
4475 # Make sure file timestamps in the archive will not differ
4478 # For PAX archives, we need to make sure extended header names are
4479 # reproducible and that their contents won't change with time
4480 if test $TEST_TAR_FORMAT = posix; then
4481 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4484 echo Creating archive.1
4485 tar $MTIME -cf archive.1 file1 file2
4487 echo Creating archive.2
4488 tar $MTIME -cf archive.2 -T /dev/null
4489 tar $MTIME -rf archive.2 file1
4490 tar $MTIME -rf archive.2 file2
4492 echo Comparing archives
4493 cmp archive.1 archive.2
4494 ) ) >"$at_stdout" 2>"$at_stderr"
4499 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4500 echo >>"$at_stdout"; echo "Creating archive.1
4503 " | $at_diff - "$at_stdout" || at_failed=:
4505 77) echo 77 > "$at_status_file"; exit 77;;
4507 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4513 echo 1 > "$at_status_file"
4519 echo "$at_srcdir/append02.at:43:
4523 export TEST_TAR_FORMAT
4524 TAR_OPTIONS=\"-H gnu\"
4528 genfile --file file1
4529 genfile --file file2
4531 # Make sure file timestamps in the archive will not differ
4532 MTIME=\"--mtime=@0\"
4534 # For PAX archives, we need to make sure extended header names are
4535 # reproducible and that their contents won't change with time
4536 if test \$TEST_TAR_FORMAT = posix; then
4537 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4540 echo Creating archive.1
4541 tar \$MTIME -cf archive.1 file1 file2
4543 echo Creating archive.2
4544 tar \$MTIME -cf archive.2 -T /dev/null
4545 tar \$MTIME -rf archive.2 file1
4546 tar \$MTIME -rf archive.2 file2
4548 echo Comparing archives
4549 cmp archive.1 archive.2
4551 echo append02.at:43 >"$at_check_line_file"
4554 if test -n "$at_traceon"; then
4555 echo 'Not enabling shell tracing (command contains an embedded newline)'
4558 if test -n "$at_trace_this"; then
4563 export TEST_TAR_FORMAT
4564 TAR_OPTIONS="-H gnu"
4568 genfile --file file1
4569 genfile --file file2
4571 # Make sure file timestamps in the archive will not differ
4574 # For PAX archives, we need to make sure extended header names are
4575 # reproducible and that their contents won't change with time
4576 if test $TEST_TAR_FORMAT = posix; then
4577 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4580 echo Creating archive.1
4581 tar $MTIME -cf archive.1 file1 file2
4583 echo Creating archive.2
4584 tar $MTIME -cf archive.2 -T /dev/null
4585 tar $MTIME -rf archive.2 file1
4586 tar $MTIME -rf archive.2 file2
4588 echo Comparing archives
4589 cmp archive.1 archive.2
4590 ) ) >"$at_stdout" 2>"$at_stder1"
4592 grep '^ *+' "$at_stder1" >&2
4593 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4599 export TEST_TAR_FORMAT
4600 TAR_OPTIONS="-H gnu"
4604 genfile --file file1
4605 genfile --file file2
4607 # Make sure file timestamps in the archive will not differ
4610 # For PAX archives, we need to make sure extended header names are
4611 # reproducible and that their contents won't change with time
4612 if test $TEST_TAR_FORMAT = posix; then
4613 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4616 echo Creating archive.1
4617 tar $MTIME -cf archive.1 file1 file2
4619 echo Creating archive.2
4620 tar $MTIME -cf archive.2 -T /dev/null
4621 tar $MTIME -rf archive.2 file1
4622 tar $MTIME -rf archive.2 file2
4624 echo Comparing archives
4625 cmp archive.1 archive.2
4626 ) ) >"$at_stdout" 2>"$at_stderr"
4631 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4632 echo >>"$at_stdout"; echo "Creating archive.1
4635 " | $at_diff - "$at_stdout" || at_failed=:
4637 77) echo 77 > "$at_status_file"; exit 77;;
4639 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4645 echo 1 > "$at_status_file"
4654 $at_times_p && times >"$at_times_file"
4655 ) 5>&1 2>&1 | eval $at_tee_pipe
4656 at_status=`cat "$at_status_file"`
4659 12 ) # 12. exclude.at:23: exclude
4660 at_setup_line='exclude.at:23'
4662 $at_quiet $ECHO_N " 12: exclude $ECHO_C"
4664 test -f $XFAILFILE && at_xfail=yes
4665 echo "# -*- compilation -*-" >> "$at_group_log"
4667 echo "12. exclude.at:23: testing ..."
4675 echo "$at_srcdir/exclude.at:26:
4678 TEST_TAR_FORMAT=ustar
4679 export TEST_TAR_FORMAT
4680 TAR_OPTIONS=\"-H ustar\"
4685 test -z "`sort < /dev/null 2>&1`" || exit 77
4689 echo blues > dir/blues
4690 echo jazz > dir/jazz
4692 echo tagfile > dir/folk/tagfile
4693 echo sanjuan > dir/folk/sanjuan
4695 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
4696 echo \"test\" > dir/rock/file
4698 for option in exclude-caches exclude-caches-under exclude-caches-all
4700 echo OPTION \$option
4701 tar -cf archive.tar --\$option -v dir 2>err | sort
4704 tar tf archive.tar | sort
4707 for option in exclude-tag exclude-tag-under exclude-tag-all
4709 echo OPTION \$option
4710 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
4713 tar tf archive.tar | sort
4716 echo exclude.at:26 >"$at_check_line_file"
4719 if test -n "$at_traceon"; then
4720 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
4723 if test -n "$at_trace_this"; then
4727 TEST_TAR_FORMAT=ustar
4728 export TEST_TAR_FORMAT
4729 TAR_OPTIONS="-H ustar"
4734 test -z "`sort < /dev/null 2>&1`" || exit 77
4738 echo blues > dir/blues
4739 echo jazz > dir/jazz
4741 echo tagfile > dir/folk/tagfile
4742 echo sanjuan > dir/folk/sanjuan
4744 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
4745 echo "test" > dir/rock/file
4747 for option in exclude-caches exclude-caches-under exclude-caches-all
4750 tar -cf archive.tar --$option -v dir 2>err | sort
4753 tar tf archive.tar | sort
4756 for option in exclude-tag exclude-tag-under exclude-tag-all
4759 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
4762 tar tf archive.tar | sort
4764 ) ) >"$at_stdout" 2>"$at_stder1"
4766 grep '^ *+' "$at_stder1" >&2
4767 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4772 TEST_TAR_FORMAT=ustar
4773 export TEST_TAR_FORMAT
4774 TAR_OPTIONS="-H ustar"
4779 test -z "`sort < /dev/null 2>&1`" || exit 77
4783 echo blues > dir/blues
4784 echo jazz > dir/jazz
4786 echo tagfile > dir/folk/tagfile
4787 echo sanjuan > dir/folk/sanjuan
4789 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
4790 echo "test" > dir/rock/file
4792 for option in exclude-caches exclude-caches-under exclude-caches-all
4795 tar -cf archive.tar --$option -v dir 2>err | sort
4798 tar tf archive.tar | sort
4801 for option in exclude-tag exclude-tag-under exclude-tag-all
4804 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
4807 tar tf archive.tar | sort
4809 ) ) >"$at_stdout" 2>"$at_stderr"
4814 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4815 echo >>"$at_stdout"; echo "OPTION exclude-caches
4823 dir/rock/CACHEDIR.TAG
4824 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
4833 dir/rock/CACHEDIR.TAG
4834 OPTION exclude-caches-under
4842 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
4851 OPTION exclude-caches-all
4858 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
4873 dir/rock/CACHEDIR.TAG
4875 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
4883 dir/rock/CACHEDIR.TAG
4885 OPTION exclude-tag-under
4891 dir/rock/CACHEDIR.TAG
4893 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
4900 dir/rock/CACHEDIR.TAG
4902 OPTION exclude-tag-all
4907 dir/rock/CACHEDIR.TAG
4909 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
4915 dir/rock/CACHEDIR.TAG
4917 " | $at_diff - "$at_stdout" || at_failed=:
4919 77) echo 77 > "$at_status_file"; exit 77;;
4921 *) echo "$at_srcdir/exclude.at:26: exit code was $at_status, expected 0"
4927 echo 1 > "$at_status_file"
4936 $at_times_p && times >"$at_times_file"
4937 ) 5>&1 2>&1 | eval $at_tee_pipe
4938 at_status=`cat "$at_status_file"`
4941 13 ) # 13. delete01.at:23: deleting a member after a big one
4942 at_setup_line='delete01.at:23'
4943 at_desc="deleting a member after a big one"
4944 $at_quiet $ECHO_N " 13: deleting a member after a big one $ECHO_C"
4946 test -f $XFAILFILE && at_xfail=yes
4947 echo "# -*- compilation -*-" >> "$at_group_log"
4949 echo "13. delete01.at:23: testing ..."
4957 echo "$at_srcdir/delete01.at:26:
4961 export TEST_TAR_FORMAT
4962 TAR_OPTIONS=\"-H v7\"
4966 genfile -l 50000 --file file1
4967 genfile -l 1024 --file file2
4968 tar cf archive file1 file2
4969 tar f archive --delete file2
4971 echo delete01.at:26 >"$at_check_line_file"
4974 if test -n "$at_traceon"; then
4975 echo 'Not enabling shell tracing (command contains an embedded newline)'
4978 if test -n "$at_trace_this"; then
4983 export TEST_TAR_FORMAT
4988 genfile -l 50000 --file file1
4989 genfile -l 1024 --file file2
4990 tar cf archive file1 file2
4991 tar f archive --delete file2
4992 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
4994 grep '^ *+' "$at_stder1" >&2
4995 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5001 export TEST_TAR_FORMAT
5006 genfile -l 50000 --file file1
5007 genfile -l 1024 --file file2
5008 tar cf archive file1 file2
5009 tar f archive --delete file2
5010 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5015 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5016 echo >>"$at_stdout"; echo "file1
5017 " | $at_diff - "$at_stdout" || at_failed=:
5019 77) echo 77 > "$at_status_file"; exit 77;;
5021 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5027 echo 1 > "$at_status_file"
5033 echo "$at_srcdir/delete01.at:26:
5036 TEST_TAR_FORMAT=oldgnu
5037 export TEST_TAR_FORMAT
5038 TAR_OPTIONS=\"-H oldgnu\"
5042 genfile -l 50000 --file file1
5043 genfile -l 1024 --file file2
5044 tar cf archive file1 file2
5045 tar f archive --delete file2
5047 echo delete01.at:26 >"$at_check_line_file"
5050 if test -n "$at_traceon"; then
5051 echo 'Not enabling shell tracing (command contains an embedded newline)'
5054 if test -n "$at_trace_this"; then
5058 TEST_TAR_FORMAT=oldgnu
5059 export TEST_TAR_FORMAT
5060 TAR_OPTIONS="-H oldgnu"
5064 genfile -l 50000 --file file1
5065 genfile -l 1024 --file file2
5066 tar cf archive file1 file2
5067 tar f archive --delete file2
5068 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5070 grep '^ *+' "$at_stder1" >&2
5071 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5076 TEST_TAR_FORMAT=oldgnu
5077 export TEST_TAR_FORMAT
5078 TAR_OPTIONS="-H oldgnu"
5082 genfile -l 50000 --file file1
5083 genfile -l 1024 --file file2
5084 tar cf archive file1 file2
5085 tar f archive --delete file2
5086 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5091 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5092 echo >>"$at_stdout"; echo "file1
5093 " | $at_diff - "$at_stdout" || at_failed=:
5095 77) echo 77 > "$at_status_file"; exit 77;;
5097 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5103 echo 1 > "$at_status_file"
5109 echo "$at_srcdir/delete01.at:26:
5112 TEST_TAR_FORMAT=ustar
5113 export TEST_TAR_FORMAT
5114 TAR_OPTIONS=\"-H ustar\"
5118 genfile -l 50000 --file file1
5119 genfile -l 1024 --file file2
5120 tar cf archive file1 file2
5121 tar f archive --delete file2
5123 echo delete01.at:26 >"$at_check_line_file"
5126 if test -n "$at_traceon"; then
5127 echo 'Not enabling shell tracing (command contains an embedded newline)'
5130 if test -n "$at_trace_this"; then
5134 TEST_TAR_FORMAT=ustar
5135 export TEST_TAR_FORMAT
5136 TAR_OPTIONS="-H ustar"
5140 genfile -l 50000 --file file1
5141 genfile -l 1024 --file file2
5142 tar cf archive file1 file2
5143 tar f archive --delete file2
5144 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5146 grep '^ *+' "$at_stder1" >&2
5147 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5152 TEST_TAR_FORMAT=ustar
5153 export TEST_TAR_FORMAT
5154 TAR_OPTIONS="-H ustar"
5158 genfile -l 50000 --file file1
5159 genfile -l 1024 --file file2
5160 tar cf archive file1 file2
5161 tar f archive --delete file2
5162 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5167 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5168 echo >>"$at_stdout"; echo "file1
5169 " | $at_diff - "$at_stdout" || at_failed=:
5171 77) echo 77 > "$at_status_file"; exit 77;;
5173 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5179 echo 1 > "$at_status_file"
5185 echo "$at_srcdir/delete01.at:26:
5188 TEST_TAR_FORMAT=posix
5189 export TEST_TAR_FORMAT
5190 TAR_OPTIONS=\"-H posix\"
5194 genfile -l 50000 --file file1
5195 genfile -l 1024 --file file2
5196 tar cf archive file1 file2
5197 tar f archive --delete file2
5199 echo delete01.at:26 >"$at_check_line_file"
5202 if test -n "$at_traceon"; then
5203 echo 'Not enabling shell tracing (command contains an embedded newline)'
5206 if test -n "$at_trace_this"; then
5210 TEST_TAR_FORMAT=posix
5211 export TEST_TAR_FORMAT
5212 TAR_OPTIONS="-H posix"
5216 genfile -l 50000 --file file1
5217 genfile -l 1024 --file file2
5218 tar cf archive file1 file2
5219 tar f archive --delete file2
5220 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5222 grep '^ *+' "$at_stder1" >&2
5223 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5228 TEST_TAR_FORMAT=posix
5229 export TEST_TAR_FORMAT
5230 TAR_OPTIONS="-H posix"
5234 genfile -l 50000 --file file1
5235 genfile -l 1024 --file file2
5236 tar cf archive file1 file2
5237 tar f archive --delete file2
5238 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5243 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5244 echo >>"$at_stdout"; echo "file1
5245 " | $at_diff - "$at_stdout" || at_failed=:
5247 77) echo 77 > "$at_status_file"; exit 77;;
5249 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5255 echo 1 > "$at_status_file"
5261 echo "$at_srcdir/delete01.at:26:
5265 export TEST_TAR_FORMAT
5266 TAR_OPTIONS=\"-H gnu\"
5270 genfile -l 50000 --file file1
5271 genfile -l 1024 --file file2
5272 tar cf archive file1 file2
5273 tar f archive --delete file2
5275 echo delete01.at:26 >"$at_check_line_file"
5278 if test -n "$at_traceon"; then
5279 echo 'Not enabling shell tracing (command contains an embedded newline)'
5282 if test -n "$at_trace_this"; then
5287 export TEST_TAR_FORMAT
5288 TAR_OPTIONS="-H gnu"
5292 genfile -l 50000 --file file1
5293 genfile -l 1024 --file file2
5294 tar cf archive file1 file2
5295 tar f archive --delete file2
5296 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5298 grep '^ *+' "$at_stder1" >&2
5299 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5305 export TEST_TAR_FORMAT
5306 TAR_OPTIONS="-H gnu"
5310 genfile -l 50000 --file file1
5311 genfile -l 1024 --file file2
5312 tar cf archive file1 file2
5313 tar f archive --delete file2
5314 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5319 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5320 echo >>"$at_stdout"; echo "file1
5321 " | $at_diff - "$at_stdout" || at_failed=:
5323 77) echo 77 > "$at_status_file"; exit 77;;
5325 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5331 echo 1 > "$at_status_file"
5340 $at_times_p && times >"$at_times_file"
5341 ) 5>&1 2>&1 | eval $at_tee_pipe
5342 at_status=`cat "$at_status_file"`
5345 14 ) # 14. delete02.at:23: deleting a member from stdin archive
5346 at_setup_line='delete02.at:23'
5347 at_desc="deleting a member from stdin archive"
5348 $at_quiet $ECHO_N " 14: deleting a member from stdin archive $ECHO_C"
5350 test -f $XFAILFILE && at_xfail=yes
5351 echo "# -*- compilation -*-" >> "$at_group_log"
5353 echo "14. delete02.at:23: testing ..."
5361 echo "$at_srcdir/delete02.at:26:
5365 export TEST_TAR_FORMAT
5366 TAR_OPTIONS=\"-H v7\"
5370 genfile -l 3073 -p zeros --file 1
5373 tar cf archive 1 2 3
5375 cat archive | tar f - --delete 2 > archive2
5378 echo delete02.at:26 >"$at_check_line_file"
5381 if test -n "$at_traceon"; then
5382 echo 'Not enabling shell tracing (command contains an embedded newline)'
5385 if test -n "$at_trace_this"; then
5390 export TEST_TAR_FORMAT
5395 genfile -l 3073 -p zeros --file 1
5398 tar cf archive 1 2 3
5400 cat archive | tar f - --delete 2 > archive2
5402 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5404 grep '^ *+' "$at_stder1" >&2
5405 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5411 export TEST_TAR_FORMAT
5416 genfile -l 3073 -p zeros --file 1
5419 tar cf archive 1 2 3
5421 cat archive | tar f - --delete 2 > archive2
5423 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5428 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5429 echo >>"$at_stdout"; echo "1
5435 " | $at_diff - "$at_stdout" || at_failed=:
5437 77) echo 77 > "$at_status_file"; exit 77;;
5439 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5445 echo 1 > "$at_status_file"
5451 echo "$at_srcdir/delete02.at:26:
5454 TEST_TAR_FORMAT=oldgnu
5455 export TEST_TAR_FORMAT
5456 TAR_OPTIONS=\"-H oldgnu\"
5460 genfile -l 3073 -p zeros --file 1
5463 tar cf archive 1 2 3
5465 cat archive | tar f - --delete 2 > archive2
5468 echo delete02.at:26 >"$at_check_line_file"
5471 if test -n "$at_traceon"; then
5472 echo 'Not enabling shell tracing (command contains an embedded newline)'
5475 if test -n "$at_trace_this"; then
5479 TEST_TAR_FORMAT=oldgnu
5480 export TEST_TAR_FORMAT
5481 TAR_OPTIONS="-H oldgnu"
5485 genfile -l 3073 -p zeros --file 1
5488 tar cf archive 1 2 3
5490 cat archive | tar f - --delete 2 > archive2
5492 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5494 grep '^ *+' "$at_stder1" >&2
5495 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5500 TEST_TAR_FORMAT=oldgnu
5501 export TEST_TAR_FORMAT
5502 TAR_OPTIONS="-H oldgnu"
5506 genfile -l 3073 -p zeros --file 1
5509 tar cf archive 1 2 3
5511 cat archive | tar f - --delete 2 > archive2
5513 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5518 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5519 echo >>"$at_stdout"; echo "1
5525 " | $at_diff - "$at_stdout" || at_failed=:
5527 77) echo 77 > "$at_status_file"; exit 77;;
5529 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5535 echo 1 > "$at_status_file"
5541 echo "$at_srcdir/delete02.at:26:
5544 TEST_TAR_FORMAT=ustar
5545 export TEST_TAR_FORMAT
5546 TAR_OPTIONS=\"-H ustar\"
5550 genfile -l 3073 -p zeros --file 1
5553 tar cf archive 1 2 3
5555 cat archive | tar f - --delete 2 > archive2
5558 echo delete02.at:26 >"$at_check_line_file"
5561 if test -n "$at_traceon"; then
5562 echo 'Not enabling shell tracing (command contains an embedded newline)'
5565 if test -n "$at_trace_this"; then
5569 TEST_TAR_FORMAT=ustar
5570 export TEST_TAR_FORMAT
5571 TAR_OPTIONS="-H ustar"
5575 genfile -l 3073 -p zeros --file 1
5578 tar cf archive 1 2 3
5580 cat archive | tar f - --delete 2 > archive2
5582 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5584 grep '^ *+' "$at_stder1" >&2
5585 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5590 TEST_TAR_FORMAT=ustar
5591 export TEST_TAR_FORMAT
5592 TAR_OPTIONS="-H ustar"
5596 genfile -l 3073 -p zeros --file 1
5599 tar cf archive 1 2 3
5601 cat archive | tar f - --delete 2 > archive2
5603 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5608 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5609 echo >>"$at_stdout"; echo "1
5615 " | $at_diff - "$at_stdout" || at_failed=:
5617 77) echo 77 > "$at_status_file"; exit 77;;
5619 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5625 echo 1 > "$at_status_file"
5631 echo "$at_srcdir/delete02.at:26:
5634 TEST_TAR_FORMAT=posix
5635 export TEST_TAR_FORMAT
5636 TAR_OPTIONS=\"-H posix\"
5640 genfile -l 3073 -p zeros --file 1
5643 tar cf archive 1 2 3
5645 cat archive | tar f - --delete 2 > archive2
5648 echo delete02.at:26 >"$at_check_line_file"
5651 if test -n "$at_traceon"; then
5652 echo 'Not enabling shell tracing (command contains an embedded newline)'
5655 if test -n "$at_trace_this"; then
5659 TEST_TAR_FORMAT=posix
5660 export TEST_TAR_FORMAT
5661 TAR_OPTIONS="-H posix"
5665 genfile -l 3073 -p zeros --file 1
5668 tar cf archive 1 2 3
5670 cat archive | tar f - --delete 2 > archive2
5672 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5674 grep '^ *+' "$at_stder1" >&2
5675 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5680 TEST_TAR_FORMAT=posix
5681 export TEST_TAR_FORMAT
5682 TAR_OPTIONS="-H posix"
5686 genfile -l 3073 -p zeros --file 1
5689 tar cf archive 1 2 3
5691 cat archive | tar f - --delete 2 > archive2
5693 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5698 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5699 echo >>"$at_stdout"; echo "1
5705 " | $at_diff - "$at_stdout" || at_failed=:
5707 77) echo 77 > "$at_status_file"; exit 77;;
5709 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5715 echo 1 > "$at_status_file"
5721 echo "$at_srcdir/delete02.at:26:
5725 export TEST_TAR_FORMAT
5726 TAR_OPTIONS=\"-H gnu\"
5730 genfile -l 3073 -p zeros --file 1
5733 tar cf archive 1 2 3
5735 cat archive | tar f - --delete 2 > archive2
5738 echo delete02.at:26 >"$at_check_line_file"
5741 if test -n "$at_traceon"; then
5742 echo 'Not enabling shell tracing (command contains an embedded newline)'
5745 if test -n "$at_trace_this"; then
5750 export TEST_TAR_FORMAT
5751 TAR_OPTIONS="-H gnu"
5755 genfile -l 3073 -p zeros --file 1
5758 tar cf archive 1 2 3
5760 cat archive | tar f - --delete 2 > archive2
5762 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5764 grep '^ *+' "$at_stder1" >&2
5765 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5771 export TEST_TAR_FORMAT
5772 TAR_OPTIONS="-H gnu"
5776 genfile -l 3073 -p zeros --file 1
5779 tar cf archive 1 2 3
5781 cat archive | tar f - --delete 2 > archive2
5783 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5788 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5789 echo >>"$at_stdout"; echo "1
5795 " | $at_diff - "$at_stdout" || at_failed=:
5797 77) echo 77 > "$at_status_file"; exit 77;;
5799 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5805 echo 1 > "$at_status_file"
5814 $at_times_p && times >"$at_times_file"
5815 ) 5>&1 2>&1 | eval $at_tee_pipe
5816 at_status=`cat "$at_status_file"`
5819 15 ) # 15. delete03.at:21: deleting members with long names
5820 at_setup_line='delete03.at:21'
5821 at_desc="deleting members with long names"
5822 $at_quiet $ECHO_N " 15: deleting members with long names $ECHO_C"
5824 test -f $XFAILFILE && at_xfail=yes
5825 echo "# -*- compilation -*-" >> "$at_group_log"
5827 echo "15. delete03.at:21: testing ..."
5837 echo "$at_srcdir/delete03.at:26:
5841 export TEST_TAR_FORMAT
5842 TAR_OPTIONS=\"-H gnu\"
5847 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
5849 for i in 1 2 3 4 5 6 7 8 9
5850 do touch \$prefix\$i
5852 tar -cf archive ./\$prefix* &&
5853 tar --delete -f archive ./\${prefix}5 &&
5856 echo delete03.at:26 >"$at_check_line_file"
5859 if test -n "$at_traceon"; then
5860 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5863 if test -n "$at_trace_this"; then
5868 export TEST_TAR_FORMAT
5869 TAR_OPTIONS="-H gnu"
5874 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
5876 for i in 1 2 3 4 5 6 7 8 9
5879 tar -cf archive ./$prefix* &&
5880 tar --delete -f archive ./${prefix}5 &&
5882 ) ) >"$at_stdout" 2>"$at_stder1"
5884 grep '^ *+' "$at_stder1" >&2
5885 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5891 export TEST_TAR_FORMAT
5892 TAR_OPTIONS="-H gnu"
5897 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
5899 for i in 1 2 3 4 5 6 7 8 9
5902 tar -cf archive ./$prefix* &&
5903 tar --delete -f archive ./${prefix}5 &&
5905 ) ) >"$at_stdout" 2>"$at_stderr"
5910 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5911 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
5912 ./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
5913 ./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
5914 ./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
5915 ./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
5916 ./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
5917 ./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
5918 ./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
5919 " | $at_diff - "$at_stdout" || at_failed=:
5921 77) echo 77 > "$at_status_file"; exit 77;;
5923 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
5929 echo 1 > "$at_status_file"
5935 echo "$at_srcdir/delete03.at:26:
5938 TEST_TAR_FORMAT=oldgnu
5939 export TEST_TAR_FORMAT
5940 TAR_OPTIONS=\"-H oldgnu\"
5945 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
5947 for i in 1 2 3 4 5 6 7 8 9
5948 do touch \$prefix\$i
5950 tar -cf archive ./\$prefix* &&
5951 tar --delete -f archive ./\${prefix}5 &&
5954 echo delete03.at:26 >"$at_check_line_file"
5957 if test -n "$at_traceon"; then
5958 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5961 if test -n "$at_trace_this"; then
5965 TEST_TAR_FORMAT=oldgnu
5966 export TEST_TAR_FORMAT
5967 TAR_OPTIONS="-H oldgnu"
5972 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
5974 for i in 1 2 3 4 5 6 7 8 9
5977 tar -cf archive ./$prefix* &&
5978 tar --delete -f archive ./${prefix}5 &&
5980 ) ) >"$at_stdout" 2>"$at_stder1"
5982 grep '^ *+' "$at_stder1" >&2
5983 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5988 TEST_TAR_FORMAT=oldgnu
5989 export TEST_TAR_FORMAT
5990 TAR_OPTIONS="-H oldgnu"
5995 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
5997 for i in 1 2 3 4 5 6 7 8 9
6000 tar -cf archive ./$prefix* &&
6001 tar --delete -f archive ./${prefix}5 &&
6003 ) ) >"$at_stdout" 2>"$at_stderr"
6008 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6009 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
6010 ./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
6011 ./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
6012 ./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
6013 ./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
6014 ./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
6015 ./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
6016 ./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
6017 " | $at_diff - "$at_stdout" || at_failed=:
6019 77) echo 77 > "$at_status_file"; exit 77;;
6021 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6027 echo 1 > "$at_status_file"
6033 echo "$at_srcdir/delete03.at:26:
6036 TEST_TAR_FORMAT=posix
6037 export TEST_TAR_FORMAT
6038 TAR_OPTIONS=\"-H posix\"
6043 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
6045 for i in 1 2 3 4 5 6 7 8 9
6046 do touch \$prefix\$i
6048 tar -cf archive ./\$prefix* &&
6049 tar --delete -f archive ./\${prefix}5 &&
6052 echo delete03.at:26 >"$at_check_line_file"
6055 if test -n "$at_traceon"; then
6056 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
6059 if test -n "$at_trace_this"; then
6063 TEST_TAR_FORMAT=posix
6064 export TEST_TAR_FORMAT
6065 TAR_OPTIONS="-H posix"
6070 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
6072 for i in 1 2 3 4 5 6 7 8 9
6075 tar -cf archive ./$prefix* &&
6076 tar --delete -f archive ./${prefix}5 &&
6078 ) ) >"$at_stdout" 2>"$at_stder1"
6080 grep '^ *+' "$at_stder1" >&2
6081 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6086 TEST_TAR_FORMAT=posix
6087 export TEST_TAR_FORMAT
6088 TAR_OPTIONS="-H posix"
6093 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
6095 for i in 1 2 3 4 5 6 7 8 9
6098 tar -cf archive ./$prefix* &&
6099 tar --delete -f archive ./${prefix}5 &&
6101 ) ) >"$at_stdout" 2>"$at_stderr"
6106 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6107 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
6108 ./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
6109 ./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
6110 ./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
6111 ./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
6112 ./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
6113 ./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
6114 ./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
6115 " | $at_diff - "$at_stdout" || at_failed=:
6117 77) echo 77 > "$at_status_file"; exit 77;;
6119 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6125 echo 1 > "$at_status_file"
6134 $at_times_p && times >"$at_times_file"
6135 ) 5>&1 2>&1 | eval $at_tee_pipe
6136 at_status=`cat "$at_status_file"`
6139 16 ) # 16. delete04.at:23: deleting a large last member
6140 at_setup_line='delete04.at:23'
6141 at_desc="deleting a large last member"
6142 $at_quiet $ECHO_N " 16: deleting a large last member $ECHO_C"
6144 test -f $XFAILFILE && at_xfail=yes
6145 echo "# -*- compilation -*-" >> "$at_group_log"
6147 echo "16. delete04.at:23: testing ..."
6155 echo "$at_srcdir/delete04.at:26:
6159 export TEST_TAR_FORMAT
6160 TAR_OPTIONS=\"-H v7\"
6164 genfile -l 3 -f file1
6165 genfile -l 5 -f file2
6166 genfile -l 3 -f file3
6167 genfile -l 6 -f file4
6168 genfile -l 24 -f file5
6169 genfile -l 13 -f file6
6170 genfile -l 1385 -f file7
6171 genfile -l 30 -f file8
6172 genfile -l 10 -f file9
6173 genfile -l 256000 -f file10
6174 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6175 tar f archive --delete file10
6178 echo delete04.at:26 >"$at_check_line_file"
6181 if test -n "$at_traceon"; then
6182 echo 'Not enabling shell tracing (command contains an embedded newline)'
6185 if test -n "$at_trace_this"; then
6190 export TEST_TAR_FORMAT
6195 genfile -l 3 -f file1
6196 genfile -l 5 -f file2
6197 genfile -l 3 -f file3
6198 genfile -l 6 -f file4
6199 genfile -l 24 -f file5
6200 genfile -l 13 -f file6
6201 genfile -l 1385 -f file7
6202 genfile -l 30 -f file8
6203 genfile -l 10 -f file9
6204 genfile -l 256000 -f file10
6205 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6206 tar f archive --delete file10
6208 ) ) >"$at_stdout" 2>"$at_stder1"
6210 grep '^ *+' "$at_stder1" >&2
6211 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6217 export TEST_TAR_FORMAT
6222 genfile -l 3 -f file1
6223 genfile -l 5 -f file2
6224 genfile -l 3 -f file3
6225 genfile -l 6 -f file4
6226 genfile -l 24 -f file5
6227 genfile -l 13 -f file6
6228 genfile -l 1385 -f file7
6229 genfile -l 30 -f file8
6230 genfile -l 10 -f file9
6231 genfile -l 256000 -f file10
6232 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6233 tar f archive --delete file10
6235 ) ) >"$at_stdout" 2>"$at_stderr"
6240 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6241 echo >>"$at_stdout"; echo "file1
6250 " | $at_diff - "$at_stdout" || at_failed=:
6252 77) echo 77 > "$at_status_file"; exit 77;;
6254 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6260 echo 1 > "$at_status_file"
6266 echo "$at_srcdir/delete04.at:26:
6269 TEST_TAR_FORMAT=oldgnu
6270 export TEST_TAR_FORMAT
6271 TAR_OPTIONS=\"-H oldgnu\"
6275 genfile -l 3 -f file1
6276 genfile -l 5 -f file2
6277 genfile -l 3 -f file3
6278 genfile -l 6 -f file4
6279 genfile -l 24 -f file5
6280 genfile -l 13 -f file6
6281 genfile -l 1385 -f file7
6282 genfile -l 30 -f file8
6283 genfile -l 10 -f file9
6284 genfile -l 256000 -f file10
6285 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6286 tar f archive --delete file10
6289 echo delete04.at:26 >"$at_check_line_file"
6292 if test -n "$at_traceon"; then
6293 echo 'Not enabling shell tracing (command contains an embedded newline)'
6296 if test -n "$at_trace_this"; then
6300 TEST_TAR_FORMAT=oldgnu
6301 export TEST_TAR_FORMAT
6302 TAR_OPTIONS="-H oldgnu"
6306 genfile -l 3 -f file1
6307 genfile -l 5 -f file2
6308 genfile -l 3 -f file3
6309 genfile -l 6 -f file4
6310 genfile -l 24 -f file5
6311 genfile -l 13 -f file6
6312 genfile -l 1385 -f file7
6313 genfile -l 30 -f file8
6314 genfile -l 10 -f file9
6315 genfile -l 256000 -f file10
6316 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6317 tar f archive --delete file10
6319 ) ) >"$at_stdout" 2>"$at_stder1"
6321 grep '^ *+' "$at_stder1" >&2
6322 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6327 TEST_TAR_FORMAT=oldgnu
6328 export TEST_TAR_FORMAT
6329 TAR_OPTIONS="-H oldgnu"
6333 genfile -l 3 -f file1
6334 genfile -l 5 -f file2
6335 genfile -l 3 -f file3
6336 genfile -l 6 -f file4
6337 genfile -l 24 -f file5
6338 genfile -l 13 -f file6
6339 genfile -l 1385 -f file7
6340 genfile -l 30 -f file8
6341 genfile -l 10 -f file9
6342 genfile -l 256000 -f file10
6343 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6344 tar f archive --delete file10
6346 ) ) >"$at_stdout" 2>"$at_stderr"
6351 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6352 echo >>"$at_stdout"; echo "file1
6361 " | $at_diff - "$at_stdout" || at_failed=:
6363 77) echo 77 > "$at_status_file"; exit 77;;
6365 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6371 echo 1 > "$at_status_file"
6377 echo "$at_srcdir/delete04.at:26:
6380 TEST_TAR_FORMAT=ustar
6381 export TEST_TAR_FORMAT
6382 TAR_OPTIONS=\"-H ustar\"
6386 genfile -l 3 -f file1
6387 genfile -l 5 -f file2
6388 genfile -l 3 -f file3
6389 genfile -l 6 -f file4
6390 genfile -l 24 -f file5
6391 genfile -l 13 -f file6
6392 genfile -l 1385 -f file7
6393 genfile -l 30 -f file8
6394 genfile -l 10 -f file9
6395 genfile -l 256000 -f file10
6396 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6397 tar f archive --delete file10
6400 echo delete04.at:26 >"$at_check_line_file"
6403 if test -n "$at_traceon"; then
6404 echo 'Not enabling shell tracing (command contains an embedded newline)'
6407 if test -n "$at_trace_this"; then
6411 TEST_TAR_FORMAT=ustar
6412 export TEST_TAR_FORMAT
6413 TAR_OPTIONS="-H ustar"
6417 genfile -l 3 -f file1
6418 genfile -l 5 -f file2
6419 genfile -l 3 -f file3
6420 genfile -l 6 -f file4
6421 genfile -l 24 -f file5
6422 genfile -l 13 -f file6
6423 genfile -l 1385 -f file7
6424 genfile -l 30 -f file8
6425 genfile -l 10 -f file9
6426 genfile -l 256000 -f file10
6427 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6428 tar f archive --delete file10
6430 ) ) >"$at_stdout" 2>"$at_stder1"
6432 grep '^ *+' "$at_stder1" >&2
6433 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6438 TEST_TAR_FORMAT=ustar
6439 export TEST_TAR_FORMAT
6440 TAR_OPTIONS="-H ustar"
6444 genfile -l 3 -f file1
6445 genfile -l 5 -f file2
6446 genfile -l 3 -f file3
6447 genfile -l 6 -f file4
6448 genfile -l 24 -f file5
6449 genfile -l 13 -f file6
6450 genfile -l 1385 -f file7
6451 genfile -l 30 -f file8
6452 genfile -l 10 -f file9
6453 genfile -l 256000 -f file10
6454 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6455 tar f archive --delete file10
6457 ) ) >"$at_stdout" 2>"$at_stderr"
6462 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6463 echo >>"$at_stdout"; echo "file1
6472 " | $at_diff - "$at_stdout" || at_failed=:
6474 77) echo 77 > "$at_status_file"; exit 77;;
6476 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6482 echo 1 > "$at_status_file"
6488 echo "$at_srcdir/delete04.at:26:
6491 TEST_TAR_FORMAT=posix
6492 export TEST_TAR_FORMAT
6493 TAR_OPTIONS=\"-H posix\"
6497 genfile -l 3 -f file1
6498 genfile -l 5 -f file2
6499 genfile -l 3 -f file3
6500 genfile -l 6 -f file4
6501 genfile -l 24 -f file5
6502 genfile -l 13 -f file6
6503 genfile -l 1385 -f file7
6504 genfile -l 30 -f file8
6505 genfile -l 10 -f file9
6506 genfile -l 256000 -f file10
6507 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6508 tar f archive --delete file10
6511 echo delete04.at:26 >"$at_check_line_file"
6514 if test -n "$at_traceon"; then
6515 echo 'Not enabling shell tracing (command contains an embedded newline)'
6518 if test -n "$at_trace_this"; then
6522 TEST_TAR_FORMAT=posix
6523 export TEST_TAR_FORMAT
6524 TAR_OPTIONS="-H posix"
6528 genfile -l 3 -f file1
6529 genfile -l 5 -f file2
6530 genfile -l 3 -f file3
6531 genfile -l 6 -f file4
6532 genfile -l 24 -f file5
6533 genfile -l 13 -f file6
6534 genfile -l 1385 -f file7
6535 genfile -l 30 -f file8
6536 genfile -l 10 -f file9
6537 genfile -l 256000 -f file10
6538 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6539 tar f archive --delete file10
6541 ) ) >"$at_stdout" 2>"$at_stder1"
6543 grep '^ *+' "$at_stder1" >&2
6544 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6549 TEST_TAR_FORMAT=posix
6550 export TEST_TAR_FORMAT
6551 TAR_OPTIONS="-H posix"
6555 genfile -l 3 -f file1
6556 genfile -l 5 -f file2
6557 genfile -l 3 -f file3
6558 genfile -l 6 -f file4
6559 genfile -l 24 -f file5
6560 genfile -l 13 -f file6
6561 genfile -l 1385 -f file7
6562 genfile -l 30 -f file8
6563 genfile -l 10 -f file9
6564 genfile -l 256000 -f file10
6565 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6566 tar f archive --delete file10
6568 ) ) >"$at_stdout" 2>"$at_stderr"
6573 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6574 echo >>"$at_stdout"; echo "file1
6583 " | $at_diff - "$at_stdout" || at_failed=:
6585 77) echo 77 > "$at_status_file"; exit 77;;
6587 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6593 echo 1 > "$at_status_file"
6599 echo "$at_srcdir/delete04.at:26:
6603 export TEST_TAR_FORMAT
6604 TAR_OPTIONS=\"-H gnu\"
6608 genfile -l 3 -f file1
6609 genfile -l 5 -f file2
6610 genfile -l 3 -f file3
6611 genfile -l 6 -f file4
6612 genfile -l 24 -f file5
6613 genfile -l 13 -f file6
6614 genfile -l 1385 -f file7
6615 genfile -l 30 -f file8
6616 genfile -l 10 -f file9
6617 genfile -l 256000 -f file10
6618 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6619 tar f archive --delete file10
6622 echo delete04.at:26 >"$at_check_line_file"
6625 if test -n "$at_traceon"; then
6626 echo 'Not enabling shell tracing (command contains an embedded newline)'
6629 if test -n "$at_trace_this"; then
6634 export TEST_TAR_FORMAT
6635 TAR_OPTIONS="-H gnu"
6639 genfile -l 3 -f file1
6640 genfile -l 5 -f file2
6641 genfile -l 3 -f file3
6642 genfile -l 6 -f file4
6643 genfile -l 24 -f file5
6644 genfile -l 13 -f file6
6645 genfile -l 1385 -f file7
6646 genfile -l 30 -f file8
6647 genfile -l 10 -f file9
6648 genfile -l 256000 -f file10
6649 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6650 tar f archive --delete file10
6652 ) ) >"$at_stdout" 2>"$at_stder1"
6654 grep '^ *+' "$at_stder1" >&2
6655 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6661 export TEST_TAR_FORMAT
6662 TAR_OPTIONS="-H gnu"
6666 genfile -l 3 -f file1
6667 genfile -l 5 -f file2
6668 genfile -l 3 -f file3
6669 genfile -l 6 -f file4
6670 genfile -l 24 -f file5
6671 genfile -l 13 -f file6
6672 genfile -l 1385 -f file7
6673 genfile -l 30 -f file8
6674 genfile -l 10 -f file9
6675 genfile -l 256000 -f file10
6676 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6677 tar f archive --delete file10
6679 ) ) >"$at_stdout" 2>"$at_stderr"
6684 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6685 echo >>"$at_stdout"; echo "file1
6694 " | $at_diff - "$at_stdout" || at_failed=:
6696 77) echo 77 > "$at_status_file"; exit 77;;
6698 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6704 echo 1 > "$at_status_file"
6713 $at_times_p && times >"$at_times_file"
6714 ) 5>&1 2>&1 | eval $at_tee_pipe
6715 at_status=`cat "$at_status_file"`
6718 17 ) # 17. delete05.at:27: deleting non-existing member
6719 at_setup_line='delete05.at:27'
6720 at_desc="deleting non-existing member"
6721 $at_quiet $ECHO_N " 17: deleting non-existing member $ECHO_C"
6723 test -f $XFAILFILE && at_xfail=yes
6724 echo "# -*- compilation -*-" >> "$at_group_log"
6726 echo "17. delete05.at:27: testing ..."
6734 echo "$at_srcdir/delete05.at:30:
6738 export TEST_TAR_FORMAT
6739 TAR_OPTIONS=\"-H v7\"
6743 genfile -l 1024 -f en
6744 genfile -l 1024 -f to
6746 tar cf archive en to
6747 # Make sure we don't use bogus blocking factor.
6748 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6749 tar --file archive --blocking-factor=20 --delete tre
6752 echo delete05.at:30 >"$at_check_line_file"
6755 if test -n "$at_traceon"; then
6756 echo 'Not enabling shell tracing (command contains an embedded newline)'
6759 if test -n "$at_trace_this"; then
6764 export TEST_TAR_FORMAT
6769 genfile -l 1024 -f en
6770 genfile -l 1024 -f to
6772 tar cf archive en to
6773 # Make sure we don't use bogus blocking factor.
6774 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6775 tar --file archive --blocking-factor=20 --delete tre
6777 ) ) >"$at_stdout" 2>"$at_stder1"
6779 grep '^ *+' "$at_stder1" >&2
6780 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6786 export TEST_TAR_FORMAT
6791 genfile -l 1024 -f en
6792 genfile -l 1024 -f to
6794 tar cf archive en to
6795 # Make sure we don't use bogus blocking factor.
6796 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6797 tar --file archive --blocking-factor=20 --delete tre
6799 ) ) >"$at_stdout" 2>"$at_stderr"
6804 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6805 tar: Exiting with failure status due to previous errors
6806 " | $at_diff - "$at_stderr" || at_failed=:
6807 echo >>"$at_stdout"; echo "en
6809 " | $at_diff - "$at_stdout" || at_failed=:
6811 77) echo 77 > "$at_status_file"; exit 77;;
6813 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
6819 echo 1 > "$at_status_file"
6825 echo "$at_srcdir/delete05.at:30:
6828 TEST_TAR_FORMAT=oldgnu
6829 export TEST_TAR_FORMAT
6830 TAR_OPTIONS=\"-H oldgnu\"
6834 genfile -l 1024 -f en
6835 genfile -l 1024 -f to
6837 tar cf archive en to
6838 # Make sure we don't use bogus blocking factor.
6839 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6840 tar --file archive --blocking-factor=20 --delete tre
6843 echo delete05.at:30 >"$at_check_line_file"
6846 if test -n "$at_traceon"; then
6847 echo 'Not enabling shell tracing (command contains an embedded newline)'
6850 if test -n "$at_trace_this"; then
6854 TEST_TAR_FORMAT=oldgnu
6855 export TEST_TAR_FORMAT
6856 TAR_OPTIONS="-H oldgnu"
6860 genfile -l 1024 -f en
6861 genfile -l 1024 -f to
6863 tar cf archive en to
6864 # Make sure we don't use bogus blocking factor.
6865 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6866 tar --file archive --blocking-factor=20 --delete tre
6868 ) ) >"$at_stdout" 2>"$at_stder1"
6870 grep '^ *+' "$at_stder1" >&2
6871 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6876 TEST_TAR_FORMAT=oldgnu
6877 export TEST_TAR_FORMAT
6878 TAR_OPTIONS="-H oldgnu"
6882 genfile -l 1024 -f en
6883 genfile -l 1024 -f to
6885 tar cf archive en to
6886 # Make sure we don't use bogus blocking factor.
6887 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6888 tar --file archive --blocking-factor=20 --delete tre
6890 ) ) >"$at_stdout" 2>"$at_stderr"
6895 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6896 tar: Exiting with failure status due to previous errors
6897 " | $at_diff - "$at_stderr" || at_failed=:
6898 echo >>"$at_stdout"; echo "en
6900 " | $at_diff - "$at_stdout" || at_failed=:
6902 77) echo 77 > "$at_status_file"; exit 77;;
6904 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
6910 echo 1 > "$at_status_file"
6916 echo "$at_srcdir/delete05.at:30:
6919 TEST_TAR_FORMAT=ustar
6920 export TEST_TAR_FORMAT
6921 TAR_OPTIONS=\"-H ustar\"
6925 genfile -l 1024 -f en
6926 genfile -l 1024 -f to
6928 tar cf archive en to
6929 # Make sure we don't use bogus blocking factor.
6930 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6931 tar --file archive --blocking-factor=20 --delete tre
6934 echo delete05.at:30 >"$at_check_line_file"
6937 if test -n "$at_traceon"; then
6938 echo 'Not enabling shell tracing (command contains an embedded newline)'
6941 if test -n "$at_trace_this"; then
6945 TEST_TAR_FORMAT=ustar
6946 export TEST_TAR_FORMAT
6947 TAR_OPTIONS="-H ustar"
6951 genfile -l 1024 -f en
6952 genfile -l 1024 -f to
6954 tar cf archive en to
6955 # Make sure we don't use bogus blocking factor.
6956 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6957 tar --file archive --blocking-factor=20 --delete tre
6959 ) ) >"$at_stdout" 2>"$at_stder1"
6961 grep '^ *+' "$at_stder1" >&2
6962 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6967 TEST_TAR_FORMAT=ustar
6968 export TEST_TAR_FORMAT
6969 TAR_OPTIONS="-H ustar"
6973 genfile -l 1024 -f en
6974 genfile -l 1024 -f to
6976 tar cf archive en to
6977 # Make sure we don't use bogus blocking factor.
6978 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6979 tar --file archive --blocking-factor=20 --delete tre
6981 ) ) >"$at_stdout" 2>"$at_stderr"
6986 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6987 tar: Exiting with failure status due to previous errors
6988 " | $at_diff - "$at_stderr" || at_failed=:
6989 echo >>"$at_stdout"; echo "en
6991 " | $at_diff - "$at_stdout" || at_failed=:
6993 77) echo 77 > "$at_status_file"; exit 77;;
6995 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7001 echo 1 > "$at_status_file"
7007 echo "$at_srcdir/delete05.at:30:
7010 TEST_TAR_FORMAT=posix
7011 export TEST_TAR_FORMAT
7012 TAR_OPTIONS=\"-H posix\"
7016 genfile -l 1024 -f en
7017 genfile -l 1024 -f to
7019 tar cf archive en to
7020 # Make sure we don't use bogus blocking factor.
7021 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7022 tar --file archive --blocking-factor=20 --delete tre
7025 echo delete05.at:30 >"$at_check_line_file"
7028 if test -n "$at_traceon"; then
7029 echo 'Not enabling shell tracing (command contains an embedded newline)'
7032 if test -n "$at_trace_this"; then
7036 TEST_TAR_FORMAT=posix
7037 export TEST_TAR_FORMAT
7038 TAR_OPTIONS="-H posix"
7042 genfile -l 1024 -f en
7043 genfile -l 1024 -f to
7045 tar cf archive en to
7046 # Make sure we don't use bogus blocking factor.
7047 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7048 tar --file archive --blocking-factor=20 --delete tre
7050 ) ) >"$at_stdout" 2>"$at_stder1"
7052 grep '^ *+' "$at_stder1" >&2
7053 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7058 TEST_TAR_FORMAT=posix
7059 export TEST_TAR_FORMAT
7060 TAR_OPTIONS="-H posix"
7064 genfile -l 1024 -f en
7065 genfile -l 1024 -f to
7067 tar cf archive en to
7068 # Make sure we don't use bogus blocking factor.
7069 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7070 tar --file archive --blocking-factor=20 --delete tre
7072 ) ) >"$at_stdout" 2>"$at_stderr"
7077 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7078 tar: Exiting with failure status due to previous errors
7079 " | $at_diff - "$at_stderr" || at_failed=:
7080 echo >>"$at_stdout"; echo "en
7082 " | $at_diff - "$at_stdout" || at_failed=:
7084 77) echo 77 > "$at_status_file"; exit 77;;
7086 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7092 echo 1 > "$at_status_file"
7098 echo "$at_srcdir/delete05.at:30:
7102 export TEST_TAR_FORMAT
7103 TAR_OPTIONS=\"-H gnu\"
7107 genfile -l 1024 -f en
7108 genfile -l 1024 -f to
7110 tar cf archive en to
7111 # Make sure we don't use bogus blocking factor.
7112 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7113 tar --file archive --blocking-factor=20 --delete tre
7116 echo delete05.at:30 >"$at_check_line_file"
7119 if test -n "$at_traceon"; then
7120 echo 'Not enabling shell tracing (command contains an embedded newline)'
7123 if test -n "$at_trace_this"; then
7128 export TEST_TAR_FORMAT
7129 TAR_OPTIONS="-H gnu"
7133 genfile -l 1024 -f en
7134 genfile -l 1024 -f to
7136 tar cf archive en to
7137 # Make sure we don't use bogus blocking factor.
7138 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7139 tar --file archive --blocking-factor=20 --delete tre
7141 ) ) >"$at_stdout" 2>"$at_stder1"
7143 grep '^ *+' "$at_stder1" >&2
7144 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7150 export TEST_TAR_FORMAT
7151 TAR_OPTIONS="-H gnu"
7155 genfile -l 1024 -f en
7156 genfile -l 1024 -f to
7158 tar cf archive en to
7159 # Make sure we don't use bogus blocking factor.
7160 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7161 tar --file archive --blocking-factor=20 --delete tre
7163 ) ) >"$at_stdout" 2>"$at_stderr"
7168 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7169 tar: Exiting with failure status due to previous errors
7170 " | $at_diff - "$at_stderr" || at_failed=:
7171 echo >>"$at_stdout"; echo "en
7173 " | $at_diff - "$at_stdout" || at_failed=:
7175 77) echo 77 > "$at_status_file"; exit 77;;
7177 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7183 echo 1 > "$at_status_file"
7192 $at_times_p && times >"$at_times_file"
7193 ) 5>&1 2>&1 | eval $at_tee_pipe
7194 at_status=`cat "$at_status_file"`
7197 18 ) # 18. extrac01.at:23: extract over an existing directory
7198 at_setup_line='extrac01.at:23'
7199 at_desc="extract over an existing directory"
7200 $at_quiet $ECHO_N " 18: extract over an existing directory $ECHO_C"
7202 test -f $XFAILFILE && at_xfail=yes
7203 echo "# -*- compilation -*-" >> "$at_group_log"
7205 echo "18. extrac01.at:23: testing ..."
7213 echo "$at_srcdir/extrac01.at:26:
7217 export TEST_TAR_FORMAT
7218 TAR_OPTIONS=\"-H v7\"
7223 touch directory/file
7224 tar cf archive directory || exit 1
7225 tar xf archive || exit 1
7227 echo extrac01.at:26 >"$at_check_line_file"
7230 if test -n "$at_traceon"; then
7231 echo 'Not enabling shell tracing (command contains an embedded newline)'
7234 if test -n "$at_trace_this"; then
7239 export TEST_TAR_FORMAT
7245 touch directory/file
7246 tar cf archive directory || exit 1
7247 tar xf archive || exit 1
7248 ) ) >"$at_stdout" 2>"$at_stder1"
7250 grep '^ *+' "$at_stder1" >&2
7251 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7257 export TEST_TAR_FORMAT
7263 touch directory/file
7264 tar cf archive directory || exit 1
7265 tar xf archive || exit 1
7266 ) ) >"$at_stdout" 2>"$at_stderr"
7271 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7272 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7274 77) echo 77 > "$at_status_file"; exit 77;;
7276 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7282 echo 1 > "$at_status_file"
7288 echo "$at_srcdir/extrac01.at:26:
7291 TEST_TAR_FORMAT=oldgnu
7292 export TEST_TAR_FORMAT
7293 TAR_OPTIONS=\"-H oldgnu\"
7298 touch directory/file
7299 tar cf archive directory || exit 1
7300 tar xf archive || exit 1
7302 echo extrac01.at:26 >"$at_check_line_file"
7305 if test -n "$at_traceon"; then
7306 echo 'Not enabling shell tracing (command contains an embedded newline)'
7309 if test -n "$at_trace_this"; then
7313 TEST_TAR_FORMAT=oldgnu
7314 export TEST_TAR_FORMAT
7315 TAR_OPTIONS="-H oldgnu"
7320 touch directory/file
7321 tar cf archive directory || exit 1
7322 tar xf archive || exit 1
7323 ) ) >"$at_stdout" 2>"$at_stder1"
7325 grep '^ *+' "$at_stder1" >&2
7326 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7331 TEST_TAR_FORMAT=oldgnu
7332 export TEST_TAR_FORMAT
7333 TAR_OPTIONS="-H oldgnu"
7338 touch directory/file
7339 tar cf archive directory || exit 1
7340 tar xf archive || exit 1
7341 ) ) >"$at_stdout" 2>"$at_stderr"
7346 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7347 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7349 77) echo 77 > "$at_status_file"; exit 77;;
7351 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7357 echo 1 > "$at_status_file"
7363 echo "$at_srcdir/extrac01.at:26:
7366 TEST_TAR_FORMAT=ustar
7367 export TEST_TAR_FORMAT
7368 TAR_OPTIONS=\"-H ustar\"
7373 touch directory/file
7374 tar cf archive directory || exit 1
7375 tar xf archive || exit 1
7377 echo extrac01.at:26 >"$at_check_line_file"
7380 if test -n "$at_traceon"; then
7381 echo 'Not enabling shell tracing (command contains an embedded newline)'
7384 if test -n "$at_trace_this"; then
7388 TEST_TAR_FORMAT=ustar
7389 export TEST_TAR_FORMAT
7390 TAR_OPTIONS="-H ustar"
7395 touch directory/file
7396 tar cf archive directory || exit 1
7397 tar xf archive || exit 1
7398 ) ) >"$at_stdout" 2>"$at_stder1"
7400 grep '^ *+' "$at_stder1" >&2
7401 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7406 TEST_TAR_FORMAT=ustar
7407 export TEST_TAR_FORMAT
7408 TAR_OPTIONS="-H ustar"
7413 touch directory/file
7414 tar cf archive directory || exit 1
7415 tar xf archive || exit 1
7416 ) ) >"$at_stdout" 2>"$at_stderr"
7421 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7422 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7424 77) echo 77 > "$at_status_file"; exit 77;;
7426 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7432 echo 1 > "$at_status_file"
7438 echo "$at_srcdir/extrac01.at:26:
7441 TEST_TAR_FORMAT=posix
7442 export TEST_TAR_FORMAT
7443 TAR_OPTIONS=\"-H posix\"
7448 touch directory/file
7449 tar cf archive directory || exit 1
7450 tar xf archive || exit 1
7452 echo extrac01.at:26 >"$at_check_line_file"
7455 if test -n "$at_traceon"; then
7456 echo 'Not enabling shell tracing (command contains an embedded newline)'
7459 if test -n "$at_trace_this"; then
7463 TEST_TAR_FORMAT=posix
7464 export TEST_TAR_FORMAT
7465 TAR_OPTIONS="-H posix"
7470 touch directory/file
7471 tar cf archive directory || exit 1
7472 tar xf archive || exit 1
7473 ) ) >"$at_stdout" 2>"$at_stder1"
7475 grep '^ *+' "$at_stder1" >&2
7476 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7481 TEST_TAR_FORMAT=posix
7482 export TEST_TAR_FORMAT
7483 TAR_OPTIONS="-H posix"
7488 touch directory/file
7489 tar cf archive directory || exit 1
7490 tar xf archive || exit 1
7491 ) ) >"$at_stdout" 2>"$at_stderr"
7496 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7497 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7499 77) echo 77 > "$at_status_file"; exit 77;;
7501 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7507 echo 1 > "$at_status_file"
7513 echo "$at_srcdir/extrac01.at:26:
7517 export TEST_TAR_FORMAT
7518 TAR_OPTIONS=\"-H gnu\"
7523 touch directory/file
7524 tar cf archive directory || exit 1
7525 tar xf archive || exit 1
7527 echo extrac01.at:26 >"$at_check_line_file"
7530 if test -n "$at_traceon"; then
7531 echo 'Not enabling shell tracing (command contains an embedded newline)'
7534 if test -n "$at_trace_this"; then
7539 export TEST_TAR_FORMAT
7540 TAR_OPTIONS="-H gnu"
7545 touch directory/file
7546 tar cf archive directory || exit 1
7547 tar xf archive || exit 1
7548 ) ) >"$at_stdout" 2>"$at_stder1"
7550 grep '^ *+' "$at_stder1" >&2
7551 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7557 export TEST_TAR_FORMAT
7558 TAR_OPTIONS="-H gnu"
7563 touch directory/file
7564 tar cf archive directory || exit 1
7565 tar xf archive || exit 1
7566 ) ) >"$at_stdout" 2>"$at_stderr"
7571 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7572 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7574 77) echo 77 > "$at_status_file"; exit 77;;
7576 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7582 echo 1 > "$at_status_file"
7591 $at_times_p && times >"$at_times_file"
7592 ) 5>&1 2>&1 | eval $at_tee_pipe
7593 at_status=`cat "$at_status_file"`
7596 19 ) # 19. extrac02.at:23: extracting symlinks over an existing file
7597 at_setup_line='extrac02.at:23'
7598 at_desc="extracting symlinks over an existing file"
7599 $at_quiet $ECHO_N " 19: extracting symlinks over an existing file $ECHO_C"
7601 test -f $XFAILFILE && at_xfail=yes
7602 echo "# -*- compilation -*-" >> "$at_group_log"
7604 echo "19. extrac02.at:23: testing ..."
7609 # FIXME: Skip if symlinks are not supported on the system
7614 echo "$at_srcdir/extrac02.at:28:
7618 export TEST_TAR_FORMAT
7619 TAR_OPTIONS=\"-H v7\"
7624 ln -s file link 2> /dev/null || ln file link
7630 echo extrac02.at:28 >"$at_check_line_file"
7633 if test -n "$at_traceon"; then
7634 echo 'Not enabling shell tracing (command contains an embedded newline)'
7637 if test -n "$at_trace_this"; then
7642 export TEST_TAR_FORMAT
7648 ln -s file link 2> /dev/null || ln file link
7653 ) ) >"$at_stdout" 2>"$at_stder1"
7655 grep '^ *+' "$at_stder1" >&2
7656 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7662 export TEST_TAR_FORMAT
7668 ln -s file link 2> /dev/null || ln file link
7673 ) ) >"$at_stdout" 2>"$at_stderr"
7678 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7679 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7681 77) echo 77 > "$at_status_file"; exit 77;;
7683 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7689 echo 1 > "$at_status_file"
7695 echo "$at_srcdir/extrac02.at:28:
7698 TEST_TAR_FORMAT=oldgnu
7699 export TEST_TAR_FORMAT
7700 TAR_OPTIONS=\"-H oldgnu\"
7705 ln -s file link 2> /dev/null || ln file link
7711 echo extrac02.at:28 >"$at_check_line_file"
7714 if test -n "$at_traceon"; then
7715 echo 'Not enabling shell tracing (command contains an embedded newline)'
7718 if test -n "$at_trace_this"; then
7722 TEST_TAR_FORMAT=oldgnu
7723 export TEST_TAR_FORMAT
7724 TAR_OPTIONS="-H oldgnu"
7729 ln -s file link 2> /dev/null || ln file link
7734 ) ) >"$at_stdout" 2>"$at_stder1"
7736 grep '^ *+' "$at_stder1" >&2
7737 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7742 TEST_TAR_FORMAT=oldgnu
7743 export TEST_TAR_FORMAT
7744 TAR_OPTIONS="-H oldgnu"
7749 ln -s file link 2> /dev/null || ln file link
7754 ) ) >"$at_stdout" 2>"$at_stderr"
7759 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7760 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7762 77) echo 77 > "$at_status_file"; exit 77;;
7764 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7770 echo 1 > "$at_status_file"
7776 echo "$at_srcdir/extrac02.at:28:
7779 TEST_TAR_FORMAT=ustar
7780 export TEST_TAR_FORMAT
7781 TAR_OPTIONS=\"-H ustar\"
7786 ln -s file link 2> /dev/null || ln file link
7792 echo extrac02.at:28 >"$at_check_line_file"
7795 if test -n "$at_traceon"; then
7796 echo 'Not enabling shell tracing (command contains an embedded newline)'
7799 if test -n "$at_trace_this"; then
7803 TEST_TAR_FORMAT=ustar
7804 export TEST_TAR_FORMAT
7805 TAR_OPTIONS="-H ustar"
7810 ln -s file link 2> /dev/null || ln file link
7815 ) ) >"$at_stdout" 2>"$at_stder1"
7817 grep '^ *+' "$at_stder1" >&2
7818 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7823 TEST_TAR_FORMAT=ustar
7824 export TEST_TAR_FORMAT
7825 TAR_OPTIONS="-H ustar"
7830 ln -s file link 2> /dev/null || ln file link
7835 ) ) >"$at_stdout" 2>"$at_stderr"
7840 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7841 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7843 77) echo 77 > "$at_status_file"; exit 77;;
7845 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7851 echo 1 > "$at_status_file"
7857 echo "$at_srcdir/extrac02.at:28:
7860 TEST_TAR_FORMAT=posix
7861 export TEST_TAR_FORMAT
7862 TAR_OPTIONS=\"-H posix\"
7867 ln -s file link 2> /dev/null || ln file link
7873 echo extrac02.at:28 >"$at_check_line_file"
7876 if test -n "$at_traceon"; then
7877 echo 'Not enabling shell tracing (command contains an embedded newline)'
7880 if test -n "$at_trace_this"; then
7884 TEST_TAR_FORMAT=posix
7885 export TEST_TAR_FORMAT
7886 TAR_OPTIONS="-H posix"
7891 ln -s file link 2> /dev/null || ln file link
7896 ) ) >"$at_stdout" 2>"$at_stder1"
7898 grep '^ *+' "$at_stder1" >&2
7899 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7904 TEST_TAR_FORMAT=posix
7905 export TEST_TAR_FORMAT
7906 TAR_OPTIONS="-H posix"
7911 ln -s file link 2> /dev/null || ln file link
7916 ) ) >"$at_stdout" 2>"$at_stderr"
7921 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7922 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7924 77) echo 77 > "$at_status_file"; exit 77;;
7926 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7932 echo 1 > "$at_status_file"
7938 echo "$at_srcdir/extrac02.at:28:
7942 export TEST_TAR_FORMAT
7943 TAR_OPTIONS=\"-H gnu\"
7948 ln -s file link 2> /dev/null || ln file link
7954 echo extrac02.at:28 >"$at_check_line_file"
7957 if test -n "$at_traceon"; then
7958 echo 'Not enabling shell tracing (command contains an embedded newline)'
7961 if test -n "$at_trace_this"; then
7966 export TEST_TAR_FORMAT
7967 TAR_OPTIONS="-H gnu"
7972 ln -s file link 2> /dev/null || ln file link
7977 ) ) >"$at_stdout" 2>"$at_stder1"
7979 grep '^ *+' "$at_stder1" >&2
7980 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7986 export TEST_TAR_FORMAT
7987 TAR_OPTIONS="-H gnu"
7992 ln -s file link 2> /dev/null || ln file link
7997 ) ) >"$at_stdout" 2>"$at_stderr"
8002 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8003 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8005 77) echo 77 > "$at_status_file"; exit 77;;
8007 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8013 echo 1 > "$at_status_file"
8022 $at_times_p && times >"$at_times_file"
8023 ) 5>&1 2>&1 | eval $at_tee_pipe
8024 at_status=`cat "$at_status_file"`
8027 20 ) # 20. extrac03.at:23: extraction loops
8028 at_setup_line='extrac03.at:23'
8029 at_desc="extraction loops"
8030 $at_quiet $ECHO_N " 20: extraction loops $ECHO_C"
8032 test -f $XFAILFILE && at_xfail=yes
8033 echo "# -*- compilation -*-" >> "$at_group_log"
8035 echo "20. extrac03.at:23: testing ..."
8043 echo "$at_srcdir/extrac03.at:26:
8047 export TEST_TAR_FORMAT
8048 TAR_OPTIONS=\"-H v7\"
8053 tar -cPvf archive directory/../directory
8056 echo extrac03.at:26 >"$at_check_line_file"
8059 if test -n "$at_traceon"; then
8060 echo 'Not enabling shell tracing (command contains an embedded newline)'
8063 if test -n "$at_trace_this"; then
8068 export TEST_TAR_FORMAT
8074 tar -cPvf archive directory/../directory
8076 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8078 grep '^ *+' "$at_stder1" >&2
8079 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8085 export TEST_TAR_FORMAT
8091 tar -cPvf archive directory/../directory
8093 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8098 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8099 echo >>"$at_stdout"; echo "directory/../directory/
8101 directory/../directory/
8102 " | $at_diff - "$at_stdout" || at_failed=:
8104 77) echo 77 > "$at_status_file"; exit 77;;
8106 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8112 echo 1 > "$at_status_file"
8118 echo "$at_srcdir/extrac03.at:26:
8121 TEST_TAR_FORMAT=oldgnu
8122 export TEST_TAR_FORMAT
8123 TAR_OPTIONS=\"-H oldgnu\"
8128 tar -cPvf archive directory/../directory
8131 echo extrac03.at:26 >"$at_check_line_file"
8134 if test -n "$at_traceon"; then
8135 echo 'Not enabling shell tracing (command contains an embedded newline)'
8138 if test -n "$at_trace_this"; then
8142 TEST_TAR_FORMAT=oldgnu
8143 export TEST_TAR_FORMAT
8144 TAR_OPTIONS="-H oldgnu"
8149 tar -cPvf archive directory/../directory
8151 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8153 grep '^ *+' "$at_stder1" >&2
8154 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8159 TEST_TAR_FORMAT=oldgnu
8160 export TEST_TAR_FORMAT
8161 TAR_OPTIONS="-H oldgnu"
8166 tar -cPvf archive directory/../directory
8168 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8173 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8174 echo >>"$at_stdout"; echo "directory/../directory/
8176 directory/../directory/
8177 " | $at_diff - "$at_stdout" || at_failed=:
8179 77) echo 77 > "$at_status_file"; exit 77;;
8181 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8187 echo 1 > "$at_status_file"
8193 echo "$at_srcdir/extrac03.at:26:
8196 TEST_TAR_FORMAT=ustar
8197 export TEST_TAR_FORMAT
8198 TAR_OPTIONS=\"-H ustar\"
8203 tar -cPvf archive directory/../directory
8206 echo extrac03.at:26 >"$at_check_line_file"
8209 if test -n "$at_traceon"; then
8210 echo 'Not enabling shell tracing (command contains an embedded newline)'
8213 if test -n "$at_trace_this"; then
8217 TEST_TAR_FORMAT=ustar
8218 export TEST_TAR_FORMAT
8219 TAR_OPTIONS="-H ustar"
8224 tar -cPvf archive directory/../directory
8226 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8228 grep '^ *+' "$at_stder1" >&2
8229 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8234 TEST_TAR_FORMAT=ustar
8235 export TEST_TAR_FORMAT
8236 TAR_OPTIONS="-H ustar"
8241 tar -cPvf archive directory/../directory
8243 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8248 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8249 echo >>"$at_stdout"; echo "directory/../directory/
8251 directory/../directory/
8252 " | $at_diff - "$at_stdout" || at_failed=:
8254 77) echo 77 > "$at_status_file"; exit 77;;
8256 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8262 echo 1 > "$at_status_file"
8268 echo "$at_srcdir/extrac03.at:26:
8271 TEST_TAR_FORMAT=posix
8272 export TEST_TAR_FORMAT
8273 TAR_OPTIONS=\"-H posix\"
8278 tar -cPvf archive directory/../directory
8281 echo extrac03.at:26 >"$at_check_line_file"
8284 if test -n "$at_traceon"; then
8285 echo 'Not enabling shell tracing (command contains an embedded newline)'
8288 if test -n "$at_trace_this"; then
8292 TEST_TAR_FORMAT=posix
8293 export TEST_TAR_FORMAT
8294 TAR_OPTIONS="-H posix"
8299 tar -cPvf archive directory/../directory
8301 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8303 grep '^ *+' "$at_stder1" >&2
8304 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8309 TEST_TAR_FORMAT=posix
8310 export TEST_TAR_FORMAT
8311 TAR_OPTIONS="-H posix"
8316 tar -cPvf archive directory/../directory
8318 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8323 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8324 echo >>"$at_stdout"; echo "directory/../directory/
8326 directory/../directory/
8327 " | $at_diff - "$at_stdout" || at_failed=:
8329 77) echo 77 > "$at_status_file"; exit 77;;
8331 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8337 echo 1 > "$at_status_file"
8343 echo "$at_srcdir/extrac03.at:26:
8347 export TEST_TAR_FORMAT
8348 TAR_OPTIONS=\"-H gnu\"
8353 tar -cPvf archive directory/../directory
8356 echo extrac03.at:26 >"$at_check_line_file"
8359 if test -n "$at_traceon"; then
8360 echo 'Not enabling shell tracing (command contains an embedded newline)'
8363 if test -n "$at_trace_this"; then
8368 export TEST_TAR_FORMAT
8369 TAR_OPTIONS="-H gnu"
8374 tar -cPvf archive directory/../directory
8376 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8378 grep '^ *+' "$at_stder1" >&2
8379 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8385 export TEST_TAR_FORMAT
8386 TAR_OPTIONS="-H gnu"
8391 tar -cPvf archive directory/../directory
8393 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8398 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8399 echo >>"$at_stdout"; echo "directory/../directory/
8401 directory/../directory/
8402 " | $at_diff - "$at_stdout" || at_failed=:
8404 77) echo 77 > "$at_status_file"; exit 77;;
8406 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8412 echo 1 > "$at_status_file"
8421 $at_times_p && times >"$at_times_file"
8422 ) 5>&1 2>&1 | eval $at_tee_pipe
8423 at_status=`cat "$at_status_file"`
8426 21 ) # 21. extrac04.at:23: extract + fnmatch
8427 at_setup_line='extrac04.at:23'
8428 at_desc="extract + fnmatch"
8429 $at_quiet $ECHO_N " 21: extract + fnmatch $ECHO_C"
8431 test -f $XFAILFILE && at_xfail=yes
8432 echo "# -*- compilation -*-" >> "$at_group_log"
8434 echo "21. extrac04.at:23: testing ..."
8442 echo "$at_srcdir/extrac04.at:26:
8446 export TEST_TAR_FORMAT
8447 TAR_OPTIONS=\"-H v7\"
8452 test -z "`sort < /dev/null 2>&1`" || exit 77
8456 mkdir directory/subdirectory
8457 touch directory/file1
8458 touch directory/file2
8459 touch directory/subdirectory/file1
8460 touch directory/subdirectory/file2
8461 tar -cf archive ./file1 directory
8464 --exclude='d*/*1' \\
8465 --exclude='d*/s*/*2' | sort
8467 echo extrac04.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
8479 export TEST_TAR_FORMAT
8485 test -z "`sort < /dev/null 2>&1`" || exit 77
8489 mkdir directory/subdirectory
8490 touch directory/file1
8491 touch directory/file2
8492 touch directory/subdirectory/file1
8493 touch directory/subdirectory/file2
8494 tar -cf archive ./file1 directory
8498 --exclude='d*/s*/*2' | sort
8499 ) ) >"$at_stdout" 2>"$at_stder1"
8501 grep '^ *+' "$at_stder1" >&2
8502 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8508 export TEST_TAR_FORMAT
8514 test -z "`sort < /dev/null 2>&1`" || exit 77
8518 mkdir directory/subdirectory
8519 touch directory/file1
8520 touch directory/file2
8521 touch directory/subdirectory/file1
8522 touch directory/subdirectory/file2
8523 tar -cf archive ./file1 directory
8527 --exclude='d*/s*/*2' | sort
8528 ) ) >"$at_stdout" 2>"$at_stderr"
8533 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8534 echo >>"$at_stdout"; echo "directory/
8536 directory/subdirectory/
8537 " | $at_diff - "$at_stdout" || at_failed=:
8539 77) echo 77 > "$at_status_file"; exit 77;;
8541 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8547 echo 1 > "$at_status_file"
8553 echo "$at_srcdir/extrac04.at:26:
8556 TEST_TAR_FORMAT=oldgnu
8557 export TEST_TAR_FORMAT
8558 TAR_OPTIONS=\"-H oldgnu\"
8563 test -z "`sort < /dev/null 2>&1`" || exit 77
8567 mkdir directory/subdirectory
8568 touch directory/file1
8569 touch directory/file2
8570 touch directory/subdirectory/file1
8571 touch directory/subdirectory/file2
8572 tar -cf archive ./file1 directory
8575 --exclude='d*/*1' \\
8576 --exclude='d*/s*/*2' | sort
8578 echo extrac04.at:26 >"$at_check_line_file"
8581 if test -n "$at_traceon"; then
8582 echo 'Not enabling shell tracing (command contains an embedded newline)'
8585 if test -n "$at_trace_this"; then
8589 TEST_TAR_FORMAT=oldgnu
8590 export TEST_TAR_FORMAT
8591 TAR_OPTIONS="-H oldgnu"
8596 test -z "`sort < /dev/null 2>&1`" || exit 77
8600 mkdir directory/subdirectory
8601 touch directory/file1
8602 touch directory/file2
8603 touch directory/subdirectory/file1
8604 touch directory/subdirectory/file2
8605 tar -cf archive ./file1 directory
8609 --exclude='d*/s*/*2' | sort
8610 ) ) >"$at_stdout" 2>"$at_stder1"
8612 grep '^ *+' "$at_stder1" >&2
8613 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8618 TEST_TAR_FORMAT=oldgnu
8619 export TEST_TAR_FORMAT
8620 TAR_OPTIONS="-H oldgnu"
8625 test -z "`sort < /dev/null 2>&1`" || exit 77
8629 mkdir directory/subdirectory
8630 touch directory/file1
8631 touch directory/file2
8632 touch directory/subdirectory/file1
8633 touch directory/subdirectory/file2
8634 tar -cf archive ./file1 directory
8638 --exclude='d*/s*/*2' | sort
8639 ) ) >"$at_stdout" 2>"$at_stderr"
8644 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8645 echo >>"$at_stdout"; echo "directory/
8647 directory/subdirectory/
8648 " | $at_diff - "$at_stdout" || at_failed=:
8650 77) echo 77 > "$at_status_file"; exit 77;;
8652 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8658 echo 1 > "$at_status_file"
8664 echo "$at_srcdir/extrac04.at:26:
8667 TEST_TAR_FORMAT=ustar
8668 export TEST_TAR_FORMAT
8669 TAR_OPTIONS=\"-H ustar\"
8674 test -z "`sort < /dev/null 2>&1`" || exit 77
8678 mkdir directory/subdirectory
8679 touch directory/file1
8680 touch directory/file2
8681 touch directory/subdirectory/file1
8682 touch directory/subdirectory/file2
8683 tar -cf archive ./file1 directory
8686 --exclude='d*/*1' \\
8687 --exclude='d*/s*/*2' | sort
8689 echo extrac04.at:26 >"$at_check_line_file"
8692 if test -n "$at_traceon"; then
8693 echo 'Not enabling shell tracing (command contains an embedded newline)'
8696 if test -n "$at_trace_this"; then
8700 TEST_TAR_FORMAT=ustar
8701 export TEST_TAR_FORMAT
8702 TAR_OPTIONS="-H ustar"
8707 test -z "`sort < /dev/null 2>&1`" || exit 77
8711 mkdir directory/subdirectory
8712 touch directory/file1
8713 touch directory/file2
8714 touch directory/subdirectory/file1
8715 touch directory/subdirectory/file2
8716 tar -cf archive ./file1 directory
8720 --exclude='d*/s*/*2' | sort
8721 ) ) >"$at_stdout" 2>"$at_stder1"
8723 grep '^ *+' "$at_stder1" >&2
8724 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8729 TEST_TAR_FORMAT=ustar
8730 export TEST_TAR_FORMAT
8731 TAR_OPTIONS="-H ustar"
8736 test -z "`sort < /dev/null 2>&1`" || exit 77
8740 mkdir directory/subdirectory
8741 touch directory/file1
8742 touch directory/file2
8743 touch directory/subdirectory/file1
8744 touch directory/subdirectory/file2
8745 tar -cf archive ./file1 directory
8749 --exclude='d*/s*/*2' | sort
8750 ) ) >"$at_stdout" 2>"$at_stderr"
8755 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8756 echo >>"$at_stdout"; echo "directory/
8758 directory/subdirectory/
8759 " | $at_diff - "$at_stdout" || at_failed=:
8761 77) echo 77 > "$at_status_file"; exit 77;;
8763 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8769 echo 1 > "$at_status_file"
8775 echo "$at_srcdir/extrac04.at:26:
8778 TEST_TAR_FORMAT=posix
8779 export TEST_TAR_FORMAT
8780 TAR_OPTIONS=\"-H posix\"
8785 test -z "`sort < /dev/null 2>&1`" || exit 77
8789 mkdir directory/subdirectory
8790 touch directory/file1
8791 touch directory/file2
8792 touch directory/subdirectory/file1
8793 touch directory/subdirectory/file2
8794 tar -cf archive ./file1 directory
8797 --exclude='d*/*1' \\
8798 --exclude='d*/s*/*2' | sort
8800 echo extrac04.at:26 >"$at_check_line_file"
8803 if test -n "$at_traceon"; then
8804 echo 'Not enabling shell tracing (command contains an embedded newline)'
8807 if test -n "$at_trace_this"; then
8811 TEST_TAR_FORMAT=posix
8812 export TEST_TAR_FORMAT
8813 TAR_OPTIONS="-H posix"
8818 test -z "`sort < /dev/null 2>&1`" || exit 77
8822 mkdir directory/subdirectory
8823 touch directory/file1
8824 touch directory/file2
8825 touch directory/subdirectory/file1
8826 touch directory/subdirectory/file2
8827 tar -cf archive ./file1 directory
8831 --exclude='d*/s*/*2' | sort
8832 ) ) >"$at_stdout" 2>"$at_stder1"
8834 grep '^ *+' "$at_stder1" >&2
8835 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8840 TEST_TAR_FORMAT=posix
8841 export TEST_TAR_FORMAT
8842 TAR_OPTIONS="-H posix"
8847 test -z "`sort < /dev/null 2>&1`" || exit 77
8851 mkdir directory/subdirectory
8852 touch directory/file1
8853 touch directory/file2
8854 touch directory/subdirectory/file1
8855 touch directory/subdirectory/file2
8856 tar -cf archive ./file1 directory
8860 --exclude='d*/s*/*2' | sort
8861 ) ) >"$at_stdout" 2>"$at_stderr"
8866 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8867 echo >>"$at_stdout"; echo "directory/
8869 directory/subdirectory/
8870 " | $at_diff - "$at_stdout" || at_failed=:
8872 77) echo 77 > "$at_status_file"; exit 77;;
8874 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8880 echo 1 > "$at_status_file"
8886 echo "$at_srcdir/extrac04.at:26:
8890 export TEST_TAR_FORMAT
8891 TAR_OPTIONS=\"-H gnu\"
8896 test -z "`sort < /dev/null 2>&1`" || exit 77
8900 mkdir directory/subdirectory
8901 touch directory/file1
8902 touch directory/file2
8903 touch directory/subdirectory/file1
8904 touch directory/subdirectory/file2
8905 tar -cf archive ./file1 directory
8908 --exclude='d*/*1' \\
8909 --exclude='d*/s*/*2' | sort
8911 echo extrac04.at:26 >"$at_check_line_file"
8914 if test -n "$at_traceon"; then
8915 echo 'Not enabling shell tracing (command contains an embedded newline)'
8918 if test -n "$at_trace_this"; then
8923 export TEST_TAR_FORMAT
8924 TAR_OPTIONS="-H gnu"
8929 test -z "`sort < /dev/null 2>&1`" || exit 77
8933 mkdir directory/subdirectory
8934 touch directory/file1
8935 touch directory/file2
8936 touch directory/subdirectory/file1
8937 touch directory/subdirectory/file2
8938 tar -cf archive ./file1 directory
8942 --exclude='d*/s*/*2' | sort
8943 ) ) >"$at_stdout" 2>"$at_stder1"
8945 grep '^ *+' "$at_stder1" >&2
8946 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8952 export TEST_TAR_FORMAT
8953 TAR_OPTIONS="-H gnu"
8958 test -z "`sort < /dev/null 2>&1`" || exit 77
8962 mkdir directory/subdirectory
8963 touch directory/file1
8964 touch directory/file2
8965 touch directory/subdirectory/file1
8966 touch directory/subdirectory/file2
8967 tar -cf archive ./file1 directory
8971 --exclude='d*/s*/*2' | sort
8972 ) ) >"$at_stdout" 2>"$at_stderr"
8977 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8978 echo >>"$at_stdout"; echo "directory/
8980 directory/subdirectory/
8981 " | $at_diff - "$at_stdout" || at_failed=:
8983 77) echo 77 > "$at_status_file"; exit 77;;
8985 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8991 echo 1 > "$at_status_file"
9000 $at_times_p && times >"$at_times_file"
9001 ) 5>&1 2>&1 | eval $at_tee_pipe
9002 at_status=`cat "$at_status_file"`
9005 22 ) # 22. extrac05.at:30: extracting selected members from pax
9006 at_setup_line='extrac05.at:30'
9007 at_desc="extracting selected members from pax"
9008 $at_quiet $ECHO_N " 22: extracting selected members from pax $ECHO_C"
9010 test -f $XFAILFILE && at_xfail=yes
9011 echo "# -*- compilation -*-" >> "$at_group_log"
9013 echo "22. extrac05.at:30: testing ..."
9018 cat >list <<'_ATEOF'
9027 echo "$at_srcdir/extrac05.at:38:
9030 TEST_TAR_FORMAT=posix
9031 export TEST_TAR_FORMAT
9032 TAR_OPTIONS=\"-H posix\"
9036 genfile --length 118 --file jeden
9037 genfile --length 223 --file dwa
9038 genfile --length 517 --file trzy
9039 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9040 genfile --length 110 --file cztery
9042 tar cf archive jeden dwa trzy cztery || exit 1
9047 tar xvfT ../archive ../../list || exit 1
9051 echo extrac05.at:38 >"$at_check_line_file"
9054 if test -n "$at_traceon"; then
9055 echo 'Not enabling shell tracing (command contains an embedded newline)'
9058 if test -n "$at_trace_this"; then
9062 TEST_TAR_FORMAT=posix
9063 export TEST_TAR_FORMAT
9064 TAR_OPTIONS="-H posix"
9068 genfile --length 118 --file jeden
9069 genfile --length 223 --file dwa
9070 genfile --length 517 --file trzy
9071 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9072 genfile --length 110 --file cztery
9074 tar cf archive jeden dwa trzy cztery || exit 1
9079 tar xvfT ../archive ../../list || exit 1
9082 ) ) >"$at_stdout" 2>"$at_stder1"
9084 grep '^ *+' "$at_stder1" >&2
9085 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9090 TEST_TAR_FORMAT=posix
9091 export TEST_TAR_FORMAT
9092 TAR_OPTIONS="-H posix"
9096 genfile --length 118 --file jeden
9097 genfile --length 223 --file dwa
9098 genfile --length 517 --file trzy
9099 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9100 genfile --length 110 --file cztery
9102 tar cf archive jeden dwa trzy cztery || exit 1
9107 tar xvfT ../archive ../../list || exit 1
9110 ) ) >"$at_stdout" 2>"$at_stderr"
9115 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9116 echo >>"$at_stdout"; echo "jeden
9118 " | $at_diff - "$at_stdout" || at_failed=:
9120 77) echo 77 > "$at_status_file"; exit 77;;
9122 *) echo "$at_srcdir/extrac05.at:38: exit code was $at_status, expected 0"
9128 echo 1 > "$at_status_file"
9137 $at_times_p && times >"$at_times_file"
9138 ) 5>&1 2>&1 | eval $at_tee_pipe
9139 at_status=`cat "$at_status_file"`
9142 23 ) # 23. extrac06.at:33: mode of extracted directories
9143 at_setup_line='extrac06.at:33'
9144 at_desc="mode of extracted directories"
9145 $at_quiet $ECHO_N " 23: mode of extracted directories $ECHO_C"
9147 test -f $XFAILFILE && at_xfail=yes
9148 echo "# -*- compilation -*-" >> "$at_group_log"
9150 echo "23. extrac06.at:33: testing ..."
9158 echo "$at_srcdir/extrac06.at:36:
9162 export TEST_TAR_FORMAT
9163 TAR_OPTIONS=\"-H v7\"
9171 # Make sure user's umask is honored, even if we are superuser
9172 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9174 # Create a directory
9177 genfile --stat=mode:777 directory
9180 tar cf arc directory
9182 # Change its permissions ...
9184 genfile --stat=mode:777 directory
9186 # ... and attempt to restore it twice
9187 tar xf arc directory
9188 genfile --stat=mode:777 directory
9190 tar xf arc directory
9191 genfile --stat=mode:777 directory
9193 # After both restores, the directory mode should be 755
9195 echo extrac06.at:36 >"$at_check_line_file"
9198 if test -n "$at_traceon"; then
9199 echo 'Not enabling shell tracing (command contains an embedded newline)'
9202 if test -n "$at_trace_this"; then
9207 export TEST_TAR_FORMAT
9216 # Make sure user's umask is honored, even if we are superuser
9217 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9219 # Create a directory
9222 genfile --stat=mode:777 directory
9225 tar cf arc directory
9227 # Change its permissions ...
9229 genfile --stat=mode:777 directory
9231 # ... and attempt to restore it twice
9232 tar xf arc directory
9233 genfile --stat=mode:777 directory
9235 tar xf arc directory
9236 genfile --stat=mode:777 directory
9238 # After both restores, the directory mode should be 755
9239 ) ) >"$at_stdout" 2>"$at_stder1"
9241 grep '^ *+' "$at_stder1" >&2
9242 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9248 export TEST_TAR_FORMAT
9257 # Make sure user's umask is honored, even if we are superuser
9258 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9260 # Create a directory
9263 genfile --stat=mode:777 directory
9266 tar cf arc directory
9268 # Change its permissions ...
9270 genfile --stat=mode:777 directory
9272 # ... and attempt to restore it twice
9273 tar xf arc directory
9274 genfile --stat=mode:777 directory
9276 tar xf arc directory
9277 genfile --stat=mode:777 directory
9279 # After both restores, the directory mode should be 755
9280 ) ) >"$at_stdout" 2>"$at_stderr"
9285 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9286 echo >>"$at_stdout"; echo "777
9290 " | $at_diff - "$at_stdout" || at_failed=:
9292 77) echo 77 > "$at_status_file"; exit 77;;
9294 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9300 echo 1 > "$at_status_file"
9306 echo "$at_srcdir/extrac06.at:36:
9309 TEST_TAR_FORMAT=oldgnu
9310 export TEST_TAR_FORMAT
9311 TAR_OPTIONS=\"-H oldgnu\"
9319 # Make sure user's umask is honored, even if we are superuser
9320 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9322 # Create a directory
9325 genfile --stat=mode:777 directory
9328 tar cf arc directory
9330 # Change its permissions ...
9332 genfile --stat=mode:777 directory
9334 # ... and attempt to restore it twice
9335 tar xf arc directory
9336 genfile --stat=mode:777 directory
9338 tar xf arc directory
9339 genfile --stat=mode:777 directory
9341 # After both restores, the directory mode should be 755
9343 echo extrac06.at:36 >"$at_check_line_file"
9346 if test -n "$at_traceon"; then
9347 echo 'Not enabling shell tracing (command contains an embedded newline)'
9350 if test -n "$at_trace_this"; then
9354 TEST_TAR_FORMAT=oldgnu
9355 export TEST_TAR_FORMAT
9356 TAR_OPTIONS="-H oldgnu"
9364 # Make sure user's umask is honored, even if we are superuser
9365 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9367 # Create a directory
9370 genfile --stat=mode:777 directory
9373 tar cf arc directory
9375 # Change its permissions ...
9377 genfile --stat=mode:777 directory
9379 # ... and attempt to restore it twice
9380 tar xf arc directory
9381 genfile --stat=mode:777 directory
9383 tar xf arc directory
9384 genfile --stat=mode:777 directory
9386 # After both restores, the directory mode should be 755
9387 ) ) >"$at_stdout" 2>"$at_stder1"
9389 grep '^ *+' "$at_stder1" >&2
9390 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9395 TEST_TAR_FORMAT=oldgnu
9396 export TEST_TAR_FORMAT
9397 TAR_OPTIONS="-H oldgnu"
9405 # Make sure user's umask is honored, even if we are superuser
9406 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9408 # Create a directory
9411 genfile --stat=mode:777 directory
9414 tar cf arc directory
9416 # Change its permissions ...
9418 genfile --stat=mode:777 directory
9420 # ... and attempt to restore it twice
9421 tar xf arc directory
9422 genfile --stat=mode:777 directory
9424 tar xf arc directory
9425 genfile --stat=mode:777 directory
9427 # After both restores, the directory mode should be 755
9428 ) ) >"$at_stdout" 2>"$at_stderr"
9433 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9434 echo >>"$at_stdout"; echo "777
9438 " | $at_diff - "$at_stdout" || at_failed=:
9440 77) echo 77 > "$at_status_file"; exit 77;;
9442 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9448 echo 1 > "$at_status_file"
9454 echo "$at_srcdir/extrac06.at:36:
9457 TEST_TAR_FORMAT=ustar
9458 export TEST_TAR_FORMAT
9459 TAR_OPTIONS=\"-H ustar\"
9467 # Make sure user's umask is honored, even if we are superuser
9468 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9470 # Create a directory
9473 genfile --stat=mode:777 directory
9476 tar cf arc directory
9478 # Change its permissions ...
9480 genfile --stat=mode:777 directory
9482 # ... and attempt to restore it twice
9483 tar xf arc directory
9484 genfile --stat=mode:777 directory
9486 tar xf arc directory
9487 genfile --stat=mode:777 directory
9489 # After both restores, the directory mode should be 755
9491 echo extrac06.at:36 >"$at_check_line_file"
9494 if test -n "$at_traceon"; then
9495 echo 'Not enabling shell tracing (command contains an embedded newline)'
9498 if test -n "$at_trace_this"; then
9502 TEST_TAR_FORMAT=ustar
9503 export TEST_TAR_FORMAT
9504 TAR_OPTIONS="-H ustar"
9512 # Make sure user's umask is honored, even if we are superuser
9513 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9515 # Create a directory
9518 genfile --stat=mode:777 directory
9521 tar cf arc directory
9523 # Change its permissions ...
9525 genfile --stat=mode:777 directory
9527 # ... and attempt to restore it twice
9528 tar xf arc directory
9529 genfile --stat=mode:777 directory
9531 tar xf arc directory
9532 genfile --stat=mode:777 directory
9534 # After both restores, the directory mode should be 755
9535 ) ) >"$at_stdout" 2>"$at_stder1"
9537 grep '^ *+' "$at_stder1" >&2
9538 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9543 TEST_TAR_FORMAT=ustar
9544 export TEST_TAR_FORMAT
9545 TAR_OPTIONS="-H ustar"
9553 # Make sure user's umask is honored, even if we are superuser
9554 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9556 # Create a directory
9559 genfile --stat=mode:777 directory
9562 tar cf arc directory
9564 # Change its permissions ...
9566 genfile --stat=mode:777 directory
9568 # ... and attempt to restore it twice
9569 tar xf arc directory
9570 genfile --stat=mode:777 directory
9572 tar xf arc directory
9573 genfile --stat=mode:777 directory
9575 # After both restores, the directory mode should be 755
9576 ) ) >"$at_stdout" 2>"$at_stderr"
9581 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9582 echo >>"$at_stdout"; echo "777
9586 " | $at_diff - "$at_stdout" || at_failed=:
9588 77) echo 77 > "$at_status_file"; exit 77;;
9590 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9596 echo 1 > "$at_status_file"
9602 echo "$at_srcdir/extrac06.at:36:
9605 TEST_TAR_FORMAT=posix
9606 export TEST_TAR_FORMAT
9607 TAR_OPTIONS=\"-H posix\"
9615 # Make sure user's umask is honored, even if we are superuser
9616 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9618 # Create a directory
9621 genfile --stat=mode:777 directory
9624 tar cf arc directory
9626 # Change its permissions ...
9628 genfile --stat=mode:777 directory
9630 # ... and attempt to restore it twice
9631 tar xf arc directory
9632 genfile --stat=mode:777 directory
9634 tar xf arc directory
9635 genfile --stat=mode:777 directory
9637 # After both restores, the directory mode should be 755
9639 echo extrac06.at:36 >"$at_check_line_file"
9642 if test -n "$at_traceon"; then
9643 echo 'Not enabling shell tracing (command contains an embedded newline)'
9646 if test -n "$at_trace_this"; then
9650 TEST_TAR_FORMAT=posix
9651 export TEST_TAR_FORMAT
9652 TAR_OPTIONS="-H posix"
9660 # Make sure user's umask is honored, even if we are superuser
9661 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9663 # Create a directory
9666 genfile --stat=mode:777 directory
9669 tar cf arc directory
9671 # Change its permissions ...
9673 genfile --stat=mode:777 directory
9675 # ... and attempt to restore it twice
9676 tar xf arc directory
9677 genfile --stat=mode:777 directory
9679 tar xf arc directory
9680 genfile --stat=mode:777 directory
9682 # After both restores, the directory mode should be 755
9683 ) ) >"$at_stdout" 2>"$at_stder1"
9685 grep '^ *+' "$at_stder1" >&2
9686 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9691 TEST_TAR_FORMAT=posix
9692 export TEST_TAR_FORMAT
9693 TAR_OPTIONS="-H posix"
9701 # Make sure user's umask is honored, even if we are superuser
9702 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9704 # Create a directory
9707 genfile --stat=mode:777 directory
9710 tar cf arc directory
9712 # Change its permissions ...
9714 genfile --stat=mode:777 directory
9716 # ... and attempt to restore it twice
9717 tar xf arc directory
9718 genfile --stat=mode:777 directory
9720 tar xf arc directory
9721 genfile --stat=mode:777 directory
9723 # After both restores, the directory mode should be 755
9724 ) ) >"$at_stdout" 2>"$at_stderr"
9729 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9730 echo >>"$at_stdout"; echo "777
9734 " | $at_diff - "$at_stdout" || at_failed=:
9736 77) echo 77 > "$at_status_file"; exit 77;;
9738 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9744 echo 1 > "$at_status_file"
9750 echo "$at_srcdir/extrac06.at:36:
9754 export TEST_TAR_FORMAT
9755 TAR_OPTIONS=\"-H gnu\"
9763 # Make sure user's umask is honored, even if we are superuser
9764 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9766 # Create a directory
9769 genfile --stat=mode:777 directory
9772 tar cf arc directory
9774 # Change its permissions ...
9776 genfile --stat=mode:777 directory
9778 # ... and attempt to restore it twice
9779 tar xf arc directory
9780 genfile --stat=mode:777 directory
9782 tar xf arc directory
9783 genfile --stat=mode:777 directory
9785 # After both restores, the directory mode should be 755
9787 echo extrac06.at:36 >"$at_check_line_file"
9790 if test -n "$at_traceon"; then
9791 echo 'Not enabling shell tracing (command contains an embedded newline)'
9794 if test -n "$at_trace_this"; then
9799 export TEST_TAR_FORMAT
9800 TAR_OPTIONS="-H gnu"
9808 # Make sure user's umask is honored, even if we are superuser
9809 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9811 # Create a directory
9814 genfile --stat=mode:777 directory
9817 tar cf arc directory
9819 # Change its permissions ...
9821 genfile --stat=mode:777 directory
9823 # ... and attempt to restore it twice
9824 tar xf arc directory
9825 genfile --stat=mode:777 directory
9827 tar xf arc directory
9828 genfile --stat=mode:777 directory
9830 # After both restores, the directory mode should be 755
9831 ) ) >"$at_stdout" 2>"$at_stder1"
9833 grep '^ *+' "$at_stder1" >&2
9834 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9840 export TEST_TAR_FORMAT
9841 TAR_OPTIONS="-H gnu"
9849 # Make sure user's umask is honored, even if we are superuser
9850 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9852 # Create a directory
9855 genfile --stat=mode:777 directory
9858 tar cf arc directory
9860 # Change its permissions ...
9862 genfile --stat=mode:777 directory
9864 # ... and attempt to restore it twice
9865 tar xf arc directory
9866 genfile --stat=mode:777 directory
9868 tar xf arc directory
9869 genfile --stat=mode:777 directory
9871 # After both restores, the directory mode should be 755
9872 ) ) >"$at_stdout" 2>"$at_stderr"
9877 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9878 echo >>"$at_stdout"; echo "777
9882 " | $at_diff - "$at_stdout" || at_failed=:
9884 77) echo 77 > "$at_status_file"; exit 77;;
9886 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9892 echo 1 > "$at_status_file"
9901 $at_times_p && times >"$at_times_file"
9902 ) 5>&1 2>&1 | eval $at_tee_pipe
9903 at_status=`cat "$at_status_file"`
9906 24 ) # 24. extrac07.at:27: extracting symlinks to a read-only dir
9907 at_setup_line='extrac07.at:27'
9908 at_desc="extracting symlinks to a read-only dir"
9909 $at_quiet $ECHO_N " 24: extracting symlinks to a read-only dir $ECHO_C"
9911 test -f $XFAILFILE && at_xfail=yes
9912 echo "# -*- compilation -*-" >> "$at_group_log"
9914 echo "24. extrac07.at:27: testing ..."
9922 echo "$at_srcdir/extrac07.at:30:
9926 export TEST_TAR_FORMAT
9927 TAR_OPTIONS=\"-H v7\"
9931 echo Prepare the directory
9939 echo Create the archive
9940 tar cf archive dir || exit 1
9946 tar -C out -xvf archive
9948 echo extrac07.at:30 >"$at_check_line_file"
9951 if test -n "$at_traceon"; then
9952 echo 'Not enabling shell tracing (command contains an embedded newline)'
9955 if test -n "$at_trace_this"; then
9960 export TEST_TAR_FORMAT
9965 echo Prepare the directory
9973 echo Create the archive
9974 tar cf archive dir || exit 1
9980 tar -C out -xvf archive
9981 ) ) >"$at_stdout" 2>"$at_stder1"
9983 grep '^ *+' "$at_stder1" >&2
9984 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9990 export TEST_TAR_FORMAT
9995 echo Prepare the directory
10003 echo Create the archive
10004 tar cf archive dir || exit 1
10010 tar -C out -xvf archive
10011 ) ) >"$at_stdout" 2>"$at_stderr"
10016 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10017 echo >>"$at_stdout"; echo "Prepare the directory
10022 " | $at_diff - "$at_stdout" || at_failed=:
10024 77) echo 77 > "$at_status_file"; exit 77;;
10026 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10029 if $at_failed; then
10032 echo 1 > "$at_status_file"
10040 echo "$at_srcdir/extrac07.at:30:
10043 TEST_TAR_FORMAT=oldgnu
10044 export TEST_TAR_FORMAT
10045 TAR_OPTIONS=\"-H oldgnu\"
10049 echo Prepare the directory
10057 echo Create the archive
10058 tar cf archive dir || exit 1
10064 tar -C out -xvf archive
10066 echo extrac07.at:30 >"$at_check_line_file"
10069 if test -n "$at_traceon"; then
10070 echo 'Not enabling shell tracing (command contains an embedded newline)'
10073 if test -n "$at_trace_this"; then
10077 TEST_TAR_FORMAT=oldgnu
10078 export TEST_TAR_FORMAT
10079 TAR_OPTIONS="-H oldgnu"
10083 echo Prepare the directory
10091 echo Create the archive
10092 tar cf archive dir || exit 1
10098 tar -C out -xvf archive
10099 ) ) >"$at_stdout" 2>"$at_stder1"
10101 grep '^ *+' "$at_stder1" >&2
10102 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10107 TEST_TAR_FORMAT=oldgnu
10108 export TEST_TAR_FORMAT
10109 TAR_OPTIONS="-H oldgnu"
10113 echo Prepare the directory
10121 echo Create the archive
10122 tar cf archive dir || exit 1
10128 tar -C out -xvf archive
10129 ) ) >"$at_stdout" 2>"$at_stderr"
10134 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10135 echo >>"$at_stdout"; echo "Prepare the directory
10140 " | $at_diff - "$at_stdout" || at_failed=:
10142 77) echo 77 > "$at_status_file"; exit 77;;
10144 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10147 if $at_failed; then
10150 echo 1 > "$at_status_file"
10158 echo "$at_srcdir/extrac07.at:30:
10161 TEST_TAR_FORMAT=ustar
10162 export TEST_TAR_FORMAT
10163 TAR_OPTIONS=\"-H ustar\"
10167 echo Prepare the directory
10175 echo Create the archive
10176 tar cf archive dir || exit 1
10182 tar -C out -xvf archive
10184 echo extrac07.at:30 >"$at_check_line_file"
10187 if test -n "$at_traceon"; then
10188 echo 'Not enabling shell tracing (command contains an embedded newline)'
10191 if test -n "$at_trace_this"; then
10195 TEST_TAR_FORMAT=ustar
10196 export TEST_TAR_FORMAT
10197 TAR_OPTIONS="-H ustar"
10201 echo Prepare the directory
10209 echo Create the archive
10210 tar cf archive dir || exit 1
10216 tar -C out -xvf archive
10217 ) ) >"$at_stdout" 2>"$at_stder1"
10219 grep '^ *+' "$at_stder1" >&2
10220 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10225 TEST_TAR_FORMAT=ustar
10226 export TEST_TAR_FORMAT
10227 TAR_OPTIONS="-H ustar"
10231 echo Prepare the directory
10239 echo Create the archive
10240 tar cf archive dir || exit 1
10246 tar -C out -xvf archive
10247 ) ) >"$at_stdout" 2>"$at_stderr"
10252 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10253 echo >>"$at_stdout"; echo "Prepare the directory
10258 " | $at_diff - "$at_stdout" || at_failed=:
10260 77) echo 77 > "$at_status_file"; exit 77;;
10262 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10265 if $at_failed; then
10268 echo 1 > "$at_status_file"
10276 echo "$at_srcdir/extrac07.at:30:
10279 TEST_TAR_FORMAT=posix
10280 export TEST_TAR_FORMAT
10281 TAR_OPTIONS=\"-H posix\"
10285 echo Prepare the directory
10293 echo Create the archive
10294 tar cf archive dir || exit 1
10300 tar -C out -xvf archive
10302 echo extrac07.at:30 >"$at_check_line_file"
10305 if test -n "$at_traceon"; then
10306 echo 'Not enabling shell tracing (command contains an embedded newline)'
10309 if test -n "$at_trace_this"; then
10313 TEST_TAR_FORMAT=posix
10314 export TEST_TAR_FORMAT
10315 TAR_OPTIONS="-H posix"
10319 echo Prepare the directory
10327 echo Create the archive
10328 tar cf archive dir || exit 1
10334 tar -C out -xvf archive
10335 ) ) >"$at_stdout" 2>"$at_stder1"
10337 grep '^ *+' "$at_stder1" >&2
10338 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10343 TEST_TAR_FORMAT=posix
10344 export TEST_TAR_FORMAT
10345 TAR_OPTIONS="-H posix"
10349 echo Prepare the directory
10357 echo Create the archive
10358 tar cf archive dir || exit 1
10364 tar -C out -xvf archive
10365 ) ) >"$at_stdout" 2>"$at_stderr"
10370 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10371 echo >>"$at_stdout"; echo "Prepare the directory
10376 " | $at_diff - "$at_stdout" || at_failed=:
10378 77) echo 77 > "$at_status_file"; exit 77;;
10380 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10383 if $at_failed; then
10386 echo 1 > "$at_status_file"
10394 echo "$at_srcdir/extrac07.at:30:
10397 TEST_TAR_FORMAT=gnu
10398 export TEST_TAR_FORMAT
10399 TAR_OPTIONS=\"-H gnu\"
10403 echo Prepare the directory
10411 echo Create the archive
10412 tar cf archive dir || exit 1
10418 tar -C out -xvf archive
10420 echo extrac07.at:30 >"$at_check_line_file"
10423 if test -n "$at_traceon"; then
10424 echo 'Not enabling shell tracing (command contains an embedded newline)'
10427 if test -n "$at_trace_this"; then
10431 TEST_TAR_FORMAT=gnu
10432 export TEST_TAR_FORMAT
10433 TAR_OPTIONS="-H gnu"
10437 echo Prepare the directory
10445 echo Create the archive
10446 tar cf archive dir || exit 1
10452 tar -C out -xvf archive
10453 ) ) >"$at_stdout" 2>"$at_stder1"
10455 grep '^ *+' "$at_stder1" >&2
10456 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10461 TEST_TAR_FORMAT=gnu
10462 export TEST_TAR_FORMAT
10463 TAR_OPTIONS="-H gnu"
10467 echo Prepare the directory
10475 echo Create the archive
10476 tar cf archive dir || exit 1
10482 tar -C out -xvf archive
10483 ) ) >"$at_stdout" 2>"$at_stderr"
10488 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10489 echo >>"$at_stdout"; echo "Prepare the directory
10494 " | $at_diff - "$at_stdout" || at_failed=:
10496 77) echo 77 > "$at_status_file"; exit 77;;
10498 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10501 if $at_failed; then
10504 echo 1 > "$at_status_file"
10512 # Testing one format is enough
10515 $at_times_p && times >"$at_times_file"
10516 ) 5>&1 2>&1 | eval $at_tee_pipe
10517 at_status=`cat "$at_status_file"`
10520 25 ) # 25. gzip.at:23: gzip
10521 at_setup_line='gzip.at:23'
10523 $at_quiet $ECHO_N " 25: gzip $ECHO_C"
10525 echo "# -*- compilation -*-" >> "$at_group_log"
10527 echo "25. gzip.at:23: testing ..."
10535 echo "$at_srcdir/gzip.at:28:
10537 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10540 test \$? = 2 || exit 1
10542 echo gzip.at:28 >"$at_check_line_file"
10545 if test -n "$at_traceon"; then
10546 echo 'Not enabling shell tracing (command contains an embedded newline)'
10549 if test -n "$at_trace_this"; then
10552 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10555 test $? = 2 || exit 1
10556 ) >"$at_stdout" 2>"$at_stder1"
10558 grep '^ *+' "$at_stder1" >&2
10559 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10563 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10566 test $? = 2 || exit 1
10567 ) >"$at_stdout" 2>"$at_stderr"
10572 echo >>"$at_stderr"; echo "
10573 gzip: stdin: unexpected end of file
10574 tar: Child returned status 1
10575 tar: Exiting with failure status due to previous errors
10576 " | $at_diff - "$at_stderr" || at_failed=:
10577 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
10579 77) echo 77 > "$at_status_file"; exit 77;;
10581 *) echo "$at_srcdir/gzip.at:28: exit code was $at_status, expected 0"
10584 if $at_failed; then
10587 echo 1 > "$at_status_file"
10595 $at_times_p && times >"$at_times_file"
10596 ) 5>&1 2>&1 | eval $at_tee_pipe
10597 at_status=`cat "$at_status_file"`
10600 26 ) # 26. incremental.at:23: incremental
10601 at_setup_line='incremental.at:23'
10602 at_desc="incremental"
10603 $at_quiet $ECHO_N " 26: incremental $ECHO_C"
10605 test -f $XFAILFILE && at_xfail=yes
10606 echo "# -*- compilation -*-" >> "$at_group_log"
10608 echo "26. incremental.at:23: testing ..."
10616 echo "$at_srcdir/incremental.at:26:
10619 TEST_TAR_FORMAT=gnu
10620 export TEST_TAR_FORMAT
10621 TAR_OPTIONS=\"-H gnu\"
10626 echo x >structure/file
10628 # On Nextstep (and perhaps other 4.3BSD systems),
10629 # a newly created file's ctime isn't updated
10630 # until the next sync or stat operation on the file.
10631 ls -l structure/file >/dev/null
10633 # If the time of an initial backup and the creation time of a file contained
10634 # in that backup are the same, the file will be backed up again when an
10635 # incremental backup is done, because the incremental backup backs up
10636 # files created \`on or after' the initial backup time. Without the sleep
10637 # command, behaviour of tar becomes variable, depending whether the system
10638 # clock ticked over to the next second between creating the file and
10642 tar cf archive --listed=list structure
10643 tar cfv archive --listed=list structure
10645 # ReiserFS often offsets the timestamps of newly created files
10646 # 1 second to the past. Try to compensate for it, until a better
10647 # solution is found.
10649 echo y >structure/file
10650 tar cfv archive --listed=list structure
10652 echo incremental.at:26 >"$at_check_line_file"
10655 if test -n "$at_traceon"; then
10656 echo 'Not enabling shell tracing (command contains an embedded newline)'
10659 if test -n "$at_trace_this"; then
10663 TEST_TAR_FORMAT=gnu
10664 export TEST_TAR_FORMAT
10665 TAR_OPTIONS="-H gnu"
10670 echo x >structure/file
10672 # On Nextstep (and perhaps other 4.3BSD systems),
10673 # a newly created file's ctime isn't updated
10674 # until the next sync or stat operation on the file.
10675 ls -l structure/file >/dev/null
10677 # If the time of an initial backup and the creation time of a file contained
10678 # in that backup are the same, the file will be backed up again when an
10679 # incremental backup is done, because the incremental backup backs up
10680 # files created `on or after' the initial backup time. Without the sleep
10681 # command, behaviour of tar becomes variable, depending whether the system
10682 # clock ticked over to the next second between creating the file and
10686 tar cf archive --listed=list structure
10687 tar cfv archive --listed=list structure
10689 # ReiserFS often offsets the timestamps of newly created files
10690 # 1 second to the past. Try to compensate for it, until a better
10691 # solution is found.
10693 echo y >structure/file
10694 tar cfv archive --listed=list structure
10695 ) ) >"$at_stdout" 2>"$at_stder1"
10697 grep '^ *+' "$at_stder1" >&2
10698 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10703 TEST_TAR_FORMAT=gnu
10704 export TEST_TAR_FORMAT
10705 TAR_OPTIONS="-H gnu"
10710 echo x >structure/file
10712 # On Nextstep (and perhaps other 4.3BSD systems),
10713 # a newly created file's ctime isn't updated
10714 # until the next sync or stat operation on the file.
10715 ls -l structure/file >/dev/null
10717 # If the time of an initial backup and the creation time of a file contained
10718 # in that backup are the same, the file will be backed up again when an
10719 # incremental backup is done, because the incremental backup backs up
10720 # files created `on or after' the initial backup time. Without the sleep
10721 # command, behaviour of tar becomes variable, depending whether the system
10722 # clock ticked over to the next second between creating the file and
10726 tar cf archive --listed=list structure
10727 tar cfv archive --listed=list structure
10729 # ReiserFS often offsets the timestamps of newly created files
10730 # 1 second to the past. Try to compensate for it, until a better
10731 # solution is found.
10733 echo y >structure/file
10734 tar cfv archive --listed=list structure
10735 ) ) >"$at_stdout" 2>"$at_stderr"
10740 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10741 echo >>"$at_stdout"; echo "structure/
10745 " | $at_diff - "$at_stdout" || at_failed=:
10747 77) echo 77 > "$at_status_file"; exit 77;;
10749 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
10752 if $at_failed; then
10755 echo 1 > "$at_status_file"
10761 echo "$at_srcdir/incremental.at:26:
10764 TEST_TAR_FORMAT=oldgnu
10765 export TEST_TAR_FORMAT
10766 TAR_OPTIONS=\"-H oldgnu\"
10771 echo x >structure/file
10773 # On Nextstep (and perhaps other 4.3BSD systems),
10774 # a newly created file's ctime isn't updated
10775 # until the next sync or stat operation on the file.
10776 ls -l structure/file >/dev/null
10778 # If the time of an initial backup and the creation time of a file contained
10779 # in that backup are the same, the file will be backed up again when an
10780 # incremental backup is done, because the incremental backup backs up
10781 # files created \`on or after' the initial backup time. Without the sleep
10782 # command, behaviour of tar becomes variable, depending whether the system
10783 # clock ticked over to the next second between creating the file and
10787 tar cf archive --listed=list structure
10788 tar cfv archive --listed=list structure
10790 # ReiserFS often offsets the timestamps of newly created files
10791 # 1 second to the past. Try to compensate for it, until a better
10792 # solution is found.
10794 echo y >structure/file
10795 tar cfv archive --listed=list structure
10797 echo incremental.at:26 >"$at_check_line_file"
10800 if test -n "$at_traceon"; then
10801 echo 'Not enabling shell tracing (command contains an embedded newline)'
10804 if test -n "$at_trace_this"; then
10808 TEST_TAR_FORMAT=oldgnu
10809 export TEST_TAR_FORMAT
10810 TAR_OPTIONS="-H oldgnu"
10815 echo x >structure/file
10817 # On Nextstep (and perhaps other 4.3BSD systems),
10818 # a newly created file's ctime isn't updated
10819 # until the next sync or stat operation on the file.
10820 ls -l structure/file >/dev/null
10822 # If the time of an initial backup and the creation time of a file contained
10823 # in that backup are the same, the file will be backed up again when an
10824 # incremental backup is done, because the incremental backup backs up
10825 # files created `on or after' the initial backup time. Without the sleep
10826 # command, behaviour of tar becomes variable, depending whether the system
10827 # clock ticked over to the next second between creating the file and
10831 tar cf archive --listed=list structure
10832 tar cfv archive --listed=list structure
10834 # ReiserFS often offsets the timestamps of newly created files
10835 # 1 second to the past. Try to compensate for it, until a better
10836 # solution is found.
10838 echo y >structure/file
10839 tar cfv archive --listed=list structure
10840 ) ) >"$at_stdout" 2>"$at_stder1"
10842 grep '^ *+' "$at_stder1" >&2
10843 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10848 TEST_TAR_FORMAT=oldgnu
10849 export TEST_TAR_FORMAT
10850 TAR_OPTIONS="-H oldgnu"
10855 echo x >structure/file
10857 # On Nextstep (and perhaps other 4.3BSD systems),
10858 # a newly created file's ctime isn't updated
10859 # until the next sync or stat operation on the file.
10860 ls -l structure/file >/dev/null
10862 # If the time of an initial backup and the creation time of a file contained
10863 # in that backup are the same, the file will be backed up again when an
10864 # incremental backup is done, because the incremental backup backs up
10865 # files created `on or after' the initial backup time. Without the sleep
10866 # command, behaviour of tar becomes variable, depending whether the system
10867 # clock ticked over to the next second between creating the file and
10871 tar cf archive --listed=list structure
10872 tar cfv archive --listed=list structure
10874 # ReiserFS often offsets the timestamps of newly created files
10875 # 1 second to the past. Try to compensate for it, until a better
10876 # solution is found.
10878 echo y >structure/file
10879 tar cfv archive --listed=list structure
10880 ) ) >"$at_stdout" 2>"$at_stderr"
10885 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10886 echo >>"$at_stdout"; echo "structure/
10890 " | $at_diff - "$at_stdout" || at_failed=:
10892 77) echo 77 > "$at_status_file"; exit 77;;
10894 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
10897 if $at_failed; then
10900 echo 1 > "$at_status_file"
10906 echo "$at_srcdir/incremental.at:26:
10909 TEST_TAR_FORMAT=posix
10910 export TEST_TAR_FORMAT
10911 TAR_OPTIONS=\"-H posix\"
10916 echo x >structure/file
10918 # On Nextstep (and perhaps other 4.3BSD systems),
10919 # a newly created file's ctime isn't updated
10920 # until the next sync or stat operation on the file.
10921 ls -l structure/file >/dev/null
10923 # If the time of an initial backup and the creation time of a file contained
10924 # in that backup are the same, the file will be backed up again when an
10925 # incremental backup is done, because the incremental backup backs up
10926 # files created \`on or after' the initial backup time. Without the sleep
10927 # command, behaviour of tar becomes variable, depending whether the system
10928 # clock ticked over to the next second between creating the file and
10932 tar cf archive --listed=list structure
10933 tar cfv archive --listed=list structure
10935 # ReiserFS often offsets the timestamps of newly created files
10936 # 1 second to the past. Try to compensate for it, until a better
10937 # solution is found.
10939 echo y >structure/file
10940 tar cfv archive --listed=list structure
10942 echo incremental.at:26 >"$at_check_line_file"
10945 if test -n "$at_traceon"; then
10946 echo 'Not enabling shell tracing (command contains an embedded newline)'
10949 if test -n "$at_trace_this"; then
10953 TEST_TAR_FORMAT=posix
10954 export TEST_TAR_FORMAT
10955 TAR_OPTIONS="-H posix"
10960 echo x >structure/file
10962 # On Nextstep (and perhaps other 4.3BSD systems),
10963 # a newly created file's ctime isn't updated
10964 # until the next sync or stat operation on the file.
10965 ls -l structure/file >/dev/null
10967 # If the time of an initial backup and the creation time of a file contained
10968 # in that backup are the same, the file will be backed up again when an
10969 # incremental backup is done, because the incremental backup backs up
10970 # files created `on or after' the initial backup time. Without the sleep
10971 # command, behaviour of tar becomes variable, depending whether the system
10972 # clock ticked over to the next second between creating the file and
10976 tar cf archive --listed=list structure
10977 tar cfv archive --listed=list structure
10979 # ReiserFS often offsets the timestamps of newly created files
10980 # 1 second to the past. Try to compensate for it, until a better
10981 # solution is found.
10983 echo y >structure/file
10984 tar cfv archive --listed=list structure
10985 ) ) >"$at_stdout" 2>"$at_stder1"
10987 grep '^ *+' "$at_stder1" >&2
10988 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10993 TEST_TAR_FORMAT=posix
10994 export TEST_TAR_FORMAT
10995 TAR_OPTIONS="-H posix"
11000 echo x >structure/file
11002 # On Nextstep (and perhaps other 4.3BSD systems),
11003 # a newly created file's ctime isn't updated
11004 # until the next sync or stat operation on the file.
11005 ls -l structure/file >/dev/null
11007 # If the time of an initial backup and the creation time of a file contained
11008 # in that backup are the same, the file will be backed up again when an
11009 # incremental backup is done, because the incremental backup backs up
11010 # files created `on or after' the initial backup time. Without the sleep
11011 # command, behaviour of tar becomes variable, depending whether the system
11012 # clock ticked over to the next second between creating the file and
11016 tar cf archive --listed=list structure
11017 tar cfv archive --listed=list structure
11019 # ReiserFS often offsets the timestamps of newly created files
11020 # 1 second to the past. Try to compensate for it, until a better
11021 # solution is found.
11023 echo y >structure/file
11024 tar cfv archive --listed=list structure
11025 ) ) >"$at_stdout" 2>"$at_stderr"
11030 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11031 echo >>"$at_stdout"; echo "structure/
11035 " | $at_diff - "$at_stdout" || at_failed=:
11037 77) echo 77 > "$at_status_file"; exit 77;;
11039 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
11042 if $at_failed; then
11045 echo 1 > "$at_status_file"
11054 $at_times_p && times >"$at_times_file"
11055 ) 5>&1 2>&1 | eval $at_tee_pipe
11056 at_status=`cat "$at_status_file"`
11059 27 ) # 27. incr01.at:27: restore broken symlinks from incremental
11060 at_setup_line='incr01.at:27'
11061 at_desc="restore broken symlinks from incremental"
11062 $at_quiet $ECHO_N " 27: restore broken symlinks from incremental $ECHO_C"
11064 test -f $XFAILFILE && at_xfail=yes
11065 echo "# -*- compilation -*-" >> "$at_group_log"
11067 echo "27. incr01.at:27: testing ..."
11075 echo "$at_srcdir/incr01.at:30:
11078 TEST_TAR_FORMAT=gnu
11079 export TEST_TAR_FORMAT
11080 TAR_OPTIONS=\"-H gnu\"
11085 \$as_ln_s foo directory/bar
11087 tar -cf archive.0 -g db directory
11089 tar -cf archive.1 -g db directory
11093 tar xvfg archive.0 /dev/null
11095 tar xvfg archive.1 /dev/null
11097 echo incr01.at:30 >"$at_check_line_file"
11100 if test -n "$at_traceon"; then
11101 echo 'Not enabling shell tracing (command contains an embedded newline)'
11104 if test -n "$at_trace_this"; then
11108 TEST_TAR_FORMAT=gnu
11109 export TEST_TAR_FORMAT
11110 TAR_OPTIONS="-H gnu"
11115 $as_ln_s foo directory/bar
11117 tar -cf archive.0 -g db directory
11119 tar -cf archive.1 -g db directory
11123 tar xvfg archive.0 /dev/null
11125 tar xvfg archive.1 /dev/null
11126 ) ) >"$at_stdout" 2>"$at_stder1"
11128 grep '^ *+' "$at_stder1" >&2
11129 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11134 TEST_TAR_FORMAT=gnu
11135 export TEST_TAR_FORMAT
11136 TAR_OPTIONS="-H gnu"
11141 $as_ln_s foo directory/bar
11143 tar -cf archive.0 -g db directory
11145 tar -cf archive.1 -g db directory
11149 tar xvfg archive.0 /dev/null
11151 tar xvfg archive.1 /dev/null
11152 ) ) >"$at_stdout" 2>"$at_stderr"
11157 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11158 echo >>"$at_stdout"; echo "directory/
11162 tar: Deleting \`directory/bar'
11163 " | $at_diff - "$at_stdout" || at_failed=:
11165 77) echo 77 > "$at_status_file"; exit 77;;
11167 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11170 if $at_failed; then
11173 echo 1 > "$at_status_file"
11179 echo "$at_srcdir/incr01.at:30:
11182 TEST_TAR_FORMAT=oldgnu
11183 export TEST_TAR_FORMAT
11184 TAR_OPTIONS=\"-H oldgnu\"
11189 \$as_ln_s foo directory/bar
11191 tar -cf archive.0 -g db directory
11193 tar -cf archive.1 -g db directory
11197 tar xvfg archive.0 /dev/null
11199 tar xvfg archive.1 /dev/null
11201 echo incr01.at:30 >"$at_check_line_file"
11204 if test -n "$at_traceon"; then
11205 echo 'Not enabling shell tracing (command contains an embedded newline)'
11208 if test -n "$at_trace_this"; then
11212 TEST_TAR_FORMAT=oldgnu
11213 export TEST_TAR_FORMAT
11214 TAR_OPTIONS="-H oldgnu"
11219 $as_ln_s foo directory/bar
11221 tar -cf archive.0 -g db directory
11223 tar -cf archive.1 -g db directory
11227 tar xvfg archive.0 /dev/null
11229 tar xvfg archive.1 /dev/null
11230 ) ) >"$at_stdout" 2>"$at_stder1"
11232 grep '^ *+' "$at_stder1" >&2
11233 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11238 TEST_TAR_FORMAT=oldgnu
11239 export TEST_TAR_FORMAT
11240 TAR_OPTIONS="-H oldgnu"
11245 $as_ln_s foo directory/bar
11247 tar -cf archive.0 -g db directory
11249 tar -cf archive.1 -g db directory
11253 tar xvfg archive.0 /dev/null
11255 tar xvfg archive.1 /dev/null
11256 ) ) >"$at_stdout" 2>"$at_stderr"
11261 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11262 echo >>"$at_stdout"; echo "directory/
11266 tar: Deleting \`directory/bar'
11267 " | $at_diff - "$at_stdout" || at_failed=:
11269 77) echo 77 > "$at_status_file"; exit 77;;
11271 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11274 if $at_failed; then
11277 echo 1 > "$at_status_file"
11283 echo "$at_srcdir/incr01.at:30:
11286 TEST_TAR_FORMAT=posix
11287 export TEST_TAR_FORMAT
11288 TAR_OPTIONS=\"-H posix\"
11293 \$as_ln_s foo directory/bar
11295 tar -cf archive.0 -g db directory
11297 tar -cf archive.1 -g db directory
11301 tar xvfg archive.0 /dev/null
11303 tar xvfg archive.1 /dev/null
11305 echo incr01.at:30 >"$at_check_line_file"
11308 if test -n "$at_traceon"; then
11309 echo 'Not enabling shell tracing (command contains an embedded newline)'
11312 if test -n "$at_trace_this"; then
11316 TEST_TAR_FORMAT=posix
11317 export TEST_TAR_FORMAT
11318 TAR_OPTIONS="-H posix"
11323 $as_ln_s foo directory/bar
11325 tar -cf archive.0 -g db directory
11327 tar -cf archive.1 -g db directory
11331 tar xvfg archive.0 /dev/null
11333 tar xvfg archive.1 /dev/null
11334 ) ) >"$at_stdout" 2>"$at_stder1"
11336 grep '^ *+' "$at_stder1" >&2
11337 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11342 TEST_TAR_FORMAT=posix
11343 export TEST_TAR_FORMAT
11344 TAR_OPTIONS="-H posix"
11349 $as_ln_s foo directory/bar
11351 tar -cf archive.0 -g db directory
11353 tar -cf archive.1 -g db directory
11357 tar xvfg archive.0 /dev/null
11359 tar xvfg archive.1 /dev/null
11360 ) ) >"$at_stdout" 2>"$at_stderr"
11365 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11366 echo >>"$at_stdout"; echo "directory/
11370 tar: Deleting \`directory/bar'
11371 " | $at_diff - "$at_stdout" || at_failed=:
11373 77) echo 77 > "$at_status_file"; exit 77;;
11375 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11378 if $at_failed; then
11381 echo 1 > "$at_status_file"
11390 $at_times_p && times >"$at_times_file"
11391 ) 5>&1 2>&1 | eval $at_tee_pipe
11392 at_status=`cat "$at_status_file"`
11395 28 ) # 28. incr02.at:32: restoring timestamps from incremental
11396 at_setup_line='incr02.at:32'
11397 at_desc="restoring timestamps from incremental"
11398 $at_quiet $ECHO_N " 28: restoring timestamps from incremental $ECHO_C"
11400 test -f $XFAILFILE && at_xfail=yes
11401 echo "# -*- compilation -*-" >> "$at_group_log"
11403 echo "28. incr02.at:32: testing ..."
11411 echo "$at_srcdir/incr02.at:35:
11414 TEST_TAR_FORMAT=gnu
11415 export TEST_TAR_FORMAT
11416 TAR_OPTIONS=\"-H gnu\"
11420 # Create directory structure
11424 genfile --length 10 --file dir/subdir1/file
11426 # Save mtime for later comparison
11427 genfile --stat=mtime dir/subdir1 > ts
11429 # Create an archive. Using incremental mode makes sure the
11430 # archive will have a directory-first member ordering,
11435 # dir/subdir1/foofile
11437 # When restoring from this directory structure, \`dir/subdir2/' used to
11438 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11439 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11440 # latter clobbered the directory timestamp.
11442 tar -cf archive -g db dir
11444 # Move away the directory
11447 # Wait enough time for timestamps to differ in case of failure.
11450 # Restore the directory
11451 tar -xf archive dir
11453 # Check the timestamp
11454 genfile --stat=mtime dir/subdir1 | diff ts -
11456 echo incr02.at:35 >"$at_check_line_file"
11459 if test -n "$at_traceon"; then
11460 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11463 if test -n "$at_trace_this"; then
11467 TEST_TAR_FORMAT=gnu
11468 export TEST_TAR_FORMAT
11469 TAR_OPTIONS="-H gnu"
11473 # Create directory structure
11477 genfile --length 10 --file dir/subdir1/file
11479 # Save mtime for later comparison
11480 genfile --stat=mtime dir/subdir1 > ts
11482 # Create an archive. Using incremental mode makes sure the
11483 # archive will have a directory-first member ordering,
11488 # dir/subdir1/foofile
11490 # When restoring from this directory structure, `dir/subdir2/' used to
11491 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11492 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11493 # latter clobbered the directory timestamp.
11495 tar -cf archive -g db dir
11497 # Move away the directory
11500 # Wait enough time for timestamps to differ in case of failure.
11503 # Restore the directory
11504 tar -xf archive dir
11506 # Check the timestamp
11507 genfile --stat=mtime dir/subdir1 | diff ts -
11508 ) ) >"$at_stdout" 2>"$at_stder1"
11510 grep '^ *+' "$at_stder1" >&2
11511 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11516 TEST_TAR_FORMAT=gnu
11517 export TEST_TAR_FORMAT
11518 TAR_OPTIONS="-H gnu"
11522 # Create directory structure
11526 genfile --length 10 --file dir/subdir1/file
11528 # Save mtime for later comparison
11529 genfile --stat=mtime dir/subdir1 > ts
11531 # Create an archive. Using incremental mode makes sure the
11532 # archive will have a directory-first member ordering,
11537 # dir/subdir1/foofile
11539 # When restoring from this directory structure, `dir/subdir2/' used to
11540 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11541 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11542 # latter clobbered the directory timestamp.
11544 tar -cf archive -g db dir
11546 # Move away the directory
11549 # Wait enough time for timestamps to differ in case of failure.
11552 # Restore the directory
11553 tar -xf archive dir
11555 # Check the timestamp
11556 genfile --stat=mtime dir/subdir1 | diff ts -
11557 ) ) >"$at_stdout" 2>"$at_stderr"
11562 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11563 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11565 77) echo 77 > "$at_status_file"; exit 77;;
11567 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11570 if $at_failed; then
11573 echo 1 > "$at_status_file"
11579 echo "$at_srcdir/incr02.at:35:
11582 TEST_TAR_FORMAT=oldgnu
11583 export TEST_TAR_FORMAT
11584 TAR_OPTIONS=\"-H oldgnu\"
11588 # Create directory structure
11592 genfile --length 10 --file dir/subdir1/file
11594 # Save mtime for later comparison
11595 genfile --stat=mtime dir/subdir1 > ts
11597 # Create an archive. Using incremental mode makes sure the
11598 # archive will have a directory-first member ordering,
11603 # dir/subdir1/foofile
11605 # When restoring from this directory structure, \`dir/subdir2/' used to
11606 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11607 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11608 # latter clobbered the directory timestamp.
11610 tar -cf archive -g db dir
11612 # Move away the directory
11615 # Wait enough time for timestamps to differ in case of failure.
11618 # Restore the directory
11619 tar -xf archive dir
11621 # Check the timestamp
11622 genfile --stat=mtime dir/subdir1 | diff ts -
11624 echo incr02.at:35 >"$at_check_line_file"
11627 if test -n "$at_traceon"; then
11628 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11631 if test -n "$at_trace_this"; then
11635 TEST_TAR_FORMAT=oldgnu
11636 export TEST_TAR_FORMAT
11637 TAR_OPTIONS="-H oldgnu"
11641 # Create directory structure
11645 genfile --length 10 --file dir/subdir1/file
11647 # Save mtime for later comparison
11648 genfile --stat=mtime dir/subdir1 > ts
11650 # Create an archive. Using incremental mode makes sure the
11651 # archive will have a directory-first member ordering,
11656 # dir/subdir1/foofile
11658 # When restoring from this directory structure, `dir/subdir2/' used to
11659 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11660 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11661 # latter clobbered the directory timestamp.
11663 tar -cf archive -g db dir
11665 # Move away the directory
11668 # Wait enough time for timestamps to differ in case of failure.
11671 # Restore the directory
11672 tar -xf archive dir
11674 # Check the timestamp
11675 genfile --stat=mtime dir/subdir1 | diff ts -
11676 ) ) >"$at_stdout" 2>"$at_stder1"
11678 grep '^ *+' "$at_stder1" >&2
11679 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11684 TEST_TAR_FORMAT=oldgnu
11685 export TEST_TAR_FORMAT
11686 TAR_OPTIONS="-H oldgnu"
11690 # Create directory structure
11694 genfile --length 10 --file dir/subdir1/file
11696 # Save mtime for later comparison
11697 genfile --stat=mtime dir/subdir1 > ts
11699 # Create an archive. Using incremental mode makes sure the
11700 # archive will have a directory-first member ordering,
11705 # dir/subdir1/foofile
11707 # When restoring from this directory structure, `dir/subdir2/' used to
11708 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11709 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11710 # latter clobbered the directory timestamp.
11712 tar -cf archive -g db dir
11714 # Move away the directory
11717 # Wait enough time for timestamps to differ in case of failure.
11720 # Restore the directory
11721 tar -xf archive dir
11723 # Check the timestamp
11724 genfile --stat=mtime dir/subdir1 | diff ts -
11725 ) ) >"$at_stdout" 2>"$at_stderr"
11730 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11731 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11733 77) echo 77 > "$at_status_file"; exit 77;;
11735 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11738 if $at_failed; then
11741 echo 1 > "$at_status_file"
11747 echo "$at_srcdir/incr02.at:35:
11750 TEST_TAR_FORMAT=posix
11751 export TEST_TAR_FORMAT
11752 TAR_OPTIONS=\"-H posix\"
11756 # Create directory structure
11760 genfile --length 10 --file dir/subdir1/file
11762 # Save mtime for later comparison
11763 genfile --stat=mtime dir/subdir1 > ts
11765 # Create an archive. Using incremental mode makes sure the
11766 # archive will have a directory-first member ordering,
11771 # dir/subdir1/foofile
11773 # When restoring from this directory structure, \`dir/subdir2/' used to
11774 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11775 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11776 # latter clobbered the directory timestamp.
11778 tar -cf archive -g db dir
11780 # Move away the directory
11783 # Wait enough time for timestamps to differ in case of failure.
11786 # Restore the directory
11787 tar -xf archive dir
11789 # Check the timestamp
11790 genfile --stat=mtime dir/subdir1 | diff ts -
11792 echo incr02.at:35 >"$at_check_line_file"
11795 if test -n "$at_traceon"; then
11796 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11799 if test -n "$at_trace_this"; then
11803 TEST_TAR_FORMAT=posix
11804 export TEST_TAR_FORMAT
11805 TAR_OPTIONS="-H posix"
11809 # Create directory structure
11813 genfile --length 10 --file dir/subdir1/file
11815 # Save mtime for later comparison
11816 genfile --stat=mtime dir/subdir1 > ts
11818 # Create an archive. Using incremental mode makes sure the
11819 # archive will have a directory-first member ordering,
11824 # dir/subdir1/foofile
11826 # When restoring from this directory structure, `dir/subdir2/' used to
11827 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11828 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11829 # latter clobbered the directory timestamp.
11831 tar -cf archive -g db dir
11833 # Move away the directory
11836 # Wait enough time for timestamps to differ in case of failure.
11839 # Restore the directory
11840 tar -xf archive dir
11842 # Check the timestamp
11843 genfile --stat=mtime dir/subdir1 | diff ts -
11844 ) ) >"$at_stdout" 2>"$at_stder1"
11846 grep '^ *+' "$at_stder1" >&2
11847 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11852 TEST_TAR_FORMAT=posix
11853 export TEST_TAR_FORMAT
11854 TAR_OPTIONS="-H posix"
11858 # Create directory structure
11862 genfile --length 10 --file dir/subdir1/file
11864 # Save mtime for later comparison
11865 genfile --stat=mtime dir/subdir1 > ts
11867 # Create an archive. Using incremental mode makes sure the
11868 # archive will have a directory-first member ordering,
11873 # dir/subdir1/foofile
11875 # When restoring from this directory structure, `dir/subdir2/' used to
11876 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11877 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11878 # latter clobbered the directory timestamp.
11880 tar -cf archive -g db dir
11882 # Move away the directory
11885 # Wait enough time for timestamps to differ in case of failure.
11888 # Restore the directory
11889 tar -xf archive dir
11891 # Check the timestamp
11892 genfile --stat=mtime dir/subdir1 | diff ts -
11893 ) ) >"$at_stdout" 2>"$at_stderr"
11898 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11899 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11901 77) echo 77 > "$at_status_file"; exit 77;;
11903 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11906 if $at_failed; then
11909 echo 1 > "$at_status_file"
11918 $at_times_p && times >"$at_times_file"
11919 ) 5>&1 2>&1 | eval $at_tee_pipe
11920 at_status=`cat "$at_status_file"`
11923 29 ) # 29. listed01.at:26: --listed for individual files
11924 at_setup_line='listed01.at:26'
11925 at_desc="--listed for individual files"
11926 $at_quiet $ECHO_N " 29: --listed for individual files $ECHO_C"
11928 test -f $XFAILFILE && at_xfail=yes
11929 echo "# -*- compilation -*-" >> "$at_group_log"
11931 echo "29. listed01.at:26: testing ..."
11939 echo "$at_srcdir/listed01.at:29:
11942 TEST_TAR_FORMAT=gnu
11943 export TEST_TAR_FORMAT
11944 TAR_OPTIONS=\"-H gnu\"
11949 genfile --length 10240 --pattern zeros --file directory/file1
11950 # Let the things settle
11954 --file=archive.1 \\
11955 --listed-incremental=listing \\
11958 tar tf archive.1 || exit 1
11962 genfile --length 10240 --pattern zeros --file directory/file2
11967 --file=archive.2 \\
11968 --listed-incremental=listing \\
11969 directory/file* || exit 1
11971 tar tf archive.2 || exit 1
11973 echo listed01.at:29 >"$at_check_line_file"
11976 if test -n "$at_traceon"; then
11977 echo 'Not enabling shell tracing (command contains an embedded newline)'
11980 if test -n "$at_trace_this"; then
11984 TEST_TAR_FORMAT=gnu
11985 export TEST_TAR_FORMAT
11986 TAR_OPTIONS="-H gnu"
11991 genfile --length 10240 --pattern zeros --file directory/file1
11992 # Let the things settle
11997 --listed-incremental=listing \
12000 tar tf archive.1 || exit 1
12004 genfile --length 10240 --pattern zeros --file directory/file2
12010 --listed-incremental=listing \
12011 directory/file* || exit 1
12013 tar tf archive.2 || exit 1
12014 ) ) >"$at_stdout" 2>"$at_stder1"
12016 grep '^ *+' "$at_stder1" >&2
12017 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12022 TEST_TAR_FORMAT=gnu
12023 export TEST_TAR_FORMAT
12024 TAR_OPTIONS="-H gnu"
12029 genfile --length 10240 --pattern zeros --file directory/file1
12030 # Let the things settle
12035 --listed-incremental=listing \
12038 tar tf archive.1 || exit 1
12042 genfile --length 10240 --pattern zeros --file directory/file2
12048 --listed-incremental=listing \
12049 directory/file* || exit 1
12051 tar tf archive.2 || exit 1
12052 ) ) >"$at_stdout" 2>"$at_stderr"
12057 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12058 echo >>"$at_stdout"; echo "directory/file1
12061 " | $at_diff - "$at_stdout" || at_failed=:
12063 77) echo 77 > "$at_status_file"; exit 77;;
12065 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12068 if $at_failed; then
12071 echo 1 > "$at_status_file"
12077 echo "$at_srcdir/listed01.at:29:
12080 TEST_TAR_FORMAT=oldgnu
12081 export TEST_TAR_FORMAT
12082 TAR_OPTIONS=\"-H oldgnu\"
12087 genfile --length 10240 --pattern zeros --file directory/file1
12088 # Let the things settle
12092 --file=archive.1 \\
12093 --listed-incremental=listing \\
12096 tar tf archive.1 || exit 1
12100 genfile --length 10240 --pattern zeros --file directory/file2
12105 --file=archive.2 \\
12106 --listed-incremental=listing \\
12107 directory/file* || exit 1
12109 tar tf archive.2 || exit 1
12111 echo listed01.at:29 >"$at_check_line_file"
12114 if test -n "$at_traceon"; then
12115 echo 'Not enabling shell tracing (command contains an embedded newline)'
12118 if test -n "$at_trace_this"; then
12122 TEST_TAR_FORMAT=oldgnu
12123 export TEST_TAR_FORMAT
12124 TAR_OPTIONS="-H oldgnu"
12129 genfile --length 10240 --pattern zeros --file directory/file1
12130 # Let the things settle
12135 --listed-incremental=listing \
12138 tar tf archive.1 || exit 1
12142 genfile --length 10240 --pattern zeros --file directory/file2
12148 --listed-incremental=listing \
12149 directory/file* || exit 1
12151 tar tf archive.2 || exit 1
12152 ) ) >"$at_stdout" 2>"$at_stder1"
12154 grep '^ *+' "$at_stder1" >&2
12155 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12160 TEST_TAR_FORMAT=oldgnu
12161 export TEST_TAR_FORMAT
12162 TAR_OPTIONS="-H oldgnu"
12167 genfile --length 10240 --pattern zeros --file directory/file1
12168 # Let the things settle
12173 --listed-incremental=listing \
12176 tar tf archive.1 || exit 1
12180 genfile --length 10240 --pattern zeros --file directory/file2
12186 --listed-incremental=listing \
12187 directory/file* || exit 1
12189 tar tf archive.2 || exit 1
12190 ) ) >"$at_stdout" 2>"$at_stderr"
12195 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12196 echo >>"$at_stdout"; echo "directory/file1
12199 " | $at_diff - "$at_stdout" || at_failed=:
12201 77) echo 77 > "$at_status_file"; exit 77;;
12203 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12206 if $at_failed; then
12209 echo 1 > "$at_status_file"
12218 $at_times_p && times >"$at_times_file"
12219 ) 5>&1 2>&1 | eval $at_tee_pipe
12220 at_status=`cat "$at_status_file"`
12223 30 ) # 30. listed02.at:28: working --listed
12224 at_setup_line='listed02.at:28'
12225 at_desc="working --listed"
12226 $at_quiet $ECHO_N " 30: working --listed $ECHO_C"
12228 test -f $XFAILFILE && at_xfail=yes
12229 echo "# -*- compilation -*-" >> "$at_group_log"
12231 echo "30. listed02.at:28: testing ..."
12239 echo "$at_srcdir/listed02.at:31:
12242 TEST_TAR_FORMAT=gnu
12243 export TEST_TAR_FORMAT
12244 TAR_OPTIONS=\"-H gnu\"
12249 test -z "`sort < /dev/null 2>&1`" || exit 77
12251 echo Create directories
12260 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12262 echo File \$file > \$file
12267 echo Creating main archive
12268 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12270 # The above prints two lines to stderr announcing the new directories c0 and c1.
12271 # Ensure that they appear in this script's stderr in sorted order.
12272 sort err 1>&2; rm -f err
12275 echo Modifying filesystem
12282 echo Directory contents
12283 find tart -print | sort 2>/dev/null
12286 echo Creating incremental archive
12287 cp -p tart.incr1 tart.incr2
12288 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12293 echo Extracting main archive
12294 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12295 echo Extracting incremental archive
12296 # This command should produce three messages about deletion
12297 # of the existing files, that may appear in any order. Piping
12298 # to sort makes sure we don't depend on any particular ordering.
12299 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12302 find tart -print | sort 2>/dev/null
12304 echo listed02.at:31 >"$at_check_line_file"
12307 if test -n "$at_traceon"; then
12308 echo 'Not enabling shell tracing (command contains an embedded newline)'
12311 if test -n "$at_trace_this"; then
12315 TEST_TAR_FORMAT=gnu
12316 export TEST_TAR_FORMAT
12317 TAR_OPTIONS="-H gnu"
12322 test -z "`sort < /dev/null 2>&1`" || exit 77
12324 echo Create directories
12333 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12335 echo File $file > $file
12340 echo Creating main archive
12341 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12343 # The above prints two lines to stderr announcing the new directories c0 and c1.
12344 # Ensure that they appear in this script's stderr in sorted order.
12345 sort err 1>&2; rm -f err
12348 echo Modifying filesystem
12355 echo Directory contents
12356 find tart -print | sort 2>/dev/null
12359 echo Creating incremental archive
12360 cp -p tart.incr1 tart.incr2
12361 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12366 echo Extracting main archive
12367 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12368 echo Extracting incremental archive
12369 # This command should produce three messages about deletion
12370 # of the existing files, that may appear in any order. Piping
12371 # to sort makes sure we don't depend on any particular ordering.
12372 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12375 find tart -print | sort 2>/dev/null
12376 ) ) >"$at_stdout" 2>"$at_stder1"
12378 grep '^ *+' "$at_stder1" >&2
12379 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12384 TEST_TAR_FORMAT=gnu
12385 export TEST_TAR_FORMAT
12386 TAR_OPTIONS="-H gnu"
12391 test -z "`sort < /dev/null 2>&1`" || exit 77
12393 echo Create directories
12402 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12404 echo File $file > $file
12409 echo Creating main archive
12410 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12412 # The above prints two lines to stderr announcing the new directories c0 and c1.
12413 # Ensure that they appear in this script's stderr in sorted order.
12414 sort err 1>&2; rm -f err
12417 echo Modifying filesystem
12424 echo Directory contents
12425 find tart -print | sort 2>/dev/null
12428 echo Creating incremental archive
12429 cp -p tart.incr1 tart.incr2
12430 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12435 echo Extracting main archive
12436 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12437 echo Extracting incremental archive
12438 # This command should produce three messages about deletion
12439 # of the existing files, that may appear in any order. Piping
12440 # to sort makes sure we don't depend on any particular ordering.
12441 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12444 find tart -print | sort 2>/dev/null
12445 ) ) >"$at_stdout" 2>"$at_stderr"
12450 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
12451 tar: tart/c1: Directory is new
12452 tar: tart/c2: Directory has been renamed from \`tart/c1'
12453 " | $at_diff - "$at_stderr" || at_failed=:
12454 echo >>"$at_stdout"; echo "Create directories
12455 Creating main archive
12465 Modifying filesystem
12476 Creating incremental archive
12482 Extracting main archive
12492 Extracting incremental archive
12493 tar: Deleting \`tart/a1'
12494 tar: Deleting \`tart/b1'
12510 " | $at_diff - "$at_stdout" || at_failed=:
12512 77) echo 77 > "$at_status_file"; exit 77;;
12514 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
12517 if $at_failed; then
12520 echo 1 > "$at_status_file"
12526 echo "$at_srcdir/listed02.at:31:
12529 TEST_TAR_FORMAT=oldgnu
12530 export TEST_TAR_FORMAT
12531 TAR_OPTIONS=\"-H oldgnu\"
12536 test -z "`sort < /dev/null 2>&1`" || exit 77
12538 echo Create directories
12547 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12549 echo File \$file > \$file
12554 echo Creating main archive
12555 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12557 # The above prints two lines to stderr announcing the new directories c0 and c1.
12558 # Ensure that they appear in this script's stderr in sorted order.
12559 sort err 1>&2; rm -f err
12562 echo Modifying filesystem
12569 echo Directory contents
12570 find tart -print | sort 2>/dev/null
12573 echo Creating incremental archive
12574 cp -p tart.incr1 tart.incr2
12575 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12580 echo Extracting main archive
12581 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12582 echo Extracting incremental archive
12583 # This command should produce three messages about deletion
12584 # of the existing files, that may appear in any order. Piping
12585 # to sort makes sure we don't depend on any particular ordering.
12586 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12589 find tart -print | sort 2>/dev/null
12591 echo listed02.at:31 >"$at_check_line_file"
12594 if test -n "$at_traceon"; then
12595 echo 'Not enabling shell tracing (command contains an embedded newline)'
12598 if test -n "$at_trace_this"; then
12602 TEST_TAR_FORMAT=oldgnu
12603 export TEST_TAR_FORMAT
12604 TAR_OPTIONS="-H oldgnu"
12609 test -z "`sort < /dev/null 2>&1`" || exit 77
12611 echo Create directories
12620 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12622 echo File $file > $file
12627 echo Creating main archive
12628 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12630 # The above prints two lines to stderr announcing the new directories c0 and c1.
12631 # Ensure that they appear in this script's stderr in sorted order.
12632 sort err 1>&2; rm -f err
12635 echo Modifying filesystem
12642 echo Directory contents
12643 find tart -print | sort 2>/dev/null
12646 echo Creating incremental archive
12647 cp -p tart.incr1 tart.incr2
12648 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12653 echo Extracting main archive
12654 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12655 echo Extracting incremental archive
12656 # This command should produce three messages about deletion
12657 # of the existing files, that may appear in any order. Piping
12658 # to sort makes sure we don't depend on any particular ordering.
12659 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12662 find tart -print | sort 2>/dev/null
12663 ) ) >"$at_stdout" 2>"$at_stder1"
12665 grep '^ *+' "$at_stder1" >&2
12666 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12671 TEST_TAR_FORMAT=oldgnu
12672 export TEST_TAR_FORMAT
12673 TAR_OPTIONS="-H oldgnu"
12678 test -z "`sort < /dev/null 2>&1`" || exit 77
12680 echo Create directories
12689 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12691 echo File $file > $file
12696 echo Creating main archive
12697 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12699 # The above prints two lines to stderr announcing the new directories c0 and c1.
12700 # Ensure that they appear in this script's stderr in sorted order.
12701 sort err 1>&2; rm -f err
12704 echo Modifying filesystem
12711 echo Directory contents
12712 find tart -print | sort 2>/dev/null
12715 echo Creating incremental archive
12716 cp -p tart.incr1 tart.incr2
12717 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12722 echo Extracting main archive
12723 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12724 echo Extracting incremental archive
12725 # This command should produce three messages about deletion
12726 # of the existing files, that may appear in any order. Piping
12727 # to sort makes sure we don't depend on any particular ordering.
12728 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12731 find tart -print | sort 2>/dev/null
12732 ) ) >"$at_stdout" 2>"$at_stderr"
12737 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
12738 tar: tart/c1: Directory is new
12739 tar: tart/c2: Directory has been renamed from \`tart/c1'
12740 " | $at_diff - "$at_stderr" || at_failed=:
12741 echo >>"$at_stdout"; echo "Create directories
12742 Creating main archive
12752 Modifying filesystem
12763 Creating incremental archive
12769 Extracting main archive
12779 Extracting incremental archive
12780 tar: Deleting \`tart/a1'
12781 tar: Deleting \`tart/b1'
12797 " | $at_diff - "$at_stdout" || at_failed=:
12799 77) echo 77 > "$at_status_file"; exit 77;;
12801 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
12804 if $at_failed; then
12807 echo 1 > "$at_status_file"
12816 $at_times_p && times >"$at_times_file"
12817 ) 5>&1 2>&1 | eval $at_tee_pipe
12818 at_status=`cat "$at_status_file"`
12821 31 ) # 31. incr03.at:28: renamed files in incrementals
12822 at_setup_line='incr03.at:28'
12823 at_desc="renamed files in incrementals"
12824 $at_quiet $ECHO_N " 31: renamed files in incrementals $ECHO_C"
12826 test -f $XFAILFILE && at_xfail=yes
12827 echo "# -*- compilation -*-" >> "$at_group_log"
12829 echo "31. incr03.at:28: testing ..."
12837 echo "$at_srcdir/incr03.at:31:
12840 TEST_TAR_FORMAT=gnu
12841 export TEST_TAR_FORMAT
12842 TAR_OPTIONS=\"-H gnu\"
12847 test -z "`sort < /dev/null 2>&1`" || exit 77
12850 genfile --file=directory/x
12851 genfile --file=directory/y
12855 tar -cf archive.1 -g db directory
12857 mv directory/x directory/z
12858 tar -cf archive.2 -g db directory
12862 echo Listing of archive.1
12863 tar -tf archive.1 | sort
12864 echo Listing of archive.2
12865 tar -tf archive.2 | sort
12867 echo Directory after first restore
12868 tar -xf archive.1 -g db
12869 find directory | sort
12871 echo Directory after second restore
12872 tar -xf archive.2 -g db
12873 find directory | sort
12875 echo incr03.at:31 >"$at_check_line_file"
12878 if test -n "$at_traceon"; then
12879 echo 'Not enabling shell tracing (command contains an embedded newline)'
12882 if test -n "$at_trace_this"; then
12886 TEST_TAR_FORMAT=gnu
12887 export TEST_TAR_FORMAT
12888 TAR_OPTIONS="-H gnu"
12893 test -z "`sort < /dev/null 2>&1`" || exit 77
12896 genfile --file=directory/x
12897 genfile --file=directory/y
12901 tar -cf archive.1 -g db directory
12903 mv directory/x directory/z
12904 tar -cf archive.2 -g db directory
12908 echo Listing of archive.1
12909 tar -tf archive.1 | sort
12910 echo Listing of archive.2
12911 tar -tf archive.2 | sort
12913 echo Directory after first restore
12914 tar -xf archive.1 -g db
12915 find directory | sort
12917 echo Directory after second restore
12918 tar -xf archive.2 -g db
12919 find directory | sort
12920 ) ) >"$at_stdout" 2>"$at_stder1"
12922 grep '^ *+' "$at_stder1" >&2
12923 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12928 TEST_TAR_FORMAT=gnu
12929 export TEST_TAR_FORMAT
12930 TAR_OPTIONS="-H gnu"
12935 test -z "`sort < /dev/null 2>&1`" || exit 77
12938 genfile --file=directory/x
12939 genfile --file=directory/y
12943 tar -cf archive.1 -g db directory
12945 mv directory/x directory/z
12946 tar -cf archive.2 -g db directory
12950 echo Listing of archive.1
12951 tar -tf archive.1 | sort
12952 echo Listing of archive.2
12953 tar -tf archive.2 | sort
12955 echo Directory after first restore
12956 tar -xf archive.1 -g db
12957 find directory | sort
12959 echo Directory after second restore
12960 tar -xf archive.2 -g db
12961 find directory | sort
12962 ) ) >"$at_stdout" 2>"$at_stderr"
12967 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12968 echo >>"$at_stdout"; echo "Listing of archive.1
12972 Listing of archive.2
12975 Directory after first restore
12979 Directory after second restore
12983 " | $at_diff - "$at_stdout" || at_failed=:
12985 77) echo 77 > "$at_status_file"; exit 77;;
12987 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
12990 if $at_failed; then
12993 echo 1 > "$at_status_file"
12999 echo "$at_srcdir/incr03.at:31:
13002 TEST_TAR_FORMAT=oldgnu
13003 export TEST_TAR_FORMAT
13004 TAR_OPTIONS=\"-H oldgnu\"
13009 test -z "`sort < /dev/null 2>&1`" || exit 77
13012 genfile --file=directory/x
13013 genfile --file=directory/y
13017 tar -cf archive.1 -g db directory
13019 mv directory/x directory/z
13020 tar -cf archive.2 -g db directory
13024 echo Listing of archive.1
13025 tar -tf archive.1 | sort
13026 echo Listing of archive.2
13027 tar -tf archive.2 | sort
13029 echo Directory after first restore
13030 tar -xf archive.1 -g db
13031 find directory | sort
13033 echo Directory after second restore
13034 tar -xf archive.2 -g db
13035 find directory | sort
13037 echo incr03.at:31 >"$at_check_line_file"
13040 if test -n "$at_traceon"; then
13041 echo 'Not enabling shell tracing (command contains an embedded newline)'
13044 if test -n "$at_trace_this"; then
13048 TEST_TAR_FORMAT=oldgnu
13049 export TEST_TAR_FORMAT
13050 TAR_OPTIONS="-H oldgnu"
13055 test -z "`sort < /dev/null 2>&1`" || exit 77
13058 genfile --file=directory/x
13059 genfile --file=directory/y
13063 tar -cf archive.1 -g db directory
13065 mv directory/x directory/z
13066 tar -cf archive.2 -g db directory
13070 echo Listing of archive.1
13071 tar -tf archive.1 | sort
13072 echo Listing of archive.2
13073 tar -tf archive.2 | sort
13075 echo Directory after first restore
13076 tar -xf archive.1 -g db
13077 find directory | sort
13079 echo Directory after second restore
13080 tar -xf archive.2 -g db
13081 find directory | sort
13082 ) ) >"$at_stdout" 2>"$at_stder1"
13084 grep '^ *+' "$at_stder1" >&2
13085 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13090 TEST_TAR_FORMAT=oldgnu
13091 export TEST_TAR_FORMAT
13092 TAR_OPTIONS="-H oldgnu"
13097 test -z "`sort < /dev/null 2>&1`" || exit 77
13100 genfile --file=directory/x
13101 genfile --file=directory/y
13105 tar -cf archive.1 -g db directory
13107 mv directory/x directory/z
13108 tar -cf archive.2 -g db directory
13112 echo Listing of archive.1
13113 tar -tf archive.1 | sort
13114 echo Listing of archive.2
13115 tar -tf archive.2 | sort
13117 echo Directory after first restore
13118 tar -xf archive.1 -g db
13119 find directory | sort
13121 echo Directory after second restore
13122 tar -xf archive.2 -g db
13123 find directory | sort
13124 ) ) >"$at_stdout" 2>"$at_stderr"
13129 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13130 echo >>"$at_stdout"; echo "Listing of archive.1
13134 Listing of archive.2
13137 Directory after first restore
13141 Directory after second restore
13145 " | $at_diff - "$at_stdout" || at_failed=:
13147 77) echo 77 > "$at_status_file"; exit 77;;
13149 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13152 if $at_failed; then
13155 echo 1 > "$at_status_file"
13161 echo "$at_srcdir/incr03.at:31:
13164 TEST_TAR_FORMAT=posix
13165 export TEST_TAR_FORMAT
13166 TAR_OPTIONS=\"-H posix\"
13171 test -z "`sort < /dev/null 2>&1`" || exit 77
13174 genfile --file=directory/x
13175 genfile --file=directory/y
13179 tar -cf archive.1 -g db directory
13181 mv directory/x directory/z
13182 tar -cf archive.2 -g db directory
13186 echo Listing of archive.1
13187 tar -tf archive.1 | sort
13188 echo Listing of archive.2
13189 tar -tf archive.2 | sort
13191 echo Directory after first restore
13192 tar -xf archive.1 -g db
13193 find directory | sort
13195 echo Directory after second restore
13196 tar -xf archive.2 -g db
13197 find directory | sort
13199 echo incr03.at:31 >"$at_check_line_file"
13202 if test -n "$at_traceon"; then
13203 echo 'Not enabling shell tracing (command contains an embedded newline)'
13206 if test -n "$at_trace_this"; then
13210 TEST_TAR_FORMAT=posix
13211 export TEST_TAR_FORMAT
13212 TAR_OPTIONS="-H posix"
13217 test -z "`sort < /dev/null 2>&1`" || exit 77
13220 genfile --file=directory/x
13221 genfile --file=directory/y
13225 tar -cf archive.1 -g db directory
13227 mv directory/x directory/z
13228 tar -cf archive.2 -g db directory
13232 echo Listing of archive.1
13233 tar -tf archive.1 | sort
13234 echo Listing of archive.2
13235 tar -tf archive.2 | sort
13237 echo Directory after first restore
13238 tar -xf archive.1 -g db
13239 find directory | sort
13241 echo Directory after second restore
13242 tar -xf archive.2 -g db
13243 find directory | sort
13244 ) ) >"$at_stdout" 2>"$at_stder1"
13246 grep '^ *+' "$at_stder1" >&2
13247 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13252 TEST_TAR_FORMAT=posix
13253 export TEST_TAR_FORMAT
13254 TAR_OPTIONS="-H posix"
13259 test -z "`sort < /dev/null 2>&1`" || exit 77
13262 genfile --file=directory/x
13263 genfile --file=directory/y
13267 tar -cf archive.1 -g db directory
13269 mv directory/x directory/z
13270 tar -cf archive.2 -g db directory
13274 echo Listing of archive.1
13275 tar -tf archive.1 | sort
13276 echo Listing of archive.2
13277 tar -tf archive.2 | sort
13279 echo Directory after first restore
13280 tar -xf archive.1 -g db
13281 find directory | sort
13283 echo Directory after second restore
13284 tar -xf archive.2 -g db
13285 find directory | sort
13286 ) ) >"$at_stdout" 2>"$at_stderr"
13291 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13292 echo >>"$at_stdout"; echo "Listing of archive.1
13296 Listing of archive.2
13299 Directory after first restore
13303 Directory after second restore
13307 " | $at_diff - "$at_stdout" || at_failed=:
13309 77) echo 77 > "$at_status_file"; exit 77;;
13311 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13314 if $at_failed; then
13317 echo 1 > "$at_status_file"
13326 $at_times_p && times >"$at_times_file"
13327 ) 5>&1 2>&1 | eval $at_tee_pipe
13328 at_status=`cat "$at_status_file"`
13331 32 ) # 32. incr04.at:29: proper icontents initialization
13332 at_setup_line='incr04.at:29'
13333 at_desc="proper icontents initialization"
13334 $at_quiet $ECHO_N " 32: proper icontents initialization $ECHO_C"
13336 test -f $XFAILFILE && at_xfail=yes
13337 echo "# -*- compilation -*-" >> "$at_group_log"
13339 echo "32. incr04.at:29: testing ..."
13349 echo "$at_srcdir/incr04.at:34:
13352 TEST_TAR_FORMAT=gnu
13353 export TEST_TAR_FORMAT
13354 TAR_OPTIONS=\"-H gnu\"
13359 install-sh -d a/b >/dev/null || exit 77
13361 for (i=1;i<=142;i++)
13362 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13363 }' < /dev/null | genfile --files-from -
13367 echo \"Initial dump\"
13368 tar cvf a0.tar -g a.sna a
13370 echo \"Incremental dump\"
13371 tar cvf a1.tar -g a.sna a
13373 echo incr04.at:34 >"$at_check_line_file"
13376 if test -n "$at_traceon"; then
13377 echo 'Not enabling shell tracing (command contains an embedded newline)'
13380 if test -n "$at_trace_this"; then
13384 TEST_TAR_FORMAT=gnu
13385 export TEST_TAR_FORMAT
13386 TAR_OPTIONS="-H gnu"
13391 install-sh -d a/b >/dev/null || exit 77
13393 for (i=1;i<=142;i++)
13394 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13395 }' < /dev/null | genfile --files-from -
13399 echo "Initial dump"
13400 tar cvf a0.tar -g a.sna a
13402 echo "Incremental dump"
13403 tar cvf a1.tar -g a.sna a
13404 ) ) >"$at_stdout" 2>"$at_stder1"
13406 grep '^ *+' "$at_stder1" >&2
13407 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13412 TEST_TAR_FORMAT=gnu
13413 export TEST_TAR_FORMAT
13414 TAR_OPTIONS="-H gnu"
13419 install-sh -d a/b >/dev/null || exit 77
13421 for (i=1;i<=142;i++)
13422 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13423 }' < /dev/null | genfile --files-from -
13427 echo "Initial dump"
13428 tar cvf a0.tar -g a.sna a
13430 echo "Incremental dump"
13431 tar cvf a1.tar -g a.sna a
13432 ) ) >"$at_stdout" 2>"$at_stderr"
13437 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13438 tar: a/c: Directory has been renamed from \`a/b'
13439 " | $at_diff - "$at_stderr" || at_failed=:
13440 echo >>"$at_stdout"; echo "Initial dump
13443 a/b/one_31_chars_long_file_name_001
13444 a/b/one_31_chars_long_file_name_002
13445 a/b/one_31_chars_long_file_name_003
13446 a/b/one_31_chars_long_file_name_004
13447 a/b/one_31_chars_long_file_name_005
13448 a/b/one_31_chars_long_file_name_006
13449 a/b/one_31_chars_long_file_name_007
13450 a/b/one_31_chars_long_file_name_008
13451 a/b/one_31_chars_long_file_name_009
13452 a/b/one_31_chars_long_file_name_010
13453 a/b/one_31_chars_long_file_name_011
13454 a/b/one_31_chars_long_file_name_012
13455 a/b/one_31_chars_long_file_name_013
13456 a/b/one_31_chars_long_file_name_014
13457 a/b/one_31_chars_long_file_name_015
13458 a/b/one_31_chars_long_file_name_016
13459 a/b/one_31_chars_long_file_name_017
13460 a/b/one_31_chars_long_file_name_018
13461 a/b/one_31_chars_long_file_name_019
13462 a/b/one_31_chars_long_file_name_020
13463 a/b/one_31_chars_long_file_name_021
13464 a/b/one_31_chars_long_file_name_022
13465 a/b/one_31_chars_long_file_name_023
13466 a/b/one_31_chars_long_file_name_024
13467 a/b/one_31_chars_long_file_name_025
13468 a/b/one_31_chars_long_file_name_026
13469 a/b/one_31_chars_long_file_name_027
13470 a/b/one_31_chars_long_file_name_028
13471 a/b/one_31_chars_long_file_name_029
13472 a/b/one_31_chars_long_file_name_030
13473 a/b/one_31_chars_long_file_name_031
13474 a/b/one_31_chars_long_file_name_032
13475 a/b/one_31_chars_long_file_name_033
13476 a/b/one_31_chars_long_file_name_034
13477 a/b/one_31_chars_long_file_name_035
13478 a/b/one_31_chars_long_file_name_036
13479 a/b/one_31_chars_long_file_name_037
13480 a/b/one_31_chars_long_file_name_038
13481 a/b/one_31_chars_long_file_name_039
13482 a/b/one_31_chars_long_file_name_040
13483 a/b/one_31_chars_long_file_name_041
13484 a/b/one_31_chars_long_file_name_042
13485 a/b/one_31_chars_long_file_name_043
13486 a/b/one_31_chars_long_file_name_044
13487 a/b/one_31_chars_long_file_name_045
13488 a/b/one_31_chars_long_file_name_046
13489 a/b/one_31_chars_long_file_name_047
13490 a/b/one_31_chars_long_file_name_048
13491 a/b/one_31_chars_long_file_name_049
13492 a/b/one_31_chars_long_file_name_050
13493 a/b/one_31_chars_long_file_name_051
13494 a/b/one_31_chars_long_file_name_052
13495 a/b/one_31_chars_long_file_name_053
13496 a/b/one_31_chars_long_file_name_054
13497 a/b/one_31_chars_long_file_name_055
13498 a/b/one_31_chars_long_file_name_056
13499 a/b/one_31_chars_long_file_name_057
13500 a/b/one_31_chars_long_file_name_058
13501 a/b/one_31_chars_long_file_name_059
13502 a/b/one_31_chars_long_file_name_060
13503 a/b/one_31_chars_long_file_name_061
13504 a/b/one_31_chars_long_file_name_062
13505 a/b/one_31_chars_long_file_name_063
13506 a/b/one_31_chars_long_file_name_064
13507 a/b/one_31_chars_long_file_name_065
13508 a/b/one_31_chars_long_file_name_066
13509 a/b/one_31_chars_long_file_name_067
13510 a/b/one_31_chars_long_file_name_068
13511 a/b/one_31_chars_long_file_name_069
13512 a/b/one_31_chars_long_file_name_070
13513 a/b/one_31_chars_long_file_name_071
13514 a/b/one_31_chars_long_file_name_072
13515 a/b/one_31_chars_long_file_name_073
13516 a/b/one_31_chars_long_file_name_074
13517 a/b/one_31_chars_long_file_name_075
13518 a/b/one_31_chars_long_file_name_076
13519 a/b/one_31_chars_long_file_name_077
13520 a/b/one_31_chars_long_file_name_078
13521 a/b/one_31_chars_long_file_name_079
13522 a/b/one_31_chars_long_file_name_080
13523 a/b/one_31_chars_long_file_name_081
13524 a/b/one_31_chars_long_file_name_082
13525 a/b/one_31_chars_long_file_name_083
13526 a/b/one_31_chars_long_file_name_084
13527 a/b/one_31_chars_long_file_name_085
13528 a/b/one_31_chars_long_file_name_086
13529 a/b/one_31_chars_long_file_name_087
13530 a/b/one_31_chars_long_file_name_088
13531 a/b/one_31_chars_long_file_name_089
13532 a/b/one_31_chars_long_file_name_090
13533 a/b/one_31_chars_long_file_name_091
13534 a/b/one_31_chars_long_file_name_092
13535 a/b/one_31_chars_long_file_name_093
13536 a/b/one_31_chars_long_file_name_094
13537 a/b/one_31_chars_long_file_name_095
13538 a/b/one_31_chars_long_file_name_096
13539 a/b/one_31_chars_long_file_name_097
13540 a/b/one_31_chars_long_file_name_098
13541 a/b/one_31_chars_long_file_name_099
13542 a/b/one_31_chars_long_file_name_100
13543 a/b/one_31_chars_long_file_name_101
13544 a/b/one_31_chars_long_file_name_102
13545 a/b/one_31_chars_long_file_name_103
13546 a/b/one_31_chars_long_file_name_104
13547 a/b/one_31_chars_long_file_name_105
13548 a/b/one_31_chars_long_file_name_106
13549 a/b/one_31_chars_long_file_name_107
13550 a/b/one_31_chars_long_file_name_108
13551 a/b/one_31_chars_long_file_name_109
13552 a/b/one_31_chars_long_file_name_110
13553 a/b/one_31_chars_long_file_name_111
13554 a/b/one_31_chars_long_file_name_112
13555 a/b/one_31_chars_long_file_name_113
13556 a/b/one_31_chars_long_file_name_114
13557 a/b/one_31_chars_long_file_name_115
13558 a/b/one_31_chars_long_file_name_116
13559 a/b/one_31_chars_long_file_name_117
13560 a/b/one_31_chars_long_file_name_118
13561 a/b/one_31_chars_long_file_name_119
13562 a/b/one_31_chars_long_file_name_120
13563 a/b/one_31_chars_long_file_name_121
13564 a/b/one_31_chars_long_file_name_122
13565 a/b/one_31_chars_long_file_name_123
13566 a/b/one_31_chars_long_file_name_124
13567 a/b/one_31_chars_long_file_name_125
13568 a/b/one_31_chars_long_file_name_126
13569 a/b/one_31_chars_long_file_name_127
13570 a/b/one_31_chars_long_file_name_128
13571 a/b/one_31_chars_long_file_name_129
13572 a/b/one_31_chars_long_file_name_130
13573 a/b/one_31_chars_long_file_name_131
13574 a/b/one_31_chars_long_file_name_132
13575 a/b/one_31_chars_long_file_name_133
13576 a/b/one_31_chars_long_file_name_134
13577 a/b/one_31_chars_long_file_name_135
13578 a/b/one_31_chars_long_file_name_136
13579 a/b/one_31_chars_long_file_name_137
13580 a/b/one_31_chars_long_file_name_138
13581 a/b/one_31_chars_long_file_name_139
13582 a/b/one_31_chars_long_file_name_140
13583 a/b/one_31_chars_long_file_name_141
13584 a/b/one_31_chars_long_file_name_142
13588 " | $at_diff - "$at_stdout" || at_failed=:
13590 77) echo 77 > "$at_status_file"; exit 77;;
13592 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
13595 if $at_failed; then
13598 echo 1 > "$at_status_file"
13604 echo "$at_srcdir/incr04.at:34:
13607 TEST_TAR_FORMAT=oldgnu
13608 export TEST_TAR_FORMAT
13609 TAR_OPTIONS=\"-H oldgnu\"
13614 install-sh -d a/b >/dev/null || exit 77
13616 for (i=1;i<=142;i++)
13617 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13618 }' < /dev/null | genfile --files-from -
13622 echo \"Initial dump\"
13623 tar cvf a0.tar -g a.sna a
13625 echo \"Incremental dump\"
13626 tar cvf a1.tar -g a.sna a
13628 echo incr04.at:34 >"$at_check_line_file"
13631 if test -n "$at_traceon"; then
13632 echo 'Not enabling shell tracing (command contains an embedded newline)'
13635 if test -n "$at_trace_this"; then
13639 TEST_TAR_FORMAT=oldgnu
13640 export TEST_TAR_FORMAT
13641 TAR_OPTIONS="-H oldgnu"
13646 install-sh -d a/b >/dev/null || exit 77
13648 for (i=1;i<=142;i++)
13649 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13650 }' < /dev/null | genfile --files-from -
13654 echo "Initial dump"
13655 tar cvf a0.tar -g a.sna a
13657 echo "Incremental dump"
13658 tar cvf a1.tar -g a.sna a
13659 ) ) >"$at_stdout" 2>"$at_stder1"
13661 grep '^ *+' "$at_stder1" >&2
13662 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13667 TEST_TAR_FORMAT=oldgnu
13668 export TEST_TAR_FORMAT
13669 TAR_OPTIONS="-H oldgnu"
13674 install-sh -d a/b >/dev/null || exit 77
13676 for (i=1;i<=142;i++)
13677 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13678 }' < /dev/null | genfile --files-from -
13682 echo "Initial dump"
13683 tar cvf a0.tar -g a.sna a
13685 echo "Incremental dump"
13686 tar cvf a1.tar -g a.sna a
13687 ) ) >"$at_stdout" 2>"$at_stderr"
13692 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13693 tar: a/c: Directory has been renamed from \`a/b'
13694 " | $at_diff - "$at_stderr" || at_failed=:
13695 echo >>"$at_stdout"; echo "Initial dump
13698 a/b/one_31_chars_long_file_name_001
13699 a/b/one_31_chars_long_file_name_002
13700 a/b/one_31_chars_long_file_name_003
13701 a/b/one_31_chars_long_file_name_004
13702 a/b/one_31_chars_long_file_name_005
13703 a/b/one_31_chars_long_file_name_006
13704 a/b/one_31_chars_long_file_name_007
13705 a/b/one_31_chars_long_file_name_008
13706 a/b/one_31_chars_long_file_name_009
13707 a/b/one_31_chars_long_file_name_010
13708 a/b/one_31_chars_long_file_name_011
13709 a/b/one_31_chars_long_file_name_012
13710 a/b/one_31_chars_long_file_name_013
13711 a/b/one_31_chars_long_file_name_014
13712 a/b/one_31_chars_long_file_name_015
13713 a/b/one_31_chars_long_file_name_016
13714 a/b/one_31_chars_long_file_name_017
13715 a/b/one_31_chars_long_file_name_018
13716 a/b/one_31_chars_long_file_name_019
13717 a/b/one_31_chars_long_file_name_020
13718 a/b/one_31_chars_long_file_name_021
13719 a/b/one_31_chars_long_file_name_022
13720 a/b/one_31_chars_long_file_name_023
13721 a/b/one_31_chars_long_file_name_024
13722 a/b/one_31_chars_long_file_name_025
13723 a/b/one_31_chars_long_file_name_026
13724 a/b/one_31_chars_long_file_name_027
13725 a/b/one_31_chars_long_file_name_028
13726 a/b/one_31_chars_long_file_name_029
13727 a/b/one_31_chars_long_file_name_030
13728 a/b/one_31_chars_long_file_name_031
13729 a/b/one_31_chars_long_file_name_032
13730 a/b/one_31_chars_long_file_name_033
13731 a/b/one_31_chars_long_file_name_034
13732 a/b/one_31_chars_long_file_name_035
13733 a/b/one_31_chars_long_file_name_036
13734 a/b/one_31_chars_long_file_name_037
13735 a/b/one_31_chars_long_file_name_038
13736 a/b/one_31_chars_long_file_name_039
13737 a/b/one_31_chars_long_file_name_040
13738 a/b/one_31_chars_long_file_name_041
13739 a/b/one_31_chars_long_file_name_042
13740 a/b/one_31_chars_long_file_name_043
13741 a/b/one_31_chars_long_file_name_044
13742 a/b/one_31_chars_long_file_name_045
13743 a/b/one_31_chars_long_file_name_046
13744 a/b/one_31_chars_long_file_name_047
13745 a/b/one_31_chars_long_file_name_048
13746 a/b/one_31_chars_long_file_name_049
13747 a/b/one_31_chars_long_file_name_050
13748 a/b/one_31_chars_long_file_name_051
13749 a/b/one_31_chars_long_file_name_052
13750 a/b/one_31_chars_long_file_name_053
13751 a/b/one_31_chars_long_file_name_054
13752 a/b/one_31_chars_long_file_name_055
13753 a/b/one_31_chars_long_file_name_056
13754 a/b/one_31_chars_long_file_name_057
13755 a/b/one_31_chars_long_file_name_058
13756 a/b/one_31_chars_long_file_name_059
13757 a/b/one_31_chars_long_file_name_060
13758 a/b/one_31_chars_long_file_name_061
13759 a/b/one_31_chars_long_file_name_062
13760 a/b/one_31_chars_long_file_name_063
13761 a/b/one_31_chars_long_file_name_064
13762 a/b/one_31_chars_long_file_name_065
13763 a/b/one_31_chars_long_file_name_066
13764 a/b/one_31_chars_long_file_name_067
13765 a/b/one_31_chars_long_file_name_068
13766 a/b/one_31_chars_long_file_name_069
13767 a/b/one_31_chars_long_file_name_070
13768 a/b/one_31_chars_long_file_name_071
13769 a/b/one_31_chars_long_file_name_072
13770 a/b/one_31_chars_long_file_name_073
13771 a/b/one_31_chars_long_file_name_074
13772 a/b/one_31_chars_long_file_name_075
13773 a/b/one_31_chars_long_file_name_076
13774 a/b/one_31_chars_long_file_name_077
13775 a/b/one_31_chars_long_file_name_078
13776 a/b/one_31_chars_long_file_name_079
13777 a/b/one_31_chars_long_file_name_080
13778 a/b/one_31_chars_long_file_name_081
13779 a/b/one_31_chars_long_file_name_082
13780 a/b/one_31_chars_long_file_name_083
13781 a/b/one_31_chars_long_file_name_084
13782 a/b/one_31_chars_long_file_name_085
13783 a/b/one_31_chars_long_file_name_086
13784 a/b/one_31_chars_long_file_name_087
13785 a/b/one_31_chars_long_file_name_088
13786 a/b/one_31_chars_long_file_name_089
13787 a/b/one_31_chars_long_file_name_090
13788 a/b/one_31_chars_long_file_name_091
13789 a/b/one_31_chars_long_file_name_092
13790 a/b/one_31_chars_long_file_name_093
13791 a/b/one_31_chars_long_file_name_094
13792 a/b/one_31_chars_long_file_name_095
13793 a/b/one_31_chars_long_file_name_096
13794 a/b/one_31_chars_long_file_name_097
13795 a/b/one_31_chars_long_file_name_098
13796 a/b/one_31_chars_long_file_name_099
13797 a/b/one_31_chars_long_file_name_100
13798 a/b/one_31_chars_long_file_name_101
13799 a/b/one_31_chars_long_file_name_102
13800 a/b/one_31_chars_long_file_name_103
13801 a/b/one_31_chars_long_file_name_104
13802 a/b/one_31_chars_long_file_name_105
13803 a/b/one_31_chars_long_file_name_106
13804 a/b/one_31_chars_long_file_name_107
13805 a/b/one_31_chars_long_file_name_108
13806 a/b/one_31_chars_long_file_name_109
13807 a/b/one_31_chars_long_file_name_110
13808 a/b/one_31_chars_long_file_name_111
13809 a/b/one_31_chars_long_file_name_112
13810 a/b/one_31_chars_long_file_name_113
13811 a/b/one_31_chars_long_file_name_114
13812 a/b/one_31_chars_long_file_name_115
13813 a/b/one_31_chars_long_file_name_116
13814 a/b/one_31_chars_long_file_name_117
13815 a/b/one_31_chars_long_file_name_118
13816 a/b/one_31_chars_long_file_name_119
13817 a/b/one_31_chars_long_file_name_120
13818 a/b/one_31_chars_long_file_name_121
13819 a/b/one_31_chars_long_file_name_122
13820 a/b/one_31_chars_long_file_name_123
13821 a/b/one_31_chars_long_file_name_124
13822 a/b/one_31_chars_long_file_name_125
13823 a/b/one_31_chars_long_file_name_126
13824 a/b/one_31_chars_long_file_name_127
13825 a/b/one_31_chars_long_file_name_128
13826 a/b/one_31_chars_long_file_name_129
13827 a/b/one_31_chars_long_file_name_130
13828 a/b/one_31_chars_long_file_name_131
13829 a/b/one_31_chars_long_file_name_132
13830 a/b/one_31_chars_long_file_name_133
13831 a/b/one_31_chars_long_file_name_134
13832 a/b/one_31_chars_long_file_name_135
13833 a/b/one_31_chars_long_file_name_136
13834 a/b/one_31_chars_long_file_name_137
13835 a/b/one_31_chars_long_file_name_138
13836 a/b/one_31_chars_long_file_name_139
13837 a/b/one_31_chars_long_file_name_140
13838 a/b/one_31_chars_long_file_name_141
13839 a/b/one_31_chars_long_file_name_142
13843 " | $at_diff - "$at_stdout" || at_failed=:
13845 77) echo 77 > "$at_status_file"; exit 77;;
13847 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
13850 if $at_failed; then
13853 echo 1 > "$at_status_file"
13859 echo "$at_srcdir/incr04.at:34:
13862 TEST_TAR_FORMAT=posix
13863 export TEST_TAR_FORMAT
13864 TAR_OPTIONS=\"-H posix\"
13869 install-sh -d a/b >/dev/null || exit 77
13871 for (i=1;i<=142;i++)
13872 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13873 }' < /dev/null | genfile --files-from -
13877 echo \"Initial dump\"
13878 tar cvf a0.tar -g a.sna a
13880 echo \"Incremental dump\"
13881 tar cvf a1.tar -g a.sna a
13883 echo incr04.at:34 >"$at_check_line_file"
13886 if test -n "$at_traceon"; then
13887 echo 'Not enabling shell tracing (command contains an embedded newline)'
13890 if test -n "$at_trace_this"; then
13894 TEST_TAR_FORMAT=posix
13895 export TEST_TAR_FORMAT
13896 TAR_OPTIONS="-H posix"
13901 install-sh -d a/b >/dev/null || exit 77
13903 for (i=1;i<=142;i++)
13904 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13905 }' < /dev/null | genfile --files-from -
13909 echo "Initial dump"
13910 tar cvf a0.tar -g a.sna a
13912 echo "Incremental dump"
13913 tar cvf a1.tar -g a.sna a
13914 ) ) >"$at_stdout" 2>"$at_stder1"
13916 grep '^ *+' "$at_stder1" >&2
13917 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13922 TEST_TAR_FORMAT=posix
13923 export TEST_TAR_FORMAT
13924 TAR_OPTIONS="-H posix"
13929 install-sh -d a/b >/dev/null || exit 77
13931 for (i=1;i<=142;i++)
13932 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13933 }' < /dev/null | genfile --files-from -
13937 echo "Initial dump"
13938 tar cvf a0.tar -g a.sna a
13940 echo "Incremental dump"
13941 tar cvf a1.tar -g a.sna a
13942 ) ) >"$at_stdout" 2>"$at_stderr"
13947 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13948 tar: a/c: Directory has been renamed from \`a/b'
13949 " | $at_diff - "$at_stderr" || at_failed=:
13950 echo >>"$at_stdout"; echo "Initial dump
13953 a/b/one_31_chars_long_file_name_001
13954 a/b/one_31_chars_long_file_name_002
13955 a/b/one_31_chars_long_file_name_003
13956 a/b/one_31_chars_long_file_name_004
13957 a/b/one_31_chars_long_file_name_005
13958 a/b/one_31_chars_long_file_name_006
13959 a/b/one_31_chars_long_file_name_007
13960 a/b/one_31_chars_long_file_name_008
13961 a/b/one_31_chars_long_file_name_009
13962 a/b/one_31_chars_long_file_name_010
13963 a/b/one_31_chars_long_file_name_011
13964 a/b/one_31_chars_long_file_name_012
13965 a/b/one_31_chars_long_file_name_013
13966 a/b/one_31_chars_long_file_name_014
13967 a/b/one_31_chars_long_file_name_015
13968 a/b/one_31_chars_long_file_name_016
13969 a/b/one_31_chars_long_file_name_017
13970 a/b/one_31_chars_long_file_name_018
13971 a/b/one_31_chars_long_file_name_019
13972 a/b/one_31_chars_long_file_name_020
13973 a/b/one_31_chars_long_file_name_021
13974 a/b/one_31_chars_long_file_name_022
13975 a/b/one_31_chars_long_file_name_023
13976 a/b/one_31_chars_long_file_name_024
13977 a/b/one_31_chars_long_file_name_025
13978 a/b/one_31_chars_long_file_name_026
13979 a/b/one_31_chars_long_file_name_027
13980 a/b/one_31_chars_long_file_name_028
13981 a/b/one_31_chars_long_file_name_029
13982 a/b/one_31_chars_long_file_name_030
13983 a/b/one_31_chars_long_file_name_031
13984 a/b/one_31_chars_long_file_name_032
13985 a/b/one_31_chars_long_file_name_033
13986 a/b/one_31_chars_long_file_name_034
13987 a/b/one_31_chars_long_file_name_035
13988 a/b/one_31_chars_long_file_name_036
13989 a/b/one_31_chars_long_file_name_037
13990 a/b/one_31_chars_long_file_name_038
13991 a/b/one_31_chars_long_file_name_039
13992 a/b/one_31_chars_long_file_name_040
13993 a/b/one_31_chars_long_file_name_041
13994 a/b/one_31_chars_long_file_name_042
13995 a/b/one_31_chars_long_file_name_043
13996 a/b/one_31_chars_long_file_name_044
13997 a/b/one_31_chars_long_file_name_045
13998 a/b/one_31_chars_long_file_name_046
13999 a/b/one_31_chars_long_file_name_047
14000 a/b/one_31_chars_long_file_name_048
14001 a/b/one_31_chars_long_file_name_049
14002 a/b/one_31_chars_long_file_name_050
14003 a/b/one_31_chars_long_file_name_051
14004 a/b/one_31_chars_long_file_name_052
14005 a/b/one_31_chars_long_file_name_053
14006 a/b/one_31_chars_long_file_name_054
14007 a/b/one_31_chars_long_file_name_055
14008 a/b/one_31_chars_long_file_name_056
14009 a/b/one_31_chars_long_file_name_057
14010 a/b/one_31_chars_long_file_name_058
14011 a/b/one_31_chars_long_file_name_059
14012 a/b/one_31_chars_long_file_name_060
14013 a/b/one_31_chars_long_file_name_061
14014 a/b/one_31_chars_long_file_name_062
14015 a/b/one_31_chars_long_file_name_063
14016 a/b/one_31_chars_long_file_name_064
14017 a/b/one_31_chars_long_file_name_065
14018 a/b/one_31_chars_long_file_name_066
14019 a/b/one_31_chars_long_file_name_067
14020 a/b/one_31_chars_long_file_name_068
14021 a/b/one_31_chars_long_file_name_069
14022 a/b/one_31_chars_long_file_name_070
14023 a/b/one_31_chars_long_file_name_071
14024 a/b/one_31_chars_long_file_name_072
14025 a/b/one_31_chars_long_file_name_073
14026 a/b/one_31_chars_long_file_name_074
14027 a/b/one_31_chars_long_file_name_075
14028 a/b/one_31_chars_long_file_name_076
14029 a/b/one_31_chars_long_file_name_077
14030 a/b/one_31_chars_long_file_name_078
14031 a/b/one_31_chars_long_file_name_079
14032 a/b/one_31_chars_long_file_name_080
14033 a/b/one_31_chars_long_file_name_081
14034 a/b/one_31_chars_long_file_name_082
14035 a/b/one_31_chars_long_file_name_083
14036 a/b/one_31_chars_long_file_name_084
14037 a/b/one_31_chars_long_file_name_085
14038 a/b/one_31_chars_long_file_name_086
14039 a/b/one_31_chars_long_file_name_087
14040 a/b/one_31_chars_long_file_name_088
14041 a/b/one_31_chars_long_file_name_089
14042 a/b/one_31_chars_long_file_name_090
14043 a/b/one_31_chars_long_file_name_091
14044 a/b/one_31_chars_long_file_name_092
14045 a/b/one_31_chars_long_file_name_093
14046 a/b/one_31_chars_long_file_name_094
14047 a/b/one_31_chars_long_file_name_095
14048 a/b/one_31_chars_long_file_name_096
14049 a/b/one_31_chars_long_file_name_097
14050 a/b/one_31_chars_long_file_name_098
14051 a/b/one_31_chars_long_file_name_099
14052 a/b/one_31_chars_long_file_name_100
14053 a/b/one_31_chars_long_file_name_101
14054 a/b/one_31_chars_long_file_name_102
14055 a/b/one_31_chars_long_file_name_103
14056 a/b/one_31_chars_long_file_name_104
14057 a/b/one_31_chars_long_file_name_105
14058 a/b/one_31_chars_long_file_name_106
14059 a/b/one_31_chars_long_file_name_107
14060 a/b/one_31_chars_long_file_name_108
14061 a/b/one_31_chars_long_file_name_109
14062 a/b/one_31_chars_long_file_name_110
14063 a/b/one_31_chars_long_file_name_111
14064 a/b/one_31_chars_long_file_name_112
14065 a/b/one_31_chars_long_file_name_113
14066 a/b/one_31_chars_long_file_name_114
14067 a/b/one_31_chars_long_file_name_115
14068 a/b/one_31_chars_long_file_name_116
14069 a/b/one_31_chars_long_file_name_117
14070 a/b/one_31_chars_long_file_name_118
14071 a/b/one_31_chars_long_file_name_119
14072 a/b/one_31_chars_long_file_name_120
14073 a/b/one_31_chars_long_file_name_121
14074 a/b/one_31_chars_long_file_name_122
14075 a/b/one_31_chars_long_file_name_123
14076 a/b/one_31_chars_long_file_name_124
14077 a/b/one_31_chars_long_file_name_125
14078 a/b/one_31_chars_long_file_name_126
14079 a/b/one_31_chars_long_file_name_127
14080 a/b/one_31_chars_long_file_name_128
14081 a/b/one_31_chars_long_file_name_129
14082 a/b/one_31_chars_long_file_name_130
14083 a/b/one_31_chars_long_file_name_131
14084 a/b/one_31_chars_long_file_name_132
14085 a/b/one_31_chars_long_file_name_133
14086 a/b/one_31_chars_long_file_name_134
14087 a/b/one_31_chars_long_file_name_135
14088 a/b/one_31_chars_long_file_name_136
14089 a/b/one_31_chars_long_file_name_137
14090 a/b/one_31_chars_long_file_name_138
14091 a/b/one_31_chars_long_file_name_139
14092 a/b/one_31_chars_long_file_name_140
14093 a/b/one_31_chars_long_file_name_141
14094 a/b/one_31_chars_long_file_name_142
14098 " | $at_diff - "$at_stdout" || at_failed=:
14100 77) echo 77 > "$at_status_file"; exit 77;;
14102 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
14105 if $at_failed; then
14108 echo 1 > "$at_status_file"
14117 $at_times_p && times >"$at_times_file"
14118 ) 5>&1 2>&1 | eval $at_tee_pipe
14119 at_status=`cat "$at_status_file"`
14122 33 ) # 33. rename01.at:24: renamed dirs in incrementals
14123 at_setup_line='rename01.at:24'
14124 at_desc="renamed dirs in incrementals"
14125 $at_quiet $ECHO_N " 33: renamed dirs in incrementals $ECHO_C"
14127 test -f $XFAILFILE && at_xfail=yes
14128 echo "# -*- compilation -*-" >> "$at_group_log"
14130 echo "33. rename01.at:24: testing ..."
14138 echo "$at_srcdir/rename01.at:27:
14141 TEST_TAR_FORMAT=gnu
14142 export TEST_TAR_FORMAT
14143 TAR_OPTIONS=\"-H gnu\"
14148 test -z "`sort < /dev/null 2>&1`" || exit 77
14152 genfile --file foo/file1
14153 genfile --file foo/file2
14155 genfile --file foo/bar/file
14157 echo \"Creating base archive\"
14158 tar -g incr -cf arch.1 -v foo
14162 echo \"Creating incremental archive\"
14163 tar -g incr -cf arch.2 -v foo
14167 tar xfg arch.1 /dev/null
14169 echo \"Begin directory listing 1\"
14171 echo \"End directory listing 1\"
14173 tar xfg arch.2 /dev/null
14174 echo Begin directory listing 2
14176 echo End directory listing 2
14178 echo rename01.at:27 >"$at_check_line_file"
14181 if test -n "$at_traceon"; then
14182 echo 'Not enabling shell tracing (command contains an embedded newline)'
14185 if test -n "$at_trace_this"; then
14189 TEST_TAR_FORMAT=gnu
14190 export TEST_TAR_FORMAT
14191 TAR_OPTIONS="-H gnu"
14196 test -z "`sort < /dev/null 2>&1`" || exit 77
14200 genfile --file foo/file1
14201 genfile --file foo/file2
14203 genfile --file foo/bar/file
14205 echo "Creating base archive"
14206 tar -g incr -cf arch.1 -v foo
14210 echo "Creating incremental archive"
14211 tar -g incr -cf arch.2 -v foo
14215 tar xfg arch.1 /dev/null
14217 echo "Begin directory listing 1"
14219 echo "End directory listing 1"
14221 tar xfg arch.2 /dev/null
14222 echo Begin directory listing 2
14224 echo End directory listing 2
14225 ) ) >"$at_stdout" 2>"$at_stder1"
14227 grep '^ *+' "$at_stder1" >&2
14228 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14233 TEST_TAR_FORMAT=gnu
14234 export TEST_TAR_FORMAT
14235 TAR_OPTIONS="-H gnu"
14240 test -z "`sort < /dev/null 2>&1`" || exit 77
14244 genfile --file foo/file1
14245 genfile --file foo/file2
14247 genfile --file foo/bar/file
14249 echo "Creating base archive"
14250 tar -g incr -cf arch.1 -v foo
14254 echo "Creating incremental archive"
14255 tar -g incr -cf arch.2 -v foo
14259 tar xfg arch.1 /dev/null
14261 echo "Begin directory listing 1"
14263 echo "End directory listing 1"
14265 tar xfg arch.2 /dev/null
14266 echo Begin directory listing 2
14268 echo End directory listing 2
14269 ) ) >"$at_stdout" 2>"$at_stderr"
14274 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14275 tar: foo/baz: Directory has been renamed from \`foo/bar'
14276 " | $at_diff - "$at_stderr" || at_failed=:
14277 echo >>"$at_stdout"; echo "Creating base archive
14283 Creating incremental archive
14286 Begin directory listing 1
14292 End directory listing 1
14293 Begin directory listing 2
14299 End directory listing 2
14300 " | $at_diff - "$at_stdout" || at_failed=:
14302 77) echo 77 > "$at_status_file"; exit 77;;
14304 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14307 if $at_failed; then
14310 echo 1 > "$at_status_file"
14316 echo "$at_srcdir/rename01.at:27:
14319 TEST_TAR_FORMAT=oldgnu
14320 export TEST_TAR_FORMAT
14321 TAR_OPTIONS=\"-H oldgnu\"
14326 test -z "`sort < /dev/null 2>&1`" || exit 77
14330 genfile --file foo/file1
14331 genfile --file foo/file2
14333 genfile --file foo/bar/file
14335 echo \"Creating base archive\"
14336 tar -g incr -cf arch.1 -v foo
14340 echo \"Creating incremental archive\"
14341 tar -g incr -cf arch.2 -v foo
14345 tar xfg arch.1 /dev/null
14347 echo \"Begin directory listing 1\"
14349 echo \"End directory listing 1\"
14351 tar xfg arch.2 /dev/null
14352 echo Begin directory listing 2
14354 echo End directory listing 2
14356 echo rename01.at:27 >"$at_check_line_file"
14359 if test -n "$at_traceon"; then
14360 echo 'Not enabling shell tracing (command contains an embedded newline)'
14363 if test -n "$at_trace_this"; then
14367 TEST_TAR_FORMAT=oldgnu
14368 export TEST_TAR_FORMAT
14369 TAR_OPTIONS="-H oldgnu"
14374 test -z "`sort < /dev/null 2>&1`" || exit 77
14378 genfile --file foo/file1
14379 genfile --file foo/file2
14381 genfile --file foo/bar/file
14383 echo "Creating base archive"
14384 tar -g incr -cf arch.1 -v foo
14388 echo "Creating incremental archive"
14389 tar -g incr -cf arch.2 -v foo
14393 tar xfg arch.1 /dev/null
14395 echo "Begin directory listing 1"
14397 echo "End directory listing 1"
14399 tar xfg arch.2 /dev/null
14400 echo Begin directory listing 2
14402 echo End directory listing 2
14403 ) ) >"$at_stdout" 2>"$at_stder1"
14405 grep '^ *+' "$at_stder1" >&2
14406 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14411 TEST_TAR_FORMAT=oldgnu
14412 export TEST_TAR_FORMAT
14413 TAR_OPTIONS="-H oldgnu"
14418 test -z "`sort < /dev/null 2>&1`" || exit 77
14422 genfile --file foo/file1
14423 genfile --file foo/file2
14425 genfile --file foo/bar/file
14427 echo "Creating base archive"
14428 tar -g incr -cf arch.1 -v foo
14432 echo "Creating incremental archive"
14433 tar -g incr -cf arch.2 -v foo
14437 tar xfg arch.1 /dev/null
14439 echo "Begin directory listing 1"
14441 echo "End directory listing 1"
14443 tar xfg arch.2 /dev/null
14444 echo Begin directory listing 2
14446 echo End directory listing 2
14447 ) ) >"$at_stdout" 2>"$at_stderr"
14452 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14453 tar: foo/baz: Directory has been renamed from \`foo/bar'
14454 " | $at_diff - "$at_stderr" || at_failed=:
14455 echo >>"$at_stdout"; echo "Creating base archive
14461 Creating incremental archive
14464 Begin directory listing 1
14470 End directory listing 1
14471 Begin directory listing 2
14477 End directory listing 2
14478 " | $at_diff - "$at_stdout" || at_failed=:
14480 77) echo 77 > "$at_status_file"; exit 77;;
14482 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14485 if $at_failed; then
14488 echo 1 > "$at_status_file"
14494 echo "$at_srcdir/rename01.at:27:
14497 TEST_TAR_FORMAT=posix
14498 export TEST_TAR_FORMAT
14499 TAR_OPTIONS=\"-H posix\"
14504 test -z "`sort < /dev/null 2>&1`" || exit 77
14508 genfile --file foo/file1
14509 genfile --file foo/file2
14511 genfile --file foo/bar/file
14513 echo \"Creating base archive\"
14514 tar -g incr -cf arch.1 -v foo
14518 echo \"Creating incremental archive\"
14519 tar -g incr -cf arch.2 -v foo
14523 tar xfg arch.1 /dev/null
14525 echo \"Begin directory listing 1\"
14527 echo \"End directory listing 1\"
14529 tar xfg arch.2 /dev/null
14530 echo Begin directory listing 2
14532 echo End directory listing 2
14534 echo rename01.at:27 >"$at_check_line_file"
14537 if test -n "$at_traceon"; then
14538 echo 'Not enabling shell tracing (command contains an embedded newline)'
14541 if test -n "$at_trace_this"; then
14545 TEST_TAR_FORMAT=posix
14546 export TEST_TAR_FORMAT
14547 TAR_OPTIONS="-H posix"
14552 test -z "`sort < /dev/null 2>&1`" || exit 77
14556 genfile --file foo/file1
14557 genfile --file foo/file2
14559 genfile --file foo/bar/file
14561 echo "Creating base archive"
14562 tar -g incr -cf arch.1 -v foo
14566 echo "Creating incremental archive"
14567 tar -g incr -cf arch.2 -v foo
14571 tar xfg arch.1 /dev/null
14573 echo "Begin directory listing 1"
14575 echo "End directory listing 1"
14577 tar xfg arch.2 /dev/null
14578 echo Begin directory listing 2
14580 echo End directory listing 2
14581 ) ) >"$at_stdout" 2>"$at_stder1"
14583 grep '^ *+' "$at_stder1" >&2
14584 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14589 TEST_TAR_FORMAT=posix
14590 export TEST_TAR_FORMAT
14591 TAR_OPTIONS="-H posix"
14596 test -z "`sort < /dev/null 2>&1`" || exit 77
14600 genfile --file foo/file1
14601 genfile --file foo/file2
14603 genfile --file foo/bar/file
14605 echo "Creating base archive"
14606 tar -g incr -cf arch.1 -v foo
14610 echo "Creating incremental archive"
14611 tar -g incr -cf arch.2 -v foo
14615 tar xfg arch.1 /dev/null
14617 echo "Begin directory listing 1"
14619 echo "End directory listing 1"
14621 tar xfg arch.2 /dev/null
14622 echo Begin directory listing 2
14624 echo End directory listing 2
14625 ) ) >"$at_stdout" 2>"$at_stderr"
14630 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14631 tar: foo/baz: Directory has been renamed from \`foo/bar'
14632 " | $at_diff - "$at_stderr" || at_failed=:
14633 echo >>"$at_stdout"; echo "Creating base archive
14639 Creating incremental archive
14642 Begin directory listing 1
14648 End directory listing 1
14649 Begin directory listing 2
14655 End directory listing 2
14656 " | $at_diff - "$at_stdout" || at_failed=:
14658 77) echo 77 > "$at_status_file"; exit 77;;
14660 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14663 if $at_failed; then
14666 echo 1 > "$at_status_file"
14675 $at_times_p && times >"$at_times_file"
14676 ) 5>&1 2>&1 | eval $at_tee_pipe
14677 at_status=`cat "$at_status_file"`
14680 34 ) # 34. rename02.at:24: move between hierarchies
14681 at_setup_line='rename02.at:24'
14682 at_desc="move between hierarchies"
14683 $at_quiet $ECHO_N " 34: move between hierarchies $ECHO_C"
14685 test -f $XFAILFILE && at_xfail=yes
14686 echo "# -*- compilation -*-" >> "$at_group_log"
14688 echo "34. rename02.at:24: testing ..."
14696 echo "$at_srcdir/rename02.at:27:
14699 TEST_TAR_FORMAT=gnu
14700 export TEST_TAR_FORMAT
14701 TAR_OPTIONS=\"-H gnu\"
14706 test -z "`sort < /dev/null 2>&1`" || exit 77
14709 genfile --file foo/file1
14710 genfile --file foo/file2
14712 genfile --file foo/bar/file.r
14714 genfile --file foo/bar/baz/file.z
14718 echo \"Creating base archive\"
14719 tar -g incr -cf arch.1 -v foo
14723 echo \"Creating incremental archive\"
14724 tar -g incr -cf arch.2 -v foo
14728 tar xfg arch.1 /dev/null 2>tmperr
14731 echo \"Begin directory listing 1\"
14733 echo \"End directory listing 1\"
14735 tar xfgv arch.2 /dev/null
14736 echo Begin directory listing 2
14738 echo End directory listing 2
14740 echo rename02.at:27 >"$at_check_line_file"
14743 if test -n "$at_traceon"; then
14744 echo 'Not enabling shell tracing (command contains an embedded newline)'
14747 if test -n "$at_trace_this"; then
14751 TEST_TAR_FORMAT=gnu
14752 export TEST_TAR_FORMAT
14753 TAR_OPTIONS="-H gnu"
14758 test -z "`sort < /dev/null 2>&1`" || exit 77
14761 genfile --file foo/file1
14762 genfile --file foo/file2
14764 genfile --file foo/bar/file.r
14766 genfile --file foo/bar/baz/file.z
14770 echo "Creating base archive"
14771 tar -g incr -cf arch.1 -v foo
14775 echo "Creating incremental archive"
14776 tar -g incr -cf arch.2 -v foo
14780 tar xfg arch.1 /dev/null 2>tmperr
14783 echo "Begin directory listing 1"
14785 echo "End directory listing 1"
14787 tar xfgv arch.2 /dev/null
14788 echo Begin directory listing 2
14790 echo End directory listing 2
14791 ) ) >"$at_stdout" 2>"$at_stder1"
14793 grep '^ *+' "$at_stder1" >&2
14794 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14799 TEST_TAR_FORMAT=gnu
14800 export TEST_TAR_FORMAT
14801 TAR_OPTIONS="-H gnu"
14806 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.r
14814 genfile --file foo/bar/baz/file.z
14818 echo "Creating base archive"
14819 tar -g incr -cf arch.1 -v foo
14823 echo "Creating incremental archive"
14824 tar -g incr -cf arch.2 -v foo
14828 tar xfg arch.1 /dev/null 2>tmperr
14831 echo "Begin directory listing 1"
14833 echo "End directory listing 1"
14835 tar xfgv arch.2 /dev/null
14836 echo Begin directory listing 2
14838 echo End directory listing 2
14839 ) ) >"$at_stdout" 2>"$at_stderr"
14844 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14845 tar: foo/bar/baz: Directory is new
14846 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
14847 " | $at_diff - "$at_stderr" || at_failed=:
14848 echo >>"$at_stdout"; echo "Creating base archive
14856 Creating incremental archive
14860 Begin directory listing 1
14868 End directory listing 1
14872 Begin directory listing 2
14880 End directory listing 2
14881 " | $at_diff - "$at_stdout" || at_failed=:
14883 77) echo 77 > "$at_status_file"; exit 77;;
14885 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
14888 if $at_failed; then
14891 echo 1 > "$at_status_file"
14897 echo "$at_srcdir/rename02.at:27:
14900 TEST_TAR_FORMAT=oldgnu
14901 export TEST_TAR_FORMAT
14902 TAR_OPTIONS=\"-H oldgnu\"
14907 test -z "`sort < /dev/null 2>&1`" || exit 77
14910 genfile --file foo/file1
14911 genfile --file foo/file2
14913 genfile --file foo/bar/file.r
14915 genfile --file foo/bar/baz/file.z
14919 echo \"Creating base archive\"
14920 tar -g incr -cf arch.1 -v foo
14924 echo \"Creating incremental archive\"
14925 tar -g incr -cf arch.2 -v foo
14929 tar xfg arch.1 /dev/null 2>tmperr
14932 echo \"Begin directory listing 1\"
14934 echo \"End directory listing 1\"
14936 tar xfgv arch.2 /dev/null
14937 echo Begin directory listing 2
14939 echo End directory listing 2
14941 echo rename02.at:27 >"$at_check_line_file"
14944 if test -n "$at_traceon"; then
14945 echo 'Not enabling shell tracing (command contains an embedded newline)'
14948 if test -n "$at_trace_this"; then
14952 TEST_TAR_FORMAT=oldgnu
14953 export TEST_TAR_FORMAT
14954 TAR_OPTIONS="-H oldgnu"
14959 test -z "`sort < /dev/null 2>&1`" || exit 77
14962 genfile --file foo/file1
14963 genfile --file foo/file2
14965 genfile --file foo/bar/file.r
14967 genfile --file foo/bar/baz/file.z
14971 echo "Creating base archive"
14972 tar -g incr -cf arch.1 -v foo
14976 echo "Creating incremental archive"
14977 tar -g incr -cf arch.2 -v foo
14981 tar xfg arch.1 /dev/null 2>tmperr
14984 echo "Begin directory listing 1"
14986 echo "End directory listing 1"
14988 tar xfgv arch.2 /dev/null
14989 echo Begin directory listing 2
14991 echo End directory listing 2
14992 ) ) >"$at_stdout" 2>"$at_stder1"
14994 grep '^ *+' "$at_stder1" >&2
14995 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15000 TEST_TAR_FORMAT=oldgnu
15001 export TEST_TAR_FORMAT
15002 TAR_OPTIONS="-H oldgnu"
15007 test -z "`sort < /dev/null 2>&1`" || exit 77
15010 genfile --file foo/file1
15011 genfile --file foo/file2
15013 genfile --file foo/bar/file.r
15015 genfile --file foo/bar/baz/file.z
15019 echo "Creating base archive"
15020 tar -g incr -cf arch.1 -v foo
15024 echo "Creating incremental archive"
15025 tar -g incr -cf arch.2 -v foo
15029 tar xfg arch.1 /dev/null 2>tmperr
15032 echo "Begin directory listing 1"
15034 echo "End directory listing 1"
15036 tar xfgv arch.2 /dev/null
15037 echo Begin directory listing 2
15039 echo End directory listing 2
15040 ) ) >"$at_stdout" 2>"$at_stderr"
15045 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15046 tar: foo/bar/baz: Directory is new
15047 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15048 " | $at_diff - "$at_stderr" || at_failed=:
15049 echo >>"$at_stdout"; echo "Creating base archive
15057 Creating incremental archive
15061 Begin directory listing 1
15069 End directory listing 1
15073 Begin directory listing 2
15081 End directory listing 2
15082 " | $at_diff - "$at_stdout" || at_failed=:
15084 77) echo 77 > "$at_status_file"; exit 77;;
15086 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15089 if $at_failed; then
15092 echo 1 > "$at_status_file"
15098 echo "$at_srcdir/rename02.at:27:
15101 TEST_TAR_FORMAT=posix
15102 export TEST_TAR_FORMAT
15103 TAR_OPTIONS=\"-H posix\"
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
15142 echo rename02.at:27 >"$at_check_line_file"
15145 if test -n "$at_traceon"; then
15146 echo 'Not enabling shell tracing (command contains an embedded newline)'
15149 if test -n "$at_trace_this"; then
15153 TEST_TAR_FORMAT=posix
15154 export TEST_TAR_FORMAT
15155 TAR_OPTIONS="-H posix"
15160 test -z "`sort < /dev/null 2>&1`" || exit 77
15163 genfile --file foo/file1
15164 genfile --file foo/file2
15166 genfile --file foo/bar/file.r
15168 genfile --file foo/bar/baz/file.z
15172 echo "Creating base archive"
15173 tar -g incr -cf arch.1 -v foo
15177 echo "Creating incremental archive"
15178 tar -g incr -cf arch.2 -v foo
15182 tar xfg arch.1 /dev/null 2>tmperr
15185 echo "Begin directory listing 1"
15187 echo "End directory listing 1"
15189 tar xfgv arch.2 /dev/null
15190 echo Begin directory listing 2
15192 echo End directory listing 2
15193 ) ) >"$at_stdout" 2>"$at_stder1"
15195 grep '^ *+' "$at_stder1" >&2
15196 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15201 TEST_TAR_FORMAT=posix
15202 export TEST_TAR_FORMAT
15203 TAR_OPTIONS="-H posix"
15208 test -z "`sort < /dev/null 2>&1`" || exit 77
15211 genfile --file foo/file1
15212 genfile --file foo/file2
15214 genfile --file foo/bar/file.r
15216 genfile --file foo/bar/baz/file.z
15220 echo "Creating base archive"
15221 tar -g incr -cf arch.1 -v foo
15225 echo "Creating incremental archive"
15226 tar -g incr -cf arch.2 -v foo
15230 tar xfg arch.1 /dev/null 2>tmperr
15233 echo "Begin directory listing 1"
15235 echo "End directory listing 1"
15237 tar xfgv arch.2 /dev/null
15238 echo Begin directory listing 2
15240 echo End directory listing 2
15241 ) ) >"$at_stdout" 2>"$at_stderr"
15246 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15247 tar: foo/bar/baz: Directory is new
15248 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15249 " | $at_diff - "$at_stderr" || at_failed=:
15250 echo >>"$at_stdout"; echo "Creating base archive
15258 Creating incremental archive
15262 Begin directory listing 1
15270 End directory listing 1
15274 Begin directory listing 2
15282 End directory listing 2
15283 " | $at_diff - "$at_stdout" || at_failed=:
15285 77) echo 77 > "$at_status_file"; exit 77;;
15287 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15290 if $at_failed; then
15293 echo 1 > "$at_status_file"
15302 $at_times_p && times >"$at_times_file"
15303 ) 5>&1 2>&1 | eval $at_tee_pipe
15304 at_status=`cat "$at_status_file"`
15307 35 ) # 35. rename03.at:23: cyclic renames
15308 at_setup_line='rename03.at:23'
15309 at_desc="cyclic renames"
15310 $at_quiet $ECHO_N " 35: cyclic renames $ECHO_C"
15312 test -f $XFAILFILE && at_xfail=yes
15313 echo "# -*- compilation -*-" >> "$at_group_log"
15315 echo "35. rename03.at:23: testing ..."
15323 echo "$at_srcdir/rename03.at:26:
15326 TEST_TAR_FORMAT=gnu
15327 export TEST_TAR_FORMAT
15328 TAR_OPTIONS=\"-H gnu\"
15333 test -z "`sort < /dev/null 2>&1`" || exit 77
15337 genfile --file foo/file1
15338 genfile --file foo/file2
15341 genfile --file foo/a/filea
15344 genfile --file foo/b/fileb
15347 genfile --file foo/c/filec
15351 echo \"First dump\"
15352 echo \"First dump\">&2
15353 tar -g incr -cf arch.1 -v foo 2>tmperr
15356 # Shuffle directories:
15363 echo \"Second dump\"
15364 echo \"Second dump\" >&2
15365 tar -g incr -cf arch.2 -v foo 2>tmperr
15368 tar xfg arch.1 /dev/null
15370 echo \"Begin directory listing 1\"
15372 echo \"End directory listing 1\"
15374 tar xfgv arch.2 /dev/null
15375 echo Begin directory listing 2
15377 echo End directory listing 2
15379 echo rename03.at:26 >"$at_check_line_file"
15382 if test -n "$at_traceon"; then
15383 echo 'Not enabling shell tracing (command contains an embedded newline)'
15386 if test -n "$at_trace_this"; then
15390 TEST_TAR_FORMAT=gnu
15391 export TEST_TAR_FORMAT
15392 TAR_OPTIONS="-H gnu"
15397 test -z "`sort < /dev/null 2>&1`" || exit 77
15401 genfile --file foo/file1
15402 genfile --file foo/file2
15405 genfile --file foo/a/filea
15408 genfile --file foo/b/fileb
15411 genfile --file foo/c/filec
15416 echo "First dump">&2
15417 tar -g incr -cf arch.1 -v foo 2>tmperr
15420 # Shuffle directories:
15428 echo "Second dump" >&2
15429 tar -g incr -cf arch.2 -v foo 2>tmperr
15432 tar xfg arch.1 /dev/null
15434 echo "Begin directory listing 1"
15436 echo "End directory listing 1"
15438 tar xfgv arch.2 /dev/null
15439 echo Begin directory listing 2
15441 echo End directory listing 2
15442 ) ) >"$at_stdout" 2>"$at_stder1"
15444 grep '^ *+' "$at_stder1" >&2
15445 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15450 TEST_TAR_FORMAT=gnu
15451 export TEST_TAR_FORMAT
15452 TAR_OPTIONS="-H gnu"
15457 test -z "`sort < /dev/null 2>&1`" || exit 77
15461 genfile --file foo/file1
15462 genfile --file foo/file2
15465 genfile --file foo/a/filea
15468 genfile --file foo/b/fileb
15471 genfile --file foo/c/filec
15476 echo "First dump">&2
15477 tar -g incr -cf arch.1 -v foo 2>tmperr
15480 # Shuffle directories:
15488 echo "Second dump" >&2
15489 tar -g incr -cf arch.2 -v foo 2>tmperr
15492 tar xfg arch.1 /dev/null
15494 echo "Begin directory listing 1"
15496 echo "End directory listing 1"
15498 tar xfgv arch.2 /dev/null
15499 echo Begin directory listing 2
15501 echo End directory listing 2
15502 ) ) >"$at_stdout" 2>"$at_stderr"
15507 echo >>"$at_stderr"; echo "First dump
15508 tar: foo/a: Directory is new
15509 tar: foo/b: Directory is new
15510 tar: foo/c: Directory is new
15512 tar: foo/a: Directory has been renamed from \`foo/c'
15513 tar: foo/b: Directory has been renamed from \`foo/a'
15514 tar: foo/c: Directory has been renamed from \`foo/b'
15515 " | $at_diff - "$at_stderr" || at_failed=:
15516 echo >>"$at_stdout"; echo "First dump
15531 Begin directory listing 1
15541 End directory listing 1
15546 Begin directory listing 2
15556 End directory listing 2
15557 " | $at_diff - "$at_stdout" || at_failed=:
15559 77) echo 77 > "$at_status_file"; exit 77;;
15561 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
15564 if $at_failed; then
15567 echo 1 > "$at_status_file"
15573 echo "$at_srcdir/rename03.at:26:
15576 TEST_TAR_FORMAT=oldgnu
15577 export TEST_TAR_FORMAT
15578 TAR_OPTIONS=\"-H oldgnu\"
15583 test -z "`sort < /dev/null 2>&1`" || exit 77
15587 genfile --file foo/file1
15588 genfile --file foo/file2
15591 genfile --file foo/a/filea
15594 genfile --file foo/b/fileb
15597 genfile --file foo/c/filec
15601 echo \"First dump\"
15602 echo \"First dump\">&2
15603 tar -g incr -cf arch.1 -v foo 2>tmperr
15606 # Shuffle directories:
15613 echo \"Second dump\"
15614 echo \"Second dump\" >&2
15615 tar -g incr -cf arch.2 -v foo 2>tmperr
15618 tar xfg arch.1 /dev/null
15620 echo \"Begin directory listing 1\"
15622 echo \"End directory listing 1\"
15624 tar xfgv arch.2 /dev/null
15625 echo Begin directory listing 2
15627 echo End directory listing 2
15629 echo rename03.at:26 >"$at_check_line_file"
15632 if test -n "$at_traceon"; then
15633 echo 'Not enabling shell tracing (command contains an embedded newline)'
15636 if test -n "$at_trace_this"; then
15640 TEST_TAR_FORMAT=oldgnu
15641 export TEST_TAR_FORMAT
15642 TAR_OPTIONS="-H oldgnu"
15647 test -z "`sort < /dev/null 2>&1`" || exit 77
15651 genfile --file foo/file1
15652 genfile --file foo/file2
15655 genfile --file foo/a/filea
15658 genfile --file foo/b/fileb
15661 genfile --file foo/c/filec
15666 echo "First dump">&2
15667 tar -g incr -cf arch.1 -v foo 2>tmperr
15670 # Shuffle directories:
15678 echo "Second dump" >&2
15679 tar -g incr -cf arch.2 -v foo 2>tmperr
15682 tar xfg arch.1 /dev/null
15684 echo "Begin directory listing 1"
15686 echo "End directory listing 1"
15688 tar xfgv arch.2 /dev/null
15689 echo Begin directory listing 2
15691 echo End directory listing 2
15692 ) ) >"$at_stdout" 2>"$at_stder1"
15694 grep '^ *+' "$at_stder1" >&2
15695 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15700 TEST_TAR_FORMAT=oldgnu
15701 export TEST_TAR_FORMAT
15702 TAR_OPTIONS="-H oldgnu"
15707 test -z "`sort < /dev/null 2>&1`" || exit 77
15711 genfile --file foo/file1
15712 genfile --file foo/file2
15715 genfile --file foo/a/filea
15718 genfile --file foo/b/fileb
15721 genfile --file foo/c/filec
15726 echo "First dump">&2
15727 tar -g incr -cf arch.1 -v foo 2>tmperr
15730 # Shuffle directories:
15738 echo "Second dump" >&2
15739 tar -g incr -cf arch.2 -v foo 2>tmperr
15742 tar xfg arch.1 /dev/null
15744 echo "Begin directory listing 1"
15746 echo "End directory listing 1"
15748 tar xfgv arch.2 /dev/null
15749 echo Begin directory listing 2
15751 echo End directory listing 2
15752 ) ) >"$at_stdout" 2>"$at_stderr"
15757 echo >>"$at_stderr"; echo "First dump
15758 tar: foo/a: Directory is new
15759 tar: foo/b: Directory is new
15760 tar: foo/c: Directory is new
15762 tar: foo/a: Directory has been renamed from \`foo/c'
15763 tar: foo/b: Directory has been renamed from \`foo/a'
15764 tar: foo/c: Directory has been renamed from \`foo/b'
15765 " | $at_diff - "$at_stderr" || at_failed=:
15766 echo >>"$at_stdout"; echo "First dump
15781 Begin directory listing 1
15791 End directory listing 1
15796 Begin directory listing 2
15806 End directory listing 2
15807 " | $at_diff - "$at_stdout" || at_failed=:
15809 77) echo 77 > "$at_status_file"; exit 77;;
15811 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
15814 if $at_failed; then
15817 echo 1 > "$at_status_file"
15823 echo "$at_srcdir/rename03.at:26:
15826 TEST_TAR_FORMAT=posix
15827 export TEST_TAR_FORMAT
15828 TAR_OPTIONS=\"-H posix\"
15833 test -z "`sort < /dev/null 2>&1`" || exit 77
15837 genfile --file foo/file1
15838 genfile --file foo/file2
15841 genfile --file foo/a/filea
15844 genfile --file foo/b/fileb
15847 genfile --file foo/c/filec
15851 echo \"First dump\"
15852 echo \"First dump\">&2
15853 tar -g incr -cf arch.1 -v foo 2>tmperr
15856 # Shuffle directories:
15863 echo \"Second dump\"
15864 echo \"Second dump\" >&2
15865 tar -g incr -cf arch.2 -v foo 2>tmperr
15868 tar xfg arch.1 /dev/null
15870 echo \"Begin directory listing 1\"
15872 echo \"End directory listing 1\"
15874 tar xfgv arch.2 /dev/null
15875 echo Begin directory listing 2
15877 echo End directory listing 2
15879 echo rename03.at:26 >"$at_check_line_file"
15882 if test -n "$at_traceon"; then
15883 echo 'Not enabling shell tracing (command contains an embedded newline)'
15886 if test -n "$at_trace_this"; then
15890 TEST_TAR_FORMAT=posix
15891 export TEST_TAR_FORMAT
15892 TAR_OPTIONS="-H posix"
15897 test -z "`sort < /dev/null 2>&1`" || exit 77
15901 genfile --file foo/file1
15902 genfile --file foo/file2
15905 genfile --file foo/a/filea
15908 genfile --file foo/b/fileb
15911 genfile --file foo/c/filec
15916 echo "First dump">&2
15917 tar -g incr -cf arch.1 -v foo 2>tmperr
15920 # Shuffle directories:
15928 echo "Second dump" >&2
15929 tar -g incr -cf arch.2 -v foo 2>tmperr
15932 tar xfg arch.1 /dev/null
15934 echo "Begin directory listing 1"
15936 echo "End directory listing 1"
15938 tar xfgv arch.2 /dev/null
15939 echo Begin directory listing 2
15941 echo End directory listing 2
15942 ) ) >"$at_stdout" 2>"$at_stder1"
15944 grep '^ *+' "$at_stder1" >&2
15945 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15950 TEST_TAR_FORMAT=posix
15951 export TEST_TAR_FORMAT
15952 TAR_OPTIONS="-H posix"
15957 test -z "`sort < /dev/null 2>&1`" || exit 77
15961 genfile --file foo/file1
15962 genfile --file foo/file2
15965 genfile --file foo/a/filea
15968 genfile --file foo/b/fileb
15971 genfile --file foo/c/filec
15976 echo "First dump">&2
15977 tar -g incr -cf arch.1 -v foo 2>tmperr
15980 # Shuffle directories:
15988 echo "Second dump" >&2
15989 tar -g incr -cf arch.2 -v foo 2>tmperr
15992 tar xfg arch.1 /dev/null
15994 echo "Begin directory listing 1"
15996 echo "End directory listing 1"
15998 tar xfgv arch.2 /dev/null
15999 echo Begin directory listing 2
16001 echo End directory listing 2
16002 ) ) >"$at_stdout" 2>"$at_stderr"
16007 echo >>"$at_stderr"; echo "First dump
16008 tar: foo/a: Directory is new
16009 tar: foo/b: Directory is new
16010 tar: foo/c: Directory is new
16012 tar: foo/a: Directory has been renamed from \`foo/c'
16013 tar: foo/b: Directory has been renamed from \`foo/a'
16014 tar: foo/c: Directory has been renamed from \`foo/b'
16015 " | $at_diff - "$at_stderr" || at_failed=:
16016 echo >>"$at_stdout"; echo "First dump
16031 Begin directory listing 1
16041 End directory listing 1
16046 Begin directory listing 2
16056 End directory listing 2
16057 " | $at_diff - "$at_stdout" || at_failed=:
16059 77) echo 77 > "$at_status_file"; exit 77;;
16061 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
16064 if $at_failed; then
16067 echo 1 > "$at_status_file"
16076 $at_times_p && times >"$at_times_file"
16077 ) 5>&1 2>&1 | eval $at_tee_pipe
16078 at_status=`cat "$at_status_file"`
16081 36 ) # 36. rename04.at:27: renamed directory containing subdirectories
16082 at_setup_line='rename04.at:27'
16083 at_desc="renamed directory containing subdirectories"
16084 $at_quiet $ECHO_N " 36: renamed directory containing subdirectories $ECHO_C"
16086 test -f $XFAILFILE && at_xfail=yes
16087 echo "# -*- compilation -*-" >> "$at_group_log"
16089 echo "36. rename04.at:27: testing ..."
16097 echo "$at_srcdir/rename04.at:30:
16100 TEST_TAR_FORMAT=gnu
16101 export TEST_TAR_FORMAT
16102 TAR_OPTIONS=\"-H gnu\"
16107 test -z "`sort < /dev/null 2>&1`" || exit 77
16110 decho Creating directory structure
16112 mkdir directory/subdir
16113 genfile --file=directory/file
16115 decho Creating initial archive
16116 tar -cf archive.1 -g db.1 directory
16121 decho Creating incremental archive
16123 tar -cf archive.2 -g db.2 dir
16127 decho First restore
16128 tar -xf archive.1 -g db.1
16129 find directory | sort
16131 decho Second restore
16132 tar -xf archive.2 -g db.2
16135 echo rename04.at:30 >"$at_check_line_file"
16138 if test -n "$at_traceon"; then
16139 echo 'Not enabling shell tracing (command contains an embedded newline)'
16142 if test -n "$at_trace_this"; then
16146 TEST_TAR_FORMAT=gnu
16147 export TEST_TAR_FORMAT
16148 TAR_OPTIONS="-H gnu"
16153 test -z "`sort < /dev/null 2>&1`" || exit 77
16156 decho Creating directory structure
16158 mkdir directory/subdir
16159 genfile --file=directory/file
16161 decho Creating initial archive
16162 tar -cf archive.1 -g db.1 directory
16167 decho Creating incremental archive
16169 tar -cf archive.2 -g db.2 dir
16173 decho First restore
16174 tar -xf archive.1 -g db.1
16175 find directory | sort
16177 decho Second restore
16178 tar -xf archive.2 -g db.2
16180 ) ) >"$at_stdout" 2>"$at_stder1"
16182 grep '^ *+' "$at_stder1" >&2
16183 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16188 TEST_TAR_FORMAT=gnu
16189 export TEST_TAR_FORMAT
16190 TAR_OPTIONS="-H gnu"
16195 test -z "`sort < /dev/null 2>&1`" || exit 77
16198 decho Creating directory structure
16200 mkdir directory/subdir
16201 genfile --file=directory/file
16203 decho Creating initial archive
16204 tar -cf archive.1 -g db.1 directory
16209 decho Creating incremental archive
16211 tar -cf archive.2 -g db.2 dir
16215 decho First restore
16216 tar -xf archive.1 -g db.1
16217 find directory | sort
16219 decho Second restore
16220 tar -xf archive.2 -g db.2
16222 ) ) >"$at_stdout" 2>"$at_stderr"
16227 echo >>"$at_stderr"; echo "Creating directory structure
16228 Creating initial archive
16230 Creating incremental archive
16233 " | $at_diff - "$at_stderr" || at_failed=:
16234 echo >>"$at_stdout"; echo "Creating directory structure
16235 Creating initial archive
16237 Creating incremental archive
16245 " | $at_diff - "$at_stdout" || at_failed=:
16247 77) echo 77 > "$at_status_file"; exit 77;;
16249 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16252 if $at_failed; then
16255 echo 1 > "$at_status_file"
16261 echo "$at_srcdir/rename04.at:30:
16264 TEST_TAR_FORMAT=oldgnu
16265 export TEST_TAR_FORMAT
16266 TAR_OPTIONS=\"-H oldgnu\"
16271 test -z "`sort < /dev/null 2>&1`" || exit 77
16274 decho Creating directory structure
16276 mkdir directory/subdir
16277 genfile --file=directory/file
16279 decho Creating initial archive
16280 tar -cf archive.1 -g db.1 directory
16285 decho Creating incremental archive
16287 tar -cf archive.2 -g db.2 dir
16291 decho First restore
16292 tar -xf archive.1 -g db.1
16293 find directory | sort
16295 decho Second restore
16296 tar -xf archive.2 -g db.2
16299 echo rename04.at:30 >"$at_check_line_file"
16302 if test -n "$at_traceon"; then
16303 echo 'Not enabling shell tracing (command contains an embedded newline)'
16306 if test -n "$at_trace_this"; then
16310 TEST_TAR_FORMAT=oldgnu
16311 export TEST_TAR_FORMAT
16312 TAR_OPTIONS="-H oldgnu"
16317 test -z "`sort < /dev/null 2>&1`" || exit 77
16320 decho Creating directory structure
16322 mkdir directory/subdir
16323 genfile --file=directory/file
16325 decho Creating initial archive
16326 tar -cf archive.1 -g db.1 directory
16331 decho Creating incremental archive
16333 tar -cf archive.2 -g db.2 dir
16337 decho First restore
16338 tar -xf archive.1 -g db.1
16339 find directory | sort
16341 decho Second restore
16342 tar -xf archive.2 -g db.2
16344 ) ) >"$at_stdout" 2>"$at_stder1"
16346 grep '^ *+' "$at_stder1" >&2
16347 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16352 TEST_TAR_FORMAT=oldgnu
16353 export TEST_TAR_FORMAT
16354 TAR_OPTIONS="-H oldgnu"
16359 test -z "`sort < /dev/null 2>&1`" || exit 77
16362 decho Creating directory structure
16364 mkdir directory/subdir
16365 genfile --file=directory/file
16367 decho Creating initial archive
16368 tar -cf archive.1 -g db.1 directory
16373 decho Creating incremental archive
16375 tar -cf archive.2 -g db.2 dir
16379 decho First restore
16380 tar -xf archive.1 -g db.1
16381 find directory | sort
16383 decho Second restore
16384 tar -xf archive.2 -g db.2
16386 ) ) >"$at_stdout" 2>"$at_stderr"
16391 echo >>"$at_stderr"; echo "Creating directory structure
16392 Creating initial archive
16394 Creating incremental archive
16397 " | $at_diff - "$at_stderr" || at_failed=:
16398 echo >>"$at_stdout"; echo "Creating directory structure
16399 Creating initial archive
16401 Creating incremental archive
16409 " | $at_diff - "$at_stdout" || at_failed=:
16411 77) echo 77 > "$at_status_file"; exit 77;;
16413 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16416 if $at_failed; then
16419 echo 1 > "$at_status_file"
16425 echo "$at_srcdir/rename04.at:30:
16428 TEST_TAR_FORMAT=posix
16429 export TEST_TAR_FORMAT
16430 TAR_OPTIONS=\"-H posix\"
16435 test -z "`sort < /dev/null 2>&1`" || exit 77
16438 decho Creating directory structure
16440 mkdir directory/subdir
16441 genfile --file=directory/file
16443 decho Creating initial archive
16444 tar -cf archive.1 -g db.1 directory
16449 decho Creating incremental archive
16451 tar -cf archive.2 -g db.2 dir
16455 decho First restore
16456 tar -xf archive.1 -g db.1
16457 find directory | sort
16459 decho Second restore
16460 tar -xf archive.2 -g db.2
16463 echo rename04.at:30 >"$at_check_line_file"
16466 if test -n "$at_traceon"; then
16467 echo 'Not enabling shell tracing (command contains an embedded newline)'
16470 if test -n "$at_trace_this"; then
16474 TEST_TAR_FORMAT=posix
16475 export TEST_TAR_FORMAT
16476 TAR_OPTIONS="-H posix"
16481 test -z "`sort < /dev/null 2>&1`" || exit 77
16484 decho Creating directory structure
16486 mkdir directory/subdir
16487 genfile --file=directory/file
16489 decho Creating initial archive
16490 tar -cf archive.1 -g db.1 directory
16495 decho Creating incremental archive
16497 tar -cf archive.2 -g db.2 dir
16501 decho First restore
16502 tar -xf archive.1 -g db.1
16503 find directory | sort
16505 decho Second restore
16506 tar -xf archive.2 -g db.2
16508 ) ) >"$at_stdout" 2>"$at_stder1"
16510 grep '^ *+' "$at_stder1" >&2
16511 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16516 TEST_TAR_FORMAT=posix
16517 export TEST_TAR_FORMAT
16518 TAR_OPTIONS="-H posix"
16523 test -z "`sort < /dev/null 2>&1`" || exit 77
16526 decho Creating directory structure
16528 mkdir directory/subdir
16529 genfile --file=directory/file
16531 decho Creating initial archive
16532 tar -cf archive.1 -g db.1 directory
16537 decho Creating incremental archive
16539 tar -cf archive.2 -g db.2 dir
16543 decho First restore
16544 tar -xf archive.1 -g db.1
16545 find directory | sort
16547 decho Second restore
16548 tar -xf archive.2 -g db.2
16550 ) ) >"$at_stdout" 2>"$at_stderr"
16555 echo >>"$at_stderr"; echo "Creating directory structure
16556 Creating initial archive
16558 Creating incremental archive
16561 " | $at_diff - "$at_stderr" || at_failed=:
16562 echo >>"$at_stdout"; echo "Creating directory structure
16563 Creating initial archive
16565 Creating incremental archive
16573 " | $at_diff - "$at_stdout" || at_failed=:
16575 77) echo 77 > "$at_status_file"; exit 77;;
16577 *) echo "$at_srcdir/rename04.at:30: exit code was $at_status, expected 0"
16580 if $at_failed; then
16583 echo 1 > "$at_status_file"
16592 $at_times_p && times >"$at_times_file"
16593 ) 5>&1 2>&1 | eval $at_tee_pipe
16594 at_status=`cat "$at_status_file"`
16597 37 ) # 37. rename05.at:24: renamed subdirectories
16598 at_setup_line='rename05.at:24'
16599 at_desc="renamed subdirectories"
16600 $at_quiet $ECHO_N " 37: renamed subdirectories $ECHO_C"
16602 test -f $XFAILFILE && at_xfail=yes
16603 echo "# -*- compilation -*-" >> "$at_group_log"
16605 echo "37. rename05.at:24: testing ..."
16613 echo "$at_srcdir/rename05.at:27:
16616 TEST_TAR_FORMAT=gnu
16617 export TEST_TAR_FORMAT
16618 TAR_OPTIONS=\"-H gnu\"
16623 test -z "`sort < /dev/null 2>&1`" || exit 77
16626 decho Creating directory structure
16628 mkdir directory/subdir
16629 genfile --file=directory/file
16631 decho Creating initial archive
16632 tar -cf archive.1 -g db.1 directory
16635 mv directory/subdir directory/subdir.0
16638 decho Creating incremental archive
16640 tar -cf archive.2 -g db.2 dir
16644 decho First restore
16645 tar -xf archive.1 -g db.1
16646 find directory | sort
16648 decho Second restore
16649 tar -xf archive.2 -g db.2
16652 echo rename05.at:27 >"$at_check_line_file"
16655 if test -n "$at_traceon"; then
16656 echo 'Not enabling shell tracing (command contains an embedded newline)'
16659 if test -n "$at_trace_this"; then
16663 TEST_TAR_FORMAT=gnu
16664 export TEST_TAR_FORMAT
16665 TAR_OPTIONS="-H gnu"
16670 test -z "`sort < /dev/null 2>&1`" || exit 77
16673 decho Creating directory structure
16675 mkdir directory/subdir
16676 genfile --file=directory/file
16678 decho Creating initial archive
16679 tar -cf archive.1 -g db.1 directory
16682 mv directory/subdir directory/subdir.0
16685 decho Creating incremental archive
16687 tar -cf archive.2 -g db.2 dir
16691 decho First restore
16692 tar -xf archive.1 -g db.1
16693 find directory | sort
16695 decho Second restore
16696 tar -xf archive.2 -g db.2
16698 ) ) >"$at_stdout" 2>"$at_stder1"
16700 grep '^ *+' "$at_stder1" >&2
16701 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16706 TEST_TAR_FORMAT=gnu
16707 export TEST_TAR_FORMAT
16708 TAR_OPTIONS="-H gnu"
16713 test -z "`sort < /dev/null 2>&1`" || exit 77
16716 decho Creating directory structure
16718 mkdir directory/subdir
16719 genfile --file=directory/file
16721 decho Creating initial archive
16722 tar -cf archive.1 -g db.1 directory
16725 mv directory/subdir directory/subdir.0
16728 decho Creating incremental archive
16730 tar -cf archive.2 -g db.2 dir
16734 decho First restore
16735 tar -xf archive.1 -g db.1
16736 find directory | sort
16738 decho Second restore
16739 tar -xf archive.2 -g db.2
16741 ) ) >"$at_stdout" 2>"$at_stderr"
16746 echo >>"$at_stderr"; echo "Creating directory structure
16747 Creating initial archive
16749 Creating incremental archive
16752 " | $at_diff - "$at_stderr" || at_failed=:
16753 echo >>"$at_stdout"; echo "Creating directory structure
16754 Creating initial archive
16756 Creating incremental archive
16764 " | $at_diff - "$at_stdout" || at_failed=:
16766 77) echo 77 > "$at_status_file"; exit 77;;
16768 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
16771 if $at_failed; then
16774 echo 1 > "$at_status_file"
16780 echo "$at_srcdir/rename05.at:27:
16783 TEST_TAR_FORMAT=oldgnu
16784 export TEST_TAR_FORMAT
16785 TAR_OPTIONS=\"-H oldgnu\"
16790 test -z "`sort < /dev/null 2>&1`" || exit 77
16793 decho Creating directory structure
16795 mkdir directory/subdir
16796 genfile --file=directory/file
16798 decho Creating initial archive
16799 tar -cf archive.1 -g db.1 directory
16802 mv directory/subdir directory/subdir.0
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
16819 echo rename05.at:27 >"$at_check_line_file"
16822 if test -n "$at_traceon"; then
16823 echo 'Not enabling shell tracing (command contains an embedded newline)'
16826 if test -n "$at_trace_this"; then
16830 TEST_TAR_FORMAT=oldgnu
16831 export TEST_TAR_FORMAT
16832 TAR_OPTIONS="-H oldgnu"
16837 test -z "`sort < /dev/null 2>&1`" || exit 77
16840 decho Creating directory structure
16842 mkdir directory/subdir
16843 genfile --file=directory/file
16845 decho Creating initial archive
16846 tar -cf archive.1 -g db.1 directory
16849 mv directory/subdir directory/subdir.0
16852 decho Creating incremental archive
16854 tar -cf archive.2 -g db.2 dir
16858 decho First restore
16859 tar -xf archive.1 -g db.1
16860 find directory | sort
16862 decho Second restore
16863 tar -xf archive.2 -g db.2
16865 ) ) >"$at_stdout" 2>"$at_stder1"
16867 grep '^ *+' "$at_stder1" >&2
16868 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16873 TEST_TAR_FORMAT=oldgnu
16874 export TEST_TAR_FORMAT
16875 TAR_OPTIONS="-H oldgnu"
16880 test -z "`sort < /dev/null 2>&1`" || exit 77
16883 decho Creating directory structure
16885 mkdir directory/subdir
16886 genfile --file=directory/file
16888 decho Creating initial archive
16889 tar -cf archive.1 -g db.1 directory
16892 mv directory/subdir directory/subdir.0
16895 decho Creating incremental archive
16897 tar -cf archive.2 -g db.2 dir
16901 decho First restore
16902 tar -xf archive.1 -g db.1
16903 find directory | sort
16905 decho Second restore
16906 tar -xf archive.2 -g db.2
16908 ) ) >"$at_stdout" 2>"$at_stderr"
16913 echo >>"$at_stderr"; echo "Creating directory structure
16914 Creating initial archive
16916 Creating incremental archive
16919 " | $at_diff - "$at_stderr" || at_failed=:
16920 echo >>"$at_stdout"; echo "Creating directory structure
16921 Creating initial archive
16923 Creating incremental archive
16931 " | $at_diff - "$at_stdout" || at_failed=:
16933 77) echo 77 > "$at_status_file"; exit 77;;
16935 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
16938 if $at_failed; then
16941 echo 1 > "$at_status_file"
16947 echo "$at_srcdir/rename05.at:27:
16950 TEST_TAR_FORMAT=posix
16951 export TEST_TAR_FORMAT
16952 TAR_OPTIONS=\"-H posix\"
16957 test -z "`sort < /dev/null 2>&1`" || exit 77
16960 decho Creating directory structure
16962 mkdir directory/subdir
16963 genfile --file=directory/file
16965 decho Creating initial archive
16966 tar -cf archive.1 -g db.1 directory
16969 mv directory/subdir directory/subdir.0
16972 decho Creating incremental archive
16974 tar -cf archive.2 -g db.2 dir
16978 decho First restore
16979 tar -xf archive.1 -g db.1
16980 find directory | sort
16982 decho Second restore
16983 tar -xf archive.2 -g db.2
16986 echo rename05.at:27 >"$at_check_line_file"
16989 if test -n "$at_traceon"; then
16990 echo 'Not enabling shell tracing (command contains an embedded newline)'
16993 if test -n "$at_trace_this"; then
16997 TEST_TAR_FORMAT=posix
16998 export TEST_TAR_FORMAT
16999 TAR_OPTIONS="-H posix"
17004 test -z "`sort < /dev/null 2>&1`" || exit 77
17007 decho Creating directory structure
17009 mkdir directory/subdir
17010 genfile --file=directory/file
17012 decho Creating initial archive
17013 tar -cf archive.1 -g db.1 directory
17016 mv directory/subdir directory/subdir.0
17019 decho Creating incremental archive
17021 tar -cf archive.2 -g db.2 dir
17025 decho First restore
17026 tar -xf archive.1 -g db.1
17027 find directory | sort
17029 decho Second restore
17030 tar -xf archive.2 -g db.2
17032 ) ) >"$at_stdout" 2>"$at_stder1"
17034 grep '^ *+' "$at_stder1" >&2
17035 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17040 TEST_TAR_FORMAT=posix
17041 export TEST_TAR_FORMAT
17042 TAR_OPTIONS="-H posix"
17047 test -z "`sort < /dev/null 2>&1`" || exit 77
17050 decho Creating directory structure
17052 mkdir directory/subdir
17053 genfile --file=directory/file
17055 decho Creating initial archive
17056 tar -cf archive.1 -g db.1 directory
17059 mv directory/subdir directory/subdir.0
17062 decho Creating incremental archive
17064 tar -cf archive.2 -g db.2 dir
17068 decho First restore
17069 tar -xf archive.1 -g db.1
17070 find directory | sort
17072 decho Second restore
17073 tar -xf archive.2 -g db.2
17075 ) ) >"$at_stdout" 2>"$at_stderr"
17080 echo >>"$at_stderr"; echo "Creating directory structure
17081 Creating initial archive
17083 Creating incremental archive
17086 " | $at_diff - "$at_stderr" || at_failed=:
17087 echo >>"$at_stdout"; echo "Creating directory structure
17088 Creating initial archive
17090 Creating incremental archive
17098 " | $at_diff - "$at_stdout" || at_failed=:
17100 77) echo 77 > "$at_status_file"; exit 77;;
17102 *) echo "$at_srcdir/rename05.at:27: exit code was $at_status, expected 0"
17105 if $at_failed; then
17108 echo 1 > "$at_status_file"
17117 $at_times_p && times >"$at_times_file"
17118 ) 5>&1 2>&1 | eval $at_tee_pipe
17119 at_status=`cat "$at_status_file"`
17122 38 ) # 38. chtype.at:27: changed file types in incrementals
17123 at_setup_line='chtype.at:27'
17124 at_desc="changed file types in incrementals"
17125 $at_quiet $ECHO_N " 38: changed file types in incrementals $ECHO_C"
17127 test -f $XFAILFILE && at_xfail=yes
17128 echo "# -*- compilation -*-" >> "$at_group_log"
17130 echo "38. chtype.at:27: testing ..."
17138 echo "$at_srcdir/chtype.at:30:
17141 TEST_TAR_FORMAT=gnu
17142 export TEST_TAR_FORMAT
17143 TAR_OPTIONS=\"-H gnu\"
17148 test -z "`sort < /dev/null 2>&1`" || exit 77
17151 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17153 genfile --file directory/a/a
17156 tar --create --file=archive.1 --listed-incremental=db.1 directory
17160 # Remove directory b and create a file with this name.
17161 # Previous versions were not able to restore over this file.
17163 genfile --file directory/b
17164 genfile --file directory/a/b
17167 tar --create --file=archive.2 --listed-incremental=db.2 directory
17172 echo Restore archive.1
17173 tar -xf archive.1 --listed-incremental=/dev/null
17174 echo Restore archive.2
17175 tar -xf archive.2 --listed-incremental=/dev/null
17176 find directory | sort
17178 echo chtype.at:30 >"$at_check_line_file"
17181 if test -n "$at_traceon"; then
17182 echo 'Not enabling shell tracing (command contains an embedded newline)'
17185 if test -n "$at_trace_this"; then
17189 TEST_TAR_FORMAT=gnu
17190 export TEST_TAR_FORMAT
17191 TAR_OPTIONS="-H gnu"
17196 test -z "`sort < /dev/null 2>&1`" || exit 77
17199 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17201 genfile --file directory/a/a
17204 tar --create --file=archive.1 --listed-incremental=db.1 directory
17208 # Remove directory b and create a file with this name.
17209 # Previous versions were not able to restore over this file.
17211 genfile --file directory/b
17212 genfile --file directory/a/b
17215 tar --create --file=archive.2 --listed-incremental=db.2 directory
17220 echo Restore archive.1
17221 tar -xf archive.1 --listed-incremental=/dev/null
17222 echo Restore archive.2
17223 tar -xf archive.2 --listed-incremental=/dev/null
17224 find directory | sort
17225 ) ) >"$at_stdout" 2>"$at_stder1"
17227 grep '^ *+' "$at_stder1" >&2
17228 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17233 TEST_TAR_FORMAT=gnu
17234 export TEST_TAR_FORMAT
17235 TAR_OPTIONS="-H gnu"
17240 test -z "`sort < /dev/null 2>&1`" || exit 77
17243 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17245 genfile --file directory/a/a
17248 tar --create --file=archive.1 --listed-incremental=db.1 directory
17252 # Remove directory b and create a file with this name.
17253 # Previous versions were not able to restore over this file.
17255 genfile --file directory/b
17256 genfile --file directory/a/b
17259 tar --create --file=archive.2 --listed-incremental=db.2 directory
17264 echo Restore archive.1
17265 tar -xf archive.1 --listed-incremental=/dev/null
17266 echo Restore archive.2
17267 tar -xf archive.2 --listed-incremental=/dev/null
17268 find directory | sort
17269 ) ) >"$at_stdout" 2>"$at_stderr"
17274 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17275 echo >>"$at_stdout"; echo "First backup
17284 " | $at_diff - "$at_stdout" || at_failed=:
17286 77) echo 77 > "$at_status_file"; exit 77;;
17288 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17291 if $at_failed; then
17294 echo 1 > "$at_status_file"
17300 echo "$at_srcdir/chtype.at:30:
17303 TEST_TAR_FORMAT=oldgnu
17304 export TEST_TAR_FORMAT
17305 TAR_OPTIONS=\"-H oldgnu\"
17310 test -z "`sort < /dev/null 2>&1`" || exit 77
17313 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17315 genfile --file directory/a/a
17318 tar --create --file=archive.1 --listed-incremental=db.1 directory
17322 # Remove directory b and create a file with this name.
17323 # Previous versions were not able to restore over this file.
17325 genfile --file directory/b
17326 genfile --file directory/a/b
17329 tar --create --file=archive.2 --listed-incremental=db.2 directory
17334 echo Restore archive.1
17335 tar -xf archive.1 --listed-incremental=/dev/null
17336 echo Restore archive.2
17337 tar -xf archive.2 --listed-incremental=/dev/null
17338 find directory | sort
17340 echo chtype.at:30 >"$at_check_line_file"
17343 if test -n "$at_traceon"; then
17344 echo 'Not enabling shell tracing (command contains an embedded newline)'
17347 if test -n "$at_trace_this"; then
17351 TEST_TAR_FORMAT=oldgnu
17352 export TEST_TAR_FORMAT
17353 TAR_OPTIONS="-H oldgnu"
17358 test -z "`sort < /dev/null 2>&1`" || exit 77
17361 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17363 genfile --file directory/a/a
17366 tar --create --file=archive.1 --listed-incremental=db.1 directory
17370 # Remove directory b and create a file with this name.
17371 # Previous versions were not able to restore over this file.
17373 genfile --file directory/b
17374 genfile --file directory/a/b
17377 tar --create --file=archive.2 --listed-incremental=db.2 directory
17382 echo Restore archive.1
17383 tar -xf archive.1 --listed-incremental=/dev/null
17384 echo Restore archive.2
17385 tar -xf archive.2 --listed-incremental=/dev/null
17386 find directory | sort
17387 ) ) >"$at_stdout" 2>"$at_stder1"
17389 grep '^ *+' "$at_stder1" >&2
17390 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17395 TEST_TAR_FORMAT=oldgnu
17396 export TEST_TAR_FORMAT
17397 TAR_OPTIONS="-H oldgnu"
17402 test -z "`sort < /dev/null 2>&1`" || exit 77
17405 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17407 genfile --file directory/a/a
17410 tar --create --file=archive.1 --listed-incremental=db.1 directory
17414 # Remove directory b and create a file with this name.
17415 # Previous versions were not able to restore over this file.
17417 genfile --file directory/b
17418 genfile --file directory/a/b
17421 tar --create --file=archive.2 --listed-incremental=db.2 directory
17426 echo Restore archive.1
17427 tar -xf archive.1 --listed-incremental=/dev/null
17428 echo Restore archive.2
17429 tar -xf archive.2 --listed-incremental=/dev/null
17430 find directory | sort
17431 ) ) >"$at_stdout" 2>"$at_stderr"
17436 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17437 echo >>"$at_stdout"; echo "First backup
17446 " | $at_diff - "$at_stdout" || at_failed=:
17448 77) echo 77 > "$at_status_file"; exit 77;;
17450 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17453 if $at_failed; then
17456 echo 1 > "$at_status_file"
17462 echo "$at_srcdir/chtype.at:30:
17465 TEST_TAR_FORMAT=posix
17466 export TEST_TAR_FORMAT
17467 TAR_OPTIONS=\"-H posix\"
17472 test -z "`sort < /dev/null 2>&1`" || exit 77
17475 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17477 genfile --file directory/a/a
17480 tar --create --file=archive.1 --listed-incremental=db.1 directory
17484 # Remove directory b and create a file with this name.
17485 # Previous versions were not able to restore over this file.
17487 genfile --file directory/b
17488 genfile --file directory/a/b
17491 tar --create --file=archive.2 --listed-incremental=db.2 directory
17496 echo Restore archive.1
17497 tar -xf archive.1 --listed-incremental=/dev/null
17498 echo Restore archive.2
17499 tar -xf archive.2 --listed-incremental=/dev/null
17500 find directory | sort
17502 echo chtype.at:30 >"$at_check_line_file"
17505 if test -n "$at_traceon"; then
17506 echo 'Not enabling shell tracing (command contains an embedded newline)'
17509 if test -n "$at_trace_this"; then
17513 TEST_TAR_FORMAT=posix
17514 export TEST_TAR_FORMAT
17515 TAR_OPTIONS="-H posix"
17520 test -z "`sort < /dev/null 2>&1`" || exit 77
17523 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17525 genfile --file directory/a/a
17528 tar --create --file=archive.1 --listed-incremental=db.1 directory
17532 # Remove directory b and create a file with this name.
17533 # Previous versions were not able to restore over this file.
17535 genfile --file directory/b
17536 genfile --file directory/a/b
17539 tar --create --file=archive.2 --listed-incremental=db.2 directory
17544 echo Restore archive.1
17545 tar -xf archive.1 --listed-incremental=/dev/null
17546 echo Restore archive.2
17547 tar -xf archive.2 --listed-incremental=/dev/null
17548 find directory | sort
17549 ) ) >"$at_stdout" 2>"$at_stder1"
17551 grep '^ *+' "$at_stder1" >&2
17552 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17557 TEST_TAR_FORMAT=posix
17558 export TEST_TAR_FORMAT
17559 TAR_OPTIONS="-H posix"
17564 test -z "`sort < /dev/null 2>&1`" || exit 77
17567 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
17569 genfile --file directory/a/a
17572 tar --create --file=archive.1 --listed-incremental=db.1 directory
17576 # Remove directory b and create a file with this name.
17577 # Previous versions were not able to restore over this file.
17579 genfile --file directory/b
17580 genfile --file directory/a/b
17583 tar --create --file=archive.2 --listed-incremental=db.2 directory
17588 echo Restore archive.1
17589 tar -xf archive.1 --listed-incremental=/dev/null
17590 echo Restore archive.2
17591 tar -xf archive.2 --listed-incremental=/dev/null
17592 find directory | sort
17593 ) ) >"$at_stdout" 2>"$at_stderr"
17598 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17599 echo >>"$at_stdout"; echo "First backup
17608 " | $at_diff - "$at_stdout" || at_failed=:
17610 77) echo 77 > "$at_status_file"; exit 77;;
17612 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
17615 if $at_failed; then
17618 echo 1 > "$at_status_file"
17627 $at_times_p && times >"$at_times_file"
17628 ) 5>&1 2>&1 | eval $at_tee_pipe
17629 at_status=`cat "$at_status_file"`
17632 39 ) # 39. ignfail.at:23: ignfail
17633 at_setup_line='ignfail.at:23'
17635 $at_quiet $ECHO_N " 39: ignfail $ECHO_C"
17637 test -f $XFAILFILE && at_xfail=yes
17638 echo "# -*- compilation -*-" >> "$at_group_log"
17640 echo "39. ignfail.at:23: testing ..."
17648 echo "$at_srcdir/ignfail.at:26:
17652 export TEST_TAR_FORMAT
17653 TAR_OPTIONS=\"-H v7\"
17657 # The test is meaningless for super-user.
17661 cat $$ > /dev/null 2>&1
17664 test $result -eq 0 && exit 77
17669 touch directory/file
17673 tar cf archive file
17676 test \$status = 2 || exit 1
17680 tar cf archive --ignore-failed-read file || exit 1
17683 test \$status = 0 || exit 1
17686 chmod 000 directory
17687 tar cf archive directory
17689 chmod 700 directory
17690 test \$status = 2 || exit 1
17693 chmod 000 directory
17694 tar cf archive --ignore-failed-read directory || exit 1
17696 chmod 700 directory
17699 echo ignfail.at:26 >"$at_check_line_file"
17702 if test -n "$at_traceon"; then
17703 echo 'Not enabling shell tracing (command contains an embedded newline)'
17706 if test -n "$at_trace_this"; then
17711 export TEST_TAR_FORMAT
17712 TAR_OPTIONS="-H v7"
17716 # The test is meaningless for super-user.
17720 cat $$ > /dev/null 2>&1
17723 test $result -eq 0 && exit 77
17728 touch directory/file
17732 tar cf archive file
17735 test $status = 2 || exit 1
17739 tar cf archive --ignore-failed-read file || exit 1
17742 test $status = 0 || exit 1
17745 chmod 000 directory
17746 tar cf archive directory
17748 chmod 700 directory
17749 test $status = 2 || exit 1
17752 chmod 000 directory
17753 tar cf archive --ignore-failed-read directory || exit 1
17755 chmod 700 directory
17757 ) ) >"$at_stdout" 2>"$at_stder1"
17759 grep '^ *+' "$at_stder1" >&2
17760 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17766 export TEST_TAR_FORMAT
17767 TAR_OPTIONS="-H v7"
17771 # The test is meaningless for super-user.
17775 cat $$ > /dev/null 2>&1
17778 test $result -eq 0 && exit 77
17783 touch directory/file
17787 tar cf archive file
17790 test $status = 2 || exit 1
17794 tar cf archive --ignore-failed-read file || exit 1
17797 test $status = 0 || exit 1
17800 chmod 000 directory
17801 tar cf archive directory
17803 chmod 700 directory
17804 test $status = 2 || exit 1
17807 chmod 000 directory
17808 tar cf archive --ignore-failed-read directory || exit 1
17810 chmod 700 directory
17812 ) ) >"$at_stdout" 2>"$at_stderr"
17817 echo >>"$at_stderr"; echo "-----
17818 tar: file: Cannot open: Permission denied
17819 tar: Exiting with failure status due to previous errors
17821 tar: file: Warning: Cannot open: Permission denied
17823 tar: directory: Cannot open: Permission denied
17824 tar: Exiting with failure status due to previous errors
17826 tar: directory: Warning: Cannot open: Permission denied
17827 " | $at_diff - "$at_stderr" || at_failed=:
17828 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
17830 77) echo 77 > "$at_status_file"; exit 77;;
17832 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
17835 if $at_failed; then
17838 echo 1 > "$at_status_file"
17844 echo "$at_srcdir/ignfail.at:26:
17847 TEST_TAR_FORMAT=oldgnu
17848 export TEST_TAR_FORMAT
17849 TAR_OPTIONS=\"-H oldgnu\"
17853 # The test is meaningless for super-user.
17857 cat $$ > /dev/null 2>&1
17860 test $result -eq 0 && exit 77
17865 touch directory/file
17869 tar cf archive file
17872 test \$status = 2 || exit 1
17876 tar cf archive --ignore-failed-read file || exit 1
17879 test \$status = 0 || exit 1
17882 chmod 000 directory
17883 tar cf archive directory
17885 chmod 700 directory
17886 test \$status = 2 || exit 1
17889 chmod 000 directory
17890 tar cf archive --ignore-failed-read directory || exit 1
17892 chmod 700 directory
17895 echo ignfail.at:26 >"$at_check_line_file"
17898 if test -n "$at_traceon"; then
17899 echo 'Not enabling shell tracing (command contains an embedded newline)'
17902 if test -n "$at_trace_this"; then
17906 TEST_TAR_FORMAT=oldgnu
17907 export TEST_TAR_FORMAT
17908 TAR_OPTIONS="-H oldgnu"
17912 # The test is meaningless for super-user.
17916 cat $$ > /dev/null 2>&1
17919 test $result -eq 0 && exit 77
17924 touch directory/file
17928 tar cf archive file
17931 test $status = 2 || exit 1
17935 tar cf archive --ignore-failed-read file || exit 1
17938 test $status = 0 || exit 1
17941 chmod 000 directory
17942 tar cf archive directory
17944 chmod 700 directory
17945 test $status = 2 || exit 1
17948 chmod 000 directory
17949 tar cf archive --ignore-failed-read directory || exit 1
17951 chmod 700 directory
17953 ) ) >"$at_stdout" 2>"$at_stder1"
17955 grep '^ *+' "$at_stder1" >&2
17956 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17961 TEST_TAR_FORMAT=oldgnu
17962 export TEST_TAR_FORMAT
17963 TAR_OPTIONS="-H oldgnu"
17967 # The test is meaningless for super-user.
17971 cat $$ > /dev/null 2>&1
17974 test $result -eq 0 && exit 77
17979 touch directory/file
17983 tar cf archive file
17986 test $status = 2 || exit 1
17990 tar cf archive --ignore-failed-read file || exit 1
17993 test $status = 0 || exit 1
17996 chmod 000 directory
17997 tar cf archive directory
17999 chmod 700 directory
18000 test $status = 2 || exit 1
18003 chmod 000 directory
18004 tar cf archive --ignore-failed-read directory || exit 1
18006 chmod 700 directory
18008 ) ) >"$at_stdout" 2>"$at_stderr"
18013 echo >>"$at_stderr"; echo "-----
18014 tar: file: Cannot open: Permission denied
18015 tar: Exiting with failure status due to previous errors
18017 tar: file: Warning: Cannot open: Permission denied
18019 tar: directory: Cannot open: Permission denied
18020 tar: Exiting with failure status due to previous errors
18022 tar: directory: Warning: Cannot open: Permission denied
18023 " | $at_diff - "$at_stderr" || at_failed=:
18024 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18026 77) echo 77 > "$at_status_file"; exit 77;;
18028 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18031 if $at_failed; then
18034 echo 1 > "$at_status_file"
18040 echo "$at_srcdir/ignfail.at:26:
18043 TEST_TAR_FORMAT=ustar
18044 export TEST_TAR_FORMAT
18045 TAR_OPTIONS=\"-H ustar\"
18049 # The test is meaningless for super-user.
18053 cat $$ > /dev/null 2>&1
18056 test $result -eq 0 && exit 77
18061 touch directory/file
18065 tar cf archive file
18068 test \$status = 2 || exit 1
18072 tar cf archive --ignore-failed-read file || exit 1
18075 test \$status = 0 || exit 1
18078 chmod 000 directory
18079 tar cf archive directory
18081 chmod 700 directory
18082 test \$status = 2 || exit 1
18085 chmod 000 directory
18086 tar cf archive --ignore-failed-read directory || exit 1
18088 chmod 700 directory
18091 echo ignfail.at:26 >"$at_check_line_file"
18094 if test -n "$at_traceon"; then
18095 echo 'Not enabling shell tracing (command contains an embedded newline)'
18098 if test -n "$at_trace_this"; then
18102 TEST_TAR_FORMAT=ustar
18103 export TEST_TAR_FORMAT
18104 TAR_OPTIONS="-H ustar"
18108 # The test is meaningless for super-user.
18112 cat $$ > /dev/null 2>&1
18115 test $result -eq 0 && exit 77
18120 touch directory/file
18124 tar cf archive file
18127 test $status = 2 || exit 1
18131 tar cf archive --ignore-failed-read file || exit 1
18134 test $status = 0 || exit 1
18137 chmod 000 directory
18138 tar cf archive directory
18140 chmod 700 directory
18141 test $status = 2 || exit 1
18144 chmod 000 directory
18145 tar cf archive --ignore-failed-read directory || exit 1
18147 chmod 700 directory
18149 ) ) >"$at_stdout" 2>"$at_stder1"
18151 grep '^ *+' "$at_stder1" >&2
18152 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18157 TEST_TAR_FORMAT=ustar
18158 export TEST_TAR_FORMAT
18159 TAR_OPTIONS="-H ustar"
18163 # The test is meaningless for super-user.
18167 cat $$ > /dev/null 2>&1
18170 test $result -eq 0 && exit 77
18175 touch directory/file
18179 tar cf archive file
18182 test $status = 2 || exit 1
18186 tar cf archive --ignore-failed-read file || exit 1
18189 test $status = 0 || exit 1
18192 chmod 000 directory
18193 tar cf archive directory
18195 chmod 700 directory
18196 test $status = 2 || exit 1
18199 chmod 000 directory
18200 tar cf archive --ignore-failed-read directory || exit 1
18202 chmod 700 directory
18204 ) ) >"$at_stdout" 2>"$at_stderr"
18209 echo >>"$at_stderr"; echo "-----
18210 tar: file: Cannot open: Permission denied
18211 tar: Exiting with failure status due to previous errors
18213 tar: file: Warning: Cannot open: Permission denied
18215 tar: directory: Cannot open: Permission denied
18216 tar: Exiting with failure status due to previous errors
18218 tar: directory: Warning: Cannot open: Permission denied
18219 " | $at_diff - "$at_stderr" || at_failed=:
18220 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18222 77) echo 77 > "$at_status_file"; exit 77;;
18224 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18227 if $at_failed; then
18230 echo 1 > "$at_status_file"
18236 echo "$at_srcdir/ignfail.at:26:
18239 TEST_TAR_FORMAT=posix
18240 export TEST_TAR_FORMAT
18241 TAR_OPTIONS=\"-H posix\"
18245 # The test is meaningless for super-user.
18249 cat $$ > /dev/null 2>&1
18252 test $result -eq 0 && exit 77
18257 touch directory/file
18261 tar cf archive file
18264 test \$status = 2 || exit 1
18268 tar cf archive --ignore-failed-read file || exit 1
18271 test \$status = 0 || exit 1
18274 chmod 000 directory
18275 tar cf archive directory
18277 chmod 700 directory
18278 test \$status = 2 || exit 1
18281 chmod 000 directory
18282 tar cf archive --ignore-failed-read directory || exit 1
18284 chmod 700 directory
18287 echo ignfail.at:26 >"$at_check_line_file"
18290 if test -n "$at_traceon"; then
18291 echo 'Not enabling shell tracing (command contains an embedded newline)'
18294 if test -n "$at_trace_this"; then
18298 TEST_TAR_FORMAT=posix
18299 export TEST_TAR_FORMAT
18300 TAR_OPTIONS="-H posix"
18304 # The test is meaningless for super-user.
18308 cat $$ > /dev/null 2>&1
18311 test $result -eq 0 && exit 77
18316 touch directory/file
18320 tar cf archive file
18323 test $status = 2 || exit 1
18327 tar cf archive --ignore-failed-read file || exit 1
18330 test $status = 0 || exit 1
18333 chmod 000 directory
18334 tar cf archive directory
18336 chmod 700 directory
18337 test $status = 2 || exit 1
18340 chmod 000 directory
18341 tar cf archive --ignore-failed-read directory || exit 1
18343 chmod 700 directory
18345 ) ) >"$at_stdout" 2>"$at_stder1"
18347 grep '^ *+' "$at_stder1" >&2
18348 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18353 TEST_TAR_FORMAT=posix
18354 export TEST_TAR_FORMAT
18355 TAR_OPTIONS="-H posix"
18359 # The test is meaningless for super-user.
18363 cat $$ > /dev/null 2>&1
18366 test $result -eq 0 && exit 77
18371 touch directory/file
18375 tar cf archive file
18378 test $status = 2 || exit 1
18382 tar cf archive --ignore-failed-read file || exit 1
18385 test $status = 0 || exit 1
18388 chmod 000 directory
18389 tar cf archive directory
18391 chmod 700 directory
18392 test $status = 2 || exit 1
18395 chmod 000 directory
18396 tar cf archive --ignore-failed-read directory || exit 1
18398 chmod 700 directory
18400 ) ) >"$at_stdout" 2>"$at_stderr"
18405 echo >>"$at_stderr"; echo "-----
18406 tar: file: Cannot open: Permission denied
18407 tar: Exiting with failure status due to previous errors
18409 tar: file: Warning: Cannot open: Permission denied
18411 tar: directory: Cannot open: Permission denied
18412 tar: Exiting with failure status due to previous errors
18414 tar: directory: Warning: Cannot open: Permission denied
18415 " | $at_diff - "$at_stderr" || at_failed=:
18416 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18418 77) echo 77 > "$at_status_file"; exit 77;;
18420 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18423 if $at_failed; then
18426 echo 1 > "$at_status_file"
18432 echo "$at_srcdir/ignfail.at:26:
18435 TEST_TAR_FORMAT=gnu
18436 export TEST_TAR_FORMAT
18437 TAR_OPTIONS=\"-H gnu\"
18441 # The test is meaningless for super-user.
18445 cat $$ > /dev/null 2>&1
18448 test $result -eq 0 && exit 77
18453 touch directory/file
18457 tar cf archive file
18460 test \$status = 2 || exit 1
18464 tar cf archive --ignore-failed-read file || exit 1
18467 test \$status = 0 || exit 1
18470 chmod 000 directory
18471 tar cf archive directory
18473 chmod 700 directory
18474 test \$status = 2 || exit 1
18477 chmod 000 directory
18478 tar cf archive --ignore-failed-read directory || exit 1
18480 chmod 700 directory
18483 echo ignfail.at:26 >"$at_check_line_file"
18486 if test -n "$at_traceon"; then
18487 echo 'Not enabling shell tracing (command contains an embedded newline)'
18490 if test -n "$at_trace_this"; then
18494 TEST_TAR_FORMAT=gnu
18495 export TEST_TAR_FORMAT
18496 TAR_OPTIONS="-H gnu"
18500 # The test is meaningless for super-user.
18504 cat $$ > /dev/null 2>&1
18507 test $result -eq 0 && exit 77
18512 touch directory/file
18516 tar cf archive file
18519 test $status = 2 || exit 1
18523 tar cf archive --ignore-failed-read file || exit 1
18526 test $status = 0 || exit 1
18529 chmod 000 directory
18530 tar cf archive directory
18532 chmod 700 directory
18533 test $status = 2 || exit 1
18536 chmod 000 directory
18537 tar cf archive --ignore-failed-read directory || exit 1
18539 chmod 700 directory
18541 ) ) >"$at_stdout" 2>"$at_stder1"
18543 grep '^ *+' "$at_stder1" >&2
18544 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18549 TEST_TAR_FORMAT=gnu
18550 export TEST_TAR_FORMAT
18551 TAR_OPTIONS="-H gnu"
18555 # The test is meaningless for super-user.
18559 cat $$ > /dev/null 2>&1
18562 test $result -eq 0 && exit 77
18567 touch directory/file
18571 tar cf archive file
18574 test $status = 2 || exit 1
18578 tar cf archive --ignore-failed-read file || exit 1
18581 test $status = 0 || exit 1
18584 chmod 000 directory
18585 tar cf archive directory
18587 chmod 700 directory
18588 test $status = 2 || exit 1
18591 chmod 000 directory
18592 tar cf archive --ignore-failed-read directory || exit 1
18594 chmod 700 directory
18596 ) ) >"$at_stdout" 2>"$at_stderr"
18601 echo >>"$at_stderr"; echo "-----
18602 tar: file: Cannot open: Permission denied
18603 tar: Exiting with failure status due to previous errors
18605 tar: file: Warning: Cannot open: Permission denied
18607 tar: directory: Cannot open: Permission denied
18608 tar: Exiting with failure status due to previous errors
18610 tar: directory: Warning: Cannot open: Permission denied
18611 " | $at_diff - "$at_stderr" || at_failed=:
18612 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18614 77) echo 77 > "$at_status_file"; exit 77;;
18616 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
18619 if $at_failed; then
18622 echo 1 > "$at_status_file"
18631 $at_times_p && times >"$at_times_file"
18632 ) 5>&1 2>&1 | eval $at_tee_pipe
18633 at_status=`cat "$at_status_file"`
18636 40 ) # 40. link01.at:33: link count gt 2
18637 at_setup_line='link01.at:33'
18638 at_desc="link count gt 2"
18639 $at_quiet $ECHO_N " 40: link count gt 2 $ECHO_C"
18641 test -f $XFAILFILE && at_xfail=yes
18642 echo "# -*- compilation -*-" >> "$at_group_log"
18644 echo "40. link01.at:33: testing ..."
18652 echo "$at_srcdir/link01.at:36:
18656 export TEST_TAR_FORMAT
18657 TAR_OPTIONS=\"-H v7\"
18662 mkdir directory/test1
18663 mkdir directory/test2
18665 echo TEST > directory/test1/test.txt
18666 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18668 tar cf archive directory/test1/test.txt directory/test1/test.txt
18675 echo link01.at:36 >"$at_check_line_file"
18678 if test -n "$at_traceon"; then
18679 echo 'Not enabling shell tracing (command contains an embedded newline)'
18682 if test -n "$at_trace_this"; then
18687 export TEST_TAR_FORMAT
18688 TAR_OPTIONS="-H v7"
18693 mkdir directory/test1
18694 mkdir directory/test2
18696 echo TEST > directory/test1/test.txt
18697 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18699 tar cf archive directory/test1/test.txt directory/test1/test.txt
18705 ) ) >"$at_stdout" 2>"$at_stder1"
18707 grep '^ *+' "$at_stder1" >&2
18708 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18714 export TEST_TAR_FORMAT
18715 TAR_OPTIONS="-H v7"
18720 mkdir directory/test1
18721 mkdir directory/test2
18723 echo TEST > directory/test1/test.txt
18724 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18726 tar cf archive directory/test1/test.txt directory/test1/test.txt
18732 ) ) >"$at_stdout" 2>"$at_stderr"
18737 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18738 echo >>"$at_stdout"; echo "test.txt
18739 " | $at_diff - "$at_stdout" || at_failed=:
18741 77) echo 77 > "$at_status_file"; exit 77;;
18743 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
18746 if $at_failed; then
18749 echo 1 > "$at_status_file"
18755 echo "$at_srcdir/link01.at:36:
18758 TEST_TAR_FORMAT=oldgnu
18759 export TEST_TAR_FORMAT
18760 TAR_OPTIONS=\"-H oldgnu\"
18765 mkdir directory/test1
18766 mkdir directory/test2
18768 echo TEST > directory/test1/test.txt
18769 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18771 tar cf archive directory/test1/test.txt directory/test1/test.txt
18778 echo link01.at:36 >"$at_check_line_file"
18781 if test -n "$at_traceon"; then
18782 echo 'Not enabling shell tracing (command contains an embedded newline)'
18785 if test -n "$at_trace_this"; then
18789 TEST_TAR_FORMAT=oldgnu
18790 export TEST_TAR_FORMAT
18791 TAR_OPTIONS="-H oldgnu"
18796 mkdir directory/test1
18797 mkdir directory/test2
18799 echo TEST > directory/test1/test.txt
18800 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18802 tar cf archive directory/test1/test.txt directory/test1/test.txt
18808 ) ) >"$at_stdout" 2>"$at_stder1"
18810 grep '^ *+' "$at_stder1" >&2
18811 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18816 TEST_TAR_FORMAT=oldgnu
18817 export TEST_TAR_FORMAT
18818 TAR_OPTIONS="-H oldgnu"
18823 mkdir directory/test1
18824 mkdir directory/test2
18826 echo TEST > directory/test1/test.txt
18827 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18829 tar cf archive directory/test1/test.txt directory/test1/test.txt
18835 ) ) >"$at_stdout" 2>"$at_stderr"
18840 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18841 echo >>"$at_stdout"; echo "test.txt
18842 " | $at_diff - "$at_stdout" || at_failed=:
18844 77) echo 77 > "$at_status_file"; exit 77;;
18846 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
18849 if $at_failed; then
18852 echo 1 > "$at_status_file"
18858 echo "$at_srcdir/link01.at:36:
18861 TEST_TAR_FORMAT=ustar
18862 export TEST_TAR_FORMAT
18863 TAR_OPTIONS=\"-H ustar\"
18868 mkdir directory/test1
18869 mkdir directory/test2
18871 echo TEST > directory/test1/test.txt
18872 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18874 tar cf archive directory/test1/test.txt directory/test1/test.txt
18881 echo link01.at:36 >"$at_check_line_file"
18884 if test -n "$at_traceon"; then
18885 echo 'Not enabling shell tracing (command contains an embedded newline)'
18888 if test -n "$at_trace_this"; then
18892 TEST_TAR_FORMAT=ustar
18893 export TEST_TAR_FORMAT
18894 TAR_OPTIONS="-H ustar"
18899 mkdir directory/test1
18900 mkdir directory/test2
18902 echo TEST > directory/test1/test.txt
18903 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18905 tar cf archive directory/test1/test.txt directory/test1/test.txt
18911 ) ) >"$at_stdout" 2>"$at_stder1"
18913 grep '^ *+' "$at_stder1" >&2
18914 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18919 TEST_TAR_FORMAT=ustar
18920 export TEST_TAR_FORMAT
18921 TAR_OPTIONS="-H ustar"
18926 mkdir directory/test1
18927 mkdir directory/test2
18929 echo TEST > directory/test1/test.txt
18930 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18932 tar cf archive directory/test1/test.txt directory/test1/test.txt
18938 ) ) >"$at_stdout" 2>"$at_stderr"
18943 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18944 echo >>"$at_stdout"; echo "test.txt
18945 " | $at_diff - "$at_stdout" || at_failed=:
18947 77) echo 77 > "$at_status_file"; exit 77;;
18949 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
18952 if $at_failed; then
18955 echo 1 > "$at_status_file"
18961 echo "$at_srcdir/link01.at:36:
18964 TEST_TAR_FORMAT=posix
18965 export TEST_TAR_FORMAT
18966 TAR_OPTIONS=\"-H posix\"
18971 mkdir directory/test1
18972 mkdir directory/test2
18974 echo TEST > directory/test1/test.txt
18975 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18977 tar cf archive directory/test1/test.txt directory/test1/test.txt
18984 echo link01.at:36 >"$at_check_line_file"
18987 if test -n "$at_traceon"; then
18988 echo 'Not enabling shell tracing (command contains an embedded newline)'
18991 if test -n "$at_trace_this"; then
18995 TEST_TAR_FORMAT=posix
18996 export TEST_TAR_FORMAT
18997 TAR_OPTIONS="-H posix"
19002 mkdir directory/test1
19003 mkdir directory/test2
19005 echo TEST > directory/test1/test.txt
19006 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19008 tar cf archive directory/test1/test.txt directory/test1/test.txt
19014 ) ) >"$at_stdout" 2>"$at_stder1"
19016 grep '^ *+' "$at_stder1" >&2
19017 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19022 TEST_TAR_FORMAT=posix
19023 export TEST_TAR_FORMAT
19024 TAR_OPTIONS="-H posix"
19029 mkdir directory/test1
19030 mkdir directory/test2
19032 echo TEST > directory/test1/test.txt
19033 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19035 tar cf archive directory/test1/test.txt directory/test1/test.txt
19041 ) ) >"$at_stdout" 2>"$at_stderr"
19046 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19047 echo >>"$at_stdout"; echo "test.txt
19048 " | $at_diff - "$at_stdout" || at_failed=:
19050 77) echo 77 > "$at_status_file"; exit 77;;
19052 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19055 if $at_failed; then
19058 echo 1 > "$at_status_file"
19064 echo "$at_srcdir/link01.at:36:
19067 TEST_TAR_FORMAT=gnu
19068 export TEST_TAR_FORMAT
19069 TAR_OPTIONS=\"-H gnu\"
19074 mkdir directory/test1
19075 mkdir directory/test2
19077 echo TEST > directory/test1/test.txt
19078 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19080 tar cf archive directory/test1/test.txt directory/test1/test.txt
19087 echo link01.at:36 >"$at_check_line_file"
19090 if test -n "$at_traceon"; then
19091 echo 'Not enabling shell tracing (command contains an embedded newline)'
19094 if test -n "$at_trace_this"; then
19098 TEST_TAR_FORMAT=gnu
19099 export TEST_TAR_FORMAT
19100 TAR_OPTIONS="-H gnu"
19105 mkdir directory/test1
19106 mkdir directory/test2
19108 echo TEST > directory/test1/test.txt
19109 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19111 tar cf archive directory/test1/test.txt directory/test1/test.txt
19117 ) ) >"$at_stdout" 2>"$at_stder1"
19119 grep '^ *+' "$at_stder1" >&2
19120 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19125 TEST_TAR_FORMAT=gnu
19126 export TEST_TAR_FORMAT
19127 TAR_OPTIONS="-H gnu"
19132 mkdir directory/test1
19133 mkdir directory/test2
19135 echo TEST > directory/test1/test.txt
19136 ln directory/test1/test.txt directory/test2/test.txt || exit 77
19138 tar cf archive directory/test1/test.txt directory/test1/test.txt
19144 ) ) >"$at_stdout" 2>"$at_stderr"
19149 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19150 echo >>"$at_stdout"; echo "test.txt
19151 " | $at_diff - "$at_stdout" || at_failed=:
19153 77) echo 77 > "$at_status_file"; exit 77;;
19155 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
19158 if $at_failed; then
19161 echo 1 > "$at_status_file"
19170 $at_times_p && times >"$at_times_file"
19171 ) 5>&1 2>&1 | eval $at_tee_pipe
19172 at_status=`cat "$at_status_file"`
19175 41 ) # 41. longv7.at:24: long names in V7 archives
19176 at_setup_line='longv7.at:24'
19177 at_desc="long names in V7 archives"
19178 $at_quiet $ECHO_N " 41: long names in V7 archives $ECHO_C"
19180 test -f $XFAILFILE && at_xfail=yes
19181 echo "# -*- compilation -*-" >> "$at_group_log"
19183 echo "41. longv7.at:24: testing ..."
19194 echo "$at_srcdir/longv7.at:30:
19198 export TEST_TAR_FORMAT
19199 TAR_OPTIONS=\"-H v7\"
19203 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19204 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19206 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19210 echo longv7.at:30 >"$at_check_line_file"
19213 if test -n "$at_traceon"; then
19214 echo 'Not enabling shell tracing (command contains an embedded newline)'
19217 if test -n "$at_trace_this"; then
19222 export TEST_TAR_FORMAT
19223 TAR_OPTIONS="-H v7"
19227 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19228 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19230 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19233 ) ) >"$at_stdout" 2>"$at_stder1"
19235 grep '^ *+' "$at_stder1" >&2
19236 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19242 export TEST_TAR_FORMAT
19243 TAR_OPTIONS="-H v7"
19247 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
19248 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
19250 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
19253 ) ) >"$at_stdout" 2>"$at_stderr"
19258 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
19259 tar: Exiting with failure status due to previous errors
19260 " | $at_diff - "$at_stderr" || at_failed=:
19261 echo >>"$at_stdout"; echo "separator
19262 this_is_a_very_long_name_for_a_directory_which_causes_problems/
19263 " | $at_diff - "$at_stdout" || at_failed=:
19265 77) echo 77 > "$at_status_file"; exit 77;;
19267 *) echo "$at_srcdir/longv7.at:30: exit code was $at_status, expected 0"
19270 if $at_failed; then
19273 echo 1 > "$at_status_file"
19282 $at_times_p && times >"$at_times_file"
19283 ) 5>&1 2>&1 | eval $at_tee_pipe
19284 at_status=`cat "$at_status_file"`
19287 42 ) # 42. long01.at:28: long file names divisible by block size
19288 at_setup_line='long01.at:28'
19289 at_desc="long file names divisible by block size"
19290 $at_quiet $ECHO_N " 42: long file names divisible by block size $ECHO_C"
19292 test -f $XFAILFILE && at_xfail=yes
19293 echo "# -*- compilation -*-" >> "$at_group_log"
19295 echo "42. long01.at:28: testing ..."
19307 echo "$at_srcdir/long01.at:36:
19310 TEST_TAR_FORMAT=gnu
19311 export TEST_TAR_FORMAT
19312 TAR_OPTIONS=\"-H gnu\"
19317 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
19318 echo test > endfile
19320 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
19322 echo long01.at:36 >"$at_check_line_file"
19325 if test -n "$at_traceon"; then
19326 echo 'Not enabling shell tracing (command contains an embedded newline)'
19329 if test -n "$at_trace_this"; then
19333 TEST_TAR_FORMAT=gnu
19334 export TEST_TAR_FORMAT
19335 TAR_OPTIONS="-H gnu"
19340 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
19341 echo test > endfile
19343 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
19344 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
19346 grep '^ *+' "$at_stder1" >&2
19347 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19352 TEST_TAR_FORMAT=gnu
19353 export TEST_TAR_FORMAT
19354 TAR_OPTIONS="-H gnu"
19359 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
19360 echo test > endfile
19362 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
19363 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
19368 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19369 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
19371 " | $at_diff - "$at_stdout" || at_failed=:
19373 77) echo 77 > "$at_status_file"; exit 77;;
19375 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
19378 if $at_failed; then
19381 echo 1 > "$at_status_file"
19387 echo "$at_srcdir/long01.at:36:
19390 TEST_TAR_FORMAT=oldgnu
19391 export TEST_TAR_FORMAT
19392 TAR_OPTIONS=\"-H oldgnu\"
19397 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
19398 echo test > endfile
19400 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
19402 echo long01.at:36 >"$at_check_line_file"
19405 if test -n "$at_traceon"; then
19406 echo 'Not enabling shell tracing (command contains an embedded newline)'
19409 if test -n "$at_trace_this"; then
19413 TEST_TAR_FORMAT=oldgnu
19414 export TEST_TAR_FORMAT
19415 TAR_OPTIONS="-H oldgnu"
19420 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
19421 echo test > endfile
19423 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
19424 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
19426 grep '^ *+' "$at_stder1" >&2
19427 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19432 TEST_TAR_FORMAT=oldgnu
19433 export TEST_TAR_FORMAT
19434 TAR_OPTIONS="-H oldgnu"
19439 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
19440 echo test > endfile
19442 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
19443 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
19448 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19449 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
19451 " | $at_diff - "$at_stdout" || at_failed=:
19453 77) echo 77 > "$at_status_file"; exit 77;;
19455 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
19458 if $at_failed; then
19461 echo 1 > "$at_status_file"
19470 $at_times_p && times >"$at_times_file"
19471 ) 5>&1 2>&1 | eval $at_tee_pipe
19472 at_status=`cat "$at_status_file"`
19475 43 ) # 43. lustar01.at:21: ustar: unsplittable file name
19476 at_setup_line='lustar01.at:21'
19477 at_desc="ustar: unsplittable file name"
19478 $at_quiet $ECHO_N " 43: ustar: unsplittable file name $ECHO_C"
19480 test -f $XFAILFILE && at_xfail=yes
19481 echo "# -*- compilation -*-" >> "$at_group_log"
19483 echo "43. lustar01.at:21: testing ..."
19493 echo "$at_srcdir/lustar01.at:27:
19496 TEST_TAR_FORMAT=ustar
19497 export TEST_TAR_FORMAT
19498 TAR_OPTIONS=\"-H ustar\"
19502 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
19503 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
19505 echo lustar01.at:27 >"$at_check_line_file"
19508 if test -n "$at_traceon"; then
19509 echo 'Not enabling shell tracing (command contains an embedded newline)'
19512 if test -n "$at_trace_this"; then
19516 TEST_TAR_FORMAT=ustar
19517 export TEST_TAR_FORMAT
19518 TAR_OPTIONS="-H ustar"
19522 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
19523 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
19524 ) ) >"$at_stdout" 2>"$at_stder1"
19526 grep '^ *+' "$at_stder1" >&2
19527 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19532 TEST_TAR_FORMAT=ustar
19533 export TEST_TAR_FORMAT
19534 TAR_OPTIONS="-H ustar"
19538 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
19539 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
19540 ) ) >"$at_stdout" 2>"$at_stderr"
19545 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
19546 tar: Exiting with failure status due to previous errors
19547 " | $at_diff - "$at_stderr" || at_failed=:
19548 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19550 77) echo 77 > "$at_status_file"; exit 77;;
19552 *) echo "$at_srcdir/lustar01.at:27: exit code was $at_status, expected 2"
19555 if $at_failed; then
19558 echo 1 > "$at_status_file"
19567 $at_times_p && times >"$at_times_file"
19568 ) 5>&1 2>&1 | eval $at_tee_pipe
19569 at_status=`cat "$at_status_file"`
19572 44 ) # 44. lustar02.at:21: ustar: unsplittable path name
19573 at_setup_line='lustar02.at:21'
19574 at_desc="ustar: unsplittable path name"
19575 $at_quiet $ECHO_N " 44: ustar: unsplittable path name $ECHO_C"
19577 test -f $XFAILFILE && at_xfail=yes
19578 echo "# -*- compilation -*-" >> "$at_group_log"
19580 echo "44. lustar02.at:21: testing ..."
19594 echo "$at_srcdir/lustar02.at:32:
19597 TEST_TAR_FORMAT=ustar
19598 export TEST_TAR_FORMAT
19599 TAR_OPTIONS=\"-H ustar\"
19604 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
19605 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
19607 echo lustar02.at:32 >"$at_check_line_file"
19610 if test -n "$at_traceon"; then
19611 echo 'Not enabling shell tracing (command contains an embedded newline)'
19614 if test -n "$at_trace_this"; then
19618 TEST_TAR_FORMAT=ustar
19619 export TEST_TAR_FORMAT
19620 TAR_OPTIONS="-H ustar"
19625 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
19626 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
19627 ) ) >"$at_stdout" 2>"$at_stder1"
19629 grep '^ *+' "$at_stder1" >&2
19630 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19635 TEST_TAR_FORMAT=ustar
19636 export TEST_TAR_FORMAT
19637 TAR_OPTIONS="-H ustar"
19642 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
19643 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
19644 ) ) >"$at_stdout" 2>"$at_stderr"
19649 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
19650 tar: Exiting with failure status due to previous errors
19651 " | $at_diff - "$at_stderr" || at_failed=:
19652 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19654 77) echo 77 > "$at_status_file"; exit 77;;
19656 *) echo "$at_srcdir/lustar02.at:32: exit code was $at_status, expected 2"
19659 if $at_failed; then
19662 echo 1 > "$at_status_file"
19671 $at_times_p && times >"$at_times_file"
19672 ) 5>&1 2>&1 | eval $at_tee_pipe
19673 at_status=`cat "$at_status_file"`
19676 45 ) # 45. lustar03.at:21: ustar: splitting long names
19677 at_setup_line='lustar03.at:21'
19678 at_desc="ustar: splitting long names"
19679 $at_quiet $ECHO_N " 45: ustar: splitting long names $ECHO_C"
19681 test -f $XFAILFILE && at_xfail=yes
19682 echo "# -*- compilation -*-" >> "$at_group_log"
19684 echo "45. lustar03.at:21: testing ..."
19696 echo "$at_srcdir/lustar03.at:29:
19699 TEST_TAR_FORMAT=ustar
19700 export TEST_TAR_FORMAT
19701 TAR_OPTIONS=\"-H ustar\"
19706 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
19707 echo \"Create archive\"
19708 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
19709 echo \"List archive\"
19711 echo lustar03.at:29 >"$at_check_line_file"
19714 if test -n "$at_traceon"; then
19715 echo 'Not enabling shell tracing (command contains an embedded newline)'
19718 if test -n "$at_trace_this"; then
19722 TEST_TAR_FORMAT=ustar
19723 export TEST_TAR_FORMAT
19724 TAR_OPTIONS="-H ustar"
19729 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
19730 echo "Create archive"
19731 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
19732 echo "List archive"
19733 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
19735 grep '^ *+' "$at_stder1" >&2
19736 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19741 TEST_TAR_FORMAT=ustar
19742 export TEST_TAR_FORMAT
19743 TAR_OPTIONS="-H ustar"
19748 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
19749 echo "Create archive"
19750 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
19751 echo "List archive"
19752 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
19757 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19758 echo >>"$at_stdout"; echo "Create archive
19760 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/
19761 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
19762 " | $at_diff - "$at_stdout" || at_failed=:
19764 77) echo 77 > "$at_status_file"; exit 77;;
19766 *) echo "$at_srcdir/lustar03.at:29: exit code was $at_status, expected 0"
19769 if $at_failed; then
19772 echo 1 > "$at_status_file"
19781 $at_times_p && times >"$at_times_file"
19782 ) 5>&1 2>&1 | eval $at_tee_pipe
19783 at_status=`cat "$at_status_file"`
19786 46 ) # 46. multiv01.at:23: multivolume dumps from pipes
19787 at_setup_line='multiv01.at:23'
19788 at_desc="multivolume dumps from pipes"
19789 $at_quiet $ECHO_N " 46: multivolume dumps from pipes $ECHO_C"
19791 test -f $XFAILFILE && at_xfail=yes
19792 echo "# -*- compilation -*-" >> "$at_group_log"
19794 echo "46. multiv01.at:23: testing ..."
19799 # Fixme: should be configurable
19800 # TRUSS=truss -o /tmp/tr
19806 echo "$at_srcdir/multiv01.at:30:
19809 TEST_TAR_FORMAT=gnu
19810 export TEST_TAR_FORMAT
19811 TAR_OPTIONS=\"-H gnu\"
19816 genfile --length 7168 --file file1
19818 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
19819 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
19820 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19821 for count in 2 3 4 5 6 7 8 ; do
19822 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19826 if test \$TEST_TAR_FORMAT = pax; then
19832 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
19833 --listed-incremental=t.snar \\
19834 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19836 mkdir extract-dir-pipe
19837 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19838 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
19839 -C extract-dir-pipe -x --multi-volume \\
19840 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
19842 cmp file1 extract-dir-pipe/file1
19843 cmp file2 extract-dir-pipe/file2
19845 echo multiv01.at:30 >"$at_check_line_file"
19848 if test -n "$at_traceon"; then
19849 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
19852 if test -n "$at_trace_this"; then
19856 TEST_TAR_FORMAT=gnu
19857 export TEST_TAR_FORMAT
19858 TAR_OPTIONS="-H gnu"
19863 genfile --length 7168 --file file1
19865 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
19866 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
19867 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19868 for count in 2 3 4 5 6 7 8 ; do
19869 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19873 if test $TEST_TAR_FORMAT = pax; then
19879 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
19880 --listed-incremental=t.snar \
19881 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19883 mkdir extract-dir-pipe
19884 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19885 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
19886 -C extract-dir-pipe -x --multi-volume \
19887 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
19889 cmp file1 extract-dir-pipe/file1
19890 cmp file2 extract-dir-pipe/file2
19891 ) ) >"$at_stdout" 2>"$at_stder1"
19893 grep '^ *+' "$at_stder1" >&2
19894 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19899 TEST_TAR_FORMAT=gnu
19900 export TEST_TAR_FORMAT
19901 TAR_OPTIONS="-H gnu"
19906 genfile --length 7168 --file file1
19908 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
19909 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
19910 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19911 for count in 2 3 4 5 6 7 8 ; do
19912 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19916 if test $TEST_TAR_FORMAT = pax; then
19922 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
19923 --listed-incremental=t.snar \
19924 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19926 mkdir extract-dir-pipe
19927 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19928 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
19929 -C extract-dir-pipe -x --multi-volume \
19930 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
19932 cmp file1 extract-dir-pipe/file1
19933 cmp file2 extract-dir-pipe/file2
19934 ) ) >"$at_stdout" 2>"$at_stderr"
19939 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19940 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19942 77) echo 77 > "$at_status_file"; exit 77;;
19944 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
19947 if $at_failed; then
19950 echo 1 > "$at_status_file"
19956 echo "$at_srcdir/multiv01.at:30:
19959 TEST_TAR_FORMAT=oldgnu
19960 export TEST_TAR_FORMAT
19961 TAR_OPTIONS=\"-H oldgnu\"
19966 genfile --length 7168 --file file1
19968 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
19969 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
19970 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19971 for count in 2 3 4 5 6 7 8 ; do
19972 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19976 if test \$TEST_TAR_FORMAT = pax; then
19982 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
19983 --listed-incremental=t.snar \\
19984 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19986 mkdir extract-dir-pipe
19987 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19988 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
19989 -C extract-dir-pipe -x --multi-volume \\
19990 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
19992 cmp file1 extract-dir-pipe/file1
19993 cmp file2 extract-dir-pipe/file2
19995 echo multiv01.at:30 >"$at_check_line_file"
19998 if test -n "$at_traceon"; then
19999 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
20002 if test -n "$at_trace_this"; then
20006 TEST_TAR_FORMAT=oldgnu
20007 export TEST_TAR_FORMAT
20008 TAR_OPTIONS="-H oldgnu"
20013 genfile --length 7168 --file file1
20015 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20016 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20017 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20018 for count in 2 3 4 5 6 7 8 ; do
20019 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20023 if test $TEST_TAR_FORMAT = pax; then
20029 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20030 --listed-incremental=t.snar \
20031 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20033 mkdir extract-dir-pipe
20034 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20035 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20036 -C extract-dir-pipe -x --multi-volume \
20037 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20039 cmp file1 extract-dir-pipe/file1
20040 cmp file2 extract-dir-pipe/file2
20041 ) ) >"$at_stdout" 2>"$at_stder1"
20043 grep '^ *+' "$at_stder1" >&2
20044 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20049 TEST_TAR_FORMAT=oldgnu
20050 export TEST_TAR_FORMAT
20051 TAR_OPTIONS="-H oldgnu"
20056 genfile --length 7168 --file file1
20058 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20059 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20060 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20061 for count in 2 3 4 5 6 7 8 ; do
20062 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20066 if test $TEST_TAR_FORMAT = pax; then
20072 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20073 --listed-incremental=t.snar \
20074 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20076 mkdir extract-dir-pipe
20077 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20078 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20079 -C extract-dir-pipe -x --multi-volume \
20080 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20082 cmp file1 extract-dir-pipe/file1
20083 cmp file2 extract-dir-pipe/file2
20084 ) ) >"$at_stdout" 2>"$at_stderr"
20089 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20090 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
20092 77) echo 77 > "$at_status_file"; exit 77;;
20094 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
20097 if $at_failed; then
20100 echo 1 > "$at_status_file"
20106 echo "$at_srcdir/multiv01.at:30:
20109 TEST_TAR_FORMAT=pax
20110 export TEST_TAR_FORMAT
20111 TAR_OPTIONS=\"-H pax\"
20116 genfile --length 7168 --file file1
20118 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
20119 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
20120 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20121 for count in 2 3 4 5 6 7 8 ; do
20122 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
20126 if test \$TEST_TAR_FORMAT = pax; then
20132 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
20133 --listed-incremental=t.snar \\
20134 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20136 mkdir extract-dir-pipe
20137 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20138 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
20139 -C extract-dir-pipe -x --multi-volume \\
20140 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
20142 cmp file1 extract-dir-pipe/file1
20143 cmp file2 extract-dir-pipe/file2
20145 echo multiv01.at:30 >"$at_check_line_file"
20148 if test -n "$at_traceon"; then
20149 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
20152 if test -n "$at_trace_this"; then
20156 TEST_TAR_FORMAT=pax
20157 export TEST_TAR_FORMAT
20158 TAR_OPTIONS="-H pax"
20163 genfile --length 7168 --file file1
20165 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20166 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20167 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20168 for count in 2 3 4 5 6 7 8 ; do
20169 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20173 if test $TEST_TAR_FORMAT = pax; then
20179 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20180 --listed-incremental=t.snar \
20181 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20183 mkdir extract-dir-pipe
20184 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20185 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20186 -C extract-dir-pipe -x --multi-volume \
20187 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20189 cmp file1 extract-dir-pipe/file1
20190 cmp file2 extract-dir-pipe/file2
20191 ) ) >"$at_stdout" 2>"$at_stder1"
20193 grep '^ *+' "$at_stder1" >&2
20194 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20199 TEST_TAR_FORMAT=pax
20200 export TEST_TAR_FORMAT
20201 TAR_OPTIONS="-H pax"
20206 genfile --length 7168 --file file1
20208 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
20209 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
20210 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20211 for count in 2 3 4 5 6 7 8 ; do
20212 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
20216 if test $TEST_TAR_FORMAT = pax; then
20222 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
20223 --listed-incremental=t.snar \
20224 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
20226 mkdir extract-dir-pipe
20227 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
20228 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
20229 -C extract-dir-pipe -x --multi-volume \
20230 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
20232 cmp file1 extract-dir-pipe/file1
20233 cmp file2 extract-dir-pipe/file2
20234 ) ) >"$at_stdout" 2>"$at_stderr"
20239 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20240 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
20242 77) echo 77 > "$at_status_file"; exit 77;;
20244 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
20247 if $at_failed; then
20250 echo 1 > "$at_status_file"
20259 $at_times_p && times >"$at_times_file"
20260 ) 5>&1 2>&1 | eval $at_tee_pipe
20261 at_status=`cat "$at_status_file"`
20264 47 ) # 47. multiv02.at:28: skipping a straddling member
20265 at_setup_line='multiv02.at:28'
20266 at_desc="skipping a straddling member"
20267 $at_quiet $ECHO_N " 47: skipping a straddling member $ECHO_C"
20269 test -f $XFAILFILE && at_xfail=yes
20270 echo "# -*- compilation -*-" >> "$at_group_log"
20272 echo "47. multiv02.at:28: testing ..."
20280 echo "$at_srcdir/multiv02.at:31:
20283 TEST_TAR_FORMAT=gnu
20284 export TEST_TAR_FORMAT
20285 TAR_OPTIONS=\"-H gnu\"
20289 genfile --length 10240 --file en
20290 genfile --length 20000 --file to
20291 genfile --length 20000 --file tre
20292 genfile --length 10240 --file fire
20296 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20298 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20300 echo multiv02.at:31 >"$at_check_line_file"
20303 if test -n "$at_traceon"; then
20304 echo 'Not enabling shell tracing (command contains an embedded newline)'
20307 if test -n "$at_trace_this"; then
20311 TEST_TAR_FORMAT=gnu
20312 export TEST_TAR_FORMAT
20313 TAR_OPTIONS="-H gnu"
20317 genfile --length 10240 --file en
20318 genfile --length 20000 --file to
20319 genfile --length 20000 --file tre
20320 genfile --length 10240 --file fire
20324 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20326 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20327 ) ) >"$at_stdout" 2>"$at_stder1"
20329 grep '^ *+' "$at_stder1" >&2
20330 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20335 TEST_TAR_FORMAT=gnu
20336 export TEST_TAR_FORMAT
20337 TAR_OPTIONS="-H gnu"
20341 genfile --length 10240 --file en
20342 genfile --length 20000 --file to
20343 genfile --length 20000 --file tre
20344 genfile --length 10240 --file fire
20348 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20350 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20351 ) ) >"$at_stdout" 2>"$at_stderr"
20356 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20357 echo >>"$at_stdout"; echo "separator
20359 " | $at_diff - "$at_stdout" || at_failed=:
20361 77) echo 77 > "$at_status_file"; exit 77;;
20363 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20366 if $at_failed; then
20369 echo 1 > "$at_status_file"
20375 echo "$at_srcdir/multiv02.at:31:
20378 TEST_TAR_FORMAT=oldgnu
20379 export TEST_TAR_FORMAT
20380 TAR_OPTIONS=\"-H oldgnu\"
20384 genfile --length 10240 --file en
20385 genfile --length 20000 --file to
20386 genfile --length 20000 --file tre
20387 genfile --length 10240 --file fire
20391 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20393 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20395 echo multiv02.at:31 >"$at_check_line_file"
20398 if test -n "$at_traceon"; then
20399 echo 'Not enabling shell tracing (command contains an embedded newline)'
20402 if test -n "$at_trace_this"; then
20406 TEST_TAR_FORMAT=oldgnu
20407 export TEST_TAR_FORMAT
20408 TAR_OPTIONS="-H oldgnu"
20412 genfile --length 10240 --file en
20413 genfile --length 20000 --file to
20414 genfile --length 20000 --file tre
20415 genfile --length 10240 --file fire
20419 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20421 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20422 ) ) >"$at_stdout" 2>"$at_stder1"
20424 grep '^ *+' "$at_stder1" >&2
20425 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20430 TEST_TAR_FORMAT=oldgnu
20431 export TEST_TAR_FORMAT
20432 TAR_OPTIONS="-H oldgnu"
20436 genfile --length 10240 --file en
20437 genfile --length 20000 --file to
20438 genfile --length 20000 --file tre
20439 genfile --length 10240 --file fire
20443 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20445 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20446 ) ) >"$at_stdout" 2>"$at_stderr"
20451 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20452 echo >>"$at_stdout"; echo "separator
20454 " | $at_diff - "$at_stdout" || at_failed=:
20456 77) echo 77 > "$at_status_file"; exit 77;;
20458 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20461 if $at_failed; then
20464 echo 1 > "$at_status_file"
20470 echo "$at_srcdir/multiv02.at:31:
20473 TEST_TAR_FORMAT=pax
20474 export TEST_TAR_FORMAT
20475 TAR_OPTIONS=\"-H pax\"
20479 genfile --length 10240 --file en
20480 genfile --length 20000 --file to
20481 genfile --length 20000 --file tre
20482 genfile --length 10240 --file fire
20486 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20488 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20490 echo multiv02.at:31 >"$at_check_line_file"
20493 if test -n "$at_traceon"; then
20494 echo 'Not enabling shell tracing (command contains an embedded newline)'
20497 if test -n "$at_trace_this"; then
20501 TEST_TAR_FORMAT=pax
20502 export TEST_TAR_FORMAT
20503 TAR_OPTIONS="-H pax"
20507 genfile --length 10240 --file en
20508 genfile --length 20000 --file to
20509 genfile --length 20000 --file tre
20510 genfile --length 10240 --file fire
20514 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20516 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20517 ) ) >"$at_stdout" 2>"$at_stder1"
20519 grep '^ *+' "$at_stder1" >&2
20520 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20525 TEST_TAR_FORMAT=pax
20526 export TEST_TAR_FORMAT
20527 TAR_OPTIONS="-H pax"
20531 genfile --length 10240 --file en
20532 genfile --length 20000 --file to
20533 genfile --length 20000 --file tre
20534 genfile --length 10240 --file fire
20538 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
20540 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
20541 ) ) >"$at_stdout" 2>"$at_stderr"
20546 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20547 echo >>"$at_stdout"; echo "separator
20549 " | $at_diff - "$at_stdout" || at_failed=:
20551 77) echo 77 > "$at_status_file"; exit 77;;
20553 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
20556 if $at_failed; then
20559 echo 1 > "$at_status_file"
20568 $at_times_p && times >"$at_times_file"
20569 ) 5>&1 2>&1 | eval $at_tee_pipe
20570 at_status=`cat "$at_status_file"`
20573 48 ) # 48. multiv03.at:30: MV archive & long filenames
20574 at_setup_line='multiv03.at:30'
20575 at_desc="MV archive & long filenames"
20576 $at_quiet $ECHO_N " 48: MV archive & long filenames $ECHO_C"
20578 test -f $XFAILFILE && at_xfail=yes
20579 echo "# -*- compilation -*-" >> "$at_group_log"
20581 echo "48. multiv03.at:30: testing ..."
20589 echo "$at_srcdir/multiv03.at:33:
20592 TEST_TAR_FORMAT=gnu
20593 export TEST_TAR_FORMAT
20594 TAR_OPTIONS=\"-H gnu\"
20598 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
20599 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
20601 cat > ../experr <<EOF
20602 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
20603 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
20606 cat > ../expout <<EOF
20612 genfile --length 15360 --file \$AFILE
20616 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
20617 tar -tM -f arch.1 -f arch.2 || exit 1
20621 genfile --length 15360 --file \$BFILE
20622 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
20626 tar -M -x -f arch.1 -f arch.2 || exit 1
20629 echo multiv03.at:33 >"$at_check_line_file"
20632 if test -n "$at_traceon"; then
20633 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
20636 if test -n "$at_trace_this"; then
20640 TEST_TAR_FORMAT=gnu
20641 export TEST_TAR_FORMAT
20642 TAR_OPTIONS="-H gnu"
20646 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
20647 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
20649 cat > ../experr <<EOF
20650 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
20651 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
20654 cat > ../expout <<EOF
20660 genfile --length 15360 --file $AFILE
20664 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
20665 tar -tM -f arch.1 -f arch.2 || exit 1
20669 genfile --length 15360 --file $BFILE
20670 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
20674 tar -M -x -f arch.1 -f arch.2 || exit 1
20676 ) ) >"$at_stdout" 2>"$at_stder1"
20678 grep '^ *+' "$at_stder1" >&2
20679 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20684 TEST_TAR_FORMAT=gnu
20685 export TEST_TAR_FORMAT
20686 TAR_OPTIONS="-H gnu"
20690 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
20691 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
20693 cat > ../experr <<EOF
20694 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
20695 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
20698 cat > ../expout <<EOF
20704 genfile --length 15360 --file $AFILE
20708 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
20709 tar -tM -f arch.1 -f arch.2 || exit 1
20713 genfile --length 15360 --file $BFILE
20714 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
20718 tar -M -x -f arch.1 -f arch.2 || exit 1
20720 ) ) >"$at_stdout" 2>"$at_stderr"
20725 $at_diff experr "$at_stderr" || at_failed=:
20726 $at_diff expout "$at_stdout" || at_failed=:
20728 77) echo 77 > "$at_status_file"; exit 77;;
20730 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
20733 if $at_failed; then
20736 echo 1 > "$at_status_file"
20742 echo "$at_srcdir/multiv03.at:33:
20745 TEST_TAR_FORMAT=oldgnu
20746 export TEST_TAR_FORMAT
20747 TAR_OPTIONS=\"-H oldgnu\"
20751 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
20752 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
20754 cat > ../experr <<EOF
20755 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
20756 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
20759 cat > ../expout <<EOF
20765 genfile --length 15360 --file \$AFILE
20769 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
20770 tar -tM -f arch.1 -f arch.2 || exit 1
20774 genfile --length 15360 --file \$BFILE
20775 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
20779 tar -M -x -f arch.1 -f arch.2 || exit 1
20782 echo multiv03.at:33 >"$at_check_line_file"
20785 if test -n "$at_traceon"; then
20786 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
20789 if test -n "$at_trace_this"; then
20793 TEST_TAR_FORMAT=oldgnu
20794 export TEST_TAR_FORMAT
20795 TAR_OPTIONS="-H oldgnu"
20799 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
20800 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
20802 cat > ../experr <<EOF
20803 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
20804 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
20807 cat > ../expout <<EOF
20813 genfile --length 15360 --file $AFILE
20817 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
20818 tar -tM -f arch.1 -f arch.2 || exit 1
20822 genfile --length 15360 --file $BFILE
20823 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
20827 tar -M -x -f arch.1 -f arch.2 || exit 1
20829 ) ) >"$at_stdout" 2>"$at_stder1"
20831 grep '^ *+' "$at_stder1" >&2
20832 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20837 TEST_TAR_FORMAT=oldgnu
20838 export TEST_TAR_FORMAT
20839 TAR_OPTIONS="-H oldgnu"
20843 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
20844 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
20846 cat > ../experr <<EOF
20847 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
20848 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
20851 cat > ../expout <<EOF
20857 genfile --length 15360 --file $AFILE
20861 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
20862 tar -tM -f arch.1 -f arch.2 || exit 1
20866 genfile --length 15360 --file $BFILE
20867 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
20871 tar -M -x -f arch.1 -f arch.2 || exit 1
20873 ) ) >"$at_stdout" 2>"$at_stderr"
20878 $at_diff experr "$at_stderr" || at_failed=:
20879 $at_diff expout "$at_stdout" || at_failed=:
20881 77) echo 77 > "$at_status_file"; exit 77;;
20883 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
20886 if $at_failed; then
20889 echo 1 > "$at_status_file"
20898 $at_times_p && times >"$at_times_file"
20899 ) 5>&1 2>&1 | eval $at_tee_pipe
20900 at_status=`cat "$at_status_file"`
20903 49 ) # 49. multiv04.at:36: split directory members in a MV archive
20904 at_setup_line='multiv04.at:36'
20905 at_desc="split directory members in a MV archive"
20906 $at_quiet $ECHO_N " 49: split directory members in a MV archive $ECHO_C"
20908 test -f $XFAILFILE && at_xfail=yes
20909 echo "# -*- compilation -*-" >> "$at_group_log"
20911 echo "49. multiv04.at:36: testing ..."
20919 echo "$at_srcdir/multiv04.at:39:
20922 TEST_TAR_FORMAT=gnu
20923 export TEST_TAR_FORMAT
20924 TAR_OPTIONS=\"-H gnu\"
20930 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
20936 tar --listed-incremental=list -c -f archive.a directory
20940 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
20944 tar -MRt -f arc.1 -f arc.2)"
20945 echo multiv04.at:39 >"$at_check_line_file"
20948 if test -n "$at_traceon"; then
20949 echo 'Not enabling shell tracing (command contains an embedded newline)'
20952 if test -n "$at_trace_this"; then
20956 TEST_TAR_FORMAT=gnu
20957 export TEST_TAR_FORMAT
20958 TAR_OPTIONS="-H gnu"
20964 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
20970 tar --listed-incremental=list -c -f archive.a directory
20974 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
20978 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
20980 grep '^ *+' "$at_stder1" >&2
20981 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20986 TEST_TAR_FORMAT=gnu
20987 export TEST_TAR_FORMAT
20988 TAR_OPTIONS="-H gnu"
20994 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21000 tar --listed-incremental=list -c -f archive.a directory
21004 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21008 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
21013 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21014 echo >>"$at_stdout"; echo "directory/
21016 block 0: directory/
21017 block 35: ** Block of NULs **
21018 " | $at_diff - "$at_stdout" || at_failed=:
21020 77) echo 77 > "$at_status_file"; exit 77;;
21022 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
21025 if $at_failed; then
21028 echo 1 > "$at_status_file"
21034 echo "$at_srcdir/multiv04.at:39:
21037 TEST_TAR_FORMAT=oldgnu
21038 export TEST_TAR_FORMAT
21039 TAR_OPTIONS=\"-H oldgnu\"
21045 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
21051 tar --listed-incremental=list -c -f archive.a directory
21055 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21059 tar -MRt -f arc.1 -f arc.2)"
21060 echo multiv04.at:39 >"$at_check_line_file"
21063 if test -n "$at_traceon"; then
21064 echo 'Not enabling shell tracing (command contains an embedded newline)'
21067 if test -n "$at_trace_this"; then
21071 TEST_TAR_FORMAT=oldgnu
21072 export TEST_TAR_FORMAT
21073 TAR_OPTIONS="-H oldgnu"
21079 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21085 tar --listed-incremental=list -c -f archive.a directory
21089 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21093 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
21095 grep '^ *+' "$at_stder1" >&2
21096 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21101 TEST_TAR_FORMAT=oldgnu
21102 export TEST_TAR_FORMAT
21103 TAR_OPTIONS="-H oldgnu"
21109 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
21115 tar --listed-incremental=list -c -f archive.a directory
21119 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
21123 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
21128 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21129 echo >>"$at_stdout"; echo "directory/
21131 block 0: directory/
21132 block 35: ** Block of NULs **
21133 " | $at_diff - "$at_stdout" || at_failed=:
21135 77) echo 77 > "$at_status_file"; exit 77;;
21137 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
21140 if $at_failed; then
21143 echo 1 > "$at_status_file"
21152 $at_times_p && times >"$at_times_file"
21153 ) 5>&1 2>&1 | eval $at_tee_pipe
21154 at_status=`cat "$at_status_file"`
21157 50 ) # 50. multiv05.at:26: Restoring after an out of sync volume
21158 at_setup_line='multiv05.at:26'
21159 at_desc="Restoring after an out of sync volume"
21160 $at_quiet $ECHO_N " 50: Restoring after an out of sync volume $ECHO_C"
21162 test -f $XFAILFILE && at_xfail=yes
21163 echo "# -*- compilation -*-" >> "$at_group_log"
21165 echo "50. multiv05.at:26: testing ..."
21174 echo "$at_srcdir/multiv05.at:30:
21177 TEST_TAR_FORMAT=gnu
21178 export TEST_TAR_FORMAT
21179 TAR_OPTIONS=\"-H gnu\"
21185 genfile --length 250k --file jeden
21186 genfile --length 250k --file dwa
21187 genfile --length 250k --file trzy
21188 genfile --length 250k --file cztery
21189 genfile --length 250k --file piec
21190 genfile --length 250k --file szesc
21193 echo Creating archive
21194 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21197 mv jeden dwa trzy cztery piec szesc bak
21198 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21200 cmp bak/jeden jeden || exit 1
21202 cmp bak/dwa dwa || exit 1
21204 cmp bak/trzy trzy || exit 1
21205 echo Diffing cztery
21206 cmp bak/cztery cztery || exit 1
21208 cmp bak/piec piec || exit 1
21210 cmp bak/szesc szesc || exit 1
21212 echo multiv05.at:30 >"$at_check_line_file"
21215 if test -n "$at_traceon"; then
21216 echo 'Not enabling shell tracing (command contains an embedded newline)'
21219 if test -n "$at_trace_this"; then
21223 TEST_TAR_FORMAT=gnu
21224 export TEST_TAR_FORMAT
21225 TAR_OPTIONS="-H gnu"
21231 genfile --length 250k --file jeden
21232 genfile --length 250k --file dwa
21233 genfile --length 250k --file trzy
21234 genfile --length 250k --file cztery
21235 genfile --length 250k --file piec
21236 genfile --length 250k --file szesc
21239 echo Creating archive
21240 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21243 mv jeden dwa trzy cztery piec szesc bak
21244 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21246 cmp bak/jeden jeden || exit 1
21248 cmp bak/dwa dwa || exit 1
21250 cmp bak/trzy trzy || exit 1
21251 echo Diffing cztery
21252 cmp bak/cztery cztery || exit 1
21254 cmp bak/piec piec || exit 1
21256 cmp bak/szesc szesc || exit 1
21257 ) ) >"$at_stdout" 2>"$at_stder1"
21259 grep '^ *+' "$at_stder1" >&2
21260 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21265 TEST_TAR_FORMAT=gnu
21266 export TEST_TAR_FORMAT
21267 TAR_OPTIONS="-H gnu"
21273 genfile --length 250k --file jeden
21274 genfile --length 250k --file dwa
21275 genfile --length 250k --file trzy
21276 genfile --length 250k --file cztery
21277 genfile --length 250k --file piec
21278 genfile --length 250k --file szesc
21281 echo Creating archive
21282 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
21285 mv jeden dwa trzy cztery piec szesc bak
21286 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
21288 cmp bak/jeden jeden || exit 1
21290 cmp bak/dwa dwa || exit 1
21292 cmp bak/trzy trzy || exit 1
21293 echo Diffing cztery
21294 cmp bak/cztery cztery || exit 1
21296 cmp bak/piec piec || exit 1
21298 cmp bak/szesc szesc || exit 1
21299 ) ) >"$at_stdout" 2>"$at_stderr"
21304 echo >>"$at_stderr"; echo "tar: \`trzy' is not continued on this volume
21305 " | $at_diff - "$at_stderr" || at_failed=:
21306 echo >>"$at_stdout"; echo "Creating archive
21320 " | $at_diff - "$at_stdout" || at_failed=:
21322 77) echo 77 > "$at_status_file"; exit 77;;
21324 *) echo "$at_srcdir/multiv05.at:30: exit code was $at_status, expected 0"
21327 if $at_failed; then
21330 echo 1 > "$at_status_file"
21339 $at_times_p && times >"$at_times_file"
21340 ) 5>&1 2>&1 | eval $at_tee_pipe
21341 at_status=`cat "$at_status_file"`
21344 51 ) # 51. multiv06.at:27: Multivolumes with L=record_size
21345 at_setup_line='multiv06.at:27'
21346 at_desc="Multivolumes with L=record_size"
21347 $at_quiet $ECHO_N " 51: Multivolumes with L=record_size $ECHO_C"
21349 test -f $XFAILFILE && at_xfail=yes
21350 echo "# -*- compilation -*-" >> "$at_group_log"
21352 echo "51. multiv06.at:27: testing ..."
21360 echo "$at_srcdir/multiv06.at:30:
21363 TEST_TAR_FORMAT=gnu
21364 export TEST_TAR_FORMAT
21365 TAR_OPTIONS=\"-H gnu\"
21370 decho Creating file
21371 genfile --length 20139 --file file
21372 decho Creating archive
21373 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21374 decho Testing archive
21375 tar -t -M -farc.1 -farc.2 -farc.3)"
21376 echo multiv06.at:30 >"$at_check_line_file"
21379 if test -n "$at_traceon"; then
21380 echo 'Not enabling shell tracing (command contains an embedded newline)'
21383 if test -n "$at_trace_this"; then
21387 TEST_TAR_FORMAT=gnu
21388 export TEST_TAR_FORMAT
21389 TAR_OPTIONS="-H gnu"
21394 decho Creating file
21395 genfile --length 20139 --file file
21396 decho Creating archive
21397 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21398 decho Testing archive
21399 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
21401 grep '^ *+' "$at_stder1" >&2
21402 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21407 TEST_TAR_FORMAT=gnu
21408 export TEST_TAR_FORMAT
21409 TAR_OPTIONS="-H gnu"
21414 decho Creating file
21415 genfile --length 20139 --file file
21416 decho Creating archive
21417 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21418 decho Testing archive
21419 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
21424 echo >>"$at_stderr"; echo "Creating file
21427 " | $at_diff - "$at_stderr" || at_failed=:
21428 echo >>"$at_stdout"; echo "Creating file
21432 " | $at_diff - "$at_stdout" || at_failed=:
21434 77) echo 77 > "$at_status_file"; exit 77;;
21436 *) echo "$at_srcdir/multiv06.at:30: exit code was $at_status, expected 0"
21439 if $at_failed; then
21442 echo 1 > "$at_status_file"
21448 echo "$at_srcdir/multiv06.at:30:
21451 TEST_TAR_FORMAT=pax
21452 export TEST_TAR_FORMAT
21453 TAR_OPTIONS=\"-H pax\"
21458 decho Creating file
21459 genfile --length 20139 --file file
21460 decho Creating archive
21461 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21462 decho Testing archive
21463 tar -t -M -farc.1 -farc.2 -farc.3)"
21464 echo multiv06.at:30 >"$at_check_line_file"
21467 if test -n "$at_traceon"; then
21468 echo 'Not enabling shell tracing (command contains an embedded newline)'
21471 if test -n "$at_trace_this"; then
21475 TEST_TAR_FORMAT=pax
21476 export TEST_TAR_FORMAT
21477 TAR_OPTIONS="-H pax"
21482 decho Creating file
21483 genfile --length 20139 --file file
21484 decho Creating archive
21485 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21486 decho Testing archive
21487 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
21489 grep '^ *+' "$at_stder1" >&2
21490 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21495 TEST_TAR_FORMAT=pax
21496 export TEST_TAR_FORMAT
21497 TAR_OPTIONS="-H pax"
21502 decho Creating file
21503 genfile --length 20139 --file file
21504 decho Creating archive
21505 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
21506 decho Testing archive
21507 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
21512 echo >>"$at_stderr"; echo "Creating file
21515 " | $at_diff - "$at_stderr" || at_failed=:
21516 echo >>"$at_stdout"; echo "Creating file
21520 " | $at_diff - "$at_stdout" || at_failed=:
21522 77) echo 77 > "$at_status_file"; exit 77;;
21524 *) echo "$at_srcdir/multiv06.at:30: exit code was $at_status, expected 0"
21527 if $at_failed; then
21530 echo 1 > "$at_status_file"
21539 $at_times_p && times >"$at_times_file"
21540 ) 5>&1 2>&1 | eval $at_tee_pipe
21541 at_status=`cat "$at_status_file"`
21544 52 ) # 52. old.at:23: old archives
21545 at_setup_line='old.at:23'
21546 at_desc="old archives"
21547 $at_quiet $ECHO_N " 52: old archives $ECHO_C"
21549 echo "# -*- compilation -*-" >> "$at_group_log"
21551 echo "52. old.at:23: testing ..."
21558 echo "$at_srcdir/old.at:27:
21560 tar cfvo archive directory || exit 1
21563 echo old.at:27 >"$at_check_line_file"
21566 if test -n "$at_traceon"; then
21567 echo 'Not enabling shell tracing (command contains an embedded newline)'
21570 if test -n "$at_trace_this"; then
21573 tar cfvo archive directory || exit 1
21575 ) >"$at_stdout" 2>"$at_stder1"
21577 grep '^ *+' "$at_stder1" >&2
21578 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21582 tar cfvo archive directory || exit 1
21584 ) >"$at_stdout" 2>"$at_stderr"
21589 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21590 echo >>"$at_stdout"; echo "directory/
21592 " | $at_diff - "$at_stdout" || at_failed=:
21594 77) echo 77 > "$at_status_file"; exit 77;;
21596 *) echo "$at_srcdir/old.at:27: exit code was $at_status, expected 0"
21599 if $at_failed; then
21602 echo 1 > "$at_status_file"
21610 $at_times_p && times >"$at_times_file"
21611 ) 5>&1 2>&1 | eval $at_tee_pipe
21612 at_status=`cat "$at_status_file"`
21615 53 ) # 53. recurse.at:21: recurse
21616 at_setup_line='recurse.at:21'
21618 $at_quiet $ECHO_N " 53: recurse $ECHO_C"
21620 test -f $XFAILFILE && at_xfail=yes
21621 echo "# -*- compilation -*-" >> "$at_group_log"
21623 echo "53. recurse.at:21: testing ..."
21631 echo "$at_srcdir/recurse.at:24:
21635 export TEST_TAR_FORMAT
21636 TAR_OPTIONS=\"-H v7\"
21641 touch directory/file
21642 tar --create --file archive --no-recursion directory || exit 1
21645 echo recurse.at:24 >"$at_check_line_file"
21648 if test -n "$at_traceon"; then
21649 echo 'Not enabling shell tracing (command contains an embedded newline)'
21652 if test -n "$at_trace_this"; then
21657 export TEST_TAR_FORMAT
21658 TAR_OPTIONS="-H v7"
21663 touch directory/file
21664 tar --create --file archive --no-recursion directory || exit 1
21666 ) ) >"$at_stdout" 2>"$at_stder1"
21668 grep '^ *+' "$at_stder1" >&2
21669 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21675 export TEST_TAR_FORMAT
21676 TAR_OPTIONS="-H v7"
21681 touch directory/file
21682 tar --create --file archive --no-recursion directory || exit 1
21684 ) ) >"$at_stdout" 2>"$at_stderr"
21689 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21690 echo >>"$at_stdout"; echo "directory/
21691 " | $at_diff - "$at_stdout" || at_failed=:
21693 77) echo 77 > "$at_status_file"; exit 77;;
21695 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
21698 if $at_failed; then
21701 echo 1 > "$at_status_file"
21707 echo "$at_srcdir/recurse.at:24:
21710 TEST_TAR_FORMAT=oldgnu
21711 export TEST_TAR_FORMAT
21712 TAR_OPTIONS=\"-H oldgnu\"
21717 touch directory/file
21718 tar --create --file archive --no-recursion directory || exit 1
21721 echo recurse.at:24 >"$at_check_line_file"
21724 if test -n "$at_traceon"; then
21725 echo 'Not enabling shell tracing (command contains an embedded newline)'
21728 if test -n "$at_trace_this"; then
21732 TEST_TAR_FORMAT=oldgnu
21733 export TEST_TAR_FORMAT
21734 TAR_OPTIONS="-H oldgnu"
21739 touch directory/file
21740 tar --create --file archive --no-recursion directory || exit 1
21742 ) ) >"$at_stdout" 2>"$at_stder1"
21744 grep '^ *+' "$at_stder1" >&2
21745 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21750 TEST_TAR_FORMAT=oldgnu
21751 export TEST_TAR_FORMAT
21752 TAR_OPTIONS="-H oldgnu"
21757 touch directory/file
21758 tar --create --file archive --no-recursion directory || exit 1
21760 ) ) >"$at_stdout" 2>"$at_stderr"
21765 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21766 echo >>"$at_stdout"; echo "directory/
21767 " | $at_diff - "$at_stdout" || at_failed=:
21769 77) echo 77 > "$at_status_file"; exit 77;;
21771 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
21774 if $at_failed; then
21777 echo 1 > "$at_status_file"
21783 echo "$at_srcdir/recurse.at:24:
21786 TEST_TAR_FORMAT=ustar
21787 export TEST_TAR_FORMAT
21788 TAR_OPTIONS=\"-H ustar\"
21793 touch directory/file
21794 tar --create --file archive --no-recursion directory || exit 1
21797 echo recurse.at:24 >"$at_check_line_file"
21800 if test -n "$at_traceon"; then
21801 echo 'Not enabling shell tracing (command contains an embedded newline)'
21804 if test -n "$at_trace_this"; then
21808 TEST_TAR_FORMAT=ustar
21809 export TEST_TAR_FORMAT
21810 TAR_OPTIONS="-H ustar"
21815 touch directory/file
21816 tar --create --file archive --no-recursion directory || exit 1
21818 ) ) >"$at_stdout" 2>"$at_stder1"
21820 grep '^ *+' "$at_stder1" >&2
21821 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21826 TEST_TAR_FORMAT=ustar
21827 export TEST_TAR_FORMAT
21828 TAR_OPTIONS="-H ustar"
21833 touch directory/file
21834 tar --create --file archive --no-recursion directory || exit 1
21836 ) ) >"$at_stdout" 2>"$at_stderr"
21841 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21842 echo >>"$at_stdout"; echo "directory/
21843 " | $at_diff - "$at_stdout" || at_failed=:
21845 77) echo 77 > "$at_status_file"; exit 77;;
21847 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
21850 if $at_failed; then
21853 echo 1 > "$at_status_file"
21859 echo "$at_srcdir/recurse.at:24:
21862 TEST_TAR_FORMAT=posix
21863 export TEST_TAR_FORMAT
21864 TAR_OPTIONS=\"-H posix\"
21869 touch directory/file
21870 tar --create --file archive --no-recursion directory || exit 1
21873 echo recurse.at:24 >"$at_check_line_file"
21876 if test -n "$at_traceon"; then
21877 echo 'Not enabling shell tracing (command contains an embedded newline)'
21880 if test -n "$at_trace_this"; then
21884 TEST_TAR_FORMAT=posix
21885 export TEST_TAR_FORMAT
21886 TAR_OPTIONS="-H posix"
21891 touch directory/file
21892 tar --create --file archive --no-recursion directory || exit 1
21894 ) ) >"$at_stdout" 2>"$at_stder1"
21896 grep '^ *+' "$at_stder1" >&2
21897 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21902 TEST_TAR_FORMAT=posix
21903 export TEST_TAR_FORMAT
21904 TAR_OPTIONS="-H posix"
21909 touch directory/file
21910 tar --create --file archive --no-recursion directory || exit 1
21912 ) ) >"$at_stdout" 2>"$at_stderr"
21917 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21918 echo >>"$at_stdout"; echo "directory/
21919 " | $at_diff - "$at_stdout" || at_failed=:
21921 77) echo 77 > "$at_status_file"; exit 77;;
21923 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
21926 if $at_failed; then
21929 echo 1 > "$at_status_file"
21935 echo "$at_srcdir/recurse.at:24:
21938 TEST_TAR_FORMAT=gnu
21939 export TEST_TAR_FORMAT
21940 TAR_OPTIONS=\"-H gnu\"
21945 touch directory/file
21946 tar --create --file archive --no-recursion directory || exit 1
21949 echo recurse.at:24 >"$at_check_line_file"
21952 if test -n "$at_traceon"; then
21953 echo 'Not enabling shell tracing (command contains an embedded newline)'
21956 if test -n "$at_trace_this"; then
21960 TEST_TAR_FORMAT=gnu
21961 export TEST_TAR_FORMAT
21962 TAR_OPTIONS="-H gnu"
21967 touch directory/file
21968 tar --create --file archive --no-recursion directory || exit 1
21970 ) ) >"$at_stdout" 2>"$at_stder1"
21972 grep '^ *+' "$at_stder1" >&2
21973 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21978 TEST_TAR_FORMAT=gnu
21979 export TEST_TAR_FORMAT
21980 TAR_OPTIONS="-H gnu"
21985 touch directory/file
21986 tar --create --file archive --no-recursion directory || exit 1
21988 ) ) >"$at_stdout" 2>"$at_stderr"
21993 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21994 echo >>"$at_stdout"; echo "directory/
21995 " | $at_diff - "$at_stdout" || at_failed=:
21997 77) echo 77 > "$at_status_file"; exit 77;;
21999 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
22002 if $at_failed; then
22005 echo 1 > "$at_status_file"
22014 $at_times_p && times >"$at_times_file"
22015 ) 5>&1 2>&1 | eval $at_tee_pipe
22016 at_status=`cat "$at_status_file"`
22019 54 ) # 54. same-order01.at:26: working -C with --same-order
22020 at_setup_line='same-order01.at:26'
22021 at_desc="working -C with --same-order"
22022 $at_quiet $ECHO_N " 54: working -C with --same-order $ECHO_C"
22024 test -f $XFAILFILE && at_xfail=yes
22025 echo "# -*- compilation -*-" >> "$at_group_log"
22027 echo "54. same-order01.at:26: testing ..."
22035 echo "$at_srcdir/same-order01.at:29:
22039 export TEST_TAR_FORMAT
22040 TAR_OPTIONS=\"-H v7\"
22045 test -z "`sort < /dev/null 2>&1`" || exit 77
22048 genfile -l 1024 -f file1
22049 genfile -l 1024 -f file2
22050 tar cf archive file1 file2
22053 tar -xf archive --same-order -C directory || exit 1
22057 echo same-order01.at:29 >"$at_check_line_file"
22060 if test -n "$at_traceon"; then
22061 echo 'Not enabling shell tracing (command contains an embedded newline)'
22064 if test -n "$at_trace_this"; then
22069 export TEST_TAR_FORMAT
22070 TAR_OPTIONS="-H v7"
22075 test -z "`sort < /dev/null 2>&1`" || exit 77
22078 genfile -l 1024 -f file1
22079 genfile -l 1024 -f file2
22080 tar cf archive file1 file2
22083 tar -xf archive --same-order -C directory || exit 1
22086 ) ) >"$at_stdout" 2>"$at_stder1"
22088 grep '^ *+' "$at_stder1" >&2
22089 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22095 export TEST_TAR_FORMAT
22096 TAR_OPTIONS="-H v7"
22101 test -z "`sort < /dev/null 2>&1`" || exit 77
22104 genfile -l 1024 -f file1
22105 genfile -l 1024 -f file2
22106 tar cf archive file1 file2
22109 tar -xf archive --same-order -C directory || exit 1
22112 ) ) >"$at_stdout" 2>"$at_stderr"
22117 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22118 echo >>"$at_stdout"; echo "file1
22120 " | $at_diff - "$at_stdout" || at_failed=:
22122 77) echo 77 > "$at_status_file"; exit 77;;
22124 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22127 if $at_failed; then
22130 echo 1 > "$at_status_file"
22136 echo "$at_srcdir/same-order01.at:29:
22139 TEST_TAR_FORMAT=oldgnu
22140 export TEST_TAR_FORMAT
22141 TAR_OPTIONS=\"-H oldgnu\"
22146 test -z "`sort < /dev/null 2>&1`" || exit 77
22149 genfile -l 1024 -f file1
22150 genfile -l 1024 -f file2
22151 tar cf archive file1 file2
22154 tar -xf archive --same-order -C directory || exit 1
22158 echo same-order01.at:29 >"$at_check_line_file"
22161 if test -n "$at_traceon"; then
22162 echo 'Not enabling shell tracing (command contains an embedded newline)'
22165 if test -n "$at_trace_this"; then
22169 TEST_TAR_FORMAT=oldgnu
22170 export TEST_TAR_FORMAT
22171 TAR_OPTIONS="-H oldgnu"
22176 test -z "`sort < /dev/null 2>&1`" || exit 77
22179 genfile -l 1024 -f file1
22180 genfile -l 1024 -f file2
22181 tar cf archive file1 file2
22184 tar -xf archive --same-order -C directory || exit 1
22187 ) ) >"$at_stdout" 2>"$at_stder1"
22189 grep '^ *+' "$at_stder1" >&2
22190 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22195 TEST_TAR_FORMAT=oldgnu
22196 export TEST_TAR_FORMAT
22197 TAR_OPTIONS="-H oldgnu"
22202 test -z "`sort < /dev/null 2>&1`" || exit 77
22205 genfile -l 1024 -f file1
22206 genfile -l 1024 -f file2
22207 tar cf archive file1 file2
22210 tar -xf archive --same-order -C directory || exit 1
22213 ) ) >"$at_stdout" 2>"$at_stderr"
22218 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22219 echo >>"$at_stdout"; echo "file1
22221 " | $at_diff - "$at_stdout" || at_failed=:
22223 77) echo 77 > "$at_status_file"; exit 77;;
22225 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22228 if $at_failed; then
22231 echo 1 > "$at_status_file"
22237 echo "$at_srcdir/same-order01.at:29:
22240 TEST_TAR_FORMAT=ustar
22241 export TEST_TAR_FORMAT
22242 TAR_OPTIONS=\"-H ustar\"
22247 test -z "`sort < /dev/null 2>&1`" || exit 77
22250 genfile -l 1024 -f file1
22251 genfile -l 1024 -f file2
22252 tar cf archive file1 file2
22255 tar -xf archive --same-order -C directory || exit 1
22259 echo same-order01.at:29 >"$at_check_line_file"
22262 if test -n "$at_traceon"; then
22263 echo 'Not enabling shell tracing (command contains an embedded newline)'
22266 if test -n "$at_trace_this"; then
22270 TEST_TAR_FORMAT=ustar
22271 export TEST_TAR_FORMAT
22272 TAR_OPTIONS="-H ustar"
22277 test -z "`sort < /dev/null 2>&1`" || exit 77
22280 genfile -l 1024 -f file1
22281 genfile -l 1024 -f file2
22282 tar cf archive file1 file2
22285 tar -xf archive --same-order -C directory || exit 1
22288 ) ) >"$at_stdout" 2>"$at_stder1"
22290 grep '^ *+' "$at_stder1" >&2
22291 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22296 TEST_TAR_FORMAT=ustar
22297 export TEST_TAR_FORMAT
22298 TAR_OPTIONS="-H ustar"
22303 test -z "`sort < /dev/null 2>&1`" || exit 77
22306 genfile -l 1024 -f file1
22307 genfile -l 1024 -f file2
22308 tar cf archive file1 file2
22311 tar -xf archive --same-order -C directory || exit 1
22314 ) ) >"$at_stdout" 2>"$at_stderr"
22319 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22320 echo >>"$at_stdout"; echo "file1
22322 " | $at_diff - "$at_stdout" || at_failed=:
22324 77) echo 77 > "$at_status_file"; exit 77;;
22326 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22329 if $at_failed; then
22332 echo 1 > "$at_status_file"
22338 echo "$at_srcdir/same-order01.at:29:
22341 TEST_TAR_FORMAT=posix
22342 export TEST_TAR_FORMAT
22343 TAR_OPTIONS=\"-H posix\"
22348 test -z "`sort < /dev/null 2>&1`" || exit 77
22351 genfile -l 1024 -f file1
22352 genfile -l 1024 -f file2
22353 tar cf archive file1 file2
22356 tar -xf archive --same-order -C directory || exit 1
22360 echo same-order01.at:29 >"$at_check_line_file"
22363 if test -n "$at_traceon"; then
22364 echo 'Not enabling shell tracing (command contains an embedded newline)'
22367 if test -n "$at_trace_this"; then
22371 TEST_TAR_FORMAT=posix
22372 export TEST_TAR_FORMAT
22373 TAR_OPTIONS="-H posix"
22378 test -z "`sort < /dev/null 2>&1`" || exit 77
22381 genfile -l 1024 -f file1
22382 genfile -l 1024 -f file2
22383 tar cf archive file1 file2
22386 tar -xf archive --same-order -C directory || exit 1
22389 ) ) >"$at_stdout" 2>"$at_stder1"
22391 grep '^ *+' "$at_stder1" >&2
22392 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22397 TEST_TAR_FORMAT=posix
22398 export TEST_TAR_FORMAT
22399 TAR_OPTIONS="-H posix"
22404 test -z "`sort < /dev/null 2>&1`" || exit 77
22407 genfile -l 1024 -f file1
22408 genfile -l 1024 -f file2
22409 tar cf archive file1 file2
22412 tar -xf archive --same-order -C directory || exit 1
22415 ) ) >"$at_stdout" 2>"$at_stderr"
22420 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22421 echo >>"$at_stdout"; echo "file1
22423 " | $at_diff - "$at_stdout" || at_failed=:
22425 77) echo 77 > "$at_status_file"; exit 77;;
22427 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22430 if $at_failed; then
22433 echo 1 > "$at_status_file"
22439 echo "$at_srcdir/same-order01.at:29:
22442 TEST_TAR_FORMAT=gnu
22443 export TEST_TAR_FORMAT
22444 TAR_OPTIONS=\"-H gnu\"
22449 test -z "`sort < /dev/null 2>&1`" || exit 77
22452 genfile -l 1024 -f file1
22453 genfile -l 1024 -f file2
22454 tar cf archive file1 file2
22457 tar -xf archive --same-order -C directory || exit 1
22461 echo same-order01.at:29 >"$at_check_line_file"
22464 if test -n "$at_traceon"; then
22465 echo 'Not enabling shell tracing (command contains an embedded newline)'
22468 if test -n "$at_trace_this"; then
22472 TEST_TAR_FORMAT=gnu
22473 export TEST_TAR_FORMAT
22474 TAR_OPTIONS="-H gnu"
22479 test -z "`sort < /dev/null 2>&1`" || exit 77
22482 genfile -l 1024 -f file1
22483 genfile -l 1024 -f file2
22484 tar cf archive file1 file2
22487 tar -xf archive --same-order -C directory || exit 1
22490 ) ) >"$at_stdout" 2>"$at_stder1"
22492 grep '^ *+' "$at_stder1" >&2
22493 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22498 TEST_TAR_FORMAT=gnu
22499 export TEST_TAR_FORMAT
22500 TAR_OPTIONS="-H gnu"
22505 test -z "`sort < /dev/null 2>&1`" || exit 77
22508 genfile -l 1024 -f file1
22509 genfile -l 1024 -f file2
22510 tar cf archive file1 file2
22513 tar -xf archive --same-order -C directory || exit 1
22516 ) ) >"$at_stdout" 2>"$at_stderr"
22521 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22522 echo >>"$at_stdout"; echo "file1
22524 " | $at_diff - "$at_stdout" || at_failed=:
22526 77) echo 77 > "$at_status_file"; exit 77;;
22528 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
22531 if $at_failed; then
22534 echo 1 > "$at_status_file"
22543 $at_times_p && times >"$at_times_file"
22544 ) 5>&1 2>&1 | eval $at_tee_pipe
22545 at_status=`cat "$at_status_file"`
22548 55 ) # 55. same-order02.at:25: multiple -C options
22549 at_setup_line='same-order02.at:25'
22550 at_desc="multiple -C options"
22551 $at_quiet $ECHO_N " 55: multiple -C options $ECHO_C"
22553 test -f $XFAILFILE && at_xfail=yes
22554 echo "# -*- compilation -*-" >> "$at_group_log"
22556 echo "55. same-order02.at:25: testing ..."
22564 echo "$at_srcdir/same-order02.at:28:
22568 export TEST_TAR_FORMAT
22569 TAR_OPTIONS=\"-H v7\"
22573 genfile -l 1024 -f file1
22574 genfile -l 1024 -f file2
22575 tar cf archive file1 file2
22581 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
22587 echo same-order02.at:28 >"$at_check_line_file"
22590 if test -n "$at_traceon"; then
22591 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
22594 if test -n "$at_trace_this"; then
22599 export TEST_TAR_FORMAT
22600 TAR_OPTIONS="-H v7"
22604 genfile -l 1024 -f file1
22605 genfile -l 1024 -f file2
22606 tar cf archive file1 file2
22612 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22617 ) ) >"$at_stdout" 2>"$at_stder1"
22619 grep '^ *+' "$at_stder1" >&2
22620 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22626 export TEST_TAR_FORMAT
22627 TAR_OPTIONS="-H v7"
22631 genfile -l 1024 -f file1
22632 genfile -l 1024 -f file2
22633 tar cf archive file1 file2
22639 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22644 ) ) >"$at_stdout" 2>"$at_stderr"
22649 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22650 echo >>"$at_stdout"; echo "file1
22653 " | $at_diff - "$at_stdout" || at_failed=:
22655 77) echo 77 > "$at_status_file"; exit 77;;
22657 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
22660 if $at_failed; then
22663 echo 1 > "$at_status_file"
22669 echo "$at_srcdir/same-order02.at:28:
22672 TEST_TAR_FORMAT=oldgnu
22673 export TEST_TAR_FORMAT
22674 TAR_OPTIONS=\"-H oldgnu\"
22678 genfile -l 1024 -f file1
22679 genfile -l 1024 -f file2
22680 tar cf archive file1 file2
22686 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
22692 echo same-order02.at:28 >"$at_check_line_file"
22695 if test -n "$at_traceon"; then
22696 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
22699 if test -n "$at_trace_this"; then
22703 TEST_TAR_FORMAT=oldgnu
22704 export TEST_TAR_FORMAT
22705 TAR_OPTIONS="-H oldgnu"
22709 genfile -l 1024 -f file1
22710 genfile -l 1024 -f file2
22711 tar cf archive file1 file2
22717 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22722 ) ) >"$at_stdout" 2>"$at_stder1"
22724 grep '^ *+' "$at_stder1" >&2
22725 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22730 TEST_TAR_FORMAT=oldgnu
22731 export TEST_TAR_FORMAT
22732 TAR_OPTIONS="-H oldgnu"
22736 genfile -l 1024 -f file1
22737 genfile -l 1024 -f file2
22738 tar cf archive file1 file2
22744 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22749 ) ) >"$at_stdout" 2>"$at_stderr"
22754 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22755 echo >>"$at_stdout"; echo "file1
22758 " | $at_diff - "$at_stdout" || at_failed=:
22760 77) echo 77 > "$at_status_file"; exit 77;;
22762 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
22765 if $at_failed; then
22768 echo 1 > "$at_status_file"
22774 echo "$at_srcdir/same-order02.at:28:
22777 TEST_TAR_FORMAT=ustar
22778 export TEST_TAR_FORMAT
22779 TAR_OPTIONS=\"-H ustar\"
22783 genfile -l 1024 -f file1
22784 genfile -l 1024 -f file2
22785 tar cf archive file1 file2
22791 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
22797 echo same-order02.at:28 >"$at_check_line_file"
22800 if test -n "$at_traceon"; then
22801 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
22804 if test -n "$at_trace_this"; then
22808 TEST_TAR_FORMAT=ustar
22809 export TEST_TAR_FORMAT
22810 TAR_OPTIONS="-H ustar"
22814 genfile -l 1024 -f file1
22815 genfile -l 1024 -f file2
22816 tar cf archive file1 file2
22822 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22827 ) ) >"$at_stdout" 2>"$at_stder1"
22829 grep '^ *+' "$at_stder1" >&2
22830 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22835 TEST_TAR_FORMAT=ustar
22836 export TEST_TAR_FORMAT
22837 TAR_OPTIONS="-H ustar"
22841 genfile -l 1024 -f file1
22842 genfile -l 1024 -f file2
22843 tar cf archive file1 file2
22849 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22854 ) ) >"$at_stdout" 2>"$at_stderr"
22859 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22860 echo >>"$at_stdout"; echo "file1
22863 " | $at_diff - "$at_stdout" || at_failed=:
22865 77) echo 77 > "$at_status_file"; exit 77;;
22867 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
22870 if $at_failed; then
22873 echo 1 > "$at_status_file"
22879 echo "$at_srcdir/same-order02.at:28:
22882 TEST_TAR_FORMAT=posix
22883 export TEST_TAR_FORMAT
22884 TAR_OPTIONS=\"-H posix\"
22888 genfile -l 1024 -f file1
22889 genfile -l 1024 -f file2
22890 tar cf archive file1 file2
22896 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
22902 echo same-order02.at:28 >"$at_check_line_file"
22905 if test -n "$at_traceon"; then
22906 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
22909 if test -n "$at_trace_this"; then
22913 TEST_TAR_FORMAT=posix
22914 export TEST_TAR_FORMAT
22915 TAR_OPTIONS="-H posix"
22919 genfile -l 1024 -f file1
22920 genfile -l 1024 -f file2
22921 tar cf archive file1 file2
22927 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22932 ) ) >"$at_stdout" 2>"$at_stder1"
22934 grep '^ *+' "$at_stder1" >&2
22935 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22940 TEST_TAR_FORMAT=posix
22941 export TEST_TAR_FORMAT
22942 TAR_OPTIONS="-H posix"
22946 genfile -l 1024 -f file1
22947 genfile -l 1024 -f file2
22948 tar cf archive file1 file2
22954 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
22959 ) ) >"$at_stdout" 2>"$at_stderr"
22964 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22965 echo >>"$at_stdout"; echo "file1
22968 " | $at_diff - "$at_stdout" || at_failed=:
22970 77) echo 77 > "$at_status_file"; exit 77;;
22972 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
22975 if $at_failed; then
22978 echo 1 > "$at_status_file"
22984 echo "$at_srcdir/same-order02.at:28:
22987 TEST_TAR_FORMAT=gnu
22988 export TEST_TAR_FORMAT
22989 TAR_OPTIONS=\"-H gnu\"
22993 genfile -l 1024 -f file1
22994 genfile -l 1024 -f file2
22995 tar cf archive file1 file2
23001 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
23007 echo same-order02.at:28 >"$at_check_line_file"
23010 if test -n "$at_traceon"; then
23011 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
23014 if test -n "$at_trace_this"; then
23018 TEST_TAR_FORMAT=gnu
23019 export TEST_TAR_FORMAT
23020 TAR_OPTIONS="-H gnu"
23024 genfile -l 1024 -f file1
23025 genfile -l 1024 -f file2
23026 tar cf archive file1 file2
23032 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23037 ) ) >"$at_stdout" 2>"$at_stder1"
23039 grep '^ *+' "$at_stder1" >&2
23040 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23045 TEST_TAR_FORMAT=gnu
23046 export TEST_TAR_FORMAT
23047 TAR_OPTIONS="-H gnu"
23051 genfile -l 1024 -f file1
23052 genfile -l 1024 -f file2
23053 tar cf archive file1 file2
23059 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
23064 ) ) >"$at_stdout" 2>"$at_stderr"
23069 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23070 echo >>"$at_stdout"; echo "file1
23073 " | $at_diff - "$at_stdout" || at_failed=:
23075 77) echo 77 > "$at_status_file"; exit 77;;
23077 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
23080 if $at_failed; then
23083 echo 1 > "$at_status_file"
23092 $at_times_p && times >"$at_times_file"
23093 ) 5>&1 2>&1 | eval $at_tee_pipe
23094 at_status=`cat "$at_status_file"`
23097 56 ) # 56. shortrec.at:25: short records
23098 at_setup_line='shortrec.at:25'
23099 at_desc="short records"
23100 $at_quiet $ECHO_N " 56: short records $ECHO_C"
23102 test -f $XFAILFILE && at_xfail=yes
23103 echo "# -*- compilation -*-" >> "$at_group_log"
23105 echo "56. shortrec.at:25: testing ..."
23113 echo "$at_srcdir/shortrec.at:28:
23117 export TEST_TAR_FORMAT
23118 TAR_OPTIONS=\"-H v7\"
23123 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23124 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23125 tar -c -b 1 -f archive directory
23126 tar -t -f archive >/dev/null
23127 tar -t -f - < archive >/dev/null
23131 echo shortrec.at:28 >"$at_check_line_file"
23134 if test -n "$at_traceon"; then
23135 echo 'Not enabling shell tracing (command contains an embedded newline)'
23138 if test -n "$at_trace_this"; then
23143 export TEST_TAR_FORMAT
23144 TAR_OPTIONS="-H v7"
23149 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23150 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23151 tar -c -b 1 -f archive directory
23152 tar -t -f archive >/dev/null
23153 tar -t -f - < archive >/dev/null
23156 ) ) >"$at_stdout" 2>"$at_stder1"
23158 grep '^ *+' "$at_stder1" >&2
23159 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23165 export TEST_TAR_FORMAT
23166 TAR_OPTIONS="-H v7"
23171 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23172 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23173 tar -c -b 1 -f archive directory
23174 tar -t -f archive >/dev/null
23175 tar -t -f - < archive >/dev/null
23178 ) ) >"$at_stdout" 2>"$at_stderr"
23183 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23184 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23186 77) echo 77 > "$at_status_file"; exit 77;;
23188 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23191 if $at_failed; then
23194 echo 1 > "$at_status_file"
23200 echo "$at_srcdir/shortrec.at:28:
23203 TEST_TAR_FORMAT=oldgnu
23204 export TEST_TAR_FORMAT
23205 TAR_OPTIONS=\"-H oldgnu\"
23210 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23211 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23212 tar -c -b 1 -f archive directory
23213 tar -t -f archive >/dev/null
23214 tar -t -f - < archive >/dev/null
23218 echo shortrec.at:28 >"$at_check_line_file"
23221 if test -n "$at_traceon"; then
23222 echo 'Not enabling shell tracing (command contains an embedded newline)'
23225 if test -n "$at_trace_this"; then
23229 TEST_TAR_FORMAT=oldgnu
23230 export TEST_TAR_FORMAT
23231 TAR_OPTIONS="-H oldgnu"
23236 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23237 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23238 tar -c -b 1 -f archive directory
23239 tar -t -f archive >/dev/null
23240 tar -t -f - < archive >/dev/null
23243 ) ) >"$at_stdout" 2>"$at_stder1"
23245 grep '^ *+' "$at_stder1" >&2
23246 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23251 TEST_TAR_FORMAT=oldgnu
23252 export TEST_TAR_FORMAT
23253 TAR_OPTIONS="-H oldgnu"
23258 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23259 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23260 tar -c -b 1 -f archive directory
23261 tar -t -f archive >/dev/null
23262 tar -t -f - < archive >/dev/null
23265 ) ) >"$at_stdout" 2>"$at_stderr"
23270 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23271 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23273 77) echo 77 > "$at_status_file"; exit 77;;
23275 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23278 if $at_failed; then
23281 echo 1 > "$at_status_file"
23287 echo "$at_srcdir/shortrec.at:28:
23290 TEST_TAR_FORMAT=ustar
23291 export TEST_TAR_FORMAT
23292 TAR_OPTIONS=\"-H ustar\"
23297 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23298 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23299 tar -c -b 1 -f archive directory
23300 tar -t -f archive >/dev/null
23301 tar -t -f - < archive >/dev/null
23305 echo shortrec.at:28 >"$at_check_line_file"
23308 if test -n "$at_traceon"; then
23309 echo 'Not enabling shell tracing (command contains an embedded newline)'
23312 if test -n "$at_trace_this"; then
23316 TEST_TAR_FORMAT=ustar
23317 export TEST_TAR_FORMAT
23318 TAR_OPTIONS="-H ustar"
23323 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23324 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23325 tar -c -b 1 -f archive directory
23326 tar -t -f archive >/dev/null
23327 tar -t -f - < archive >/dev/null
23330 ) ) >"$at_stdout" 2>"$at_stder1"
23332 grep '^ *+' "$at_stder1" >&2
23333 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23338 TEST_TAR_FORMAT=ustar
23339 export TEST_TAR_FORMAT
23340 TAR_OPTIONS="-H ustar"
23345 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23346 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23347 tar -c -b 1 -f archive directory
23348 tar -t -f archive >/dev/null
23349 tar -t -f - < archive >/dev/null
23352 ) ) >"$at_stdout" 2>"$at_stderr"
23357 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23358 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23360 77) echo 77 > "$at_status_file"; exit 77;;
23362 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23365 if $at_failed; then
23368 echo 1 > "$at_status_file"
23374 echo "$at_srcdir/shortrec.at:28:
23377 TEST_TAR_FORMAT=posix
23378 export TEST_TAR_FORMAT
23379 TAR_OPTIONS=\"-H posix\"
23384 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23385 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23386 tar -c -b 1 -f archive directory
23387 tar -t -f archive >/dev/null
23388 tar -t -f - < archive >/dev/null
23392 echo shortrec.at:28 >"$at_check_line_file"
23395 if test -n "$at_traceon"; then
23396 echo 'Not enabling shell tracing (command contains an embedded newline)'
23399 if test -n "$at_trace_this"; then
23403 TEST_TAR_FORMAT=posix
23404 export TEST_TAR_FORMAT
23405 TAR_OPTIONS="-H posix"
23410 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23411 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23412 tar -c -b 1 -f archive directory
23413 tar -t -f archive >/dev/null
23414 tar -t -f - < archive >/dev/null
23417 ) ) >"$at_stdout" 2>"$at_stder1"
23419 grep '^ *+' "$at_stder1" >&2
23420 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23425 TEST_TAR_FORMAT=posix
23426 export TEST_TAR_FORMAT
23427 TAR_OPTIONS="-H posix"
23432 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23433 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23434 tar -c -b 1 -f archive directory
23435 tar -t -f archive >/dev/null
23436 tar -t -f - < archive >/dev/null
23439 ) ) >"$at_stdout" 2>"$at_stderr"
23444 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23445 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23447 77) echo 77 > "$at_status_file"; exit 77;;
23449 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23452 if $at_failed; then
23455 echo 1 > "$at_status_file"
23461 echo "$at_srcdir/shortrec.at:28:
23464 TEST_TAR_FORMAT=gnu
23465 export TEST_TAR_FORMAT
23466 TAR_OPTIONS=\"-H gnu\"
23471 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23472 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23473 tar -c -b 1 -f archive directory
23474 tar -t -f archive >/dev/null
23475 tar -t -f - < archive >/dev/null
23479 echo shortrec.at:28 >"$at_check_line_file"
23482 if test -n "$at_traceon"; then
23483 echo 'Not enabling shell tracing (command contains an embedded newline)'
23486 if test -n "$at_trace_this"; then
23490 TEST_TAR_FORMAT=gnu
23491 export TEST_TAR_FORMAT
23492 TAR_OPTIONS="-H gnu"
23497 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23498 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23499 tar -c -b 1 -f archive directory
23500 tar -t -f archive >/dev/null
23501 tar -t -f - < archive >/dev/null
23504 ) ) >"$at_stdout" 2>"$at_stder1"
23506 grep '^ *+' "$at_stder1" >&2
23507 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23512 TEST_TAR_FORMAT=gnu
23513 export TEST_TAR_FORMAT
23514 TAR_OPTIONS="-H gnu"
23519 (cd directory && touch a b c d e f g h i j k l m n o p q r)
23520 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
23521 tar -c -b 1 -f archive directory
23522 tar -t -f archive >/dev/null
23523 tar -t -f - < archive >/dev/null
23526 ) ) >"$at_stdout" 2>"$at_stderr"
23531 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23532 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
23534 77) echo 77 > "$at_status_file"; exit 77;;
23536 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
23539 if $at_failed; then
23542 echo 1 > "$at_status_file"
23551 $at_times_p && times >"$at_times_file"
23552 ) 5>&1 2>&1 | eval $at_tee_pipe
23553 at_status=`cat "$at_status_file"`
23556 57 ) # 57. sparse01.at:21: sparse files
23557 at_setup_line='sparse01.at:21'
23558 at_desc="sparse files"
23559 $at_quiet $ECHO_N " 57: sparse files $ECHO_C"
23561 test -f $XFAILFILE && at_xfail=yes
23562 echo "# -*- compilation -*-" >> "$at_group_log"
23564 echo "57. sparse01.at:21: testing ..."
23572 echo "$at_srcdir/sparse01.at:24:
23575 TEST_TAR_FORMAT=posix
23576 export TEST_TAR_FORMAT
23577 TAR_OPTIONS=\"-H posix\"
23581 genfile --length 1000 -f begin
23582 genfile --length 1000 -f end
23583 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23584 tar -c -f archive --sparse begin sparsefile end || exit 1
23590 tar Cxf directory archive
23591 genfile --stat=name,size sparsefile
23592 cmp sparsefile directory/sparsefile
23594 echo sparse01.at:24 >"$at_check_line_file"
23597 if test -n "$at_traceon"; then
23598 echo 'Not enabling shell tracing (command contains an embedded newline)'
23601 if test -n "$at_trace_this"; then
23605 TEST_TAR_FORMAT=posix
23606 export TEST_TAR_FORMAT
23607 TAR_OPTIONS="-H posix"
23611 genfile --length 1000 -f begin
23612 genfile --length 1000 -f end
23613 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23614 tar -c -f archive --sparse begin sparsefile end || exit 1
23620 tar Cxf directory archive
23621 genfile --stat=name,size sparsefile
23622 cmp sparsefile directory/sparsefile
23623 ) ) >"$at_stdout" 2>"$at_stder1"
23625 grep '^ *+' "$at_stder1" >&2
23626 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23631 TEST_TAR_FORMAT=posix
23632 export TEST_TAR_FORMAT
23633 TAR_OPTIONS="-H posix"
23637 genfile --length 1000 -f begin
23638 genfile --length 1000 -f end
23639 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23640 tar -c -f archive --sparse begin sparsefile end || exit 1
23646 tar Cxf directory archive
23647 genfile --stat=name,size sparsefile
23648 cmp sparsefile directory/sparsefile
23649 ) ) >"$at_stdout" 2>"$at_stderr"
23654 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23655 echo stdout:; tee stdout <"$at_stdout"
23657 77) echo 77 > "$at_status_file"; exit 77;;
23659 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
23662 if $at_failed; then
23665 echo 1 > "$at_status_file"
23671 echo "$at_srcdir/sparse01.at:24:
23674 TEST_TAR_FORMAT=gnu
23675 export TEST_TAR_FORMAT
23676 TAR_OPTIONS=\"-H gnu\"
23680 genfile --length 1000 -f begin
23681 genfile --length 1000 -f end
23682 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23683 tar -c -f archive --sparse begin sparsefile end || exit 1
23689 tar Cxf directory archive
23690 genfile --stat=name,size sparsefile
23691 cmp sparsefile directory/sparsefile
23693 echo sparse01.at:24 >"$at_check_line_file"
23696 if test -n "$at_traceon"; then
23697 echo 'Not enabling shell tracing (command contains an embedded newline)'
23700 if test -n "$at_trace_this"; then
23704 TEST_TAR_FORMAT=gnu
23705 export TEST_TAR_FORMAT
23706 TAR_OPTIONS="-H gnu"
23710 genfile --length 1000 -f begin
23711 genfile --length 1000 -f end
23712 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23713 tar -c -f archive --sparse begin sparsefile end || exit 1
23719 tar Cxf directory archive
23720 genfile --stat=name,size sparsefile
23721 cmp sparsefile directory/sparsefile
23722 ) ) >"$at_stdout" 2>"$at_stder1"
23724 grep '^ *+' "$at_stder1" >&2
23725 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23730 TEST_TAR_FORMAT=gnu
23731 export TEST_TAR_FORMAT
23732 TAR_OPTIONS="-H gnu"
23736 genfile --length 1000 -f begin
23737 genfile --length 1000 -f end
23738 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23739 tar -c -f archive --sparse begin sparsefile end || exit 1
23745 tar Cxf directory archive
23746 genfile --stat=name,size sparsefile
23747 cmp sparsefile directory/sparsefile
23748 ) ) >"$at_stdout" 2>"$at_stderr"
23753 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23754 echo stdout:; tee stdout <"$at_stdout"
23756 77) echo 77 > "$at_status_file"; exit 77;;
23758 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
23761 if $at_failed; then
23764 echo 1 > "$at_status_file"
23770 echo "$at_srcdir/sparse01.at:24:
23773 TEST_TAR_FORMAT=oldgnu
23774 export TEST_TAR_FORMAT
23775 TAR_OPTIONS=\"-H oldgnu\"
23779 genfile --length 1000 -f begin
23780 genfile --length 1000 -f end
23781 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23782 tar -c -f archive --sparse begin sparsefile end || exit 1
23788 tar Cxf directory archive
23789 genfile --stat=name,size sparsefile
23790 cmp sparsefile directory/sparsefile
23792 echo sparse01.at:24 >"$at_check_line_file"
23795 if test -n "$at_traceon"; then
23796 echo 'Not enabling shell tracing (command contains an embedded newline)'
23799 if test -n "$at_trace_this"; then
23803 TEST_TAR_FORMAT=oldgnu
23804 export TEST_TAR_FORMAT
23805 TAR_OPTIONS="-H oldgnu"
23809 genfile --length 1000 -f begin
23810 genfile --length 1000 -f end
23811 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23812 tar -c -f archive --sparse begin sparsefile end || exit 1
23818 tar Cxf directory archive
23819 genfile --stat=name,size sparsefile
23820 cmp sparsefile directory/sparsefile
23821 ) ) >"$at_stdout" 2>"$at_stder1"
23823 grep '^ *+' "$at_stder1" >&2
23824 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23829 TEST_TAR_FORMAT=oldgnu
23830 export TEST_TAR_FORMAT
23831 TAR_OPTIONS="-H oldgnu"
23835 genfile --length 1000 -f begin
23836 genfile --length 1000 -f end
23837 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23838 tar -c -f archive --sparse begin sparsefile end || exit 1
23844 tar Cxf directory archive
23845 genfile --stat=name,size sparsefile
23846 cmp sparsefile directory/sparsefile
23847 ) ) >"$at_stdout" 2>"$at_stderr"
23852 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23853 echo stdout:; tee stdout <"$at_stdout"
23855 77) echo 77 > "$at_status_file"; exit 77;;
23857 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
23860 if $at_failed; then
23863 echo 1 > "$at_status_file"
23872 cat >stdout.re <<'_ATEOF'
23874 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
23875 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
23876 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
23878 sparsefile 10344448
23881 awk '{print NR " " $0}' stdout > $$.1
23882 awk '{print NR " " $0}' stdout.re | join - $$.1 |
23883 while read NUM RE LINE
23885 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
23890 $at_times_p && times >"$at_times_file"
23891 ) 5>&1 2>&1 | eval $at_tee_pipe
23892 at_status=`cat "$at_status_file"`
23895 58 ) # 58. sparse02.at:21: extracting sparse file over a pipe
23896 at_setup_line='sparse02.at:21'
23897 at_desc="extracting sparse file over a pipe"
23898 $at_quiet $ECHO_N " 58: extracting sparse file over a pipe $ECHO_C"
23900 test -f $XFAILFILE && at_xfail=yes
23901 echo "# -*- compilation -*-" >> "$at_group_log"
23903 echo "58. sparse02.at:21: testing ..."
23908 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
23909 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
23910 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
23915 echo "$at_srcdir/sparse02.at:28:
23918 TEST_TAR_FORMAT=posix
23919 export TEST_TAR_FORMAT
23920 TAR_OPTIONS=\"-H posix\"
23924 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23925 tar -c -f archive --sparse sparsefile || exit 1
23928 tar xfO archive | cat - > sparsecopy || exit 1
23929 cmp sparsefile sparsecopy
23931 echo sparse02.at:28 >"$at_check_line_file"
23934 if test -n "$at_traceon"; then
23935 echo 'Not enabling shell tracing (command contains an embedded newline)'
23938 if test -n "$at_trace_this"; then
23942 TEST_TAR_FORMAT=posix
23943 export TEST_TAR_FORMAT
23944 TAR_OPTIONS="-H posix"
23948 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23949 tar -c -f archive --sparse sparsefile || exit 1
23952 tar xfO archive | cat - > sparsecopy || exit 1
23953 cmp sparsefile sparsecopy
23954 ) ) >"$at_stdout" 2>"$at_stder1"
23956 grep '^ *+' "$at_stder1" >&2
23957 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23962 TEST_TAR_FORMAT=posix
23963 export TEST_TAR_FORMAT
23964 TAR_OPTIONS="-H posix"
23968 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
23969 tar -c -f archive --sparse sparsefile || exit 1
23972 tar xfO archive | cat - > sparsecopy || exit 1
23973 cmp sparsefile sparsecopy
23974 ) ) >"$at_stdout" 2>"$at_stderr"
23979 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23980 echo >>"$at_stdout"; echo "separator
23981 " | $at_diff - "$at_stdout" || at_failed=:
23983 77) echo 77 > "$at_status_file"; exit 77;;
23985 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
23988 if $at_failed; then
23991 echo 1 > "$at_status_file"
23997 echo "$at_srcdir/sparse02.at:28:
24000 TEST_TAR_FORMAT=gnu
24001 export TEST_TAR_FORMAT
24002 TAR_OPTIONS=\"-H gnu\"
24006 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24007 tar -c -f archive --sparse sparsefile || exit 1
24010 tar xfO archive | cat - > sparsecopy || exit 1
24011 cmp sparsefile sparsecopy
24013 echo sparse02.at:28 >"$at_check_line_file"
24016 if test -n "$at_traceon"; then
24017 echo 'Not enabling shell tracing (command contains an embedded newline)'
24020 if test -n "$at_trace_this"; then
24024 TEST_TAR_FORMAT=gnu
24025 export TEST_TAR_FORMAT
24026 TAR_OPTIONS="-H gnu"
24030 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24031 tar -c -f archive --sparse sparsefile || exit 1
24034 tar xfO archive | cat - > sparsecopy || exit 1
24035 cmp sparsefile sparsecopy
24036 ) ) >"$at_stdout" 2>"$at_stder1"
24038 grep '^ *+' "$at_stder1" >&2
24039 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24044 TEST_TAR_FORMAT=gnu
24045 export TEST_TAR_FORMAT
24046 TAR_OPTIONS="-H gnu"
24050 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24051 tar -c -f archive --sparse sparsefile || exit 1
24054 tar xfO archive | cat - > sparsecopy || exit 1
24055 cmp sparsefile sparsecopy
24056 ) ) >"$at_stdout" 2>"$at_stderr"
24061 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24062 echo >>"$at_stdout"; echo "separator
24063 " | $at_diff - "$at_stdout" || at_failed=:
24065 77) echo 77 > "$at_status_file"; exit 77;;
24067 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
24070 if $at_failed; then
24073 echo 1 > "$at_status_file"
24079 echo "$at_srcdir/sparse02.at:28:
24082 TEST_TAR_FORMAT=oldgnu
24083 export TEST_TAR_FORMAT
24084 TAR_OPTIONS=\"-H oldgnu\"
24088 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24089 tar -c -f archive --sparse sparsefile || exit 1
24092 tar xfO archive | cat - > sparsecopy || exit 1
24093 cmp sparsefile sparsecopy
24095 echo sparse02.at:28 >"$at_check_line_file"
24098 if test -n "$at_traceon"; then
24099 echo 'Not enabling shell tracing (command contains an embedded newline)'
24102 if test -n "$at_trace_this"; then
24106 TEST_TAR_FORMAT=oldgnu
24107 export TEST_TAR_FORMAT
24108 TAR_OPTIONS="-H oldgnu"
24112 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24113 tar -c -f archive --sparse sparsefile || exit 1
24116 tar xfO archive | cat - > sparsecopy || exit 1
24117 cmp sparsefile sparsecopy
24118 ) ) >"$at_stdout" 2>"$at_stder1"
24120 grep '^ *+' "$at_stder1" >&2
24121 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24126 TEST_TAR_FORMAT=oldgnu
24127 export TEST_TAR_FORMAT
24128 TAR_OPTIONS="-H oldgnu"
24132 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
24133 tar -c -f archive --sparse sparsefile || exit 1
24136 tar xfO archive | cat - > sparsecopy || exit 1
24137 cmp sparsefile sparsecopy
24138 ) ) >"$at_stdout" 2>"$at_stderr"
24143 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24144 echo >>"$at_stdout"; echo "separator
24145 " | $at_diff - "$at_stdout" || at_failed=:
24147 77) echo 77 > "$at_status_file"; exit 77;;
24149 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
24152 if $at_failed; then
24155 echo 1 > "$at_status_file"
24164 $at_times_p && times >"$at_times_file"
24165 ) 5>&1 2>&1 | eval $at_tee_pipe
24166 at_status=`cat "$at_status_file"`
24169 59 ) # 59. sparse03.at:21: storing sparse files > 8G
24170 at_setup_line='sparse03.at:21'
24171 at_desc="storing sparse files > 8G"
24172 $at_quiet $ECHO_N " 59: storing sparse files > 8G $ECHO_C"
24174 test -f $XFAILFILE && at_xfail=yes
24175 echo "# -*- compilation -*-" >> "$at_group_log"
24177 echo "59. sparse03.at:21: testing ..."
24182 # Tar 1.15.1 incorrectly computed sparse member size if the extended
24183 # PAX header contained size keyword.
24184 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
24185 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
24190 echo "$at_srcdir/sparse03.at:29:
24193 TEST_TAR_FORMAT=posix
24194 export TEST_TAR_FORMAT
24195 TAR_OPTIONS=\"-H posix\"
24199 genfile --length 1000 --file begin
24200 genfile --length 1000 --file end
24201 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24202 tar -c -f archive --sparse begin sparsefile end || exit 1
24208 tar Cxf directory archive
24209 genfile --stat=name,size sparsefile
24210 cmp sparsefile directory/sparsefile
24212 echo sparse03.at:29 >"$at_check_line_file"
24215 if test -n "$at_traceon"; then
24216 echo 'Not enabling shell tracing (command contains an embedded newline)'
24219 if test -n "$at_trace_this"; then
24223 TEST_TAR_FORMAT=posix
24224 export TEST_TAR_FORMAT
24225 TAR_OPTIONS="-H posix"
24229 genfile --length 1000 --file begin
24230 genfile --length 1000 --file end
24231 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24232 tar -c -f archive --sparse begin sparsefile end || exit 1
24238 tar Cxf directory archive
24239 genfile --stat=name,size sparsefile
24240 cmp sparsefile directory/sparsefile
24241 ) ) >"$at_stdout" 2>"$at_stder1"
24243 grep '^ *+' "$at_stder1" >&2
24244 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24249 TEST_TAR_FORMAT=posix
24250 export TEST_TAR_FORMAT
24251 TAR_OPTIONS="-H posix"
24255 genfile --length 1000 --file begin
24256 genfile --length 1000 --file end
24257 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
24258 tar -c -f archive --sparse begin sparsefile end || exit 1
24264 tar Cxf directory archive
24265 genfile --stat=name,size sparsefile
24266 cmp sparsefile directory/sparsefile
24267 ) ) >"$at_stdout" 2>"$at_stderr"
24272 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24273 echo stdout:; tee stdout <"$at_stdout"
24275 77) echo 77 > "$at_status_file"; exit 77;;
24277 *) echo "$at_srcdir/sparse03.at:29: exit code was $at_status, expected 0"
24280 if $at_failed; then
24283 echo 1 > "$at_status_file"
24292 cat >stdout.re <<'_ATEOF'
24294 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
24295 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
24296 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
24298 sparsefile 8589935104
24301 awk '{print NR " " $0}' stdout > $$.1
24302 awk '{print NR " " $0}' stdout.re | join - $$.1 |
24303 while read NUM RE LINE
24305 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
24310 $at_times_p && times >"$at_times_file"
24311 ) 5>&1 2>&1 | eval $at_tee_pipe
24312 at_status=`cat "$at_status_file"`
24315 60 ) # 60. sparsemv.at:21: sparse files in MV archives
24316 at_setup_line='sparsemv.at:21'
24317 at_desc="sparse files in MV archives"
24318 $at_quiet $ECHO_N " 60: sparse files in MV archives $ECHO_C"
24320 test -f $XFAILFILE && at_xfail=yes
24321 echo "# -*- compilation -*-" >> "$at_group_log"
24323 echo "60. sparsemv.at:21: testing ..."
24328 # Check if sparse files are correctly split between GNU multi-volume
24330 # There are two cases: the file can be split within an empty (null) block,
24331 # or within a data block. Since null blocks are not archived, the first
24332 # case means the file is split between two consecutive data blocks.
24338 echo "$at_srcdir/sparsemv.at:31:
24341 TEST_TAR_FORMAT=gnu
24342 export TEST_TAR_FORMAT
24343 TAR_OPTIONS=\"-H gnu\"
24348 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24349 echo \"Pass 1: Split between data blocks\"
24350 echo \"Create archive\"
24351 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24352 echo \"Test archive\"
24353 tar --record-size=512 -t -M -f arc.1 -f arc.2
24354 echo \"Compare archive\"
24355 tar --record-size=512 -d -M -f arc.1 -f arc.2
24357 echo \"Pass 2: Split within a data block\"
24358 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24359 echo \"Create archive\"
24360 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24361 echo \"Test archive\"
24362 tar --record-size=512 -t -M -f arc.1 -f arc.2
24363 echo \"Compare archive\"
24364 tar --record-size=512 -d -M -f arc.1 -f arc.2
24366 echo sparsemv.at:31 >"$at_check_line_file"
24369 if test -n "$at_traceon"; then
24370 echo 'Not enabling shell tracing (command contains an embedded newline)'
24373 if test -n "$at_trace_this"; then
24377 TEST_TAR_FORMAT=gnu
24378 export TEST_TAR_FORMAT
24379 TAR_OPTIONS="-H gnu"
24384 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24385 echo "Pass 1: Split between data blocks"
24386 echo "Create archive"
24387 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24388 echo "Test archive"
24389 tar --record-size=512 -t -M -f arc.1 -f arc.2
24390 echo "Compare archive"
24391 tar --record-size=512 -d -M -f arc.1 -f arc.2
24393 echo "Pass 2: Split within a data block"
24394 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24395 echo "Create archive"
24396 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24397 echo "Test archive"
24398 tar --record-size=512 -t -M -f arc.1 -f arc.2
24399 echo "Compare archive"
24400 tar --record-size=512 -d -M -f arc.1 -f arc.2
24401 ) ) >"$at_stdout" 2>"$at_stder1"
24403 grep '^ *+' "$at_stder1" >&2
24404 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24409 TEST_TAR_FORMAT=gnu
24410 export TEST_TAR_FORMAT
24411 TAR_OPTIONS="-H gnu"
24416 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24417 echo "Pass 1: Split between data blocks"
24418 echo "Create archive"
24419 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24420 echo "Test archive"
24421 tar --record-size=512 -t -M -f arc.1 -f arc.2
24422 echo "Compare archive"
24423 tar --record-size=512 -d -M -f arc.1 -f arc.2
24425 echo "Pass 2: Split within a data block"
24426 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24427 echo "Create archive"
24428 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24429 echo "Test archive"
24430 tar --record-size=512 -t -M -f arc.1 -f arc.2
24431 echo "Compare archive"
24432 tar --record-size=512 -d -M -f arc.1 -f arc.2
24433 ) ) >"$at_stdout" 2>"$at_stderr"
24438 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24439 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
24444 Pass 2: Split within a data block
24449 " | $at_diff - "$at_stdout" || at_failed=:
24451 77) echo 77 > "$at_status_file"; exit 77;;
24453 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
24456 if $at_failed; then
24459 echo 1 > "$at_status_file"
24465 echo "$at_srcdir/sparsemv.at:31:
24468 TEST_TAR_FORMAT=oldgnu
24469 export TEST_TAR_FORMAT
24470 TAR_OPTIONS=\"-H oldgnu\"
24475 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24476 echo \"Pass 1: Split between data blocks\"
24477 echo \"Create archive\"
24478 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24479 echo \"Test archive\"
24480 tar --record-size=512 -t -M -f arc.1 -f arc.2
24481 echo \"Compare archive\"
24482 tar --record-size=512 -d -M -f arc.1 -f arc.2
24484 echo \"Pass 2: Split within a data block\"
24485 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24486 echo \"Create archive\"
24487 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24488 echo \"Test archive\"
24489 tar --record-size=512 -t -M -f arc.1 -f arc.2
24490 echo \"Compare archive\"
24491 tar --record-size=512 -d -M -f arc.1 -f arc.2
24493 echo sparsemv.at:31 >"$at_check_line_file"
24496 if test -n "$at_traceon"; then
24497 echo 'Not enabling shell tracing (command contains an embedded newline)'
24500 if test -n "$at_trace_this"; then
24504 TEST_TAR_FORMAT=oldgnu
24505 export TEST_TAR_FORMAT
24506 TAR_OPTIONS="-H oldgnu"
24511 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24512 echo "Pass 1: Split between data blocks"
24513 echo "Create archive"
24514 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24515 echo "Test archive"
24516 tar --record-size=512 -t -M -f arc.1 -f arc.2
24517 echo "Compare archive"
24518 tar --record-size=512 -d -M -f arc.1 -f arc.2
24520 echo "Pass 2: Split within a data block"
24521 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24522 echo "Create archive"
24523 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24524 echo "Test archive"
24525 tar --record-size=512 -t -M -f arc.1 -f arc.2
24526 echo "Compare archive"
24527 tar --record-size=512 -d -M -f arc.1 -f arc.2
24528 ) ) >"$at_stdout" 2>"$at_stder1"
24530 grep '^ *+' "$at_stder1" >&2
24531 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24536 TEST_TAR_FORMAT=oldgnu
24537 export TEST_TAR_FORMAT
24538 TAR_OPTIONS="-H oldgnu"
24543 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24544 echo "Pass 1: Split between data blocks"
24545 echo "Create archive"
24546 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24547 echo "Test archive"
24548 tar --record-size=512 -t -M -f arc.1 -f arc.2
24549 echo "Compare archive"
24550 tar --record-size=512 -d -M -f arc.1 -f arc.2
24552 echo "Pass 2: Split within a data block"
24553 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24554 echo "Create archive"
24555 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
24556 echo "Test archive"
24557 tar --record-size=512 -t -M -f arc.1 -f arc.2
24558 echo "Compare archive"
24559 tar --record-size=512 -d -M -f arc.1 -f arc.2
24560 ) ) >"$at_stdout" 2>"$at_stderr"
24565 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24566 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
24571 Pass 2: Split within a data block
24576 " | $at_diff - "$at_stdout" || at_failed=:
24578 77) echo 77 > "$at_status_file"; exit 77;;
24580 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
24583 if $at_failed; then
24586 echo 1 > "$at_status_file"
24595 $at_times_p && times >"$at_times_file"
24596 ) 5>&1 2>&1 | eval $at_tee_pipe
24597 at_status=`cat "$at_status_file"`
24600 61 ) # 61. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
24601 at_setup_line='spmvp00.at:21'
24602 at_desc="sparse files in PAX MV archives, v.0.0"
24603 $at_quiet $ECHO_N " 61: sparse files in PAX MV archives, v.0.0 $ECHO_C"
24605 test -f $XFAILFILE && at_xfail=yes
24606 echo "# -*- compilation -*-" >> "$at_group_log"
24608 echo "61. spmvp00.at:21: testing ..."
24617 echo "$at_srcdir/spmvp00.at:24:
24620 TEST_TAR_FORMAT=pax
24621 export TEST_TAR_FORMAT
24622 TAR_OPTIONS=\"-H pax\"
24627 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
24628 echo \"Pass 1: Split between data blocks\"
24629 echo \"Create archive\"
24630 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24631 echo \"Test archive\"
24632 tar -t -M -f arc.1 -f arc.2 -f arc.3
24633 echo \"Compare archive\"
24634 tar -d -M -f arc.1 -f arc.2 -f arc.3
24636 echo \"Pass 2: Split within a data block\"
24637 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
24638 echo \"Create archive\"
24639 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24640 echo \"Test archive\"
24641 tar -t -M -f arc.1 -f arc.2 -f arc.3
24642 echo \"Compare archive\"
24643 tar -d -M -f arc.1 -f arc.2 -f arc.3
24645 echo spmvp00.at:24 >"$at_check_line_file"
24648 if test -n "$at_traceon"; then
24649 echo 'Not enabling shell tracing (command contains an embedded newline)'
24652 if test -n "$at_trace_this"; then
24656 TEST_TAR_FORMAT=pax
24657 export TEST_TAR_FORMAT
24658 TAR_OPTIONS="-H pax"
24663 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
24664 echo "Pass 1: Split between data blocks"
24665 echo "Create archive"
24666 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24667 echo "Test archive"
24668 tar -t -M -f arc.1 -f arc.2 -f arc.3
24669 echo "Compare archive"
24670 tar -d -M -f arc.1 -f arc.2 -f arc.3
24672 echo "Pass 2: Split within a data block"
24673 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
24674 echo "Create archive"
24675 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24676 echo "Test archive"
24677 tar -t -M -f arc.1 -f arc.2 -f arc.3
24678 echo "Compare archive"
24679 tar -d -M -f arc.1 -f arc.2 -f arc.3
24680 ) ) >"$at_stdout" 2>"$at_stder1"
24682 grep '^ *+' "$at_stder1" >&2
24683 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24688 TEST_TAR_FORMAT=pax
24689 export TEST_TAR_FORMAT
24690 TAR_OPTIONS="-H pax"
24695 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
24696 echo "Pass 1: Split between data blocks"
24697 echo "Create archive"
24698 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24699 echo "Test archive"
24700 tar -t -M -f arc.1 -f arc.2 -f arc.3
24701 echo "Compare archive"
24702 tar -d -M -f arc.1 -f arc.2 -f arc.3
24704 echo "Pass 2: Split within a data block"
24705 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
24706 echo "Create archive"
24707 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24708 echo "Test archive"
24709 tar -t -M -f arc.1 -f arc.2 -f arc.3
24710 echo "Compare archive"
24711 tar -d -M -f arc.1 -f arc.2 -f arc.3
24712 ) ) >"$at_stdout" 2>"$at_stderr"
24717 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
24718 tar: Record size = 12 blocks
24719 " | $at_diff - "$at_stderr" || at_failed=:
24720 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
24725 Pass 2: Split within a data block
24730 " | $at_diff - "$at_stdout" || at_failed=:
24732 77) echo 77 > "$at_status_file"; exit 77;;
24734 *) echo "$at_srcdir/spmvp00.at:24: exit code was $at_status, expected 0"
24737 if $at_failed; then
24740 echo 1 > "$at_status_file"
24749 $at_times_p && times >"$at_times_file"
24750 ) 5>&1 2>&1 | eval $at_tee_pipe
24751 at_status=`cat "$at_status_file"`
24754 62 ) # 62. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
24755 at_setup_line='spmvp01.at:21'
24756 at_desc="sparse files in PAX MV archives, v.0.1"
24757 $at_quiet $ECHO_N " 62: sparse files in PAX MV archives, v.0.1 $ECHO_C"
24759 test -f $XFAILFILE && at_xfail=yes
24760 echo "# -*- compilation -*-" >> "$at_group_log"
24762 echo "62. spmvp01.at:21: testing ..."
24771 echo "$at_srcdir/spmvp01.at:24:
24774 TEST_TAR_FORMAT=pax
24775 export TEST_TAR_FORMAT
24776 TAR_OPTIONS=\"-H pax\"
24781 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24782 echo \"Pass 1: Split between data blocks\"
24783 echo \"Create archive\"
24784 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24785 echo \"Test archive\"
24786 tar -t -M -f arc.1 -f arc.2 -f arc.3
24787 echo \"Compare archive\"
24788 tar -d -M -f arc.1 -f arc.2 -f arc.3
24790 echo \"Pass 2: Split within a data block\"
24791 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24792 echo \"Create archive\"
24793 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24794 echo \"Test archive\"
24795 tar -t -M -f arc.1 -f arc.2 -f arc.3
24796 echo \"Compare archive\"
24797 tar -d -M -f arc.1 -f arc.2 -f arc.3
24799 echo spmvp01.at:24 >"$at_check_line_file"
24802 if test -n "$at_traceon"; then
24803 echo 'Not enabling shell tracing (command contains an embedded newline)'
24806 if test -n "$at_trace_this"; then
24810 TEST_TAR_FORMAT=pax
24811 export TEST_TAR_FORMAT
24812 TAR_OPTIONS="-H pax"
24817 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24818 echo "Pass 1: Split between data blocks"
24819 echo "Create archive"
24820 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24821 echo "Test archive"
24822 tar -t -M -f arc.1 -f arc.2 -f arc.3
24823 echo "Compare archive"
24824 tar -d -M -f arc.1 -f arc.2 -f arc.3
24826 echo "Pass 2: Split within a data block"
24827 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24828 echo "Create archive"
24829 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24830 echo "Test archive"
24831 tar -t -M -f arc.1 -f arc.2 -f arc.3
24832 echo "Compare archive"
24833 tar -d -M -f arc.1 -f arc.2 -f arc.3
24834 ) ) >"$at_stdout" 2>"$at_stder1"
24836 grep '^ *+' "$at_stder1" >&2
24837 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24842 TEST_TAR_FORMAT=pax
24843 export TEST_TAR_FORMAT
24844 TAR_OPTIONS="-H pax"
24849 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
24850 echo "Pass 1: Split between data blocks"
24851 echo "Create archive"
24852 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24853 echo "Test archive"
24854 tar -t -M -f arc.1 -f arc.2 -f arc.3
24855 echo "Compare archive"
24856 tar -d -M -f arc.1 -f arc.2 -f arc.3
24858 echo "Pass 2: Split within a data block"
24859 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
24860 echo "Create archive"
24861 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24862 echo "Test archive"
24863 tar -t -M -f arc.1 -f arc.2 -f arc.3
24864 echo "Compare archive"
24865 tar -d -M -f arc.1 -f arc.2 -f arc.3
24866 ) ) >"$at_stdout" 2>"$at_stderr"
24871 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
24872 tar: Record size = 12 blocks
24873 " | $at_diff - "$at_stderr" || at_failed=:
24874 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
24879 Pass 2: Split within a data block
24884 " | $at_diff - "$at_stdout" || at_failed=:
24886 77) echo 77 > "$at_status_file"; exit 77;;
24888 *) echo "$at_srcdir/spmvp01.at:24: exit code was $at_status, expected 0"
24891 if $at_failed; then
24894 echo 1 > "$at_status_file"
24903 $at_times_p && times >"$at_times_file"
24904 ) 5>&1 2>&1 | eval $at_tee_pipe
24905 at_status=`cat "$at_status_file"`
24908 63 ) # 63. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
24909 at_setup_line='spmvp10.at:21'
24910 at_desc="sparse files in PAX MV archives, v.1.0"
24911 $at_quiet $ECHO_N " 63: sparse files in PAX MV archives, v.1.0 $ECHO_C"
24913 test -f $XFAILFILE && at_xfail=yes
24914 echo "# -*- compilation -*-" >> "$at_group_log"
24916 echo "63. spmvp10.at:21: testing ..."
24925 echo "$at_srcdir/spmvp10.at:24:
24928 TEST_TAR_FORMAT=pax
24929 export TEST_TAR_FORMAT
24930 TAR_OPTIONS=\"-H pax\"
24935 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
24936 echo \"Pass 1: Split between data blocks\"
24937 echo \"Create archive\"
24938 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24939 echo \"Test archive\"
24940 tar -t -M -f arc.1 -f arc.2 -f arc.3
24941 echo \"Compare archive\"
24942 tar -d -M -f arc.1 -f arc.2 -f arc.3
24944 echo \"Pass 2: Split within a data block\"
24945 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
24946 echo \"Create archive\"
24947 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24948 echo \"Test archive\"
24949 tar -t -M -f arc.1 -f arc.2 -f arc.3
24950 echo \"Compare archive\"
24951 tar -d -M -f arc.1 -f arc.2 -f arc.3
24953 echo spmvp10.at:24 >"$at_check_line_file"
24956 if test -n "$at_traceon"; then
24957 echo 'Not enabling shell tracing (command contains an embedded newline)'
24960 if test -n "$at_trace_this"; then
24964 TEST_TAR_FORMAT=pax
24965 export TEST_TAR_FORMAT
24966 TAR_OPTIONS="-H pax"
24971 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
24972 echo "Pass 1: Split between data blocks"
24973 echo "Create archive"
24974 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24975 echo "Test archive"
24976 tar -t -M -f arc.1 -f arc.2 -f arc.3
24977 echo "Compare archive"
24978 tar -d -M -f arc.1 -f arc.2 -f arc.3
24980 echo "Pass 2: Split within a data block"
24981 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
24982 echo "Create archive"
24983 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
24984 echo "Test archive"
24985 tar -t -M -f arc.1 -f arc.2 -f arc.3
24986 echo "Compare archive"
24987 tar -d -M -f arc.1 -f arc.2 -f arc.3
24988 ) ) >"$at_stdout" 2>"$at_stder1"
24990 grep '^ *+' "$at_stder1" >&2
24991 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24996 TEST_TAR_FORMAT=pax
24997 export TEST_TAR_FORMAT
24998 TAR_OPTIONS="-H pax"
25003 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
25004 echo "Pass 1: Split between data blocks"
25005 echo "Create archive"
25006 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25007 echo "Test archive"
25008 tar -t -M -f arc.1 -f arc.2 -f arc.3
25009 echo "Compare archive"
25010 tar -d -M -f arc.1 -f arc.2 -f arc.3
25012 echo "Pass 2: Split within a data block"
25013 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
25014 echo "Create archive"
25015 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
25016 echo "Test archive"
25017 tar -t -M -f arc.1 -f arc.2 -f arc.3
25018 echo "Compare archive"
25019 tar -d -M -f arc.1 -f arc.2 -f arc.3
25020 ) ) >"$at_stdout" 2>"$at_stderr"
25025 echo >>"$at_stderr"; echo "tar: Record size = 12 blocks
25026 tar: Record size = 12 blocks
25027 " | $at_diff - "$at_stderr" || at_failed=:
25028 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
25033 Pass 2: Split within a data block
25038 " | $at_diff - "$at_stdout" || at_failed=:
25040 77) echo 77 > "$at_status_file"; exit 77;;
25042 *) echo "$at_srcdir/spmvp10.at:24: exit code was $at_status, expected 0"
25045 if $at_failed; then
25048 echo 1 > "$at_status_file"
25057 $at_times_p && times >"$at_times_file"
25058 ) 5>&1 2>&1 | eval $at_tee_pipe
25059 at_status=`cat "$at_status_file"`
25062 64 ) # 64. update.at:27: update unchanged directories
25063 at_setup_line='update.at:27'
25064 at_desc="update unchanged directories"
25065 $at_quiet $ECHO_N " 64: update unchanged directories $ECHO_C"
25067 test -f $XFAILFILE && at_xfail=yes
25068 echo "# -*- compilation -*-" >> "$at_group_log"
25070 echo "64. update.at:27: testing ..."
25078 echo "$at_srcdir/update.at:30:
25082 export TEST_TAR_FORMAT
25083 TAR_OPTIONS=\"-H v7\"
25088 test -z "`sort < /dev/null 2>&1`" || exit 77
25091 genfile --length 10240 --pattern zeros --file directory/file1
25092 genfile --length 10240 --pattern default --file directory/file2
25094 tar cf archive directory || exit 1
25096 tar uf archive directory || exit 1
25098 tar tf archive | sort || exit 1
25100 echo update.at:30 >"$at_check_line_file"
25103 if test -n "$at_traceon"; then
25104 echo 'Not enabling shell tracing (command contains an embedded newline)'
25107 if test -n "$at_trace_this"; then
25112 export TEST_TAR_FORMAT
25113 TAR_OPTIONS="-H v7"
25118 test -z "`sort < /dev/null 2>&1`" || exit 77
25121 genfile --length 10240 --pattern zeros --file directory/file1
25122 genfile --length 10240 --pattern default --file directory/file2
25124 tar cf archive directory || exit 1
25126 tar uf archive directory || exit 1
25128 tar tf archive | sort || exit 1
25129 ) ) >"$at_stdout" 2>"$at_stder1"
25131 grep '^ *+' "$at_stder1" >&2
25132 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25138 export TEST_TAR_FORMAT
25139 TAR_OPTIONS="-H v7"
25144 test -z "`sort < /dev/null 2>&1`" || exit 77
25147 genfile --length 10240 --pattern zeros --file directory/file1
25148 genfile --length 10240 --pattern default --file directory/file2
25150 tar cf archive directory || exit 1
25152 tar uf archive directory || exit 1
25154 tar tf archive | sort || exit 1
25155 ) ) >"$at_stdout" 2>"$at_stderr"
25160 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25161 echo >>"$at_stdout"; echo "separator
25166 " | $at_diff - "$at_stdout" || at_failed=:
25168 77) echo 77 > "$at_status_file"; exit 77;;
25170 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25173 if $at_failed; then
25176 echo 1 > "$at_status_file"
25182 echo "$at_srcdir/update.at:30:
25185 TEST_TAR_FORMAT=oldgnu
25186 export TEST_TAR_FORMAT
25187 TAR_OPTIONS=\"-H oldgnu\"
25192 test -z "`sort < /dev/null 2>&1`" || exit 77
25195 genfile --length 10240 --pattern zeros --file directory/file1
25196 genfile --length 10240 --pattern default --file directory/file2
25198 tar cf archive directory || exit 1
25200 tar uf archive directory || exit 1
25202 tar tf archive | sort || exit 1
25204 echo update.at:30 >"$at_check_line_file"
25207 if test -n "$at_traceon"; then
25208 echo 'Not enabling shell tracing (command contains an embedded newline)'
25211 if test -n "$at_trace_this"; then
25215 TEST_TAR_FORMAT=oldgnu
25216 export TEST_TAR_FORMAT
25217 TAR_OPTIONS="-H oldgnu"
25222 test -z "`sort < /dev/null 2>&1`" || exit 77
25225 genfile --length 10240 --pattern zeros --file directory/file1
25226 genfile --length 10240 --pattern default --file directory/file2
25228 tar cf archive directory || exit 1
25230 tar uf archive directory || exit 1
25232 tar tf archive | sort || exit 1
25233 ) ) >"$at_stdout" 2>"$at_stder1"
25235 grep '^ *+' "$at_stder1" >&2
25236 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25241 TEST_TAR_FORMAT=oldgnu
25242 export TEST_TAR_FORMAT
25243 TAR_OPTIONS="-H oldgnu"
25248 test -z "`sort < /dev/null 2>&1`" || exit 77
25251 genfile --length 10240 --pattern zeros --file directory/file1
25252 genfile --length 10240 --pattern default --file directory/file2
25254 tar cf archive directory || exit 1
25256 tar uf archive directory || exit 1
25258 tar tf archive | sort || exit 1
25259 ) ) >"$at_stdout" 2>"$at_stderr"
25264 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25265 echo >>"$at_stdout"; echo "separator
25270 " | $at_diff - "$at_stdout" || at_failed=:
25272 77) echo 77 > "$at_status_file"; exit 77;;
25274 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25277 if $at_failed; then
25280 echo 1 > "$at_status_file"
25286 echo "$at_srcdir/update.at:30:
25289 TEST_TAR_FORMAT=ustar
25290 export TEST_TAR_FORMAT
25291 TAR_OPTIONS=\"-H ustar\"
25296 test -z "`sort < /dev/null 2>&1`" || exit 77
25299 genfile --length 10240 --pattern zeros --file directory/file1
25300 genfile --length 10240 --pattern default --file directory/file2
25302 tar cf archive directory || exit 1
25304 tar uf archive directory || exit 1
25306 tar tf archive | sort || exit 1
25308 echo update.at:30 >"$at_check_line_file"
25311 if test -n "$at_traceon"; then
25312 echo 'Not enabling shell tracing (command contains an embedded newline)'
25315 if test -n "$at_trace_this"; then
25319 TEST_TAR_FORMAT=ustar
25320 export TEST_TAR_FORMAT
25321 TAR_OPTIONS="-H ustar"
25326 test -z "`sort < /dev/null 2>&1`" || exit 77
25329 genfile --length 10240 --pattern zeros --file directory/file1
25330 genfile --length 10240 --pattern default --file directory/file2
25332 tar cf archive directory || exit 1
25334 tar uf archive directory || exit 1
25336 tar tf archive | sort || exit 1
25337 ) ) >"$at_stdout" 2>"$at_stder1"
25339 grep '^ *+' "$at_stder1" >&2
25340 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25345 TEST_TAR_FORMAT=ustar
25346 export TEST_TAR_FORMAT
25347 TAR_OPTIONS="-H ustar"
25352 test -z "`sort < /dev/null 2>&1`" || exit 77
25355 genfile --length 10240 --pattern zeros --file directory/file1
25356 genfile --length 10240 --pattern default --file directory/file2
25358 tar cf archive directory || exit 1
25360 tar uf archive directory || exit 1
25362 tar tf archive | sort || exit 1
25363 ) ) >"$at_stdout" 2>"$at_stderr"
25368 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25369 echo >>"$at_stdout"; echo "separator
25374 " | $at_diff - "$at_stdout" || at_failed=:
25376 77) echo 77 > "$at_status_file"; exit 77;;
25378 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25381 if $at_failed; then
25384 echo 1 > "$at_status_file"
25390 echo "$at_srcdir/update.at:30:
25393 TEST_TAR_FORMAT=posix
25394 export TEST_TAR_FORMAT
25395 TAR_OPTIONS=\"-H posix\"
25400 test -z "`sort < /dev/null 2>&1`" || exit 77
25403 genfile --length 10240 --pattern zeros --file directory/file1
25404 genfile --length 10240 --pattern default --file directory/file2
25406 tar cf archive directory || exit 1
25408 tar uf archive directory || exit 1
25410 tar tf archive | sort || exit 1
25412 echo update.at:30 >"$at_check_line_file"
25415 if test -n "$at_traceon"; then
25416 echo 'Not enabling shell tracing (command contains an embedded newline)'
25419 if test -n "$at_trace_this"; then
25423 TEST_TAR_FORMAT=posix
25424 export TEST_TAR_FORMAT
25425 TAR_OPTIONS="-H posix"
25430 test -z "`sort < /dev/null 2>&1`" || exit 77
25433 genfile --length 10240 --pattern zeros --file directory/file1
25434 genfile --length 10240 --pattern default --file directory/file2
25436 tar cf archive directory || exit 1
25438 tar uf archive directory || exit 1
25440 tar tf archive | sort || exit 1
25441 ) ) >"$at_stdout" 2>"$at_stder1"
25443 grep '^ *+' "$at_stder1" >&2
25444 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25449 TEST_TAR_FORMAT=posix
25450 export TEST_TAR_FORMAT
25451 TAR_OPTIONS="-H posix"
25456 test -z "`sort < /dev/null 2>&1`" || exit 77
25459 genfile --length 10240 --pattern zeros --file directory/file1
25460 genfile --length 10240 --pattern default --file directory/file2
25462 tar cf archive directory || exit 1
25464 tar uf archive directory || exit 1
25466 tar tf archive | sort || exit 1
25467 ) ) >"$at_stdout" 2>"$at_stderr"
25472 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25473 echo >>"$at_stdout"; echo "separator
25478 " | $at_diff - "$at_stdout" || at_failed=:
25480 77) echo 77 > "$at_status_file"; exit 77;;
25482 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25485 if $at_failed; then
25488 echo 1 > "$at_status_file"
25494 echo "$at_srcdir/update.at:30:
25497 TEST_TAR_FORMAT=gnu
25498 export TEST_TAR_FORMAT
25499 TAR_OPTIONS=\"-H gnu\"
25504 test -z "`sort < /dev/null 2>&1`" || exit 77
25507 genfile --length 10240 --pattern zeros --file directory/file1
25508 genfile --length 10240 --pattern default --file directory/file2
25510 tar cf archive directory || exit 1
25512 tar uf archive directory || exit 1
25514 tar tf archive | sort || exit 1
25516 echo update.at:30 >"$at_check_line_file"
25519 if test -n "$at_traceon"; then
25520 echo 'Not enabling shell tracing (command contains an embedded newline)'
25523 if test -n "$at_trace_this"; then
25527 TEST_TAR_FORMAT=gnu
25528 export TEST_TAR_FORMAT
25529 TAR_OPTIONS="-H gnu"
25534 test -z "`sort < /dev/null 2>&1`" || exit 77
25537 genfile --length 10240 --pattern zeros --file directory/file1
25538 genfile --length 10240 --pattern default --file directory/file2
25540 tar cf archive directory || exit 1
25542 tar uf archive directory || exit 1
25544 tar tf archive | sort || exit 1
25545 ) ) >"$at_stdout" 2>"$at_stder1"
25547 grep '^ *+' "$at_stder1" >&2
25548 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25553 TEST_TAR_FORMAT=gnu
25554 export TEST_TAR_FORMAT
25555 TAR_OPTIONS="-H gnu"
25560 test -z "`sort < /dev/null 2>&1`" || exit 77
25563 genfile --length 10240 --pattern zeros --file directory/file1
25564 genfile --length 10240 --pattern default --file directory/file2
25566 tar cf archive directory || exit 1
25568 tar uf archive directory || exit 1
25570 tar tf archive | sort || exit 1
25571 ) ) >"$at_stdout" 2>"$at_stderr"
25576 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25577 echo >>"$at_stdout"; echo "separator
25582 " | $at_diff - "$at_stdout" || at_failed=:
25584 77) echo 77 > "$at_status_file"; exit 77;;
25586 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
25589 if $at_failed; then
25592 echo 1 > "$at_status_file"
25601 $at_times_p && times >"$at_times_file"
25602 ) 5>&1 2>&1 | eval $at_tee_pipe
25603 at_status=`cat "$at_status_file"`
25606 65 ) # 65. volume.at:23: volume
25607 at_setup_line='volume.at:23'
25609 $at_quiet $ECHO_N " 65: volume $ECHO_C"
25611 test -f $XFAILFILE && at_xfail=yes
25612 echo "# -*- compilation -*-" >> "$at_group_log"
25614 echo "65. volume.at:23: testing ..."
25622 echo "$at_srcdir/volume.at:26:
25625 TEST_TAR_FORMAT=gnu
25626 export TEST_TAR_FORMAT
25627 TAR_OPTIONS=\"-H gnu\"
25631 tar -cf archive -V label -T /dev/null || exit 1
25633 tar xfV archive label || exit 1
25634 tar xfV archive 'la?el' || exit 1
25635 tar xfV archive 'l*l' || exit 1
25638 tar xfV archive lab
25639 test \$? = 2 || exit 1
25641 tar xfV archive bel
25642 test \$? = 2 || exit 1
25644 tar xfV archive babel
25647 echo volume.at:26 >"$at_check_line_file"
25650 if test -n "$at_traceon"; then
25651 echo 'Not enabling shell tracing (command contains an embedded newline)'
25654 if test -n "$at_trace_this"; then
25658 TEST_TAR_FORMAT=gnu
25659 export TEST_TAR_FORMAT
25660 TAR_OPTIONS="-H gnu"
25664 tar -cf archive -V label -T /dev/null || exit 1
25666 tar xfV archive label || exit 1
25667 tar xfV archive 'la?el' || exit 1
25668 tar xfV archive 'l*l' || exit 1
25671 tar xfV archive lab
25672 test $? = 2 || exit 1
25674 tar xfV archive bel
25675 test $? = 2 || exit 1
25677 tar xfV archive babel
25679 ) ) >"$at_stdout" 2>"$at_stder1"
25681 grep '^ *+' "$at_stder1" >&2
25682 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25687 TEST_TAR_FORMAT=gnu
25688 export TEST_TAR_FORMAT
25689 TAR_OPTIONS="-H gnu"
25693 tar -cf archive -V label -T /dev/null || exit 1
25695 tar xfV archive label || exit 1
25696 tar xfV archive 'la?el' || exit 1
25697 tar xfV archive 'l*l' || exit 1
25700 tar xfV archive lab
25701 test $? = 2 || exit 1
25703 tar xfV archive bel
25704 test $? = 2 || exit 1
25706 tar xfV archive babel
25708 ) ) >"$at_stdout" 2>"$at_stderr"
25713 echo >>"$at_stderr"; echo "-----
25714 tar: Volume \`label' does not match \`lab'
25715 tar: Error is not recoverable: exiting now
25717 tar: Volume \`label' does not match \`bel'
25718 tar: Error is not recoverable: exiting now
25720 tar: Volume \`label' does not match \`babel'
25721 tar: Error is not recoverable: exiting now
25722 " | $at_diff - "$at_stderr" || at_failed=:
25723 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25725 77) echo 77 > "$at_status_file"; exit 77;;
25727 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
25730 if $at_failed; then
25733 echo 1 > "$at_status_file"
25739 echo "$at_srcdir/volume.at:26:
25742 TEST_TAR_FORMAT=oldgnu
25743 export TEST_TAR_FORMAT
25744 TAR_OPTIONS=\"-H oldgnu\"
25748 tar -cf archive -V label -T /dev/null || exit 1
25750 tar xfV archive label || exit 1
25751 tar xfV archive 'la?el' || exit 1
25752 tar xfV archive 'l*l' || exit 1
25755 tar xfV archive lab
25756 test \$? = 2 || exit 1
25758 tar xfV archive bel
25759 test \$? = 2 || exit 1
25761 tar xfV archive babel
25764 echo volume.at:26 >"$at_check_line_file"
25767 if test -n "$at_traceon"; then
25768 echo 'Not enabling shell tracing (command contains an embedded newline)'
25771 if test -n "$at_trace_this"; then
25775 TEST_TAR_FORMAT=oldgnu
25776 export TEST_TAR_FORMAT
25777 TAR_OPTIONS="-H oldgnu"
25781 tar -cf archive -V label -T /dev/null || exit 1
25783 tar xfV archive label || exit 1
25784 tar xfV archive 'la?el' || exit 1
25785 tar xfV archive 'l*l' || exit 1
25788 tar xfV archive lab
25789 test $? = 2 || exit 1
25791 tar xfV archive bel
25792 test $? = 2 || exit 1
25794 tar xfV archive babel
25796 ) ) >"$at_stdout" 2>"$at_stder1"
25798 grep '^ *+' "$at_stder1" >&2
25799 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25804 TEST_TAR_FORMAT=oldgnu
25805 export TEST_TAR_FORMAT
25806 TAR_OPTIONS="-H oldgnu"
25810 tar -cf archive -V label -T /dev/null || exit 1
25812 tar xfV archive label || exit 1
25813 tar xfV archive 'la?el' || exit 1
25814 tar xfV archive 'l*l' || exit 1
25817 tar xfV archive lab
25818 test $? = 2 || exit 1
25820 tar xfV archive bel
25821 test $? = 2 || exit 1
25823 tar xfV archive babel
25825 ) ) >"$at_stdout" 2>"$at_stderr"
25830 echo >>"$at_stderr"; echo "-----
25831 tar: Volume \`label' does not match \`lab'
25832 tar: Error is not recoverable: exiting now
25834 tar: Volume \`label' does not match \`bel'
25835 tar: Error is not recoverable: exiting now
25837 tar: Volume \`label' does not match \`babel'
25838 tar: Error is not recoverable: exiting now
25839 " | $at_diff - "$at_stderr" || at_failed=:
25840 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25842 77) echo 77 > "$at_status_file"; exit 77;;
25844 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
25847 if $at_failed; then
25850 echo 1 > "$at_status_file"
25859 $at_times_p && times >"$at_times_file"
25860 ) 5>&1 2>&1 | eval $at_tee_pipe
25861 at_status=`cat "$at_status_file"`
25864 66 ) # 66. volsize.at:29: volume header size
25865 at_setup_line='volsize.at:29'
25866 at_desc="volume header size"
25867 $at_quiet $ECHO_N " 66: volume header size $ECHO_C"
25869 test -f $XFAILFILE && at_xfail=yes
25870 echo "# -*- compilation -*-" >> "$at_group_log"
25872 echo "66. volsize.at:29: testing ..."
25880 echo "$at_srcdir/volsize.at:32:
25884 export TEST_TAR_FORMAT
25885 TAR_OPTIONS=\"-H v7\"
25890 test -z "`sort < /dev/null 2>&1`" || exit 77
25893 test -z "$TEST_DATA_DIR" && exit 77
25894 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25897 tar tf \$TEST_DATA_DIR/abc.tar
25898 echo Verbose Listing
25899 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
25900 echo Extracted directory
25901 tar xf \$TEST_DATA_DIR/abc.tar
25904 echo volsize.at:32 >"$at_check_line_file"
25907 if test -n "$at_traceon"; then
25908 echo 'Not enabling shell tracing (command contains an embedded newline)'
25911 if test -n "$at_trace_this"; then
25916 export TEST_TAR_FORMAT
25917 TAR_OPTIONS="-H v7"
25922 test -z "`sort < /dev/null 2>&1`" || exit 77
25925 test -z "$TEST_DATA_DIR" && exit 77
25926 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25929 tar tf $TEST_DATA_DIR/abc.tar
25930 echo Verbose Listing
25931 tar --utc -tvf $TEST_DATA_DIR/abc.tar
25932 echo Extracted directory
25933 tar xf $TEST_DATA_DIR/abc.tar
25935 ) ) >"$at_stdout" 2>"$at_stder1"
25937 grep '^ *+' "$at_stder1" >&2
25938 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25944 export TEST_TAR_FORMAT
25945 TAR_OPTIONS="-H v7"
25950 test -z "`sort < /dev/null 2>&1`" || exit 77
25953 test -z "$TEST_DATA_DIR" && exit 77
25954 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25957 tar tf $TEST_DATA_DIR/abc.tar
25958 echo Verbose Listing
25959 tar --utc -tvf $TEST_DATA_DIR/abc.tar
25960 echo Extracted directory
25961 tar xf $TEST_DATA_DIR/abc.tar
25963 ) ) >"$at_stdout" 2>"$at_stderr"
25968 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
25969 tar: Record size = 5 blocks
25970 " | $at_diff - "$at_stderr" || at_failed=:
25971 echo >>"$at_stdout"; echo "Short Listing
25975 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
25976 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
25977 Extracted directory
25980 " | $at_diff - "$at_stdout" || at_failed=:
25982 77) echo 77 > "$at_status_file"; exit 77;;
25984 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
25987 if $at_failed; then
25990 echo 1 > "$at_status_file"
25996 echo "$at_srcdir/volsize.at:32:
25999 TEST_TAR_FORMAT=oldgnu
26000 export TEST_TAR_FORMAT
26001 TAR_OPTIONS=\"-H oldgnu\"
26006 test -z "`sort < /dev/null 2>&1`" || exit 77
26009 test -z "$TEST_DATA_DIR" && exit 77
26010 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26013 tar tf \$TEST_DATA_DIR/abc.tar
26014 echo Verbose Listing
26015 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26016 echo Extracted directory
26017 tar xf \$TEST_DATA_DIR/abc.tar
26020 echo volsize.at:32 >"$at_check_line_file"
26023 if test -n "$at_traceon"; then
26024 echo 'Not enabling shell tracing (command contains an embedded newline)'
26027 if test -n "$at_trace_this"; then
26031 TEST_TAR_FORMAT=oldgnu
26032 export TEST_TAR_FORMAT
26033 TAR_OPTIONS="-H oldgnu"
26038 test -z "`sort < /dev/null 2>&1`" || exit 77
26041 test -z "$TEST_DATA_DIR" && exit 77
26042 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26045 tar tf $TEST_DATA_DIR/abc.tar
26046 echo Verbose Listing
26047 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26048 echo Extracted directory
26049 tar xf $TEST_DATA_DIR/abc.tar
26051 ) ) >"$at_stdout" 2>"$at_stder1"
26053 grep '^ *+' "$at_stder1" >&2
26054 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26059 TEST_TAR_FORMAT=oldgnu
26060 export TEST_TAR_FORMAT
26061 TAR_OPTIONS="-H oldgnu"
26066 test -z "`sort < /dev/null 2>&1`" || exit 77
26069 test -z "$TEST_DATA_DIR" && exit 77
26070 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26073 tar tf $TEST_DATA_DIR/abc.tar
26074 echo Verbose Listing
26075 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26076 echo Extracted directory
26077 tar xf $TEST_DATA_DIR/abc.tar
26079 ) ) >"$at_stdout" 2>"$at_stderr"
26084 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26085 tar: Record size = 5 blocks
26086 " | $at_diff - "$at_stderr" || at_failed=:
26087 echo >>"$at_stdout"; echo "Short Listing
26091 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26092 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26093 Extracted directory
26096 " | $at_diff - "$at_stdout" || at_failed=:
26098 77) echo 77 > "$at_status_file"; exit 77;;
26100 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26103 if $at_failed; then
26106 echo 1 > "$at_status_file"
26112 echo "$at_srcdir/volsize.at:32:
26115 TEST_TAR_FORMAT=ustar
26116 export TEST_TAR_FORMAT
26117 TAR_OPTIONS=\"-H ustar\"
26122 test -z "`sort < /dev/null 2>&1`" || exit 77
26125 test -z "$TEST_DATA_DIR" && exit 77
26126 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26129 tar tf \$TEST_DATA_DIR/abc.tar
26130 echo Verbose Listing
26131 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26132 echo Extracted directory
26133 tar xf \$TEST_DATA_DIR/abc.tar
26136 echo volsize.at:32 >"$at_check_line_file"
26139 if test -n "$at_traceon"; then
26140 echo 'Not enabling shell tracing (command contains an embedded newline)'
26143 if test -n "$at_trace_this"; then
26147 TEST_TAR_FORMAT=ustar
26148 export TEST_TAR_FORMAT
26149 TAR_OPTIONS="-H ustar"
26154 test -z "`sort < /dev/null 2>&1`" || exit 77
26157 test -z "$TEST_DATA_DIR" && exit 77
26158 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26161 tar tf $TEST_DATA_DIR/abc.tar
26162 echo Verbose Listing
26163 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26164 echo Extracted directory
26165 tar xf $TEST_DATA_DIR/abc.tar
26167 ) ) >"$at_stdout" 2>"$at_stder1"
26169 grep '^ *+' "$at_stder1" >&2
26170 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26175 TEST_TAR_FORMAT=ustar
26176 export TEST_TAR_FORMAT
26177 TAR_OPTIONS="-H ustar"
26182 test -z "`sort < /dev/null 2>&1`" || exit 77
26185 test -z "$TEST_DATA_DIR" && exit 77
26186 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26189 tar tf $TEST_DATA_DIR/abc.tar
26190 echo Verbose Listing
26191 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26192 echo Extracted directory
26193 tar xf $TEST_DATA_DIR/abc.tar
26195 ) ) >"$at_stdout" 2>"$at_stderr"
26200 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26201 tar: Record size = 5 blocks
26202 " | $at_diff - "$at_stderr" || at_failed=:
26203 echo >>"$at_stdout"; echo "Short Listing
26207 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26208 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26209 Extracted directory
26212 " | $at_diff - "$at_stdout" || at_failed=:
26214 77) echo 77 > "$at_status_file"; exit 77;;
26216 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26219 if $at_failed; then
26222 echo 1 > "$at_status_file"
26228 echo "$at_srcdir/volsize.at:32:
26231 TEST_TAR_FORMAT=posix
26232 export TEST_TAR_FORMAT
26233 TAR_OPTIONS=\"-H posix\"
26238 test -z "`sort < /dev/null 2>&1`" || exit 77
26241 test -z "$TEST_DATA_DIR" && exit 77
26242 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26245 tar tf \$TEST_DATA_DIR/abc.tar
26246 echo Verbose Listing
26247 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26248 echo Extracted directory
26249 tar xf \$TEST_DATA_DIR/abc.tar
26252 echo volsize.at:32 >"$at_check_line_file"
26255 if test -n "$at_traceon"; then
26256 echo 'Not enabling shell tracing (command contains an embedded newline)'
26259 if test -n "$at_trace_this"; then
26263 TEST_TAR_FORMAT=posix
26264 export TEST_TAR_FORMAT
26265 TAR_OPTIONS="-H posix"
26270 test -z "`sort < /dev/null 2>&1`" || exit 77
26273 test -z "$TEST_DATA_DIR" && exit 77
26274 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26277 tar tf $TEST_DATA_DIR/abc.tar
26278 echo Verbose Listing
26279 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26280 echo Extracted directory
26281 tar xf $TEST_DATA_DIR/abc.tar
26283 ) ) >"$at_stdout" 2>"$at_stder1"
26285 grep '^ *+' "$at_stder1" >&2
26286 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26291 TEST_TAR_FORMAT=posix
26292 export TEST_TAR_FORMAT
26293 TAR_OPTIONS="-H posix"
26298 test -z "`sort < /dev/null 2>&1`" || exit 77
26301 test -z "$TEST_DATA_DIR" && exit 77
26302 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26305 tar tf $TEST_DATA_DIR/abc.tar
26306 echo Verbose Listing
26307 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26308 echo Extracted directory
26309 tar xf $TEST_DATA_DIR/abc.tar
26311 ) ) >"$at_stdout" 2>"$at_stderr"
26316 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26317 tar: Record size = 5 blocks
26318 " | $at_diff - "$at_stderr" || at_failed=:
26319 echo >>"$at_stdout"; echo "Short Listing
26323 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26324 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26325 Extracted directory
26328 " | $at_diff - "$at_stdout" || at_failed=:
26330 77) echo 77 > "$at_status_file"; exit 77;;
26332 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26335 if $at_failed; then
26338 echo 1 > "$at_status_file"
26344 echo "$at_srcdir/volsize.at:32:
26347 TEST_TAR_FORMAT=gnu
26348 export TEST_TAR_FORMAT
26349 TAR_OPTIONS=\"-H gnu\"
26354 test -z "`sort < /dev/null 2>&1`" || exit 77
26357 test -z "$TEST_DATA_DIR" && exit 77
26358 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26361 tar tf \$TEST_DATA_DIR/abc.tar
26362 echo Verbose Listing
26363 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
26364 echo Extracted directory
26365 tar xf \$TEST_DATA_DIR/abc.tar
26368 echo volsize.at:32 >"$at_check_line_file"
26371 if test -n "$at_traceon"; then
26372 echo 'Not enabling shell tracing (command contains an embedded newline)'
26375 if test -n "$at_trace_this"; then
26379 TEST_TAR_FORMAT=gnu
26380 export TEST_TAR_FORMAT
26381 TAR_OPTIONS="-H gnu"
26386 test -z "`sort < /dev/null 2>&1`" || exit 77
26389 test -z "$TEST_DATA_DIR" && exit 77
26390 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26393 tar tf $TEST_DATA_DIR/abc.tar
26394 echo Verbose Listing
26395 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26396 echo Extracted directory
26397 tar xf $TEST_DATA_DIR/abc.tar
26399 ) ) >"$at_stdout" 2>"$at_stder1"
26401 grep '^ *+' "$at_stder1" >&2
26402 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26407 TEST_TAR_FORMAT=gnu
26408 export TEST_TAR_FORMAT
26409 TAR_OPTIONS="-H gnu"
26414 test -z "`sort < /dev/null 2>&1`" || exit 77
26417 test -z "$TEST_DATA_DIR" && exit 77
26418 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
26421 tar tf $TEST_DATA_DIR/abc.tar
26422 echo Verbose Listing
26423 tar --utc -tvf $TEST_DATA_DIR/abc.tar
26424 echo Extracted directory
26425 tar xf $TEST_DATA_DIR/abc.tar
26427 ) ) >"$at_stdout" 2>"$at_stderr"
26432 echo >>"$at_stderr"; echo "tar: Record size = 5 blocks
26433 tar: Record size = 5 blocks
26434 " | $at_diff - "$at_stderr" || at_failed=:
26435 echo >>"$at_stdout"; echo "Short Listing
26439 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
26440 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
26441 Extracted directory
26444 " | $at_diff - "$at_stdout" || at_failed=:
26446 77) echo 77 > "$at_status_file"; exit 77;;
26448 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
26451 if $at_failed; then
26454 echo 1 > "$at_status_file"
26463 $at_times_p && times >"$at_times_file"
26464 ) 5>&1 2>&1 | eval $at_tee_pipe
26465 at_status=`cat "$at_status_file"`
26468 67 ) # 67. comprec.at:21: compressed format recognition
26469 at_setup_line='comprec.at:21'
26470 at_desc="compressed format recognition"
26471 $at_quiet $ECHO_N " 67: compressed format recognition $ECHO_C"
26473 test -f $XFAILFILE && at_xfail=yes
26474 echo "# -*- compilation -*-" >> "$at_group_log"
26476 echo "67. comprec.at:21: testing ..."
26485 echo "$at_srcdir/comprec.at:25:
26489 export TEST_TAR_FORMAT
26490 TAR_OPTIONS=\"-H v7\"
26495 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26497 genfile --length 10240 --file file1
26499 tar cfz archive file1
26505 echo comprec.at:25 >"$at_check_line_file"
26508 if test -n "$at_traceon"; then
26509 echo 'Not enabling shell tracing (command contains an embedded newline)'
26512 if test -n "$at_trace_this"; then
26517 export TEST_TAR_FORMAT
26518 TAR_OPTIONS="-H v7"
26523 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26525 genfile --length 10240 --file file1
26527 tar cfz archive file1
26532 ) ) >"$at_stdout" 2>"$at_stder1"
26534 grep '^ *+' "$at_stder1" >&2
26535 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26541 export TEST_TAR_FORMAT
26542 TAR_OPTIONS="-H v7"
26547 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26549 genfile --length 10240 --file file1
26551 tar cfz archive file1
26556 ) ) >"$at_stdout" 2>"$at_stderr"
26561 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26562 echo >>"$at_stdout"; echo "separator
26565 " | $at_diff - "$at_stdout" || at_failed=:
26567 77) echo 77 > "$at_status_file"; exit 77;;
26569 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
26572 if $at_failed; then
26575 echo 1 > "$at_status_file"
26581 echo "$at_srcdir/comprec.at:25:
26584 TEST_TAR_FORMAT=oldgnu
26585 export TEST_TAR_FORMAT
26586 TAR_OPTIONS=\"-H oldgnu\"
26591 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26593 genfile --length 10240 --file file1
26595 tar cfz archive file1
26601 echo comprec.at:25 >"$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 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26621 genfile --length 10240 --file file1
26623 tar cfz archive file1
26628 ) ) >"$at_stdout" 2>"$at_stder1"
26630 grep '^ *+' "$at_stder1" >&2
26631 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26636 TEST_TAR_FORMAT=oldgnu
26637 export TEST_TAR_FORMAT
26638 TAR_OPTIONS="-H oldgnu"
26643 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26645 genfile --length 10240 --file file1
26647 tar cfz archive file1
26652 ) ) >"$at_stdout" 2>"$at_stderr"
26657 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26658 echo >>"$at_stdout"; echo "separator
26661 " | $at_diff - "$at_stdout" || at_failed=:
26663 77) echo 77 > "$at_status_file"; exit 77;;
26665 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
26668 if $at_failed; then
26671 echo 1 > "$at_status_file"
26677 echo "$at_srcdir/comprec.at:25:
26680 TEST_TAR_FORMAT=ustar
26681 export TEST_TAR_FORMAT
26682 TAR_OPTIONS=\"-H ustar\"
26687 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26689 genfile --length 10240 --file file1
26691 tar cfz archive file1
26697 echo comprec.at:25 >"$at_check_line_file"
26700 if test -n "$at_traceon"; then
26701 echo 'Not enabling shell tracing (command contains an embedded newline)'
26704 if test -n "$at_trace_this"; then
26708 TEST_TAR_FORMAT=ustar
26709 export TEST_TAR_FORMAT
26710 TAR_OPTIONS="-H ustar"
26715 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26717 genfile --length 10240 --file file1
26719 tar cfz archive file1
26724 ) ) >"$at_stdout" 2>"$at_stder1"
26726 grep '^ *+' "$at_stder1" >&2
26727 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26732 TEST_TAR_FORMAT=ustar
26733 export TEST_TAR_FORMAT
26734 TAR_OPTIONS="-H ustar"
26739 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26741 genfile --length 10240 --file file1
26743 tar cfz archive file1
26748 ) ) >"$at_stdout" 2>"$at_stderr"
26753 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26754 echo >>"$at_stdout"; echo "separator
26757 " | $at_diff - "$at_stdout" || at_failed=:
26759 77) echo 77 > "$at_status_file"; exit 77;;
26761 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
26764 if $at_failed; then
26767 echo 1 > "$at_status_file"
26773 echo "$at_srcdir/comprec.at:25:
26776 TEST_TAR_FORMAT=posix
26777 export TEST_TAR_FORMAT
26778 TAR_OPTIONS=\"-H posix\"
26783 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26785 genfile --length 10240 --file file1
26787 tar cfz archive file1
26793 echo comprec.at:25 >"$at_check_line_file"
26796 if test -n "$at_traceon"; then
26797 echo 'Not enabling shell tracing (command contains an embedded newline)'
26800 if test -n "$at_trace_this"; then
26804 TEST_TAR_FORMAT=posix
26805 export TEST_TAR_FORMAT
26806 TAR_OPTIONS="-H posix"
26811 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26813 genfile --length 10240 --file file1
26815 tar cfz archive file1
26820 ) ) >"$at_stdout" 2>"$at_stder1"
26822 grep '^ *+' "$at_stder1" >&2
26823 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26828 TEST_TAR_FORMAT=posix
26829 export TEST_TAR_FORMAT
26830 TAR_OPTIONS="-H posix"
26835 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26837 genfile --length 10240 --file file1
26839 tar cfz archive file1
26844 ) ) >"$at_stdout" 2>"$at_stderr"
26849 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26850 echo >>"$at_stdout"; echo "separator
26853 " | $at_diff - "$at_stdout" || at_failed=:
26855 77) echo 77 > "$at_status_file"; exit 77;;
26857 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
26860 if $at_failed; then
26863 echo 1 > "$at_status_file"
26869 echo "$at_srcdir/comprec.at:25:
26872 TEST_TAR_FORMAT=gnu
26873 export TEST_TAR_FORMAT
26874 TAR_OPTIONS=\"-H gnu\"
26879 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26881 genfile --length 10240 --file file1
26883 tar cfz archive file1
26889 echo comprec.at:25 >"$at_check_line_file"
26892 if test -n "$at_traceon"; then
26893 echo 'Not enabling shell tracing (command contains an embedded newline)'
26896 if test -n "$at_trace_this"; then
26900 TEST_TAR_FORMAT=gnu
26901 export TEST_TAR_FORMAT
26902 TAR_OPTIONS="-H gnu"
26907 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26909 genfile --length 10240 --file file1
26911 tar cfz archive file1
26916 ) ) >"$at_stdout" 2>"$at_stder1"
26918 grep '^ *+' "$at_stder1" >&2
26919 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26924 TEST_TAR_FORMAT=gnu
26925 export TEST_TAR_FORMAT
26926 TAR_OPTIONS="-H gnu"
26931 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
26933 genfile --length 10240 --file file1
26935 tar cfz archive file1
26940 ) ) >"$at_stdout" 2>"$at_stderr"
26945 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26946 echo >>"$at_stdout"; echo "separator
26949 " | $at_diff - "$at_stdout" || at_failed=:
26951 77) echo 77 > "$at_status_file"; exit 77;;
26953 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
26956 if $at_failed; then
26959 echo 1 > "$at_status_file"
26968 $at_times_p && times >"$at_times_file"
26969 ) 5>&1 2>&1 | eval $at_tee_pipe
26970 at_status=`cat "$at_status_file"`
26973 68 ) # 68. shortfile.at:26: short input files
26974 at_setup_line='shortfile.at:26'
26975 at_desc="short input files"
26976 $at_quiet $ECHO_N " 68: short input files $ECHO_C"
26978 test -f $XFAILFILE && at_xfail=yes
26979 echo "# -*- compilation -*-" >> "$at_group_log"
26981 echo "68. shortfile.at:26: testing ..."
26989 echo "$at_srcdir/shortfile.at:29:
26992 TEST_TAR_FORMAT=gnu
26993 export TEST_TAR_FORMAT
26994 TAR_OPTIONS=\"-H gnu\"
26998 genfile --length 511 --file foo || exit 5
27001 echo shortfile.at:29 >"$at_check_line_file"
27004 if test -n "$at_traceon"; then
27005 echo 'Not enabling shell tracing (command contains an embedded newline)'
27008 if test -n "$at_trace_this"; then
27012 TEST_TAR_FORMAT=gnu
27013 export TEST_TAR_FORMAT
27014 TAR_OPTIONS="-H gnu"
27018 genfile --length 511 --file foo || exit 5
27020 ) ) >"$at_stdout" 2>"$at_stder1"
27022 grep '^ *+' "$at_stder1" >&2
27023 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27028 TEST_TAR_FORMAT=gnu
27029 export TEST_TAR_FORMAT
27030 TAR_OPTIONS="-H gnu"
27034 genfile --length 511 --file foo || exit 5
27036 ) ) >"$at_stdout" 2>"$at_stderr"
27041 echo >>"$at_stderr"; echo "tar: This does not look like a tar archive
27042 tar: Exiting with failure status due to previous errors
27043 " | $at_diff - "$at_stderr" || at_failed=:
27044 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27046 77) echo 77 > "$at_status_file"; exit 77;;
27048 *) echo "$at_srcdir/shortfile.at:29: exit code was $at_status, expected 2"
27051 if $at_failed; then
27054 echo 1 > "$at_status_file"
27063 $at_times_p && times >"$at_times_file"
27064 ) 5>&1 2>&1 | eval $at_tee_pipe
27065 at_status=`cat "$at_status_file"`
27068 69 ) # 69. shortupd.at:29: updating short archives
27069 at_setup_line='shortupd.at:29'
27070 at_desc="updating short archives"
27071 $at_quiet $ECHO_N " 69: updating short archives $ECHO_C"
27073 test -f $XFAILFILE && at_xfail=yes
27074 echo "# -*- compilation -*-" >> "$at_group_log"
27076 echo "69. shortupd.at:29: testing ..."
27084 echo "$at_srcdir/shortupd.at:32:
27088 export TEST_TAR_FORMAT
27089 TAR_OPTIONS=\"-H v7\"
27096 echo shortupd.at:32 >"$at_check_line_file"
27099 if test -n "$at_traceon"; then
27100 echo 'Not enabling shell tracing (command contains an embedded newline)'
27103 if test -n "$at_trace_this"; then
27108 export TEST_TAR_FORMAT
27109 TAR_OPTIONS="-H v7"
27115 ) ) >"$at_stdout" 2>"$at_stder1"
27117 grep '^ *+' "$at_stder1" >&2
27118 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27124 export TEST_TAR_FORMAT
27125 TAR_OPTIONS="-H v7"
27131 ) ) >"$at_stdout" 2>"$at_stderr"
27136 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27137 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27139 77) echo 77 > "$at_status_file"; exit 77;;
27141 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27144 if $at_failed; then
27147 echo 1 > "$at_status_file"
27153 echo "$at_srcdir/shortupd.at:32:
27156 TEST_TAR_FORMAT=oldgnu
27157 export TEST_TAR_FORMAT
27158 TAR_OPTIONS=\"-H oldgnu\"
27165 echo shortupd.at:32 >"$at_check_line_file"
27168 if test -n "$at_traceon"; then
27169 echo 'Not enabling shell tracing (command contains an embedded newline)'
27172 if test -n "$at_trace_this"; then
27176 TEST_TAR_FORMAT=oldgnu
27177 export TEST_TAR_FORMAT
27178 TAR_OPTIONS="-H oldgnu"
27184 ) ) >"$at_stdout" 2>"$at_stder1"
27186 grep '^ *+' "$at_stder1" >&2
27187 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27192 TEST_TAR_FORMAT=oldgnu
27193 export TEST_TAR_FORMAT
27194 TAR_OPTIONS="-H oldgnu"
27200 ) ) >"$at_stdout" 2>"$at_stderr"
27205 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27206 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27208 77) echo 77 > "$at_status_file"; exit 77;;
27210 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27213 if $at_failed; then
27216 echo 1 > "$at_status_file"
27222 echo "$at_srcdir/shortupd.at:32:
27225 TEST_TAR_FORMAT=ustar
27226 export TEST_TAR_FORMAT
27227 TAR_OPTIONS=\"-H ustar\"
27234 echo shortupd.at:32 >"$at_check_line_file"
27237 if test -n "$at_traceon"; then
27238 echo 'Not enabling shell tracing (command contains an embedded newline)'
27241 if test -n "$at_trace_this"; then
27245 TEST_TAR_FORMAT=ustar
27246 export TEST_TAR_FORMAT
27247 TAR_OPTIONS="-H ustar"
27253 ) ) >"$at_stdout" 2>"$at_stder1"
27255 grep '^ *+' "$at_stder1" >&2
27256 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27261 TEST_TAR_FORMAT=ustar
27262 export TEST_TAR_FORMAT
27263 TAR_OPTIONS="-H ustar"
27269 ) ) >"$at_stdout" 2>"$at_stderr"
27274 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27275 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27277 77) echo 77 > "$at_status_file"; exit 77;;
27279 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27282 if $at_failed; then
27285 echo 1 > "$at_status_file"
27291 echo "$at_srcdir/shortupd.at:32:
27294 TEST_TAR_FORMAT=posix
27295 export TEST_TAR_FORMAT
27296 TAR_OPTIONS=\"-H posix\"
27303 echo shortupd.at:32 >"$at_check_line_file"
27306 if test -n "$at_traceon"; then
27307 echo 'Not enabling shell tracing (command contains an embedded newline)'
27310 if test -n "$at_trace_this"; then
27314 TEST_TAR_FORMAT=posix
27315 export TEST_TAR_FORMAT
27316 TAR_OPTIONS="-H posix"
27322 ) ) >"$at_stdout" 2>"$at_stder1"
27324 grep '^ *+' "$at_stder1" >&2
27325 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27330 TEST_TAR_FORMAT=posix
27331 export TEST_TAR_FORMAT
27332 TAR_OPTIONS="-H posix"
27338 ) ) >"$at_stdout" 2>"$at_stderr"
27343 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27344 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27346 77) echo 77 > "$at_status_file"; exit 77;;
27348 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27351 if $at_failed; then
27354 echo 1 > "$at_status_file"
27360 echo "$at_srcdir/shortupd.at:32:
27363 TEST_TAR_FORMAT=gnu
27364 export TEST_TAR_FORMAT
27365 TAR_OPTIONS=\"-H gnu\"
27372 echo shortupd.at:32 >"$at_check_line_file"
27375 if test -n "$at_traceon"; then
27376 echo 'Not enabling shell tracing (command contains an embedded newline)'
27379 if test -n "$at_trace_this"; then
27383 TEST_TAR_FORMAT=gnu
27384 export TEST_TAR_FORMAT
27385 TAR_OPTIONS="-H gnu"
27391 ) ) >"$at_stdout" 2>"$at_stder1"
27393 grep '^ *+' "$at_stder1" >&2
27394 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27399 TEST_TAR_FORMAT=gnu
27400 export TEST_TAR_FORMAT
27401 TAR_OPTIONS="-H gnu"
27407 ) ) >"$at_stdout" 2>"$at_stderr"
27412 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27413 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
27415 77) echo 77 > "$at_status_file"; exit 77;;
27417 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
27420 if $at_failed; then
27423 echo 1 > "$at_status_file"
27432 $at_times_p && times >"$at_times_file"
27433 ) 5>&1 2>&1 | eval $at_tee_pipe
27434 at_status=`cat "$at_status_file"`
27437 70 ) # 70. truncate.at:29: truncate
27438 at_setup_line='truncate.at:29'
27440 $at_quiet $ECHO_N " 70: truncate $ECHO_C"
27442 test -f $XFAILFILE && at_xfail=yes
27443 echo "# -*- compilation -*-" >> "$at_group_log"
27445 echo "70. truncate.at:29: testing ..."
27453 echo "$at_srcdir/truncate.at:32:
27457 export TEST_TAR_FORMAT
27458 TAR_OPTIONS=\"-H v7\"
27462 genfile --file foo --length 50000k
27464 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27465 echo Exit status: \$?
27468 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27470 echo truncate.at:32 >"$at_check_line_file"
27473 if test -n "$at_traceon"; then
27474 echo 'Not enabling shell tracing (command contains an embedded newline)'
27477 if test -n "$at_trace_this"; then
27482 export TEST_TAR_FORMAT
27483 TAR_OPTIONS="-H v7"
27487 genfile --file foo --length 50000k
27489 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27490 echo Exit status: $?
27493 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27494 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
27496 grep '^ *+' "$at_stder1" >&2
27497 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27503 export TEST_TAR_FORMAT
27504 TAR_OPTIONS="-H v7"
27508 genfile --file foo --length 50000k
27510 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27511 echo Exit status: $?
27514 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27515 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
27520 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
27521 " | $at_diff - "$at_stderr" || at_failed=:
27522 echo >>"$at_stdout"; echo "foo
27527 foo: Mod time differs
27529 " | $at_diff - "$at_stdout" || at_failed=:
27531 77) echo 77 > "$at_status_file"; exit 77;;
27533 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
27536 if $at_failed; then
27539 echo 1 > "$at_status_file"
27545 echo "$at_srcdir/truncate.at:32:
27548 TEST_TAR_FORMAT=oldgnu
27549 export TEST_TAR_FORMAT
27550 TAR_OPTIONS=\"-H oldgnu\"
27554 genfile --file foo --length 50000k
27556 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27557 echo Exit status: \$?
27560 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27562 echo truncate.at:32 >"$at_check_line_file"
27565 if test -n "$at_traceon"; then
27566 echo 'Not enabling shell tracing (command contains an embedded newline)'
27569 if test -n "$at_trace_this"; then
27573 TEST_TAR_FORMAT=oldgnu
27574 export TEST_TAR_FORMAT
27575 TAR_OPTIONS="-H oldgnu"
27579 genfile --file foo --length 50000k
27581 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27582 echo Exit status: $?
27585 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27586 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
27588 grep '^ *+' "$at_stder1" >&2
27589 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27594 TEST_TAR_FORMAT=oldgnu
27595 export TEST_TAR_FORMAT
27596 TAR_OPTIONS="-H oldgnu"
27600 genfile --file foo --length 50000k
27602 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27603 echo Exit status: $?
27606 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27607 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
27612 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
27613 " | $at_diff - "$at_stderr" || at_failed=:
27614 echo >>"$at_stdout"; echo "foo
27619 foo: Mod time differs
27621 " | $at_diff - "$at_stdout" || at_failed=:
27623 77) echo 77 > "$at_status_file"; exit 77;;
27625 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
27628 if $at_failed; then
27631 echo 1 > "$at_status_file"
27637 echo "$at_srcdir/truncate.at:32:
27640 TEST_TAR_FORMAT=ustar
27641 export TEST_TAR_FORMAT
27642 TAR_OPTIONS=\"-H ustar\"
27646 genfile --file foo --length 50000k
27648 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27649 echo Exit status: \$?
27652 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27654 echo truncate.at:32 >"$at_check_line_file"
27657 if test -n "$at_traceon"; then
27658 echo 'Not enabling shell tracing (command contains an embedded newline)'
27661 if test -n "$at_trace_this"; then
27665 TEST_TAR_FORMAT=ustar
27666 export TEST_TAR_FORMAT
27667 TAR_OPTIONS="-H ustar"
27671 genfile --file foo --length 50000k
27673 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27674 echo Exit status: $?
27677 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27678 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
27680 grep '^ *+' "$at_stder1" >&2
27681 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27686 TEST_TAR_FORMAT=ustar
27687 export TEST_TAR_FORMAT
27688 TAR_OPTIONS="-H ustar"
27692 genfile --file foo --length 50000k
27694 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27695 echo Exit status: $?
27698 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27699 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
27704 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
27705 " | $at_diff - "$at_stderr" || at_failed=:
27706 echo >>"$at_stdout"; echo "foo
27711 foo: Mod time differs
27713 " | $at_diff - "$at_stdout" || at_failed=:
27715 77) echo 77 > "$at_status_file"; exit 77;;
27717 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
27720 if $at_failed; then
27723 echo 1 > "$at_status_file"
27729 echo "$at_srcdir/truncate.at:32:
27732 TEST_TAR_FORMAT=posix
27733 export TEST_TAR_FORMAT
27734 TAR_OPTIONS=\"-H posix\"
27738 genfile --file foo --length 50000k
27740 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27741 echo Exit status: \$?
27744 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27746 echo truncate.at:32 >"$at_check_line_file"
27749 if test -n "$at_traceon"; then
27750 echo 'Not enabling shell tracing (command contains an embedded newline)'
27753 if test -n "$at_trace_this"; then
27757 TEST_TAR_FORMAT=posix
27758 export TEST_TAR_FORMAT
27759 TAR_OPTIONS="-H posix"
27763 genfile --file foo --length 50000k
27765 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27766 echo Exit status: $?
27769 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27770 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
27772 grep '^ *+' "$at_stder1" >&2
27773 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27778 TEST_TAR_FORMAT=posix
27779 export TEST_TAR_FORMAT
27780 TAR_OPTIONS="-H posix"
27784 genfile --file foo --length 50000k
27786 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27787 echo Exit status: $?
27790 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27791 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
27796 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
27797 " | $at_diff - "$at_stderr" || at_failed=:
27798 echo >>"$at_stdout"; echo "foo
27803 foo: Mod time differs
27805 " | $at_diff - "$at_stdout" || at_failed=:
27807 77) echo 77 > "$at_status_file"; exit 77;;
27809 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
27812 if $at_failed; then
27815 echo 1 > "$at_status_file"
27821 echo "$at_srcdir/truncate.at:32:
27824 TEST_TAR_FORMAT=gnu
27825 export TEST_TAR_FORMAT
27826 TAR_OPTIONS=\"-H gnu\"
27830 genfile --file foo --length 50000k
27832 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27833 echo Exit status: \$?
27836 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27838 echo truncate.at:32 >"$at_check_line_file"
27841 if test -n "$at_traceon"; then
27842 echo 'Not enabling shell tracing (command contains an embedded newline)'
27845 if test -n "$at_trace_this"; then
27849 TEST_TAR_FORMAT=gnu
27850 export TEST_TAR_FORMAT
27851 TAR_OPTIONS="-H gnu"
27855 genfile --file foo --length 50000k
27857 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27858 echo Exit status: $?
27861 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27862 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
27864 grep '^ *+' "$at_stder1" >&2
27865 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27870 TEST_TAR_FORMAT=gnu
27871 export TEST_TAR_FORMAT
27872 TAR_OPTIONS="-H gnu"
27876 genfile --file foo --length 50000k
27878 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
27879 echo Exit status: $?
27882 genfile --file foo --seek 49995k --length 5k --pattern=zeros
27883 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
27888 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
27889 " | $at_diff - "$at_stderr" || at_failed=:
27890 echo >>"$at_stdout"; echo "foo
27895 foo: Mod time differs
27897 " | $at_diff - "$at_stdout" || at_failed=:
27899 77) echo 77 > "$at_status_file"; exit 77;;
27901 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
27904 if $at_failed; then
27907 echo 1 > "$at_status_file"
27916 $at_times_p && times >"$at_times_file"
27917 ) 5>&1 2>&1 | eval $at_tee_pipe
27918 at_status=`cat "$at_status_file"`
27921 71 ) # 71. grow.at:24: grow
27922 at_setup_line='grow.at:24'
27924 $at_quiet $ECHO_N " 71: grow $ECHO_C"
27926 test -f $XFAILFILE && at_xfail=yes
27927 echo "# -*- compilation -*-" >> "$at_group_log"
27929 echo "71. grow.at:24: testing ..."
27937 echo "$at_srcdir/grow.at:27:
27941 export TEST_TAR_FORMAT
27942 TAR_OPTIONS=\"-H v7\"
27946 genfile --file foo --length 50000k
27948 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
27951 echo grow.at:27 >"$at_check_line_file"
27954 if test -n "$at_traceon"; then
27955 echo 'Not enabling shell tracing (command contains an embedded newline)'
27958 if test -n "$at_trace_this"; then
27963 export TEST_TAR_FORMAT
27964 TAR_OPTIONS="-H v7"
27968 genfile --file foo --length 50000k
27970 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
27972 ) ) >"$at_stdout" 2>"$at_stder1"
27974 grep '^ *+' "$at_stder1" >&2
27975 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27981 export TEST_TAR_FORMAT
27982 TAR_OPTIONS="-H v7"
27986 genfile --file foo --length 50000k
27988 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
27990 ) ) >"$at_stdout" 2>"$at_stderr"
27995 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
27996 " | $at_diff - "$at_stderr" || at_failed=:
27997 echo >>"$at_stdout"; echo "foo
27999 " | $at_diff - "$at_stdout" || at_failed=:
28001 77) echo 77 > "$at_status_file"; exit 77;;
28003 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28006 if $at_failed; then
28009 echo 1 > "$at_status_file"
28015 echo "$at_srcdir/grow.at:27:
28018 TEST_TAR_FORMAT=oldgnu
28019 export TEST_TAR_FORMAT
28020 TAR_OPTIONS=\"-H oldgnu\"
28024 genfile --file foo --length 50000k
28026 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28029 echo grow.at:27 >"$at_check_line_file"
28032 if test -n "$at_traceon"; then
28033 echo 'Not enabling shell tracing (command contains an embedded newline)'
28036 if test -n "$at_trace_this"; then
28040 TEST_TAR_FORMAT=oldgnu
28041 export TEST_TAR_FORMAT
28042 TAR_OPTIONS="-H oldgnu"
28046 genfile --file foo --length 50000k
28048 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28050 ) ) >"$at_stdout" 2>"$at_stder1"
28052 grep '^ *+' "$at_stder1" >&2
28053 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28058 TEST_TAR_FORMAT=oldgnu
28059 export TEST_TAR_FORMAT
28060 TAR_OPTIONS="-H oldgnu"
28064 genfile --file foo --length 50000k
28066 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28068 ) ) >"$at_stdout" 2>"$at_stderr"
28073 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28074 " | $at_diff - "$at_stderr" || at_failed=:
28075 echo >>"$at_stdout"; echo "foo
28077 " | $at_diff - "$at_stdout" || at_failed=:
28079 77) echo 77 > "$at_status_file"; exit 77;;
28081 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28084 if $at_failed; then
28087 echo 1 > "$at_status_file"
28093 echo "$at_srcdir/grow.at:27:
28096 TEST_TAR_FORMAT=ustar
28097 export TEST_TAR_FORMAT
28098 TAR_OPTIONS=\"-H ustar\"
28102 genfile --file foo --length 50000k
28104 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28107 echo grow.at:27 >"$at_check_line_file"
28110 if test -n "$at_traceon"; then
28111 echo 'Not enabling shell tracing (command contains an embedded newline)'
28114 if test -n "$at_trace_this"; then
28118 TEST_TAR_FORMAT=ustar
28119 export TEST_TAR_FORMAT
28120 TAR_OPTIONS="-H ustar"
28124 genfile --file foo --length 50000k
28126 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28128 ) ) >"$at_stdout" 2>"$at_stder1"
28130 grep '^ *+' "$at_stder1" >&2
28131 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28136 TEST_TAR_FORMAT=ustar
28137 export TEST_TAR_FORMAT
28138 TAR_OPTIONS="-H ustar"
28142 genfile --file foo --length 50000k
28144 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28146 ) ) >"$at_stdout" 2>"$at_stderr"
28151 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28152 " | $at_diff - "$at_stderr" || at_failed=:
28153 echo >>"$at_stdout"; echo "foo
28155 " | $at_diff - "$at_stdout" || at_failed=:
28157 77) echo 77 > "$at_status_file"; exit 77;;
28159 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28162 if $at_failed; then
28165 echo 1 > "$at_status_file"
28171 echo "$at_srcdir/grow.at:27:
28174 TEST_TAR_FORMAT=posix
28175 export TEST_TAR_FORMAT
28176 TAR_OPTIONS=\"-H posix\"
28180 genfile --file foo --length 50000k
28182 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28185 echo grow.at:27 >"$at_check_line_file"
28188 if test -n "$at_traceon"; then
28189 echo 'Not enabling shell tracing (command contains an embedded newline)'
28192 if test -n "$at_trace_this"; then
28196 TEST_TAR_FORMAT=posix
28197 export TEST_TAR_FORMAT
28198 TAR_OPTIONS="-H posix"
28202 genfile --file foo --length 50000k
28204 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28206 ) ) >"$at_stdout" 2>"$at_stder1"
28208 grep '^ *+' "$at_stder1" >&2
28209 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28214 TEST_TAR_FORMAT=posix
28215 export TEST_TAR_FORMAT
28216 TAR_OPTIONS="-H posix"
28220 genfile --file foo --length 50000k
28222 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28224 ) ) >"$at_stdout" 2>"$at_stderr"
28229 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28230 " | $at_diff - "$at_stderr" || at_failed=:
28231 echo >>"$at_stdout"; echo "foo
28233 " | $at_diff - "$at_stdout" || at_failed=:
28235 77) echo 77 > "$at_status_file"; exit 77;;
28237 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28240 if $at_failed; then
28243 echo 1 > "$at_status_file"
28249 echo "$at_srcdir/grow.at:27:
28252 TEST_TAR_FORMAT=gnu
28253 export TEST_TAR_FORMAT
28254 TAR_OPTIONS=\"-H gnu\"
28258 genfile --file foo --length 50000k
28260 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
28263 echo grow.at:27 >"$at_check_line_file"
28266 if test -n "$at_traceon"; then
28267 echo 'Not enabling shell tracing (command contains an embedded newline)'
28270 if test -n "$at_trace_this"; then
28274 TEST_TAR_FORMAT=gnu
28275 export TEST_TAR_FORMAT
28276 TAR_OPTIONS="-H gnu"
28280 genfile --file foo --length 50000k
28282 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28284 ) ) >"$at_stdout" 2>"$at_stder1"
28286 grep '^ *+' "$at_stder1" >&2
28287 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28292 TEST_TAR_FORMAT=gnu
28293 export TEST_TAR_FORMAT
28294 TAR_OPTIONS="-H gnu"
28298 genfile --file foo --length 50000k
28300 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
28302 ) ) >"$at_stdout" 2>"$at_stderr"
28307 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
28308 " | $at_diff - "$at_stderr" || at_failed=:
28309 echo >>"$at_stdout"; echo "foo
28311 " | $at_diff - "$at_stdout" || at_failed=:
28313 77) echo 77 > "$at_status_file"; exit 77;;
28315 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
28318 if $at_failed; then
28321 echo 1 > "$at_status_file"
28330 $at_times_p && times >"$at_times_file"
28331 ) 5>&1 2>&1 | eval $at_tee_pipe
28332 at_status=`cat "$at_status_file"`
28335 72 ) # 72. gtarfail.at:21: gtarfail
28336 at_setup_line='gtarfail.at:21'
28338 $at_quiet $ECHO_N " 72: gtarfail $ECHO_C"
28340 echo "# -*- compilation -*-" >> "$at_group_log"
28342 echo "72. gtarfail.at:21: testing ..."
28350 echo "$at_srcdir/gtarfail.at:26:
28352 test -z "$STAR_TESTSCRIPTS" && exit 77
28353 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28356 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
28358 echo gtarfail.at:26 >"$at_check_line_file"
28361 if test -n "$at_traceon"; then
28362 echo 'Not enabling shell tracing (command contains an embedded newline)'
28365 if test -n "$at_trace_this"; then
28368 test -z "$STAR_TESTSCRIPTS" && exit 77
28369 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28372 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
28373 ) >"$at_stdout" 2>"$at_stder1"
28375 grep '^ *+' "$at_stder1" >&2
28376 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28380 test -z "$STAR_TESTSCRIPTS" && exit 77
28381 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28384 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
28385 ) >"$at_stdout" 2>"$at_stderr"
28390 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
28391 echo >>"$at_stdout"; echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
28392 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
28393 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
28394 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
28395 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
28396 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
28397 " | $at_diff - "$at_stdout" || at_failed=:
28399 77) echo 77 > "$at_status_file"; exit 77;;
28401 *) echo "$at_srcdir/gtarfail.at:26: exit code was $at_status, expected 0"
28404 if $at_failed; then
28407 echo 1 > "$at_status_file"
28415 $at_times_p && times >"$at_times_file"
28416 ) 5>&1 2>&1 | eval $at_tee_pipe
28417 at_status=`cat "$at_status_file"`
28420 73 ) # 73. gtarfail2.at:21: gtarfail2
28421 at_setup_line='gtarfail2.at:21'
28422 at_desc="gtarfail2"
28423 $at_quiet $ECHO_N " 73: gtarfail2 $ECHO_C"
28425 echo "# -*- compilation -*-" >> "$at_group_log"
28427 echo "73. gtarfail2.at:21: testing ..."
28435 echo "$at_srcdir/gtarfail2.at:26:
28437 test -z "$STAR_TESTSCRIPTS" && exit 77
28438 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28440 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
28442 echo gtarfail2.at:26 >"$at_check_line_file"
28445 if test -n "$at_traceon"; then
28446 echo 'Not enabling shell tracing (command contains an embedded newline)'
28449 if test -n "$at_trace_this"; then
28452 test -z "$STAR_TESTSCRIPTS" && exit 77
28453 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28455 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
28456 ) >"$at_stdout" 2>"$at_stder1"
28458 grep '^ *+' "$at_stder1" >&2
28459 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28463 test -z "$STAR_TESTSCRIPTS" && exit 77
28464 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28466 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
28467 ) >"$at_stdout" 2>"$at_stderr"
28472 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
28473 echo >>"$at_stdout"; echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
28474 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
28475 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
28476 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
28477 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
28478 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
28479 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
28480 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
28481 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
28482 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
28483 " | $at_diff - "$at_stdout" || at_failed=:
28485 77) echo 77 > "$at_status_file"; exit 77;;
28487 *) echo "$at_srcdir/gtarfail2.at:26: exit code was $at_status, expected 0"
28490 if $at_failed; then
28493 echo 1 > "$at_status_file"
28501 $at_times_p && times >"$at_times_file"
28502 ) 5>&1 2>&1 | eval $at_tee_pipe
28503 at_status=`cat "$at_status_file"`
28506 74 ) # 74. multi-fail.at:21: multi-fail
28507 at_setup_line='multi-fail.at:21'
28508 at_desc="multi-fail"
28509 $at_quiet $ECHO_N " 74: multi-fail $ECHO_C"
28511 echo "# -*- compilation -*-" >> "$at_group_log"
28513 echo "74. multi-fail.at:21: testing ..."
28521 echo "$at_srcdir/multi-fail.at:26:
28523 test -z "$STAR_TESTSCRIPTS" && exit 77
28524 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28527 test -z "$STAR_TESTSCRIPTS" && exit 77
28528 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28531 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
28532 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
28534 echo multi-fail.at:26 >"$at_check_line_file"
28537 if test -n "$at_traceon"; then
28538 echo 'Not enabling shell tracing (command contains an embedded newline)'
28541 if test -n "$at_trace_this"; then
28544 test -z "$STAR_TESTSCRIPTS" && exit 77
28545 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28548 test -z "$STAR_TESTSCRIPTS" && exit 77
28549 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28552 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
28553 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
28554 ) >"$at_stdout" 2>"$at_stder1"
28556 grep '^ *+' "$at_stder1" >&2
28557 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28561 test -z "$STAR_TESTSCRIPTS" && exit 77
28562 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28565 test -z "$STAR_TESTSCRIPTS" && exit 77
28566 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28569 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
28570 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
28571 ) >"$at_stdout" 2>"$at_stderr"
28576 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
28577 echo >>"$at_stdout"; echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
28578 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
28579 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
28580 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
28581 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
28582 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
28583 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
28584 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
28585 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
28586 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
28587 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
28588 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
28589 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
28590 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
28591 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
28592 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
28593 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
28594 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
28595 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
28596 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
28597 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
28598 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
28599 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
28600 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
28601 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
28602 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
28603 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
28604 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
28605 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
28606 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
28607 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
28608 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
28609 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
28610 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
28611 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
28612 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
28613 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
28614 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
28615 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
28616 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
28617 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
28618 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
28619 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
28620 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
28621 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
28622 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
28623 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
28624 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
28625 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
28626 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
28627 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
28628 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
28629 " | $at_diff - "$at_stdout" || at_failed=:
28631 77) echo 77 > "$at_status_file"; exit 77;;
28633 *) echo "$at_srcdir/multi-fail.at:26: exit code was $at_status, expected 0"
28636 if $at_failed; then
28639 echo 1 > "$at_status_file"
28647 $at_times_p && times >"$at_times_file"
28648 ) 5>&1 2>&1 | eval $at_tee_pipe
28649 at_status=`cat "$at_status_file"`
28652 75 ) # 75. ustar-big-2g.at:21: ustar-big-2g
28653 at_setup_line='ustar-big-2g.at:21'
28654 at_desc="ustar-big-2g"
28655 $at_quiet $ECHO_N " 75: ustar-big-2g $ECHO_C"
28657 echo "# -*- compilation -*-" >> "$at_group_log"
28659 echo "75. ustar-big-2g.at:21: testing ..."
28667 echo "$at_srcdir/ustar-big-2g.at:26:
28669 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28672 test -z "$STAR_TESTSCRIPTS" && exit 77
28673 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28676 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
28678 echo ustar-big-2g.at:26 >"$at_check_line_file"
28681 if test -n "$at_traceon"; then
28682 echo 'Not enabling shell tracing (command contains an embedded newline)'
28685 if test -n "$at_trace_this"; then
28688 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28691 test -z "$STAR_TESTSCRIPTS" && exit 77
28692 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28695 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
28696 ) >"$at_stdout" 2>"$at_stder1"
28698 grep '^ *+' "$at_stder1" >&2
28699 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28703 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28706 test -z "$STAR_TESTSCRIPTS" && exit 77
28707 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28710 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
28711 ) >"$at_stdout" 2>"$at_stderr"
28716 echo stderr:; tee stderr <"$at_stderr"
28717 echo >>"$at_stdout"; echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
28718 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
28719 " | $at_diff - "$at_stdout" || at_failed=:
28721 77) echo 77 > "$at_status_file"; exit 77;;
28723 *) echo "$at_srcdir/ustar-big-2g.at:26: exit code was $at_status, expected 0"
28726 if $at_failed; then
28729 echo 1 > "$at_status_file"
28737 cat >stderr.re <<'_ATEOF'
28738 tar: Record size = .*
28741 awk '{print NR " " $0}' stderr > $$.1
28742 awk '{print NR " " $0}' stderr.re | join - $$.1 |
28743 while read NUM RE LINE
28745 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
28750 $at_times_p && times >"$at_times_file"
28751 ) 5>&1 2>&1 | eval $at_tee_pipe
28752 at_status=`cat "$at_status_file"`
28755 76 ) # 76. ustar-big-8g.at:21: ustar-big-8g
28756 at_setup_line='ustar-big-8g.at:21'
28757 at_desc="ustar-big-8g"
28758 $at_quiet $ECHO_N " 76: ustar-big-8g $ECHO_C"
28760 echo "# -*- compilation -*-" >> "$at_group_log"
28762 echo "76. ustar-big-8g.at:21: testing ..."
28770 echo "$at_srcdir/ustar-big-8g.at:26:
28772 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28775 test -z "$STAR_TESTSCRIPTS" && exit 77
28776 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28779 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
28781 echo ustar-big-8g.at:26 >"$at_check_line_file"
28784 if test -n "$at_traceon"; then
28785 echo 'Not enabling shell tracing (command contains an embedded newline)'
28788 if test -n "$at_trace_this"; then
28791 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28794 test -z "$STAR_TESTSCRIPTS" && exit 77
28795 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28798 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
28799 ) >"$at_stdout" 2>"$at_stder1"
28801 grep '^ *+' "$at_stder1" >&2
28802 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28806 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28809 test -z "$STAR_TESTSCRIPTS" && exit 77
28810 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28813 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
28814 ) >"$at_stdout" 2>"$at_stderr"
28819 echo stderr:; tee stderr <"$at_stderr"
28820 echo >>"$at_stdout"; echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
28821 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
28822 " | $at_diff - "$at_stdout" || at_failed=:
28824 77) echo 77 > "$at_status_file"; exit 77;;
28826 *) echo "$at_srcdir/ustar-big-8g.at:26: exit code was $at_status, expected 0"
28829 if $at_failed; then
28832 echo 1 > "$at_status_file"
28840 cat >stderr.re <<'_ATEOF'
28841 tar: Record size = .*
28844 awk '{print NR " " $0}' stderr > $$.1
28845 awk '{print NR " " $0}' stderr.re | join - $$.1 |
28846 while read NUM RE LINE
28848 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
28853 $at_times_p && times >"$at_times_file"
28854 ) 5>&1 2>&1 | eval $at_tee_pipe
28855 at_status=`cat "$at_status_file"`
28858 77 ) # 77. pax-big-10g.at:21: pax-big-10g
28859 at_setup_line='pax-big-10g.at:21'
28860 at_desc="pax-big-10g"
28861 $at_quiet $ECHO_N " 77: pax-big-10g $ECHO_C"
28863 echo "# -*- compilation -*-" >> "$at_group_log"
28865 echo "77. pax-big-10g.at:21: testing ..."
28873 echo "$at_srcdir/pax-big-10g.at:26:
28875 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28878 test -z "$STAR_TESTSCRIPTS" && exit 77
28879 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28882 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
28884 echo pax-big-10g.at:26 >"$at_check_line_file"
28887 if test -n "$at_traceon"; then
28888 echo 'Not enabling shell tracing (command contains an embedded newline)'
28891 if test -n "$at_trace_this"; then
28894 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28897 test -z "$STAR_TESTSCRIPTS" && exit 77
28898 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28901 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
28902 ) >"$at_stdout" 2>"$at_stder1"
28904 grep '^ *+' "$at_stder1" >&2
28905 grep -v '^ *+' "$at_stder1" >"$at_stderr"
28909 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
28912 test -z "$STAR_TESTSCRIPTS" && exit 77
28913 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
28916 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
28917 ) >"$at_stdout" 2>"$at_stderr"
28922 echo stderr:; tee stderr <"$at_stderr"
28923 echo >>"$at_stdout"; echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
28924 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
28925 " | $at_diff - "$at_stdout" || at_failed=:
28927 77) echo 77 > "$at_status_file"; exit 77;;
28929 *) echo "$at_srcdir/pax-big-10g.at:26: exit code was $at_status, expected 0"
28932 if $at_failed; then
28935 echo 1 > "$at_status_file"
28943 cat >stderr.re <<'_ATEOF'
28944 tar: Record size = .*
28947 awk '{print NR " " $0}' stderr > $$.1
28948 awk '{print NR " " $0}' stderr.re | join - $$.1 |
28949 while read NUM RE LINE
28951 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
28956 $at_times_p && times >"$at_times_file"
28957 ) 5>&1 2>&1 | eval $at_tee_pipe
28958 at_status=`cat "$at_status_file"`
28963 echo "$as_me: no such test group: $at_group" >&2
28968 # Be sure to come back to the suite directory, in particular
28969 # since below we might `rm' the group directory we are in currently.
28975 if test ! -f "$at_check_line_file"; then
28976 sed "s/^ */$as_me: warning: /" <<_ATEOF
28977 A failure happened in a test group before any test could be
28978 run. This means that test suite is improperly designed. Please
28979 report this failure to <bug-tar@gnu.org>.
28981 echo "$at_setup_line" >"$at_check_line_file"
28983 at_group_count=`expr 1 + $at_group_count`
28984 $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C"
28985 echo $ECHO_N "$at_group. $at_setup_line: $ECHO_C" >> "$at_group_log"
28986 case $at_xfail:$at_status in
28988 at_msg="UNEXPECTED PASS"
28989 at_xpass_list="$at_xpass_list $at_group"
28990 at_errexit=$at_errexit_p
28994 at_pass_list="$at_pass_list $at_group"
28998 at_msg='skipped ('`cat "$at_check_line_file"`')'
28999 at_skip_list="$at_skip_list $at_group"
29003 at_msg='expected failure ('`cat "$at_check_line_file"`')'
29004 at_xfail_list="$at_xfail_list $at_group"
29008 at_msg='FAILED ('`cat "$at_check_line_file"`')'
29009 at_fail_list="$at_fail_list $at_group"
29010 at_errexit=$at_errexit_p
29013 # Make sure there is a separator even with long titles.
29015 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
29018 # $at_times_file is only available if the group succeeded.
29019 # We're not including the group log, so the success message
29020 # is written in the global log separately. But we also
29021 # write to the group log in case they're using -d.
29022 if test -f "$at_times_file"; then
29023 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
29024 rm -f "$at_times_file"
29026 echo "$at_log_msg" >> "$at_group_log"
29027 echo "$at_log_msg" >&5
29029 # Cleanup the group directory, unless the user wants the files.
29030 if $at_debug_p ; then
29033 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
29034 echo "cd '$at_dir'"
29035 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
29036 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
29038 } >$at_group_dir/run
29039 chmod +x $at_group_dir/run
29041 elif test -d "$at_group_dir"; then
29042 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
29043 rm -fr "$at_group_dir"
29047 # Upon failure, include the log into the testsuite's global
29048 # log. The failure message is written in the group log. It
29049 # is later included in the global log.
29050 echo "$at_log_msg" >> "$at_group_log"
29052 # Upon failure, keep the group directory for autopsy, and
29053 # create the debugging script.
29056 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
29057 echo "cd '$at_dir'"
29058 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
29059 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
29061 } >$at_group_dir/run
29062 chmod +x $at_group_dir/run
29064 $at_errexit && break
29071 # Back to the top directory.
29074 # Compute the duration of the suite.
29075 at_stop_date=`date`
29076 at_stop_time=`date +%s 2>/dev/null`
29077 echo "$as_me: ending at: $at_stop_date" >&5
29078 case $at_start_time,$at_stop_time in
29080 at_duration_s=`expr $at_stop_time - $at_start_time`
29081 at_duration_m=`expr $at_duration_s / 60`
29082 at_duration_h=`expr $at_duration_m / 60`
29083 at_duration_s=`expr $at_duration_s % 60`
29084 at_duration_m=`expr $at_duration_m % 60`
29085 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
29086 echo "$as_me: test suite duration: $at_duration" >&5
29090 # Wrap up the test suite with summary statistics.
29091 at_skip_count=`set dummy $at_skip_list; shift; echo $#`
29092 at_fail_count=`set dummy $at_fail_list; shift; echo $#`
29093 at_xpass_count=`set dummy $at_xpass_list; shift; echo $#`
29094 at_xfail_count=`set dummy $at_xfail_list; shift; echo $#`
29096 at_run_count=`expr $at_group_count - $at_skip_count`
29097 at_unexpected_count=`expr $at_xpass_count + $at_fail_count`
29098 at_total_fail_count=`expr $at_xfail_count + $at_fail_count`
29102 ## ------------- ##
29103 ## Test results. ##
29104 ## ------------- ##
29110 ## ------------- ##
29111 ## Test results. ##
29112 ## ------------- ##
29117 if test $at_run_count = 1; then
29121 at_result="$at_run_count tests"
29124 if $at_errexit_p && test $at_unexpected_count != 0; then
29125 if test $at_xpass_count = 1; then
29126 at_result="$at_result $at_were run, one passed"
29128 at_result="$at_result $at_were run, one failed"
29130 at_result="$at_result unexpectedly and inhibited subsequent tests."
29132 # Don't you just love exponential explosion of the number of cases?
29133 case $at_xpass_count:$at_fail_count:$at_xfail_count in
29135 0:0:0) at_result="$at_result $at_were successful." ;;
29136 0:0:*) at_result="$at_result behaved as expected." ;;
29138 # Some unexpected failures
29139 0:*:0) at_result="$at_result $at_were run,
29140 $at_fail_count failed unexpectedly." ;;
29142 # Some failures, both expected and unexpected
29143 0:*:1) at_result="$at_result $at_were run,
29144 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
29145 0:*:*) at_result="$at_result $at_were run,
29146 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
29148 # No unexpected failures, but some xpasses
29149 *:0:*) at_result="$at_result $at_were run,
29150 $at_xpass_count passed unexpectedly." ;;
29152 # No expected failures, but failures and xpasses
29153 *:1:0) at_result="$at_result $at_were run,
29154 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
29155 *:*:0) at_result="$at_result $at_were run,
29156 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
29159 *:*:1) at_result="$at_result $at_were run,
29160 $at_xpass_count passed unexpectedly,
29161 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
29162 *:*:*) at_result="$at_result $at_were run,
29163 $at_xpass_count passed unexpectedly,
29164 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
29167 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
29168 at_result="All $at_result"
29172 # Now put skips in the mix.
29173 case $at_skip_count in
29175 1) at_result="$at_result
29176 1 test was skipped." ;;
29177 *) at_result="$at_result
29178 $at_skip_count tests were skipped." ;;
29181 if test $at_unexpected_count = 0; then
29183 echo "$at_result" >&5
29185 echo "ERROR: $at_result" >&2
29186 echo "ERROR: $at_result" >&5
29190 ## ------------------------ ##
29191 ## Summary of the failures. ##
29192 ## ------------------------ ##
29195 # Summary of failed and skipped tests.
29196 if test $at_fail_count != 0; then
29197 echo "Failed tests:"
29198 $SHELL "$0" $at_fail_list --list
29201 if test $at_skip_count != 0; then
29202 echo "Skipped tests:"
29203 $SHELL "$0" $at_skip_list --list
29206 if test $at_xpass_count != 0; then
29207 echo "Unexpected passes:"
29208 $SHELL "$0" $at_xpass_list --list
29211 if test $at_fail_count != 0; then
29213 ## ---------------------- ##
29214 ## Detailed failed tests. ##
29215 ## ---------------------- ##
29218 for at_group in $at_fail_list
29220 at_group_normalized=$at_group
29223 case $at_group_normalized in #(
29224 $at_format*) break;;
29226 at_group_normalized=0$at_group_normalized
29229 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
29234 if test -n "$at_top_srcdir"; then
29235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29236 ## ${at_top_build_prefix}config.log ##
29238 sed 's/^/| /' ${at_top_build_prefix}config.log
29243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29244 ## $as_me.log was created. ##
29248 echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:"
29250 echo " To: <bug-tar@gnu.org>"
29251 echo " Subject: [GNU tar 1.21] $as_me:$at_fail_list${at_fail_list:+ failed${at_xpass_list:+,}}$at_xpass_list${at_xpass_list:+ passed unexpectedly}"
29253 if test $at_debug_p = false; then
29255 echo 'You may investigate any problem if you feel able to do so, in which'
29256 echo 'case the test suite provides a good starting point. Its output may'
29257 echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."